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 |
---|---|---|---|---|---|---|
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the org.omg.CORBA.Object method. | public Policy _get_policy(int policy_type) {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public abstract org.omg.CORBA.Object read_Object();",
"public LocalObject() {}",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"void mo3207a(Object obj);",
"public interface BaseObject {\n}",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"BoundObject(){}",
"void m21807c(Object obj);",
"public abstract Object getUnderlyingObject();",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public interface StandaloneObject {\n // marker\n}",
"void m21809e(Object obj);",
"public Object getObject();",
"public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}",
"OBJECT createOBJECT();",
"public Object getObject() ;",
"void m21808d(Object obj);",
"void m21805a(Object obj);",
"ObjectRealization createObjectRealization();",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"void m21806b(Object obj);",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n public Object getObject()\n {\n return null;\n }",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"public static void objectDemo() {\n\t}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"void marshal(Object obj);",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"EJBLocalObject getEJBLocalObject() throws IllegalStateException;",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"Object getBase();",
"void mo67921a(Object obj);",
"JITypeLibImpl(IJIComObject comObject/*, JIRemUnknown unknown*/)\n\t{\n\t\tsuper(comObject);\n\t\t//this.comObject = comObject;\n\t}",
"public interface DerivedType extends EObject {\r\n}",
"public ObjectReference getObject();",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"void getObject(String globalName) throws RemoteException, NotBoundException, MalformedURLException {\n remoteObject = (GraphInterface) Naming.lookup(globalName);\n }",
"public abstract void mo1184a(Object obj);",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"org.omg.CORBA.Object _duplicate();",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"void mo6504by(Object obj);",
"public NetObject getObject();",
"public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}",
"public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}",
"Object loadObject() throws Exception;",
"slco.Object getObject2();",
"@Override\n public boolean isObject() {\n return false;\n }",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"private Object setupDefaultPrototype() {\n }",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"com.google.protobuf2.Any getObject();",
"public void setObject(XSerial obj);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public boolean isObject() {\n return false;\n }",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public interface IDomainObject<T> extends IBasicDomainObject {\n\n Long getId();\n\n String getLabel();\n\n void initLazy();\n\n /**\n * Constant that indicates that the object has no id and is therefore to be ignored. \n */\n public static final Long UNASSIGNED_VALUE = Long.MIN_VALUE;\n public static final Long ROOT_USER_ID = new Long(0);\n}",
"public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public interface Compromiso_peticionLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: tiag_id\n\t */\n\tpublic java.lang.Long getTiag_id();\n\t/**\n\t * Set accessor for persistent attribute: tiag_id\n\t */\n\tpublic void setTiag_id(java.lang.Long newTiag_id);\n\t/**\n\t * Get accessor for persistent attribute: id_rango\n\t */\n\tpublic java.lang.Integer getId_rango();\n\t/**\n\t * Set accessor for persistent attribute: id_rango\n\t */\n\tpublic void setId_rango(java.lang.Integer newId_rango);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic java.lang.String getCodigo_pcom();\n\t/**\n\t * Set accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic void setCodigo_pcom(java.lang.String newCodigo_pcom);\n\t/**\n\t * Get accessor for persistent attribute: dia_especifico\n\t */\n\tpublic java.sql.Timestamp getDia_especifico();\n\t/**\n\t * Set accessor for persistent attribute: dia_especifico\n\t */\n\tpublic void setDia_especifico(java.sql.Timestamp newDia_especifico);\n\t/**\n\t * Get accessor for persistent attribute: id_tecnico\n\t */\n\tpublic java.lang.Long getId_tecnico();\n\t/**\n\t * Set accessor for persistent attribute: id_tecnico\n\t */\n\tpublic void setId_tecnico(java.lang.Long newId_tecnico);\n\t/**\n\t * Get accessor for persistent attribute: user_mac\n\t */\n\tpublic java.lang.String getUser_mac();\n\t/**\n\t * Set accessor for persistent attribute: user_mac\n\t */\n\tpublic void setUser_mac(java.lang.String newUser_mac);\n\t/**\n\t * Get accessor for persistent attribute: hora_desde\n\t */\n\tpublic java.lang.String getHora_desde();\n\t/**\n\t * Set accessor for persistent attribute: hora_desde\n\t */\n\tpublic void setHora_desde(java.lang.String newHora_desde);\n\t/**\n\t * Get accessor for persistent attribute: hora_hasta\n\t */\n\tpublic java.lang.String getHora_hasta();\n\t/**\n\t * Set accessor for persistent attribute: hora_hasta\n\t */\n\tpublic void setHora_hasta(java.lang.String newHora_hasta);\n\t/**\n\t * Get accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic java.lang.String getCodigo_agencia();\n\t/**\n\t * Set accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic void setCodigo_agencia(java.lang.String newCodigo_agencia);\n\t/**\n\t * Get accessor for persistent attribute: estado\n\t */\n\tpublic java.lang.Short getEstado();\n\t/**\n\t * Set accessor for persistent attribute: estado\n\t */\n\tpublic void setEstado(java.lang.Short newEstado);\n\t/**\n\t * Get accessor for persistent attribute: grse_id\n\t */\n\tpublic java.lang.Integer getGrse_id();\n\t/**\n\t * Set accessor for persistent attribute: grse_id\n\t */\n\tpublic void setGrse_id(java.lang.Integer newGrse_id);\n\t/**\n\t * Get accessor for persistent attribute: fecha\n\t */\n\tpublic java.sql.Timestamp getFecha();\n\t/**\n\t * Set accessor for persistent attribute: fecha\n\t */\n\tpublic void setFecha(java.sql.Timestamp newFecha);\n\t/**\n\t * Get accessor for persistent attribute: care_id\n\t */\n\tpublic java.lang.Integer getCare_id();\n\t/**\n\t * Set accessor for persistent attribute: care_id\n\t */\n\tpublic void setCare_id(java.lang.Integer newCare_id);\n\t/**\n\t * Get accessor for persistent attribute: usua_id\n\t */\n\tpublic java.lang.Long getUsua_id();\n\t/**\n\t * Set accessor for persistent attribute: usua_id\n\t */\n\tpublic void setUsua_id(java.lang.Long newUsua_id);\n\t/**\n\t * Get accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic java.lang.Long getId_cita_previa();\n\t/**\n\t * Set accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic void setId_cita_previa(java.lang.Long newId_cita_previa);\n}",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"slco.Object getObject1();",
"public abstract Object mo1185b();",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }",
"public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}",
"public void mo1774a(Object obj) {\n }",
"Objet getObjetAlloue();",
"boolean mo10605a(Object obj);",
"public interface FilterFactory extends FilterFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"public abstract Object getObservedObject();",
"public void add(RealObject o) throws NullPointerException;",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"public java.lang.String getObjectName(){\n return localObjectName;\n }"
]
| [
"0.6396029",
"0.63822776",
"0.61573255",
"0.6151376",
"0.6089821",
"0.6084226",
"0.60506654",
"0.5898948",
"0.5870759",
"0.583996",
"0.5827664",
"0.58242613",
"0.57854563",
"0.57478654",
"0.5740336",
"0.5731119",
"0.56747174",
"0.5660005",
"0.56570226",
"0.5656142",
"0.56469774",
"0.56428313",
"0.5635596",
"0.56299734",
"0.56219554",
"0.55996084",
"0.5594829",
"0.559249",
"0.5587958",
"0.55843806",
"0.5564244",
"0.55240417",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5475471",
"0.5474555",
"0.5470686",
"0.54638016",
"0.54308605",
"0.54280525",
"0.54146063",
"0.54059803",
"0.5404886",
"0.53911436",
"0.5371534",
"0.5341445",
"0.53406924",
"0.53116494",
"0.5306789",
"0.53055245",
"0.5304109",
"0.52972937",
"0.5281999",
"0.5279949",
"0.5278018",
"0.5274605",
"0.52618515",
"0.52601343",
"0.52500224",
"0.52393335",
"0.5221913",
"0.5218018",
"0.52063227",
"0.52050287",
"0.5201766",
"0.51975816",
"0.51943916",
"0.5190378",
"0.5186771",
"0.5185541",
"0.51735234",
"0.51576287",
"0.5150997",
"0.5148068",
"0.5147254",
"0.5146245",
"0.51456016",
"0.5131586",
"0.5124168",
"0.5119572",
"0.5119395",
"0.5116772",
"0.510974",
"0.50959355",
"0.5085107",
"0.50778097",
"0.50778097",
"0.5062081",
"0.50574017",
"0.50569874",
"0.5050875",
"0.50451016",
"0.50427526",
"0.5042256",
"0.5035779",
"0.5029145",
"0.50267917",
"0.50245684",
"0.5021749"
]
| 0.0 | -1 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the org.omg.CORBA.Object method. | public DomainManager[] _get_domain_managers() {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public abstract org.omg.CORBA.Object read_Object();",
"public LocalObject() {}",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"void mo3207a(Object obj);",
"public interface BaseObject {\n}",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"BoundObject(){}",
"void m21807c(Object obj);",
"public abstract Object getUnderlyingObject();",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public interface StandaloneObject {\n // marker\n}",
"void m21809e(Object obj);",
"public Object getObject();",
"public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}",
"OBJECT createOBJECT();",
"public Object getObject() ;",
"void m21808d(Object obj);",
"void m21805a(Object obj);",
"ObjectRealization createObjectRealization();",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"void m21806b(Object obj);",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n public Object getObject()\n {\n return null;\n }",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"public static void objectDemo() {\n\t}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"void marshal(Object obj);",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"EJBLocalObject getEJBLocalObject() throws IllegalStateException;",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"Object getBase();",
"void mo67921a(Object obj);",
"JITypeLibImpl(IJIComObject comObject/*, JIRemUnknown unknown*/)\n\t{\n\t\tsuper(comObject);\n\t\t//this.comObject = comObject;\n\t}",
"public interface DerivedType extends EObject {\r\n}",
"public ObjectReference getObject();",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"void getObject(String globalName) throws RemoteException, NotBoundException, MalformedURLException {\n remoteObject = (GraphInterface) Naming.lookup(globalName);\n }",
"public abstract void mo1184a(Object obj);",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"org.omg.CORBA.Object _duplicate();",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"void mo6504by(Object obj);",
"public NetObject getObject();",
"public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}",
"public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}",
"Object loadObject() throws Exception;",
"slco.Object getObject2();",
"@Override\n public boolean isObject() {\n return false;\n }",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"private Object setupDefaultPrototype() {\n }",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"com.google.protobuf2.Any getObject();",
"public void setObject(XSerial obj);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public boolean isObject() {\n return false;\n }",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public interface IDomainObject<T> extends IBasicDomainObject {\n\n Long getId();\n\n String getLabel();\n\n void initLazy();\n\n /**\n * Constant that indicates that the object has no id and is therefore to be ignored. \n */\n public static final Long UNASSIGNED_VALUE = Long.MIN_VALUE;\n public static final Long ROOT_USER_ID = new Long(0);\n}",
"public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public interface Compromiso_peticionLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: tiag_id\n\t */\n\tpublic java.lang.Long getTiag_id();\n\t/**\n\t * Set accessor for persistent attribute: tiag_id\n\t */\n\tpublic void setTiag_id(java.lang.Long newTiag_id);\n\t/**\n\t * Get accessor for persistent attribute: id_rango\n\t */\n\tpublic java.lang.Integer getId_rango();\n\t/**\n\t * Set accessor for persistent attribute: id_rango\n\t */\n\tpublic void setId_rango(java.lang.Integer newId_rango);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic java.lang.String getCodigo_pcom();\n\t/**\n\t * Set accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic void setCodigo_pcom(java.lang.String newCodigo_pcom);\n\t/**\n\t * Get accessor for persistent attribute: dia_especifico\n\t */\n\tpublic java.sql.Timestamp getDia_especifico();\n\t/**\n\t * Set accessor for persistent attribute: dia_especifico\n\t */\n\tpublic void setDia_especifico(java.sql.Timestamp newDia_especifico);\n\t/**\n\t * Get accessor for persistent attribute: id_tecnico\n\t */\n\tpublic java.lang.Long getId_tecnico();\n\t/**\n\t * Set accessor for persistent attribute: id_tecnico\n\t */\n\tpublic void setId_tecnico(java.lang.Long newId_tecnico);\n\t/**\n\t * Get accessor for persistent attribute: user_mac\n\t */\n\tpublic java.lang.String getUser_mac();\n\t/**\n\t * Set accessor for persistent attribute: user_mac\n\t */\n\tpublic void setUser_mac(java.lang.String newUser_mac);\n\t/**\n\t * Get accessor for persistent attribute: hora_desde\n\t */\n\tpublic java.lang.String getHora_desde();\n\t/**\n\t * Set accessor for persistent attribute: hora_desde\n\t */\n\tpublic void setHora_desde(java.lang.String newHora_desde);\n\t/**\n\t * Get accessor for persistent attribute: hora_hasta\n\t */\n\tpublic java.lang.String getHora_hasta();\n\t/**\n\t * Set accessor for persistent attribute: hora_hasta\n\t */\n\tpublic void setHora_hasta(java.lang.String newHora_hasta);\n\t/**\n\t * Get accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic java.lang.String getCodigo_agencia();\n\t/**\n\t * Set accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic void setCodigo_agencia(java.lang.String newCodigo_agencia);\n\t/**\n\t * Get accessor for persistent attribute: estado\n\t */\n\tpublic java.lang.Short getEstado();\n\t/**\n\t * Set accessor for persistent attribute: estado\n\t */\n\tpublic void setEstado(java.lang.Short newEstado);\n\t/**\n\t * Get accessor for persistent attribute: grse_id\n\t */\n\tpublic java.lang.Integer getGrse_id();\n\t/**\n\t * Set accessor for persistent attribute: grse_id\n\t */\n\tpublic void setGrse_id(java.lang.Integer newGrse_id);\n\t/**\n\t * Get accessor for persistent attribute: fecha\n\t */\n\tpublic java.sql.Timestamp getFecha();\n\t/**\n\t * Set accessor for persistent attribute: fecha\n\t */\n\tpublic void setFecha(java.sql.Timestamp newFecha);\n\t/**\n\t * Get accessor for persistent attribute: care_id\n\t */\n\tpublic java.lang.Integer getCare_id();\n\t/**\n\t * Set accessor for persistent attribute: care_id\n\t */\n\tpublic void setCare_id(java.lang.Integer newCare_id);\n\t/**\n\t * Get accessor for persistent attribute: usua_id\n\t */\n\tpublic java.lang.Long getUsua_id();\n\t/**\n\t * Set accessor for persistent attribute: usua_id\n\t */\n\tpublic void setUsua_id(java.lang.Long newUsua_id);\n\t/**\n\t * Get accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic java.lang.Long getId_cita_previa();\n\t/**\n\t * Set accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic void setId_cita_previa(java.lang.Long newId_cita_previa);\n}",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"slco.Object getObject1();",
"public abstract Object mo1185b();",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }",
"public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}",
"public void mo1774a(Object obj) {\n }",
"Objet getObjetAlloue();",
"boolean mo10605a(Object obj);",
"public interface FilterFactory extends FilterFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"public abstract Object getObservedObject();",
"public void add(RealObject o) throws NullPointerException;",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"public java.lang.String getObjectName(){\n return localObjectName;\n }"
]
| [
"0.6396029",
"0.63822776",
"0.61573255",
"0.6151376",
"0.6089821",
"0.6084226",
"0.60506654",
"0.5898948",
"0.5870759",
"0.583996",
"0.5827664",
"0.58242613",
"0.57854563",
"0.57478654",
"0.5740336",
"0.5731119",
"0.56747174",
"0.5660005",
"0.56570226",
"0.5656142",
"0.56469774",
"0.56428313",
"0.5635596",
"0.56299734",
"0.56219554",
"0.55996084",
"0.5594829",
"0.559249",
"0.5587958",
"0.55843806",
"0.5564244",
"0.55240417",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5475471",
"0.5474555",
"0.5470686",
"0.54638016",
"0.54308605",
"0.54280525",
"0.54146063",
"0.54059803",
"0.5404886",
"0.53911436",
"0.5371534",
"0.5341445",
"0.53406924",
"0.53116494",
"0.5306789",
"0.53055245",
"0.5304109",
"0.52972937",
"0.5281999",
"0.5279949",
"0.5278018",
"0.5274605",
"0.52618515",
"0.52601343",
"0.52500224",
"0.52393335",
"0.5221913",
"0.5218018",
"0.52063227",
"0.52050287",
"0.5201766",
"0.51975816",
"0.51943916",
"0.5190378",
"0.5186771",
"0.5185541",
"0.51735234",
"0.51576287",
"0.5150997",
"0.5148068",
"0.5147254",
"0.5146245",
"0.51456016",
"0.5131586",
"0.5124168",
"0.5119572",
"0.5119395",
"0.5116772",
"0.510974",
"0.50959355",
"0.5085107",
"0.50778097",
"0.50778097",
"0.5062081",
"0.50574017",
"0.50569874",
"0.5050875",
"0.50451016",
"0.50427526",
"0.5042256",
"0.5035779",
"0.5029145",
"0.50267917",
"0.50245684",
"0.5021749"
]
| 0.0 | -1 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the org.omg.CORBA.Object method. | public Object
_set_policy_override(Policy[] policies,
SetOverrideType set_add) {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public abstract org.omg.CORBA.Object read_Object();",
"public LocalObject() {}",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"void mo3207a(Object obj);",
"public interface BaseObject {\n}",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"BoundObject(){}",
"void m21807c(Object obj);",
"public abstract Object getUnderlyingObject();",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public interface StandaloneObject {\n // marker\n}",
"void m21809e(Object obj);",
"public Object getObject();",
"public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}",
"OBJECT createOBJECT();",
"public Object getObject() ;",
"void m21808d(Object obj);",
"void m21805a(Object obj);",
"ObjectRealization createObjectRealization();",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"void m21806b(Object obj);",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n public Object getObject()\n {\n return null;\n }",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"public static void objectDemo() {\n\t}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"void marshal(Object obj);",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"EJBLocalObject getEJBLocalObject() throws IllegalStateException;",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"Object getBase();",
"void mo67921a(Object obj);",
"JITypeLibImpl(IJIComObject comObject/*, JIRemUnknown unknown*/)\n\t{\n\t\tsuper(comObject);\n\t\t//this.comObject = comObject;\n\t}",
"public interface DerivedType extends EObject {\r\n}",
"public ObjectReference getObject();",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"void getObject(String globalName) throws RemoteException, NotBoundException, MalformedURLException {\n remoteObject = (GraphInterface) Naming.lookup(globalName);\n }",
"public abstract void mo1184a(Object obj);",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"org.omg.CORBA.Object _duplicate();",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"void mo6504by(Object obj);",
"public NetObject getObject();",
"public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}",
"public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}",
"Object loadObject() throws Exception;",
"slco.Object getObject2();",
"@Override\n public boolean isObject() {\n return false;\n }",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"private Object setupDefaultPrototype() {\n }",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"com.google.protobuf2.Any getObject();",
"public void setObject(XSerial obj);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public boolean isObject() {\n return false;\n }",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public interface IDomainObject<T> extends IBasicDomainObject {\n\n Long getId();\n\n String getLabel();\n\n void initLazy();\n\n /**\n * Constant that indicates that the object has no id and is therefore to be ignored. \n */\n public static final Long UNASSIGNED_VALUE = Long.MIN_VALUE;\n public static final Long ROOT_USER_ID = new Long(0);\n}",
"public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public interface Compromiso_peticionLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: tiag_id\n\t */\n\tpublic java.lang.Long getTiag_id();\n\t/**\n\t * Set accessor for persistent attribute: tiag_id\n\t */\n\tpublic void setTiag_id(java.lang.Long newTiag_id);\n\t/**\n\t * Get accessor for persistent attribute: id_rango\n\t */\n\tpublic java.lang.Integer getId_rango();\n\t/**\n\t * Set accessor for persistent attribute: id_rango\n\t */\n\tpublic void setId_rango(java.lang.Integer newId_rango);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic java.lang.String getCodigo_pcom();\n\t/**\n\t * Set accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic void setCodigo_pcom(java.lang.String newCodigo_pcom);\n\t/**\n\t * Get accessor for persistent attribute: dia_especifico\n\t */\n\tpublic java.sql.Timestamp getDia_especifico();\n\t/**\n\t * Set accessor for persistent attribute: dia_especifico\n\t */\n\tpublic void setDia_especifico(java.sql.Timestamp newDia_especifico);\n\t/**\n\t * Get accessor for persistent attribute: id_tecnico\n\t */\n\tpublic java.lang.Long getId_tecnico();\n\t/**\n\t * Set accessor for persistent attribute: id_tecnico\n\t */\n\tpublic void setId_tecnico(java.lang.Long newId_tecnico);\n\t/**\n\t * Get accessor for persistent attribute: user_mac\n\t */\n\tpublic java.lang.String getUser_mac();\n\t/**\n\t * Set accessor for persistent attribute: user_mac\n\t */\n\tpublic void setUser_mac(java.lang.String newUser_mac);\n\t/**\n\t * Get accessor for persistent attribute: hora_desde\n\t */\n\tpublic java.lang.String getHora_desde();\n\t/**\n\t * Set accessor for persistent attribute: hora_desde\n\t */\n\tpublic void setHora_desde(java.lang.String newHora_desde);\n\t/**\n\t * Get accessor for persistent attribute: hora_hasta\n\t */\n\tpublic java.lang.String getHora_hasta();\n\t/**\n\t * Set accessor for persistent attribute: hora_hasta\n\t */\n\tpublic void setHora_hasta(java.lang.String newHora_hasta);\n\t/**\n\t * Get accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic java.lang.String getCodigo_agencia();\n\t/**\n\t * Set accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic void setCodigo_agencia(java.lang.String newCodigo_agencia);\n\t/**\n\t * Get accessor for persistent attribute: estado\n\t */\n\tpublic java.lang.Short getEstado();\n\t/**\n\t * Set accessor for persistent attribute: estado\n\t */\n\tpublic void setEstado(java.lang.Short newEstado);\n\t/**\n\t * Get accessor for persistent attribute: grse_id\n\t */\n\tpublic java.lang.Integer getGrse_id();\n\t/**\n\t * Set accessor for persistent attribute: grse_id\n\t */\n\tpublic void setGrse_id(java.lang.Integer newGrse_id);\n\t/**\n\t * Get accessor for persistent attribute: fecha\n\t */\n\tpublic java.sql.Timestamp getFecha();\n\t/**\n\t * Set accessor for persistent attribute: fecha\n\t */\n\tpublic void setFecha(java.sql.Timestamp newFecha);\n\t/**\n\t * Get accessor for persistent attribute: care_id\n\t */\n\tpublic java.lang.Integer getCare_id();\n\t/**\n\t * Set accessor for persistent attribute: care_id\n\t */\n\tpublic void setCare_id(java.lang.Integer newCare_id);\n\t/**\n\t * Get accessor for persistent attribute: usua_id\n\t */\n\tpublic java.lang.Long getUsua_id();\n\t/**\n\t * Set accessor for persistent attribute: usua_id\n\t */\n\tpublic void setUsua_id(java.lang.Long newUsua_id);\n\t/**\n\t * Get accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic java.lang.Long getId_cita_previa();\n\t/**\n\t * Set accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic void setId_cita_previa(java.lang.Long newId_cita_previa);\n}",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"slco.Object getObject1();",
"public abstract Object mo1185b();",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }",
"public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}",
"public void mo1774a(Object obj) {\n }",
"Objet getObjetAlloue();",
"boolean mo10605a(Object obj);",
"public interface FilterFactory extends FilterFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"public abstract Object getObservedObject();",
"public void add(RealObject o) throws NullPointerException;",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"public java.lang.String getObjectName(){\n return localObjectName;\n }"
]
| [
"0.6396029",
"0.63822776",
"0.61573255",
"0.6151376",
"0.6089821",
"0.6084226",
"0.60506654",
"0.5898948",
"0.5870759",
"0.583996",
"0.5827664",
"0.58242613",
"0.57854563",
"0.57478654",
"0.5740336",
"0.5731119",
"0.56747174",
"0.5660005",
"0.56570226",
"0.5656142",
"0.56469774",
"0.56428313",
"0.5635596",
"0.56299734",
"0.56219554",
"0.55996084",
"0.5594829",
"0.559249",
"0.5587958",
"0.55843806",
"0.5564244",
"0.55240417",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5475471",
"0.5474555",
"0.5470686",
"0.54638016",
"0.54308605",
"0.54280525",
"0.54146063",
"0.54059803",
"0.5404886",
"0.53911436",
"0.5371534",
"0.5341445",
"0.53406924",
"0.53116494",
"0.5306789",
"0.53055245",
"0.5304109",
"0.52972937",
"0.5281999",
"0.5279949",
"0.5278018",
"0.5274605",
"0.52618515",
"0.52601343",
"0.52500224",
"0.52393335",
"0.5221913",
"0.5218018",
"0.52063227",
"0.52050287",
"0.5201766",
"0.51975816",
"0.51943916",
"0.5190378",
"0.5186771",
"0.5185541",
"0.51735234",
"0.51576287",
"0.5150997",
"0.5148068",
"0.5147254",
"0.5146245",
"0.51456016",
"0.5131586",
"0.5124168",
"0.5119572",
"0.5119395",
"0.5116772",
"0.510974",
"0.50959355",
"0.5085107",
"0.50778097",
"0.50778097",
"0.5062081",
"0.50574017",
"0.50569874",
"0.5050875",
"0.50451016",
"0.50427526",
"0.5042256",
"0.5035779",
"0.5029145",
"0.50267917",
"0.50245684",
"0.5021749"
]
| 0.0 | -1 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the org.omg.CORBA.Object method. Returns true for this LocalObject instance. | public boolean _is_local() {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isLocal() {\n\t\treturn heldObj.isLocal();\n\t}",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public LocalObject() {}",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"public boolean hasObject(){\n return _object != null;\n }",
"@Override\n\tpublic boolean validObject() {\n\t\treturn valid;\n\t}",
"public boolean isObject() {\n return false;\n }",
"public boolean isLocal();",
"public boolean isObject() {\n\t\t// Object is the class that has itself as superclass\n\t\treturn getSuperClass() == this;\n\t}",
"boolean hasObject();",
"boolean hasObject();",
"boolean hasObject();",
"boolean hasObject();",
"boolean hasObject();",
"boolean hasObject();",
"boolean hasObject();",
"boolean isLocal();",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"protected boolean isObject() {\n long mark = 0;\n try {\n mark = this.createMark();\n boolean bl = this.getObject() != null;\n return bl;\n }\n catch (MathLinkException e) {\n this.clearError();\n boolean bl = false;\n return bl;\n }\n finally {\n if (mark != 0) {\n this.seekMark(mark);\n this.destroyMark(mark);\n }\n }\n }",
"public boolean isSetObject() {\n return this.object != null;\n }",
"@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n \treturn true;\n }",
"public boolean isMaybeObjectOrSymbol() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null;\n }",
"public boolean isLocal()\n {\n return true;\n }",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"public boolean canBeNullObject() { // for future, nobody calls when first\n return _canBeNullObject;\n }",
"@Override\n\tpublic boolean isClassObject() {\n\t\treturn heldObj.isClassObject();\n\t}",
"public final boolean tryOwn() {\n return own(this) == this;\n }",
"public boolean isMCOrgLocal() {\n\t\treturn javaNetAddress.isMCOrgLocal();\n\t}",
"public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }",
"boolean mo10605a(Object obj);",
"public boolean isLocal() {\n\t\treturn _local;\n\t}",
"EJBLocalObject getEJBLocalObject() throws IllegalStateException;",
"boolean isNilIsManaged();",
"public boolean isMaybeObject() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.stream().anyMatch(x -> x.getKind() != Kind.SYMBOL);\n }",
"public boolean isLocal() {\n return local;\n }",
"boolean defined(ThreadContext tc, RakudoObject obj);",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"@Override\n public boolean isObject() {\n return false;\n }",
"public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }",
"public boolean isControllable(Object object)\n {\n if (!(object instanceof EObject)) return false;\n EObject eObject = (EObject)object;\n EObject container = eObject.eContainer();\n return container != null && eObject.eContainmentFeature().isResolveProxies() &&\n !isReadOnly(eObject.eResource()) && !isReadOnly(container.eResource());\n }",
"public boolean isSetLocal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(LOCAL$0) != 0;\r\n }\r\n }",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"public /* bridge */ /* synthetic */ boolean mo9978a(C1082d dVar, Object obj) {\n return super.mo9978a(dVar, obj);\n }",
"@Override\n\tpublic boolean isForceLoaded()\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"boolean _is_equivalent(org.omg.CORBA.Object other);",
"public boolean isNotASummarizedObject() {\n checkNotPolymorphicOrUnknown();\n if (object_labels == null) {\n return true;\n }\n for (ObjectLabel object_label : object_labels) {\n if (!object_label.isSingleton()) {\n return false;\n }\n }\n return true;\n }",
"public boolean init()\n {\n \n boolean retVal = init_0(nativeObj);\n \n return retVal;\n }",
"@Deprecated\r\n public boolean hasLocalInquiry(Class<?> dataObjectClass);",
"public boolean isObjectCreated() {\n return OBJECTCREATED.equals(message);\n }",
"@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isMinecraftEntity(final Object obj) {\n \t\treturn getEntityClass().isAssignableFrom(obj.getClass());\n \t}",
"public boolean isKnownPrimitive() {\r\n return id > 0 && type != null;\r\n }",
"public boolean isObjectReference(Class<?> paramClass) {\n/* 196 */ if (paramClass == null) {\n/* 197 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 200 */ return (paramClass.isInterface() && Object.class\n/* 201 */ .isAssignableFrom(paramClass));\n/* */ }",
"public boolean collision(Objet o) {\r\n\t\treturn false;\r\n\t}",
"public boolean hasObjUser() {\n return instance.hasObjUser();\n }",
"@Override\n public boolean isExist(Object o) {\n return true;\n }",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean movable(Entity obj) {\n\t\treturn true;\n\t}",
"public abstract boolean isObject(T type);",
"public boolean hasObjUser() {\n return objUser_ != null;\n }",
"public boolean checkInterface(Object obj) {\n return true;\n }",
"public boolean isLocal() {\n return mIsLocal;\n }",
"@Override\n public boolean IsNewObject()\n {\n return _isNewObject;\n }",
"public boolean isValid(T object) throws PoolException {\n return true;\n }",
"public static boolean isControlled(Object object)\n {\n if (!(object instanceof EObject)) return false;\n EObject eObject = (EObject)object;\n EObject container = eObject.eContainer();\n Resource resource = eObject.eResource();\n return resource != null && container != null && resource != container.eResource();\n }",
"protected boolean isPrimitiveObject(Object object) {\r\n return PropertyType.PRIMITIVE.equals(determinePropertyType(object));\r\n }",
"public boolean isItemLocal ();",
"@objid (\"617db225-55b6-11e2-877f-002564c97630\")\n @Override\n public boolean canCreate(Class<? extends MObject> type) {\n return false;\n }",
"public abstract boolean canHandle(ObjectInformation objectInformation);",
"public boolean isObjectAdded() {\n return OBJECTADDED.equals(message);\n }",
"public boolean isInstanciated(ObjModule localSymbols, ObjModule globalSymbols) {\n\t\treturn true;\n\t}",
"public boolean isInstanciated(ObjModule localSymbols, ObjModule globalSymbols) {\n\t\treturn true;\n\t}",
"private final boolean isObjectAccessible(Class from, Object to, int type) {\n if (to == null) {\n return false;\n }\n\n return isObjectAccessible(classes(), from, to, type);\n }",
"public boolean evaluateWithObject(java.lang.Object object){\n return false; //TODO codavaj!!\n }",
"public boolean isPersistenceCapable(Object object)\n{\n\treturn true;\n}",
"public boolean handlesObject(Object object);",
"public boolean isAnyLocalAddress() {\n\t\treturn javaNetAddress.isAnyLocalAddress();\n\t}",
"protected boolean isObjectHeld() { return objHeld; }",
"public boolean IsLocal() {\r\n\t\treturn BrickFinder.getDefault().isLocal();\r\n\t}",
"default boolean isNil(final SObjectWithoutFields obj) {\n return obj == Nil.nilObject;\n }",
"public static boolean isInstance(java.lang.Object param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isMinecraftPlayer(final Object obj) {\n \t\treturn getEntityPlayerClass().isAssignableFrom(obj.getClass());\n \t}",
"public boolean isLocal()\n {\n try\n {\n Member member = getMember();\n return member == null || member.equals(\n getService().getCluster().getLocalMember());\n }\n catch (RuntimeException e)\n {\n // the local services are stopped\n // there is no good answer...\n return true;\n }\n }",
"@ReflectiveMethod(name = \"I\", types = {})\n public boolean I(){\n return (boolean) NMSWrapper.getInstance().exec(nmsObject);\n }",
"boolean isValid(PooledObject<T> t);",
"public static <T> boolean registerInterfaceNoThrow(Context context, String provider, String interfaceName,\n T object, Class<T> localInterface) throws InvokeException {\n try {\n return registerInterface(context, provider, interfaceName, object, localInterface);\n } catch (Throwable t) {\n if (LogUtil.LOG_ENABLED) {\n t.printStackTrace();\n }\n }\n\n return false;\n }",
"private static boolean functionalInterfaceReturnsObject(Type interfaceType, VisitorState state) {\n Type objectType = state.getSymtab().objectType;\n return ASTHelpers.isSubtype(\n objectType,\n ASTHelpers.getUpperBound(\n state.getTypes().findDescriptorType(interfaceType).getReturnType(), state.getTypes()),\n state);\n }",
"public static boolean isInstance(java.lang.Object param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"BoundObject(){}",
"public boolean isVirtual();",
"public boolean isVirtual();",
"public boolean isNotASingletonObject() {\n checkNotPolymorphicOrUnknown();\n if (object_labels == null) {\n return true;\n }\n for (ObjectLabel object_label : object_labels) {\n if (object_label.isSingleton()) {\n return false;\n }\n }\n return true;\n }",
"public final boolean isReference() {\n \treturn !isPrimitive();\n }",
"public static boolean isInstance(java.lang.Object param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"public boolean canMakeObjectsOutOfProcedures() {\n return supportsStoredProcedures();\n }",
"@Override\n\tprotected boolean isOkToExecute()\n\t{\n\n\t\tif((super.isOkToExecute())\n\t\t\t&& isColumAvailable(IPersistentObject.R_OBJECT_ID))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tMessageView.getInstance().addMessage(\n\t\t\tConnectionView.getInstance().getSelectedConnection().getTag()\n\t\t\t\t+ \" No '\" + IPersistentObject.R_OBJECT_ID //$NON-NLS-1$\n\t\t\t\t+ \"' column found.\"); //$NON-NLS-1$\n\t\treturn false;\n\t}",
"public static boolean isMinecraftObject(@Nonnull final Object obj) {\n \t\tif (obj == null) {\n \t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"Cannot determine the type of a null object.\");\n \t\t}\n \n \t\t// Doesn't matter if we don't check for the version here\n \t\treturn obj.getClass().getName().startsWith(MINECRAFT_PREFIX_PACKAGE);\n \t}",
"@Override\r\n public boolean isWellKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isWellKnown();\r\n }",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"@Override\n\tpublic boolean create(Etape obj) {\n\t\treturn false;\n\t}"
]
| [
"0.64597607",
"0.6279899",
"0.6159002",
"0.61051",
"0.5964459",
"0.5959191",
"0.5958234",
"0.5952758",
"0.5860873",
"0.5849859",
"0.5849859",
"0.5849859",
"0.5849859",
"0.5849859",
"0.5849859",
"0.5849859",
"0.5821369",
"0.5816987",
"0.5759497",
"0.5750718",
"0.5692603",
"0.56764346",
"0.56549627",
"0.5632813",
"0.5632813",
"0.5610109",
"0.5606346",
"0.5595487",
"0.5589257",
"0.55869645",
"0.5580749",
"0.553576",
"0.55180985",
"0.5510855",
"0.5493145",
"0.54883546",
"0.54616195",
"0.54462904",
"0.54415625",
"0.5415939",
"0.5413663",
"0.53936124",
"0.5391109",
"0.5370934",
"0.5362424",
"0.5329377",
"0.53272164",
"0.53242725",
"0.5298159",
"0.52945125",
"0.5293465",
"0.5278909",
"0.52686137",
"0.5260286",
"0.52598774",
"0.5254849",
"0.5250968",
"0.52442616",
"0.5240962",
"0.52370816",
"0.5236576",
"0.5217719",
"0.5214512",
"0.51901305",
"0.51869434",
"0.5181263",
"0.5174977",
"0.5166535",
"0.513377",
"0.51151085",
"0.51126635",
"0.51126635",
"0.5109462",
"0.51050043",
"0.5099332",
"0.50865006",
"0.5081677",
"0.50774556",
"0.5076503",
"0.5072066",
"0.506287",
"0.50617087",
"0.5058628",
"0.50514275",
"0.5050187",
"0.50426984",
"0.5030267",
"0.5029024",
"0.5017126",
"0.5014705",
"0.5014705",
"0.5008444",
"0.5000573",
"0.49966255",
"0.49960032",
"0.49918315",
"0.4978635",
"0.49676716",
"0.49655974",
"0.49640518"
]
| 0.6561561 | 0 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the org.omg.CORBA.Object method. | public ServantObject _servant_preinvoke(String operation,
Class expectedType) {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract org.omg.CORBA.Object read_Object();",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface BaseObject {\n}",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"void mo3207a(Object obj);",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"BoundObject(){}",
"public LocalObject() {}",
"OBJECT createOBJECT();",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"public interface StandaloneObject {\n // marker\n}",
"void m21807c(Object obj);",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public abstract Object getUnderlyingObject();",
"void m21809e(Object obj);",
"public Object getObject();",
"void m21805a(Object obj);",
"public Object getObject() ;",
"ObjectRealization createObjectRealization();",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"void m21806b(Object obj);",
"@Override\n public Object getObject()\n {\n return null;\n }",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"void m21808d(Object obj);",
"JITypeLibImpl(IJIComObject comObject/*, JIRemUnknown unknown*/)\n\t{\n\t\tsuper(comObject);\n\t\t//this.comObject = comObject;\n\t}",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}",
"public static void objectDemo() {\n\t}",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface DerivedType extends EObject {\r\n}",
"void marshal(Object obj);",
"Object loadObject() throws Exception;",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"Object getBase();",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"public interface IDomainObject<T> extends IBasicDomainObject {\n\n Long getId();\n\n String getLabel();\n\n void initLazy();\n\n /**\n * Constant that indicates that the object has no id and is therefore to be ignored. \n */\n public static final Long UNASSIGNED_VALUE = Long.MIN_VALUE;\n public static final Long ROOT_USER_ID = new Long(0);\n}",
"void mo67921a(Object obj);",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"com.google.protobuf2.Any getObject();",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public abstract void mo1184a(Object obj);",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"org.omg.CORBA.Object _duplicate();",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"@Override\n public boolean isObject() {\n return false;\n }",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public ObjectReference getObject();",
"public org.omg.CORBA.Object read_Object(Class\n clz) {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"private Object setupDefaultPrototype() {\n }",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public NetObject getObject();",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"public T caseClientInterface(ClientInterface object)\n {\n return null;\n }",
"public T caseDefNonInertia(DefNonInertia object)\n {\n return null;\n }",
"void mo6504by(Object obj);",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"public boolean isObject() {\n return false;\n }",
"public abstract Object mo1185b();",
"Objet getObjetAlloue();",
"public abstract B zzt(Object obj);",
"public Object mo27142b(Object obj) throws C3885b {\n if (obj == null || this.f17268a.isInstance(obj)) {\n return obj;\n }\n throw new C3885b(\"Caller [\" + obj + \"] is not a instance of type [\" + this.f17268a + \"]!\");\n }",
"public T caseObjectDefinition(ObjectDefinition object) {\n\t\treturn null;\n\t}",
"slco.Object getObject2();",
"public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}",
"boolean mo10605a(Object obj);",
"public Value restrictToNotTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= ~NULL;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.FUNCTION || objlabel.getKind() == Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }",
"public T caseServerInterface(ServerInterface object)\n {\n return null;\n }",
"public void mo1774a(Object obj) {\n }",
"public void setObject(XSerial obj);",
"public Object _duplicate() {\n throw new NO_IMPLEMENT(reason);\n }",
"public ExtensibleObject getNativeObject(SoffidObjectType type, String object1, String object2)\n\t\t\tthrows RemoteException, InternalErrorException {\n\t\treturn null;\n\t}",
"public BaseObject()\n\t {\n\t className=\"BaseObject\";\n\t objectName=\"default object\";\n\t }"
]
| [
"0.6512437",
"0.6478393",
"0.6258392",
"0.6256161",
"0.6205298",
"0.615545",
"0.6037277",
"0.60164344",
"0.60033655",
"0.592476",
"0.59009516",
"0.58834183",
"0.5774403",
"0.576282",
"0.57368785",
"0.5734551",
"0.5731212",
"0.57273376",
"0.57109666",
"0.5699425",
"0.56763464",
"0.5660393",
"0.5657711",
"0.56520796",
"0.5645662",
"0.5636351",
"0.5613694",
"0.5613389",
"0.5610663",
"0.5592719",
"0.55823636",
"0.55772597",
"0.55497885",
"0.5533799",
"0.5532259",
"0.55301964",
"0.5528035",
"0.55213237",
"0.55213237",
"0.55213237",
"0.55213237",
"0.5514724",
"0.54860866",
"0.5473442",
"0.54531914",
"0.54445195",
"0.5440005",
"0.5436047",
"0.5424157",
"0.5422005",
"0.54148704",
"0.5412472",
"0.53841144",
"0.53741693",
"0.535929",
"0.53362066",
"0.53308827",
"0.53236",
"0.5302714",
"0.5300525",
"0.52889854",
"0.52868485",
"0.528591",
"0.5283675",
"0.5278573",
"0.52643543",
"0.52633697",
"0.52424514",
"0.5239026",
"0.52346355",
"0.5226439",
"0.5206625",
"0.51961166",
"0.5195425",
"0.51842827",
"0.5178458",
"0.51697505",
"0.51624256",
"0.51621854",
"0.5159792",
"0.5157788",
"0.5156837",
"0.5144885",
"0.5136314",
"0.5128429",
"0.5122583",
"0.5118509",
"0.51178586",
"0.51146305",
"0.5105841",
"0.50862014",
"0.5084231",
"0.5083689",
"0.50778204",
"0.50659335",
"0.50654376",
"0.5062635",
"0.50564104",
"0.5052123",
"0.5044501",
"0.5042566"
]
| 0.0 | -1 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the org.omg.CORBA.Object method. | public void _servant_postinvoke(ServantObject servant) {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract org.omg.CORBA.Object read_Object();",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface BaseObject {\n}",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"void mo3207a(Object obj);",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"BoundObject(){}",
"public LocalObject() {}",
"OBJECT createOBJECT();",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"public interface StandaloneObject {\n // marker\n}",
"void m21807c(Object obj);",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public abstract Object getUnderlyingObject();",
"void m21809e(Object obj);",
"public Object getObject();",
"void m21805a(Object obj);",
"public Object getObject() ;",
"ObjectRealization createObjectRealization();",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"void m21806b(Object obj);",
"@Override\n public Object getObject()\n {\n return null;\n }",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"void m21808d(Object obj);",
"JITypeLibImpl(IJIComObject comObject/*, JIRemUnknown unknown*/)\n\t{\n\t\tsuper(comObject);\n\t\t//this.comObject = comObject;\n\t}",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}",
"public static void objectDemo() {\n\t}",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface DerivedType extends EObject {\r\n}",
"void marshal(Object obj);",
"Object loadObject() throws Exception;",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"Object getBase();",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"public interface IDomainObject<T> extends IBasicDomainObject {\n\n Long getId();\n\n String getLabel();\n\n void initLazy();\n\n /**\n * Constant that indicates that the object has no id and is therefore to be ignored. \n */\n public static final Long UNASSIGNED_VALUE = Long.MIN_VALUE;\n public static final Long ROOT_USER_ID = new Long(0);\n}",
"void mo67921a(Object obj);",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"com.google.protobuf2.Any getObject();",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public abstract void mo1184a(Object obj);",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"org.omg.CORBA.Object _duplicate();",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"@Override\n public boolean isObject() {\n return false;\n }",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public ObjectReference getObject();",
"public org.omg.CORBA.Object read_Object(Class\n clz) {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"private Object setupDefaultPrototype() {\n }",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public NetObject getObject();",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"public T caseClientInterface(ClientInterface object)\n {\n return null;\n }",
"public T caseDefNonInertia(DefNonInertia object)\n {\n return null;\n }",
"void mo6504by(Object obj);",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"public boolean isObject() {\n return false;\n }",
"public abstract Object mo1185b();",
"Objet getObjetAlloue();",
"public abstract B zzt(Object obj);",
"public Object mo27142b(Object obj) throws C3885b {\n if (obj == null || this.f17268a.isInstance(obj)) {\n return obj;\n }\n throw new C3885b(\"Caller [\" + obj + \"] is not a instance of type [\" + this.f17268a + \"]!\");\n }",
"public T caseObjectDefinition(ObjectDefinition object) {\n\t\treturn null;\n\t}",
"slco.Object getObject2();",
"public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}",
"boolean mo10605a(Object obj);",
"public Value restrictToNotTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= ~NULL;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.FUNCTION || objlabel.getKind() == Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }",
"public T caseServerInterface(ServerInterface object)\n {\n return null;\n }",
"public void mo1774a(Object obj) {\n }",
"public void setObject(XSerial obj);",
"public Object _duplicate() {\n throw new NO_IMPLEMENT(reason);\n }",
"public ExtensibleObject getNativeObject(SoffidObjectType type, String object1, String object2)\n\t\t\tthrows RemoteException, InternalErrorException {\n\t\treturn null;\n\t}",
"public BaseObject()\n\t {\n\t className=\"BaseObject\";\n\t objectName=\"default object\";\n\t }"
]
| [
"0.6512437",
"0.6478393",
"0.6258392",
"0.6256161",
"0.6205298",
"0.615545",
"0.6037277",
"0.60164344",
"0.60033655",
"0.592476",
"0.59009516",
"0.58834183",
"0.5774403",
"0.576282",
"0.57368785",
"0.5734551",
"0.5731212",
"0.57273376",
"0.57109666",
"0.5699425",
"0.56763464",
"0.5660393",
"0.5657711",
"0.56520796",
"0.5645662",
"0.5636351",
"0.5613694",
"0.5613389",
"0.5610663",
"0.5592719",
"0.55823636",
"0.55772597",
"0.55497885",
"0.5533799",
"0.5532259",
"0.55301964",
"0.5528035",
"0.55213237",
"0.55213237",
"0.55213237",
"0.55213237",
"0.5514724",
"0.54860866",
"0.5473442",
"0.54531914",
"0.54445195",
"0.5440005",
"0.5436047",
"0.5424157",
"0.5422005",
"0.54148704",
"0.5412472",
"0.53841144",
"0.53741693",
"0.535929",
"0.53362066",
"0.53308827",
"0.53236",
"0.5302714",
"0.5300525",
"0.52889854",
"0.52868485",
"0.528591",
"0.5283675",
"0.5278573",
"0.52643543",
"0.52633697",
"0.52424514",
"0.5239026",
"0.52346355",
"0.5226439",
"0.5206625",
"0.51961166",
"0.5195425",
"0.51842827",
"0.5178458",
"0.51697505",
"0.51624256",
"0.51621854",
"0.5159792",
"0.5157788",
"0.5156837",
"0.5144885",
"0.5136314",
"0.5128429",
"0.5122583",
"0.5118509",
"0.51178586",
"0.51146305",
"0.5105841",
"0.50862014",
"0.5084231",
"0.5083689",
"0.50778204",
"0.50659335",
"0.50654376",
"0.5062635",
"0.50564104",
"0.5052123",
"0.5044501",
"0.5042566"
]
| 0.0 | -1 |
/ The following methods were added by orbos/980403: Java to IDL Mapping. These are used by RMI over IIOP. Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the org.omg.CORBA.Object method. Called by a stub to obtain an OutputStream for marshaling arguments. The stub must supply the operation name, and indicate if a response is expected (i.e is this a oneway call). | public OutputStream _request(String operation,
boolean responseExpected) {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface ClientRequestInfo extends ClientRequestInfoOperations, org.omg.PortableInterceptor.RequestInfo, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface NativeDefOperations\n\textends org.omg.CORBA.TypedefDefOperations\n{\n}",
"public abstract org.omg.CORBA.Object read_Object();",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface CurrentOperations\n\textends org.omg.CORBA.CurrentOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CORBA.Any get_slot(int id) throws org.omg.PortableInterceptor.InvalidSlot;\n\tvoid set_slot(int id, org.omg.CORBA.Any data) throws org.omg.PortableInterceptor.InvalidSlot;\n}",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public static com.example.aidltest1.MyAIDL asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.example.aidltest1.MyAIDL))) {\nreturn ((com.example.aidltest1.MyAIDL)iin);\n}\nreturn new com.example.aidltest1.MyAIDL.Stub.Proxy(obj);\n}",
"void marshal(Object obj);",
"protected void doInvocation(){\n org.omg.CORBA.portable.Delegate delegate=StubAdapter.getDelegate(\n _target);\n // Initiate Client Portable Interceptors. Inform the PIHandler that\n // this is a DII request so that it knows to ignore the second\n // inevitable call to initiateClientPIRequest in createRequest.\n // Also, save the RequestImpl object for later use.\n _orb.getPIHandler().initiateClientPIRequest(true);\n _orb.getPIHandler().setClientPIInfo(this);\n InputStream $in=null;\n try{\n OutputStream $out=delegate.request(null,_opName,!_isOneWay);\n // Marshal args\n try{\n for(int i=0;i<_arguments.count();i++){\n NamedValue nv=_arguments.item(i);\n switch(nv.flags()){\n case ARG_IN.value:\n nv.value().write_value($out);\n break;\n case ARG_OUT.value:\n break;\n case ARG_INOUT.value:\n nv.value().write_value($out);\n break;\n }\n }\n }catch(Bounds ex){\n throw _wrapper.boundsErrorInDiiRequest(ex);\n }\n $in=delegate.invoke(null,$out);\n }catch(ApplicationException e){\n // REVISIT - minor code.\n // This is already handled in subcontract.\n // REVISIT - uncomment.\n //throw new INTERNAL();\n }catch(RemarshalException e){\n doInvocation();\n }catch(SystemException ex){\n _env.exception(ex);\n // NOTE: The exception should not be thrown.\n // However, JDK 1.4 and earlier threw the exception,\n // so we keep the behavior to be compatible.\n throw ex;\n }finally{\n delegate.releaseReply(null,$in);\n }\n }",
"public interface ICommunicationService\n extends IInterface\n{\n public static abstract class Stub extends Binder\n implements ICommunicationService\n {\n\n static final int TRANSACTION_acquireConnection = 1;\n static final int TRANSACTION_acquireConnectionEx = 8;\n static final int TRANSACTION_deregisterMessageHandler = 3;\n static final int TRANSACTION_getGatewayConnectivity = 9;\n static final int TRANSACTION_getIdentityResolver = 6;\n static final int TRANSACTION_isInitialized = 7;\n static final int TRANSACTION_registerMessageHandler = 2;\n static final int TRANSACTION_removeAckHandler = 11;\n static final int TRANSACTION_routeMessage = 4;\n static final int TRANSACTION_routeMessageFragment = 5;\n static final int TRANSACTION_setAckHandler = 10;\n\n public static ICommunicationService asInterface(IBinder ibinder)\n {\n if (ibinder == null)\n {\n return null;\n }\n IInterface iinterface = ibinder.queryLocalInterface(\"com.amazon.communication.ICommunicationService\");\n if (iinterface != null && (iinterface instanceof ICommunicationService))\n {\n return (ICommunicationService)iinterface;\n } else\n {\n return new Proxy(ibinder);\n }\n }\n\n public IBinder asBinder()\n {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n Object obj1 = null;\n ParcelableStatus parcelablestatus2 = null;\n Object obj = null;\n Object obj2 = null;\n boolean flag = false;\n switch (i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.amazon.communication.ICommunicationService\");\n return true;\n\n case 1: // '\\001'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (ParcelableConnectionPolicy)ParcelableConnectionPolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus2 = new ParcelableStatus();\n obj = acquireConnection(((ParcelableEndpointIdentity) (obj)), ((ParcelableConnectionPolicy) (obj1)), parcel, parcelablestatus2);\n parcel1.writeNoException();\n parcel = obj2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus2 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus2.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = registerMessageHandler(parcel.readInt(), IMessageHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 3: // '\\003'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n deregisterMessageHandler(parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 4: // '\\004'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n routeMessage(((ParcelableEndpointIdentity) (obj)), ((MessageEnvelope) (obj1)), parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 5: // '\\005'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n i = parcel.readInt();\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n if (parcel.readInt() != 0)\n {\n flag1 = true;\n } else\n {\n flag1 = false;\n }\n routeMessageFragment(((ParcelableEndpointIdentity) (obj)), i, ((MessageEnvelope) (obj1)), flag1, parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 6: // '\\006'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n obj = getIdentityResolver();\n parcel1.writeNoException();\n parcel = ((Parcel) (obj1));\n if (obj != null)\n {\n parcel = ((IIdentityResolver) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n return true;\n\n case 7: // '\\007'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag2 = isInitialized();\n parcel1.writeNoException();\n i = ((flag) ? 1 : 0);\n if (flag2)\n {\n i = 1;\n }\n parcel1.writeInt(i);\n return true;\n\n case 8: // '\\b'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n ParcelablePolicy parcelablepolicy;\n ParcelableStatus parcelablestatus1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n parcelablepolicy = (ParcelablePolicy)ParcelablePolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n parcelablepolicy = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus1 = new ParcelableStatus();\n obj = acquireConnectionEx(((ParcelableEndpointIdentity) (obj)), parcelablepolicy, parcel, parcelablestatus1);\n parcel1.writeNoException();\n parcel = parcelablestatus2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus1 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus1.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 9: // '\\t'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n ParcelableStatus parcelablestatus = new ParcelableStatus();\n IGatewayConnectivity igatewayconnectivity = getGatewayConnectivity(parcel, parcelablestatus);\n parcel1.writeNoException();\n parcel = ((Parcel) (obj));\n if (igatewayconnectivity != null)\n {\n parcel = igatewayconnectivity.asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus != null)\n {\n parcel1.writeInt(1);\n parcelablestatus.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 10: // '\\n'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = setAckHandler(com.amazon.communication.rlm.IAckHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 11: // '\\013'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n removeAckHandler();\n parcel1.writeNoException();\n return true;\n }\n }\n\n public Stub()\n {\n attachInterface(this, \"com.amazon.communication.ICommunicationService\");\n }\n }\n\n private static class Stub.Proxy\n implements ICommunicationService\n {\n\n private IBinder mRemote;\n\n public IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelableconnectionpolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelableconnectionpolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_156;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelablepolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelablepolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_157;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IBinder asBinder()\n {\n return mRemote;\n }\n\n public void deregisterMessageHandler(int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_86;\n }\n iconnectionlistener = iconnectionlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(iconnectionlistener);\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n iconnectionlistener = IGatewayConnectivity.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return iconnectionlistener;\n iconnectionlistener = null;\n goto _L1\n iconnectionlistener;\n parcel1.recycle();\n parcel.recycle();\n throw iconnectionlistener;\n }\n\n public IIdentityResolver getIdentityResolver()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IIdentityResolver iidentityresolver;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n iidentityresolver = com.amazon.communication.ir.IIdentityResolver.Stub.asInterface(parcel1.readStrongBinder());\n parcel1.recycle();\n parcel.recycle();\n return iidentityresolver;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor()\n {\n return \"com.amazon.communication.ICommunicationService\";\n }\n\n public boolean isInitialized()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if (i != 0)\n {\n flag = true;\n }\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n if (imessagehandler == null)\n {\n break MISSING_BLOCK_LABEL_73;\n }\n imessagehandler = imessagehandler.asBinder();\n_L1:\n parcel.writeStrongBinder(imessagehandler);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n imessagehandler = null;\n goto _L1\n imessagehandler;\n parcel1.recycle();\n parcel.recycle();\n throw imessagehandler;\n }\n\n public void removeAckHandler()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L3:\n if (messageenvelope == null)\n {\n break MISSING_BLOCK_LABEL_111;\n }\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n_L4:\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L3\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n parcel.writeInt(0);\n goto _L4\n }\n\n public void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag1;\n flag1 = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L6:\n parcel.writeInt(i);\n if (messageenvelope == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n goto _L5\n_L7:\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L5\n_L9:\n i = 0;\n goto _L7\n_L5:\n if (!flag) goto _L9; else goto _L8\n_L8:\n i = ((flag1) ? 1 : 0);\n goto _L7\n }\n\n public int setAckHandler(IAckHandler iackhandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iackhandler == null)\n {\n break MISSING_BLOCK_LABEL_66;\n }\n iackhandler = iackhandler.asBinder();\n_L1:\n int i;\n parcel.writeStrongBinder(iackhandler);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n iackhandler = null;\n goto _L1\n iackhandler;\n parcel1.recycle();\n parcel.recycle();\n throw iackhandler;\n }\n\n Stub.Proxy(IBinder ibinder)\n {\n mRemote = ibinder;\n }\n }\n\n\n public abstract IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract void deregisterMessageHandler(int i)\n throws RemoteException;\n\n public abstract IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IIdentityResolver getIdentityResolver()\n throws RemoteException;\n\n public abstract boolean isInitialized()\n throws RemoteException;\n\n public abstract int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException;\n\n public abstract void removeAckHandler()\n throws RemoteException;\n\n public abstract void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException;\n\n public abstract void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException;\n\n public abstract int setAckHandler(IAckHandler iackhandler)\n throws RemoteException;\n}",
"public abstract Object getInterface(String strInterfaceName_p, Object oObject_p) throws Exception;",
"public interface RoundtripPortTypeB {\n\n public java.lang.Float methodSoapFloat(java.lang.Float inSoapFloat)\n throws java.rmi.RemoteException;\n public java.lang.Double methodSoapDouble(java.lang.Double inSoapDouble)\n throws java.rmi.RemoteException;\n public java.lang.Boolean methodSoapBoolean(java.lang.Boolean inSoapBoolean)\n throws java.rmi.RemoteException;\n public java.lang.Byte methodSoapByte(java.lang.Byte inSoapByte)\n throws java.rmi.RemoteException;\n public java.lang.Short methodSoapShort(java.lang.Short inSoapShort)\n throws java.rmi.RemoteException;\n public java.lang.Integer methodSoapInt(java.lang.Integer inSoapInt)\n throws java.rmi.RemoteException;\n public java.lang.Long methodSoapLong(java.lang.Long inSoapLong)\n throws java.rmi.RemoteException;\n public void throwInvalidTickerException()\n throws InvalidTickerSymbol, \n java.rmi.RemoteException;\n public void throwInvalidTradeExchange()\n throws InvalidCompanyId, InvalidTradeExchange, InvalidTickerSymbol, \n java.rmi.RemoteException;\n\n // Overloading test\n public int getId(BondInvestment investment) throws java.rmi.RemoteException;\n public int getId(Investment investment) throws java.rmi.RemoteException;\n\n public void holderTest(StringHolder sh, BondInvestmentHolder bih);\n}",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}",
"public org.apache.yoko.orb.CORBA.OutputStream preMarshal()\n throws LocationForward {\n // If we have an UpcallReturn object, then invoking upcallBeginReply\n // will eventually result in a call to createOutputStream.\n //\n // If we don't have an UpcallReturn object, then it means a oneway\n // invocation was made for a twoway operation. We return a dummy\n // OutputStream to make the skeleton happy and avoid a crash.\n //\n if (upcallReturn_ != null) {\n org.omg.IOP.ServiceContext[] scl = new org.omg.IOP.ServiceContext[replySCL_\n .size()];\n replySCL_.copyInto(scl);\n upcallReturn_.upcallBeginReply(this, scl);\n } else {\n org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer();\n out_ = new org.apache.yoko.orb.CORBA.OutputStream(buf, in_\n ._OB_codeConverters(), (profileInfo_.major << 8)\n | profileInfo_.minor);\n }\n out_._OB_ORBInstance(this.orbInstance());\n return out_;\n }",
"org.jetbrains.kotlin.backend.common.serialization.proto.IrOperation getOperation();",
"public interface Operation {\n String description();\n void command();\n}",
"public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}",
"public interface ClientRemoteDoor extends Remote{\n public int query_state_door(int id) throws RemoteException;\n\n}",
"public interface TCPProtocolPropertiesOperations extends org.omg.RTCORBA.ProtocolPropertiesOperations {\n int send_buffer_size();\n void send_buffer_size(int arg);\n int recv_buffer_size();\n void recv_buffer_size(int arg);\n boolean keep_alive();\n void keep_alive(boolean arg);\n boolean dont_route();\n void dont_route(boolean arg);\n boolean no_delay();\n void no_delay(boolean arg);\n}",
"public interface FilterFactory extends FilterFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"ISModifyInterface createISModifyInterface();",
"public InputStream _invoke(OutputStream output)\n throws ApplicationException, RemarshalException\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface Operation {\n}",
"void mo29844a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, zzatk zzatk, String str2) throws RemoteException;",
"public interface PrinterPrx extends Ice.ObjectPrx\r\n{\r\n public boolean printPIceBean(PIceBean bean);\r\n\r\n public boolean printPIceBean(PIceBean bean, java.util.Map<String, String> __ctx);\r\n\r\n public Ice.AsyncResult begin_printPIceBean(PIceBean bean);\r\n\r\n public Ice.AsyncResult begin_printPIceBean(PIceBean bean, java.util.Map<String, String> __ctx);\r\n\r\n public Ice.AsyncResult begin_printPIceBean(PIceBean bean, Ice.Callback __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceBean(PIceBean bean, java.util.Map<String, String> __ctx, Ice.Callback __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceBean(PIceBean bean, Callback_Printer_printPIceBean __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceBean(PIceBean bean, java.util.Map<String, String> __ctx, Callback_Printer_printPIceBean __cb);\r\n\r\n public boolean end_printPIceBean(Ice.AsyncResult __result);\r\n\r\n public boolean printPIceMap(java.util.Map<java.lang.String, java.lang.String> map);\r\n\r\n public boolean printPIceMap(java.util.Map<java.lang.String, java.lang.String> map, java.util.Map<String, String> __ctx);\r\n\r\n public Ice.AsyncResult begin_printPIceMap(java.util.Map<java.lang.String, java.lang.String> map);\r\n\r\n public Ice.AsyncResult begin_printPIceMap(java.util.Map<java.lang.String, java.lang.String> map, java.util.Map<String, String> __ctx);\r\n\r\n public Ice.AsyncResult begin_printPIceMap(java.util.Map<java.lang.String, java.lang.String> map, Ice.Callback __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceMap(java.util.Map<java.lang.String, java.lang.String> map, java.util.Map<String, String> __ctx, Ice.Callback __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceMap(java.util.Map<java.lang.String, java.lang.String> map, Callback_Printer_printPIceMap __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceMap(java.util.Map<java.lang.String, java.lang.String> map, java.util.Map<String, String> __ctx, Callback_Printer_printPIceMap __cb);\r\n\r\n public boolean end_printPIceMap(Ice.AsyncResult __result);\r\n\r\n public boolean printPIceBeanArray(PIceBean[] array);\r\n\r\n public boolean printPIceBeanArray(PIceBean[] array, java.util.Map<String, String> __ctx);\r\n\r\n public Ice.AsyncResult begin_printPIceBeanArray(PIceBean[] array);\r\n\r\n public Ice.AsyncResult begin_printPIceBeanArray(PIceBean[] array, java.util.Map<String, String> __ctx);\r\n\r\n public Ice.AsyncResult begin_printPIceBeanArray(PIceBean[] array, Ice.Callback __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceBeanArray(PIceBean[] array, java.util.Map<String, String> __ctx, Ice.Callback __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceBeanArray(PIceBean[] array, Callback_Printer_printPIceBeanArray __cb);\r\n\r\n public Ice.AsyncResult begin_printPIceBeanArray(PIceBean[] array, java.util.Map<String, String> __ctx, Callback_Printer_printPIceBeanArray __cb);\r\n\r\n public boolean end_printPIceBeanArray(Ice.AsyncResult __result);\r\n}",
"org.omg.CORBA.Object _get_interface_def();",
"public static com.itheima.alipay.IALiPayService asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.itheima.alipay.IALiPayService))) {\nreturn ((com.itheima.alipay.IALiPayService)iin);\n}\nreturn new com.itheima.alipay.IALiPayService.Stub.Proxy(obj);\n}",
"public interface AnalyticalServiceOperationsRemoteInterface extends AnalyticalServiceOperationsBusinessInterface, EJBObject {\r\n\r\n}",
"private void writeObject(ObjectOutputStream out) throws IOException {\n\tout.defaultWriteObject();\n\tservID.writeBytes(out);\n }",
"void mo6321a(OutputStream outputStream, Object obj);",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"public interface HelloOperations \n{\n String echoString (String mesg);\n}",
"Stub createStub();",
"public static native void rmi_invoker_void(short remote_method_info, short objID, byte[] buffer, byte offset);",
"protected void send(O operation)\n {\n }",
"@CommandDescription(name=\"createAluno\", kind=CommandKind.Create, requestPrimitive=\"createAluno\", responsePrimitive=\"createAlunoResponse\")\npublic interface CreateAluno extends MessageHandler {\n \n public Aluno createAluno(Aluno toCreate);\n \n}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"public interface ObjMessageIF extends Serializable {\n\n public boolean hasMsgId();\n\n public long getMsgId();\n\n void setMsgId(long msgId);\n\n boolean isResponse();\n\n void setResponse(boolean isReponse);\n\n boolean isError();\n\n void setError(boolean isError);\n\n}",
"public interface InoObject extends JMElement {\r\n\t/** Sets the objects document name. May be null,\r\n * because a document is typically not required.\r\n\t */\r\n public void setInoDocname(String pDocname);\r\n\r\n /** Sets the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public void setInoId(String pId);\r\n\r\n /** Returns the objects document name. May be null,\r\n * because a document is typically not required.\r\n */\r\n public String getInoDocname();\r\n\r\n /** Returns the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public String getInoId();\r\n}",
"@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}",
"void mo29847a(IObjectWrapper iObjectWrapper, zzyd zzyd, zzxz zzxz, String str, zzamv zzamv) throws RemoteException;",
"public interface CallbackClientIntf extends Remote \n{ \n public static final String NAME = \"CallbackClientIntf\";\n\t\n public boolean IsGoodObject(Object Obj1, Object Obj2) throws RemoteException;\n public boolean IsRightValue(long val1, long val2) throws RemoteException, Exception;\n\n}",
"@WebService(targetNamespace = \"http://inf.ind.jdo/\", name = \"IndService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface IndService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"onSaveDispense\", targetNamespace = \"http://inf.ind.jdo/\", className = \"action.spc.client.OnSaveDispense\")\n @WebMethod\n @ResponseWrapper(localName = \"onSaveDispenseResponse\", targetNamespace = \"http://inf.ind.jdo/\", className = \"action.spc.client.OnSaveDispenseResponse\")\n public java.lang.String onSaveDispense(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n}",
"public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}",
"public interface HelloOperations \n{\n String EqOfMotion (String v0, String t, String a);\n void shutdown ();\n}",
"public void writeObject ();",
"void mo29843a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, zzamv zzamv) throws RemoteException;",
"public interface FixedDefOperations\n\textends org.omg.CORBA.IDLTypeOperations\n{\n\t/* constants */\n\t/* operations */\n\tshort digits();\n\tvoid digits(short arg);\n\tshort scale();\n\tvoid scale(short arg);\n}",
"public interface IContextHubService\r\n extends IInterface\r\n{\r\n public static abstract class Stub extends Binder\r\n implements IContextHubService\r\n {\r\n\r\n public static IContextHubService asInterface(IBinder ibinder)\r\n {\r\n if(ibinder == null)\r\n return null;\r\n IInterface iinterface = ibinder.queryLocalInterface(\"android.hardware.location.IContextHubService\");\r\n if(iinterface != null && (iinterface instanceof IContextHubService))\r\n return (IContextHubService)iinterface;\r\n else\r\n return new Proxy(ibinder);\r\n }\r\n\r\n public IBinder asBinder()\r\n {\r\n return this;\r\n }\r\n\r\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\r\n throws RemoteException\r\n {\r\n switch(i)\r\n {\r\n default:\r\n return super.onTransact(i, parcel, parcel1, j);\r\n\r\n case 1598968902: \r\n parcel1.writeString(\"android.hardware.location.IContextHubService\");\r\n return true;\r\n\r\n case 1: // '\\001'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n i = registerCallback(IContextHubCallback.Stub.asInterface(parcel.readStrongBinder()));\r\n parcel1.writeNoException();\r\n parcel1.writeInt(i);\r\n return true;\r\n\r\n case 2: // '\\002'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n parcel = getContextHubHandles();\r\n parcel1.writeNoException();\r\n parcel1.writeIntArray(parcel);\r\n return true;\r\n\r\n case 3: // '\\003'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n parcel = getContextHubInfo(parcel.readInt());\r\n parcel1.writeNoException();\r\n if(parcel != null)\r\n {\r\n parcel1.writeInt(1);\r\n parcel.writeToParcel(parcel1, 1);\r\n } else\r\n {\r\n parcel1.writeInt(0);\r\n }\r\n return true;\r\n\r\n case 4: // '\\004'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n i = parcel.readInt();\r\n if(parcel.readInt() != 0)\r\n parcel = (NanoApp)NanoApp.CREATOR.createFromParcel(parcel);\r\n else\r\n parcel = null;\r\n i = loadNanoApp(i, parcel);\r\n parcel1.writeNoException();\r\n parcel1.writeInt(i);\r\n return true;\r\n\r\n case 5: // '\\005'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n i = unloadNanoApp(parcel.readInt());\r\n parcel1.writeNoException();\r\n parcel1.writeInt(i);\r\n return true;\r\n\r\n case 6: // '\\006'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n parcel = getNanoAppInstanceInfo(parcel.readInt());\r\n parcel1.writeNoException();\r\n if(parcel != null)\r\n {\r\n parcel1.writeInt(1);\r\n parcel.writeToParcel(parcel1, 1);\r\n } else\r\n {\r\n parcel1.writeInt(0);\r\n }\r\n return true;\r\n\r\n case 7: // '\\007'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n i = parcel.readInt();\r\n if(parcel.readInt() != 0)\r\n parcel = (NanoAppFilter)NanoAppFilter.CREATOR.createFromParcel(parcel);\r\n else\r\n parcel = null;\r\n parcel = findNanoAppOnHub(i, parcel);\r\n parcel1.writeNoException();\r\n parcel1.writeIntArray(parcel);\r\n return true;\r\n\r\n case 8: // '\\b'\r\n parcel.enforceInterface(\"android.hardware.location.IContextHubService\");\r\n i = parcel.readInt();\r\n j = parcel.readInt();\r\n break;\r\n }\r\n if(parcel.readInt() != 0)\r\n parcel = (ContextHubMessage)ContextHubMessage.CREATOR.createFromParcel(parcel);\r\n else\r\n parcel = null;\r\n i = sendMessage(i, j, parcel);\r\n parcel1.writeNoException();\r\n parcel1.writeInt(i);\r\n return true;\r\n }\r\n\r\n private static final String DESCRIPTOR = \"android.hardware.location.IContextHubService\";\r\n static final int TRANSACTION_findNanoAppOnHub = 7;\r\n static final int TRANSACTION_getContextHubHandles = 2;\r\n static final int TRANSACTION_getContextHubInfo = 3;\r\n static final int TRANSACTION_getNanoAppInstanceInfo = 6;\r\n static final int TRANSACTION_loadNanoApp = 4;\r\n static final int TRANSACTION_registerCallback = 1;\r\n static final int TRANSACTION_sendMessage = 8;\r\n static final int TRANSACTION_unloadNanoApp = 5;\r\n\r\n public Stub()\r\n {\r\n attachInterface(this, \"android.hardware.location.IContextHubService\");\r\n }\r\n }\r\n\r\n private static class Stub.Proxy\r\n implements IContextHubService\r\n {\r\n\r\n public IBinder asBinder()\r\n {\r\n return mRemote;\r\n }\r\n\r\n public int[] findNanoAppOnHub(int i, NanoAppFilter nanoappfilter)\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n parcel.writeInt(i);\r\n if(nanoappfilter == null)\r\n break MISSING_BLOCK_LABEL_73;\r\n parcel.writeInt(1);\r\n nanoappfilter.writeToParcel(parcel, 0);\r\n_L1:\r\n mRemote.transact(7, parcel, parcel1, 0);\r\n parcel1.readException();\r\n nanoappfilter = parcel1.createIntArray();\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return nanoappfilter;\r\n parcel.writeInt(0);\r\n goto _L1\r\n nanoappfilter;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw nanoappfilter;\r\n }\r\n\r\n public int[] getContextHubHandles()\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n int ai[];\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n mRemote.transact(2, parcel, parcel1, 0);\r\n parcel1.readException();\r\n ai = parcel1.createIntArray();\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return ai;\r\n Exception exception;\r\n exception;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw exception;\r\n }\r\n\r\n public ContextHubInfo getContextHubInfo(int i)\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n parcel.writeInt(i);\r\n mRemote.transact(3, parcel, parcel1, 0);\r\n parcel1.readException();\r\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\r\n_L1:\r\n ContextHubInfo contexthubinfo = (ContextHubInfo)ContextHubInfo.CREATOR.createFromParcel(parcel1);\r\n_L4:\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return contexthubinfo;\r\n_L2:\r\n contexthubinfo = null;\r\n if(true) goto _L4; else goto _L3\r\n_L3:\r\n Exception exception;\r\n exception;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw exception;\r\n }\r\n\r\n public String getInterfaceDescriptor()\r\n {\r\n return \"android.hardware.location.IContextHubService\";\r\n }\r\n\r\n public NanoAppInstanceInfo getNanoAppInstanceInfo(int i)\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n parcel.writeInt(i);\r\n mRemote.transact(6, parcel, parcel1, 0);\r\n parcel1.readException();\r\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\r\n_L1:\r\n NanoAppInstanceInfo nanoappinstanceinfo = (NanoAppInstanceInfo)NanoAppInstanceInfo.CREATOR.createFromParcel(parcel1);\r\n_L4:\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return nanoappinstanceinfo;\r\n_L2:\r\n nanoappinstanceinfo = null;\r\n if(true) goto _L4; else goto _L3\r\n_L3:\r\n Exception exception;\r\n exception;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw exception;\r\n }\r\n\r\n public int loadNanoApp(int i, NanoApp nanoapp)\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n parcel.writeInt(i);\r\n if(nanoapp == null)\r\n break MISSING_BLOCK_LABEL_72;\r\n parcel.writeInt(1);\r\n nanoapp.writeToParcel(parcel, 0);\r\n_L1:\r\n mRemote.transact(4, parcel, parcel1, 0);\r\n parcel1.readException();\r\n i = parcel1.readInt();\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return i;\r\n parcel.writeInt(0);\r\n goto _L1\r\n nanoapp;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw nanoapp;\r\n }\r\n\r\n public int registerCallback(IContextHubCallback icontexthubcallback)\r\n throws RemoteException\r\n {\r\n IBinder ibinder;\r\n Parcel parcel;\r\n Parcel parcel1;\r\n ibinder = null;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n if(icontexthubcallback == null)\r\n break MISSING_BLOCK_LABEL_28;\r\n ibinder = icontexthubcallback.asBinder();\r\n int i;\r\n parcel.writeStrongBinder(ibinder);\r\n mRemote.transact(1, parcel, parcel1, 0);\r\n parcel1.readException();\r\n i = parcel1.readInt();\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return i;\r\n icontexthubcallback;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw icontexthubcallback;\r\n }\r\n\r\n public int sendMessage(int i, int j, ContextHubMessage contexthubmessage)\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n parcel.writeInt(i);\r\n parcel.writeInt(j);\r\n if(contexthubmessage == null)\r\n break MISSING_BLOCK_LABEL_86;\r\n parcel.writeInt(1);\r\n contexthubmessage.writeToParcel(parcel, 0);\r\n_L1:\r\n mRemote.transact(8, parcel, parcel1, 0);\r\n parcel1.readException();\r\n i = parcel1.readInt();\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return i;\r\n parcel.writeInt(0);\r\n goto _L1\r\n contexthubmessage;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw contexthubmessage;\r\n }\r\n\r\n public int unloadNanoApp(int i)\r\n throws RemoteException\r\n {\r\n Parcel parcel;\r\n Parcel parcel1;\r\n parcel = Parcel.obtain();\r\n parcel1 = Parcel.obtain();\r\n parcel.writeInterfaceToken(\"android.hardware.location.IContextHubService\");\r\n parcel.writeInt(i);\r\n mRemote.transact(5, parcel, parcel1, 0);\r\n parcel1.readException();\r\n i = parcel1.readInt();\r\n parcel1.recycle();\r\n parcel.recycle();\r\n return i;\r\n Exception exception;\r\n exception;\r\n parcel1.recycle();\r\n parcel.recycle();\r\n throw exception;\r\n }\r\n\r\n private IBinder mRemote;\r\n\r\n Stub.Proxy(IBinder ibinder)\r\n {\r\n mRemote = ibinder;\r\n }\r\n }\r\n\r\n\r\n public abstract int[] findNanoAppOnHub(int i, NanoAppFilter nanoappfilter)\r\n throws RemoteException;\r\n\r\n public abstract int[] getContextHubHandles()\r\n throws RemoteException;\r\n\r\n public abstract ContextHubInfo getContextHubInfo(int i)\r\n throws RemoteException;\r\n\r\n public abstract NanoAppInstanceInfo getNanoAppInstanceInfo(int i)\r\n throws RemoteException;\r\n\r\n public abstract int loadNanoApp(int i, NanoApp nanoapp)\r\n throws RemoteException;\r\n\r\n public abstract int registerCallback(IContextHubCallback icontexthubcallback)\r\n throws RemoteException;\r\n\r\n public abstract int sendMessage(int i, int j, ContextHubMessage contexthubmessage)\r\n throws RemoteException;\r\n\r\n public abstract int unloadNanoApp(int i)\r\n throws RemoteException;\r\n}",
"public interface RemotInterfaceOperations \n{\n String createDRecord (String managerId, String firstName, String lastName, String address, String phone, String specialization, String location);\n String createNRecord (String managerId, String firstName, String lastName, String designation, String status, String statusDate);\n String getRecordCount (String managerId, int recordType);\n String editRecord (String managerId, String recordID, String fieldName, String newValue);\n String transferRecord (String managerID, String recordID, String remoteClinicServerName);\n}",
"public interface StructuredPushConsumer extends StructuredPushConsumerOperations, CosNotifyComm.NotifyPublish, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface IDogManager extends IInterface {\n String DESCRIPTOR = \"com.afollestad.aidlexample.IDogManager\";\n\n int TRANSACTION_getDogList= IBinder.FIRST_CALL_TRANSACTION+0;\n int TRANSACTION_addDog= IBinder.FIRST_CALL_TRANSACTION+1;\n List<Dog> getDogList() throws RemoteException;\n\n void addDog(Dog dog) throws RemoteException;\n}",
"public interface JavaWriter \r\n{\r\n /**\r\n * Abstract method that takes a WSDLHolder\r\n * and returns back the Java representation.\r\n * The Java representation is returned as\r\n * a SerializedHolder array. Each element\r\n * of the array is a SerializedHolder that\r\n * contains the byte[] representing the Java\r\n * class and the name of the file in the file\r\n * system to write to.\r\n */\r\n public SerializedHolder[] toJava(WSDLHolder wsdl, Options options)\r\n throws JavaHolderException, IOException, WSDLException;\r\n \r\n}",
"void mo29859l(IObjectWrapper iObjectWrapper) throws RemoteException;",
"public interface ProxySkeletonInterface {\n /**\n * Writes a command on the socket by writing the command first\n * and any other object just after.\n *\n * @param command the command\n * @param params the params\n * @throws IOException the io exception\n */\n void writeCommand(CommProtocolCommands command, Object ... params) throws IOException;\n\n /**\n * Reads a command from the socket and executes a reserved\n * portion of code according to the type of command.\n *\n * @param command the command\n * @throws IOException the io exception\n * @throws ClassNotFoundException the class not found exception\n */\n void readCommand(String command) throws IOException, ClassNotFoundException, InterruptedException;\n}",
"public interface LodgingPOIntf extends Remote {\n public String submitLodgingReservationDetails(String poXmlString)\n throws InvalidOrderException, OrderSubmissionException, RemoteException;\n}",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}",
"void mo29845a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, String str2, zzamv zzamv) throws RemoteException;",
"public interface DataReference extends java.rmi.Remote{\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \">\n // #[regen=yes,regenBody=yes,id=DCE.4BCCE1AB-78B5-AA3C-932B-883E5D1775B5]\n // </editor-fold>\n /**\n * Getter for the CreationDate attribute.\n * @return Date\n * @throws java.rmi.RemoteException\n */\n Date getCreationDate()\n throws RemoteException;\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \">\n // #[regen=yes,regenBody=yes,id=DCE.FCABA384-0469-0962-060E-28BE0D0E7C82]\n // </editor-fold>\n /**\n * Getter for the ID attribute.\n * @return int\n * @throws java.rmi.RemoteException\n */\n int getID()\n throws RemoteException;\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \">\n // #[regen=yes,regenBody=yes,id=DCE.86FD70C6-270D-42C5-EFB5-AB6602CF95B1]\n // </editor-fold>\n /**\n * Setter for the CreationDate attribute.\n * @param val\n * @throws java.rmi.RemoteException\n */\n void setCreationDate(Date val)\n throws RemoteException;\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \">\n // #[regen=yes,regenBody=yes,id=DCE.FDCE10AB-E236-B3C7-2407-6A09EA4717F4]\n // </editor-fold>\n /**\n * Setter for the ID attribute.\n * @param val\n * @throws java.rmi.RemoteException\n */\n void setID(int val)\n throws RemoteException;\n \n}",
"void mo13026b() throws RemoteException;",
"void mo13025a() throws RemoteException;",
"Stub.Proxy(IBinder ibinder)\n\t\t{\n\t\t\tmRemote = ibinder;\n\t\t// 2 4:aload_0 \n\t\t// 3 5:aload_1 \n\t\t// 4 6:putfield #19 <Field IBinder mRemote>\n\t\t// 5 9:return \n\t\t}",
"Bundle mo29838Oa() throws RemoteException;",
"public interface CurrentOperations\n\textends org.omg.CORBA.CurrentOperations\n{\n\t/* constants */\n\t/* operations */\n\tvoid begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;\n\tvoid commit(boolean report_heuristics) throws org.omg.CosTransactions.NoTransaction,org.omg.CosTransactions.HeuristicHazard,org.omg.CosTransactions.HeuristicMixed;\n\tvoid rollback() throws org.omg.CosTransactions.NoTransaction;\n\tvoid rollback_only() throws org.omg.CosTransactions.NoTransaction;\n\torg.omg.CosTransactions.Status get_status();\n\tjava.lang.String get_transaction_name();\n\tvoid set_timeout(int seconds);\n\torg.omg.CosTransactions.Control get_control();\n\torg.omg.CosTransactions.Control suspend();\n\tvoid resume(org.omg.CosTransactions.Control which) throws org.omg.CosTransactions.InvalidControl;\n}",
"@WebService(name = \"Servicio\", targetNamespace = \"http://Servicio/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Servicio {\n\n\n /**\n * \n * @return\n * returns java.util.List<servicio.Persona>\n */\n @WebMethod(operationName = \"ListPersons\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ListPersons\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersons\")\n @ResponseWrapper(localName = \"ListPersonsResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersonsResponse\")\n @Action(input = \"http://Servicio/Servicio/ListPersonsRequest\", output = \"http://Servicio/Servicio/ListPersonsResponse\")\n public List<Persona> listPersons();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPerson\")\n @ResponseWrapper(localName = \"readPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/readPersonRequest\", output = \"http://Servicio/Servicio/readPersonResponse\")\n public Object readPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/updatePersonRequest\", output = \"http://Servicio/Servicio/updatePersonResponse\")\n public String updatePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/deletePersonRequest\", output = \"http://Servicio/Servicio/deletePersonResponse\")\n public String deletePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPerson\")\n @ResponseWrapper(localName = \"insertPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/insertPersonRequest\", output = \"http://Servicio/Servicio/insertPersonResponse\")\n public String insertPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n}",
"@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}",
"public interface IPresenceMapping extends android.os.IInterface\n{\n/** Local-side IPC implementation stub class. */\npublic static abstract class Stub extends android.os.Binder implements info.guardianproject.otr.app.im.plugin.IPresenceMapping\n{\nprivate static final java.lang.String DESCRIPTOR = \"info.guardianproject.otr.app.im.plugin.IPresenceMapping\";\n/** Construct the stub at attach it to the interface. */\npublic Stub()\n{\nthis.attachInterface(this, DESCRIPTOR);\n}\n/**\n * Cast an IBinder object into an info.guardianproject.otr.app.im.plugin.IPresenceMapping interface,\n * generating a proxy if needed.\n */\npublic static info.guardianproject.otr.app.im.plugin.IPresenceMapping asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof info.guardianproject.otr.app.im.plugin.IPresenceMapping))) {\nreturn ((info.guardianproject.otr.app.im.plugin.IPresenceMapping)iin);\n}\nreturn new info.guardianproject.otr.app.im.plugin.IPresenceMapping.Stub.Proxy(obj);\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn this;\n}\n@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException\n{\nswitch (code)\n{\ncase INTERFACE_TRANSACTION:\n{\nreply.writeString(DESCRIPTOR);\nreturn true;\n}\ncase TRANSACTION_requireAllPresenceValues:\n{\ndata.enforceInterface(DESCRIPTOR);\nboolean _result = this.requireAllPresenceValues();\nreply.writeNoException();\nreply.writeInt(((_result)?(1):(0)));\nreturn true;\n}\ncase TRANSACTION_getPresenceStatus:\n{\ndata.enforceInterface(DESCRIPTOR);\nboolean _arg0;\n_arg0 = (0!=data.readInt());\njava.lang.String _arg1;\n_arg1 = data.readString();\njava.util.Map _arg2;\njava.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();\n_arg2 = data.readHashMap(cl);\nint _result = this.getPresenceStatus(_arg0, _arg1, _arg2);\nreply.writeNoException();\nreply.writeInt(_result);\nreturn true;\n}\ncase TRANSACTION_getOnlineStatus:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\nboolean _result = this.getOnlineStatus(_arg0);\nreply.writeNoException();\nreply.writeInt(((_result)?(1):(0)));\nreturn true;\n}\ncase TRANSACTION_getUserAvaibility:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\njava.lang.String _result = this.getUserAvaibility(_arg0);\nreply.writeNoException();\nreply.writeString(_result);\nreturn true;\n}\ncase TRANSACTION_getExtra:\n{\ndata.enforceInterface(DESCRIPTOR);\nint _arg0;\n_arg0 = data.readInt();\njava.util.Map _result = this.getExtra(_arg0);\nreply.writeNoException();\nreply.writeMap(_result);\nreturn true;\n}\ncase TRANSACTION_getSupportedPresenceStatus:\n{\ndata.enforceInterface(DESCRIPTOR);\nint[] _result = this.getSupportedPresenceStatus();\nreply.writeNoException();\nreply.writeIntArray(_result);\nreturn true;\n}\n}\nreturn super.onTransact(code, data, reply, flags);\n}\nprivate static class Proxy implements info.guardianproject.otr.app.im.plugin.IPresenceMapping\n{\nprivate android.os.IBinder mRemote;\nProxy(android.os.IBinder remote)\n{\nmRemote = remote;\n}\n@Override public android.os.IBinder asBinder()\n{\nreturn mRemote;\n}\npublic java.lang.String getInterfaceDescriptor()\n{\nreturn DESCRIPTOR;\n}\n/**\n * Tells if the mapping needs all presence values sent in protocol. If this\n * method returns true, the framework will pass all the presence values\n * received from the server when map to the predefined status.\n *\n * @return true if needs; false otherwise.\n */\n@Override public boolean requireAllPresenceValues() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nboolean _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_requireAllPresenceValues, _data, _reply, 0);\n_reply.readException();\n_result = (0!=_reply.readInt());\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n/**\n * Map the presence values sent in protocol to the predefined presence\n * status.\n *\n * @param onlineStatus The value of presence <OnlineStatus> received\n * from the server.\n * @param userAvailability The value of presence <UserAvailibility>\n * received from the server.\n * @param allValues The whole presence values received from the server.\n * @return a predefined status.\n * @see #requireAllPresenceValues()\n */\n@Override public int getPresenceStatus(boolean onlineStatus, java.lang.String userAvailability, java.util.Map allValues) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nint _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(((onlineStatus)?(1):(0)));\n_data.writeString(userAvailability);\n_data.writeMap(allValues);\nmRemote.transact(Stub.TRANSACTION_getPresenceStatus, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readInt();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n/**\n * Gets the value of <OnlineStatus> will be sent to the server when\n * update presence to the predefined status.\n *\n * @param status the predefined status.\n * @return The value of <OnlineStatus> will be sent to the server\n */\n@Override public boolean getOnlineStatus(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nboolean _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getOnlineStatus, _data, _reply, 0);\n_reply.readException();\n_result = (0!=_reply.readInt());\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n/**\n * Gets the value of <UserAvaibility> will be sent to the server when\n * update presence to the predefined status.\n *\n * @param status the predefined status.\n * @return The value of <UserAvaibility> will be sent to the server\n */\n@Override public java.lang.String getUserAvaibility(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.String _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getUserAvaibility, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readString();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n/**\n * Gets the extra presence values other than <OnlineStatus> and\n * <UserAvaibility> will be sent to the server when update presence to\n * the predefined status.\n *\n * @param status the predefined status.\n * @return The extra values that will be sent to the server.\n */\n@Override public java.util.Map getExtra(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.util.Map _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getExtra, _data, _reply, 0);\n_reply.readException();\njava.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();\n_result = _reply.readHashMap(cl);\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n/**\n * Gets an array of the supported presence status. The client can only update\n * presence to the values in the array.\n *\n * @return an array of the supported presence status.\n */\n@Override public int[] getSupportedPresenceStatus() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\nint[] _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_getSupportedPresenceStatus, _data, _reply, 0);\n_reply.readException();\n_result = _reply.createIntArray();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}\n}\nstatic final int TRANSACTION_requireAllPresenceValues = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);\nstatic final int TRANSACTION_getPresenceStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);\nstatic final int TRANSACTION_getOnlineStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);\nstatic final int TRANSACTION_getUserAvaibility = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);\nstatic final int TRANSACTION_getExtra = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);\nstatic final int TRANSACTION_getSupportedPresenceStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);\n}\n/**\n * Tells if the mapping needs all presence values sent in protocol. If this\n * method returns true, the framework will pass all the presence values\n * received from the server when map to the predefined status.\n *\n * @return true if needs; false otherwise.\n */\npublic boolean requireAllPresenceValues() throws android.os.RemoteException;\n/**\n * Map the presence values sent in protocol to the predefined presence\n * status.\n *\n * @param onlineStatus The value of presence <OnlineStatus> received\n * from the server.\n * @param userAvailability The value of presence <UserAvailibility>\n * received from the server.\n * @param allValues The whole presence values received from the server.\n * @return a predefined status.\n * @see #requireAllPresenceValues()\n */\npublic int getPresenceStatus(boolean onlineStatus, java.lang.String userAvailability, java.util.Map allValues) throws android.os.RemoteException;\n/**\n * Gets the value of <OnlineStatus> will be sent to the server when\n * update presence to the predefined status.\n *\n * @param status the predefined status.\n * @return The value of <OnlineStatus> will be sent to the server\n */\npublic boolean getOnlineStatus(int status) throws android.os.RemoteException;\n/**\n * Gets the value of <UserAvaibility> will be sent to the server when\n * update presence to the predefined status.\n *\n * @param status the predefined status.\n * @return The value of <UserAvaibility> will be sent to the server\n */\npublic java.lang.String getUserAvaibility(int status) throws android.os.RemoteException;\n/**\n * Gets the extra presence values other than <OnlineStatus> and\n * <UserAvaibility> will be sent to the server when update presence to\n * the predefined status.\n *\n * @param status the predefined status.\n * @return The extra values that will be sent to the server.\n */\npublic java.util.Map getExtra(int status) throws android.os.RemoteException;\n/**\n * Gets an array of the supported presence status. The client can only update\n * presence to the values in the array.\n *\n * @return an array of the supported presence status.\n */\npublic int[] getSupportedPresenceStatus() throws android.os.RemoteException;\n}",
"public abstract Object mo1185b();",
"@Override public java.lang.String getUserAvaibility(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.lang.String _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getUserAvaibility, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readString();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}",
"void mo29848a(IObjectWrapper iObjectWrapper, zzyd zzyd, zzxz zzxz, String str, String str2, zzamv zzamv) throws RemoteException;",
"public interface Operation {\n\tpublic Message doOperation(Message message);\n\n}",
"public interface ILamportServer extends Remote {\n public String SERVICE_NAME = \"LAMPORT_RMI\"; // Nom du service\n \n /**\n * Envoie un Message REQUEST aux autres serveurs pour annoncer le fait de \n * vouloir rentrer dans la section critique\n * @param message Le message envoyé avec une requête\n * @throws RemoteException \n */\n public void request(Message message) throws RemoteException;\n \n /**\n * Envoi du Message RESPONSE après avoir Reçu le Message REQUEST\n * @param message Le message envoyé avec une réponse\n * @throws RemoteException \n */\n public void response(Message message) throws RemoteException;\n \n /**\n * Envoie du message FREE pour indiquer aux autres serveur que l'on sort de\n * la section critique\n * @param message Le message envoyé pour libérer la section critique\n * @throws RemoteException \n */\n public void freeSC(Message message) throws RemoteException;\n \n /**\n * Métode pour modifier la variable globalle dans tous les serveurs\n * @param newValue La nouvelle valeur de la variable\n * @throws RemoteException \n */\n public void setVariableGlobally(int newValue) throws RemoteException;\n}",
"public interface MarshalBuffer\n{\n /**\n * @param key\n * key\n * @return DBRowColumnTypeReader\n * @see java.util.Map#containsKey(java.lang.Object)\n */\n boolean containsKey(Object key);\n\n /**\n * @return value\n */\n byte get();\n\n /**\n * @param dst\n * dst\n * @return value\n */\n ByteBuffer get(byte[] dst);\n\n /**\n * @param key\n * key\n * @return map\n * @see java.util.Map#get(java.lang.Object)\n */\n DBRowMapPair get(Object key);\n\n /**\n * @return value\n */\n boolean getBoolean(); // NOPMD\n\n /**\n * @return value\n */\n double getDouble();\n\n /**\n * @return value\n */\n int getInt();\n\n /**\n * @return value\n */\n long getLong();\n\n /**\n * @return value\n */\n int getNextSharedIndex();\n\n /**\n * @param index\n * index\n * @return value\n */\n PyBase getShared(int index);\n\n /**\n * @return value\n */\n short getShort(); // NOPMD\n\n /**\n * @throws IllegalOpCodeException\n * on wrong stream format\n */\n void initialize() throws IllegalOpCodeException;\n\n /**\n * @return value\n */\n int parentPosition();\n\n /**\n * @return value\n */\n byte peekByte();\n\n /**\n * @return value\n */\n int position();\n\n /**\n * @return value\n */\n boolean processed();\n\n /**\n * @param key\n * key\n * @param value\n * value\n * @return value\n * @see java.util.Map#put(java.lang.Object, java.lang.Object)\n */\n DBRowMapPair put(PyDBRowDescriptor key, DBRowMapPair value);\n\n /**\n * @param size\n * size\n * @return value\n */\n byte[] readBytes(int size);\n\n /**\n * @param index\n * index\n * @param pyBase\n * pyBase\n * @return value\n */\n PyBase setShared(int index, PyBase pyBase);\n}",
"public interface CommonDispatcher extends javax.ejb.EJBObject {\n\t\n\t/**\n\t * An example business method\n\t * \n\t * @throws EJBException\n\t * Thrown if method fails due to system-level error.\n\t */\n\tpublic DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;\n\tpublic ProcessResult processRequest(VTObject inputDTO) throws java.rmi.RemoteException;\n\t//public DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;\n}",
"public IDLType getSpecialCaseIDLTypeMapping(Class<Object> paramClass) {\n/* 411 */ if (paramClass == null) {\n/* 412 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 415 */ if (paramClass == Object.class) {\n/* 416 */ return new IDLType(paramClass, new String[] { \"java\", \"lang\" }, \"Object\");\n/* */ }\n/* 418 */ if (paramClass == String.class) {\n/* 419 */ return new IDLType(paramClass, new String[] { \"CORBA\" }, \"WStringValue\");\n/* */ }\n/* 421 */ if (paramClass == Class.class) {\n/* 422 */ return new IDLType(paramClass, new String[] { \"javax\", \"rmi\", \"CORBA\" }, \"ClassDesc\");\n/* */ }\n/* 424 */ if (paramClass == Serializable.class) {\n/* 425 */ return new IDLType(paramClass, new String[] { \"java\", \"io\" }, \"Serializable\");\n/* */ }\n/* 427 */ if (paramClass == Externalizable.class) {\n/* 428 */ return new IDLType(paramClass, new String[] { \"java\", \"io\" }, \"Externalizable\");\n/* */ }\n/* 430 */ if (paramClass == Remote.class) {\n/* 431 */ return new IDLType(paramClass, new String[] { \"java\", \"rmi\" }, \"Remote\");\n/* */ }\n/* 433 */ if (paramClass == Object.class) {\n/* 434 */ return new IDLType(paramClass, \"Object\");\n/* */ }\n/* 436 */ return null;\n/* */ }",
"private native int cmdXfer0(byte[] request, byte[] response);",
"public interface OnOperationResult {\n\n void onOperationResult(Pojo pojo);\n}",
"@FunctionalInterface\r\npublic interface ThrowingInvokeHandler<X extends Throwable> extends InvokeHandler\r\n{\r\n @Override\r\n @SneakyThrows\r\n default org.omg.CORBA.portable.OutputStream _invoke(java.lang.String method,\r\n org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.ResponseHandler handler)\r\n {\r\n return try_invoke(method, input, handler);\r\n }\r\n\r\n /**\r\n * Invoked by the ORB to dispatch a request to the servant.\r\n *\r\n * ORB passes the method name, an InputStream containing the marshalled\r\n * arguments, and a ResponseHandler which the servant uses to construct a proper\r\n * reply.\r\n *\r\n * Only CORBA SystemException may be thrown by this method.\r\n *\r\n * The method must return an OutputStream created by the ResponseHandler which\r\n * contains the marshalled reply.\r\n *\r\n * A servant must not retain a reference to the ResponseHandler beyond the\r\n * lifetime of a method invocation.\r\n *\r\n * Servant behaviour is defined as follows:\r\n * <p>\r\n * 1. Determine correct method, and unmarshal parameters from InputStream.\r\n * <p>\r\n * 2. Invoke method implementation.\r\n * <p>\r\n * 3. If no user exception, create a normal reply using ResponseHandler.\r\n * <p>\r\n * 4. If user exception occurred, create exception reply using ResponseHandler.\r\n * <p>\r\n * 5. Marshal reply into OutputStream returned by ResponseHandler.\r\n * <p>\r\n * 6. Return OutputStream to ORB.\r\n * <p>\r\n * \r\n * @param method The method name.\r\n * @param input The <code>InputStream</code> containing the marshalled\r\n * arguments.\r\n * @param handler The <code>ResponseHandler</code> which the servant uses to\r\n * construct a proper reply\r\n * @return The <code>OutputStream</code> created by the ResponseHandler which\r\n * contains the marshalled reply\r\n * @throws SystemException is thrown when invocation fails due to a CORBA system\r\n * exception.\r\n *\r\n * @throws X any exception that may be thrown.\r\n */\r\n org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;\r\n}",
"@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public interface ServeurCORBA {\n\t\n\t// ################################ METHODE DE CREATION / ENVOI / SUPPRESSION ################################ \n\t\n\t/**\n\t * @param idee\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void creerIdee(final IIdee idee, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void envoyerIdee(final IIdee idee, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void supprimerIdee(final IIdee idee, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param tache\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void creerTache(final IIdee idee, final ITache tache, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tache\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void envoyerTache(final ITache tache, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tache\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void supprimerTache(final ITache tache, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param projet\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void creerProjet(final IIdee idee, final IProjet projet, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param projet\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void envoyerProjet(final IProjet projet, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param projet\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void supprimerProjet(final IProjet projet, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param contexte\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void creerContexte(final IObjetServeur contexte, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param contexte\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void envoyerContexte(final IObjetServeur contexte, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param contexte\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void supprimerContexte(final IObjetServeur contexte, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tag\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void creerTag(final ITag tag, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tag\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void envoyerTag(final ITag tag, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tag\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void supprimerTag(final ITag tag, final String identification, final CallBack<String> callback);\n\t\n\t\n\t// ################################ METHODE DE MODIFICATION ################################\n\t\n\t\n\tpublic void ajouterTacheAProjet(final ITache tache, final IProjet projet, final String identification, CallBack<String> callback);\n\tpublic void retirerTacheDuProjet(final ITache tache, final IProjet projet, final String identification, CallBack<String> callback);\n\n\tpublic void ajouterParticipantAuProjet(final IProjet projet, final IParticipant nom, final String identification, final CallBack<String> callback);\n\tpublic void supprimerParticipantDuProjet(final IProjet projet, final IParticipant nom, final String identification, final CallBack<String> callback);\n\n\tpublic void ajouterParticipantDuProjetATache(final IProjet projet, final IParticipant nom, final ITache tache, final String identification, final CallBack<String> callback);\n\tpublic void retirerParticipantDeLaTache(final IParticipant nom, final ITache tache, final String identification, final CallBack<String> callback);\n\t\n\t\n\t// ################################ METHODE DE RECUPERATION ################################\n\t\n\t\n\tpublic void downloadInbox(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadInbox(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadPoubelle(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadPoubelle(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadArchive(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadArchive(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadProchainesTaches(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadProchainesTaches(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadProchainesTaches(final IObjetServeur contexte, final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadProchainesTaches(final IObjetServeur contexte, final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadCalendrier(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadCalendrier(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadTacheParTag(final Date date, final ITag tag, final String identification, final CallBack<String> callback);\n\tpublic void downloadTacheParTag(final ITag tag, final String identification, final CallBack<String> callback);\n\t\n\t\n\t// ################################ METHODE DE GESTION DE COMPTE ################################\n\t\n\t\n\tpublic void creerCompte(final String username, final String password, final String pseudo, final String identification, final CallBack<String> callback);\n\tpublic void supprimerCompte(final String username, final String password, final String identification, final CallBack<String> callback);\n\n\tpublic void modifierPseudo(final String pseudo, final String identification, final CallBack<String> callback);\n\tpublic void modifierUsername(final String username, final String identification, final CallBack<String> callback);\n\tpublic void modifierMotDePasse(final String oldpPassword, final String newPassword, final String identification, final CallBack<String> callback);\n\n\tpublic void login(final String username, final String password, final String identification, final CallBack<String> callback);\n\tpublic void disconnect(final String identification, final CallBack<String> callback);\n\t\n\tpublic void downloadListeParticipant(final String identification, final CallBack<List<AbstractParticipant>> callback);\n\t\n\tpublic void downloadLog(final Date date, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadLog(final String identification, final CallBack<List<String>> callback);\n\t\n\t\n\t// ################################ METHODE ADMINISTRATEUR ################################\n\t\n\t\n\tpublic void downloadLogAdmin(final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadInbox(final String username, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadTaches(final String username, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadProjets(final String username, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadLog(final String username, final String identification, final CallBack<List<String>> callback);\n}",
"public interface C3222n extends IInterface {\n /* renamed from: a */\n void mo13025a() throws RemoteException;\n\n /* renamed from: b */\n void mo13026b() throws RemoteException;\n}",
"public interface IProtocol {\r\n int ADD_ELEMENT = 2100; // parent, 0, Elements.Extra\r\n\r\n int CLEAR_CHILDREN = 2005; // parent\r\n\r\n int CONTROL_ABOUT = 3001;\r\n\r\n int CONTROL_DELETE_SAVE = 3003;\r\n\r\n // int CONTROL_RESTART = 3004;\r\n int CONTROL_FORCE_CLICK = 3005;\r\n\r\n int CONTROL_HELP = 3002;\r\n\r\n // int UPDATE_SCROLL = 5;\r\n int DISPLAY_TOAST = 2001; // OBJ = text\r\n\r\n int ON_CLICK = 1101; // OBJ = view\r\n\r\n int ON_CREATE = 1001; // OBJ = bundle\r\n\r\n int ON_DESTROY = 1006;\r\n\r\n int ON_PAUSE = 1004;\r\n\r\n int ON_RESUME = 1003;\r\n\r\n int ON_START = 1002;\r\n\r\n int ON_STOP = 1005;\r\n\r\n int ON_TOUCH_EVENT = 1103;\r\n\r\n int SET_THEME = 5001;\r\n\r\n int SHOW_HELP_PAGE = 4001;\r\n\r\n int SHOW_LICENSE = 4002;\r\n\r\n int UPDATE_COLOR = 2;\r\n\r\n int UPDATE_ENABLED = 3;\r\n\r\n int UPDATE_INFLATE = 4;\r\n\r\n int UPDATE_TEXT = 1;\r\n\r\n int UPDATE_VIEW = 0;\r\n}",
"@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}",
"public interface I13nAct extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.StorageCard getAgregate() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.StorageCardKey getAgregateKey() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.Integer\n * @exception String The exception description.\n */\njava.lang.Integer getAgregateresource() throws java.rmi.RemoteException;\n/**\n * \n * @return java.lang.String\n * @exception String The exception description.\n */\njava.lang.String getAgregateserial() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nActResourceSet2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic java.util.Enumeration getI13nActResourceSet() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named I13nDateSaving2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic java.util.Enumeration getI13nDateSaving() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * \n * @return java.lang.Boolean\n * @exception String The exception description.\n */\njava.lang.Boolean getRecalcagrprice() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.Worker getTechStuff() throws java.rmi.RemoteException, javax.ejb.FinderException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\ncom.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid privateSetAgregateKey(com.hps.july.persistence.StorageCardKey inKey) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid privateSetTechStuffKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nActResourceSet2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryAddI13nActResourceSet(com.hps.july.persistence.I13nActResourceSet anI13nActResourceSet) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nDateSaving2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryAddI13nDateSaving(com.hps.july.persistence.I13nDateSaving anI13nDateSaving) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nActResourceSet2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryRemoveI13nActResourceSet(com.hps.july.persistence.I13nActResourceSet anI13nActResourceSet) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nDateSaving2I13nAct. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\npublic void secondaryRemoveI13nDateSaving(com.hps.july.persistence.I13nDateSaving anI13nDateSaving) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid secondarySetAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Agregate. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid setAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.Integer\n * @exception String The exception description.\n */\nvoid setAgregateresource(java.lang.Integer newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.String\n * @exception String The exception description.\n */\nvoid setAgregateserial(java.lang.String newValue) throws java.rmi.RemoteException;\n/**\n * \n * @return void\n * @param newValue java.lang.Boolean\n * @exception String The exception description.\n */\nvoid setRecalcagrprice(java.lang.Boolean newValue) throws java.rmi.RemoteException;\n/**\n * This method was generated for supporting the association named I13nAct2Techstuff. \n * \tIt will be deleted/edited when the association is deleted/edited.\n */\n/* WARNING: THIS METHOD WILL BE REGENERATED. */\nvoid setTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;\n}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface Output {\n\n void putString(String string);\n\n // Basic Data Types\n /**\n * Write number\n *\n * @param num\n * Number\n */\n void writeNumber(Number num);\n\n /**\n * Write boolean\n *\n * @param bol\n * Boolean\n */\n void writeBoolean(Boolean bol);\n\n /**\n * Write string\n *\n * @param string\n * String\n */\n void writeString(String string);\n\n /**\n * Write date\n *\n * @param date\n * Date\n */\n void writeDate(Date date);\n\n void writeNull();\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Collection<?> array);\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object[] array);\n\n /**\n * Write primitive array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object array);\n\n /**\n * Write map.\n *\n * @param map\n * Map to write\n */\n void writeMap(Map<Object, Object> map);\n\n /**\n * Write array as map.\n *\n * @param array\n * Array to write\n */\n void writeMap(Collection<?> array);\n\n /**\n * Write object.\n *\n * @param object\n * Object to write\n */\n void writeObject(Object object);\n\n /**\n * Write map as object.\n *\n * @param map\n * Map to write\n */\n void writeObject(Map<Object, Object> map);\n\n /**\n * Write recordset.\n *\n * @param recordset\n * Recordset to write\n */\n void writeRecordSet(RecordSet recordset);\n\n /**\n * Write XML object\n *\n * @param xml\n * XML document\n */\n void writeXML(Document xml);\n\n /**\n * Write ByteArray object (AMF3 only).\n *\n * @param array\n * object to write\n */\n void writeByteArray(ByteArray array);\n\n /**\n * Write a Vector<int>.\n *\n * @param vector\n * vector\n */\n void writeVectorInt(Vector<Integer> vector);\n\n /**\n * Write a Vector<uint>.\n *\n * @param vector\n * vector\n */\n void writeVectorUInt(Vector<Long> vector);\n\n /**\n * Write a Vector<Number>.\n *\n * @param vector\n * vector\n */\n void writeVectorNumber(Vector<Double> vector);\n\n /**\n * Write a Vector<Object>.\n *\n * @param vector\n * vector\n */\n void writeVectorObject(Vector<Object> vector);\n\n /**\n * Write reference to complex data type\n *\n * @param obj\n * Referenced object\n */\n void writeReference(Object obj);\n\n /**\n * Whether object is custom\n *\n * @param custom\n * Object\n * @return true if object is of user type, false otherwise\n */\n boolean isCustom(Object custom);\n\n /**\n * Write custom (user) object\n *\n * @param custom\n * Custom data type object\n */\n void writeCustom(Object custom);\n\n /**\n * Clear references\n */\n void clearReferences();\n}"
]
| [
"0.7027975",
"0.7018201",
"0.6992541",
"0.6598768",
"0.65594757",
"0.64360964",
"0.64206886",
"0.6283484",
"0.62587094",
"0.6220442",
"0.6159027",
"0.6131056",
"0.61002135",
"0.5964443",
"0.5855978",
"0.58089626",
"0.58030397",
"0.57995635",
"0.57565045",
"0.56611735",
"0.5637758",
"0.5625613",
"0.55237836",
"0.5518911",
"0.5494729",
"0.5478902",
"0.5472039",
"0.5457218",
"0.54534507",
"0.54530466",
"0.5450219",
"0.5445806",
"0.5433251",
"0.53681225",
"0.535243",
"0.5345873",
"0.53387994",
"0.5332577",
"0.5317174",
"0.5310755",
"0.53020537",
"0.53014827",
"0.53003377",
"0.5297694",
"0.5297255",
"0.5285105",
"0.52833426",
"0.5282071",
"0.5273062",
"0.5267525",
"0.52573794",
"0.52530897",
"0.5245669",
"0.52295953",
"0.5221465",
"0.52188087",
"0.52176",
"0.5213098",
"0.520248",
"0.5202196",
"0.51981956",
"0.51955885",
"0.51876104",
"0.51869243",
"0.5186514",
"0.5186185",
"0.5185521",
"0.51823443",
"0.51776254",
"0.51572883",
"0.5147452",
"0.5142664",
"0.5133342",
"0.5131605",
"0.512793",
"0.5127643",
"0.5115449",
"0.5112088",
"0.5106857",
"0.51048094",
"0.51023626",
"0.51010394",
"0.509835",
"0.50954217",
"0.50927883",
"0.50909585",
"0.50794244",
"0.5074102",
"0.5073156",
"0.5073062",
"0.50717664",
"0.50708055",
"0.506964",
"0.50694484",
"0.50683326",
"0.50668156",
"0.5063917",
"0.50622505",
"0.5051298",
"0.5040474",
"0.5038244"
]
| 0.0 | -1 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the org.omg.CORBA.Object method. Called to invoke an operation. The stub provides an OutputStream that was previously returned by a _request() call. _invoke returns an InputStream which contains the marshaled reply. If an exception occurs, _invoke may throw an ApplicationException object which contains an InputStream from which the user exception state may be unmarshaled. | public InputStream _invoke(OutputStream output)
throws ApplicationException, RemarshalException
{
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;",
"protected void doInvocation(){\n org.omg.CORBA.portable.Delegate delegate=StubAdapter.getDelegate(\n _target);\n // Initiate Client Portable Interceptors. Inform the PIHandler that\n // this is a DII request so that it knows to ignore the second\n // inevitable call to initiateClientPIRequest in createRequest.\n // Also, save the RequestImpl object for later use.\n _orb.getPIHandler().initiateClientPIRequest(true);\n _orb.getPIHandler().setClientPIInfo(this);\n InputStream $in=null;\n try{\n OutputStream $out=delegate.request(null,_opName,!_isOneWay);\n // Marshal args\n try{\n for(int i=0;i<_arguments.count();i++){\n NamedValue nv=_arguments.item(i);\n switch(nv.flags()){\n case ARG_IN.value:\n nv.value().write_value($out);\n break;\n case ARG_OUT.value:\n break;\n case ARG_INOUT.value:\n nv.value().write_value($out);\n break;\n }\n }\n }catch(Bounds ex){\n throw _wrapper.boundsErrorInDiiRequest(ex);\n }\n $in=delegate.invoke(null,$out);\n }catch(ApplicationException e){\n // REVISIT - minor code.\n // This is already handled in subcontract.\n // REVISIT - uncomment.\n //throw new INTERNAL();\n }catch(RemarshalException e){\n doInvocation();\n }catch(SystemException ex){\n _env.exception(ex);\n // NOTE: The exception should not be thrown.\n // However, JDK 1.4 and earlier threw the exception,\n // so we keep the behavior to be compatible.\n throw ex;\n }finally{\n delegate.releaseReply(null,$in);\n }\n }",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"public abstract org.omg.CORBA.Object read_Object();",
"@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws UnknownHostException, IOException, ClassNotFoundException {\n\t\tSocket sock = new Socket(IP_adr, Port);\n\t\tCommunicationModule cm = new CommunicationModule();\n\n\t\tTranSegment seg = new TranSegment(Obj_Key, method.getName(), args);\n\n\t\tboolean s = cm.SendObj(sock, seg);\n\t\tif (s) {\n\t\t\t//Get the invoking result returned from server end\n\t\t\tObject result = cm.RecObj(sock);\n\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}",
"protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 116 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is));\n/* 117 */ return doReadRemoteInvocation(ois);\n/* */ }",
"protected RemoteInvocation readRemoteInvocation(HttpExchange exchange, InputStream is)\r\n/* 44: */ throws IOException, ClassNotFoundException\r\n/* 45: */ {\r\n/* 46:110 */ ObjectInputStream ois = createObjectInputStream(decorateInputStream(exchange, is));\r\n/* 47:111 */ return doReadRemoteInvocation(ois);\r\n/* 48: */ }",
"@FunctionalInterface\r\npublic interface ThrowingInvokeHandler<X extends Throwable> extends InvokeHandler\r\n{\r\n @Override\r\n @SneakyThrows\r\n default org.omg.CORBA.portable.OutputStream _invoke(java.lang.String method,\r\n org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.ResponseHandler handler)\r\n {\r\n return try_invoke(method, input, handler);\r\n }\r\n\r\n /**\r\n * Invoked by the ORB to dispatch a request to the servant.\r\n *\r\n * ORB passes the method name, an InputStream containing the marshalled\r\n * arguments, and a ResponseHandler which the servant uses to construct a proper\r\n * reply.\r\n *\r\n * Only CORBA SystemException may be thrown by this method.\r\n *\r\n * The method must return an OutputStream created by the ResponseHandler which\r\n * contains the marshalled reply.\r\n *\r\n * A servant must not retain a reference to the ResponseHandler beyond the\r\n * lifetime of a method invocation.\r\n *\r\n * Servant behaviour is defined as follows:\r\n * <p>\r\n * 1. Determine correct method, and unmarshal parameters from InputStream.\r\n * <p>\r\n * 2. Invoke method implementation.\r\n * <p>\r\n * 3. If no user exception, create a normal reply using ResponseHandler.\r\n * <p>\r\n * 4. If user exception occurred, create exception reply using ResponseHandler.\r\n * <p>\r\n * 5. Marshal reply into OutputStream returned by ResponseHandler.\r\n * <p>\r\n * 6. Return OutputStream to ORB.\r\n * <p>\r\n * \r\n * @param method The method name.\r\n * @param input The <code>InputStream</code> containing the marshalled\r\n * arguments.\r\n * @param handler The <code>ResponseHandler</code> which the servant uses to\r\n * construct a proper reply\r\n * @return The <code>OutputStream</code> created by the ResponseHandler which\r\n * contains the marshalled reply\r\n * @throws SystemException is thrown when invocation fails due to a CORBA system\r\n * exception.\r\n *\r\n * @throws X any exception that may be thrown.\r\n */\r\n org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;\r\n}",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}",
"public Object invoke(InvocationRequest invocation) throws Throwable\n {\n if(log.isTraceEnabled())\n {\n log.trace(\"Using local client invoker for invocation.\");\n }\n\n InvocationRequest localInvocation = invocation;\n\n if(byValue)\n {\n localInvocation = marshallInvocation(localInvocation);\n }\n\n Object ret = null;\n if(serverInvoker != null)\n {\n try\n {\n ret = serverInvoker.invoke(localInvocation);\n }\n catch (ServerInvoker.InvalidStateException invalidStateEx)\n {\n if(log.isTraceEnabled())\n {\n log.trace(\"Error calling on \" + serverInvoker + \" because is in invalid state. Will retry with new server invoker.\");\n }\n\n ServerInvoker newServerInvoker = null;\n\n // try to get new server invoker if one exists\n ServerInvoker[] invokers = InvokerRegistry.getServerInvokers();\n if(invokers != null)\n {\n for(int x = 0; x < invokers.length; x++)\n {\n ServerInvoker svrinvoker = invokers[x];\n InvokerLocator svrlocator = svrinvoker.getLocator();\n if(getLocator().equals(svrlocator))\n {\n newServerInvoker = svrinvoker;\n break;\n }\n }\n }\n // if new server invoker found, try invocation call again\n if(newServerInvoker != null)\n {\n serverInvoker = newServerInvoker;\n ret = serverInvoker.invoke(localInvocation);\n }\n else\n {\n throw invalidStateEx;\n }\n }\n }\n else\n {\n throw new ConnectionFailedException(\"Error invoking on server because \" +\n \"no local server to call upon.\");\n }\n\n return ret;\n }",
"protected RemoteInvocation readRemoteInvocation(HttpExchange exchange)\n/* */ throws IOException, ClassNotFoundException\n/* */ {\n/* 97 */ return readRemoteInvocation(exchange, exchange.getRequestBody());\n/* */ }",
"InvocationResult invoke(RemoteService service, MethodInvocation invocation);",
"public Object invoke(MethodInvocation invocation)\r\n/* 97: */ throws Throwable\r\n/* 98: */ {\r\n/* 99:187 */ Context ctx = this.exposeAccessContext ? getJndiTemplate().getContext() : null;\r\n/* 100: */ try\r\n/* 101: */ {\r\n/* 102:189 */ return invokeInContext(invocation);\r\n/* 103: */ }\r\n/* 104: */ finally\r\n/* 105: */ {\r\n/* 106:192 */ getJndiTemplate().releaseContext(ctx);\r\n/* 107: */ }\r\n/* 108: */ }",
"protected RemoteInvocation readRemoteInvocation(HttpExchange exchange)\r\n/* 38: */ throws IOException, ClassNotFoundException\r\n/* 39: */ {\r\n/* 40: 91 */ return readRemoteInvocation(exchange, exchange.getRequestBody());\r\n/* 41: */ }",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"@Override\r\n \tpublic Object invoke(Object arg0, Method arg1, Object[] arg2)\r\n \t\t\tthrows Throwable {\n \t\tString urlfortheobject = baseUrl+methodToID(arg1);\r\n \t\t\r\n \t\t// Get the IRemoteRestCall object for this method...\r\n\t\tClientResource cr = new ClientResource(urlfortheobject);\r\n \t\tIRemoteRestCall resource = cr.wrap(IRemoteRestCall.class, arg1.getReturnType());\r\n \t\t\r\n \t\t// Call\r\n \t\tObject returnObject = resource.doCall(arg2);\r\n\t\tcr.release();\r\n \t\t\r\n \t\t// return\r\n \t\treturn returnObject;\r\n \t}",
"public Object invoke( Object proxy, Method method, Object[] args ) \n throws Throwable {\n try {\n if (method.getName().equals(\"getInputStream\")) { \n return this.getInputStream(); \n } else if (method.getName().equals(\"getInputSource\")) { \n return this.getInputSource(); \n } else if (method.getName().equals(\"getSystemId\")) {\n return this.getSystemId();\n } else if(method.getName().equals(\"recycle\")) { \n this.recycle(); \n return null; \n } else if(method.getName().equals(\"toSAX\")) { \n this.toSAX((ContentHandler) args[0]); \n return null; \n } else{\n return method.invoke(source, args);\n }\n }\n catch ( InvocationTargetException e ){\n throw e.getTargetException();\n }\n }",
"@Override\n public byte[] handleBinaryRequest(byte[] request) throws IOException, AutomationException {\n serverLog.addMessage(3, 200,\n \"Request received in Sample Object Interceptor for handleBinaryRequest\");\n\n /*\n * Add code to manipulate Binary requests from desktop here\n */\n\n IRequestHandler requestHandler = soiHelper.findRequestHandlerDelegate(so);\n if (requestHandler != null) {\n return requestHandler.handleBinaryRequest(request);\n }\n\n return null;\n }",
"public ServantObject servant_preinvoke(org.omg.CORBA.Object self,\n String operation,\n Class expectedType);",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"@Override\n public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable {\n if (method.getDeclaringClass() == Object.class) {\n return method.invoke(this, args);\n }\n ServiceMethod<Object, Object> serviceMethod =\n (ServiceMethod<Object, Object>) loadServiceMethod(method);\n ServiceCall<Object> serviceCall = new ServiceCall<>(serviceMethod, args);\n return serviceMethod.adapt(serviceCall, args);\n }",
"public abstract Object invoke(T target , Method method , Object[] args) throws Throwable;",
"@ReflectiveMethod(name = \"E\", types = {})\n public void E(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public void invoke(Object service, XMLStreamReader in, XMLStreamWriter out)\n throws IOException, XMLStreamException, Throwable\n {\n }",
"public ReplyInterface perform(RequestInterface request) throws ProtocolException, ResourceException {\n return null;\n }",
"public Object invoke(String name, Object... args) throws Exception;",
"public InvokeReply() {\n super(ProtocolOpcode.INVOKE_REPLY);\n }",
"public InvokeReply(KSNSerializableInterface v) {\n super(ProtocolOpcode.INVOKE_REPLY);\n returnValue = v;\n }",
"@Override\r\n\tpublic Object request(Invocation invocation) throws Exception {\n\t\tRpcRequest req=new RpcRequest();\r\n\t\treq.setId(UUID.randomUUID().toString());\r\n\t\treq.setArgs(invocation.getAgrs());\r\n\t\treq.setMethod(invocation.getMethod().getName());\r\n\t\treq.setParameterTypes(invocation.getMethod().getParameterTypes());\r\n\t\treq.setType(invocation.getInterface());\r\n\t\treq.setAsyn(invocation.isAsyn());\r\n\t\tCompletableFuture<Object> result=new CompletableFuture<>();\r\n\t\tclientPool.borrowObject().request(req,result);\r\n\t\tif(invocation.isAsyn()){\r\n\t\t\treturn result;\r\n\t\t}else{\r\n\t\t\treturn result.get();\r\n\t\t}\r\n\r\n\r\n\t}",
"private SOAPBody createSOAPBodyOdiInvoke() throws Exception {\r\n MessageFactory messageFactory = MessageFactory.newInstance();\r\n soapRequestMessage = messageFactory.createMessage();\r\n SOAPPart soapPart = soapRequestMessage.getSOAPPart();\r\n\r\n // add soap envelope and name space declaration\r\n SOAPEnvelope envelope = soapPart.getEnvelope();\r\n envelope.addNamespaceDeclaration(\"odi\", \"xmlns.oracle.com/odi/OdiInvoke/\");\r\n \r\n // get SOAP body\r\n return envelope.getBody();\r\n }",
"private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }",
"public Object invoke( Object[] args )\n {\n return invokeFromBytecode(args);\n }",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"Result invoke(Invoker<?> invoker, Invocation invocation);",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"public MuleMessage intercept(Invocation invocation) throws MuleException\n {\n // Invoke method\n Object result;\n MuleEvent event = RequestContext.getEvent();\n\n try\n {\n //Use the overriding entrypoint resolver if one is set\n if (service.getEntryPointResolverSet() != null)\n {\n result = service.getEntryPointResolverSet().invoke(pojoService, RequestContext.getEventContext());\n\n }\n else\n {\n result = entryPointResolver.invoke(pojoService, RequestContext.getEventContext());\n }\n }\n catch (Exception e)\n {\n // should all Exceptions caught here be a ServiceException?!?\n // TODO MULE-863: See above\n throw new ServiceException(RequestContext.getEventContext().getMessage(), service, e);\n }\n\n MuleMessage resultMessage = null;\n if (result instanceof VoidResult)\n {\n //This will rewire the current message\n event.transformMessage();\n resultMessage = event.getMessage();\n }\n else if (result != null)\n {\n if (result instanceof MuleMessage)\n {\n resultMessage = (MuleMessage) result;\n }\n else\n {\n event.getMessage().applyTransformers(\n Collections.singletonList(\n new TransformerTemplate(\n new TransformerTemplate.OverwitePayloadCallback(result))));\n resultMessage = event.getMessage();\n }\n }\n return resultMessage;\n }",
"public NetObject getObject();",
"public Void getObject() throws NotImplementedException, TimeoutException,\n NoSuccessException {\n throw new NoSuccessException(\"getObject() called on Job\");\n }",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"public boolean invoke(Invocation invocation)\n throws IllegalArgumentException, IOException,\n ContentHandlerException, SecurityException\n {\n return invoke(invocation, null);\n }",
"protected HttpResponse executeRequest(\n\t\t\tRPCRequest invocation, MethodInvocation originalInvocation) throws Exception {\n\t\treturn executeRequest(invocation);\n\t}",
"@Override\n public Map<String, Object> invoke(String id, String methodName, String requestType, List<ParaMeta> paraList) throws MSClientException {\n ReferenceServiceWarp referenceService = msCache.get(id);\n if(null==referenceService){\n throw new MSClientException(MSErrorType.MS_NOT_INIT_EXP);\n }\n InvokeContext context = new InvokeContext();\n context.setMethodName(methodName);\n context.setRequestType(requestType);\n context.setParaList(paraList);\n Command command = commandFactory.create(referenceService.getService(), context);\n Map<String, Object> result = null;\n try {\n result = command.execute();\n } catch (Exception e){\n if(null!=context.getExp()){\n throw MSExceptionHelpr.generateDsException(context.getExp());\n }\n throw MSExceptionHelpr.generateDsException(e);\n }finally {\n context = null;\n }\n return result;\n }",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"@Override\n public Object getReturnValue(){\n return object;\n }",
"public Object invoke(ByteQue fun, Class<?> retType) throws IOException, UnsupportedOperationException {\n socket.getOutputStream().write(new SendData(fun).toArray());\n RecvBuf recv = new RecvBuf();\n byte[] buf = new byte[1024];\n while (true) {\n if (recv.size() != null && recv.size() == recv.len()) {\n break;\n }\n int read = socket.getInputStream().read(buf);\n if (read > 0) {\n recv.append(buf, read);\n } else {\n close();\n throw new UnsupportedOperationException(\"remote connection has been disconnected\");\n }\n }\n ByteQue ret = recv.byteQue();\n String msg = (String) ret.pop(String.class);\n if (msg != null) {\n throw new UnsupportedOperationException(msg);\n }\n if (retType != null && retType != Void.TYPE) {\n return ret.pop(retType);\n }\n return null;\n }",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"protected void invokeInternal(XTeeMessage<Document> request, XTeeMessage<Element> response) throws Exception {\n throw new IllegalStateException(\"You must override either the 'invokeInternal' or the 'invokeInternalEx' method!\");\n }",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public static native void rmi_invoker_void(short remote_method_info, short objID, byte[] buffer, byte offset);",
"public Object getObject();",
"public Serializable getObject() throws OpenwireException {\n if (object == null && getContent() != null) {\n try {\n Buffer content = getContent();\n InputStream is = new ByteArrayInputStream(content);\n if (isCompressed()) {\n is = new InflaterInputStream(is);\n }\n DataInputStream dataIn = new DataInputStream(is);\n ClassLoadingAwareObjectInputStream objIn = new ClassLoadingAwareObjectInputStream(dataIn);\n try {\n object = (Serializable)objIn.readObject();\n } catch (ClassNotFoundException ce) {\n throw new OpenwireException(\"Failed to build body from content. Serializable class not available to broker. Reason: \" + ce, ce);\n } finally {\n dataIn.close();\n }\n } catch (IOException e) {\n throw new OpenwireException(\"Failed to build body from bytes. Reason: \" + e, e);\n }\n }\n return this.object;\n }",
"public Object transform(Object input) {\n if (input == null) {\n return null;\n }\n try {\n Class cls = input.getClass();\n Method method = cls.getMethod(iMethodName, iParamTypes);\n return method.invoke(input, iArgs);\n \n } catch (NoSuchMethodException ex) {\n throw new TransformerException(\"InvokerTransformer: The method '\" + iMethodName + \"' on '\" + input.getClass() + \"' does not exist\");\n } catch (IllegalAccessException ex) {\n throw new TransformerException(\"InvokerTransformer: The method '\" + iMethodName + \"' on '\" + input.getClass() + \"' cannot be accessed\");\n } catch (InvocationTargetException ex) {\n throw new TransformerException(\"InvokerTransformer: The method '\" + iMethodName + \"' on '\" + input.getClass() + \"' threw an exception\", ex);\n }\n }",
"public int getObjectHandle() {\n/* 72 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Object getObject() ;",
"private ObjectInputStream getInputStream() {\n\t\t// retornamos el stream de entrada\n\t\treturn this.inputStream;\n\t}",
"V call() throws StatusRuntimeException;",
"protected HttpResponse executeRequest(RPCRequest invocation) throws Exception {\n\t\treturn getHttpInvokerRequestExecutor().executeRequest(getServiceUrl(), invocation);\n\t}",
"protected WebServiceException convertHttpInvokerAccessException(Throwable ex,MethodInvocation methodInvocation) {\n\t\tif (ex instanceof ConnectException) {\n\t\t\tthrow new WebServiceException(\n\t\t\t\t\tex.getClass().getSimpleName(),\"Could not connect to HTTP invoker remote service at [\" + getServiceUrl() + \"]\",getServiceUrl(),methodInvocation.getMethod().getName(), ex);\n\t\t}\n\t\telse if (ex instanceof ClassNotFoundException || ex instanceof NoClassDefFoundError ||\n\t\t\t\tex instanceof InvalidClassException) {\n\t\t\tthrow new WebServiceException(\n\t\t\t\t\tex.getClass().getSimpleName(),\"Could not deserialize result from HTTP invoker remote service [\" + getServiceUrl() + \"]\",getServiceUrl(),methodInvocation.getMethod().getName(), ex);\n\t\t}\n\t\telse {\n\t\t\tthrow new WebServiceException(\n\t\t\t\t\tex.getClass().getSimpleName(),\"Could not access HTTP invoker remote service at [\" + getServiceUrl() + \"]\",getServiceUrl(),methodInvocation.getMethod().getName(), ex);\n\t\t}\n\t}",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"public Response internalInvocation(HttpRequest request, HttpResponse response, Object entity)\n {\n ResteasyProviderFactory.addContextDataLevel();\n boolean pushedBody = false;\n try\n {\n MessageBodyParameterInjector.pushBody(entity);\n pushedBody = true;\n ResourceInvoker invoker = getInvoker(request);\n if (invoker != null)\n {\n pushContextObjects(request, response);\n return getResponse(request, response, invoker);\n }\n \n // this should never happen, since getInvoker should throw an exception\n // if invoker is null\n return null;\n }\n finally\n {\n ResteasyProviderFactory.removeContextDataLevel();\n if (pushedBody)\n {\n MessageBodyParameterInjector.popBody();\n }\n }\n }",
"<T> Mono<T> invokeMethod(String methodName, Object data, TypeRef<T> type);",
"public Object call(Object[] args) {\r\n return invoke(args);\r\n }",
"private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext) {\n request.setEndpoint(endpoint);\n request.setTimeOffset(timeOffset);\n\n HttpResponseHandler<AmazonServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args)\n\t\t\tthrows Throwable {\n\t\tObject result = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"Before is OK!\");\n\t\t\tresult = method.invoke(this.ob, args);\n\t\t\tSystem.out.println(\"After is OK!\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"@ReflectiveMethod(name = \"v\", types = {})\n public void v(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"public final d invoke() {\n return a.a(this.receiver$0, this.$additionalAnnotations);\n }",
"public static Object invokeNoArgumentMethod(String methodName, Object objectToInvokeUpon) {\n try {\n Method method = objectToInvokeUpon.getClass().getMethod(methodName);\n method.setAccessible(true);\n return method.invoke(objectToInvokeUpon);\n } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n throw new ReflectionInvocationException(e);\n }\n }",
"@Override\n public byte[] callMethod(String methodName, byte[] requestData) throws RemoteException\n {\n final ServiceData<? extends Writer> serviceData = serviceImpl.callMethod(methodName, requestData, null);\n return serviceData.getByteArray();\n }",
"public java.rmi.Remote getSomethingRemote() throws RemoteException;",
"public Object answer(InvocationOnMock invocation) throws Throwable {\n return craftResponse(invocation);\n }",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"private Object receive() {\n Object o = null;\n try {\n System.out.println(\"03. -- About to receive an object...\");\n o = is.readObject();\n System.out.println(\"04. <- Object received...\");\n } catch (Exception e) {\n System.out.println(\"XX. Exception Occurred on Receiving:\" + e.toString());\n }\n return o;\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> T getObject() {\n waitFor();\n return (T) response;\n }",
"public Object invoke(String operationName, Object params[], String signature[])\n throws MBeanException,\n ReflectionException {\n if (operationName == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Operation name cannot be null\"), \n \"Cannot invoke a null operation in \" + dClassName);\n }\n // Check for a recognized operation name and call the corresponding operation\n if (operationName.equals(\"reset\")){\n return reset();\n } else { \n // unrecognized operation name:\n throw new ReflectionException(new NoSuchMethodException(operationName), \n \"Cannot find the operation \" + operationName + \" in \" + dClassName);\n }\n }",
"@Override\n public T getObject() throws Exception {\n return (T) new JdkServiceProxy(logClz).getInstance();\n }",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"public org.apache.yoko.orb.CORBA.OutputStream preMarshal()\n throws LocationForward {\n // If we have an UpcallReturn object, then invoking upcallBeginReply\n // will eventually result in a call to createOutputStream.\n //\n // If we don't have an UpcallReturn object, then it means a oneway\n // invocation was made for a twoway operation. We return a dummy\n // OutputStream to make the skeleton happy and avoid a crash.\n //\n if (upcallReturn_ != null) {\n org.omg.IOP.ServiceContext[] scl = new org.omg.IOP.ServiceContext[replySCL_\n .size()];\n replySCL_.copyInto(scl);\n upcallReturn_.upcallBeginReply(this, scl);\n } else {\n org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer();\n out_ = new org.apache.yoko.orb.CORBA.OutputStream(buf, in_\n ._OB_codeConverters(), (profileInfo_.major << 8)\n | profileInfo_.minor);\n }\n out_._OB_ORBInstance(this.orbInstance());\n return out_;\n }",
"public String sayHello() throws RemoteException;",
"<R> Promise<R> invoke(String methodName, Class<R> returnType, Object... arguments);",
"public interface IRemoteInvoke {\n\n void invoke(JSONObject paramJson);\n\n}",
"public long sayHello()throws RemoteException;",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) {\n\n if (discoveredEndpoint != null) {\n request.setEndpoint(discoveredEndpoint);\n request.getOriginalRequest().getRequestClientOptions().appendUserAgent(\"endpoint-discovery\");\n } else if (uriFromEndpointTrait != null) {\n request.setEndpoint(uriFromEndpointTrait);\n } else {\n request.setEndpoint(endpoint);\n }\n\n request.setTimeOffset(timeOffset);\n\n DefaultErrorResponseHandler errorResponseHandler = new DefaultErrorResponseHandler(exceptionUnmarshallersMap, defaultUnmarshaller);\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }",
"public ServantObject _servant_preinvoke(String operation,\n Class expectedType) {\n throw new NO_IMPLEMENT(reason);\n }",
"@Override @SuppressWarnings({ \"cast\",\"unchecked\" })\n\tpublic Object invoke(final MethodInvocation invocation) throws Throwable {\t\t\t\n\t\t// Do not intercept the ServicesClientProxy base type methods\n\t\tif (!_isInterceptedMethodCall(invocation.getMethod())) return invocation.proceed();\n\n\t\t// If the return type is a ServiceInteface or a SubServiceInterface, do the lazy load if needed\n\t\tObject out = invocation.proceed();\t// <-- this can return null if the ServiceInterface or SubServiceInterface was NOT created previously\n\t\t\n\t\tif (out != null) return out;\t\t// the ServiceInterface was previously created\n\t\t\n\t\t// Type of the proxy aggregator\n\t\tServiceProxiesAggregator serviceProxyAggregator = (ServiceProxiesAggregator)invocation.getThis();\n\t\tClass<? extends ServiceProxiesAggregator> serviceProxyAggregatorType = (Class<? extends ServiceProxiesAggregator>)serviceProxyAggregator.getClass();\n\t\t\n\t\t// the ServiceInterface or SubServiceInterface concrete type \n\t\tClass<?> returnType = invocation.getMethod().getReturnType();\n\t\t\n\t\tif (returnType != null && ReflectionUtils.isImplementing(returnType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ServiceInterface.class)) {\n\t\t\t// Find the field at the aggregator type that contains the proxy\n\t\t\tClass<? extends ServiceInterface> serviceInterfaceType = (Class<? extends ServiceInterface>)returnType;\n\t\t\tField serviceInterfaceBaseField = _findServiceInterfaceField(serviceProxyAggregatorType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t serviceInterfaceType);\n\t\t\t\n\t\t\t// get the service impl (if available) or proxy instance from the injected MapBinder\n\t\t\tServiceInterface serviceImplOrProxy = _allServiceInterfaceTypesToImplOrProxyMappings.get().get(serviceInterfaceType);\n\t\t\tif (serviceImplOrProxy != null) {\n\t\t\t\tReflectionUtils.setFieldValue(serviceProxyAggregator,serviceInterfaceBaseField,\n\t\t\t\t\t\t\t\t\t\t\t serviceImplOrProxy,\n\t\t\t\t\t\t\t\t\t\t\t false);\n\t\t\t\tout = serviceImplOrProxy;\n\t\t\t\tlog.info(\"[ServiceProxy aggregation] > {} field of type {} was not initialized on services proxy aggregator {} so an instance of {} was lazily created\",\n\t\t\t\t\t\t serviceInterfaceBaseField.getName(),serviceInterfaceType,serviceProxyAggregator.getClass(),serviceImplOrProxy.getClass());\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}",
"private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) {\n\n if (discoveredEndpoint != null) {\n request.setEndpoint(discoveredEndpoint);\n request.getOriginalRequest().getRequestClientOptions().appendUserAgent(\"endpoint-discovery\");\n } else if (uriFromEndpointTrait != null) {\n request.setEndpoint(uriFromEndpointTrait);\n } else {\n request.setEndpoint(endpoint);\n }\n\n request.setTimeOffset(timeOffset);\n\n HttpResponseHandler<AmazonServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }",
"private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) {\n\n if (discoveredEndpoint != null) {\n request.setEndpoint(discoveredEndpoint);\n request.getOriginalRequest().getRequestClientOptions().appendUserAgent(\"endpoint-discovery\");\n } else if (uriFromEndpointTrait != null) {\n request.setEndpoint(uriFromEndpointTrait);\n } else {\n request.setEndpoint(endpoint);\n }\n\n request.setTimeOffset(timeOffset);\n\n HttpResponseHandler<AmazonServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }",
"private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) {\n\n if (discoveredEndpoint != null) {\n request.setEndpoint(discoveredEndpoint);\n request.getOriginalRequest().getRequestClientOptions().appendUserAgent(\"endpoint-discovery\");\n } else if (uriFromEndpointTrait != null) {\n request.setEndpoint(uriFromEndpointTrait);\n } else {\n request.setEndpoint(endpoint);\n }\n\n request.setTimeOffset(timeOffset);\n\n HttpResponseHandler<AmazonServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }",
"private <X, Y extends AmazonWebServiceRequest> Response<X> doInvoke(Request<Y> request, HttpResponseHandler<AmazonWebServiceResponse<X>> responseHandler,\n ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) {\n\n if (discoveredEndpoint != null) {\n request.setEndpoint(discoveredEndpoint);\n request.getOriginalRequest().getRequestClientOptions().appendUserAgent(\"endpoint-discovery\");\n } else if (uriFromEndpointTrait != null) {\n request.setEndpoint(uriFromEndpointTrait);\n } else {\n request.setEndpoint(endpoint);\n }\n\n request.setTimeOffset(timeOffset);\n\n HttpResponseHandler<AmazonServiceException> errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata());\n\n return client.execute(request, responseHandler, errorResponseHandler, executionContext);\n }",
"<T> T callMethod(Object obj, String name, Class<T> resultType, Object... args)\n throws ScriptRunnerException;",
"@Override\r\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable\r\n {\r\n HashSet<IInterceptor> interceptors;\r\n\r\n // Instantiation of the desired service\r\n if(implementation != null) {\r\n try {\r\n instance = InstanceManager.getInstance(implementation);\r\n\r\n // Cascade injection\r\n EJBInjector.inject(instance);\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n throw new ImpossibleAllocationException();\r\n }\r\n }\r\n\r\n // Get interceptors\r\n interceptors = InterceptorManager.getInterceptors(instance, method);\r\n\r\n // Before\r\n for(IInterceptor interceptor : interceptors) {\r\n interceptor.before(instance, method, args);\r\n }\r\n\r\n Object methodReturn = null;\r\n Throwable exceptionReturn = null;\r\n\r\n try {\r\n methodReturn = method.invoke(instance, args);\r\n } catch (InvocationTargetException e) {\r\n exceptionReturn = e.getTargetException();\r\n }\r\n\r\n // After\r\n for(IInterceptor interceptor : interceptors) {\r\n interceptor.after(instance, method, methodReturn, exceptionReturn, args);\r\n }\r\n\r\n // If there has been an exception, throw it\r\n if(exceptionReturn != null) {\r\n throw exceptionReturn;\r\n }\r\n\r\n return methodReturn;\r\n }",
"@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }",
"public abstract Object getInterface(String strInterfaceName_p, Object oObject_p) throws Exception;",
"public static native Object rmi_invoker_array(short remote_method_info, short objID, byte[] buffer, byte offset);",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"Object run(ObjectInput objectInput) throws IOException, ClassNotFoundException;"
]
| [
"0.70958954",
"0.65475905",
"0.59792185",
"0.59006655",
"0.583555",
"0.5826784",
"0.57407963",
"0.568802",
"0.5660769",
"0.5655945",
"0.5589572",
"0.5557671",
"0.5545885",
"0.55287915",
"0.5489897",
"0.54300386",
"0.54241097",
"0.5422565",
"0.54201806",
"0.53535485",
"0.5333308",
"0.52703273",
"0.526383",
"0.52580714",
"0.5223224",
"0.5217317",
"0.5206442",
"0.5193573",
"0.51855505",
"0.51703686",
"0.5169093",
"0.51670235",
"0.5160498",
"0.50845873",
"0.5068948",
"0.5065393",
"0.50420916",
"0.5040083",
"0.5037872",
"0.5029731",
"0.50244737",
"0.5007405",
"0.5005267",
"0.4995435",
"0.49652633",
"0.49533686",
"0.49322048",
"0.49309036",
"0.49304146",
"0.4918466",
"0.49113607",
"0.49093023",
"0.49080303",
"0.4906826",
"0.48998022",
"0.48988545",
"0.48909193",
"0.48827863",
"0.48817903",
"0.48739612",
"0.4861189",
"0.4861187",
"0.48516175",
"0.48487127",
"0.48460487",
"0.48395073",
"0.48228166",
"0.48157004",
"0.4807754",
"0.47984064",
"0.4774383",
"0.47655636",
"0.47644687",
"0.4750622",
"0.47498477",
"0.47468895",
"0.47461134",
"0.47391766",
"0.47366577",
"0.4733813",
"0.47306103",
"0.4727482",
"0.47212026",
"0.47172466",
"0.47082224",
"0.47064927",
"0.46994925",
"0.46980664",
"0.469356",
"0.46925274",
"0.46925274",
"0.46925274",
"0.46925274",
"0.46920913",
"0.46897188",
"0.46895188",
"0.46865702",
"0.46842858",
"0.46814367",
"0.46743655"
]
| 0.7013795 | 1 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method is the default implementation of the org.omg.CORBA.Object method. May optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed. The stub passes the InputStream returned by _invoke() or ApplicationException.getInputStream(). A null value may also be passed to _releaseReply, in which case the method is a noop. | public void _releaseReply(InputStream input) {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract org.omg.CORBA.Object read_Object();",
"org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;",
"public InputStream _invoke(OutputStream output)\n throws ApplicationException, RemarshalException\n {\n throw new NO_IMPLEMENT(reason);\n }",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"public ReplyInterface perform(RequestInterface request) throws ProtocolException, ResourceException {\n return null;\n }",
"@Override\n public Object getObject()\n {\n return null;\n }",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"com.google.protobuf2.Any getObject();",
"protected void doInvocation(){\n org.omg.CORBA.portable.Delegate delegate=StubAdapter.getDelegate(\n _target);\n // Initiate Client Portable Interceptors. Inform the PIHandler that\n // this is a DII request so that it knows to ignore the second\n // inevitable call to initiateClientPIRequest in createRequest.\n // Also, save the RequestImpl object for later use.\n _orb.getPIHandler().initiateClientPIRequest(true);\n _orb.getPIHandler().setClientPIInfo(this);\n InputStream $in=null;\n try{\n OutputStream $out=delegate.request(null,_opName,!_isOneWay);\n // Marshal args\n try{\n for(int i=0;i<_arguments.count();i++){\n NamedValue nv=_arguments.item(i);\n switch(nv.flags()){\n case ARG_IN.value:\n nv.value().write_value($out);\n break;\n case ARG_OUT.value:\n break;\n case ARG_INOUT.value:\n nv.value().write_value($out);\n break;\n }\n }\n }catch(Bounds ex){\n throw _wrapper.boundsErrorInDiiRequest(ex);\n }\n $in=delegate.invoke(null,$out);\n }catch(ApplicationException e){\n // REVISIT - minor code.\n // This is already handled in subcontract.\n // REVISIT - uncomment.\n //throw new INTERNAL();\n }catch(RemarshalException e){\n doInvocation();\n }catch(SystemException ex){\n _env.exception(ex);\n // NOTE: The exception should not be thrown.\n // However, JDK 1.4 and earlier threw the exception,\n // so we keep the behavior to be compatible.\n throw ex;\n }finally{\n delegate.releaseReply(null,$in);\n }\n }",
"@Override\n\tprotected Object handleGetObject(String arg0) {\n\t\treturn null;\n\t}",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"public Void getObject() throws NotImplementedException, TimeoutException,\n NoSuccessException {\n throw new NoSuccessException(\"getObject() called on Job\");\n }",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public NetObject getObject();",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"Object loadObject() throws Exception;",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> T getObject() {\n waitFor();\n return (T) response;\n }",
"public Object getObject();",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public T caseClientInterface(ClientInterface object)\n {\n return null;\n }",
"public Object readObject() {\n Object fromServer = null;\n\n try {\n fromServer = inputStream.readObject();\n } catch(InvalidClassException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not deserialize the read object!\");\n e.printStackTrace();\n System.exit(1);\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - error reading an object from the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n } catch(ClassNotFoundException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the read object's data type is unknown!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return fromServer;\n }",
"@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }",
"@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}",
"public Object getObject() ;",
"public org.omg.CORBA.Object read_Object(Class\n clz) {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public abstract Object getUnderlyingObject();",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"void onRecvObject(Object object);",
"public static com.example.aidltest1.MyAIDL asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.example.aidltest1.MyAIDL))) {\nreturn ((com.example.aidltest1.MyAIDL)iin);\n}\nreturn new com.example.aidltest1.MyAIDL.Stub.Proxy(obj);\n}",
"public LocalObject() {}",
"public com.google.protobuf2.Any getObject() {\n if (objectBuilder_ == null) {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n } else {\n return objectBuilder_.getMessage();\n }\n }",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"public Serializable getObject() throws OpenwireException {\n if (object == null && getContent() != null) {\n try {\n Buffer content = getContent();\n InputStream is = new ByteArrayInputStream(content);\n if (isCompressed()) {\n is = new InflaterInputStream(is);\n }\n DataInputStream dataIn = new DataInputStream(is);\n ClassLoadingAwareObjectInputStream objIn = new ClassLoadingAwareObjectInputStream(dataIn);\n try {\n object = (Serializable)objIn.readObject();\n } catch (ClassNotFoundException ce) {\n throw new OpenwireException(\"Failed to build body from content. Serializable class not available to broker. Reason: \" + ce, ce);\n } finally {\n dataIn.close();\n }\n } catch (IOException e) {\n throw new OpenwireException(\"Failed to build body from bytes. Reason: \" + e, e);\n }\n }\n return this.object;\n }",
"public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n if (objectBuilder_ != null) {\n return objectBuilder_.getMessageOrBuilder();\n } else {\n return object_ == null ?\n com.google.protobuf2.Any.getDefaultInstance() : object_;\n }\n }",
"Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"@Override\n\t\tpublic Object getObject() throws Throwable {\n\t\t\treturn this;\n\t\t}",
"public abstract Object getInterface(String strInterfaceName_p, Object oObject_p) throws Exception;",
"@Override\r\n\tpublic Object instantiate(ObjectBinder arg0, Object arg1, Type arg2,\r\n\t\t\tClass arg3) {\n\t\treturn null;\r\n\t}",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n public byte[] handleBinaryRequest(byte[] request) throws IOException, AutomationException {\n serverLog.addMessage(3, 200,\n \"Request received in Sample Object Interceptor for handleBinaryRequest\");\n\n /*\n * Add code to manipulate Binary requests from desktop here\n */\n\n IRequestHandler requestHandler = soiHelper.findRequestHandlerDelegate(so);\n if (requestHandler != null) {\n return requestHandler.handleBinaryRequest(request);\n }\n\n return null;\n }",
"public int getObjectHandle() {\n/* 72 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"ObjectRealization createObjectRealization();",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"public OffloadableObject(final T object) {\n this.object = object;\n deserialized = true;\n }",
"void marshal(Object obj);",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface ObjectData {\n \n /**\n * Gets an input stream which returns the binary of the embedded data.\n *\n * @return the input stream which will contain the binary of the embedded data.\n */\n InputStream getInputStream() throws IOException;\n\n \n /**\n * @return the object data as stream (for writing)\n */\n OutputStream getOutputStream() throws IOException;\n \n /**\n * Convenience method to get the embedded data as byte array.\n *\n * @return the embedded data.\n */\n default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }\n \n /**\n * @return does this ObjectData have an associated POIFS Directory Entry?\n * (Not all do, those that don't have a data portion)\n */\n default boolean hasDirectoryEntry() {\n try (final InputStream is = FileMagic.prepareToCheckMagic(getInputStream())) {\n FileMagic fm = FileMagic.valueOf(is);\n return fm == FileMagic.OLE2;\n } catch (IOException e) {\n POILogger LOG = POILogFactory.getLogger(ObjectData.class);\n LOG.log(POILogger.WARN, \"Can't determine filemagic of ole stream\", e);\n return false;\n }\n }\n\n /**\n * Gets the object data. Only call for ones that have\n * data though. See {@link #hasDirectoryEntry()}.\n * The caller has to close the corresponding POIFSFileSystem\n *\n * @return the object data as an OLE2 directory.\n * @throws IOException if there was an error reading the data.\n */\n @SuppressWarnings(\"resource\")\n default DirectoryEntry getDirectory() throws IOException {\n try (final InputStream is = getInputStream()) {\n return new POIFSFileSystem(is).getRoot();\n }\n }\n\n /**\n * @return the OLE2 Class Name of the object\n */\n String getOLE2ClassName();\n\n /**\n * @return a filename suggestion - inspecting/interpreting the Directory object probably gives a better result\n */\n String getFileName();\n\n}",
"public T caseDefNonInertia(DefNonInertia object)\n {\n return null;\n }",
"private void readObject() {/* default - does nothing empty block */\n }",
"public T caseServerInterface(ServerInterface object)\n {\n return null;\n }",
"public T caseInertia(Inertia object) {\r\n\t\treturn null;\r\n\t}",
"@FunctionalInterface\r\npublic interface ThrowingInvokeHandler<X extends Throwable> extends InvokeHandler\r\n{\r\n @Override\r\n @SneakyThrows\r\n default org.omg.CORBA.portable.OutputStream _invoke(java.lang.String method,\r\n org.omg.CORBA.portable.InputStream input, org.omg.CORBA.portable.ResponseHandler handler)\r\n {\r\n return try_invoke(method, input, handler);\r\n }\r\n\r\n /**\r\n * Invoked by the ORB to dispatch a request to the servant.\r\n *\r\n * ORB passes the method name, an InputStream containing the marshalled\r\n * arguments, and a ResponseHandler which the servant uses to construct a proper\r\n * reply.\r\n *\r\n * Only CORBA SystemException may be thrown by this method.\r\n *\r\n * The method must return an OutputStream created by the ResponseHandler which\r\n * contains the marshalled reply.\r\n *\r\n * A servant must not retain a reference to the ResponseHandler beyond the\r\n * lifetime of a method invocation.\r\n *\r\n * Servant behaviour is defined as follows:\r\n * <p>\r\n * 1. Determine correct method, and unmarshal parameters from InputStream.\r\n * <p>\r\n * 2. Invoke method implementation.\r\n * <p>\r\n * 3. If no user exception, create a normal reply using ResponseHandler.\r\n * <p>\r\n * 4. If user exception occurred, create exception reply using ResponseHandler.\r\n * <p>\r\n * 5. Marshal reply into OutputStream returned by ResponseHandler.\r\n * <p>\r\n * 6. Return OutputStream to ORB.\r\n * <p>\r\n * \r\n * @param method The method name.\r\n * @param input The <code>InputStream</code> containing the marshalled\r\n * arguments.\r\n * @param handler The <code>ResponseHandler</code> which the servant uses to\r\n * construct a proper reply\r\n * @return The <code>OutputStream</code> created by the ResponseHandler which\r\n * contains the marshalled reply\r\n * @throws SystemException is thrown when invocation fails due to a CORBA system\r\n * exception.\r\n *\r\n * @throws X any exception that may be thrown.\r\n */\r\n org.omg.CORBA.portable.OutputStream try_invoke(java.lang.String method, org.omg.CORBA.portable.InputStream input,\r\n org.omg.CORBA.portable.ResponseHandler handler) throws X;\r\n}",
"Object defaultReplaceObject(Object obj) throws IOException {\n\t logger.log(Level.FINEST, \"Object in stream instance of: {0}\", obj.getClass());\n\t try {\n\t\tif (obj instanceof DynamicProxyCodebaseAccessor ){\n\t\t logger.log(Level.FINEST, \"Object in stream instance of DynamicProxyCodebaseAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (DynamicProxyCodebaseAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t} else if (obj instanceof ProxyAccessor ) {\n\t\t logger.log(Level.FINEST, \"Object in stream instance of ProxyAccessor\");\n\t\t obj = \n\t\t ProxySerializer.create(\n\t\t\t (ProxyAccessor) obj,\n\t\t\t aout.defaultLoader,\n\t\t\t aout.getObjectStreamContext()\n\t\t );\n\t\t}\n\t } catch (IOException e) {\n\t\tlogger.log(Level.FINE, \"Unable to create ProxyAccessorSerializer\", e);\n\t\tthrow e;\n\t }\n\t Class c = obj.getClass();\n\t Class s = serializers.get(c);\n\t if (c.isAnnotationPresent(AtomicSerial.class)){} // Ignore\n\t else if (c.isAnnotationPresent(AtomicExternal.class)){} // Ignore\n\t // REMIND: stateless objects, eg EmptySet?\n\t else if (s != null){\n\t\ttry {\n\t\t Constructor constructor = s.getDeclaredConstructor(c);\n\t\t obj = constructor.newInstance(obj);\n\t\t} catch (NoSuchMethodException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (SecurityException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InstantiationException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t} catch (InvocationTargetException ex) {\n\t\t logger.log(Level.FINE, \"Unable to contruct serializer\", ex);\n\t\t}\n\t }\n\t else if (obj instanceof Map) obj = new MapSerializer((Map) obj);\n\t else if (obj instanceof Set) obj = new SetSerializer((Set) obj);\n\t else if (obj instanceof Collection) obj = new ListSerializer((Collection) obj);\n\t else if (obj instanceof Permission) obj = new PermissionSerializer((Permission) obj);\n\t else if (obj instanceof Throwable) obj = new ThrowableSerializer((Throwable) obj);\n\t logger.log(Level.FINEST, \"Returning object in stream instance of: {0}\", obj.getClass());\n\t return obj;\n\t}",
"public T caseImplicitOperationCallCS(ImplicitOperationCallCS object) {\r\n return null;\r\n }",
"public ObjectReference getObject();",
"private void readObjectNoData() throws ObjectStreamException {}",
"@Override\n public Object getReturnValue(){\n return object;\n }",
"private void readObject() {/* default - does nothing empty block */\n\t}",
"@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws UnknownHostException, IOException, ClassNotFoundException {\n\t\tSocket sock = new Socket(IP_adr, Port);\n\t\tCommunicationModule cm = new CommunicationModule();\n\n\t\tTranSegment seg = new TranSegment(Obj_Key, method.getName(), args);\n\n\t\tboolean s = cm.SendObj(sock, seg);\n\t\tif (s) {\n\t\t\t//Get the invoking result returned from server end\n\t\t\tObject result = cm.RecObj(sock);\n\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}",
"private void readObject() {\n\t\t/* default - does nothing empty block */}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"static IServerPrx uncheckedCast(com.zeroc.Ice.ObjectPrx obj)\n {\n return com.zeroc.Ice.ObjectPrx._uncheckedCast(obj, IServerPrx.class, _IServerPrxI.class);\n }",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"Object run(ObjectInput objectInput) throws IOException, ClassNotFoundException;",
"public static EtudiantFactory unchecked_narrow(org.omg.CORBA.Object obj)\n {\n if (obj == null)\n return null;\n if (obj instanceof EtudiantFactory)\n return (EtudiantFactory)obj;\n\n _EtudiantFactoryStub stub = new _EtudiantFactoryStub();\n stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());\n return stub;\n\n }",
"public ServantObject servant_preinvoke(org.omg.CORBA.Object self,\n String operation,\n Class expectedType);",
"BoundObject(){}",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"StatefulRemoteObjectB create() throws RemoteException, CreateException;",
"public T caseRequestBaseType(RequestBaseType object) {\n\t\treturn null;\n\t}",
"public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }",
"public interface ICommunicationService\n extends IInterface\n{\n public static abstract class Stub extends Binder\n implements ICommunicationService\n {\n\n static final int TRANSACTION_acquireConnection = 1;\n static final int TRANSACTION_acquireConnectionEx = 8;\n static final int TRANSACTION_deregisterMessageHandler = 3;\n static final int TRANSACTION_getGatewayConnectivity = 9;\n static final int TRANSACTION_getIdentityResolver = 6;\n static final int TRANSACTION_isInitialized = 7;\n static final int TRANSACTION_registerMessageHandler = 2;\n static final int TRANSACTION_removeAckHandler = 11;\n static final int TRANSACTION_routeMessage = 4;\n static final int TRANSACTION_routeMessageFragment = 5;\n static final int TRANSACTION_setAckHandler = 10;\n\n public static ICommunicationService asInterface(IBinder ibinder)\n {\n if (ibinder == null)\n {\n return null;\n }\n IInterface iinterface = ibinder.queryLocalInterface(\"com.amazon.communication.ICommunicationService\");\n if (iinterface != null && (iinterface instanceof ICommunicationService))\n {\n return (ICommunicationService)iinterface;\n } else\n {\n return new Proxy(ibinder);\n }\n }\n\n public IBinder asBinder()\n {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n Object obj1 = null;\n ParcelableStatus parcelablestatus2 = null;\n Object obj = null;\n Object obj2 = null;\n boolean flag = false;\n switch (i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.amazon.communication.ICommunicationService\");\n return true;\n\n case 1: // '\\001'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (ParcelableConnectionPolicy)ParcelableConnectionPolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus2 = new ParcelableStatus();\n obj = acquireConnection(((ParcelableEndpointIdentity) (obj)), ((ParcelableConnectionPolicy) (obj1)), parcel, parcelablestatus2);\n parcel1.writeNoException();\n parcel = obj2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus2 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus2.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = registerMessageHandler(parcel.readInt(), IMessageHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 3: // '\\003'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n deregisterMessageHandler(parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 4: // '\\004'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n routeMessage(((ParcelableEndpointIdentity) (obj)), ((MessageEnvelope) (obj1)), parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 5: // '\\005'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n i = parcel.readInt();\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n if (parcel.readInt() != 0)\n {\n flag1 = true;\n } else\n {\n flag1 = false;\n }\n routeMessageFragment(((ParcelableEndpointIdentity) (obj)), i, ((MessageEnvelope) (obj1)), flag1, parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 6: // '\\006'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n obj = getIdentityResolver();\n parcel1.writeNoException();\n parcel = ((Parcel) (obj1));\n if (obj != null)\n {\n parcel = ((IIdentityResolver) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n return true;\n\n case 7: // '\\007'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag2 = isInitialized();\n parcel1.writeNoException();\n i = ((flag) ? 1 : 0);\n if (flag2)\n {\n i = 1;\n }\n parcel1.writeInt(i);\n return true;\n\n case 8: // '\\b'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n ParcelablePolicy parcelablepolicy;\n ParcelableStatus parcelablestatus1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n parcelablepolicy = (ParcelablePolicy)ParcelablePolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n parcelablepolicy = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus1 = new ParcelableStatus();\n obj = acquireConnectionEx(((ParcelableEndpointIdentity) (obj)), parcelablepolicy, parcel, parcelablestatus1);\n parcel1.writeNoException();\n parcel = parcelablestatus2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus1 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus1.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 9: // '\\t'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n ParcelableStatus parcelablestatus = new ParcelableStatus();\n IGatewayConnectivity igatewayconnectivity = getGatewayConnectivity(parcel, parcelablestatus);\n parcel1.writeNoException();\n parcel = ((Parcel) (obj));\n if (igatewayconnectivity != null)\n {\n parcel = igatewayconnectivity.asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus != null)\n {\n parcel1.writeInt(1);\n parcelablestatus.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 10: // '\\n'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = setAckHandler(com.amazon.communication.rlm.IAckHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 11: // '\\013'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n removeAckHandler();\n parcel1.writeNoException();\n return true;\n }\n }\n\n public Stub()\n {\n attachInterface(this, \"com.amazon.communication.ICommunicationService\");\n }\n }\n\n private static class Stub.Proxy\n implements ICommunicationService\n {\n\n private IBinder mRemote;\n\n public IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelableconnectionpolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelableconnectionpolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_156;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelablepolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelablepolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_157;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IBinder asBinder()\n {\n return mRemote;\n }\n\n public void deregisterMessageHandler(int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_86;\n }\n iconnectionlistener = iconnectionlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(iconnectionlistener);\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n iconnectionlistener = IGatewayConnectivity.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return iconnectionlistener;\n iconnectionlistener = null;\n goto _L1\n iconnectionlistener;\n parcel1.recycle();\n parcel.recycle();\n throw iconnectionlistener;\n }\n\n public IIdentityResolver getIdentityResolver()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IIdentityResolver iidentityresolver;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n iidentityresolver = com.amazon.communication.ir.IIdentityResolver.Stub.asInterface(parcel1.readStrongBinder());\n parcel1.recycle();\n parcel.recycle();\n return iidentityresolver;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor()\n {\n return \"com.amazon.communication.ICommunicationService\";\n }\n\n public boolean isInitialized()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if (i != 0)\n {\n flag = true;\n }\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n if (imessagehandler == null)\n {\n break MISSING_BLOCK_LABEL_73;\n }\n imessagehandler = imessagehandler.asBinder();\n_L1:\n parcel.writeStrongBinder(imessagehandler);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n imessagehandler = null;\n goto _L1\n imessagehandler;\n parcel1.recycle();\n parcel.recycle();\n throw imessagehandler;\n }\n\n public void removeAckHandler()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L3:\n if (messageenvelope == null)\n {\n break MISSING_BLOCK_LABEL_111;\n }\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n_L4:\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L3\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n parcel.writeInt(0);\n goto _L4\n }\n\n public void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag1;\n flag1 = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L6:\n parcel.writeInt(i);\n if (messageenvelope == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n goto _L5\n_L7:\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L5\n_L9:\n i = 0;\n goto _L7\n_L5:\n if (!flag) goto _L9; else goto _L8\n_L8:\n i = ((flag1) ? 1 : 0);\n goto _L7\n }\n\n public int setAckHandler(IAckHandler iackhandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iackhandler == null)\n {\n break MISSING_BLOCK_LABEL_66;\n }\n iackhandler = iackhandler.asBinder();\n_L1:\n int i;\n parcel.writeStrongBinder(iackhandler);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n iackhandler = null;\n goto _L1\n iackhandler;\n parcel1.recycle();\n parcel.recycle();\n throw iackhandler;\n }\n\n Stub.Proxy(IBinder ibinder)\n {\n mRemote = ibinder;\n }\n }\n\n\n public abstract IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract void deregisterMessageHandler(int i)\n throws RemoteException;\n\n public abstract IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IIdentityResolver getIdentityResolver()\n throws RemoteException;\n\n public abstract boolean isInitialized()\n throws RemoteException;\n\n public abstract int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException;\n\n public abstract void removeAckHandler()\n throws RemoteException;\n\n public abstract void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException;\n\n public abstract void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException;\n\n public abstract int setAckHandler(IAckHandler iackhandler)\n throws RemoteException;\n}",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"public InvokeReply(KSNSerializableInterface v) {\n super(ProtocolOpcode.INVOKE_REPLY);\n returnValue = v;\n }",
"public static com.jancar.media.Notify asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof com.jancar.media.Notify))) {\nreturn ((com.jancar.media.Notify)iin);\n}\nreturn new com.jancar.media.Notify.Stub.Proxy(obj);\n}",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }"
]
| [
"0.6440279",
"0.5822569",
"0.57540303",
"0.57355064",
"0.5680488",
"0.55681056",
"0.55339247",
"0.5530061",
"0.5507555",
"0.5450798",
"0.5441827",
"0.54257184",
"0.5415492",
"0.5411492",
"0.5402105",
"0.5401144",
"0.5338546",
"0.53299093",
"0.5318863",
"0.5318048",
"0.5317456",
"0.53013355",
"0.5267881",
"0.5256921",
"0.524515",
"0.52173245",
"0.51895577",
"0.51813424",
"0.5175026",
"0.5172185",
"0.51624495",
"0.51562655",
"0.51504475",
"0.5131719",
"0.513073",
"0.5125133",
"0.5111488",
"0.5111459",
"0.51086396",
"0.5097213",
"0.5093974",
"0.50846946",
"0.5068178",
"0.5052833",
"0.5052833",
"0.5052833",
"0.5052833",
"0.5013952",
"0.5010009",
"0.5009467",
"0.50086415",
"0.5003379",
"0.49935517",
"0.4978355",
"0.49610677",
"0.49483845",
"0.49398082",
"0.49397603",
"0.49389866",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49244168",
"0.49184322",
"0.49086708",
"0.49025086",
"0.49010125",
"0.49008211",
"0.48965394",
"0.48921752",
"0.48915333",
"0.48877388",
"0.48871428",
"0.48729995",
"0.4855544",
"0.4854692",
"0.48428947",
"0.4842623",
"0.48414227",
"0.4834356",
"0.48333973",
"0.48254743",
"0.4823746",
"0.4818898",
"0.4817198",
"0.4804408",
"0.47995675",
"0.47968173",
"0.479458",
"0.47888324",
"0.47866523",
"0.47808895",
"0.47786057",
"0.4778344"
]
| 0.489278 | 75 |
Throws an org.omg.CORBA.NO_IMPLEMENT exception with the message "This is a locally constrained object." This method does not apply to local objects and is therefore not implemented. This method is the default implementation of the org.omg.CORBA.Object method. | public boolean validate_connection() {
throw new NO_IMPLEMENT(reason);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public abstract org.omg.CORBA.Object read_Object();",
"public LocalObject() {}",
"public interface Object {\n\n /**\n * Checks whether this object is an instance of a class that\n * implements the given interface.\n *\n * @param repositoryIdentifier the interface to check against\n * @return <code>true</code> if this object reference is an instance of a class that implements\n * the interface; <code>false</code> otherwise\n */\n boolean _is_a(String repositoryIdentifier);\n\n\n /**\n * Determines whether the two object references are equivalent,\n * so far as the ORB can easily determine. Two object references are equivalent\n * if they are identical. Two distinct object references which in fact refer to\n * the same object are also equivalent. However, ORBs are not required\n * to attempt determination of whether two distinct object references\n * refer to the same object, since such determination could be impractically\n * expensive.\n *\n * @param other the other object reference with which to check for equivalence\n * @return <code>true</code> if this object reference is known to be equivalent to the given\n * object reference. Note that <code>false</code> indicates only that the two object references\n * are distinct, not necessarily that they reference distinct objects.\n */\n boolean _is_equivalent(org.omg.CORBA.Object other);\n\n\n /**\n * Determines whether the server object for this object reference has been\n * destroyed.\n *\n * @return <code>true</code> if the ORB knows authoritatively that the server object does not\n * exist; <code>false</code> otherwise\n */\n boolean _non_existent();\n\n\n /**\n * Returns an ORB-internal identifier for this object reference.\n * This is a hash identifier, which does\n * not change during the lifetime of the object reference, and so\n * neither will any hash function of that identifier change. The value returned\n * is not guaranteed to be unique; in other words, another object\n * reference may have the same hash value.\n * If two object references hash differently,\n * then they are distinct object references; however, both may still refer\n * to the same CORBA object.\n *\n * @param maximum the upper bound on the hash value returned by the ORB\n * @return the ORB-internal hash identifier for this object reference\n */\n int _hash(int maximum);\n\n\n /**\n * Returns a duplicate of this CORBA object reference.\n * The server object implementation is not involved in creating\n * the duplicate, and the implementation cannot distinguish whether\n * the original object reference or a duplicate was used to make a request.\n * <P>\n * Note that this method is not very useful in the Java platform,\n * since memory management is handled by the VM.\n * It is included for compliance with the CORBA APIs.\n * <P>\n * The method <code>_duplicate</code> may return this object reference itself.\n *\n * @return a duplicate of this object reference or this object reference itself\n */\n org.omg.CORBA.Object _duplicate();\n\n\n /**\n * Signals that the caller is done using this object reference, so\n * internal ORB resources associated with this object reference can be\n * released. Note that the object implementation is not involved in\n * this operation, and other references to the same object are not affected.\n */\n void _release();\n\n\n /**\n * Obtains an <code>InterfaceDef</code> for the object implementation\n * referenced by this object reference.\n * The <code>InterfaceDef</code> object\n * may be used to introspect on the methods, attributes, and other\n * type information for the object referred to by this object reference.\n *\n * @return the <code>InterfaceDef</code> object in the Interface Repository which provides type\n * information about the object referred to by this object reference\n */\n org.omg.CORBA.Object _get_interface_def();\n\n\n /**\n * Creates a <code>Request</code> instance for use in the\n * Dynamic Invocation Interface.\n *\n * @param operation the name of the method to be invoked using the <code>Request</code> instance\n * @return the newly-created <code>Request</code> instance\n */\n Request _request(String operation);\n\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, and container\n * for the method's return value.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result);\n\n /**\n * Creates a <code>Request</code> instance initialized with the\n * given context, method name, list of arguments, container\n * for the method's return value, list of possible exceptions,\n * and list of context strings needing to be resolved.\n *\n * @param ctx a <code>Context</code> object containing a list of properties\n * @param operation the name of the method to be invoked\n * @param arg_list an <code>NVList</code> containing the actual arguments to the method being\n * invoked\n * @param result a <code>NamedValue</code> object to serve as a container for the method's return\n * value\n * @param exclist an <code>ExceptionList</code> object containing a list of possible exceptions\n * the method can throw\n * @param ctxlist a <code>ContextList</code> object containing a list of context strings that need\n * to be resolved and sent with the <code>Request</code> instance\n * @return the newly-created <code>Request</code> object\n * @see Request\n * @see NVList\n * @see NamedValue\n * @see ExceptionList\n * @see ContextList\n */\n\n Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);\n\n\n /**\n * Returns the <code>Policy</code> object of the specified type\n * which applies to this object.\n *\n * @param policy_type the type of policy to be obtained\n * @return A <code>Policy</code> object of the type specified by the policy_type parameter\n * @throws org.omg.CORBA.BAD_PARAM when the value of policy type is not valid either because the\n * specified type is not supported by this ORB or because a policy object of that type is not\n * associated with this Object\n */\n Policy _get_policy(int policy_type);\n\n\n /**\n * Retrieves the <code>DomainManagers</code> of this object.\n * This allows administration services (and applications) to retrieve the\n * domain managers, and hence the security and other policies applicable\n * to individual objects that are members of the domain.\n *\n * @return the list of immediately enclosing domain managers of this object. At least one domain\n * manager is always returned in the list since by default each object is associated with at least\n * one domain manager at creation.\n */\n DomainManager[] _get_domain_managers();\n\n\n /**\n * Returns a new <code>Object</code> with the given policies\n * either replacing any existing policies in this\n * <code>Object</code> or with the given policies added\n * to the existing ones, depending on the value of the\n * given <code>SetOverrideType</code> object.\n *\n * @param policies an array of <code>Policy</code> objects containing the policies to be added or\n * to be used as replacements\n * @param set_add either <code>SetOverrideType.SET_OVERRIDE</code>, indicating that the given\n * policies will replace any existing ones, or <code>SetOverrideType.ADD_OVERRIDE</code>,\n * indicating that the given policies should be added to any existing ones\n * @return a new <code>Object</code> with the given policies replacing or added to those in this\n * <code>Object</code>\n */\n org.omg.CORBA.Object _set_policy_override(Policy[] policies,\n SetOverrideType set_add);\n\n\n}",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public ORB _orb() {\n throw new NO_IMPLEMENT(reason);\n }",
"void mo3207a(Object obj);",
"public interface BaseObject {\n}",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public org.omg.CORBA.ORB orb() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"BoundObject(){}",
"void m21807c(Object obj);",
"public abstract Object getUnderlyingObject();",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}",
"public interface StandaloneObject {\n // marker\n}",
"void m21809e(Object obj);",
"public Object getObject();",
"public interface IPersistentObject extends IGUIDObject {\n\t\n /**\n * Gets a representation of the object.\n * \n * @return the object's state\n */\n IData reify();\n \n /**\n * Initialises the object.\n * \n * @param data the new state\n * @param pid the new PID\n * @param guid the new GUID\n */\n void initialise( IData data, IPID pid, IGUID guid );\n \n /**\n * Records the object's current state.\n * \n * @throws PersistenceException if the object's state could not be recorded\n */\n void persist() throws PersistenceException;\n \n /**\n * Gets the PID referring to the object's most recently recorded persistent state.\n * \n * @return the PID for the object's most recent persistent state\n */\n IPID getPID();\n}",
"OBJECT createOBJECT();",
"public Object getObject() ;",
"void m21808d(Object obj);",
"void m21805a(Object obj);",
"ObjectRealization createObjectRealization();",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"void m21806b(Object obj);",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public interface ImgServer extends ImgServerOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n public Object getObject()\n {\n return null;\n }",
"@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}",
"default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }",
"IObjectWrapper mo29837Ca() throws RemoteException;",
"public static void objectDemo() {\n\t}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"void marshal(Object obj);",
"protected synchronized boolean isObjectPresent() { return objPresent; }",
"public interface Task extends TaskOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"EJBLocalObject getEJBLocalObject() throws IllegalStateException;",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"Object getBase();",
"void mo67921a(Object obj);",
"JITypeLibImpl(IJIComObject comObject/*, JIRemUnknown unknown*/)\n\t{\n\t\tsuper(comObject);\n\t\t//this.comObject = comObject;\n\t}",
"public interface DerivedType extends EObject {\r\n}",
"public ObjectReference getObject();",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"void getObject(String globalName) throws RemoteException, NotBoundException, MalformedURLException {\n remoteObject = (GraphInterface) Naming.lookup(globalName);\n }",
"public abstract void mo1184a(Object obj);",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"org.omg.CORBA.Object _duplicate();",
"com.google.protobuf2.AnyOrBuilder getObjectOrBuilder();",
"void mo6504by(Object obj);",
"public NetObject getObject();",
"public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}",
"public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}",
"Object loadObject() throws Exception;",
"slco.Object getObject2();",
"@Override\n public boolean isObject() {\n return false;\n }",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"private Object setupDefaultPrototype() {\n }",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"com.google.protobuf2.Any getObject();",
"public void setObject(XSerial obj);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public boolean isObject() {\n return false;\n }",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"public interface IDomainObject<T> extends IBasicDomainObject {\n\n Long getId();\n\n String getLabel();\n\n void initLazy();\n\n /**\n * Constant that indicates that the object has no id and is therefore to be ignored. \n */\n public static final Long UNASSIGNED_VALUE = Long.MIN_VALUE;\n public static final Long ROOT_USER_ID = new Long(0);\n}",
"public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }",
"@Override @AvailMethod\n\tA_Type o_Kind (\n\t\tfinal AvailObject object)\n\t{\n\t\treturn Types.ANY.o();\n\t}",
"public interface Compromiso_peticionLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Get accessor for persistent attribute: tiag_id\n\t */\n\tpublic java.lang.Long getTiag_id();\n\t/**\n\t * Set accessor for persistent attribute: tiag_id\n\t */\n\tpublic void setTiag_id(java.lang.Long newTiag_id);\n\t/**\n\t * Get accessor for persistent attribute: id_rango\n\t */\n\tpublic java.lang.Integer getId_rango();\n\t/**\n\t * Set accessor for persistent attribute: id_rango\n\t */\n\tpublic void setId_rango(java.lang.Integer newId_rango);\n\t/**\n\t * Get accessor for persistent attribute: peti_numero\n\t */\n\tpublic java.lang.Long getPeti_numero();\n\t/**\n\t * Set accessor for persistent attribute: peti_numero\n\t */\n\tpublic void setPeti_numero(java.lang.Long newPeti_numero);\n\t/**\n\t * Get accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic java.lang.String getCodigo_pcom();\n\t/**\n\t * Set accessor for persistent attribute: codigo_pcom\n\t */\n\tpublic void setCodigo_pcom(java.lang.String newCodigo_pcom);\n\t/**\n\t * Get accessor for persistent attribute: dia_especifico\n\t */\n\tpublic java.sql.Timestamp getDia_especifico();\n\t/**\n\t * Set accessor for persistent attribute: dia_especifico\n\t */\n\tpublic void setDia_especifico(java.sql.Timestamp newDia_especifico);\n\t/**\n\t * Get accessor for persistent attribute: id_tecnico\n\t */\n\tpublic java.lang.Long getId_tecnico();\n\t/**\n\t * Set accessor for persistent attribute: id_tecnico\n\t */\n\tpublic void setId_tecnico(java.lang.Long newId_tecnico);\n\t/**\n\t * Get accessor for persistent attribute: user_mac\n\t */\n\tpublic java.lang.String getUser_mac();\n\t/**\n\t * Set accessor for persistent attribute: user_mac\n\t */\n\tpublic void setUser_mac(java.lang.String newUser_mac);\n\t/**\n\t * Get accessor for persistent attribute: hora_desde\n\t */\n\tpublic java.lang.String getHora_desde();\n\t/**\n\t * Set accessor for persistent attribute: hora_desde\n\t */\n\tpublic void setHora_desde(java.lang.String newHora_desde);\n\t/**\n\t * Get accessor for persistent attribute: hora_hasta\n\t */\n\tpublic java.lang.String getHora_hasta();\n\t/**\n\t * Set accessor for persistent attribute: hora_hasta\n\t */\n\tpublic void setHora_hasta(java.lang.String newHora_hasta);\n\t/**\n\t * Get accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic java.lang.String getCodigo_agencia();\n\t/**\n\t * Set accessor for persistent attribute: codigo_agencia\n\t */\n\tpublic void setCodigo_agencia(java.lang.String newCodigo_agencia);\n\t/**\n\t * Get accessor for persistent attribute: estado\n\t */\n\tpublic java.lang.Short getEstado();\n\t/**\n\t * Set accessor for persistent attribute: estado\n\t */\n\tpublic void setEstado(java.lang.Short newEstado);\n\t/**\n\t * Get accessor for persistent attribute: grse_id\n\t */\n\tpublic java.lang.Integer getGrse_id();\n\t/**\n\t * Set accessor for persistent attribute: grse_id\n\t */\n\tpublic void setGrse_id(java.lang.Integer newGrse_id);\n\t/**\n\t * Get accessor for persistent attribute: fecha\n\t */\n\tpublic java.sql.Timestamp getFecha();\n\t/**\n\t * Set accessor for persistent attribute: fecha\n\t */\n\tpublic void setFecha(java.sql.Timestamp newFecha);\n\t/**\n\t * Get accessor for persistent attribute: care_id\n\t */\n\tpublic java.lang.Integer getCare_id();\n\t/**\n\t * Set accessor for persistent attribute: care_id\n\t */\n\tpublic void setCare_id(java.lang.Integer newCare_id);\n\t/**\n\t * Get accessor for persistent attribute: usua_id\n\t */\n\tpublic java.lang.Long getUsua_id();\n\t/**\n\t * Set accessor for persistent attribute: usua_id\n\t */\n\tpublic void setUsua_id(java.lang.Long newUsua_id);\n\t/**\n\t * Get accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic java.lang.Long getId_cita_previa();\n\t/**\n\t * Set accessor for persistent attribute: id_cita_previa\n\t */\n\tpublic void setId_cita_previa(java.lang.Long newId_cita_previa);\n}",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}",
"slco.Object getObject1();",
"public abstract Object mo1185b();",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean hasObjectOption1(GlobalObject obj) {\n\t\treturn false;\r\n\t}",
"protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }",
"public IDfPersistentObject getObject() {\n\t\treturn object;\n\t}",
"public void mo1774a(Object obj) {\n }",
"Objet getObjetAlloue();",
"boolean mo10605a(Object obj);",
"public interface FilterFactory extends FilterFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }",
"public abstract Object getObservedObject();",
"public void add(RealObject o) throws NullPointerException;",
"void checkReconstructible() throws InvalidObjectException {\n // subclasses can override\n }",
"public java.lang.String getObjectName(){\n return localObjectName;\n }"
]
| [
"0.6396029",
"0.63822776",
"0.61573255",
"0.6151376",
"0.6089821",
"0.6084226",
"0.60506654",
"0.5898948",
"0.5870759",
"0.583996",
"0.5827664",
"0.58242613",
"0.57854563",
"0.57478654",
"0.5740336",
"0.5731119",
"0.56747174",
"0.5660005",
"0.56570226",
"0.5656142",
"0.56469774",
"0.56428313",
"0.5635596",
"0.56299734",
"0.56219554",
"0.55996084",
"0.5594829",
"0.559249",
"0.5587958",
"0.55843806",
"0.5564244",
"0.55240417",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5492875",
"0.5475471",
"0.5474555",
"0.5470686",
"0.54638016",
"0.54308605",
"0.54280525",
"0.54146063",
"0.54059803",
"0.5404886",
"0.53911436",
"0.5371534",
"0.5341445",
"0.53406924",
"0.53116494",
"0.5306789",
"0.53055245",
"0.5304109",
"0.52972937",
"0.5281999",
"0.5279949",
"0.5278018",
"0.5274605",
"0.52618515",
"0.52601343",
"0.52500224",
"0.52393335",
"0.5221913",
"0.5218018",
"0.52063227",
"0.52050287",
"0.5201766",
"0.51975816",
"0.51943916",
"0.5190378",
"0.5186771",
"0.5185541",
"0.51735234",
"0.51576287",
"0.5150997",
"0.5148068",
"0.5147254",
"0.5146245",
"0.51456016",
"0.5131586",
"0.5124168",
"0.5119572",
"0.5119395",
"0.5116772",
"0.510974",
"0.50959355",
"0.5085107",
"0.50778097",
"0.50778097",
"0.5062081",
"0.50574017",
"0.50569874",
"0.5050875",
"0.50451016",
"0.50427526",
"0.5042256",
"0.5035779",
"0.5029145",
"0.50267917",
"0.50245684",
"0.5021749"
]
| 0.0 | -1 |
onStop() NOTE: connectTo will never be called, also won't do anything unless bottom is uncommented | public boolean connectTo(String bssid){
WifiConfiguration newWc = new WifiConfiguration();
//mBSSID = bssid;
newWc.BSSID = bssid;
newWc.SSID = mSSID;
newWc.preSharedKey = mActiveConfiguration.preSharedKey;
newWc.hiddenSSID = mActiveConfiguration.hiddenSSID;
newWc.status = WifiConfiguration.Status.ENABLED;
newWc.allowedAuthAlgorithms = mActiveConfiguration.allowedAuthAlgorithms;
newWc.allowedGroupCiphers = mActiveConfiguration.allowedGroupCiphers;
newWc.allowedKeyManagement = mActiveConfiguration.allowedKeyManagement;
newWc.allowedPairwiseCiphers = mActiveConfiguration.allowedPairwiseCiphers;
newWc.allowedProtocols = mActiveConfiguration.allowedProtocols;
newWc.wepKeys = mActiveConfiguration.wepKeys;
newWc.wepTxKeyIndex = mActiveConfiguration.wepTxKeyIndex;
if(Build.VERSION.SDK_INT >= 18) {
newWc.enterpriseConfig = mActiveConfiguration.enterpriseConfig;
}
if(Build.VERSION.SDK_INT >= 23) {
newWc.roamingConsortiumIds = mActiveConfiguration.roamingConsortiumIds;
newWc.providerFriendlyName = mActiveConfiguration.providerFriendlyName;
}
//int netId = mWifiManager.addNetwork(newWc);
//Log.d(TAG, "Added network w/ id " + netId);
//mWifiManager.disconnect();
//return mWifiManager.enableNetwork(netId, true);
//return mWifiManager.reconnect();
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected void onStop() {\n }",
"@Override\n protected void onStop() {\n }",
"public void onStop () {\t\t\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onStop() {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStop() {\n\n\t\t\t}",
"@Override\n public void onStop() {\n }",
"@Override\r\n\tprotected void onStop() {\n\t\t\r\n\t}",
"@Override\n public void onStop()\n {\n }",
"@Override\n\tpublic void onStop() {\n\n\t}",
"public void onStop() {\n super.onStop();\n getDelegate().d();\n }",
"public void onStop();",
"public void onStop() {\n\t }",
"@Override\n protected void onStop() {\n super.onStop();\n }",
"public void onStop() {\n }",
"@Override\r\n protected void onStop() {\n super.onStop();\r\n }",
"@Override\n protected void onStop() {\n\n super.onStop();\n getDelegate().onStop();\n }",
"@Override\r\n public void onStop() {\r\n super.onStop();\r\n\r\n\r\n }",
"@Override\n protected void onStop() {\n super.onStop();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n }",
"@Override\r\n\tprotected void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\r\n\tprotected void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\r\n\tprotected void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\n\t\tprotected void onStop() {\n\t\t\tsuper.onStop();\n\t\t}",
"@Override\r\n\tpublic void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\r\n\tpublic void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\r\n\tpublic void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\n public void onStop() {\n super.onStop();\n }",
"@Override\n public void onStop() {\n super.onStop();\n }",
"public void onStop() {\n }",
"public void onStop() {\n }",
"@Override\r\n protected void onStop() {\n\tsuper.onStop();\r\n }",
"@Override\n protected void onStop() {\n\n super.onStop();\n\n }",
"@Override\n\tprotected void onStop() {\n\t\tSystem.out.println(\"---onStop---\");\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tSystem.out.println(\"onStop\");\n\t}",
"protected void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"protected void onStop() {\n\t\tsuper.onStop();\r\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tLogUtils.d(\"onStop() is in\");\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tpublic void onStop() {\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop()\n\t{\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tSystem.out.println(\"onStop...\");\n\t}",
"public void onStop() {\n\n }",
"protected void onStop ()\n\t{\n\t\tsuper.onStop ();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsendMessageToService(ConnectionService.STOP);\n\t\tsuper.onStop();\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tuiHelper.onStop(); \n\t}",
"@Override\n public void stop() {}",
"@Override\n protected void onStop() {\n Log.i(\"G53MDP\", \"Main onStop\");\n super.onStop();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n Log.e(TAG, \"onStop\");\n }",
"void onStopped();",
"@Override\n protected void onStop() {\n super.onStop();\n Log.d(TAG, \"onStop() called\");\n }",
"@Override\r\n\tpublic void onStop() \r\n\t{\n\t\tsuper.onStop();\r\n\r\n\t\t_pinger.stop();\r\n\t\t_hostEnumerator.stop();\r\n\t\tLog.i(TAG, \"onStop\");\r\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tLog.v(\"tag\",\"onStop\" );\n\t}",
"@SuppressWarnings(\"deprecation\")\r\n\t@Override\r\n\tprotected void onStop()\r\n\t{\r\n\t}",
"@Override\r\n\tpublic void onStop() {\n\t\tsuper.onStop();\r\n\t\tLog.e(TAG, \"onStop\");\r\n\t}",
"@Override\r\n\tpublic void onStop() {\n\t\tsuper.onStop();\r\n\t\tLog.e(TAG, \"onStop\");\r\n\t}",
"@Override\n protected void onStop() {\n super.onStop();\n Log.d(msg, \"The onStop() event\");\n }",
"public void onStop() {\n this.eventDelegate.onStop();\n super.onStop();\n }",
"@Override\n protected void onStop() {\n status = 0;\n super.onStop();\n }",
"@Override\r\n\tpublic void stopped() {\r\n\r\n\t\t// Stop timers\r\n\t\tsuper.stopped();\r\n\r\n\t\t// Disconnect\r\n\t\tdisconnect();\r\n\t}",
"@Override\nprotected void onStop() {\n\tsuper.onStop();\n\tLog.d(TAG, \"onStop\");\n}",
"@Override\r\n public void stop() {\r\n\r\n }",
"public void onStop() {\n super.onStop();\n mo4364b().mo4305d();\n }",
"@Override\r\n public void stop() {\r\n }",
"@Override\r\n public void stop() {\r\n }",
"protected void onStop() throws FailedToStopException { }",
"@Override public void stop () {\n }",
"@Override\n public void stop() {\n }",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tLog.i(TAG, module + \" Entra por onStop\");\n\n\t}",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tLog.e(TAG, \"onStop\");\n\t}",
"@Override\n public void stop() {\n\n }",
"void notifyStop();",
"@Override public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@Override\n public void stop() {\n }",
"@EncoderThread\n protected abstract void onStop();"
]
| [
"0.78769135",
"0.78421026",
"0.78418744",
"0.7828622",
"0.7828622",
"0.78105676",
"0.77968025",
"0.7740235",
"0.7734049",
"0.77339727",
"0.77043295",
"0.7688909",
"0.7673345",
"0.76441705",
"0.7642111",
"0.7638946",
"0.759437",
"0.75873435",
"0.75873435",
"0.75873435",
"0.75873435",
"0.75873435",
"0.7577878",
"0.7577878",
"0.7577878",
"0.7567494",
"0.7567127",
"0.7567127",
"0.7567127",
"0.75590533",
"0.75590533",
"0.75178975",
"0.75178975",
"0.75088274",
"0.7507351",
"0.7507179",
"0.7461037",
"0.7458429",
"0.7458429",
"0.7452171",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74482393",
"0.74462914",
"0.74462914",
"0.74462914",
"0.74462914",
"0.7434698",
"0.742743",
"0.7426828",
"0.74033636",
"0.7399015",
"0.7364814",
"0.73355436",
"0.7284618",
"0.7262001",
"0.7244827",
"0.72446364",
"0.72408247",
"0.72390044",
"0.7236293",
"0.7229546",
"0.7203283",
"0.7203283",
"0.71945786",
"0.71771896",
"0.71727324",
"0.715726",
"0.71546435",
"0.71458346",
"0.71446854",
"0.7141423",
"0.7141423",
"0.71345115",
"0.71341115",
"0.71183854",
"0.7104587",
"0.7101011",
"0.70968455",
"0.7070923",
"0.70598185",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7052565",
"0.7011754"
]
| 0.0 | -1 |
super.onFailure(statusCode, headers, responseString, throwable); | @Override
public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n\r\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers,\n\t\t\t\t\t\t\t\t\tresponseString, throwable);\n\t\t\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, String responseString, Throwable throwable) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }",
"@Override\n public void onFailure(Throwable t) {\n }",
"@Override\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\t\tThrowable throwable, JSONArray errorResponse) {\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n\n Log.i(\"onFailure\", res);\n }",
"@Override\r\n public void onFailure(Throwable t) {\n }",
"@Override\r\n public void onFailure(Throwable t) {\n }",
"@Override\n public void onFailure(Throwable t) {\n }",
"@Override\n \t\t\t\tpublic void onFailure(Throwable caught) {\n \n \t\t\t\t}",
"@Override\n public void onFailure(Throwable caught) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }",
"@Override\n\t\t\tpublic void onFailure(Throwable t, String errorMsg, int statusCode) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t\t\t}",
"public abstract void onFailure(FailureCode code, Throwable ex);",
"@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\r\n\t\t\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n System.out.println(\"applyBook-->onFailure\" + statusCode);\n }",
"@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n\t public void onFailure(Throwable caught) {\n\n\t }",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onFailure(int code, Header[] header,\n byte[] data, Throwable throwable) {\n super.onFailure(code, header, data, throwable);\n }",
"@Override\n public void onFailure(int code, Header[] header,\n byte[] data, Throwable throwable) {\n super.onFailure(code, header, data, throwable);\n }",
"@Override\n public void onFailure(int statusCode, Headers headers, String response, Throwable throwable) {\n Log.i(\"doRequest\", \"doRequest failed\");\n\n }",
"@Override\r\n \t\t\t\tpublic void onFailure(Throwable caught)\r\n \t\t\t\t{\n \t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onFailure(Throwable caught)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"void onFailure(Throwable error);",
"@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t\t\t}",
"@Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n }",
"@Override\r\n\t\t\tpublic void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n\t\t\t\tsuper.onFailure(statusCode, headers, throwable, errorResponse);\r\n\t\t\t\tToast.makeText(context, \"网络异常,请稍后重试\", Toast.LENGTH_LONG).show();\r\n\t\t\t}",
"public void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t Throwable throwable, String action);",
"@Override\n public void onFailure() {\n }",
"public void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void onFailure(TAResponse response) {\n\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tbyte[] responseBody, Throwable error) {\n\t\t\t\t\t\terror.printStackTrace();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tbyte[] responseBody, Throwable error) {\n\t\t\t\t\t\terror.printStackTrace();\n\t\t\t\t\t}",
"public void onFailure(Exception t);",
"@Override\n\t\t\t\t\tpublic void onFailure(Throwable arg0, String arg1) {\n\t\t\t\t\t\tsuper.onFailure(arg0, arg1);\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t}",
"@Override\n\t\tpublic void onFailure(Throwable caught) {\n\t\t}",
"@Override\n\t\tpublic void onFailure(Throwable caught) {\n\t\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(Throwable arg0, String arg1) {\n\t\t\t\t\t\tsuper.onFailure(arg0, arg1);\n\t\t\t\t\t\tLog.i(\"test\", \"reslult failure:\" + arg1);\n\t\t\t\t\t}",
"public void onFailure();",
"@Override\n public void onFailure(Throwable caught) {\n result.onFailure(caught);\n }",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(int arg0, Header[] arg1, byte[] arg2, Throwable arg3) {\n\t\t\t\tL.i(\"执行onFailure\");\n\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n super.onFailure(statusCode, headers, throwable, errorResponse);\n fragment.onDownloadFailure();\n }",
"public void onFailure(Throwable caught) {\n\r\n\t\t\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONArray errorResponse) {\n super.onFailure(statusCode, headers, throwable, errorResponse);\n fragment.onDownloadFailure();\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n loopjListener.getResponse(\"Error Bro:(\");\n Log.d(TAG, \"onFailure#2: \" + responseString);\n }",
"public void onFail(int statusCode, String address);",
"@Override\n\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\n\t\t}",
"void onFailure() {\n\t}",
"@Override\n public void onFailure(int arg0, String arg1, Throwable arg2) {\n }",
"void onFailure();",
"void onFailure();",
"void onFailure();",
"@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tfail(\"Request failure: \" + caught.getMessage());\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t}",
"public void onFailure(Throwable arg0) {\n\t\t\t\t\t\t\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}",
"@Override\n public void onFailure(Exception error) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n loopjListener.getResponse(\"Error Bro:(\");\n Log.d(TAG, \"onFailure#1: \" + errorResponse);\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n loopjListener.getResponse(\"Error Bro:(\");\n Log.d(TAG, \"onFailure#1: \" + errorResponse);\n }",
"@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}",
"public void onFailure(Throwable caught) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(Object o) {\n\t\t\t\t\t}",
"void onFailure(String description);",
"@Override\n \t\t\tpublic void onFailure(Throwable arg0, JSONObject arg1) {\n \t\t\t}",
"@Override\n public void onFailure(int arg0) {\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n loopjListener.getResponse(responseString);\n Log.d(TAG, \"onFailure#2: \" + responseString);\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n loopjListener.getResponse(responseString);\n Log.d(TAG, \"onFailure#2: \" + responseString);\n }",
"@Override\n public void onApiFailure(Throwable mThrowable) {\n\n }"
]
| [
"0.88250434",
"0.8522916",
"0.8493404",
"0.84822387",
"0.8468708",
"0.8468708",
"0.8421613",
"0.83213687",
"0.8304373",
"0.83037066",
"0.83037066",
"0.82742053",
"0.82378674",
"0.82053334",
"0.81453264",
"0.81453264",
"0.813875",
"0.8124088",
"0.81213343",
"0.81193",
"0.81193",
"0.80974007",
"0.8063092",
"0.8063092",
"0.8063092",
"0.8063092",
"0.8063092",
"0.80493015",
"0.80418044",
"0.803938",
"0.8027883",
"0.80276906",
"0.8017057",
"0.7990199",
"0.79777074",
"0.79777074",
"0.79777074",
"0.79777074",
"0.79677916",
"0.79677916",
"0.7964025",
"0.79563767",
"0.7931628",
"0.7923214",
"0.79215133",
"0.79215133",
"0.7913042",
"0.79066914",
"0.7897935",
"0.7895059",
"0.7888226",
"0.7878655",
"0.78667575",
"0.78667575",
"0.7863716",
"0.7862834",
"0.7862834",
"0.78589994",
"0.7842439",
"0.78402156",
"0.78402156",
"0.783855",
"0.783855",
"0.78347003",
"0.78152955",
"0.78123367",
"0.77975374",
"0.77975374",
"0.77975374",
"0.77784914",
"0.77657694",
"0.7761806",
"0.77572256",
"0.7744284",
"0.77336025",
"0.7730907",
"0.7729476",
"0.7725825",
"0.769294",
"0.769294",
"0.769294",
"0.7692717",
"0.7692717",
"0.7692717",
"0.76882774",
"0.76829827",
"0.7680477",
"0.76536757",
"0.76480806",
"0.7631392",
"0.7631392",
"0.7616612",
"0.7610509",
"0.76024747",
"0.75877154",
"0.7553503",
"0.75351834",
"0.7529179",
"0.7529179",
"0.7527905"
]
| 0.8510418 | 2 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
fragmentUpdateAppBottomBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_update_app_bottom, container, false);
return fragmentUpdateAppBottomBinding.getRoot(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
RLogF reflects the tendency of an EP to extract a target set of words. When we use bootstrapping to construct a semantic lexicon ala Thelen&Riloff, the words parameter is the entire lexicon at the current bootstrapping iteration, and RLogF reflects the tendency of that EP to extract those words in particular, / as opposed to all words it might extract. | public float calculateRLogF(Vector<String> words) {
double targetExtractedCount = 0;
for (String word : words) {
double count = ObjectInfoWrapper.getCount(
this.wordCountWrappers, word);
targetExtractedCount += count;
}
double score = (targetExtractedCount / this.totalWordCount)
* Math.log(targetExtractedCount);
return new Float(score).floatValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<String> getContextWords(Tree tree) {\r\n List<String> words = null;\r\n if (op.trainOptions.useContextWords) {\r\n words = Generics.newArrayList();\r\n List<Label> leaves = tree.yield();\r\n for (Label word : leaves) {\r\n words.add(word.value());\r\n }\r\n }\r\n return words;\r\n }",
"public List<String> getFrequentWords() {\n\t\tif (this.frequentWords == null) {\n\t\t\tSet<String> wordsToReturn = new TreeSet<String>();\n\t\t\tfor (String folder : termFrequencyManager.getTfidfByFolder().keySet()) {\n\t\t\t\tint index = 0;\n\t\t\t\tMap<String, TFIDFSummary> tfidSummaries =\n\t\t\t\t\t\ttermFrequencyManager.getTfidfByFolder().get(folder);\n\t\t\t\tArrayList<TFIDFSummary> tfidfSummariesList = new ArrayList<TFIDFSummary>(tfidSummaries.size());\n\t\t\t\tfor (String term : tfidSummaries.keySet()) {\n\t\t\t\t\ttfidfSummariesList.add(tfidSummaries.get(term));\n\t\t\t\t}\n\t\t\t\tCollections.sort(tfidfSummariesList);\n\n\t\t\t\twhile (index < tfidfSummariesList.size() && index < MAX_NUM_ATTRIBUTES_BY_FOLDER) {\n\t\t\t\t\tTFIDFSummary ts = tfidfSummariesList.get(tfidfSummariesList.size() - 1 - index);\n\t\t\t\t\twordsToReturn.add(ts.getTerm());\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.frequentWords = new ArrayList<String>(wordsToReturn);\n\t\t}\n\t\tSystem.out.println(\"Numero de palabras frecuentes: \" + this.frequentWords.size());\n\t\tfor (String w : frequentWords) System.out.println(\"FreqWord \" + w);\n\t\treturn this.frequentWords;\n\t}",
"public String get_all_words_and_definitions(){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\t\tfound_words += child.get_all_words_and_definitions();\n\t\t}\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word +\" & \" + definition + \"\\n\" + found_words ;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word +\" & \" + definition + \"\\n\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}",
"public static void getWordList(FeatureNode word, ArrayList<FeatureNode> words)\n\t{\n\t\tFeatureNode fn = word.get(\"phr-head\");\n\t\twhile (fn != null)\n\t\t{\n\t\t\tFeatureNode wd = fn.get(\"phr-word\");\n\t\t\tif (wd != null) words.add (wd);\n\n\t\t\tFeatureNode subf = fn.get(\"phr-head\");\n\t\t\tif (subf != null)\n\t\t\t{\n\t\t\t\tgetWordList(fn, words);\n\t\t\t}\n\t\t\tfn = fn.get(\"phr-next\");\n\t\t}\n\t}",
"static void returnTfIdfResults() {\n\t\tSet<String> specificWords = findKeywords();\n\n\t\t// for every phrase\n\t\tfor (String word : specificWords) {\n\t\t\t// get the total number of documents\n\t\t\tdouble totalSize = size;\n\n\t\t\t// get the collection of documents containing that word\n\t\t\tCollection<File> containingWordSet = invertedMap.getValues(word);\n\n\t\t\t// makes a new one if null (for ease of code)\n\t\t\tif (containingWordSet == null) {\n\t\t\t\tcontainingWordSet = new HashSet<File>();\n\t\t\t}\n\n\t\t\t// the number containing the word\n\t\t\tdouble numContainingWord = containingWordSet.size();\n\n\t\t\t// get the idf (log(total/(1 + |# contain word|)\n\t\t\t// it is normalize with 1 to prevent division by 0\n\t\t\tdouble idf = Math.log(totalSize / (1 + numContainingWord));\n\n\t\t\t// System.out.println(\"------------------\");\n\t\t\t// System.out.println(word + \" totalSize \" + totalSize);\n\t\t\t// System.out.println(word + \" numContainingWord \" +\n\t\t\t// numContainingWord);\n\t\t\t// System.out.println(word + \" idf \" + idf);\n\t\t\t// System.out.println(\"------------------\");\n\n\t\t\t// set the wordscore to 0\n\t\t\tdouble wordScore = 0;\n\n\t\t\t// for all of the files with the word\n\t\t\tfor (File file : containingWordSet) {\n\t\t\t\tString fileName = file.getName();\n\n\t\t\t\t// get the phrase count for this document\n\t\t\t\tInteger phraseCount = phraseCountMap.get(fileName);\n\t\t\t\tdouble numPhrases = phraseCount.doubleValue();\n\n\t\t\t\t// get the word frequency map for this page\n\t\t\t\tHashMap<String, Integer> docFreqMap = wordFreqMap.get(fileName);\n\t\t\t\tInteger freq = docFreqMap.get(word);\n\n\t\t\t\t// otherwise, get the tf\n\t\t\t\tdouble tf;\n\t\t\t\tif (freq == null) {\n\t\t\t\t\t// if it's not present, it's 0\n\t\t\t\t\ttf = 0;\n\t\t\t\t} else {\n\t\t\t\t\t// otherwise, it's the value\n\t\t\t\t\ttf = freq / numPhrases;\n\t\t\t\t\t// System.out.println(tf);\n\t\t\t\t}\n\n\t\t\t\t// multiply for this score\n\t\t\t\tdouble score = tf * idf;\n\n\t\t\t\t// add it to the page score\n\t\t\t\twordScore += score;\n\t\t\t}\n\n\t\t\t// make a node with the sum of tf-idf for all relevant phrases and\n\t\t\t// add to pq\n\t\t\tWordNode w = new WordNode(word, wordScore);\n\t\t\tpq.add(w);\n\t\t}\n\t}",
"public String get_all_words(){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\t\tfound_words += child.get_all_words();\n\t\t}\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word + \"#\" + found_words;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word+ \"#\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}",
"void calculateLogLikelihoods(double[] fPartials, double[] fFrequencies, double[] fOutLogLikelihoods)\n\t{\n int v = 0;\n\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n double sum = 0.0;\n\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\tsum += fFrequencies[i] * fPartials[v];\n\t\t\t\tv++;\n\t\t\t}\n fOutLogLikelihoods[k] = Math.log(sum) + getLogScalingFactor(k);\n\t\t}\n\t}",
"public List<String> findAllWords(String[] words, String target,int k) {\n List<String> res = new ArrayList<>();\n if(target == null || k < 0) return res;\n TrieNode root = buildTrie(words);\n int[] targetDP = new int[target.length() + 1];\n for(int i = 0; i < targetDP.length; i++) targetDP[i] = i;\n helper(root, \"\", target, targetDP, res, k);\n return res;\n }",
"@Override\n\tpublic double p_w_given_l(String word, Label label) {\n\n\t\t// Calculate the probability with Laplace smoothing for word in class(label)\n\t\tdouble ret = 0;\n\t\tm_delta = 0.00001;\n\n\t\tif (label == Label.SPORTS) {\n\t\t\t// if training data has this word\n\t\t\tif (m_map[0].get(word) != null) {\n\t\t\t\tret = (m_map[0].get(word).intValue() + m_delta) / (m_v * m_delta + sumV[0]);\n\t\t\t}\n\t\t\t// training data does not have this word\n\t\t\telse {\n\t\t\t\tret = m_delta / (m_v * m_delta + sumV[0]);\n\t\t\t}\n\t\t} else {\n\t\t\t// if training data has this word\n\t\t\tif (m_map[1].get(word) != null) {\n\t\t\t\tret = (m_map[1].get(word).intValue() + m_delta) / (m_v * m_delta + sumV[1]);\n\t\t\t}\n\t\t\t// training data does not have this word\n\t\t\telse {\n\t\t\t\tret = m_delta / (m_v * m_delta + sumV[1]);\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}",
"private HashMap<String,HashMap<String,Integer>> computeTFForQueryWords(ArrayList<String> queryPostingLines) {\n HashMap<String,HashMap<String,Integer>> queryWordsTF = new HashMap<>();\n HashMap<String,HashMap<String,Integer>> queryWordsTFPerDoc = new HashMap<>();\n String docID,term;\n Integer tf;\n HashSet<String> docIDs = new HashSet<>();\n for(String postingLine : queryPostingLines){\n HashMap<String,Integer> frequenciesInDocuments = new HashMap<>();\n term = postingLine.substring(0,postingLine.indexOf(\"|\"));\n postingLine = postingLine.substring(postingLine.indexOf(\"|\")+1);\n while(!postingLine.equals(\"\")) {\n docID = postingLine.substring(0, postingLine.indexOf(\":\"));\n docIDs.add(docID);\n postingLine = postingLine.substring(postingLine.indexOf(\"_\") + 1);\n tf = Integer.valueOf(postingLine.substring(0, postingLine.indexOf(\"_\")));\n postingLine = postingLine.substring(postingLine.indexOf(\"_\") + 1);\n frequenciesInDocuments.put(docID,tf);\n }\n queryWordsTF.put(term,frequenciesInDocuments);\n }\n\n ArrayList<String> allTermsInQuery = new ArrayList<>(queryWordsTF.keySet());\n for(String doc : docIDs){\n HashMap<String,Integer> tfsInDoc = new HashMap<>();\n for(String termInQuery : allTermsInQuery){\n HashMap<String,Integer> termsTFInDoc = queryWordsTF.get(termInQuery);\n if(termsTFInDoc.containsKey(doc)){\n tfsInDoc.put(termInQuery,termsTFInDoc.get(doc));\n }\n }\n queryWordsTFPerDoc.put(doc,tfsInDoc);\n }\n return queryWordsTFPerDoc;\n }",
"@Override\n\tpublic ClassifyResult classify(List<String> words) {\n\t\t// TODO : Implement\n\t\t// Sum up the log probabilities for each word in the input data, and the\n\t\t// probability of the label\n\t\t// Set the label to the class with larger log probability\n\t\tdouble log_POSITIVE = Math.log(p_l(Label.POSITIVE));\n\t\tfor (String word : words)\n\t\t\tlog_POSITIVE += Math.log(p_w_given_l(word, Label.POSITIVE));\n\n\t\tdouble log_NEGATIVE = Math.log(p_l(Label.NEGATIVE));\n\t\tfor (String word : words)\n\t\t\tlog_NEGATIVE += Math.log(p_w_given_l(word, Label.NEGATIVE));\n\n\t\t// Create the ClassifyResult\n\t\tClassifyResult result = new ClassifyResult();\n\t\tresult.logProbPerLabel = new HashMap<Label, Double>();\n\t\tresult.logProbPerLabel.put(Label.POSITIVE, log_POSITIVE);\n\t\tresult.logProbPerLabel.put(Label.NEGATIVE, log_NEGATIVE);\n\t\t\n\t\tif (log_POSITIVE > log_NEGATIVE)\n\t\t\tresult.label = Label.POSITIVE;\n\t\telse\n\t\t\tresult.label = Label.NEGATIVE;\n\n\t\treturn result;\n\t}",
"public Set<String> queryTermsConsidered(Query query, double idf_threshold){\n double idf, nDocs = this.docIDs.size();\n String term;\n\n Set<String> termsToConsider = new HashSet<String>();\n\n Iterator<String> it = query.terms.iterator();\n while(it.hasNext()){\n term = it.next();\n idf = -1;\n if(this.idfMap.containsKey(term))\n idf = Math.log(nDocs/new Double(this.idfMap.get(term)));\n if (idf >= idf_threshold){\n termsToConsider.add(term);\n }\n /*else{\n System.err.println(term + \" not considered since idf = \" + idf);\n }*/\n }\n\n return termsToConsider;\n\n }",
"@Override\n\tpublic ClassifyResult classify(String[] words) {\n\n\t\t// Sum up the log probabilities for each word in the input data, and the\n\t\t// probability of the label\n\t\t// Set the label to the class with larger log probability\n\t\tClassifyResult ret = new ClassifyResult();\n\t\tret.label = Label.SPORTS;\n\t\tret.log_prob_sports = 0;\n\t\tret.log_prob_business = 0;\n\n\t\tfor (String w : words) {\n\t\t\tret.log_prob_sports += Math.log(p_w_given_l(w, Label.SPORTS));\n\t\t\tret.log_prob_business += Math.log(p_w_given_l(w, Label.BUSINESS));\n\t\t}\n\n\t\tret.log_prob_sports += Math.log(p_l(Label.SPORTS));\n\t\tret.log_prob_business += Math.log(p_l(Label.BUSINESS));\n\n\t\tif (ret.log_prob_business > ret.log_prob_sports) {\n\t\t\tret.label = Label.BUSINESS;\n\t\t}\n\n\t\treturn ret;\n\t}",
"private double p_w_given_l(String word, Label label) {\n\t\t// TODO : Implement\n\t\t// Calculate the probability with Laplace smoothing for word in class(label)\n\t\tif(label.equals(Label.POSITIVE)) {\n\t\t\tdouble posCount = wordCount.get(Label.POSITIVE) + 0.0;\n\t\t\tif(!posWords.containsKey(word))\n\t\t\t\treturn 1.0/(v + posCount);\n\t\t\telse\n\t\t\t\treturn (1.0 + ((double)(posWords.get(word))))/(v + posCount);\n\t\t}\n\t\telse {\n\t\t\tdouble negCount = wordCount.get(Label.NEGATIVE) + 0.0;\n\t\t\tif(!negWords.containsKey(word))\n\t\t\t\treturn 1.0/(v + negCount);\n\t\t\telse\n\t\t\t\treturn (1.0 + ((double)(negWords.get(word))))/(v + negCount);\n\t\t}\n\t}",
"public double feedForward(List<Integer> context, Integer nextWord){\n\t\t// TODO: implement the feedforward activation process\n\t\treturn -10000.0;\n\t}",
"public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }",
"public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayList<String>();\n\t\tstopWords = stopWordsCreation();\n\n\n\t\t\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\t//Used in tittle, all terms are unique, and any dups become \" \"\n\t\n\t\t\n\t\tList<String> uniqueTerms = new ArrayList<String>();\n\t\tList<String> allTerms = new ArrayList<String>();\n\t\t\t\t\n\t\t\n\t\tHashMap<Integer, String> hmap2 = new HashMap<Integer, String>();\n\t\tHashMap<Integer, String> allValues = new HashMap<Integer, String>();\n\t\tHashMap<Integer, Double> docNorms = new HashMap<Integer, Double>();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMap<Integer, List<String>> postingsFileListAllWords = new HashMap<>();\t\t\n\t\tMap<Integer, List<String>> postingsFileList = new HashMap<>();\n\t\t\n\t\tMap<Integer, List<StringBuilder>> docAndTitles = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAbstract = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAuthors = new HashMap<>();\n\t\t\n\t\t\n\t\tMap<Integer, List<Double>> termWeights = new HashMap<>();\n\t\t\n\t\tList<Integer> docTermCountList = new ArrayList<Integer>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tFileReader fr = null;\n\t\tString sCurrentLine;\n\n\t\tint documentCount = 0;\n\t\tint documentFound = 0;\n\t\tint articleNew = 0;\n\t\tint docTermCount = 0;\n\t\t\n\t\t\n\t\tboolean abstractReached = false;\n\n\t\ttry {\n\t\t\tfr = new FileReader(FILENAME);\n\t\t\tbr = new BufferedReader(fr);\n\n\t\t\t// Continues to get 1 line from document until it reaches the end of EVERY doc\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) \n\t\t\t{\n\t\t\t\t// sCurrentLine now contains the 1 line from the document\n\n\t\t\t\t// Take line and split each word and place them into array\n\t\t\t\tString[] arr = sCurrentLine.split(\" \");\n\n\n\t\t\t\t//Go through the entire array\n\t\t\t\tfor (String ss : arr) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * This section takes the array and checks to see if it has reached a new\n\t\t\t\t\t * document or not. If the current line begins with an .I, then it knows that a\n\t\t\t\t\t * document has just started. If it incounters another .I, then it knows that a\n\t\t\t\t\t * new document has started.\n\t\t\t\t\t */\n\t\t\t\t\t//System.out.println(\"Before anything: \"+sCurrentLine);\n\t\t\t\t\tif (arr[0].equals(\".I\")) \n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (articleNew == 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 1;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (articleNew == 1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 0;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t//System.out.println(documentFound);\n\t\t\t\t\t\t//count++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* This section detects that after a document has entered,\n\t\t\t\t\t * it has to gather all the words contained in the title \n\t\t\t\t\t * section.\n\t\t\t\t\t */\n\t\t\t\t\tif (arr[0].equals(\".T\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndTitles.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder title = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".B|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String tittleWords : tittle)\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.toLowerCase();\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'*{}|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\t//System.out.println(tittleWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(tittleWords)) \n\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\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{\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(tittleWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(tittleWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(tittleWords);\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\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\ttitle.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndTitles.get(documentFound).add(title);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (arr[0].equals(\".A\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndAuthors.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder author = new StringBuilder();\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\twhile ( !(sCurrentLine = br.readLine()).matches(\".N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tauthor.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\tauthor.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndAuthors.get(documentFound).add(author);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* Since there may or may not be an asbtract after\n\t\t\t\t\t * the title, we need to check what the next section\n\t\t\t\t\t * is. We know that every doc has a publication date,\n\t\t\t\t\t * so it can end there, but if there is no abstract,\n\t\t\t\t\t * then it will keep scanning until it reaches the publication\n\t\t\t\t\t * date. If abstract is empty (in tests), it will also finish instantly\n\t\t\t\t\t * since it's blank and goes straight to .B (the publishing date).\n\t\t\t\t\t * Works EXACTLY like Title \t\t \n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (abstractReached) \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//System.out.println(\"\\n\");\n\t\t\t\t\t\t//System.out.println(\"REACHED ABSTRACT and current line is: \" +sCurrentLine);\n\t\t\t\t\t\tdocAndAbstract.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\tStringBuilder totalAbstract = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".T|.I|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString[] abstaract = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (abstaract[0].equals(\".B\") )\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tabstractReached = false;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalAbstract.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] misc = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tfor (String miscWords : misc) \n\t\t\t\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\tmiscWords = miscWords.toLowerCase(); \n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|?{}!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\t//System.out.println(miscWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(miscWords)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\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{\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(miscWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(miscWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\ttotalAbstract.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocAndAbstract.get(documentFound).add(totalAbstract);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\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\t//Once article is found, we enter all of of it's title and abstract terms \n\t\t\t\tif (articleNew == 0) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdocumentFound = documentFound - 1;\n\t\t\t\t\t//System.out.println(\"Words found in Doc: \" + documentFound);\n\t\t\t\t\t//System.out.println(\"Map is\" +allValues);\n\t\t\t\t\tSet set = hmap.entrySet();\n\t\t\t\t\tIterator iterator = set.iterator();\n\n\t\t\t\t\tSet set2 = allValues.entrySet();\n\t\t\t\t\tIterator iterator2 = set2.iterator();\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileList.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\tdocTermCount++;\n\t\t\t\t\t}\n\t\t\t\t\t// \"BEFORE its put in, this is what it looks like\" + hmap);\n\t\t\t\t\thmap2.putAll(hmap);\n\t\t\t\t\thmap.clear();\n\t\t\t\t\tarticleNew = 1;\n\n\t\t\t\t\tdocTermCountList.add(docTermCount);\n\t\t\t\t\tdocTermCount = 0;\n\n\t\t\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry2 = (Map.Entry) iterator2.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\t// docTermCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tallValues.clear();\t\t\t\t\t\n\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\n\t\t\t\t\t// \"MEANWHILE THESE ARE ALL VALUES\" + postingsFileListAllWords);\n\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Looking at final doc!\");\n\t\t\t//Final loop for last sets\n\t\t\tSet set = hmap.entrySet();\n\t\t\tIterator iterator = set.iterator();\n\n\t\t\tSet setA = allValues.entrySet();\n\t\t\tIterator iteratorA = setA.iterator();\n\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t// //);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\tString term2 = mentry.getValue().toString();\n\t\t\t\tpostingsFileList.get(documentFound - 1).add(term2);\n\n\t\t\t\tdocTermCount++;\n\t\t\t}\n\t\t\t//System.out.println(\"Done looking at final doc!\");\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Sorting time!\");\n\t\t\twhile (iteratorA.hasNext()) {\n\t\t\t\tMap.Entry mentry2 = (Map.Entry) iteratorA.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t// //);\n\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t// docTermCount++;\n\t\t\t}\n\n\t\t\thmap2.putAll(hmap);\n\t\t\thmap.clear();\n\t\t\tdocTermCountList.add(docTermCount);\n\t\t\tdocTermCount = 0;\n\n\n\t\t\t\n\t\t\n\t\t\t// END OF LOOKING AT ALL DOCS\n\t\t\t\n\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms);\n\t\t\tString[] sortedArray = allTerms.toArray(new String[0]);\n\t\t\tString[] sortedArrayUnique = uniqueTerms.toArray(new String[0]);\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t\n\t\t\tArrays.sort(sortedArray);\n\t\t\tArrays.sort(sortedArrayUnique);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//Sortings \n\t\t\tSet set3 = hmap2.entrySet();\n\t\t\tIterator iterator3 = set3.iterator();\n\n\t\t\t// Sorting the map\n\t\t\t//System.out.println(\"Before sorting \" +hmap2);\t\t\t\n\t\t\tMap<Integer, String> map = sortByValues(hmap2);\n\t\t\t//System.out.println(\"after sorting \" +map);\n\t\t\t// //\"After Sorting:\");\n\t\t\tSet set2 = map.entrySet();\n\t\t\tIterator iterator2 = set2.iterator();\n\t\t\tint docCount = 1;\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry me2 = (Map.Entry) iterator2.next();\n\t\t\t\t// (me2.getKey() + \": \");\n\t\t\t\t// //me2.getValue());\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Done sorting!\");\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Posting starts \");\n\t\t\t//\"THIS IS START OF DICTIONARTY\" \n\t\t\tBufferedWriter bw = null;\n\t\t\tFileWriter fw = null;\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Start making an array thats big as every doc total \");\n\t\t\tfor (int z = 1; z < documentFound+1; z++)\n\t\t\t{\n\t\t\t\ttermWeights.put(z, new ArrayList<Double>());\n\t\t\t}\n\t\t\t//System.out.println(\"Done making that large array Doc \");\n\t\t\t\n\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms)\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t//System.out.println(Arrays.toString(sortedArrayUnique));\n\t\t\t//System.out.println(uniqueTerms);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//\tSystem.out.println(\"Posting starts \");\n\t\t\t// \tPOSTING FILE STARTS \n\t\t\ttry {\n\t\t\t\t// Posting File\n\t\t\t\t//System.out.println(\"postingsFileListAllWords: \"+postingsFileListAllWords); //Contains every word including Dups, seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileList: \"+postingsFileList); \t\t //Contains unique words, dups are \" \", seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileListAllWords.size(): \" +postingsFileListAllWords.size()); //Total # of docs \n\t\t\t\t//System.out.println(\"Array size: \"+sortedArrayUnique.length);\n\n\t\t\t\tfw = new FileWriter(POSTING);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\tString temp = \" \";\n\t\t\t\tDouble termFreq = 0.0;\n\t\t\t\t// //postingsFileListAllWords);\n\t\t\t\tList<String> finalTermList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t// //postingsFileList.get(i).size());\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(finalTermList.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//PART TO FIND DOCUMENT FREQ\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docCountIDF = 0;\n\t\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\t\tfor (int totalWords = 0; totalWords < sortedArray.length; totalWords++) \t\t\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD \n\t\t\t\t\t\t\t\t\t//System.out.println(\"fOUND STOP WORD\");\n\t\t\t\t\t\t\t\t\tcontinue;\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\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString temp2 = sortedArray[totalWords];\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdocCountIDF++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Total Number: \" +docCountIDF);\n\t\t\t\t\t\t\t//System.out.println(\"documentFound: \" +documentFound);\n\t\t\t\t\t\t\t//System.out.println(\"So its \" + documentFound + \" dividied by \" +docCountIDF);\n\t\t\t\t\t\t\t//docCountIDF = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble idf = (Math.log10(((double)documentFound/(double)docCountIDF)));\n\t\t\t\t\t\t\t//System.out.println(\"Calculated IDF: \"+idf);\n\t\t\t\t\t\t\tif (idf < 0.0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tidf = 0.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"IDF is: \" +idf);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Size of doc words: \" + postingsFileListAllWords.size());\n\t\t\t\t\t\t\tfor (int k = 0; k < postingsFileListAllWords.size(); k++) \t\t//Go thru each doc. Since only looking at 1 term, it does it once per doc\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//System.out.println(\"Current Doc: \" +(k+1));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttermFreq = 1 + (Math.log10(Collections.frequency(postingsFileListAllWords.get(k), temp)));\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Freq is: \" +Collections.frequency(postingsFileListAllWords.get(k), temp));\n\t\t\t\t\t\t\t\t\t//System.out.println(termFreq + \": \" + termFreq.isInfinite());\n\t\t\t\t\t\t\t\t\tif (termFreq.isInfinite() || termFreq <= 0)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttermFreq = 0.0;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"termFreq :\" +termFreq); \n\t\t\t\t\t\t\t\t\t//System.out.println(\"idf: \" +idf);\n\t\t\t\t\t\t\t\t\ttermWeights.get(k+1).add( (idf*termFreq) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t\tfinalTermList.add(temp);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FINALCOUNTER\n\t\t\t\t\t\t//System.out.println(\"Done looking at word: \" +j);\n\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\twhile (true)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter a query: \");\n\t\t\t\t\t\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString enterQuery = scanner.nextLine();\n\t \t\n\t \t\n\t\t\t\t\tList<Double> queryWeights = new ArrayList<Double>();\n\t\t\t\t\t\n\t\t\t\t\t// Query turn\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tenterQuery = enterQuery.toLowerCase();\t\t\n\t\t\t\t\tenterQuery = enterQuery.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"]\", \"\");\n\t\t\t\t\t//System.out.println(\"Query is: \" + enterQuery);\n\t\t\t\t\t\n\t\t\t\t\tif (enterQuery.equals(\"exit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString[] queryArray = enterQuery.split(\" \");\n\t\t\t\t\tArrays.sort(queryArray);\n\t\t\t\t\t\n\t\t\t\t\t//Find the query weights for each term in vocab\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tint docCountDF = 0;\n\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\tfor (int totalWords = 0; totalWords < queryArray.length; totalWords++) \t\t\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD\n\t\t\t\t\t\t\t\tcontinue;\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\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp2 = queryArray[totalWords];\n\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocCountDF++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDouble queryWeight = 1 + (Math.log10(docCountDF));\n\t\t\t\t\t\tif (queryWeight.isInfinite())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueryWeight = 0.0;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tqueryWeights.add(queryWeight);\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query WEights is: \"+queryWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Finding the norms for DOCS\t\t\t\t\t\n\t\t\t\t\tfor (int norms = 1; norms < documentFound+1; norms++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble currentTotal = 0.0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < termWeights.get(norms).size(); weightsPerDoc++)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble square = Math.pow(termWeights.get(norms).get(weightsPerDoc), 2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Current square: \" + termWeights.get(norms).get(weightsPerDoc));\n\t\t\t\t\t\t\tcurrentTotal = currentTotal + square;\n\t\t\t\t\t\t\t//System.out.println(\"Current total: \" + currentTotal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"About to square root this: \" +currentTotal);\n\t\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\t\tdocNorms.put(norms, root);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"All of the docs norms: \"+docNorms);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Finding the norm for the query\n\t\t\t\t\tdouble currentTotal = 0.0;\t\t\t\t\t\n\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < queryWeights.size(); weightsPerDoc++)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdouble square = Math.pow(queryWeights.get(weightsPerDoc), 2);\n\t\t\t\t\t\tcurrentTotal = currentTotal + square;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\tdouble queryNorm = root; \t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query norm \" + queryNorm);\n\t\t\t\t\t\n\t\t\t\t\t//Finding the cosine sim\n\t\t\t\t\t//System.out.println(\"Term Weights \" + termWeights);\n\t\t\t\t\tHashMap<Integer, Double> cosineScore = new HashMap<Integer, Double>();\n\t\t\t\t\tfor (int cosineSim = 1; cosineSim < documentFound+1; cosineSim++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble total = 0.0;\n\t\t\t\t\t\tfor (int docTerms = 0; docTerms < termWeights.get(cosineSim).size(); docTerms++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble docTermWeight = termWeights.get(cosineSim).get(docTerms);\n\t\t\t\t\t\t\tdouble queryTermWeight = queryWeights.get(docTerms);\n\t\t\t\t\t\t\t//System.out.println(\"queryTermWeight \" + queryTermWeight);\n\t\t\t\t\t\t\t//System.out.println(\"docTermWeight \" + docTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotal = total + (docTermWeight*queryTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdouble cosineSimScore = 0.0;\n\t\t\t\t\t\tif (!(total == 0.0 || (docNorms.get(cosineSim) * queryNorm) == 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = total / (docNorms.get(cosineSim) * queryNorm);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = 0.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcosineScore.put(cosineSim, cosineSimScore);\n\t\t\t\t\t}\n\t\t\t\t\tcosineScore = sortByValues2(cosineScore);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"This is the cosineScores: \" +cosineScore);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"docAndTitles: \"+ docAndTitles);\n\t\t\t\t\tint topK = 0;\n\t\t\t\t\tint noValue = 0;\n\t\t\t\t\tfor (Integer name: cosineScore.keySet())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (topK < 50)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t String key =name.toString();\n\t\t\t\t //String value = cosineScore.get(name).toString(); \n\t\t\t\t if (!(cosineScore.get(name) <= 0))\n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Doc: \"+key);\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder builder = new StringBuilder();\n\t\t\t\t \tfor (StringBuilder value : docAndTitles.get(name)) {\n\t\t\t\t \t builder.append(value);\n\t\t\t\t \t}\n\t\t\t\t \tString text = builder.toString();\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Title:\\n\" +docAndTitles.get(name));\n\t\t\t\t \tSystem.out.println(\"Title: \" +text);\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Authors:\\n\" +docAndAuthors.get(name));\n\t\t\t\t \t\n\t\t\t\t \tif (docAndAuthors.get(name) == null || docAndAuthors.get(name).toString().equals(\"\"))\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Authors: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAuthors.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Authors found: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t/* ABSTRACT \n\t\t\t\t \tif (docAndAbstract.get(name) == null)\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Abstract: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAbstract.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Abstract: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t*/\n\t\t\t\t \t\n\t\t\t\t \tSystem.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t \tnoValue++;\n\t\t\t\t }\n\t\t\t\t topK++;\n\t\t\t\t \n\t\t\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\tif (noValue == documentFound)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"No documents contain query!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\ttopK=0;\n\t\t\t\t\tnoValue = 0;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null)\n\t\t\t\t\t\tbw.close();\n\n\t\t\t\t\tif (fw != null)\n\t\t\t\t\t\tfw.close();\n\n\t\t\t\t} catch (IOException ex) {\n\n\t\t\t\t\tex.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\n\t\t\t\tif (fr != null)\n\t\t\t\t\tfr.close();\n\n\t\t\t} catch (IOException ex) {\n\n\t\t\t\tex.printStackTrace();\n\n\t\t\t}\n\n\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\n\t\t\t\t\t\t\t\t\t\n\t\t\tint itemCount = uniqueTerms.size();\n\t\t\t//System.out.println(allValues);\n\t\t\tSystem.out.println(\"Total Terms BEFORE STEMING: \" +itemCount);\n\t\t\tSystem.out.println(\"Total Documents \" + documentFound);\n\t\t\t\t\t\t\n\t\t \n\t\t\t \n\t\t\t \n\t\t\t//END OF MAIN\n\t\t}",
"public WordGameGUI() throws IOException {\n FileHandler fh; \n // This block configure the logger with handler and formatter \n \n String filename = \"DataLog\";\n int j = 1;\n File f = new File(filename+Integer.toString(j)+\".log\");\n while(f.exists()){\n j++;\n f = new File(filename+Integer.toString(j)+\".log\");\n System.out.println(f);\n \n }\n\n fh = new FileHandler(filename+Integer.toString(j)+\".log\");\n \n LOGGER.addHandler(fh);\n XMLFormatter formatter = new XMLFormatter();//SimpleFormatter(); \n fh.setFormatter(formatter); \n\n LOGGER.info(TRAINING_DATA_LOG); \n \n // useful info on using logger:\n \n // https://logging.apache.org/log4j/1.2/manual.html\n \n // https://www.loggly.com/ultimate-guide/parsing-java-logs/\n \n /* words.add(new Word(\"face\",\"abcdefgh\"));\n words.add(new Word(\"nope\",\"ejklmnop\"));\n words.add(new Word(\"suck\",\"suckyoet\"));\n words.add(new Word(\"suck\",\"suckyoet\"));\n words.add(new Word(\"heck\",\"heckyout\"));\n words.add(new Word(\"meow\",\"meowsuct\"));\n words.add(new Word(\"fuck\",\"fuckyoet\"));\n words.add(new Word(\"cane\",\"caneyobt\")); */\n \n // test 5 words\n words.add(new Word(\"shot\",\"hostux\"));\n words.add(new Word(\"dice\",\"cdeiss\"));\n words.add(new Word(\"soft\",\"afkost\"));\n words.add(new Word(\"meat\",\"aemtvw\"));\n words.add(new Word(\"stop\",\"opqsty\"));\n \n words.add(new Word(\"loan\",\"aclnoy\"));\n words.add(new Word(\"rate\",\"aaerrt\"));\n words.add(new Word(\"flag\",\"afglou\"));\n words.add(new Word(\"fast\",\"afkost\")); \t\n words.add(new Word(\"film\",\"fiklms\"));\n \n words.add(new Word(\"seek\",\"ceekns\"));\n words.add(new Word(\"****\",\"aekttw\")); \t\n words.add(new Word(\"****\",\"aceltu\"));\n words.add(new Word(\"rent\",\"beinrt\"));\n words.add(new Word(\"****\",\"cdehop\"));\n \n words.add(new Word(\"****\",\"beiist\"));\n words.add(new Word(\"wood\",\"dloopw\"));\n words.add(new Word(\"vote\",\"emostv\"));\n words.add(new Word(\"****\",\"afhimr\"));\n words.add(new Word(\"drag\",\"acdgor\"));\n\t\n\n \n \n word = words.get(0);\n\n \n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n \n buttons.add(jButton1);\n buttons.add(jButton2);\n buttons.add(jButton3);\n buttons.add(jButton4);\n buttons.add(jButton5);\n buttons.add(jButton6);\n buttons.add(jButton7);\n buttons.add(jButton8);\n List<String> availableLetters = word.getAvailableLetters();\n for(int i=0; i<availableLetters.size(); i++){\n buttons.get(i).setText(availableLetters.get(i));\n buttons.get(i).addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n try {\n buttonActionPerformed(evt);\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }\n });\n }\n \n initComponents();\n }",
"private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}",
"protected void sampleNewDocuments(\n String stateFile,\n int[][] newWords,\n String outputResultFile) throws Exception {\n if (verbose) {\n System.out.println();\n logln(\"Perform regression using model from \" + stateFile);\n logln(\"--- Test burn-in: \" + this.testBurnIn);\n logln(\"--- Test max-iter: \" + this.testMaxIter);\n logln(\"--- Test sample-lag: \" + this.testSampleLag);\n }\n\n // input model\n inputModel(stateFile);\n\n words = newWords;\n labels = null; // for evaluation\n D = words.length;\n\n // initialize structure\n initializeDataStructure();\n\n if (verbose) {\n logln(\"test data\");\n logln(\"--- V = \" + V);\n logln(\"--- D = \" + D);\n int docTopicCount = 0;\n for (int d = 0; d < D; d++) {\n docTopicCount += docTopics[d].getCountSum();\n }\n\n int topicWordCount = 0;\n for (DirMult topicWord : topicWords) {\n topicWordCount += topicWord.getCountSum();\n }\n\n logln(\"--- docTopics: \" + docTopics.length + \". \" + docTopicCount);\n logln(\"--- topicWords: \" + topicWords.length + \". \" + topicWordCount);\n }\n\n // initialize assignments\n sampleZ(!REMOVE, ADD, !REMOVE, ADD, !OBSERVED);\n\n if (verbose) {\n logln(\"After initialization\");\n int docTopicCount = 0;\n for (int d = 0; d < D; d++) {\n docTopicCount += docTopics[d].getCountSum();\n }\n\n int topicWordCount = 0;\n for (DirMult topicWord : topicWords) {\n topicWordCount += topicWord.getCountSum();\n }\n\n logln(\"--- docTopics: \" + docTopics.length + \". \" + docTopicCount);\n logln(\"--- topicWords: \" + topicWords.length + \". \" + topicWordCount);\n }\n\n // iterate\n ArrayList<double[]> predResponsesList = new ArrayList<double[]>();\n for (iter = 0; iter < this.testMaxIter; iter++) {\n sampleZ(!REMOVE, !ADD, REMOVE, ADD, !OBSERVED);\n\n if (iter >= this.testBurnIn && iter % this.testSampleLag == 0) {\n if (verbose) {\n logln(\"--- iter = \" + iter + \" / \" + this.testMaxIter);\n }\n\n // update current dot products\n this.docLabelDotProds = new double[D];\n for (int d = 0; d < D; d++) {\n double[] empDist = docTopics[d].getEmpiricalDistribution();\n for (int k = 0; k < K; k++) {\n this.docLabelDotProds[d] += lambdas[k] * empDist[k];\n }\n }\n\n // compute prediction values\n double[] predResponses = computePredictionValues();\n predResponsesList.add(predResponses);\n }\n }\n\n if (verbose) {\n logln(\"After iterating\");\n int docTopicCount = 0;\n for (int d = 0; d < D; d++) {\n docTopicCount += docTopics[d].getCountSum();\n }\n\n int topicWordCount = 0;\n for (DirMult topicWord : topicWords) {\n topicWordCount += topicWord.getCountSum();\n }\n\n logln(\"\\t--- docTopics: \" + docTopics.length + \". \" + docTopicCount);\n logln(\"\\t--- topicWords: \" + topicWords.length + \". \" + topicWordCount);\n }\n\n // output result during test time\n if (verbose) {\n logln(\"--- Outputing result to \" + outputResultFile);\n }\n PredictionUtils.outputSingleModelRegressions(\n new File(outputResultFile),\n predResponsesList);\n }",
"public abstract void addFeatures(Collection<Double> indices,Predicate pred, Word arg,boolean allWords);",
"public void getContexts(String path, String targetword){\n\t\tAbbMatch abbMatch = new AbbMatch();\n\t\tabbMatch.setShortForm(targetword);\n\n\t\ttry{\n\t\t\tFile file = new File(path);\n\t\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\t\tDocument document = builder.parse(file);\n\t\t\tNodeList nodeList = document.getElementsByTagName(\"lst\"); //get all document tags\n\n\t\t\tfor (int s = 1; s < nodeList.getLength(); s++) { //If it starts from 0, it'll get the info twice. See the format of our XML for further reference.\n\t\t\t\tNode fstNode = nodeList.item(s);\n\t\t\t\tElement element = (Element) fstNode;\n\t\t\t\tif (element.hasAttribute(\"name\")){\n\t\t\t\t\tString docID = element.getAttribute(\"name\");//The ID\n\n\t\t\t\t\telement.getElementsByTagName(\"str\");\n\t\t\t\t\tNodeList nodeList2 = element.getElementsByTagName(\"str\"); \n\t\t\t\t\tfor (int j = 0; j < nodeList2.getLength(); j++) {\n\t\t\t\t\t\tNode text = nodeList2.item(j);\n\t\t\t\t\t\tElement textElem = (Element) text;\n\n\t\t\t\t\t\tString docContext = textElem.getTextContent();//The context\n\n\t\t\t\t\t\tString match = abbMatch.findBestLongForm(docContext);//Verifies if the short form has any long form match.\n\t\t\t\t\t\tif (match == null){\n\t\t\t\t\t\t\tSaveContent(\"ID: \"+docID+\"\\n Match: \"+match+\"\\n Context: \"+match);\n\t\t\t\t\t\t\tSystem.out.println(\"Not a Match\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSaveContent(\"ID: \"+docID+\"\\n Match: \"+match+\"\\n Context: \"+docContext+\"\\n\");\n\t\t\t\t\t\t\tSystem.out.println(\"Match\");\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}catch(Exception e){\n\n\t\t}\n\t}",
"private static double[] calculateYuleK(Map<String, Double> wordFrequencies) \n\t{\n\t\t// m1 = number of different words in document (review)\n\t\tdouble m1 = wordFrequencies.keySet().size();\n\n\t\tMap<Double, Double> yuleMap = Utilities.reverseMap(wordFrequencies);\n\n\t\t// m2 = sum of products of each observed frequency squared and number of \n\t\t// words with that frequency\n\t\tdouble m2 = 0.0;\n\t\tdouble[] legomenas = new double[11];\n\t\tfor(Entry<Double,Double> e : yuleMap.entrySet()){\n\t\t\tDouble freq = e.getKey();\n\t\t\tDouble wordCount = e.getValue();\n\t\t\tm2 += freq*freq*wordCount;\n\t\t\tif (freq.intValue() < legomenas.length)\n\t\t\t\tlegomenas[freq.intValue()] = wordCount;\n\t\t}\n\t\tlegomenas[0] = 10000*(m2-m1)/(m1*m1); \n\t\treturn legomenas;\n\t}",
"public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);",
"public static LinkedList<Word> getPracticedWords() {\n return favWords;\n }",
"public int expressiveWords(String S, String[] words) {\n if (S == null || S.length() == 0) return 0;\n RLE base = new RLE(S);\n int ans = 0;\n for (String w : words) {\n RLE current = new RLE(w);\n if (base.chars.size() != current.chars.size()) continue;\n boolean canExtend = true;\n for (int i = 0; i < base.chars.size(); i++) {\n if (base.chars.get(i) != current.chars.get(i)) {\n canExtend = false;\n break;\n }\n int bc = base.counts.get(i);\n int cc = current.counts.get(i);\n //base count <= 2 , or base count > 2\n if ((bc <= 2 && bc != cc) || (bc > 2 && cc > bc)) {\n canExtend = false;\n break;\n }\n }\n if (canExtend) ans++;\n }\n return ans;\n }",
"public void translate() {\n\t\tif(!init)\r\n\t\t\treturn; \r\n\t\ttermPhraseTranslation.clear();\r\n\t\t// document threshold: number of terms / / 8\r\n//\t\tdocThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0);\r\n\t\t//\t\tuseDocFrequency = true;\r\n\t\tint minFrequency=1;\r\n\t\temBkgCoefficient=0.5;\r\n\t\tprobThreshold=0.001;//\r\n\t\titerationNum = 20;\r\n\t\tArrayList<Token> tokenList;\r\n\t\tToken curToken;\r\n\t\tint j,k;\r\n\t\t//p(w|C)\r\n\r\n\t\tint[] termValues = termIndexList.values;\r\n\t\tboolean[] termActive = termIndexList.allocated;\r\n\t\ttotalCollectionCount = 0;\r\n\t\tfor(k=0;k<termActive.length;k++){\r\n\t\t\tif(!termActive[k])\r\n\t\t\t\tcontinue;\r\n\t\t\ttotalCollectionCount +=termValues[k];\r\n\t\t}\r\n\t\t\r\n\t\t// for each phrase\r\n\t\tint[] phraseFreqKeys = phraseFrequencyIndex.keys;\r\n\t\tint[] phraseFreqValues = phraseFrequencyIndex.values;\r\n\t\tboolean[] states = phraseFrequencyIndex.allocated;\r\n\t\tfor (int phraseEntry = 0;phraseEntry<states.length;phraseEntry++){\r\n\t\t\tif(!states[phraseEntry]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (phraseFreqValues[phraseEntry] < minFrequency)\r\n\t\t\t\tcontinue;\r\n\t\t\ttokenList=genSignatureTranslation(phraseFreqKeys[phraseEntry]); // i is phrase number\r\n\t\t\tfor (j = 0; j <tokenList.size(); j++) {\r\n\t\t\t\tcurToken=(Token)tokenList.get(j);\r\n\t\t\t\tif(termPhraseTranslation.containsKey(curToken.getIndex())){\r\n\t\t\t\t\tIntFloatOpenHashMap old = termPhraseTranslation.get(curToken.getIndex());\r\n\t\t\t\t\tif(old.containsKey(phraseFreqKeys[phraseEntry])){\r\n\t\t\t\t\t\tSystem.out.println(\"aha need correction\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\told.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight()); //phrase, weight\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tIntFloatOpenHashMap newPhrase = new IntFloatOpenHashMap();\r\n\t\t\t\t\tnewPhrase.put(phraseFreqKeys[phraseEntry], (float) curToken.getWeight());\r\n\t\t\t\t\ttermPhraseTranslation.put(curToken.getIndex(), newPhrase);\r\n\t\t\t\t}\r\n\t\t\t\t//\t\t\t\toutputTransMatrix.add(i,curToken.getIndex(),curToken.getWeight());\r\n\t\t\t\t//\t\t\t\toutputTransTMatrix.add(curToken.getIndex(), i, curToken.getWeight());\r\n\t\t\t\t//TODO termPhrase exists, create PhraseTerm\r\n\t\t\t}\r\n\t\t\ttokenList.clear();\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\r\n\t}",
"public List<String> getRelatedWords(String word) throws IOException {\n List<String> result = new ArrayList<String>();\n IDictionary dict = new Dictionary(new File(WORDNET_LOCATION));\n try {\n dict.open();\n IStemmer stemmer = new WordnetStemmer(dict);\n for (POS pos : EnumSet.of(POS.ADJECTIVE, POS.ADVERB, POS.NOUN, POS.VERB)) {\n List<String> resultForPos = new ArrayList<String>();\n List<String> stems = new ArrayList<String>();\n stems.add(word);\n for (String stem : stemmer.findStems(word, pos)) {\n if (!stems.contains(stem))\n stems.add(stem);\n }\n for (String stem : stems) {\n if (!resultForPos.contains(stem)) {\n resultForPos.add(stem);\n IIndexWord idxWord = dict.getIndexWord(stem, pos);\n if (idxWord == null) continue;\n List<IWordID> wordIDs = idxWord.getWordIDs();\n if (wordIDs == null) continue;\n IWordID wordID = wordIDs.get(0);\n IWord iword = dict.getWord(wordID);\n \n ISynset synonyms = iword.getSynset();\n List<IWord> iRelatedWords = synonyms.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n \n List<ISynsetID> hypernymIDs = synonyms.getRelatedSynsets();\n if (hypernymIDs != null) {\n for (ISynsetID relatedSynsetID : hypernymIDs) {\n ISynset relatedSynset = dict.getSynset(relatedSynsetID);\n if (relatedSynset != null) {\n iRelatedWords = relatedSynset.getWords();\n if (iRelatedWords != null) {\n for (IWord iRelatedWord : iRelatedWords) {\n String relatedWord = iRelatedWord.getLemma();\n if (!resultForPos.contains(relatedWord))\n resultForPos.add(relatedWord);\n }\n }\n }\n }\n }\n }\n }\n for (String relatedWord : resultForPos) {\n if (relatedWord.length() > 3\n && !relatedWord.contains(\"-\")\n && !result.contains(relatedWord)) {\n // TODO: Hack alert!\n // The - check is to prevent lucene from interpreting hyphenated words as negative search terms\n // Fix!\n result.add(relatedWord);\n }\n }\n }\n } finally {\n dict.close();\n }\n return result;\n }",
"private double getReadTime(int wordCount) {\n return wordCount / 130.0;\n }",
"@Override\n protected double elementValueTransformer(Word w, Double actualValue) {\n \n // computing words log frequencies * idf(word) : \n // log-freq(word) = { 0 when count(word)=0\n // 1+log(count(word)) when count(word)>0 }\n \n //return (actualValue==0.0 ? (0.0) : (1.0 + Math.log(actualValue)) ) \n // * idfProvider.getInverseDocumentFrequency(w);\n\n double tf = actualValue/(actualValue + 0.5 + 1.5*this.getOriginalSumOfValues()/idfProvider.getAverageDocumentLength());\n double idf = idfProvider.getInverseDocumentFrequency(w);\n \n double val = tf*idf;\n \n return val;\n \n }",
"public void test2 (List<List<String>> sentences) {\n double totalLogProb = 0;\n double totalNumTokens = 0;\n for (List<String> sentence : sentences) {\n totalNumTokens += sentence.size();\n double sentenceLogProb = sentenceLogProb2(sentence);\n totalLogProb += sentenceLogProb;\n }\n double perplexity = Math.exp(-totalLogProb / totalNumTokens);\n System.out.println(\"Word Perplexity = \" + perplexity );\n }",
"public double idf(String wordToLookFor, HashMap<String, ArrayList<Integer>> tokensHM, ArrayList<Document> documents) {\n double idf = 0;\n double n = documents.size();\n if(tokensHM.containsKey(wordToLookFor)) {\n double d = tokensHM.get(wordToLookFor).size();\n idf = n/d;\n }\n return Math.log(idf);\n }",
"private Interpretations interpretNamesOfNLQuestion(\n String nlQuestion, int maxNumOfInterpretations, SuggestionParams params)\n throws SolrGrammarSuggester.GrammarLookupFailure, SolrNameSuggester.NameLookupFailed {\n\n Map<String, WordType> wordTypes = new HashMap<>();\n List<Interpretation> namesInterpretations = new ArrayList<>();\n\n String[] words = nlQuestion.split(\"\\\\s+\");\n\n boolean anyKnownName = false;\n\n // Find all names with their corresponding types in the question.\n // Add type and names to the hashmap names.\n for (String word : words) {\n\n //grammar word\n boolean isGrammarWord = grammarSuggester.checkIfGrammarWord(word);\n if (isGrammarWord) {\n wordTypes.put(word, WordType.Grammar);\n continue;\n }\n\n //check if the word can be interpreted as name\n List<NameResult> nameResults = nameSuggester.suggestNameResolution(word);\n\n //unknown word\n if (nameResults.isEmpty()) {\n wordTypes.put(word, WordType.Unknown);\n continue;\n }\n else { //name\n wordTypes.put(word, WordType.Name);\n anyKnownName = true;\n\n namesInterpretations = updateInterpretations(namesInterpretations,\n nameResults, word, maxNumOfInterpretations);\n }\n }\n\n avoidNameDuplicates(namesInterpretations, params);\n\n //there was no known names -> return one \"empty\" template\n if (!anyKnownName) {\n namesInterpretations.add(new Interpretation(new ArrayList<NameResult>()));\n }\n\n return new Interpretations(namesInterpretations, wordTypes);\n }",
"public void extractKnowledge()\n {\n }",
"private static List<String> getSensorWords(SensorDetails details){\r\n\t\tvar sensorLoc = details.location;\r\n\t\tvar fullstopIndex1 = sensorLoc.indexOf(\".\");\r\n\t\tvar fullstopIndex2 = sensorLoc.lastIndexOf(\".\");\r\n\t\tvar strLength = sensorLoc.length();\r\n\t\tvar firstWord = sensorLoc.substring(0, fullstopIndex1);\r\n\t\tvar secondWord = sensorLoc.substring(fullstopIndex1 + 1, fullstopIndex2);\r\n\t\tvar thirdWord = sensorLoc.substring(fullstopIndex2 + 1, strLength);\r\n\t\tvar wordsList = List.of(firstWord, secondWord, thirdWord);\r\n\t\treturn wordsList;\r\n\t}",
"@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}",
"@Override\n public void calculate(double[] x) {\n\n double prob = 0.0; // the log prob of the sequence given the model, which is the negation of value at this point\n Triple<double[][], double[][], double[][]> allParams = separateWeights(x);\n double[][] linearWeights = allParams.first();\n double[][] W = allParams.second(); // inputLayerWeights \n double[][] U = allParams.third(); // outputLayerWeights \n\n double[][] Y = null;\n if (flags.softmaxOutputLayer) {\n Y = new double[U.length][];\n for (int i = 0; i < U.length; i++) {\n Y[i] = ArrayMath.softmax(U[i]);\n }\n }\n\n double[][] What = emptyW();\n double[][] Uhat = emptyU();\n\n // the expectations over counts\n // first index is feature index, second index is of possible labeling\n double[][] E = empty2D();\n double[][] eW = emptyW();\n double[][] eU = emptyU();\n\n // iterate over all the documents\n for (int m = 0; m < data.length; m++) {\n int[][][] docData = data[m];\n int[] docLabels = labels[m];\n\n // make a clique tree for this document\n CRFCliqueTree cliqueTree = CRFCliqueTree.getCalibratedCliqueTree(docData, labelIndices, numClasses, classIndex,\n backgroundSymbol, new NonLinearCliquePotentialFunction(linearWeights, W, U, flags));\n\n // compute the log probability of the document given the model with the parameters x\n int[] given = new int[window - 1];\n Arrays.fill(given, classIndex.indexOf(backgroundSymbol));\n int[] windowLabels = new int[window];\n Arrays.fill(windowLabels, classIndex.indexOf(backgroundSymbol));\n\n if (docLabels.length>docData.length) { // only true for self-training\n // fill the given array with the extra docLabels\n System.arraycopy(docLabels, 0, given, 0, given.length);\n System.arraycopy(docLabels, 0, windowLabels, 0, windowLabels.length);\n // shift the docLabels array left\n int[] newDocLabels = new int[docData.length];\n System.arraycopy(docLabels, docLabels.length-newDocLabels.length, newDocLabels, 0, newDocLabels.length);\n docLabels = newDocLabels;\n }\n // iterate over the positions in this document\n for (int i = 0; i < docData.length; i++) {\n int label = docLabels[i];\n double p = cliqueTree.condLogProbGivenPrevious(i, label, given);\n if (VERBOSE) {\n System.err.println(\"P(\" + label + \"|\" + ArrayMath.toString(given) + \")=\" + p);\n }\n prob += p;\n System.arraycopy(given, 1, given, 0, given.length - 1);\n given[given.length - 1] = label;\n }\n\n // compute the expected counts for this document, which we will need to compute the derivative\n // iterate over the positions in this document\n for (int i = 0; i < docData.length; i++) {\n // for each possible clique at this position\n System.arraycopy(windowLabels, 1, windowLabels, 0, window - 1);\n windowLabels[window - 1] = docLabels[i];\n for (int j = 0; j < docData[i].length; j++) {\n Index<CRFLabel> labelIndex = labelIndices[j];\n // for each possible labeling for that clique\n int[] cliqueFeatures = docData[i][j];\n double[] As = null;\n double[] fDeriv = null;\n double[][] yTimesA = null;\n double[] sumOfYTimesA = null;\n\n if (j == 0) {\n As = NonLinearCliquePotentialFunction.hiddenLayerOutput(W, cliqueFeatures, flags);\n fDeriv = new double[inputLayerSize];\n double fD = 0;\n for (int q = 0; q < inputLayerSize; q++) {\n if (useSigmoid) {\n fD = As[q] * (1 - As[q]); \n } else {\n fD = 1 - As[q] * As[q]; \n }\n fDeriv[q] = fD;\n }\n\n // calculating yTimesA for softmax\n if (flags.softmaxOutputLayer) {\n double val = 0;\n\n yTimesA = new double[outputLayerSize][numHiddenUnits];\n for (int ii = 0; ii < outputLayerSize; ii++) {\n yTimesA[ii] = new double[numHiddenUnits];\n }\n sumOfYTimesA = new double[outputLayerSize];\n\n for (int k = 0; k < outputLayerSize; k++) {\n double[] Yk = null;\n if (flags.tieOutputLayer) {\n Yk = Y[0];\n } else {\n Yk = Y[k];\n }\n double sum = 0;\n for (int q = 0; q < inputLayerSize; q++) {\n if (q % outputLayerSize == k) {\n int hiddenUnitNo = q / outputLayerSize;\n val = As[q] * Yk[hiddenUnitNo];\n yTimesA[k][hiddenUnitNo] = val;\n sum += val;\n }\n }\n sumOfYTimesA[k] = sum;\n }\n }\n\n // calculating Uhat What\n int[] cliqueLabel = new int[j + 1];\n System.arraycopy(windowLabels, window - 1 - j, cliqueLabel, 0, j + 1);\n\n CRFLabel crfLabel = new CRFLabel(cliqueLabel);\n int givenLabelIndex = labelIndex.indexOf(crfLabel);\n double[] Uk = null;\n double[] UhatK = null;\n double[] Yk = null;\n double[] yTimesAK = null;\n double sumOfYTimesAK = 0;\n if (flags.tieOutputLayer) {\n Uk = U[0];\n UhatK = Uhat[0];\n if (flags.softmaxOutputLayer) {\n Yk = Y[0];\n }\n } else {\n Uk = U[givenLabelIndex];\n UhatK = Uhat[givenLabelIndex];\n if (flags.softmaxOutputLayer) {\n Yk = Y[givenLabelIndex];\n }\n }\n\n if (flags.softmaxOutputLayer) {\n yTimesAK = yTimesA[givenLabelIndex];\n sumOfYTimesAK = sumOfYTimesA[givenLabelIndex];\n }\n\n for (int k = 0; k < inputLayerSize; k++) {\n double deltaK = 1;\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (k % outputLayerSize == givenLabelIndex) {\n int hiddenUnitNo = k / outputLayerSize;\n if (flags.softmaxOutputLayer) {\n UhatK[hiddenUnitNo] += (yTimesAK[hiddenUnitNo] - Yk[hiddenUnitNo] * sumOfYTimesAK);\n deltaK *= Yk[hiddenUnitNo];\n } else {\n UhatK[hiddenUnitNo] += As[k];\n deltaK *= Uk[hiddenUnitNo];\n }\n }\n } else {\n UhatK[k] += As[k];\n if (useOutputLayer) {\n deltaK *= Uk[k];\n }\n }\n if (useHiddenLayer)\n deltaK *= fDeriv[k];\n if (useOutputLayer) {\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (k % outputLayerSize == givenLabelIndex) {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n } else {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n } else {\n if (k == givenLabelIndex) {\n double[] WhatK = What[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n WhatK[cliqueFeatures[n]] += deltaK;\n }\n }\n }\n }\n }\n\n for (int k = 0; k < labelIndex.size(); k++) { // labelIndex.size() == numClasses\n int[] label = labelIndex.get(k).getLabel();\n double p = cliqueTree.prob(i, label); // probability of these labels occurring in this clique with these features\n if (j == 0) { // for node features\n double[] Uk = null;\n double[] eUK = null;\n double[] Yk = null;\n if (flags.tieOutputLayer) {\n Uk = U[0];\n eUK = eU[0];\n if (flags.softmaxOutputLayer) {\n Yk = Y[0];\n }\n } else {\n Uk = U[k];\n eUK = eU[k];\n if (flags.softmaxOutputLayer) {\n Yk = Y[k];\n }\n }\n if (useOutputLayer) {\n for (int q = 0; q < inputLayerSize; q++) {\n double deltaQ = 1;\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (q % outputLayerSize == k) {\n int hiddenUnitNo = q / outputLayerSize;\n if (flags.softmaxOutputLayer) {\n eUK[hiddenUnitNo] += (yTimesA[k][hiddenUnitNo] - Yk[hiddenUnitNo] * sumOfYTimesA[k]) * p;\n deltaQ = Yk[hiddenUnitNo];\n } else {\n eUK[hiddenUnitNo] += As[q] * p;\n deltaQ = Uk[hiddenUnitNo];\n }\n }\n } else {\n eUK[q] += As[q] * p;\n deltaQ = Uk[q];\n }\n if (useHiddenLayer)\n deltaQ *= fDeriv[q];\n if (flags.sparseOutputLayer || flags.tieOutputLayer) {\n if (q % outputLayerSize == k) {\n double[] eWq = eW[q];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWq[cliqueFeatures[n]] += deltaQ * p;\n }\n }\n } else {\n double[] eWq = eW[q];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWq[cliqueFeatures[n]] += deltaQ * p;\n }\n }\n }\n } else {\n double deltaK = 1;\n if (useHiddenLayer)\n deltaK *= fDeriv[k];\n double[] eWK = eW[k];\n for (int n = 0; n < cliqueFeatures.length; n++) {\n eWK[cliqueFeatures[n]] += deltaK * p;\n }\n }\n } else { // for edge features\n for (int n = 0; n < cliqueFeatures.length; n++) {\n E[cliqueFeatures[n]][k] += p;\n }\n }\n }\n }\n }\n }\n\n if (Double.isNaN(prob)) { // shouldn't be the case\n throw new RuntimeException(\"Got NaN for prob in CRFNonLinearLogConditionalObjectiveFunction.calculate()\");\n }\n\n value = -prob;\n if(VERBOSE){\n System.err.println(\"value is \" + value);\n }\n\n // compute the partial derivative for each feature by comparing expected counts to empirical counts\n int index = 0;\n for (int i = 0; i < E.length; i++) {\n int originalIndex = edgeFeatureIndicesMap.get(i);\n\n for (int j = 0; j < E[i].length; j++) {\n derivative[index++] = (E[i][j] - Ehat[i][j]);\n if (VERBOSE) {\n System.err.println(\"linearWeights deriv(\" + i + \",\" + j + \") = \" + E[i][j] + \" - \" + Ehat[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n if (index != edgeParamCount)\n throw new RuntimeException(\"after edge derivative, index(\"+index+\") != edgeParamCount(\"+edgeParamCount+\")\");\n\n for (int i = 0; i < eW.length; i++) {\n for (int j = 0; j < eW[i].length; j++) {\n derivative[index++] = (eW[i][j] - What[i][j]);\n if (VERBOSE) {\n System.err.println(\"inputLayerWeights deriv(\" + i + \",\" + j + \") = \" + eW[i][j] + \" - \" + What[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n\n\n if (index != beforeOutputWeights)\n throw new RuntimeException(\"after W derivative, index(\"+index+\") != beforeOutputWeights(\"+beforeOutputWeights+\")\");\n\n if (useOutputLayer) {\n for (int i = 0; i < eU.length; i++) {\n for (int j = 0; j < eU[i].length; j++) {\n derivative[index++] = (eU[i][j] - Uhat[i][j]);\n if (VERBOSE) {\n System.err.println(\"outputLayerWeights deriv(\" + i + \",\" + j + \") = \" + eU[i][j] + \" - \" + Uhat[i][j] + \" = \" + derivative[index - 1]);\n }\n }\n }\n }\n\n if (index != x.length)\n throw new RuntimeException(\"after W derivative, index(\"+index+\") != x.length(\"+x.length+\")\");\n\n int regSize = x.length;\n if (flags.skipOutputRegularization || flags.softmaxOutputLayer) {\n regSize = beforeOutputWeights;\n }\n\n // incorporate priors\n if (prior == QUADRATIC_PRIOR) {\n double sigmaSq = sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double k = 1.0;\n double w = x[i];\n value += k * w * w / 2.0 / sigmaSq;\n derivative[i] += k * w / sigmaSq;\n }\n } else if (prior == HUBER_PRIOR) {\n double sigmaSq = sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double w = x[i];\n double wabs = Math.abs(w);\n if (wabs < epsilon) {\n value += w * w / 2.0 / epsilon / sigmaSq;\n derivative[i] += w / epsilon / sigmaSq;\n } else {\n value += (wabs - epsilon / 2) / sigmaSq;\n derivative[i] += ((w < 0.0) ? -1.0 : 1.0) / sigmaSq;\n }\n }\n } else if (prior == QUARTIC_PRIOR) {\n double sigmaQu = sigma * sigma * sigma * sigma;\n for (int i = 0; i < regSize; i++) {\n double k = 1.0;\n double w = x[i];\n value += k * w * w * w * w / 2.0 / sigmaQu;\n derivative[i] += k * w / sigmaQu;\n }\n }\n }",
"public ParseTreeNode generateParseTree(ContextFreeGrammar cfg, Word w) {\n int n = w.length();\r\n int exactDervOfWord = (2*n) - 1;\r\n List<Rule> rules = new ArrayList<Rule>();\r\n rules = cfg.getRules();\r\n Variable startVariable = cfg.getStartVariable();\r\n int numDerivations = 0;\r\n List<List<Word>> generalList = new ArrayList<List<Word>>();\r\n List<List<Word>> varList = new ArrayList<List<Word>>();\r\n\r\n\r\n // 2. Lists for storing derivation\r\n // make exact number of list for words to be stored at each derivation \r\n makeLists(exactDervOfWord, generalList);\r\n\r\n // 3. Derivation from Start Variable\r\n for (Rule rule : rules) {\r\n if (rule.getVariable().equals(startVariable)) {\r\n generalList.get(numDerivations).add(rule.getExpansion());\r\n }\r\n }\r\n numDerivations += 1;\r\n\r\n // 4. \r\n while (numDerivations < exactDervOfWord-n) {\r\n if (numDerivations == 1){\r\n // Stores the var only from the start expansion into varList\r\n List<Word> listOfVars = new ArrayList<Word>();\r\n for (Word word : generalList.get(numDerivations-1)){\r\n boolean varOnly= true;\r\n for (int i =0; i < word.length(); i++){\r\n if(word.get(i).isTerminal()){\r\n varOnly = false;\r\n }\r\n }\r\n if (varOnly){\r\n listOfVars.add(word);\r\n }\r\n }\r\n varList.add(listOfVars);\r\n numDerivations += 1; \r\n }\r\n if (numDerivations > 1 && numDerivations - 1 < exactDervOfWord-n ) {\r\n List<List<List<Word>>> listOfExpPerDerviation = new ArrayList<List<List<Word>>>();\r\n for (Word word : varList.get(numDerivations-2)){\r\n List<List<Word>> listOfExPerWord = new ArrayList<List<Word>>();\r\n for(int i= 0; i <word.length(); i++){\r\n for(Rule rule :rules){\r\n List<Word> tempListofExpan = new ArrayList<Word>();\r\n if(rule.getVariable().equals(word.get(i))){\r\n if (!rule.getExpansion().isTerminal()){\r\n tempListofExpan.add(word);\r\n tempListofExpan.add(word.replace(i, rule.getExpansion()));\r\n listOfExPerWord.add(tempListofExpan);\r\n }\r\n }\r\n }\r\n }\r\n listOfExpPerDerviation.add(listOfExPerWord);\r\n }\r\n numDerivations += 1;\r\n }\r\n }\r\n\r\n return null;\r\n return null;\r\n }",
"private Suggestion buildSuggestion(String linearization,\n Interpretation interpretation,\n Map<String, WordType> originalWords, boolean matchAllWords) {\n String[] words = linearization.split(\"\\\\s+\");\n\n Map<String, Integer> namesMissing = new HashMap(\n interpretation.getNameTypeCounts().counts);\n\n int additionalNamesCount = 0;\n\n Set<String> wordsNotMatched = new HashSet<>(originalWords.keySet());\n for (Entry<String, WordType> entry : originalWords.entrySet()) {\n if (entry.getValue() == WordType.Name) {\n wordsNotMatched.remove(entry.getKey());\n }\n }\n int additionalGrammarWordsCount = 0;\n\n\n for (String word : words) {\n\n //name word\n if (defTempl.isVariable(word)) {\n String nameType = word.substring(2, word.length() - 2);\n if (namesMissing.containsKey(nameType)) {\n Integer missingCount = namesMissing.get(nameType);\n if (missingCount > 1) {\n namesMissing.put(nameType, missingCount - 1);\n }\n else {\n namesMissing.remove(nameType);\n }\n }\n else {\n additionalNamesCount++;\n }\n }\n //grammar word\n else {\n String lowerCaseWord = word.toLowerCase();\n\n if (wordsNotMatched.contains(lowerCaseWord)) {\n wordsNotMatched.remove(lowerCaseWord);\n }\n else {\n additionalGrammarWordsCount++;\n }\n }\n }\n\n //if removing words from query is not allowed\n if (matchAllWords && !wordsNotMatched.isEmpty()) {\n return null;\n }\n\n int grammarWordsAltered = wordsNotMatched.size();\n int grammarWordsAdded = additionalGrammarWordsCount - grammarWordsAltered;\n\n return new Suggestion(linearization, false,\n additionalNamesCount, grammarWordsAdded, grammarWordsAltered);\n }",
"public static void findWords(String target) throws FileNotFoundException{\n //reads file through the scanner\n scan = new Scanner(newFile);\n \n //creates new arraylist \n ArrayList<String> list = new ArrayList<String>();\n int count;\n while(scan.hasNextLine()){\n word = scan.nextLine();\n if(contains(target, word)){\n list.add(word.toLowerCase());\n }\n }\n\n int length = target.length();\n\n for(int i = length; i >= 2; i--){\n count = 0;\n System.out.println(i + \" letter words made by unscrambling the letters in \" + target );\n \n //This loop goes through all the strings in the arraylist of words contained\n //in the target word\n for(String a : list){\n //If the length of word in the arraylist is equal to i it prints the \n //word, as long as the line does not go over 40 characters\n if(a.length() == i) {\n if(count > (40 -a.length())){ \n System.out.print(\"\\n\");\n System.out.print(a + \" \");\n count = 0;\n count += (a.length() + 1);\n }\n else{\n System.out.print(a + \" \");\n count += (a.length() + 1);\n }\n }\n\n }\n //decrements length, and continues going through the loop\n length--;\n System.out.println(\"\\n\");\n }\n }",
"public Resource getWordsLocation() {\n return wordsLocation;\n }",
"@Override\n public String getRelabelSpecificAttack(List<PreprocessFile> pfL) {\n return \"\";\n }",
"Filters getFiltersWithInferredAnnotations( Filters f, @Nullable Collection<OntologyTerm> mentionedTerms );",
"public static void main(String[] args) {\n\t\tString literatureText = \"Jack and Jill went to market to buy bread and cheese.Cheese is jack's and Jill's favouitr food\";\n\n\t\tList<String> wordsToExclude = new ArrayList<>();\n\t\twordsToExclude.add(\"is\");\n\t\twordsToExclude.add(\"are\");\n\t\twordsToExclude.add(\"a\");\n\t\tint fileSize=6;\n\t\tList<String> loglines=new ArrayList<String>();\n\t\tloglines.add(\"t2 13 121 98\" );\n\t\tloglines.add(\"r1 box ape bit\" );\n\t\tloglines.add(\"b4 xi me nu\" );\n\t\tList<String> dd=reorderLines( fileSize,\t loglines);\n\n\t\t/*List<String> s = retrieveMostFrequentlyUsedWords(literatureText,\n\t\t\t\twordsToExclude);*/\n\t}",
"public PorterStopWords()\r\n\t{\r\n\t\tstopWordsSet.addAll( porterStopWordsSet );\r\n\t}",
"public ComputeTermFrequencies() { super(); }",
"@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n double s = 0.75;\n\n long N = stats.getNumberOfDocuments();\n long df = stats.getDocFreq();\n float cwd = termFreq;\n float cwq = 1; //assume that the query term frequency is always one\n float n = docLength;\n float navg = stats.getAvgFieldLength();\n\n double p1 = (1+Math.log(1+Math.log(cwd)))/(1-s+s*n/navg);\n float ans = (float) (p1 * cwq * Math.log((N+1)/df));\n\n return ans;\n }",
"private void getWordsList(final States.difficulty diff) {\n \t\tString file;\n \t\tif (diff == States.difficulty.EASY) {\n \t\t\tfile = \"4words.txt\";\n \t\t} else if (diff == States.difficulty.MEDIUM) {\n \t\t\tfile = \"5words.txt\";\n \t\t} else {\n \t\t\tfile = \"6words.txt\";\n \t\t}\n \n \t\t// read entire file as string, parsed into array by new line\n \t\ttry {\n \t\t\tInputStream stream = am.open(file);\n \t\t\tString contents = IOUtils.toString(stream, \"UTF-8\");\n \t\t\twordsList = contents.split(System.getProperty(\"line.separator\"));\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n \t\t// Shuffle the elements in the array\n \t\tCollections.shuffle(Arrays.asList(wordsList));\n \t}",
"public static void main(String[] args) {\n\t\tString beginWord = \"hit\";\n\t\tString endWord = \"cog\";\n\t\tString[] word = {\"hot\",\"dot\",\"dog\",\"lot\",\"log\",\"cog\"};\n\t\tList<String> wordList = new ArrayList<>(Arrays.asList(word));\n\t\tWordLadderII sol = new WordLadderII();\n\t\tSystem.out.println(sol.findLadders(beginWord, endWord, wordList));\n\t}",
"public static void logAllSearches(boolean wasRelatedSearches) {\n RecordHistogram.recordBooleanHistogram(\n \"Search.ContextualSearch.All.Searches\", wasRelatedSearches);\n }",
"private IDictionary<String, Double> computeTfScores(IList<String> words) {\n IDictionary<String, Double> tfScores = new ChainedHashDictionary<String, Double>();\n IDictionary<String, Double> wordCounts = new ChainedHashDictionary<String, Double>();\n \n // maps each given word to their frequency\n for (String word: words) {\n \t\tif (!wordCounts.containsKey(word)) {\n \t\t\twordCounts.put(word, 1.0);\n \t\t} else {\n \t\t\tDouble count = wordCounts.get(word);\n \t\t\twordCounts.put(word, count + 1.0);\n \t\t} \t\t\n }\n Double totalWords = (double) words.size();\n \n // Computes TF scores\n for (KVPair<String, Double> pair: wordCounts) {\n \t\ttfScores.put(pair.getKey(), pair.getValue() / totalWords);\n }\n return tfScores;\n }",
"private double countWordFrequencyScore(Page page, String[] queryWords) {\n double score = 0;\n for (String word : queryWords) {\n int wordId = this.pb.getIdForWord(word);\n for (double pageWordId : page.getWords()) {\n if (wordId == pageWordId) score++;\n }\n }\n\n return score;\n }",
"public void process(int length) {\n\t\t//the result HashMap contains the word and its parts\n\t\tHashMap<String, List<String>> result = new HashMap<>();\n\t\t// retrieve a list of all tokens with the given length from the dictionary\n\t\tList<String> wordsToProcess = getDict().getWordsByLength(length);\n\t\t\n\t\t// if not empty, process it\n\t\tif (!wordsToProcess.isEmpty()) {\n\t\t\tfor (String word : wordsToProcess) {\n\t\t\t\tfor (int cut = 1; cut < length - 1; cut++) {\n\t\t\t\t\tString firstWord = word.substring(0, cut);\n\t\t\t\t\tString secondWord = word.substring(cut);\n\n\t\t\t\t\tif (dict.contains(firstWord) && dict.contains(secondWord)) {\n\t\t\t\t\t\t// if we find a match, we add it to the results\n\t\t\t\t\t\tList<String> parts = new LinkedList<String>();\n\t\t\t\t\t\tparts.add(firstWord);\n\t\t\t\t\t\tparts.add(secondWord);\n\t\t\t\t\t\tresult.put(word, parts);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// result list is returned and can be used for further processing\n\t\tsetConcatWords(result);\n\t}",
"public void calculateTermWeights() {\n\t\tfor (String termString : terms.keySet()) {\n\t\t\tTerm t = terms.get(termString);\n\t\t\tMap<Integer, TermDoc> posting = t.getPostings();\n\n\t\t\t// Iterate through the docs in which the selected term is found.\n\t\t\tfor (Integer docId : posting.keySet()) {\n\n\t\t\t\tTermDoc td = posting.get(docId);\n\t\t\t\tDocument doc = this.getDocument(docId);\n\n\t\t\t\tfinal double a = 0.4;\n\t\t\t\tdouble ntf = a + (1 - a) * (double) td.getFreq() / (double) doc.getMaxTermFreq();\n\t\t\t\tdouble idf = Math.log((double) documents.size() / (1 + (double) t.getDocFreq()));\n\t\t\t\tdoc.addWeight(termString, ntf * idf);\n\t\t\t}\n\t\t}\n\n\t\tfor (Document doc : documents.values())\n\t\t\tdoc.setEuclideanDistance();\n\t}",
"public abstract void overallWords(long ms, int n);",
"public void highLightWords(){\n }",
"public String longestWord(String[] words) {\n PriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>() {\n @Override\n public int compare(String o1, String o2) {\n if (o1.length() > o2.length())\n return -1;\n else if (o1.length() == o2.length())\n return o1.compareTo(o2);\n else\n return 1;\n }\n });\n \n Set<String> set = new HashSet<>();\n for (String s : words) {\n set.add(s);\n queue.add(s);\n }\n \n while (!queue.isEmpty()) {\n String w = queue.poll();\n boolean res = true;\n for (int i = 1; i < w.length() ; i++) {\n String sub = w.substring(0, i);\n if (!set.contains(sub)) {\n res = false;\n break;\n }\n }\n if (res)\n return w;\n }\n \n return \"\";\n }",
"private void wordSearch(String word, HashMap<String, SearchResult> resultMap, ArrayList<SearchResult> words) {\n\t\tfor (String path : index.get(word).keySet()) {\n\t\t\tint frequency = index.get(word).get(path).size();\n\t\t\tint initialPosition = index.get(word).get(path).first();\n\t\t\t\n\t\t\tif (!resultMap.containsKey(path)) {\n\t\t\t\tresultMap.put(path, new SearchResult(frequency, initialPosition, path));\n\t\t\t\twords.add(resultMap.get(path));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSearchResult searchResult = resultMap.get(path);\n\t\t\t\tsearchResult.addToFrequency(frequency);\n\t\t\t\tsearchResult.updateInitialPosition(initialPosition);\n\t\t\t}\n\t\t}\n\t}",
"public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}",
"static void ReadQuery(String input) throws FileNotFoundException {\n input = input.replaceAll(\"[^A-Za-z]\",\" \");\n String[] arr = input.split(\" \"); // splitting the whole string into words by split on the basis of white spaces\n\n\n for(int i=0; i<arr.length; i++) {\n String termWord = arr[i].toLowerCase();\t//same pre-processing is applied to all the query word\n //termWord = RemoveSpecialCharacter(termWord);\n termWord = removeStopWords(termWord);\n\n if(!termWord.equalsIgnoreCase(\"\")) { // all the white spaces are removed as if not removed then lemmatization wont be successfully done\n\n termWord = Lemmatize(termWord);\n System.out.println(termWord);\n if(dictionary.containsKey(termWord)) {\n List<Integer> wordList = new ArrayList<>();\n wordList = dictionary.get(termWord);\n int queryWordFrequency = wordList.get(totaldocument);\n queryWordFrequency++;\n wordList.set(totaldocument, queryWordFrequency); // all the frequencies of the query words are stored at the 56th index of the List stored in the\n //hashmap associated with its word-terms\n dictionary.put(termWord, wordList);\n }\n else {\n //if any of the enterd query word not present in all the docs so list will have 0.0 value from 0th index to 55th and 56th index is reserver\n // for query word frequency\n List<Integer> wordList = new ArrayList<>();\n for(int j=0; j<totaldocument+1; j++) {\n wordList.add(0);\n }\n wordList.add(1);\n dictionary.put(termWord, wordList); //updating the dictionary hashmap now containing all the query words frequencies\n }\n }\n }\n save();\n }",
"public boolean isInLanguage(ContextFreeGrammar cfg, Word w) {\n\t\tint n = w.length();\n\n\t\tif (n != 0) {\n\t\t\t//instentiating the max derivative steps to comply with CNF steps\n\t\t\tint numberOfSteps = ((2 * n) - 1);\n\t\t\t//creatin a list to store the rules and variables\n\t\t\tList<Word> listToCheck = new ArrayList<>();\n\t\t\tlistToCheck.add(new Word(cfg.getRules().get(0).getVariable()));\n\t\t\t//iterating throught until the loop is less than the numberOfSteps\n\t\t\tfor (int i = 0; i < numberOfSteps; i++) {\n\t\t\t\tList<Word> tempList = new ArrayList<>();\n\t\t\t\tfor (Word tempWord : listToCheck) {\n\t\t\t\t\tint tempWordLength = tempWord.length();\n\t\t\t\t\t//if there are no variables boolien to establish break or continue\n\t\t\t\t\tboolean wordAllTerminal = wordAllTerminals(tempWord);\n\t\t\t\t\t//while we have variables\n\t\t\t\t\tif (!wordAllTerminal) {\n\t\t\t\t\t\tfor (int j = 0; j < tempWordLength; j++) {\n\t\t\t\t\t\t\t//once we replaced all variables with terminasl\n\t\t\t\t\t\t\tif (tempWord.get(j).isTerminal()) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//interating through all the rules within cfg\n\t\t\t\t\t\t\t\tfor (Rule rule : cfg.getRules()) {\n\t\t\t\t\t\t\t\t\tif (tempWord.get(j).equals(rule.getVariable())) {\n\t\t\t\t\t\t\t\t\t\tif ((i < numberOfSteps / 2 && (!rule.getExpansion().isTerminal()))\n\t\t\t\t\t\t\t\t\t\t\t\t|| i >= numberOfSteps / 2 && (rule.getExpansion().isTerminal())) {\n\t\t\t\t\t\t\t\t\t\t\tint expansionLength = rule.getExpansion().length();\n\t\t\t\t\t\t\t\t\t\t\tList<Symbol> tempWordSymbolList = new ArrayList<>();\n\t\t\t\t\t\t\t\t\t\t\tfor (int k = 0; k < j; k++) {\n\t\t\t\t\t\t\t\t\t\t\t\ttempWordSymbolList.add(tempWord.get(k));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfor (int k = 0; k < expansionLength; k++) {\n\t\t\t\t\t\t\t\t\t\t\t\ttempWordSymbolList.add(rule.getExpansion().get(k));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfor (int k = j + 1; k < tempWordLength; k++) {\n\t\t\t\t\t\t\t\t\t\t\t\ttempWordSymbolList.add(tempWord.get(k));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tSymbol[] symbolArray = new Symbol[tempWordSymbolList.size()];\n\t\t\t\t\t\t\t\t\t\t\tfor (int l = 0; l < tempWordSymbolList.size(); l++) {\n\t\t\t\t\t\t\t\t\t\t\t\tsymbolArray[l] = tempWordSymbolList.get(l);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tWord newWord = new Word(symbolArray);\n\t\t\t\t\t\t\t\t\t\t\tif (expansionLength != 0) {\n\t\t\t\t\t\t\t\t\t\t\t\ttempList.add(newWord);\n\t\t\t\t\t\t\t\t\t\t\t}\n\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}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlistToCheck = tempList;\n\t\t\t\tSystem.out.println(\"Derivation step \" + (i+1) + \":\" + tempList);\n\t\t\t}\n\t\t\tSystem.out.println(\"Possible combinations: \" + listToCheck);\n\t\t\tList<Word> tempListToCheck = new ArrayList<>();\n\t\t\tfor (Word wordToCheck : listToCheck) {\n\t\t\t\tif (wordAllTerminals(wordToCheck)) {\n\t\t\t\t\ttempListToCheck.add(wordToCheck);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlistToCheck = tempListToCheck;\n\t\t\tfor (Word wordToCheck : listToCheck) {\n\t\t\t\tif (w.equals(wordToCheck)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tVariable start = cfg.getRules().get(0).getVariable();\n\t\t\tfor (Rule rule : cfg.getRules()) {\n\t\t\t\tif (rule.getVariable().equals(start)) {\n\t\t\t\t\tif (rule.getExpansion().equals(new Word(\"\")))\n\t\t\t\t\t\tSystem.out.println(\"Empty Match!\");\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}",
"private double dotProduct(String[] words) {\n double sum = 0;\n for (TF_IDF_Term term : TF_IDF_Vectorizer.tfIdf(words, vocabulary)) {\n sum += term.getTfIdf() * theta[term.getId()];\n }\n return sum;\n }",
"private void findWords(Node root, String prefix,List<String> words ){\n\n if(root == null) return;\n //if this current node represent an endOfWord (or word)\n if(root.isEndOfWord)\n words.add(prefix); // ex 'car' as prefix\n\n //visit the children of this current/root node\n for(var child: root.getChildren())\n findWords(child,prefix + child.value,words); // 'card' and 'careful'\n\n }",
"@Override\n protected double getTFDocument(BasicStats stats, float termFreq, float docLength) {\n return ((k1 + 1) * termFreq / (k1 * (1 - b +\n b * docLength / stats.getAvgFieldLength()) + termFreq));\n }",
"@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }",
"private String search_words(String word, int index){\n\t\tString found_words = \"\";\n\t\tint local_index = index +1;\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\tif(local_index > word.length()-1 || word.toLowerCase().charAt(local_index) == Character.toLowerCase(child.getRepresentative_letter()))\n\t\t\t\tfound_words += child.search_words(word, local_index);\n\t\t}\n\t\tif(current_word != null && word.length() > current_word.length())\n\t\t\treturn found_words;\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\" + found_words +\"#\" : current_word + \"#\" + found_words;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word.toLowerCase().equals(word.toLowerCase()) ? current_word +\" & \" + definition + \"#\": current_word+ \"#\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}",
"private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}",
"@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n float k1 = (float)1.2;\n float k2 = 750;\n float b = (float)0.75;\n float N = stats.getNumberOfDocuments();\n float df = stats.getDocFreq();\n float qtermFreq = 1;\n float score = (float)Math.log((N - df + 0.5)/df+0.5);\n score*=((k1+1)*termFreq)/(k1*(1-b+b*(docLength/stats.getAvgFieldLength()))+termFreq);\n score*=((k2+1)*qtermFreq)/(k2+qtermFreq);\n return score; }",
"private void exercise7() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n List<String> result;\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n result = reader.lines()\n .flatMap(line -> of(line.split(WORD_REGEXP)))\n .distinct()\n .map(String::toLowerCase)\n .sorted(comparingInt(String::length))\n .collect(toList());\n }\n\n result.forEach(System.out::println);\n }",
"public static Vector<String> getTokenizeDoc(String[] words) {\n\t\t// 0th position is where all the labels are so we need to look from 1\n\t\t// create a arrayList to keep all the words\n\t\tVector<String> wordList = new Vector<String>();\n\t\tfor(int i = 1; i< words.length; i++){\n\t\t\twords[i] = words[i].replaceAll(\"\\\\W\",\"\");\n\t\t\tif(words[i].length() > 0)wordList.add(words[i]);\n\t\t}\n\t\treturn wordList;\n\t}",
"private Set<String> get5000MostPopularWords(Predicate<String> stringFilter) throws FileNotFoundException {\n InputStream wordIS = this.getClass().getResourceAsStream(\"5000-MostPopularEnglishWords.txt\"); // not the best file since it has dups and words that are one and two characters\n BufferedReader reader = new BufferedReader(new InputStreamReader(wordIS));\n\n return reader.lines()\n .filter(stringFilter)\n .collect(Collectors.toSet());\n }",
"public void listIncorrectWords() {\r\n\t\tif (readDocument != null) {\r\n\t\t\t// Add all of the words from the read document that are not in the dictionary to the \r\n\t\t\t// incorrectWords collection.\r\n\t\t\tincorrectWords = readDocumentNoDuplicates.difference(dictionary);\r\n\t\t\t\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\t// List incorrect words from the read document.\r\n\t\t\t\tSystem.out.println(\"Incorrectly spelled words:\");\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.println(incorrectWordsArray[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}",
"public static void main(String arg[]) {\n \tFile wordListFile = new File(\"WordList.txt\");\r\n \tFile definitionsFile = new File (\"DefinitionsAndSentences.txt\"); \t\r\n \tFile outputFile = new File (\"debug.txt\"); \r\n \t\r\n \tInputStream inputStreamOne;\r\n \tInputStreamReader readerOne;\r\n \tBufferedReader binOne;\r\n \t\r\n \tInputStream inputStreamTwo;\r\n \tInputStreamReader readerTwo;\r\n \tBufferedReader binTwo;\r\n \t\r\n \tOutputStream outputStream;\r\n \tOutputStreamWriter writerTwo;\r\n \tBufferedWriter binThree;\r\n \t \t\r\n \t\r\n \t// Lists to store data to write to database\r\n \tArrayList<TermItem>databaseTermList = new ArrayList<TermItem>();\r\n \tArrayList<DefinitionItem>databaseDefinitionList = new ArrayList<DefinitionItem>();\r\n \tArrayList<SentenceItem>databaseSampleSentenceList = new ArrayList<SentenceItem>();\r\n \t\r\n \t// Create instance to use in main()\r\n \tDictionaryParserThree myInstance = new DictionaryParserThree();\r\n \t\r\n \tint totalTermCounter = 1;\r\n \tint totalDefinitionCounter = 1;\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tmyInstance.createDatabase();\r\n\t\t\t// Open streams for reading data from both files\r\n\t\t\tinputStreamOne = new FileInputStream(wordListFile);\r\n\t \treaderOne= new InputStreamReader(inputStreamOne);\r\n\t \tbinOne= new BufferedReader(readerOne);\r\n\t \t\r\n\t \tinputStreamTwo = new FileInputStream(definitionsFile);\r\n\t \treaderTwo= new InputStreamReader(inputStreamTwo);\r\n\t \tbinTwo= new BufferedReader(readerTwo);\r\n\t \t\r\n\t \toutputStream = new FileOutputStream(outputFile);\r\n\t \twriterTwo= new OutputStreamWriter(outputStream);\r\n\t \tbinThree= new BufferedWriter(writerTwo);\r\n\r\n\t \tString inputLineTwo;\r\n\t \tString termArray[] = new String[NUM_SEARCH_TERMS];\r\n\t \t\r\n\t \t// Populate string array with all definitions.\r\n\t \tfor (int i = 0; (inputLineTwo = binTwo.readLine()) != null; i++) {\r\n\t\t \t termArray[i] = inputLineTwo; \r\n\t \t}\t \t\r\n\t \t\r\n\t \t// Read each line from the input file (contains top gutenberg words to be used)\r\n\t \tString inputLineOne;\r\n\t \tint gutenbergCounter = 0;\r\n\t \twhile ((inputLineOne = binOne.readLine()) != null) {\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t// Each line contains three or four words. Grab each word inside double brackets.\r\n\t\t \tString[] splitString = (inputLineOne.split(\"\\\\[\\\\[\")); \t\t \t\r\n\t \t\tfor (String stringSegment : splitString) {\r\n\t \t\t\t\r\n\t \t\t\tif (stringSegment.matches((\".*\\\\]\\\\].*\")))\r\n\t \t\t\t{\r\n\t \t\t\t\t// Increment counter to track Gutenberg rating (already from lowest to highest)\r\n\t \t\t\t\tgutenbergCounter++;\r\n\t \t \t\t\r\n\t \t\t\t\tboolean isCurrentTermSearchComplete = false;\r\n\t \t\t \tint lowerIndex = 0;\r\n\t \t\t \tint upperIndex = NUM_SEARCH_TERMS - 1;\r\n\t \t\t \t\r\n\t \t\t \tString searchTermOne = stringSegment.substring(0, stringSegment.indexOf(\"]]\"));\r\n\t \t\t \tsearchTermOne = searchTermOne.substring(0, 1).toUpperCase() + searchTermOne.substring(1);\r\n\t \t\t \t\r\n\t \t\t\t\twhile (!isCurrentTermSearchComplete) {\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t// Go to halfway point of lowerIndex and upperIndex.\r\n\t \t\t\t\t\tString temp = termArray[(lowerIndex + upperIndex)/2];\r\n\t \t\t\t\t\tString currentTerm = temp.substring(temp.indexOf(\"<h1>\") + 4, temp.indexOf(\"</h1>\"));\r\n\t \t\t\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// If definition term is lexicographically lower, need to increase lower Index\r\n\t \t\t\t\t\t// and search higher.\r\n\t \t\t\t\t\t// If definition term is lexicographically higher, need decrease upper index\r\n\t \t\t\t\t\t// and search higher.\r\n\t \t\t\t\t\t// If a match is found, need to find first definition, and record each definition\r\n\t \t\t\t\t\t// in case of duplicates.\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\tif (currentTerm.compareTo(searchTermOne) < 0) {\t \t\t\t\t\t\t\r\n\t \t\t\t\t\t\tlowerIndex = (lowerIndex + upperIndex)/2;\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\telse if (currentTerm.compareTo(searchTermOne) > 0) {\r\n\t \t\t\t\t\t\tupperIndex = (lowerIndex + upperIndex)/2; \t\t\t\t\t\t\r\n\t \t\t\t\t\t} \t\t\t\t\t\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\telse {\t\r\n\t \t\t\t\t\t\t// Backtrack row-by-row until we reach the first term in the set. Once we reach the beginning,\r\n\t \t\t\t\t\t\t// cycle through each match in the set and obtain each definition until we reach the an unmatching term.\r\n\r\n\t \t\t\t\t\t\t//else {\r\n\t \t\t\t\t\t\t\tSystem.out.println(searchTermOne);\r\n\t\t \t\t\t\t\t\tint k = (lowerIndex + upperIndex)/2;\r\n\t\t \t\t\t\t\t\tboolean shouldIterateAgain = true;\r\n\t\t \t\t\t\t\t\twhile (shouldIterateAgain) {\r\n\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\tif (k <= 0 || k >= NUM_SEARCH_TERMS) {\r\n\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\t\telse {\r\n\t\t\t\t \t\t\t\t\t\tString current = termArray[k].substring(termArray[k].indexOf(\"<h1>\") + 4, termArray[k].indexOf(\"</h1>\"));\r\n\t\t\t\t \t\t\t\t\t\tString previous = termArray[k - 1].substring(termArray[k - 1].indexOf(\"<h1>\") + 4, termArray[k - 1].indexOf(\"</h1>\"));\r\n\t\t\t\t\t \t\t\t\t\t\r\n\t\t\t\t \t\t\t\t\t\tif (current.compareTo(previous) == 0) {\t\t\t\r\n\t\t\t\t \t\t\t\t\t\t\tk--;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t\t\t\t\t \t\t\t\t\telse {\r\n\t\t\t\t\t \t\t\t\t\t\tshouldIterateAgain = false;\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\tshouldIterateAgain = true;\r\n\t\t \t\t\t\t\t\twhile (shouldIterateAgain) {\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// Used to store data to later pass to DB\r\n\t\t \t\t\t\t\t DictionaryParserThree.TermItem tempTermItem = myInstance.new TermItem();\r\n\r\n\t\t \t\t\t\t\t // Determine unique ID (which will be written to DB later)\r\n\t\t \t\t\t\t\t // Add current term and gutenberg rating.\r\n\t\t \t\t\t\t\t tempTermItem.ID = totalTermCounter;\t\t \t\t\t\t\t \t \t\t\t\t\t \r\n\t\t \t\t\t\t\t \ttempTermItem.theWord = searchTermOne; // same as termArray[k]'s term\r\n\t\t \t\t\t\t\t \r\n\t\t \t\t\t\t\t\t\ttempTermItem.gutenbergRating = gutenbergCounter;\r\n\t\t \t\t\t\t\t\t\tdatabaseTermList.add(tempTermItem);\r\n\t\t \t\t\t\t\t\t\tbinThree.write(\"Term ID \" + tempTermItem.ID + \" \" + tempTermItem.theWord + \" guten rank is \" + tempTermItem.gutenbergRating);\r\n\t\t \t\t\t\t\t\t\tbinThree.newLine();\t\t\t\t\t\t\t\r\n\t\t \t\t\t\t \t\tsplitString = termArray[k].split(\"<def>\");\r\n\t\t \t\t\t\t \t\t\r\n\t\t \t\t\t\t \t\tint m = 0;\r\n\t \t\t\t\t\t \t\tfor (String stringSegment2 : splitString) {\r\n\t \t\t\t\t\t \t\t\tif (stringSegment2.matches(\".*</def>.*\") && m > 0) {\r\n\t \t\t\t\t\t \t\t\t\t\r\n\t \t\t\t\t\t \t\t\t\t// Determine unique ID (which will be written to DB later)\r\n\t \t\t\t\t\t \t\t\t\t// Add definition, as well as term ID it is associated with.\r\n\t \t\t\t\t\t \t\t\t\tDictionaryParserThree.DefinitionItem tempDefinitionItem = myInstance.new DefinitionItem();\r\n\t \t\t\t\t\t \t\t\t\ttempDefinitionItem.ID = totalDefinitionCounter;\r\n\t \t\t\t\t\t \t\t\t\ttempDefinitionItem.theDefinition = stringSegment2.substring(0, stringSegment2.indexOf(\"</def>\"));\r\n\t \t\t\t\t\t\t \t\t\ttempDefinitionItem.termID = totalTermCounter;\r\n\t \t\t\t\t\t\t \t\t\tdatabaseDefinitionList.add(tempDefinitionItem);\r\n\r\n\t \t\t\t\t\t\t \t\t\tint n = 0;\r\n\t \t\t\t\t\t\t \t\t\tString[] splitString2 = (stringSegment2.split(\"<blockquote>\")); \r\n\t \t \t\t\t\t\t \t\tfor (String stringSegment3 : splitString2) {\r\n\t \t \t\t\t\t\t \t\t\tif (stringSegment3.matches(\".*</blockquote>.*\") && n > 0) {\r\n\t \t \t\t\t\t\t \t\t\t\t// Add data which will be added to DB later.\r\n\t \t \t\t\t\t\t \t\t\t\t// Add sample sentence as well as the definition ID it is associated with.\r\n\t \t \t\t\t\t\t \t\t\t\tDictionaryParserThree.SentenceItem tempSentenceItem = myInstance.new SentenceItem();\t\r\n\t \t \t\t\t\t\t \t\t\t\ttempSentenceItem.definitionID = totalDefinitionCounter;\r\n\t \t \t\t\t\t\t \t\t\t\ttempSentenceItem.theSampleSentence = stringSegment3.substring(0, stringSegment3.indexOf(\"</blockquote>\"));\r\n\t \t \t\t\t\t\t \t\t\t\tdatabaseSampleSentenceList.add(tempSentenceItem);\t \t \t\t\t\t\t \t\t\t\t\r\n\t \t \t \t\t\t\t\t \t\t\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.write(\"Definition is\" + tempDefinitionItem.theDefinition);\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.newLine();\r\n\t \t \t\t\t\t\t \t\t\t\tbinThree.write(\" and sample sentence is \" + tempSentenceItem.theSampleSentence);\r\n\t \t \t\t \t\t\t\t\t\t\tbinThree.newLine();\t\r\n\t \t \t\t\t\t\t \t\t\t}\r\n\t \t \t\t\t\t\t \t\t\t// Increment counter for split string (for this line's sample sentence)\r\n\t \t \t\t\t\t\t \t\t\tn++;\r\n\t \t \t\t\t\t\t \t\t}\r\n\t \t \t\t\t\t\t \t\ttotalDefinitionCounter++;\r\n\t \t\t\t\t\t \t\t\t}\r\n\t \t\t\t\t\t \t\t\t// Increment counter for split string (for this line's definition)\r\n\t \t\t\t\t \t\t\t\tm++;\r\n\t \t\t\t\t \t\t\t\t\r\n\t \t\t\t\t\t \t\t}\t \t \t\t\t\t\t \t\t\r\n\t \t\t\t\t\t \t\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\ttotalTermCounter++;\r\n\t\t \t\t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\t\t// Compare next definition and see if duplicate exists.\r\n\t\t \t\t\t\t\t\t\t// If so, add to string array.\r\n\t \t\t\t\t\t \t\tif (k < 0 || k >= NUM_SEARCH_TERMS - 1) {\r\n\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\t\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t \t\telse { \t \t\t\t\t\t \t\t\r\n\t\t\t \t\t\t\t\t\t\tString current = termArray[k].substring(termArray[k].indexOf(\"<h1>\") + 4, termArray[k].indexOf(\"</h1>\"));\r\n\t\t\t\t \t\t\t\t\t\tString next = termArray[k + 1].substring(termArray[k + 1].indexOf(\"<h1>\") + 4, termArray[k + 1].indexOf(\"</h1>\"));\r\n\t\t\t\t\t \t\t\t\t\tif (current.compareTo(next) == 0) {\t\r\n\t\t\t\t \t\t\t\t\t\t\tk++;\r\n\t\t\t\t \t\t\t\t\t\t}\r\n\t\t\t\t \t\t\t\t\t\telse {\r\n\t\t\t\t \t\t\t\t\t\t\tshouldIterateAgain = false;\r\n\t\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\t\t//}\t \t\t\t\t\t\t\r\n\t\t \t\t\t\t\t\tisCurrentTermSearchComplete = true;\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\t\r\n\t \t\t\t\t\t// If the term does not exist in the database.\r\n\t \t\t\t\t\tif (Math.abs(upperIndex) - Math.abs(lowerIndex) <= 1)\r\n\t \t\t\t\t\t{\r\n \t\t\t\t\t\t\t isCurrentTermSearchComplete = true;\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 \t\t\r\n\t \t}\r\n\t \t\r\n\t \t \t\r\n\t \tSystem.out.println(\"ended search.\");\t\r\n\t \tmyInstance.writeAllItemsToDatabase(databaseTermList, databaseDefinitionList, databaseSampleSentenceList);\t\r\n\t \tSystem.out.println(\"ended write.\");\r\n\t \t\r\n\t \tbinOne.close();\r\n\t \treaderOne.close();\r\n\t \tinputStreamOne.close();\t \t\r\n\t \t\r\n\t \tbinTwo.close();\r\n\t \treaderTwo.close();\r\n\t \tinputStreamTwo.close();\t \t\r\n\t \t\r\n\t \tbinThree.close(); \r\n\t \twriterTwo.close();\r\n\t \toutputStream.close();\r\n\t \tSystem.exit(0);\r\n\r\n\r\n\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} \t\r\n }",
"public abstract double score(double tf, double docLength);",
"public static Vector<Thought> loadWords(File f, int dimensions) {\r\n\t\t\r\n\t\tVector<Thought> ret = new Vector<Thought>();\r\n\t\t\r\n\t\tCSV csv = new CSV(f);\r\n\t\tString[] line;\r\n\t\t\r\n\t\tHashSet<String> words = new HashSet<String>();\r\n\t\t\r\n\t\twhile((line = csv.getLine()) != null) {\r\n\t\t\tString word = line[0].trim();\r\n\t\t\tword = word.replaceAll(\" ?\\\\(.*\\\\)\", \"\");\r\n\t\t\t\r\n\t\t\tif(word.indexOf(' ') != -1) {\r\n\t\t\t\t// Ignore sentences.\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tword = word.replaceAll(\"[^a-z]\", \"\");\r\n\t\t\t\t\r\n\t\t\t\t// Only add words without spaces.\r\n\t\t\t\tif(!words.contains(word)) {\r\n\t\t\t\t\twords.add(word);\r\n\t\t\t\t\t//float frequency = Float.parseFloat(line[line.length-1]);\r\n\t\t\t\t\tret.add(new Thought(word, dimensions));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}",
"private void setWords() {\r\n words = new ArrayList<>();\r\n\r\n String line = null;\r\n try {\r\n // FileReader reads text files in the default encoding.\r\n FileReader fileReader = new FileReader(\"words.txt\");\r\n\r\n // Always wrap FileReader in BufferedReader.\r\n BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\r\n while((line = bufferedReader.readLine()) != null)\r\n words.add(line);\r\n\r\n // Always close files.\r\n bufferedReader.close();\r\n }\r\n catch(Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Unable to open file '\");\r\n }\r\n }",
"public List<String> getAllWords() {\n List<String> words = new ArrayList<>();\n // get the words to the list\n getAllWords(root, \"\", 0, words);\n // and return the list of words\n return words;\n }",
"@UITopiaVariant(affiliation = \"RWTH Aachen\", author = \"Kefang\", email = \"***@gmail.com\", uiLabel = UITopiaVariant.USEVARIANT)\n\t@PluginVariant(variantLabel = \"Assign Controlled Label\", requiredParameterLabels = { 0 })\n\tpublic XLog assignControlledLabel(UIPluginContext context, XLog log) {\n\n\t\tXFactory factory = XFactoryRegistry.instance().currentDefault();\n\t\tXLog label_log = (XLog) log.clone();\n\t\t// how to decide the throughputtime of each trace?? \n\t\tlabel_log.getGlobalTraceAttributes().add(factory.createAttributeBoolean(Configuration.POS_LABEL, false, null));\n\t\t// we need to create a dislogue for setting parameters\n\t\tLabelParameters parameters = new LabelParameters();\n\t\tLabelParameterStep lp_step = new LabelParameterStep(parameters);\n\n\t\tListWizard<LabelParameters> wizard = new ListWizard<LabelParameters>(lp_step);\n\t\tparameters = ProMWizardDisplay.show(context, wizard, parameters);\n\t\t//System.out.println(parameters.getFit_overlap_rate());\n\t\t//System.out.println(parameters.getFit_pos_rate());\n\n\t\tList<TraceVariant> variants = EventLogUtilities.getTraceVariants(label_log); // for all variants \n\t\t// fit and not fit for variants \n\t\t// assignLabel to fit and not fit for also the variants.\n\t\tList<TraceVariant> fit_variants = new ArrayList<TraceVariant>();\n\t\tList<TraceVariant> unfit_variants = new ArrayList<TraceVariant>();\n\n\t\tfor (TraceVariant var : variants) {\n\t\t\tif (var.getFitLabel() == null || var.getFitLabel())\n\t\t\t\tfit_variants.add(var);\n\t\t\telse // if(var.getFitLabel() == false)\n\t\t\t\tunfit_variants.add(var);\n\t\t} // variants size ==0, we don't need to do it??? \n\t\tif (fit_variants.size() > 0)\n\t\t\tEventLogUtilities.assignVariantListLabel(fit_variants, parameters.getFit_overlap_rate(),\n\t\t\t\t\tparameters.getFit_pos_rate());\n\t\t// for unfit variants // if variants.size == 0, we don't need to do it\n\t\tif (unfit_variants.size() > 0)\n\t\t\tEventLogUtilities.assignVariantListLabel(unfit_variants, parameters.getUnfit_overlap_rate(),\n\t\t\t\t\tparameters.getUnfit_pos_rate());\n\n\t\treturn label_log;\n\t}",
"private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }",
"public void rewrite(){\n\t\t//SROEL2DatalogRewriter rewriter = new SROEL2DatalogRewriter();\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tRLGlobal2DatalogRewriter globalrewriter = new RLGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t//System.out.println(\"Rewriting program for global context complete.\");\n\t\t\n\t\t//Computation of set of contexts and associations to modules\n\t\tcomputeSets(datalogGlobal);\n\t\t//System.out.println(\"Set of contexts and modules associations computed.\");\n\t\t\n\t\t//Computation of local contexts knowledge bases.\n\t\tcomputeLocalKB();\n\t\t\n\t\t//Rewriting for local contexts knowledge bases.\n\t\tRLLocal2DatalogRewriter localrewriter = new RLLocal2DatalogRewriter();\n\t\t\n\t\tdatalogLocal = new LinkedList<DLProgram>();\n\t\tfor (String c : contextsSet) {\n\t\t\t//System.out.println(\"Rewriting program for \" + c.replaceAll(\"\\\"\", \"\"));\n\t\t\tlocalrewriter.setContextID(c.replaceAll(\"\\\"\", \"\"));\n\t\t\tdatalogLocal.add(localrewriter.rewrite(contextsOntologies.get(c)));\n\t\t}\n\t\t\n\t\t//for (OWLOntology o : inputCKR.getLocalOntology()) {\n\t\t//\tlocalrewriter.setLocalID(\"c\");\n\t\t//\t//o.getOWLOntologyManager().addAxioms(o, inputCKR.getGlobalOntology().getAxioms());\n\t\t//\t\n\t\t//\tdatalogLocal.add(localrewriter.rewrite(o));\n\t\t//\t//System.out.println(datalogLocal.getLast().getStatements().size());\n\t\t//}\n\t\t\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n\n\t\t//System.out.println(\"Rewriting completed in \" + rewritingTime + \" ms.\");\n\t\t//System.out.println(datalogGlobal.getStatements().size());\n\t\t\n\t\t//Compute CKR Program.\n\t\tdatalogCKR = new DLProgram();\n\t\n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\t\tfor (DLProgram dlProgram : datalogLocal) {\n\t\t\tdatalogCKR.addAll(dlProgram.getStatements());\t\n\t\t}\n\t\t//Add local inference rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPloc());\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(DeductionRuleset.getPd());\n\t\t\n\t\t//StringReader reader = new StringReader(\"hasModule(X,Y) :- triple(X, \\\"hasModule\\\", Y, \\\"g\\\").\");\n\t\t//DLProgramParser dlProgramParser = new DLProgramParser(reader);\n\t\t//try {\n\t\t//\tdatalogCKR.addAll(dlProgramParser.program().getStatements());\n\t\t//} catch (ParseException e) {\n\t\t//\te.printStackTrace();\n\t\t//}\n\t}",
"public String longestWord(String[] words) {\n String ans = \"\";\n\n Set<String> wordSet = new HashSet<String>();\n for (String w : words) {\n wordSet.add(w);\n }\n\n for (String w : words) {\n if (isValidWord(w, wordSet)) {\n System.out.println(w);\n if (w.length() > ans.length()) {\n ans = w;\n } else if (w.length() == ans.length() && w.compareTo(ans) > 0) {\n ans = w;\n }\n }\n }\n\n return ans;\n }",
"public static void main(String[] args) {\n OntologyInteractionImpl oi = new OntologyInteractionImpl();\n ArrayList<String> allkw = oi.getAllValuesFromProperty(\"has_Keyword\");\n FrequentItem FI = new FrequentItem(\"wast_manag\");\n FI.mapFrequentItem(allkw, oi);\n }",
"public void setTermFrequency(double termFreq) {\n\t\ttermFrequency = termFreq;\n\t}",
"public Element NewexpandLog(Element func, Ring ring){\n if (func instanceof F) {\n F f = (F) func;\n Element[] NEWARGS = new Element[f.X.length];\n for (int j = 0; j < NEWARGS.length; j++) NEWARGS[j] = NewexpandLog(f.X[j], ring); \n Element[] argLog2=null; boolean notTaken=true; int name=0;\n switch (f.name) {\n case F.LOG: argLog2=f.X; notTaken=false; name=F.LOG; argLog2[1]=NEWARGS[1]; argLog2[0]=NEWARGS[0];\n case F.LG: if (notTaken){ argLog2=new Element[2]; \n argLog2[0]=NumberZ.TEN; argLog2[1]=NEWARGS[0]; notTaken=false; name = F.LG;}\n case F.LN: if (notTaken){ argLog2=new Element[2]; \n argLog2[0]=Element.CONSTANT_E; argLog2[1]=NEWARGS[0]; notTaken=false;name = F.LN;} \n Element osn = argLog2[0];//основание \n Element argument = argLog2[1];//аргумент;\n boolean flagAbs = false;\n if(argument instanceof F) {\n argument = undressAbs((F) argument, ring);\n if(argument == null) {\n argument = argLog2[1];\n } else {\n flagAbs = true;\n }\n }\n Element pol = ring.CForm.ElementConvertToPolynom(argument);\n return toSumOfLogs(pol, osn, name, flagAbs, ring);\n// if(argument instanceof Polynom){\n// Polynom p=(Polynom)argument; FactorPol fp=p.factorOfPol_inQ(false, ring);\n// if(fp.multin.length>1){ Element[] mm= new Element[fp.multin.length];\n// for (int i = 0; i < fp.multin.length; i++) \n// mm[i]=(name==F.LOG)? \n// new F(name, argLog2[0], fp.multin[i]): new F(name, fp.multin[i]) ; \n// for (int i = 0; i < fp.multin.length; i++) \n// if(fp.powers[i]>1)\n// mm[i]=new F(F.MULTIPLY, new NumberZ(fp.powers[i]),mm[i]); \n// return new F(F.ADD, mm);\n// } else return (name==F.LOG)? new F(name, argLog2): new F(name, argLog2[1]); \n// }// end of polynom ----------------------------------------------------------- \n// Element[] argN=null;\n// if (name==F.LOG){\n// if((NEWARGS[1] instanceof F)&& (((F)NEWARGS[1]).name==F.MULTIPLY) ) {F f3=(F)NEWARGS[1];\n// argN=new Element[f3.X.length]; \n// for (int i = 0; i < argN.length; i++) argN[i]= new F(name, NEWARGS[0], f3.X[i]);\n// return new F(F.ADD, argN);}}\n// else if ((NEWARGS[0] instanceof F)&& (((F)NEWARGS[0]).name==F.MULTIPLY) ) {F f3=(F)NEWARGS[0];\n// argN=new Element[f3.X.length]; \n// for (int i = 0; i < argN.length; i++) {\n// if( (f3.X[i] instanceof F) && \n// ( (((F)f3.X[i]).name == F.POW) ||(((F)f3.X[i]).name == F.intPOW) ) ) {\n// argN[i]= new F(F.MULTIPLY, ((F)f3.X[i]).X[1], new F(name, ((F)f3.X[i]).X[0]) );\n// } else {\n// argN[i]= new F(name, f3.X[i]);\n// }\n// }\n// return new F(F.ADD, argN);\n// } else return new F(name, NEWARGS); \n case F.ID: return NEWARGS[0] ; \n case F.ADD:\n Element[] newArg= new Element[NEWARGS.length];\n Element sum=ring.numberZERO; int j=0;\n for (int i = 0; i < NEWARGS.length; i++) { \n if (NEWARGS[i].numbElementType() <= Ring.Polynom){sum = sum.add(NEWARGS[i], ring);\n } else {newArg[j++] = NEWARGS[i];}\n } \n if(!sum.isZero(ring)) {newArg[j++]=sum;}\n if ((j<NEWARGS.length)||(!sum.isZero(ring))) {if (j==NEWARGS.length) return new F(F.ADD, newArg);\n Element[] newArg1= new Element[j];\n System.arraycopy(newArg, 0, newArg1, 0, j); return (j>1)? new F(F.ADD, newArg1):newArg1[0]; \n }else return new F(F.ADD, newArg);\n case F.DIVIDE:\n // Сокращаем дробь.\n Element el = new F(F.DIVIDE, NEWARGS);\n el = ring.CForm.ElementConvertToPolynom(el);\n return ring.CForm.ElementToF(el);\n case F.intPOW:\n case F.POW:\n if((NEWARGS[0] instanceof F)&&(((F)NEWARGS[0]).name==F.MULTIPLY)){\n Element[] ee1=((F)NEWARGS[0]).X;\n for (int i = 0; i < ee1.length; i++) {\n if(ee1[i] instanceof F){\n F sf=(F)ee1[i];\n Element pow1= ((sf.name==F.intPOW)||(sf.name==F.POW))? NEWARGS[1].multiply(sf.X[1],ring):NEWARGS[1];\n ee1[i]=((sf.name==F.intPOW)||(sf.name==F.POW))? new F(sf.name, sf.X[0], pow1):\n new F(f.name, sf, pow1);\n }else ee1[i]= new F(f.name, ee1[i], NEWARGS[1]);\n }\n return new F(F.MULTIPLY, ee1);\n }else return new F(f.name, NEWARGS);\n \n case F.ABS: Element ARG=NEWARGS[0]; Element RES=null; \n if(ARG instanceof F){ F f1=(F)ARG;\n if ((f1.name==F.POW)||(f1.name==F.intPOW))\n return new F(f1.name, new F(F.ABS,f1.X[0] ),f1.X[1]);\n if (f1.name==F.MULTIPLY){\n Element[] nAr=new Element[f1.X.length];\n for (int i = 0; i < nAr.length; i++) {\n if ((f1.X[i] instanceof F)&& \n ((((F)f1.X[i]).name==F.POW)||(((F)f1.X[i]).name==F.intPOW))){\n F f2=(F)f1.X[i];\n nAr[i]= new F(f2.name, new F(F.ABS,f2.X[0]),f2.X[1]);}\n else nAr[i]= new F(F.ABS, f1.X[i]); }\n return new F(((F)ARG).name, nAr); \n }}else return new F(F.ABS, ARG);\n default:\n return new F(f.name,NEWARGS);\n }\n } \n if(func instanceof Fraction){\n if(func.isItNumber()) {\n return func;\n }\n Fraction frac = (Fraction)func;\n if( ( frac.num instanceof F) ||\n ( frac.denom instanceof F) ) {\n Element el = new F(F.DIVIDE, frac.num, frac.denom);\n return NewexpandLog(el, ring);\n }\n return frac.cancel(ring);\n }\n return func; // Fname, числа ,полиномы, матрицы и вектора он оставляет без изменений\n }",
"public static void main(String[] args) {\n\t\tPropertyManager.setPropertyFilePath(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/TextDigesterConfig.properties\");\n\t\t\n\t\tString text = MultilingImport.readText(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/multilingMss2015Training/body/text/\" + lang + \"/\" + docName);\n\n\t\t/* Process text document */\n\t\tLangENUM languageOfHTMLdoc = FlProcessor.getLanguage(text);\n\t\t\n\t\tTDDocument TDdoc = FlProcessor.generateDocumentFromFreeText(text, null, languageOfHTMLdoc);\n\n\t\t// Store GATE document\n\t\tWriter out = null;\n\t\ttry {\n\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/\" + lang + \"_\" + docName.replace(\".txt\", \"_GATE.xml\")), \"UTF-8\"));\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tout.write(TDdoc.getGATEdoc().toXml());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\ttry {\n\t\t\tLexRankSummarizer lexRank = new LexRankSummarizer(languageOfHTMLdoc, SentenceSimilarityENUM.cosineTFIDF, false, 0.01);\n\t\t\tMap<Annotation, Double> sortedSentences = lexRank.sortSentences(TDdoc);\n\t\t\t\n\t\t\tList<Annotation> sentListOrderedByRelevance = new ArrayList<Annotation>();\n\t\t\tfor(Entry<Annotation, Double> sentence : sortedSentences.entrySet()) {\n\t\t\t\tlogger.info(\"Score: \" + sentence.getValue() + \" - '\" + GtUtils.getTextOfAnnotation(sentence.getKey(), TDdoc.getGATEdoc()) + \"'\");\n\t\t\t\tsentListOrderedByRelevance.add(sentence.getKey());\n\t\t\t}\n\t\t\t\n\t\t\tlogger.info(\"Summary max 100 tokens: \");\n\t\t\tList<Annotation> summarySentences = GtUtils.orderAnnotations(sentListOrderedByRelevance, TDdoc.getGATEdoc(), 100);\n\t\t\tfor(Annotation ann : summarySentences) {\n\t\t\t\tlogger.info(GtUtils.getTextOfAnnotation(ann, TDdoc.getGATEdoc()));\n\t\t\t}\n\t\t} catch (TextDigesterException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t*/\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString word1 = \"hit\";\n\t\tString word2 = \"lot\";\n\t\tString[] dictionary = { \"dog\", \"dot\", \"bag\", \"hot\", \"lot\", \"log\", \"cog\" };\n\t\tQueue queue = new Queue();\n\t\tArrayList<String> visited = new ArrayList<String>();\n\t\tWordLadder wl = new WordLadder(word1, 1);\n\t\t\n\t\t/*wl.setWord(word1);\n\t\twl.setLevel(1);*/\n\t\tqueue.enqueue(wl);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tWordLadder wl2 = null;\n\t\t\ttry {\n\t\t\t\t \n\t\t\t\twl2 = (WordLadder) queue.dequeue();\n\t\t\t\tSystem.out.println(wl2.getWord());\n\t\t\t\tif(wl2.getWord().equals(word2))\t{\n\t\t\t\t\t\tSystem.out.println(wl2.getLevel());\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (String s : dictionary) {\n\t\t\t\t\tif (editDistance(wl2.getWord(), s) == 1 && !(visited.contains(s))) {\n\t\t\t\t\t\twl = new WordLadder(s, wl2.getLevel()+1);\n\t\t\t\t\t\t/*wl.setWord(s);\n\t\t\t\t\t\twl.setLevel(wl2.getLevel()+1);*/\n\t\t\t\t\t\tqueue.enqueue(wl);\n\t\t\t\t\t\tvisited.add(wl2.getWord());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t//int distance = editDistance(word1, word2);\n\t\t//System.out.println(distance);\n\t}",
"private static String italianAnalyzer(String label) throws IOException\r\n\t{\r\n\t\t// recupero le stopWords dell'ItalianAnalyzer\r\n\t\tCharArraySet stopWords = ItalianAnalyzer.getDefaultStopSet();\r\n\t\t// andiamo a tokenizzare la label\r\n\t\tTokenStream tokenStream = new StandardTokenizer(Version.LUCENE_48, new StringReader(label));\r\n\t\t// richiamo l'Elision Filter che si occupa di elidere le lettere apostrofate\r\n\t\ttokenStream = new ElisionFilter(tokenStream, stopWords);\r\n\t\t// richiamo il LowerCaseFilter\r\n\t\ttokenStream = new LowerCaseFilter(Version.LUCENE_48, tokenStream);\r\n\t\t// richiamo lo StopFilter per togliere le stop word\r\n\t\ttokenStream = new StopFilter(Version.LUCENE_48, tokenStream, stopWords);\r\n\t\t// eseguo il processo di stemming italiano per ogni token\r\n\t\ttokenStream = new ItalianLightStemFilter(tokenStream);\r\n\t\t\r\n\t\t/*\r\n\t\t * ricostruisco la stringa in precedenza tokenizzata\r\n\t\t */\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t CharTermAttribute charTermAttribute = tokenStream.addAttribute(CharTermAttribute.class);\r\n\t tokenStream.reset();\r\n\r\n\t while (tokenStream.incrementToken()) \r\n\t {\r\n\t String term = charTermAttribute.toString();\r\n\t sb.append(term + \" \");\r\n\t }\r\n \r\n\t tokenStream.close();\r\n\t // elimino l'ultimo carattere (spazio vuoto)\r\n\t String l = sb.toString().substring(0,sb.toString().length()-1);\r\n\t \r\n\t// ritorno la label stemmata\r\n return l;\r\n\t\r\n\t}",
"public void setTheWords (String themeWords){\n\t\twords.setText(themeWords);\n\t}",
"private double idf(String term) {\n return 1 + Math.log(this.numberOfDocuments / (double) termToDocumentsContainingTerm.get(term).size());\n }",
"public LinkedList<String> getThemeWords(){\r\n\t\treturn this.themeWords;\r\n\t}",
"public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }",
"private void initialiseWordsToSpell(){\n\t\t//normal quiz\n\t\tif(quiz_type==PanelID.Quiz){\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Quiz);\n\t\t} else { //review quiz\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Review);\n\t\t}\t\n\t}",
"public void getWord() {\n\t\t\n\t}",
"public String[][] searchLine(String[] words){\n\t\tString[][] ret = new String[words.length][];\n\t\tfor(int i = 0; i < words.length; i++){\n\t\t\tret[i] = this.getCorrection(words[i]);\n\t\t}return ret;\n\t}",
"@Override\r\n\t\t\tpublic long getDocumentFrequency(String term) {\n\t\t\t\treturn 0;\r\n\t\t\t}",
"public void loadExemptWords(String fname) {\n\t\ttry {\n\t\t\tBufferedReader wordsReader = new BufferedReader(new FileReader(fname));\n\t \n\t\t\tfor ( ; ; ) {\n\t\t\t\tString line = wordsReader.readLine();\n\t\n\t\t\t\tif (line == null) {\n\t\t\t\t\twordsReader.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\n\t\t\t\telse {\n\t\t\t\t\tString[] parts = line.split(\" \");\n\t\t\t\t\tstopWords.add(parts[0]);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t} catch (Exception e) {\n\t \t LOGGER.warning(e.getMessage());\n\t\t}\n\t}",
"public void rewriteDLR(){\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t//Rewriting for global context.\n\t\tDLRGlobal2DatalogRewriter globalrewriter = new DLRGlobal2DatalogRewriter();\n\t\tdatalogGlobal = globalrewriter.rewrite(inputCKR.getGlobalOntology());\n\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\trewritingTime = endTime - startTime;\n\t\t\n\t\t//Compute DKB Program.\n\t\tdatalogCKR = new DLProgram();\n\t\n\t\tdatalogCKR.addAll(datalogGlobal.getStatements());\n\n\t\t//Add local propagation rules.\n\t\tdatalogCKR.addAll(DLRDeductionRuleset.getPd());\n\t}"
]
| [
"0.5119244",
"0.47948846",
"0.47825268",
"0.4769521",
"0.46901888",
"0.46369305",
"0.4613937",
"0.46087176",
"0.46042553",
"0.46001753",
"0.45980224",
"0.4567299",
"0.45574403",
"0.45109144",
"0.45054543",
"0.44901606",
"0.4485346",
"0.44746113",
"0.44555324",
"0.44553664",
"0.44362718",
"0.44361466",
"0.44304284",
"0.44096616",
"0.43667716",
"0.43665135",
"0.4356951",
"0.43452424",
"0.43399778",
"0.4332216",
"0.43308997",
"0.43305588",
"0.43217626",
"0.4320006",
"0.4313853",
"0.4303648",
"0.4297374",
"0.429244",
"0.42796856",
"0.42734364",
"0.4263194",
"0.42519605",
"0.42436284",
"0.4242379",
"0.42375606",
"0.4234654",
"0.423073",
"0.4226851",
"0.42243436",
"0.42188558",
"0.42082697",
"0.4197926",
"0.41957107",
"0.41887662",
"0.41771257",
"0.41663316",
"0.415832",
"0.4133951",
"0.41282842",
"0.41278115",
"0.41207275",
"0.41075507",
"0.41053176",
"0.4101345",
"0.4098344",
"0.4098277",
"0.4097644",
"0.40965748",
"0.40892684",
"0.40792716",
"0.4075138",
"0.40726155",
"0.40689805",
"0.40639055",
"0.4058689",
"0.4056837",
"0.40554976",
"0.40477845",
"0.4047725",
"0.4047446",
"0.40446013",
"0.40276143",
"0.4025548",
"0.4024794",
"0.40173015",
"0.40170857",
"0.40170178",
"0.40151307",
"0.40051752",
"0.39984605",
"0.39976972",
"0.39946488",
"0.39924118",
"0.39895853",
"0.39832076",
"0.39795035",
"0.39751884",
"0.39666292",
"0.3963288",
"0.39590424"
]
| 0.6419355 | 0 |
Two EPs are the same if they have the same ptoken. | public boolean equals(Object o) {
if (o instanceof ExtractionPattern) {
ExtractionPattern ep = (ExtractionPattern) o;
return this.signature.equals(ep.signature);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }",
"boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }",
"private void assertEquivalentPair(Set<Pair> result, String s1, String s2) {\n\t\tPair resultPair = filterResult(result, s1, s2);\n\t\tassertFalse(resultPair.isMarked());\n\t}",
"@Test\n public void equalsOtherTest2() {\n Device device2 = new Device(\"other\", token);\n assertNotEquals(device, device2);\n }",
"@Test\n public void equalsSameTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device, device2);\n }",
"public boolean equals(Node psNode)\r\n\t\t{\r\n\t\t\tif(data.equals(psNode.data))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"public boolean equals(Pair otherPair){\n return this.item1 == otherPair.item1 && this.item2 == otherPair.item2;\n }",
"@Test\n public void testSameEPPNs() throws Exception {\n // Get a set of keys.\n ArrayList<UserMultiID> umks = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n umks.add(createUMK());\n }\n User user = newUser();\n User mostRecentUser = user;\n String idp = user.getIdP();\n long oneYear = 31557600000L; // in ms.\n long currentTime = System.currentTimeMillis();\n ArrayList<User> newUsers = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n newUsers.add(user);\n\n // all have the same EPPN, but different eptids\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn(), umks.get(i).getEptid());\n Date date = new Date(currentTime - (i + 1) * oneYear); // have these spaced one year apart.\n user.setCreationTS(date);\n user.setUserMultiKey(newUmk);\n getUserStore().update(user, true);\n user = newUser();\n user.setIdP(idp);\n }\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn());\n\n Collection<User> users = getUserStore().get(newUmk, idp);\n\n assert users.size() == count : \"Incorrect number of users found. Expected \" + count + \" and got \" + users.size();\n XMLMap userMap = getDBSClient().getUser(newUmk, idp);\n checkUserAgainstMap(userMap, mostRecentUser);\n }",
"public boolean equals(Point other) {\r\n return ((this.x == other.getX()) && (this.y == other.getY()));\r\n }",
"boolean samePainting(Painting p) {\r\n\t\treturn this.title.equals(p.title) &&\r\n\t\t\t\tthis.artist.sameArtist(p.artist);\r\n\t}",
"public void testEquals(){\r\n Token otherToken;\r\n Token differentToken;\r\n\r\n //So we can catch an exception that should never be thrown.\r\n try{\r\n token = new Token(TokenType.COMMA, \",\", 1);\r\n otherToken = new Token(TokenType.COMMA, \",\", 2);\r\n differentToken = new Token(TokenType.PERIOD, \".\", 2);\r\n \r\n assertTrue(Token.COMMA.equals(Token.COMMA));\r\n assertTrue(Token.COMMA.equals(token));\r\n assertTrue(token.equals(Token.COMMA));\r\n assertTrue(token.equals(otherToken));\r\n assertTrue(otherToken.equals(token));\r\n assertFalse(differentToken.equals(token));\r\n assertFalse(token.equals(null));\r\n assertFalse(token.equals(\"abc\"));\r\n\r\n token = new Token(TokenType.STRING, \"\", 1);\r\n otherToken = new Token(TokenType.STRING, \"\", 2);\r\n assertTrue(token.equals(otherToken));\r\n assertTrue(otherToken.equals(token));\r\n otherToken = new Token(TokenType.STRING, \"a\", 2);\r\n assertFalse(token.equals(otherToken));\r\n assertFalse(otherToken.equals(token));\r\n assertTrue(otherToken.equals(otherToken));\r\n token = new Token(TokenType.STRING, \"abc\", 2);\r\n assertFalse(token.equals(otherToken));\r\n assertFalse(otherToken.equals(token));\r\n assertTrue(otherToken.equals(otherToken));\r\n \r\n token = new Token(TokenType.ID, \"z\", 1);\r\n otherToken = new Token(TokenType.ID, \"z\", 2);\r\n assertTrue(token.equals(otherToken));\r\n assertTrue(otherToken.equals(token));\r\n otherToken = new Token(TokenType.ID, \"za\", 2);\r\n assertFalse(token.equals(otherToken));\r\n assertFalse(otherToken.equals(token));\r\n assertTrue(otherToken.equals(otherToken));\r\n token = new Token(TokenType.ID, \"zabc\", 2);\r\n assertFalse(token.equals(otherToken));\r\n assertFalse(otherToken.equals(token));\r\n assertTrue(otherToken.equals(otherToken));\r\n\r\n otherToken = new Token(TokenType.STRING, \"zabc\", 2);\r\n assertFalse(token.equals(otherToken));\r\n assertFalse(otherToken.equals(token));\r\n\r\n }catch(ParserException e){\r\n System.err.println(\"In TokenTest::testEquals()\\n\" +\r\n \"the following error should not occur\\n\" +\r\n e.getMessage());\r\n };\r\n }",
"public boolean equals(Point other) {\n return this.x == other.getX() && this.y == other.getY();\n }",
"public static boolean equals(Point p1, Point p2) {\n final double EPSILON = 0.0001;\n return Math.abs(p1.x - p2.x) < EPSILON &&\n Math.abs(p1.y - p2.y) < EPSILON;\n }",
"public boolean equals(Piece p) {\n\t\tif(y != p.y || x != p.x || type != p.type || color != p.color || timesMoved != p.timesMoved) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean equals(ListNode one, ListNode two){\n\t \t\treturn one.val == two.val;\n\t \t}",
"@Override\n public boolean equivalent(ExampleProtocolConfiguration latest, ExampleProtocolConfiguration previous) {\n return latest.getStubData().equals(previous.getStubData());\n }",
"public boolean samePieceCheck(GameBoardVertex p){\n if (pieceAtVertex == null){\n if (p.getPiece() == null){\n return true;\n } else {\n return false;\n }\n } else {\n if (p.getPiece() == null) {\n return false;\n } else {\n return pieceAtVertex.equals(p.getPiece());\n }\n }\n }",
"public boolean equals(Object p) {\r\n return this.id == ((Point) p).id;\r\n }",
"public boolean sameVariable(lexeme a, lexeme b){\n\t\treturn a.stringToken.equals(b.stringToken);\n\t}",
"public boolean equivalent(Tradeoff trade)\r\n\t{\r\n\t\tboolean eq = false;\r\n\t\tif ((trade.getOnt1().toString().equals(ont1.toString())) &&\r\n\t\t\t\t(trade.getOnt2().toString().equals(ont2.toString())))\r\n\t\t\teq = true;\r\n\t\telse if ((trade.getOnt1().toString().equals(ont2.toString())) &&\r\n\t\t\t\t(trade.getOnt2().toString().equals(ont1.toString())))\r\n\t\t\teq = true;\r\n\t\treturn eq;\r\n\t}",
"public boolean isEqual(Edge e){\n if(v1.equals(e.v1) && v2.equals(e.v2)){\n return true;\n }\n else if(v1.equals(e.v2) && v2.equals(e.v1)){\n return true;\n }\n else{\n return false;\n }\n }",
"private boolean samePosition(ITarget t1, ITarget t2) {\n assert t1.getTag() == t2.getTag() : \"Programmer error; tags must match.\";\n switch (t1.getTag()) {\n case JPL_MINOR_BODY:\n case MPC_MINOR_PLANET:\n case NAMED:\n\n // SUPER SUPER SKETCHY\n // The .equals logic in NonSiderealTarget actually does what we want here, at\n // least according to the old implementation here. So we'll leave it for now.\n // This will be easier with the new model.\n return t1.equals(t2);\n\n case SIDEREAL:\n final HmsDegTarget hms1 = (HmsDegTarget) t1;\n final HmsDegTarget hms2 = (HmsDegTarget) t2;\n return hasSameCoordinates(hms1, hms2) &&\n hasSameProperMotion(hms1, hms2) &&\n hasSameTrackingDetails(hms1, hms2);\n\n default:\n throw new Error(\"Unpossible target tag: \" + t1.getTag());\n }\n }",
"@Override\n\t\tpublic boolean equals(Object p) {\n\t\t\tif (p instanceof Pair) {\n\t\t\t\tPair obj = (Pair)p;\n\t\t\t\treturn (this.sum == obj.sum && this.index == obj.index);\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}",
"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 boolean equals(PolyTerm pt) {\n\t\treturn this.exponent==pt.exponent&&this.coefficient.equals(pt);\n\t}",
"public boolean equals(Point other) {\n if (other == null) {\n return false;\n }\n return this.x == other.x && this.y == other.y;\n }",
"public static void main(String[] args) {\n\t\tPoint p = new Point();\n\t\tSystem.out.println(p.getClass());\n\t\tSystem.out.println(p.hashCode());\n\t\tSystem.out.println(p.toString());\n\t\tSystem.out.println(p);\n\t\tSystem.out.println(0x15db9742);\n\t\t\n\t\tPoint p2 = new Point();\n\t\tSystem.out.println(p2.getClass());\n\t\tSystem.out.println(p2.hashCode());\n\t\tSystem.out.println(p2.toString());\n\t\tSystem.out.println(p2);\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(p2.getClass().getName()+\" \"+ Integer.toHexString(p2.hashCode()));\n\t\t\n\t\tPoint p3 =new Point();\n\t\tif(p.hashCode() == p3.hashCode()) {\n\t\t\tSystem.out.println(\"same\");\n\t\t} else {\n\t\t\tSystem.out.println(\"diff\");\n\t\t}\n\t\t//\n\t\t//\n\t\tPoint p4;\n\t\tp4 = p;\n\t\tif(p.hashCode() == p4.hashCode()) {\n\t\t\tSystem.out.println(\"same\");\n\t\t} else {\n\t\t\tSystem.out.println(\"diff\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"static boolean areIdentical(Line l1, Line l2) {\n return areParallel(l1, l2) && (Math.abs(l1.c - l2.c) < EPS);\n }",
"private void checkIDPUniqueness(UserMultiID eppnKey, String otherIDP) throws Exception {\n User eppnUser = newUser();\n eppnUser.setUserMultiKey(eppnKey);\n getUserStore().save(eppnUser);\n eppnUser.setIdP(otherIDP);\n getUserStore().save(eppnUser);\n try {\n getDBSClient().getUser(eppnKey, otherIDP);\n assert true;\n } catch (Throwable t) {\n assert false : \"Error: multiple IDP values are supported.\";\n }\n }",
"private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }",
"public boolean areEquals(PolyAdapter one, Object obj) {\n if (one == obj) {\n return true;\n }\n if (one == null || obj == null || !(obj instanceof PolyAdapter)) {\n return false;\n }\n PolyAdapter other = (PolyAdapter) obj;\n return one.adaptedCode().equals(other.adaptedCode());\n }",
"@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}",
"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 }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n TFlowPointOperatePersonnel other = (TFlowPointOperatePersonnel) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getPointId() == null ? other.getPointId() == null : this.getPointId().equals(other.getPointId()))\n && (this.getPersonnelType() == null ? other.getPersonnelType() == null : this.getPersonnelType().equals(other.getPersonnelType()))\n && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))\n && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()));\n }",
"public boolean equivalent(Operation o) {\n return o.token == this.token && o.op == this.op;\n }",
"private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n\t\t if (provider1 == null) {\n\t\t return provider2 == null;\n\t\t }\n\t\t return provider1.equals(provider2);\n\t\t}",
"@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 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 boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"@Override\r\n\t\tpublic boolean isSameNode(Node other)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}",
"private boolean validateIdPIssuerName(IdentityProvider currentIdP, IdentityProvider newIdP, int tenantId,\n String tenantDomain)\n throws IdentityProviderManagementException {\n\n String newIdPIssuerName = null;\n IdentityProviderProperty[] identityProviderProperties = newIdP.getIdpProperties();\n if (!ArrayUtils.isEmpty(identityProviderProperties)) {\n for (IdentityProviderProperty prop : identityProviderProperties) {\n if (prop != null && IdentityApplicationConstants.IDP_ISSUER_NAME.equals(prop.getName())\n && StringUtils.isNotBlank(prop.getValue())) {\n\n newIdPIssuerName = prop.getValue();\n }\n }\n }\n\n String currentIdPIssuerName = null;\n identityProviderProperties = currentIdP.getIdpProperties();\n if (!ArrayUtils.isEmpty(identityProviderProperties)) {\n for (IdentityProviderProperty prop : identityProviderProperties) {\n if (prop != null && IdentityApplicationConstants.IDP_ISSUER_NAME.equals(prop.getName())\n && StringUtils.isNotBlank(prop.getValue())) {\n\n currentIdPIssuerName = prop.getValue();\n }\n }\n }\n\n if (StringUtils.isNotBlank(newIdPIssuerName) && !StringUtils.equals(newIdPIssuerName, currentIdPIssuerName)) {\n String idpWithIssuer = getIDPNameByMetadataProperty(null,\n IdentityApplicationConstants.IDP_ISSUER_NAME, newIdPIssuerName, tenantId, tenantDomain,\n false);\n if (StringUtils.isNotEmpty(idpWithIssuer)) {\n String msg = \"The provided IDP Issuer Name '\" + newIdPIssuerName + \"' has already been \" +\n \"registered with the IDP '\" + idpWithIssuer + \"'.\";\n throw new IdentityProviderManagementClientException(msg);\n }\n }\n\n return true;\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n if (provider1 == null) {\n return provider2 == null;\n }\n return provider1.equals(provider2);\n }",
"private boolean isSameProvider(String provider1, String provider2) {\n\t if (provider1 == null) {\n\t return provider2 == null;\n\t }\n\t return provider1.equals(provider2);\n\t}",
"public boolean isSame(MoveEdge other) {\n if (other == this) {\n return true;\n }\n return Objects.equals(in, other.in) && Objects.equals(out, other.out);\n }",
"@Override\r\n public boolean equals(INavMeshAtom atom) {\r\n if(atom.getClass() == OffMeshPoint.class) {\r\n OffMeshPoint op = (OffMeshPoint) atom;\r\n return (op.navpointId.getStringId().equals(this.navpointId.getStringId()));\r\n }\r\n else return false;\r\n }",
"@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tboolean equals = key1.equals(key2);\n\t\tSystem.out.println();\n\t\tAssert.assertTrue(equals);\n\t}",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }",
"public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }"
]
| [
"0.57264686",
"0.56729466",
"0.5545038",
"0.5539678",
"0.5513691",
"0.5488571",
"0.5479241",
"0.5431729",
"0.5420498",
"0.5368917",
"0.53401303",
"0.53313905",
"0.53191847",
"0.53156835",
"0.5293452",
"0.5292432",
"0.5292116",
"0.52677804",
"0.52521074",
"0.524301",
"0.5237191",
"0.5231155",
"0.52072406",
"0.518778",
"0.5180874",
"0.5175188",
"0.5158368",
"0.5140049",
"0.51288474",
"0.5128625",
"0.5119331",
"0.51127845",
"0.5109009",
"0.5095664",
"0.50946397",
"0.5087036",
"0.5064211",
"0.50595146",
"0.5047532",
"0.5047531",
"0.503817",
"0.5032535",
"0.5026868",
"0.50231624",
"0.5018023",
"0.5007193",
"0.50067735",
"0.50063425",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002884",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295",
"0.5002295"
]
| 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, 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\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, 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 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\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 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}",
"@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 }",
"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\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 public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\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 boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\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 boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.my_notes_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\n }"
]
| [
"0.72500116",
"0.7204146",
"0.71987385",
"0.7180757",
"0.71107906",
"0.7043322",
"0.7041613",
"0.7015376",
"0.7013112",
"0.6982869",
"0.69475657",
"0.6941377",
"0.6937569",
"0.69213736",
"0.69213736",
"0.6892679",
"0.6887231",
"0.6877873",
"0.68772626",
"0.68644464",
"0.68644464",
"0.68644464",
"0.68644464",
"0.6855815",
"0.68494046",
"0.68220186",
"0.68183845",
"0.68154365",
"0.6815009",
"0.6815009",
"0.68082577",
"0.6802161",
"0.68002385",
"0.67936224",
"0.67918605",
"0.679087",
"0.67849934",
"0.6760954",
"0.67599845",
"0.67507833",
"0.67461413",
"0.67461413",
"0.67431796",
"0.67413616",
"0.6728648",
"0.672732",
"0.67251813",
"0.67251813",
"0.67232496",
"0.67152804",
"0.67092025",
"0.67071015",
"0.6702423",
"0.6701286",
"0.66991764",
"0.66969806",
"0.66888016",
"0.66863585",
"0.6686101",
"0.6686101",
"0.66828436",
"0.6681769",
"0.6679519",
"0.6671908",
"0.66700244",
"0.6665301",
"0.66587126",
"0.66587126",
"0.66587126",
"0.6658098",
"0.66570866",
"0.66570866",
"0.66570866",
"0.665458",
"0.66533303",
"0.66528934",
"0.66513336",
"0.66495234",
"0.66490155",
"0.6648172",
"0.6648159",
"0.6647816",
"0.6647625",
"0.6645882",
"0.66453695",
"0.66441536",
"0.66413796",
"0.66374624",
"0.66360414",
"0.6635178",
"0.66346484",
"0.66346484",
"0.66346484",
"0.6632149",
"0.66308904",
"0.66287386",
"0.66283447",
"0.6627003",
"0.6624185",
"0.6621111",
"0.662078"
]
| 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
]
| [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577",
"0.734109",
"0.73295504",
"0.7327726",
"0.73259085",
"0.73188347",
"0.731648",
"0.73134047",
"0.7303978",
"0.7303978",
"0.7301588",
"0.7298084",
"0.72932935",
"0.7286338",
"0.7283324",
"0.72808945",
"0.72785115",
"0.72597474",
"0.72597474",
"0.72597474",
"0.725962",
"0.7259136",
"0.7249966",
"0.7224023",
"0.721937",
"0.7216621",
"0.72045326",
"0.7200649",
"0.71991026",
"0.71923256",
"0.71851367",
"0.7176769",
"0.7168457",
"0.71675026",
"0.7153402",
"0.71533287",
"0.71352696",
"0.71350807",
"0.71350807",
"0.7129153",
"0.7128639",
"0.7124181",
"0.7123387",
"0.7122983",
"0.71220255",
"0.711715",
"0.711715",
"0.711715",
"0.711715",
"0.7117043",
"0.71169263",
"0.7116624",
"0.71149373",
"0.71123946",
"0.7109806",
"0.7108778",
"0.710536",
"0.7098968",
"0.70981944",
"0.7095771",
"0.7093572",
"0.7093572",
"0.70862055",
"0.7082207",
"0.70808214",
"0.7080366",
"0.7073644",
"0.7068183",
"0.706161",
"0.7060019",
"0.70598614",
"0.7051272",
"0.70374316",
"0.70374316",
"0.7035865",
"0.70352185",
"0.70352185",
"0.7031749",
"0.703084",
"0.7029517",
"0.7018633"
]
| 0.0 | -1 |
Represents a read only version of the model. This is beneficial because the controller or view would not be able to change the model's internal state. They can only grab the necessary information. | public interface IReadOnlyAnimationModel {
/**
* Gets the map of shape id's to shapes.
*
* @return the LinkedHashMap of shapes.
*/
LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();
/**
* Gets the canvas dimension.
*
* @return the dimension of the canvas.
*/
Dimension getCanvasDimension();
/**
* Gets the left most x and top most y.
*
* @return the Point of the x and y coordinates.
*/
Point getTopXY();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isReadOnly() {\n\t\treturn false;\n\t}",
"public boolean getReadOnly() {\n return readOnly;\n }",
"public boolean isReadOnly() {\n\t\treturn false;\n\t}",
"public boolean isReadOnly() {\r\n return this.readOnly;\r\n }",
"public boolean isReadOnly();",
"public boolean isReadOnly();",
"public boolean isReadOnly();",
"public void makeReadOnly();",
"public boolean isReadOnly() {\n return readOnly;\n }",
"protected boolean isReadOnly()\n {\n return true;\n }",
"public abstract boolean isReadOnly();",
"public boolean isReadOnly() {\r\n\t\treturn readOnly;\r\n\t}",
"public void makeReadOnly()\n {\n m_readOnly = true;\n }",
"public void makeReadOnly()\n {\n m_readOnly = true;\n }",
"@JsonProperty(\"readOnly\")\n public Boolean getReadOnly() {\n return readOnly;\n }",
"public final String getReadOnlyAttribute() {\n return getAttributeValue(\"readonly\");\n }",
"protected final boolean isReadOnly()\n {\n return m_readOnly;\n }",
"public Object getReadOnlyObjectProperty() {\r\n return readOnlyObjectProperty;\r\n }",
"@Override\n\tpublic void setReadOnly(boolean readonly) {\n\t\t\n\t}",
"public final boolean isReadOnly() {\n\t\treturn m_info.isReadOnly();\n\t}",
"public Value setReadOnly() {\n checkNotUnknown();\n if (isReadOnly())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_READONLY_ANY;\n r.flags |= ATTR_READONLY;\n return canonicalize(r);\n }",
"@JSProperty\n boolean isReadOnly();",
"@XmlAttribute\n public Boolean isReadOnly() {\n return readOnly;\n }",
"@Override\n\tpublic void setReadOnly(boolean readOnly) {\n\t}",
"public boolean isReadonly() {\n\t\treturn readonly;\n\t}",
"public String getReadonlyFlag() {\n return readonlyFlag;\n }",
"@Override\n public void setReadOnly(boolean readonly) {\n // do nothing\n }",
"public interface Model {\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyAddressBook newData);\n\n /** Returns the AddressBook */\n ReadOnlyAddressBook getAddressBook();\n\n /** Deletes the given person. */\n void deletePerson(ReadOnlyPerson target) throws UniquePersonList.PersonNotFoundException;\n\n /** Adds the given person */\n void addPerson(Person person) throws UniquePersonList.DuplicatePersonException;\n\n /** Returns the filtered person list as an {@code UnmodifiableObservableList<ReadOnlyPerson>} */\n UnmodifiableObservableList<ReadOnlyPerson> getFilteredPersonList();\n\n /** Updates the filter of the filtered person list to show all persons */\n void updateFilteredListToShowAll();\n\n /** Updates the filter of the filtered person list to filter by the given keywords*/\n void updateFilteredPersonList(Set<String> keywords);\n\n}",
"public boolean isReadOnly() {\n return this.getUpdateCount() == 0;\n }",
"public boolean canReadWriteOnMyLatestView()\n {\n \t \treturn getAccessBit(2);\n }",
"public interface ReadOnlyWhatNow {\n\n UniqueTagList getUniqueTagList();\n\n UniqueTaskList getUniqueTaskList();\n\n /**\n * Returns an unmodifiable view of tasks list\n */\n List<ReadOnlyTask> getTaskList();\n\n /**\n * Returns an unmodifiable view of tags list\n */\n List<Tag> getTagList();\n\n}",
"public void setReadOnly(boolean isReadOnly);",
"@DISPID(9)\n\t// = 0x9. The runtime will prefer the VTID if present\n\t@VTID(18)\n\tboolean readOnly();",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"boolean isReadOnly();",
"boolean isReadOnly();",
"public boolean isReadOnly() {\n return _readOnly != null && _readOnly;\n }",
"public boolean isReadOnly() {\n return type == TransactionType.READ_ONLY;\n }",
"public boolean isReadOnly() {\n checkNotUnknown();\n return (flags & ATTR_READONLY_ANY) == ATTR_READONLY;\n }",
"public DBMaker readonly() {\n readonly = true;\n return this;\n }",
"public PersonInfo readOnly(final Boolean readOnly) {\n this.readOnly = readOnly;\n return this;\n }",
"public Value setNotReadOnly() {\n checkNotUnknown();\n if (isNotReadOnly())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_READONLY_ANY;\n r.flags |= ATTR_NOTREADONLY;\n return canonicalize(r);\n }",
"public boolean isReadOnly()\n {\n return SystemProps.IsReadOnlyProperty(this.getPropertyID());\n }",
"public void setReadOnly(Boolean readOnly) {\n this.readOnly = readOnly;\n }",
"public boolean isMaybeReadOnly() {\n checkNotUnknown();\n return (flags & ATTR_READONLY) != 0;\n }",
"boolean readOnly();",
"boolean readOnly();",
"public String getReadWriteAttribute();",
"public Object getReadWriteObjectProperty() {\r\n return readWriteObjectProperty;\r\n }",
"public void setReadOnly(boolean readOnly) {\n this.readOnly = readOnly;\n }",
"public void setReadOnly(boolean readOnly) {\n this.readOnly = readOnly;\n }",
"public interface DynamicReadOnly {\n\n default ReadOnly getReadOnly(final String fieldName) {\n return ReadOnly.NOT_SET;\n }\n\n void setAllowOnlyVisualChange(final boolean allowOnlyVisualChange);\n\n boolean isAllowOnlyVisualChange();\n\n enum ReadOnly {\n /**\n * isAllowOnlyVisualChange() is false.\n */\n NOT_SET,\n\n /**\n * isAllowOnlyVisualChange() is true and the property is readonly.\n */\n TRUE,\n\n /**\n * isAllowOnlyVisualChange() is true and the property is NOT readonly.\n */\n FALSE\n }\n}",
"public interface Model {\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyTaskList newData);\n\n /** Returns the TaskList */\n ReadOnlyTaskList getTaskList();\n\n /** Deletes the given person. */\n void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;\n\n /** Adds the given person */\n void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;\n\n /**\n * Updates the person located at {@code filteredTaskListIndex} with {@code editedTask}.\n *\n * @throws DuplicateTaskException if updating the person's details causes the person to be equivalent to\n * another existing person in the list.\n * @throws IndexOutOfBoundsException if {@code filteredTaskListIndex} < 0 or >= the size of the filtered list.\n */\n void updateTask(int filteredTaskListIndex, ReadOnlyTask editedTask)\n throws UniqueTaskList.DuplicateTaskException;\n\n /** Returns the filtered person list as an {@code UnmodifiableObservableList<ReadOnlyTask>} */\n UnmodifiableObservableList<ReadOnlyTask> getFilteredTaskList();\n\n /** Updates the filter of the filtered person list to show all persons */\n void updateFilteredListToShowAll();\n\n /** Updates the filter of the filtered person list to filter by the given keywords*/\n void updateFilteredTaskList(Set<String> keywords);\n\n}",
"public Value joinNotReadOnly() {\n checkNotUnknown();\n if (isMaybeNotReadOnly())\n return this;\n Value r = new Value(this);\n r.flags |= ATTR_NOTREADONLY;\n return canonicalize(r);\n }",
"public ModelAccessException() {\n\t\tsuper();\n\n\t}",
"public boolean isNotReadOnly() {\n checkNotUnknown();\n return (flags & ATTR_READONLY_ANY) == ATTR_NOTREADONLY;\n }",
"public void setReadonly(String readonly) {\n this.readonly = readonly;\n }",
"public BooleanProperty modifiableProperty() {\n return modifiable;\n }",
"public void setHiddenOrReadOnly() {\n if(getField_type().toLowerCase().matches(\"view|vfunction\")) {\n if(!getType().toLowerCase().matches(\"hidden\")){\n setSaveRequired(\"read\");\n }\n }\n }",
"public void setReadonly(boolean v) {\n\t\treadonly = v;\n\t}",
"public ModelElements getModelAccess() {\n\t\treturn pModel;\n\t}",
"public Value restrictToNonAttributes() {\n Value r = new Value(this);\n r.flags &= ~(PROPERTYDATA | ABSENT | PRESENT_DATA | PRESENT_ACCESSOR);\n return canonicalize(r);\n }",
"public boolean isMaybeNotReadOnly() {\n checkNotUnknown();\n return (flags & ATTR_NOTREADONLY) != 0;\n }",
"@Override\n public boolean isReadOnly() {\n return controller.getAttributeReadOnlyStatus(getBinding()) != null || cellLocation.getRowIndexes() != null;\n }",
"public ModelSnapshot getModel() {\n return model;\n }",
"public interface ReadOnlyAttractionList {\n\n /**\n * Returns an unmodifiable view of the attraction list.\n * This list will not contain any duplicate attractions.\n */\n ObservableList<Attraction> getAttractionList();\n\n}",
"@Override\n public boolean hasReadAccess() {\n return true;\n }",
"public Long getIsRevisable() {\n return isRevisable;\n }",
"public interface ReadOnlyTaskList {\n\n\tUniqueTaskList getUniqueTaskList();\n\n\t/**\n\t * Returns an unmodifiable view of tasks list\n\t */\n\tList<ReadOnlyTask> getTaskList();\n}",
"public PersistableBusinessObject manageReadOnly(PersistableBusinessObject bo) {\r\n\t\treturn bo;\r\n\t}",
"@Override\n\tpublic boolean isReadWrite() {\n\t\treturn true;\n\t}",
"public boolean hasReadOnly() {\n checkNotUnknown();\n return (flags & ATTR_READONLY_ANY) != 0;\n }",
"public Value restrictToNotModified() {\n if (!isMaybeModified())\n return this;\n Value r = new Value(this);\n r.flags &= ~MODIFIED;\n return canonicalize(r);\n }",
"@Override\n public boolean isMutable() {\n return true;\n }",
"public boolean restorable() {\n return restorable;\n }",
"public interface Model {\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyTaskManager newData);\n\n /** Returns the TaskManager */\n ReadOnlyTaskManager getTaskManager();\n\n /** Adds the given floating task */\n void addTask(Task task);\n \n /** Deletes the given floating task. */\n void deleteUndoneTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;\n\n /** Add the given floating tasks */\n void addTasks(List<Task> tasks);\n \n /** Archives the task by adding it into DoneTaskList */\n void addDoneTask(Task task);\n\n /** Removes the task permanently from the archive DoneTaskList **/\n void deleteDoneTask(ReadOnlyTask floatingTask) throws TaskNotFoundException;\n \n /** Archives the tasks by adding them into DoneTaskList */\n void addDoneTasks(List<Task> task);\n \n /** Returns the filtered undone task list as an {@code UnmodifiableObservableList<ReadOnlyPerson>} */\n UnmodifiableObservableList<ReadOnlyTask> getFilteredUndoneTaskList();\n \n /** Returns the filtered done task list as an {@code UnmodifiableObservableList<ReadOnlyPerson>} */\n UnmodifiableObservableList<ReadOnlyTask> getFilteredDoneTaskList();\n\n /** Updates the filter of the filtered task lists to show all tasks */\n void updateFilteredListsToShowAll();\n\n /** Updates the filter of the filtered task list to filter by the given keywords*/\n void updateFilteredUndoneTaskListNamePred(Set<String> keywords);\n\n /** Updates the filter of the filtered done task list to filter by the given keywords*/\n void updateFilteredDoneTaskListNamePred(Set<String> keywords);\n \n /** Returns true is current list is done task list, false if current list is undone task list*/\n Boolean isCurrentListDoneList();\n \n /** Sets current list to be done list*/\n public void setCurrentListToBeDoneList();\n \n /** Sets current list to be undone list*/\n public void setCurrentListToBeUndoneList();\n \n /** Edits the parameters of the given floating task*/\n\tvoid editTask(ReadOnlyTask taskToEdit, Name taskName, Date startDate, Date endDate, Priority priority,\n\t\t\tRecurrenceRate recurrenceRate);\n\t\n /** Clears existing backing model of the done task data and replaces with the provided new data. */\n void resetDoneData(ReadOnlyTaskManager newData);\n \n /** Clears existing backing model if the undone task data and replaces with the provided new data. */\n void resetUndoneData(ReadOnlyTaskManager newData);\n \n void setTaskManagerUndoneList(ObservableList<Task> list);\n\n void setTaskManagerDoneList(ObservableList<Task> list);\n \n void clearTaskManagerUndoneList();\n \n void clearTaskManagerDoneList();\n \n ObservableList<Task> getTaskManagerUndoneList();\n \n ObservableList<Task> getTaskManagerDoneList();\n\n void updateFilteredUndoneTaskListDatePred(String keyword) throws IllegalValueException;\n\n void updateFilteredDoneTaskListDatePred(String keyword) throws IllegalValueException;\n\n\n\n\n\n}",
"public interface Model {\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n /**\n * Returns the user prefs' address book file path.\n */\n Path getVendorManagerFilePath();\n\n /**\n * Sets the user prefs' menu manager file path.\n */\n void setVendorManagerFilePath(Path vendorManagerFilePath);\n\n /**\n * Replaces menu manager data with the data in {@code menuManager}.\n */\n\n void setVendorManager(ReadOnlyVendorManager vendorManager);\n\n /**\n * Returns the VendorManager\n */\n ReadOnlyVendorManager getVendorManager();\n\n /**\n * Returns true if a vendor with the same identity as {@code vendor} exists in the address book.\n */\n boolean hasVendor(Vendor vendor);\n\n /**\n * Selects the vendor with index {@code vendorIndex} .\n * {@code vendorIndex} must be a valid index in the model.\n */\n void selectVendor(int vendorIndex);\n\n ObservableList<Vendor> getObservableVendorList();\n\n /**\n * Replaces address book data with the data in {@code menuManager}.\n */\n void setMenuManager(ReadOnlyMenuManager menuManager, int index);\n\n /**\n * Returns the MenuManager at the ith index\n */\n ReadOnlyMenuManager getMenuManager(int index);\n\n void sortMenuItemBy(String sortedBy, boolean ascending, boolean toggle);\n\n void showDefaultMenu();\n /**\n * Replaces OrderManager data with the data in {@code orderItems}.\n */\n void setOrder(List<OrderItem> orderItems);\n\n /**\n * Replaces OrderManager data with the data in {@code orderManager}.\n */\n void setOrderManager(ReadOnlyOrderManager orderManager);\n\n /**\n * Returns the MenuManager at the ith index\n */\n ReadOnlyOrderManager getOrderManager();\n\n /**\n * Returns true if an orderItem with the same identity as {@code orderItem} exists in the address book.\n */\n boolean hasOrderItem(OrderItem orderItem);\n\n /**\n * Deletes the given orderItem.\n * The orderItem must exist in the order manager.\n */\n void removeOrderItem(OrderItem target);\n\n /**\n * Adds the given orderItem.\n * {@code orderItem} if orderItem exists in order manageradd to the current quantity.\n * @throws CommandException if after adding, there is more than 100 of the same order item\n */\n void addOrderItem(OrderItem orderItem) throws CommandException;\n\n /**\n * Returns an unmodifiable view of the filtered menu item list at the corresponding index\n */\n ObservableList<MenuItem> getFilteredMenuItemList();\n\n int getFilteredMenuItemListSize();\n\n /**\n * Clears the order.\n */\n void clearOrder();\n\n /**\n * Clears the orderHistory.\n */\n void resetOrder();\n\n /**\n * Updates the filter of the filtered menu item list at the corresponding index to filter by the given\n * {@code predicate}.\n *\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredMenuItemList(Predicate<MenuItem> predicate);\n\n /**\n * Updates the filter of the filtered menu item list at the corresponding index to filter by the given\n * {@code comparator}.\n * Only used for test cases.\n * @throws NullPointerException if {@code comparator} is null.\n */\n void updateFilteredMenuItemList(Comparator<MenuItem> comparator, boolean isSortedAsc);\n\n\n /**\n * Returns an unmodifiable view of the filtered orderItem list at the corresponding index\n */\n ObservableList<OrderItem> getObservableOrderItemList();\n\n int getOrderSize();\n\n int getVendorIndex();\n\n int getOrderHistorySize();\n\n int getOrderItemQuantity(int index);\n\n void undoOrder();\n\n boolean isSelected();\n\n void tagOrderItem(OrderItem orderItem, Tag tag);\n\n void untagOrderItem(OrderItem orderItem);\n}",
"public void setReadonly(boolean readonly) {\n\t\tthis.readonly = readonly;\n\t}",
"@Override\r\n\t\tpublic boolean isReadOnly() throws SQLException {\n\t\t\treturn false;\r\n\t\t}",
"public Model getModel () { return _model; }",
"public interface Model {\n /** {@code Predicate} that always evaluate to true */\n Predicate<ReadOnlyPerson> PREDICATE_SHOW_ALL_PERSONS = unused -> true;\n Predicate<ReadOnlyEvent> PREDICATE_SHOW_ALL_EVENTS = unused -> true;\n\n\n //@@author low5545\n /** Adds extra data to the existing model */\n void addData(ReadOnlyAddressBook newData);\n //@@author\n\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyAddressBook newData);\n\n /** Returns the AddressBook */\n ReadOnlyAddressBook getAddressBook();\n\n //=========== Model support for property component =============================================================\n\n //@@author yunpengn\n /** Adds a new customize property */\n void addProperty(String shortName, String fullName, String message, String regex)\n throws DuplicatePropertyException, PatternSyntaxException;\n //@@author\n\n //=========== Model support for contact component =============================================================\n\n /** Adds the given person */\n void addPerson(ReadOnlyPerson person) throws DuplicatePersonException;\n\n /** Replaces the given person {@code target} with {@code editedPerson} */\n void updatePerson(ReadOnlyPerson target, ReadOnlyPerson editedPerson)\n throws DuplicatePersonException, PersonNotFoundException;\n\n /** Deletes the given person. */\n void deletePerson(ReadOnlyPerson target) throws PersonNotFoundException;\n\n /** Adds or updates the avatar of the selected person. */\n void setPersonAvatar(ReadOnlyPerson target, Avatar avatar);\n\n //@@author dennaloh\n /** Gets URL for google maps. */\n String getGMapUrl(ReadOnlyPerson target);\n\n /** Gets URL to search on facebook. */\n String getFbUrl (ReadOnlyPerson target);\n\n /** Opens URL in default browser. */\n void openUrl (String url);\n //@@author\n\n //=========== Model support for tag component =============================================================\n\n /** Removes the specific tag (from all persons with that tag) */\n void removeTag(Tag tags) throws DuplicatePersonException, PersonNotFoundException;\n\n /** Checks whether there exists a tag (with the same tagName) */\n boolean hasTag(Tag tag);\n\n //@@author yunpengn\n /** Changes the color of an existing tag (through TagColorManager) */\n void setTagColor(Tag tag, String color);\n\n //@@author\n\n\n\n //@@author junyango\n //=========== Model support for activity component =============================================================\n\n /** Adds an event */\n void addEvent(ReadOnlyEvent event) throws DuplicateEventException;\n\n /** Updates the given event */\n void updateEvent(ReadOnlyEvent target, ReadOnlyEvent editedEvent)\n throws DuplicateEventException, EventNotFoundException;\n /** Deletes the given event */\n void deleteEvent(ReadOnlyEvent target) throws EventNotFoundException;\n\n\n\n //@@author\n\n //@@author\n\n //=========== Filtered Person/Activity List support =============================================================\n\n /** Returns an unmodifiable view of the filtered person list */\n ObservableList<ReadOnlyPerson> getFilteredPersonList();\n\n /** Returns an unmodifiable view of the filtered event list */\n ObservableList<ReadOnlyEvent> getFilteredEventList();\n\n /** Updates the filter of the filtered person list to filter by the given {@code predicate}. */\n void updateFilteredPersonList(Predicate<ReadOnlyPerson> predicate);\n\n /** Updates the filter of the filtered event list to filter by the given {@code predicate}. */\n void updateFilteredEventsList(Predicate<ReadOnlyEvent> predicate);\n\n}",
"public XodusKVStore readOnlySnapshot() {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusKVStore(TransactionType.READ_ONLY, this.tx.getReadonlySnapshot(), this.store);\n }",
"ModelData getModel();",
"public boolean isModifiable() {\n return modifiable.get();\n }",
"public boolean isWriteable();",
"public void setReadOnly(boolean readOnly) {\n _readOnly = (readOnly) ? Boolean.TRUE : Boolean.FALSE;\n }",
"@Override\n\tpublic boolean getCanWrite()\n\t{\n\t\treturn false;\n\t}",
"@JsonIgnore\n @Override\n public Model getModel() {\n return this.model;\n }",
"public interface OwnedModel {\n\n\t/**\n\t * Returns the owner id.\n\t * \n\t * @return {@link String}. Can be {@code null}.\n\t */\n\tpublic String getOwnerId();\n\n}",
"private Model() {\n lists.put(ItemType.DEVELOPER, new ItemList());\n lists.put(ItemType.PROJECT, new ItemList());\n lists.put(ItemType.STORY, new ItemList());\n lists.put(ItemType.STORY_DEVELOPER, new ItemList());\n }",
"public synchronized ISegmentReader getReadOnlyClone() throws IOException {\n\t\tif (mReader == null) {\n\t\t\tgetReader().decreaseRef();\n\t\t\tassert mReader != null;\n\t\t}\n\t\tmShared = true;\n\t\tif (mLiveDocs != null) {\n\t\t\treturn mWriter.getContext().newSegmentReader(mReader, mLiveDocs, \n\t\t\t\t\tmInfo.getSegmentInfo().getDocCount() - mInfo.getDelCount() - mPendingDeleteCount);\n\t\t} else {\n\t\t\tassert mReader.getLiveDocs() == mLiveDocs;\n\t\t\tmReader.increaseRef();\n\t\t\treturn mReader;\n\t\t}\n\t}",
"@Override\n public String getStudyAccess() throws WdkModelException, WdkUserException {\n return \"public\";\n }",
"public interface Model {\n\n public ModelData getModelData();\n\n public void loadUsers();\n\n public void loadDeletedUsers();\n\n public void loadUserById(long userId);\n\n public void deleteUserById(long l);\n\n void changeUserData(String name, long id, int level);\n}",
"public ImmutableRetrieve() {\n super();\n }",
"public static Matrix4rad newReadOnly() {\r\n\t\treturn (new Matrix4rad(true));\r\n\t}",
"protected Document createDefaultModel() {\n return new PlainDocument();\n }",
"@ApiModelProperty(required = true, value = \"editable flag; true if user can modify payment order\")\n public Boolean getEditableByUser() {\n return editableByUser;\n }",
"public interface Model {\n /** {@code Predicate} that always evaluate to true */\n Predicate<Patient> PREDICATE_SHOW_ALL_PATIENTS = unused -> true;\n Predicate<Doctor> PREDICATE_SHOW_ALL_DOCTORS = unused -> true;\n Predicate<Appointment> PREDICATE_SHOW_ALL_APPOINTMENTS = unused -> true;\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n //=========== PatientRecords ================================================================================\n /**\n * Returns the user prefs' PatientRecords file path.\n */\n Path getPatientRecordsFilePath();\n\n /**\n * Sets the user prefs' PatientRecords file path.\n */\n void setPatientRecordsFilePath(Path patientRecordsFilePath);\n\n /**\n * Replaces PatientRecords data with the data in {@code patientRecords}.\n */\n void setPatientRecords(ReadOnlyAddressBook<Patient> patientRecords);\n\n /** Returns the PatientRecords */\n ReadOnlyAddressBook<Patient> getPatientRecords();\n\n /**\n * Returns true if model contains a conflicting UUID.\n * (which is not likely to happen, but just in case)\n */\n boolean hasConflictingUuid(UUID uuid);\n\n /**\n * Returns true if a person with the same identity as {@code person} exists in the address book.\n */\n boolean hasPatient(Patient patient);\n\n /**\n * Deletes the given patient.\n * The person must exist in the PatientRecords.\n */\n void deletePatient(Patient target);\n\n /**\n * Adds the given patient.\n * {@code person} must not already exist in the PatientRecords.\n */\n void addPatient(Patient patient);\n\n /**\n * Replaces the given Patient {@code target} with {@code editedPatient}.\n * {@code target} must exist in the PatientRecords.\n * The patient identity of {@code editedPatient} must not be the same as\n * another existing patient in the PatientRecords.\n */\n void setPatient(Patient target, Patient editedPatient);\n\n /** Returns an unmodifiable view of the filtered patient list */\n ObservableList<Patient> getFilteredPatientList();\n\n /**\n * Updates the filter of the filtered patient list to filter by the given {@code predicate}.\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredPatientList(Predicate<? super Patient> predicate);\n\n //=========== DoctorRecords ================================================================================\n /**\n * Returns the user prefs' DoctorRecords file path.\n */\n Path getDoctorRecordsFilePath();\n\n /**\n * Sets the user prefs' DoctorRecords file path.\n */\n void setDoctorRecordsFilePath(Path doctorRecordsFilePath);\n\n /**\n * Replaces DoctorRecords data with the data in {@code doctoRecords}.\n */\n void setDoctorRecords(ReadOnlyAddressBook<Doctor> doctorRecords);\n\n /** Returns the AddressBook */\n ReadOnlyAddressBook<Doctor> getDoctorRecords();\n\n /**\n * Returns true if a Doctor with the same identity as {@code doctor} exists in the DoctorRecords.\n */\n boolean hasDoctor(Doctor doctor);\n\n /**\n * Deletes the given doctor.\n * The person must exist in the DoctorRecords.\n */\n void deleteDoctor(Doctor target);\n\n /**\n * Adds the given doctor.\n * {@code doctor} must not already exist in the DoctorRecords.\n */\n void addDoctor(Doctor doctor);\n\n /**\n * Replaces the given person {@code target} with {@code editedDoctor}.\n * {@code target} must exist in the DoctorRecords.\n * The doctor identity of {@code editedDoctor} must not be the same as another existing doctor in the DoctorRecords.\n */\n void setDoctor(Doctor target, Doctor editedDoctor);\n\n /** Returns an unmodifiable view of the filtered doctor list */\n ObservableList<Doctor> getFilteredDoctorList();\n\n /**\n * Updates the filter of the filtered doctor list to filter by the given {@code predicate}.\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredDoctorList(Predicate<? super Doctor> predicate);\n\n //=========== AppointmentSchedule ========================================================================\n /**\n * Returns the user prefs' appointment schedule file path.\n */\n Path getAppointmentScheduleFilePath();\n\n /**\n * Sets the user prefs' appointment schedule file path.\n */\n void setAppointmentScheduleFilePath(Path appointmentScheduleFilePath);\n\n /**\n * Replaces appointment schedule book data with the data in {@code appointmentSchedule}.\n */\n void setAppointmentSchedule(ReadOnlyAppointmentSchedule appointmentSchedule);\n\n /** Returns the AppointmentSchedule */\n ReadOnlyAppointmentSchedule getAppointmentSchedule();\n\n /**\n * Returns true if patient has existing appointments in the appointment schedule.\n */\n boolean hasPatientInAppointmentSchedule(Patient patient);\n\n /**\n * Returns true if doctor has existing appointments in the appointment schedule.\n */\n boolean hasDoctorInAppointmentSchedule(Doctor doctor);\n\n /**\n * Returns true if an appointment that conflicts with {@code appointment} exists in the appointment schedule.\n */\n boolean hasConflictingAppointment(Appointment appointment);\n\n /**\n * Returns true if an appointment that conflicts with {@code appointment}\n * exists in the appointment schedule excluding the target.\n */\n boolean hasConflictingAppointmentExcludingTarget(Appointment target, Appointment appointment);\n\n\n /**\n * Deletes the given appointment {@code target}.\n * The appointment must exist in the appointment schedule.\n */\n void deleteAppointment(Appointment target);\n\n /**\n * Deletes all appointments associated with the input {@code patient} from the appointment schedule.\n */\n void deletePatientAppointments(UUID patientUuid);\n\n /**\n * Deletes all appointments associated with the input {@code doctor} from the appointment schedule.\n */\n void deleteDoctorAppointments(UUID doctorUuid);\n\n /**\n * Adds the given appointment.\n * {@code appointment} must not be in conflict with existing appointments in the appointment schedule.\n */\n void addAppointment(Appointment appointment);\n\n /**\n * Replaces the given appointment {@code target} with {@code editedAppointment}.\n * {@code target} must exist in the appointment schedule.\n * The {@code editedAppointment} must not be in conflict with another appointment in the appointment schedule\n */\n void setAppointment(Appointment target, Appointment editedAppointment);\n\n /** Returns an unmodifiable view of the filtered appointment list */\n ObservableList<Appointment> getFilteredAppointmentList();\n\n /**\n * Updates the filter of the filtered appointment list to filter by the given {@code predicate}.\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredAppointmentList(Predicate<Appointment> predicate);\n}",
"public boolean isReadOnly(String label)\n {\n return true;\n }",
"com.google.protobuf.ByteString getModelBytes();",
"@Override\n public boolean isMutable()\n {\n return true;\n }"
]
| [
"0.67000085",
"0.66270816",
"0.6602054",
"0.65524584",
"0.6529056",
"0.6529056",
"0.6529056",
"0.6485006",
"0.64183325",
"0.63712204",
"0.6370688",
"0.63486075",
"0.6339863",
"0.6339863",
"0.6305801",
"0.6304751",
"0.62849224",
"0.627126",
"0.6265292",
"0.6255708",
"0.62111545",
"0.6182719",
"0.61611503",
"0.6140952",
"0.61236215",
"0.6105449",
"0.60545266",
"0.6052452",
"0.6041191",
"0.60384005",
"0.5990107",
"0.59866726",
"0.59828025",
"0.59718263",
"0.5964021",
"0.5964021",
"0.594909",
"0.5943004",
"0.5921167",
"0.59062576",
"0.5905879",
"0.58965474",
"0.5891816",
"0.5884982",
"0.5861671",
"0.58600956",
"0.58600956",
"0.58583444",
"0.57995135",
"0.5794823",
"0.5794823",
"0.5684733",
"0.5675506",
"0.56680363",
"0.5640164",
"0.56109834",
"0.55956197",
"0.5576566",
"0.5571823",
"0.55526334",
"0.5513798",
"0.54945356",
"0.5490752",
"0.5481683",
"0.54777896",
"0.54748917",
"0.54643106",
"0.54407054",
"0.5400037",
"0.53985065",
"0.5396908",
"0.5396328",
"0.5390466",
"0.5390082",
"0.538528",
"0.53713155",
"0.5364629",
"0.53629464",
"0.53478277",
"0.533765",
"0.53223264",
"0.53169227",
"0.5311577",
"0.5310918",
"0.5301347",
"0.5298388",
"0.5290011",
"0.526758",
"0.52577007",
"0.5252954",
"0.5246005",
"0.5238231",
"0.5229157",
"0.52266014",
"0.5215471",
"0.5209389",
"0.5202326",
"0.519792",
"0.5184037",
"0.5183701",
"0.5183237"
]
| 0.0 | -1 |
Gets the map of shape id's to shapes. | LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<Integer, ArrayList<LatLng>> shapeIdList () {\r\n Map<Integer, ArrayList<LatLng>> newList = new HashMap<>();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id from shapes\", null);\r\n getData.moveToFirst();\r\n while (getData.moveToNext()) {\r\n newList.put(getData.getInt(0), null);\r\n }\r\n return newList;\r\n }",
"Map<IShape, List<IEvent>> getShapeMap();",
"public Map<Integer, ArrayList<LatLng>> shapeCoordinates (Map<Integer, ArrayList<LatLng>> shapeIdList) {\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id, shape_pt_lat, shape_pt_lon from shapes\", null);\r\n int count = 1;\r\n // Make sure start off the first position of the table\r\n getData.moveToFirst();\r\n // Store the index of end of the table\r\n int end = getData.getCount();\r\n // Loop through all the key\r\n for(Integer key : shapeIdList.keySet()) {\r\n // Create a new Arraylist\r\n ArrayList<LatLng> shapeCoordinates = new ArrayList<LatLng>();\r\n while (key == getData.getInt(0)) {\r\n // Add coordinate into the list\r\n shapeCoordinates.add(new LatLng(getData.getDouble(1), getData.getDouble(2)));\r\n count++;\r\n if (count == end) {\r\n break;\r\n }\r\n // Move to next table\r\n getData.moveToPosition(count);\r\n }\r\n // store the key and list into the HashMap\r\n shapeIdList.put(key, shapeCoordinates);\r\n }\r\n\r\n return shapeIdList;\r\n }",
"int getShapeId();",
"@Override\n\tpublic int getShapeId()\n\t{\n\t\treturn shapeId;\n\t}",
"public List<Shape> getDrawShapes();",
"public Object getShapes() {\r\n if (shapes != null) {\r\n return shapes;\r\n }\r\n ValueBinding vb = getValueBinding(\"shapes\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }",
"public static List<Shape> getListOfShapes() {\n\t\treturn listOfShapes;\n\t}",
"@Override\n\tpublic Vector<Shape> getShapes() {\n\t\treturn this.shapes;\n\t}",
"public abstract ArrayList<Shape> getShapes();",
"public Set<Shape> allShapes() { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n else return myrc.all_shapes; \n }",
"public Shape[] getMarkerShapes()\n{\n if(_markerShapes!=null) return _markerShapes;\n Shape shp0 = new Ellipse(0,0,8,8);\n Shape shp1 = new Polygon(4,0,8,4,4,8,0,4);\n Shape shp2 = new Rect(0,0,8,8);\n Shape shp3 = new Polygon(4,0,8,8,0,8);\n Shape shp4 = new Polygon(0,0,8,0,4,8);\n return _markerShapes = new Shape[] { shp0, shp1, shp2, shp3, shp4 };\n}",
"static List<Shape> createShapeArray(){\n return Arrays.asList(new Rectangle(new Point(0,0),new Point(0,4),new Point(2,4), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,2),new Point(2,2), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,3),new Point(2,3), new Point(2,0)),\n new Circle(new Point(0,0),new Point(0,1)),\n new Circle(new Point(1,0),new Point(1,4)),\n new Circle(new Point(1,0),new Point(0,2)),\n new Triangle(new Point(0,0),new Point(0,2),new Point(2,0)),\n new Triangle(new Point(0,0),new Point(0,4),new Point(4,0)),\n new Triangle(new Point(0,0),new Point(0,1),new Point(1,0)));\n\n }",
"@Override\r\n\tpublic Vector getShapes() {\r\n\t\treturn shapes;\r\n\t}",
"public int[] getShape() {\n return shape;\n }",
"public Set<Bundle> shapeBundles(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Bundle>();\n if (myrc.line_to_bundles.containsKey(shape)) return myrc.line_to_bundles.get(shape);\n else if (myrc.geom_to_bundles.containsKey(shape)) return myrc.geom_to_bundles.get(shape);\n else return new HashSet<Bundle>(); }",
"public ArrayList findShapes() {\n ArrayList shapes = new ArrayList<>();\n\n // open database connection\n DatabaseConnection connection = new DatabaseConnection();\n\n if (connection.openConnection()) {\n\n // if a connection was successfully setup, execute the SELECT statement.\n ResultSet resultset = connection.executeSQLSelectStatement(\n \"SELECT *\\n\" +\n \"FROM shape_objects\\n\" +\n \"JOIN shape ON shape_objects.shape = shape.shape_id\\n\");\n\n // check if result is not null\n if (resultset != null) {\n try {\n while (resultset.next()) {\n\n int idFromDb = resultset.getInt(\"id\");\n double heightFromDb = resultset.getDouble(\"height\");\n double radiusFromDb = resultset.getDouble(\"radius\");\n double lengthFromDb = resultset.getDouble(\"width\");\n double widthFromDb = resultset.getDouble(\"length\");\n String shapeNameFromDb = resultset.getString(\"name\");\n\n\n if (Objects.equals(shapeNameFromDb, \"cilinder\")) {\n Cilinder newCilinder = new Cilinder(idFromDb, shapeNameFromDb, heightFromDb, radiusFromDb);\n shapes.add(newCilinder);\n }\n\n if (Objects.equals(shapeNameFromDb, \"sphere\")) {\n Sphere newSphere = new Sphere(idFromDb, shapeNameFromDb, radiusFromDb);\n shapes.add(newSphere);\n }\n\n if (Objects.equals(shapeNameFromDb, \"cubic\")) {\n Cubic newCubic = new Cubic(idFromDb, shapeNameFromDb, lengthFromDb, widthFromDb, heightFromDb);\n shapes.add(newCubic);\n }\n }\n } catch (SQLException e) {\n shapes.clear();\n }\n }\n\n // close database connection\n connection.closeConnection();\n }\n\n return shapes;\n }",
"IShape getShape(String name);",
"public Shape[] getShapes() {\n return (Shape[]) shapes.clone();\n }",
"public Bitmap getShapesImage();",
"public abstract int[] getShape();",
"ShapeType getShapeType();",
"Shape getShape();",
"public ArrayList<PhysicsShape> getShapes() {\n\t\treturn shapes;\n\t}",
"public Shape getShape();",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"void clearShapeMap();",
"String getShapeName();",
"public Set<Shape> overlappingShapes(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n Set<Shape> set = new HashSet<Shape>(); \n Iterator<Shape> its = myrc.geom_to_bundles.keySet().iterator();\n while (its.hasNext()) {\n Shape its_shape = its.next();\n\tif (Utils.genericIntersects(shape, its_shape)) set.add(its_shape);\n }\n Iterator<Line2D> itl = myrc.line_to_bundles.keySet().iterator();\n while (itl.hasNext()) {\n Line2D line = itl.next(); \n\t if (line.contains(shape.getBounds())) set.add(line);\n }\n return set;\n }",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"private Set<String> getLayerIdsFromMap(String mapId) throws IOException {\n // Retrieve the map.\n Map map = engine.maps().get(mapId).execute();\n\n // Find the layers\n Set<String> layerIds = new HashSet<String>();\n List<MapItem> mapContents = map.getContents();\n while (mapContents != null && mapContents.size() > 0) {\n MapItem item = mapContents.remove(0);\n if (item instanceof MapLayer) {\n layerIds.add(((MapLayer) item).getId());\n } else if (item instanceof MapFolder) {\n mapContents.addAll(((MapFolder) item).getContents());\n }\n // MapKmlLinks do not have IDs\n }\n\n return layerIds;\n }",
"@Override\n public String getShapeSetId() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"public Shape createShape(int shapeId, String name) {\n return registeredShapes.get(shapeId).create(name);\n }",
"List<IShape> getShapesAtTick(int tick);",
"public String getShapeType(){\n\t\treturn shapeType;\n\t}",
"List<IShape> getVisibleShapes();",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public static void getShapeInformation(){\n int i = 0;\n while (i < numShapes){//obtain the information for the i'th shape.\n shapes[i] = scnr.next();\n shapeSize [i] = scnr.nextInt();\n shapeColors[i] = scnr.next();\n moveDirection[i] = scnr.nextInt();\n moveSpeed[i] = scnr.nextInt();\n\n ++i;\n }\n }",
"public Map<String, Factory> getFactoryMap(){\n\t\treturn factoryMap;\n\t}",
"@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 Shape getShape() {\n\t\treturn shape;\n\t}",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public File getShapesLocation() {\n\t\treturn shapesLocation;\n\t}",
"private String drawAllShapes() {\n\n /*\n Have list of list for each shape and the motions of each shape\n Need to iterate through the frames and for each motion in a frame\n add it to the corresponding shape in the list of lists\n */\n StringBuilder shapeSVG = new StringBuilder();\n Map<Integer, List<Shape>> animationFrames = this.model.getFrames();\n List<List<Shape>> shapeStates = new ArrayList<>();\n for (Integer key : new TreeSet<>(animationFrames.keySet())) {\n List<Shape> singleFrame = animationFrames.get(key);\n for (Shape shape : singleFrame) {\n if (!this.containsShapeList(shapeStates, shape.getName())) {\n List<Shape> shapeMotions = new ArrayList<>();\n shapeMotions.add(singleFrame.get(singleFrame.indexOf(shape)));\n shapeStates.add(shapeMotions);\n } else {\n shapeStates.get(this.findShape(shapeStates, shape.getName()))\n .add(singleFrame.get(singleFrame.indexOf(shape)));\n }\n }\n }\n\n for (List<Shape> shape : shapeStates) {\n shapeSVG.append(this.drawSingleShape(shape.get(0).getName(), shape.get(0).getType(), shape))\n .append(\"\\n\");\n }\n\n return shapeSVG.toString();\n }",
"public String whatShape();",
"int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }",
"public Integer getShapeId(String routeName, int direction, int stopId) {\r\n Integer routeId, shapeID;\r\n Cursor getData = getReadableDatabase().rawQuery(\"select _id from routes where route_long_name = '\" + routeName + \"'\", null);\r\n getData.moveToFirst();\r\n // store the route ID base on the route name\r\n routeId = getData.getInt(0);\r\n // only get the shape ID\r\n final String query = \"select trips.shape_id \" +\r\n \"from trips \" +\r\n \"join calendar on trips.service_id = calendar._id \" +\r\n \"join routes on trips.route_id = routes._id \" +\r\n \"join stop_times on trips._id = stop_times.trip_id \" +\r\n \"join stops on stop_times.stop_id = stops._id \" +\r\n \"where calendar._id in \" + getDayOfTheWeek() +\r\n \" AND routes._id = \" + routeId +\r\n \" AND trips.direction_id = \" + direction +\r\n \" AND stops._id = \" + stopId + \" \";\r\n getData = getReadableDatabase().rawQuery(query, null);\r\n getData.moveToFirst();\r\n shapeID = getData.getInt(0);\r\n\r\n return shapeID;\r\n }",
"public int[] getGraphicIDs()\n\t{\n\t\treturn getObject().getGraphicIDs();\n\t}",
"Map<DimensionalItemId, DimensionalItemObject> getIndicatorDimensionalItemMap(\n Collection<Indicator> indicators);",
"public Shape getShape() {\n\treturn shape;\n }",
"public Shape getShape() {\n return shape;\n }",
"java.util.Map<java.lang.Integer, object_detection.protos.Calibration.XYPairs>\n getClassIdXyPairsMapMap();",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"private void drawShapes() {\n\n // get a polygon shape object\n SKPolygon polygon = new SKPolygon();\n // set the polygon's nodes\n List<SKCoordinate> nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7765));\n nodes.add(new SKCoordinate(-122.4141, 37.7765));\n nodes.add(new SKCoordinate(-122.4342, 37.7620));\n polygon.setNodes(nodes);\n // set the outline size\n polygon.setOutlineSize(3);\n // set colors used to render the polygon\n polygon.setOutlineColor(new float[]{1f, 0f, 0f, 1f});\n polygon.setColor(new float[]{1f, 0f, 0f, 0.2f});\n // render the polygon on the map\n mapView.addPolygon(polygon);\n\n // get a circle mask shape object\n SKCircle circleMask = new SKCircle();\n // set the shape's mask scale\n circleMask.setMaskedObjectScale(1.3f);\n // set the colors\n circleMask.setColor(new float[]{1f, 1f, 0.5f, 0.67f});\n circleMask.setOutlineColor(new float[]{0f, 0f, 0f, 1f});\n circleMask.setOutlineSize(3);\n // set circle center and radius\n circleMask.setCircleCenter(new SKCoordinate(-122.4200, 37.7665));\n circleMask.setRadius(300);\n // set outline properties\n circleMask.setOutlineDottedPixelsSkip(6);\n circleMask.setOutlineDottedPixelsSolid(10);\n // set the number of points for rendering the circle\n circleMask.setNumberOfPoints(150);\n // render the circle mask\n mapView.addCircle(circleMask);\n\n\n // get a polyline object\n SKPolyline polyline = new SKPolyline();\n // set the nodes on the polyline\n nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7898));\n nodes.add(new SKCoordinate(-122.4141, 37.7898));\n nodes.add(new SKCoordinate(-122.4342, 37.7753));\n polyline.setNodes(nodes);\n // set polyline color\n polyline.setColor(new float[]{0f, 0f, 1f, 1f});\n // set properties for the outline\n polyline.setOutlineColor(new float[]{0f, 0f, 1f, 1f});\n polyline.setOutlineSize(4);\n polyline.setOutlineDottedPixelsSolid(3);\n polyline.setOutlineDottedPixelsSkip(3);\n mapView.addPolyline(polyline);\n }",
"protected Map<Integer, List<Shape>> getWheel() {\r\n if (mapWheel == null) {\r\n mapWheel = new HashMap<>(CIRCLE_COUNT);\r\n\r\n // The current radius\r\n float radius = getRadius();\r\n // The radius of each individual circle...\r\n float circleRadius = radius / CIRCLE_COUNT;\r\n // The range of each segment\r\n float extent = 360f / SEGMENT_COUNT;\r\n for (int circle = 0; circle < CIRCLE_COUNT; circle++) {\r\n float startAngle = 0;\r\n List<Shape> segments = new ArrayList<>(SEGMENT_COUNT);\r\n mapWheel.put(circle, segments);\r\n\r\n // Calculate the \"translation\" to place each segement in the\r\n // center of the screen\r\n float innerRadius = circleRadius * circle;\r\n float x = (getWidth() - innerRadius) / 2;\r\n float y = (getHeight() - innerRadius) / 2;\r\n for (int seg = 0; seg < SEGMENT_COUNT; seg++) {\r\n // Generate a Segment shape\r\n Segment segment = new Segment(circleRadius * circle +AXIS_SPACE , circleRadius, startAngle, extent);\r\n startAngle += extent;\r\n\r\n // We translate the segment to the screen space\r\n // This will make it faster to paint and check for mouse clicks\r\n PathIterator pi = segment.getPathIterator(AffineTransform.getTranslateInstance(x - AXIS_SPACE/2, y - AXIS_SPACE/2));\r\n Path2D path = new Path2D.Float();\r\n path.append(pi, true);\r\n segments.add(path);\r\n }\r\n }\r\n }\r\n\r\n return mapWheel;\r\n }",
"public Shape getShape() { return shape; }",
"public Set<Shape> shapes(Set<Bundle> bundles) { \n RenderContext myrc = (RenderContext) rc;\n Set<Shape> set = new HashSet<Shape>();\n if (myrc == null) return set;\n Iterator<Bundle> it = bundles.iterator();\n while (it.hasNext()) {\n Bundle bundle = it.next();\n if (myrc.bundle_to_shapes.containsKey(bundle)) set.addAll(myrc.bundle_to_shapes.get(bundle));\n }\n return set;\n }",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"public int getFileShapeType() {\n return fileShapeType;\n }",
"public Map<String, Object> getIds() {\n return ids;\n }",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public HashMap<String, Integer> getId_types() {\n return id_types;\n }",
"Future<ListShapesResponse> listShapes(\n ListShapesRequest request, AsyncHandler<ListShapesRequest, ListShapesResponse> handler);",
"String getLayerShapeName();",
"public static Point[] astShape(){\r\n\t\tRandom random = new Random();\r\n\t\tPoint[] randAsteroid = {\r\n\t\t\t\tnew Point(0,0),\r\n\t\t\t\tnew Point(random.nextInt(11-5)+5, -(random.nextInt(16-10)+10)),\r\n\t\t\t\tnew Point(random.nextInt(21-15)+15, -(random.nextInt(5))),\r\n\t\t\t\tnew Point(random.nextInt(31-25)+25, (random.nextInt(5-(-10)-10))),\r\n\t\t\t\tnew Point(random.nextInt(21-15)+15, (random.nextInt(21-15)+15)),\r\n\t\t\t\tnew Point(random.nextInt(0-(-5))-5, (random.nextInt(15-10)+10))\r\n\t\t};\r\n\t\treturn randAsteroid;\r\n\t}",
"public String getRandomShape(){\n\t\tRandom randon = new Random();\n\t\treturn Shape.values()[randon.nextInt(Shape.values().length)].toString();\n\t}",
"Map<Element, Map<Element, Element>> getOperationMap();",
"public Map<String, SpriteConstructor> getSpriteConstructorMap() {\n\t\treturn spriteFactoryMap;\n\t}",
"public Bitmap getFinalShapesImage();",
"IShape getCurrentShape();",
"private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }",
"public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }",
"@Override\n public void setShapeSetId( final String id ) {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"public SparseArray<TexturePackTextureRegion> getIDMapping() {\r\n\t\treturn this.mIDMapping;\r\n\t}",
"void setShapeList(List<String> shapes);",
"public void registerShape(int shapeId, Shape shape) {\n registeredShapes.put(shapeId, shape);\n }",
"java.util.Map<java.lang.Integer, object_detection.protos.Calibration.SigmoidParameters>\n getClassIdSigmoidParametersMapMap();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"private void setPathShapes(int left, int top, int width, int height) {\n for (int i = 0; i < paths.size(); ++i) {\n PathWrapper p = paths.get(i);\n IPathFactory f = getPathFactories().get(i);\n p.path.setShape(f.createPath(left, top, width, height));\n }\n }",
"public ShapeGroup getShapeGroup() {\n return referencedShapeGroup;\n }",
"List<String> getShapePanelInput();",
"public Map<Position, String> createGraphics(){\n\n Map<Position, String> justObjectGraphs = this.ALLObjects.stream()\n .collect(Collectors.toMap(MapObject::getPozycja, MapObject::getDrawSymbol) );\n\n Map<Position, String> emptyGraphs = this.getMapa().getEmptyPositions().stream()\n .collect(Collectors.toMap(poz -> poz , poz -> \" \") );\n\n Map<Position, String> wynik = new TreeMap<>();\n wynik.putAll(justObjectGraphs);\n wynik.putAll(emptyGraphs);\n\n return wynik;\n }",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();",
"private int getShapesMeasures(Collection<ModelElementInstance> shapes){\n\t\tint toReturn = 0;\n\t\tfor (ModelElementInstance s: shapes){\n\t\t\tBpmnShape firstShape = (BpmnShape) s;\t\n\t\t\tfor (ModelElementInstance t: shapes){\n\t\t\t\tBpmnShape secondShape = (BpmnShape) t;\n\t\t\t\tif (!firstShape.equals(secondShape)) {\n\t\t\t\t\tif(this.isOverlapped(firstShape, secondShape))\n\t\t\t\t\t\ttoReturn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn toReturn/2;\n\t}"
]
| [
"0.75829303",
"0.73037827",
"0.66998196",
"0.6554995",
"0.6101967",
"0.6040083",
"0.58502626",
"0.5802613",
"0.57483816",
"0.5746704",
"0.570855",
"0.5703357",
"0.56931645",
"0.5691812",
"0.5670106",
"0.5556594",
"0.55492085",
"0.5503609",
"0.5502873",
"0.5486892",
"0.54505366",
"0.53899467",
"0.5310911",
"0.53091294",
"0.5271877",
"0.5256666",
"0.5183132",
"0.51637805",
"0.5150525",
"0.51112896",
"0.51013905",
"0.50995445",
"0.50952095",
"0.5076398",
"0.50690514",
"0.5063419",
"0.50543773",
"0.5029294",
"0.5026202",
"0.5013899",
"0.50053936",
"0.49979383",
"0.4961341",
"0.4953776",
"0.4948863",
"0.4946019",
"0.49447864",
"0.49447265",
"0.4925852",
"0.49159878",
"0.49139246",
"0.48719677",
"0.48499638",
"0.48423883",
"0.4834385",
"0.48311403",
"0.48271692",
"0.47866258",
"0.47833124",
"0.47829205",
"0.47699955",
"0.47420868",
"0.4721543",
"0.47189674",
"0.4709126",
"0.4702737",
"0.46977004",
"0.46769178",
"0.46742746",
"0.46682727",
"0.46566767",
"0.46365818",
"0.46326768",
"0.46253714",
"0.4610128",
"0.46047",
"0.4592306",
"0.4591665",
"0.4585535",
"0.45839086",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.45777985",
"0.4576253",
"0.45697528",
"0.45642647",
"0.45630163",
"0.45536307",
"0.45461264",
"0.45449817"
]
| 0.72994804 | 2 |
Gets the canvas dimension. | Dimension getCanvasDimension(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Dimension getCanvasSize() {\n return transformManager.getCanvasSize();\n }",
"public Dimension2D getCanvasSize(\n )\n {\n return renderSize == null\n ? Dimension.get(getContentContext().getBox()) // Device-independent (user-space) area.\n : renderSize; // Device-dependent (device-space) area.\n }",
"public int getCanvasWidth() {\r\n\r\n\t\treturn CANVAS_WIDTH;\r\n\t}",
"public int getWidth() {\n\t\treturn canvasWidth;\n\t}",
"public int getCanvasHeight() {\r\n\r\n\t\treturn CANVAS_HEIGHT;\r\n\t}",
"public int getHeight() {\n\t\treturn canvasHeight;\n\t}",
"@Override\n public int getWidth() {\n return graphicsEnvironmentImpl.getWidth(canvas);\n }",
"Point getScreenDimensions() {\n\t\tDisplay display = getWindowManager().getDefaultDisplay();\n\t\tPoint screenDimensions = new Point();\n\t\tdisplay.getSize(screenDimensions);\n\t\treturn screenDimensions;\n\t}",
"public int getCoordinateDimension() { \n return getPosition().getCoordinateDimension();\n }",
"private Point getScreenDim() {\n \t\tDisplay display = this.getWindowManager().getDefaultDisplay();\n \n \t\t@SuppressWarnings( \"deprecation\" )\n \t\tPoint size = new Point( display.getWidth(), display.getHeight() );\n \t\treturn size;\n \t}",
"public Vector2 getMouseSize() {\n \tdimension.set(pointer.width, pointer.height);\n \treturn dimension;\n\t}",
"int getCurrentDimension() {\n if (!playerExists())\n return lastdim;\n return game.h.m;\n }",
"public float getDiameter() {\n /* 425 */\n RectF content = this.mViewPortHandler.getContentRect();\n /* 426 */\n content.left += getExtraLeftOffset();\n /* 427 */\n content.top += getExtraTopOffset();\n /* 428 */\n content.right -= getExtraRightOffset();\n /* 429 */\n content.bottom -= getExtraBottomOffset();\n /* 430 */\n return Math.min(content.width(), content.height());\n /* */\n }",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}",
"public int dimensions() {\n return this.data[0].length;\n }",
"public int getwDimension()\n {\n return wDimension;\n }",
"public native Dimension getDimension() throws MagickException;",
"public int dimensionCount() {\n\t\treturn point.length;\n\t}",
"public int dimensions() {\n\t\treturn dim;\n\t}",
"public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}",
"public int getPixelSize() {\n\t\treturn pixelSize;\n\t}",
"public final int getDimension() {\r\n\t\treturn this.dimension;\r\n\t}",
"@Override\n\tpublic int getWidth() {\n\n\t\treturn ((WorldWindowSWTGLCanvas) slave).getCanvas().getSize().x;\n\t}",
"public int getWidth() {\n return mySize.getWidth();\n }",
"public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have height > width. Typically 1024x512.\n\t\t// Crocodile eats the biggest.\n\t\tshort height = getHeight();\n\t\tshort width = getWidth();\n\t\tshort dim = height > width ? height : width;\n\n\t\tif (dim > 0 && calString != null) {\n\n\t\t\ttry {\n\n\t\t\t\tfloat cal = Float.parseFloat(calString);\n\n\t\t\t\t// Now calculate the pixel size\n\t\t\t\tpixelSize = (1024 * cal) / (dim * zoom);\n\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t\tlogger.log(\"Unable to parse calibration factor\");\n\t\t\t\tpixelSize = getRoughPixelSize();\n\n\t\t\t}\n\t\t} else {\n\t\t\tpixelSize = getRoughPixelSize();\n\t\t}\n\n\t\treturn pixelSize;\n\n\t}",
"public Dimension getSize()\n {\n return new Dimension(300, 150);\n }",
"public final int getWidth() {\r\n return config.width;\r\n }",
"public int getWidth() {\r\n return Display.getWidth();\r\n }",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"private Dimension calculateCanvas() {\n \t\n \tint maxx=50;\n \tint minx=0;\n \tint maxy=50;\n \tint miny=0;\n \t\n \tVector v=Selector.getInstance().getAllEntitiesOnPanel();\n \tfor (int i=0; i<v.size(); i++) {\n \t\tEntity e =(Entity)v.elementAt(i);\n \t\tmaxx=Math.max(maxx,e.getX()+e.getWidth()+20);\n \t\tmaxy=Math.max(maxy,e.getY()+e.getHeight()+20);\n \t\tminx=Math.min(minx,e.getX()-20);\n \t\tminy=Math.min(miny,e.getY()-20);\n \t}\n \treturn new Dimension(maxx-minx,maxy-miny);\n }",
"public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}",
"public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}",
"public static float[] getDimension(Context context) {\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\n\n float dpHeight = displayMetrics.heightPixels / displayMetrics.density;\n float dpWidth = displayMetrics.widthPixels / displayMetrics.density;\n Log.i(\"\", \"dpWidth \" + dpWidth);\n\n final float scale = context.getResources().getDisplayMetrics().density;\n int pixels_height = (int) (dpHeight * scale + 0.5f);\n int pixels_width = (int) (dpWidth * scale + 0.5f);\n Log.i(\"\", \"pixels_width \" + pixels_width);\n\n float[] values = new float[2];\n values[0] = pixels_width;\n values[1] = pixels_height;\n\n return values;\n }",
"public int getWidth(){\n Window w = vc.getFullScreenWindow();\n if(w != null){\n return w.getWidth();\n } else {\n return 0;\n }\n }",
"public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}",
"protected int getSurfaceWidth() {\n assertActivityNotNull();\n return mActivity.getWidth();\n }",
"public double getWidth() {\n return getElement().getWidth();\n }",
"public Point getSize() {\n\t\treturn p_screenSize;\n\t}",
"@Override\n public int getHeight() {\n return graphicsEnvironmentImpl.getHeight(canvas);\n }",
"public int sWidth(){\n\t\t\n\t\tint Measuredwidth = 0; \n\t\tPoint size = new Point();\n\t\tWindowManager w = activity.getWindowManager();\n\t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t w.getDefaultDisplay().getSize(size);\n\t\t Measuredwidth = size.x; \n\t\t}else{\n\t\t Display d = w.getDefaultDisplay(); \n\t\t Measuredwidth = d.getWidth(); \n\t\t}\n\t\treturn Measuredwidth;\n\t}",
"public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}",
"public int[] getScreenDimensions() {\n if (Minecraft.getInstance().currentScreen != null) {\n return new int[]{Minecraft.getInstance().currentScreen.width, Minecraft.getInstance().currentScreen.height};\n } else {\n return new int[]{Minecraft.getInstance().getMainWindow().getWidth(), Minecraft.getInstance().getMainWindow().getHeight()};\n }\n }",
"public int getDimY() {\r\n return dimY;\r\n }",
"Dimension getDimensions();",
"int getDimY(){\n\t\treturn dimy;\n\t}",
"public int dimension() {\n return N; // Return Board instance variable for dimension size\n }",
"public int getDimension() {\n\t\treturn dimension;\n\t}",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"int getDimensionsCount();",
"private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public long dimCount()\n\t{\n\t\treturn (long)multimemory.dims.length;\n\t}",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"int dim() {\r\n\t\treturn dimt * dimx * dimy;\r\n\t}",
"Dimension getSize();",
"Dimension getSize();",
"public double getWidth();",
"public double getWidth();",
"public int dimension() // board dimension n\n {\n return dim;\n }",
"public int[] getDims() {\n int[] dimsTuple = { this.xDimension, this.yDimension };\n return dimsTuple;\n }",
"public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }",
"public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}",
"public final Point getSize() {\r\n return new Point(config.width, config.height);\r\n }",
"public double getWidth() {\n\t\treturn mx-nx;\n\t}",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public Dimension getSize() {\n\t\treturn size.getCopy();\n\t}",
"BigInteger getDimension();",
"public int getWidth() {\n return mPresentationEngine.getWidth();\n }",
"public int[] getDimensions() {\r\n int[] dimensions = new int[2];\r\n dimensions[0] = squareDimension;\r\n dimensions[1] = squareDimension;\r\n return dimensions;\r\n }",
"public int getLargeur() {\n return getWidth();\n }",
"Dimension getDimension();",
"public int getWidth() {\r\n return width;\r\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public static Point getDisplaySize(Context context) {\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n return size;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getDimension() {\n \treturn dim;\n }",
"public int getSize() {\n return rows * cols;\n }",
"public byte getDimension() {\n return this.dimension;\n }",
"public byte getDimension() {\n return this.dimension;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"public int getGridDimensions() {\n return GRID_DIMENSIONS;\n }",
"public int getWidth() {\n return mWidth;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public double getWidthInInches()\n {\n return width;\n }"
]
| [
"0.8120467",
"0.8076398",
"0.77458805",
"0.7617438",
"0.7450935",
"0.71048576",
"0.68625784",
"0.67793745",
"0.6737635",
"0.67078346",
"0.66647524",
"0.66631323",
"0.6575727",
"0.6523654",
"0.6514106",
"0.64902097",
"0.6462748",
"0.64602464",
"0.6438608",
"0.6415853",
"0.6402001",
"0.63537526",
"0.6351348",
"0.634948",
"0.6317001",
"0.6314506",
"0.6304638",
"0.6293204",
"0.62924397",
"0.6245804",
"0.62169886",
"0.6215027",
"0.6209771",
"0.6193022",
"0.6180012",
"0.61759156",
"0.6170413",
"0.61685836",
"0.61681104",
"0.6151968",
"0.6147236",
"0.6140248",
"0.61304855",
"0.6127915",
"0.61276084",
"0.6120896",
"0.60655916",
"0.60613126",
"0.60586846",
"0.6049076",
"0.6038194",
"0.60314673",
"0.60267556",
"0.6025747",
"0.6025747",
"0.6025747",
"0.6005585",
"0.6004378",
"0.6004378",
"0.60001606",
"0.60001606",
"0.59941065",
"0.5991826",
"0.5990306",
"0.5988195",
"0.59769154",
"0.5965029",
"0.5962814",
"0.59610206",
"0.59605545",
"0.59569633",
"0.59562254",
"0.5954918",
"0.59539646",
"0.59392583",
"0.5936443",
"0.59363234",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.5930761",
"0.59303105",
"0.5928565",
"0.59249187",
"0.59249187",
"0.5924358",
"0.59187657",
"0.59169257",
"0.5912735",
"0.5907569",
"0.5906446"
]
| 0.8418103 | 0 |
Gets the left most x and top most y. | Point getTopXY(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Coords getUpperLeft()\r\n {\r\n return new Coords(x, y);\r\n }",
"public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }",
"public int getXTopRight() {\n return xTopRight;\n }",
"public Pixel topLeft() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.left;\n }\n }",
"public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }",
"public int getX() {\r\n\t\t\r\n\t\treturn topX;\r\n\t}",
"public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }",
"public Point getUpperLeft() {\n return this.upperLeft;\n }",
"double getLeftY();",
"public int getTop() {\n return position[0] - (size - 1) / 2;\n }",
"double leftmost_alien_x() {\n double min_x = scene_width;\n for (Alien alien : aliens) {\n if (alien.x_position < min_x) {\n min_x = alien.x_position;\n }\n }\n return min_x;\n }",
"public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }",
"public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }",
"double rightmost_alien_x() {\n double max_x = 0;\n for (Alien alien : aliens) {\n if (alien.x_position > max_x) {\n max_x = alien.x_position;\n }\n }\n return max_x;\n }",
"public int getLeftX() {\n\t\treturn 0;\r\n\t}",
"public Point getLocalPosition() {\n return getLocalLowerLeft();\n }",
"public int getXPos();",
"double getXPosition();",
"public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }",
"public Point getTopLeft() {\n return location.topLeft();\n }",
"public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}",
"public Point getdownLeft() {\n Point downLeft = new Point(this.upperLeft.getX(), this.upperLeft.getY() + this.getHeight());\n return downLeft;\n }",
"public int getXLeftUpper() {\n return xLeftUpper;\n }",
"public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}",
"public double[] getUpperLeft() {\n this.upperLeft = new double[]{minX, maxY};\n return upperLeft;\n }",
"public float getUpperRightX()\n {\n return ((COSNumber)rectArray.get(2)).floatValue();\n }",
"public static Dimension getPos()\n {\n Dimension pos = new Dimension( cX, cY );\n next();\n return pos;\n }",
"public int getX() {\r\n return (int) center.getX();\r\n }",
"public final int centerX() {\n return (left + right) >> 1;\n }",
"public int getXLeft() {\n return xLeft;\n }",
"@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}",
"public int getX() {\n return (int) center.getX();\n }",
"public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }",
"public static Coordinates getTopRightCorner() {\n\t\treturn topRightCorner;\n\t}",
"public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }",
"public double getXPos() {\n\t\treturn this.position[0];\n\t}",
"public Point getXLower()\n {\n return (Point)xLow.clone();\n }",
"public int getX(){\n return this.position[0];\n }",
"public int getX() { return position.x; }",
"private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }",
"double getX() { return pos[0]; }",
"public final int getCursorAbsoluteX() {\n return getAbsoluteX() + cursorX;\n }",
"private int get_x() {\n return center_x;\n }",
"public int getRightX() {\n\t\treturn 0;\r\n\t}",
"public int[] getPosition() {\n\t\tint[] res = {x, y};\n\t\treturn res;\n\t}",
"public int getYLeftUpper() {\n return yLeftUpper;\n }",
"public Point topMiddle() {\n return this.topLeft.add(new Vector2D(getWidth() / 2, 0)).asPoint();\n }",
"Coordinate getMinX();",
"private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}",
"private int getArrayPos(int x, int y) {\n int position = (y - 1) * this.yDimension + x - 1;\n return position;\n }",
"long getX();",
"public int getX() {\n return (int) this.center.getX();\n }",
"public int getX()\r\n {\r\n return xLoc;\r\n }",
"int getBoundsX();",
"public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}",
"public final int getX()\n\t{\n\t\treturn pos.x;\n\t}",
"public int getXY(int x, int y);",
"Coordinate[] getTilePosition(int x, int y) {\n\t\treturn guiTiles.get(y).get(x).getBoundary();\n\t}",
"public int getX() {\n return (int) xPos;\n }",
"public int getX(){\n\t\treturn this.x_location;\n\t}",
"public int getX() {\n return pos_x;\n }",
"public int getAbsoluteX() {\r\n return getAbsoluteLeft() - getParent().getAbsoluteLeft();\r\n }",
"public double getLeft() {\n return this.xL;\n }",
"public int getXRight() {\n return getXLeft() + getXLength();\n }",
"public Location left() {\n return new Location(row, column - 1);\n }",
"public int getX() { return loc.x; }",
"public int getX() {\r\n return xpos;\r\n }",
"private Point2D.Double leftSensorLocation() {\n double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4);\n double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4);\n return new Point2D.Double(getX() + dx * 2, getY() + dy * 2);\n }",
"public float getX(){\n return hitBox.left;\n }",
"public double topmostVertexY() {\n if (right != null && ! right.isEmpty() &&\n left != null && ! left.isEmpty() &&\n left.get(0).getLine().isAscending() &&\n ! right.get(0).getLine().isAscending()) {\n return Line.intersection(right.get(0).getLine(),\n left.get(0).getLine()).getY();\n } else {\n return Double.POSITIVE_INFINITY;\n }\n }",
"public int getLeft(){\n\t\treturn platformHitbox.x;\n\t}",
"public float getMaxX(){\n return points.get(points.size()-1).getX();\n }",
"public int getX()\r\n {\r\n \treturn xPos;\r\n }",
"double getPositionX();",
"double getPositionX();",
"double getPositionX();",
"public int getXPosition(){\n\t\treturn xPosition;\n\t}",
"public static int getEndXCoordinate(){\n\t\tint x = getThymioEndField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n\n\t\treturn x;\n\t}",
"public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }",
"public int getX(){ return xPosition; }",
"public int getLocX() {\n return locX;\n }",
"public Point getXUpper()\n {\n return (Point)xUpp.clone();\n }",
"private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }",
"public Vector2 getAbsolutePosition() {\n Vector2 screenPos = new Vector2(this.position.x, this.position.y);\n for(UIElement element = this.parent; element != null; element = element.parent) {\n screenPos.add(element.position);\n }\n return screenPos;\n }",
"public double getLeftYAxis() {\n\t\treturn getRawAxis(Axis_LeftY);\n\t}",
"public int getLocX() {\n return locX;\n }",
"@Override\n public double getPosX() {\n return this.pos[0];\n }",
"Point3D getLeftUpperBackCorner();",
"public double Top(){\n\t\treturn (y);\n\t}",
"public Integer getXOffset() {\n\t\tdouble frameWidth = this.pixy.getFrameWidth() / 2;\n\t\tdouble blockX = this.getX();\n\n\t\treturn (int) (blockX + frameWidth / 2);\n\t}",
"public int getX() {\n return positionX;\n }",
"protected long getLeftPosition() {\n return leftPosition;\n }",
"public Point3D getpoint_BlockTopRight() {\r\n\t\treturn point_BlockTopRight;\r\n\t}",
"public Pixel topRight() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.right;\n }\n }",
"public Location getLeft()\n\t{\n\t\tif(checkLeft())\n\t\t{\n\t\t\treturn new Location(row,col-1);\n\t\t}\n\t\treturn this;\n\t}",
"public int getX() {\n\t\t\tint lastRobot = (state[2 * k] + k - 1) % k;\n\t\t\treturn state[lastRobot];\n\t\t}",
"public int getXPosition()\n {\n return xPosition;\n }",
"public int getXPosition()\n {\n return xPosition;\n }",
"public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }",
"public int getX() {\r\n\t\treturn xcoord;\r\n\t}"
]
| [
"0.7165252",
"0.70269126",
"0.6971137",
"0.6796788",
"0.6728614",
"0.6719796",
"0.6636082",
"0.65647864",
"0.6547448",
"0.65311223",
"0.652987",
"0.6526",
"0.6518683",
"0.6483537",
"0.6468857",
"0.6448553",
"0.6431317",
"0.6397225",
"0.63564754",
"0.63476294",
"0.63407063",
"0.63280904",
"0.6300151",
"0.62921745",
"0.627118",
"0.6268192",
"0.62384",
"0.62346",
"0.62269676",
"0.6223839",
"0.62229526",
"0.6211001",
"0.61878705",
"0.61690986",
"0.6167205",
"0.61618274",
"0.6158953",
"0.6133159",
"0.6127099",
"0.61158395",
"0.61152",
"0.61122173",
"0.61106056",
"0.6097704",
"0.6094126",
"0.6089848",
"0.60631627",
"0.6048358",
"0.6038766",
"0.6034423",
"0.60228807",
"0.60184187",
"0.6017814",
"0.6009908",
"0.600624",
"0.6005155",
"0.59931177",
"0.59924465",
"0.59842306",
"0.5978211",
"0.59710157",
"0.59601825",
"0.59487104",
"0.59485686",
"0.594734",
"0.5937381",
"0.59364045",
"0.59269476",
"0.5921195",
"0.5917323",
"0.59150267",
"0.59042275",
"0.5895633",
"0.58937985",
"0.58937985",
"0.58937985",
"0.58923477",
"0.5888463",
"0.5886198",
"0.5878097",
"0.5877095",
"0.58726615",
"0.58715075",
"0.5870308",
"0.5866054",
"0.58653927",
"0.5865239",
"0.5864742",
"0.58606017",
"0.5858876",
"0.58570224",
"0.5856391",
"0.5850643",
"0.5847046",
"0.5842846",
"0.5842513",
"0.58407354",
"0.58407354",
"0.5839311",
"0.58293813"
]
| 0.7079473 | 1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_analytics, container, false);
prefs = getContext().getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE);
timeLists= new ArrayList<>();
typeRadioGroup = view.findViewById(R.id.activity_main_period_radiogroup);
intervalRadioGroup = view.findViewById(R.id.activity_main_priceinterval);
lineChart = view.findViewById(R.id.activity_main_linechart);
commentModelList = new ArrayList<>();
listView = (RecyclerView) view.findViewById(R.id.news_feed_List);
tIL1 = (TextInputLayout) view.findViewById(R.id.fa_et_nameOfPiece);
tIL2 = (TextInputLayout) view.findViewById(R.id.fa_et_catagory);
postProgress = (ProgressBar)view.findViewById(R.id.postProgress);
postProgress.setVisibility(View.VISIBLE);
listView.setVisibility(View.GONE);
OmnioPostsList = new ArrayList<>();
checkInternet = new CheckInternet();
refButton = view.findViewById(R.id.activity_main_getprices);
nestedScrollView = (NestedScrollView) view.findViewById(R.id.scrollview_fragment_analytics);
noInternet = (LinearLayout)view.findViewById(R.id.lnI);
TryAgain = (TextView)view.findViewById(R.id.tryagain);
TryAgain.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
GetPosts getPosts = new GetPosts();
getPosts.execute(prefs.getString("userID", null).toString());
}
});
typeRadioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()
{
public void onCheckedChanged(RadioGroup group, int checkedId) {
Toast.makeText(getContext(), "Press Refresh to obtain data", Toast.LENGTH_SHORT).show();
// switch(checkedId){
// case R.id.activity_main_periodV:
// // do operations specific to this selection
// break;
// case R.id.activity_main_periodS:
// // do operations specific to this selection
// break;
// case R.id.activity_main_periodB:
// // do operations specific to this selection
// break;
// case R.id.activity_main_periodC:
// // do operations specific to this selection
// break;
// }
}
});
intervalRadioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener()
{
public void onCheckedChanged(RadioGroup group, int checkedId) {
Toast.makeText(getContext(), "Press Refresh to obtain data", Toast.LENGTH_SHORT).show();
// switch(checkedId){
// Toast.makeText(getContext(), "Please Select the Post First", Toast.LENGTH_SHORT).show();
//
// case R.id.activity_main_interval1h:
// getEntryMinute();
// break;
// case R.id.activity_main_interval1d:
// getEntryHour();
// break;
// case R.id.activity_main_interval1w:
// getEntryWeek();
// break;
// case R.id.activity_main_interval1m:
// getEntryDays();
// break;
//
// case R.id.activity_main_interval1y:
// getEntryMonth();
// break;
// }
}
});
refButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(selectedPostId == null)
{
Toast.makeText(getContext(), "Please Select the Post First", Toast.LENGTH_SHORT).show();
}
else if(intervalRadioGroup.getCheckedRadioButtonId() == -1)
{
Toast.makeText(getContext(), "Please Select Time", Toast.LENGTH_SHORT).show();
}
else if(typeRadioGroup.getCheckedRadioButtonId() == -1)
{
Toast.makeText(getContext(), "Please Select Engagements", Toast.LENGTH_SHORT).show();
}
else {
//yyyy_MM_dd_HH_mm_ss
if(typeRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_periodV)
{
ProgressDialog pd = new ProgressDialog(getContext());
pd.setMessage("fetching...");
pd.show();
final List<String> returning = new ArrayList<>();
databaseReference = FirebaseDatabase.getInstance().getReference("PostEngagements").child("Views").child(selectedPostId);
databaseReference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
returning.clear();
for (DataSnapshot ss : snapshot.getChildren()) {
returning.add(ss.getValue().toString());
}
if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1h)
{ hourCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1d)
{ dayCondition(returning); }
// else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1w)
// { weekCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1m)
{ monthCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1y)
{yearCondition(returning);}
else
{}
pd.dismiss();
}
@Override
public void onCancelled(@NonNull DatabaseError error) {
pd.dismiss();
}
});
}
else if(typeRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_periodB)
{
ProgressDialog pd = new ProgressDialog(getContext());
pd.setMessage("fetching...");
pd.show();
final List<String> returning = new ArrayList<>();
databaseReference = FirebaseDatabase.getInstance().getReference("Comments").child(selectedPostId);
databaseReference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
returning.clear();
for (DataSnapshot ss : snapshot.getChildren()) {
returning.add(ss.child("usercommenttime").getValue().toString());
}
if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1h)
{ hourCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1d)
{ dayCondition(returning); }
// else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1w)
// {}
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1m)
{ monthCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1y)
{yearCondition(returning);}
else
{}
pd.dismiss();
}
@Override
public void onCancelled(@NonNull DatabaseError error) {
pd.dismiss();
}
});
}
else if(typeRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_periodS)
{
ProgressDialog pd = new ProgressDialog(getContext());
pd.setMessage("fetching...");
pd.show();
final List<String> returning = new ArrayList<>();
databaseReference = FirebaseDatabase.getInstance().getReference("PostReactions").child(selectedPostId);
databaseReference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
returning.clear();
for (DataSnapshot ss : snapshot.getChildren()) {
returning.add(ss.child("userReactTime").getValue().toString());
}
if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1h)
{ hourCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1d)
{ dayCondition(returning); }
// else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1w)
// {}
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1m)
{ monthCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1y)
{yearCondition(returning);}
else
{}
pd.dismiss();
}
@Override
public void onCancelled(@NonNull DatabaseError error) {
pd.dismiss();
}
});
}
else if(typeRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_periodC)
{
ProgressDialog pd = new ProgressDialog(getContext());
pd.setMessage("fetching...");
pd.show();
final List<String> returning = new ArrayList<>();
databaseReference = FirebaseDatabase.getInstance().getReference("PostEngagements").child("Clicks").child(selectedPostId);
databaseReference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot snapshot) {
returning.clear();
for (DataSnapshot ss : snapshot.getChildren()) {
returning.add(ss.getValue().toString());
}
if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1h)
{ hourCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1d)
{ dayCondition(returning); }
// else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1w)
// {}
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1m)
{ monthCondition(returning); }
else if(intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1y)
{}
else
{yearCondition(returning);}
pd.dismiss();
}
@Override
public void onCancelled(@NonNull DatabaseError error) {
pd.dismiss();
}
});
}
else{}
// if((intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_interval1h) || (intervalRadioGroup.getCheckedRadioButtonId() == R.id.activity_main_periodV))
// {
// // List<String> returning = new ArrayList<>();
// // getViews();
// ProgressDialog pd = new ProgressDialog(getContext());
// pd.setMessage("fetching...");
// pd.show();
//
// final List<String> returning = new ArrayList<>();
//
// databaseReference = FirebaseDatabase.getInstance().getReference("PostEngagements").child("Views").child(selectedPostId);
// databaseReference.addValueEventListener(new ValueEventListener() {
// @Override
// public void onDataChange(@NonNull DataSnapshot snapshot) {
// returning.clear();
// ///String xyz = "";
// for (DataSnapshot ss : snapshot.getChildren()) {
// returning.add(ss.getValue().toString());
// // Log.d("PPPPPP.......PPPPP",ss.getValue().toString());
// // xyz = xyz + ss.getValue().toString();
// }
// hourCondition(returning);
// pd.dismiss();
//
// //Toast.makeText(getContext(),returning.get(0), Toast.LENGTH_SHORT).show();
//
// // setListOfViews(returning);
//
//// //SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//// Date date = new Date();
//// // System.out.println("Current Date " + sdf.format(date));
////
//// // Convert Date to Calendar
//// Calendar ci = Calendar.getInstance();
//// ci.setTime(date);
//// // Perform addition/subtraction
//// ci.add(Calendar.YEAR, 0);ci.add(Calendar.MONTH, 0);ci.add(Calendar.DATE, 0);
//// ci.add(Calendar.HOUR, -1);ci.add(Calendar.MINUTE, 0);ci.add(Calendar.SECOND, 0);
////
//// // Convert calendar back to Date
//// Date currentDatePlusOne = ci.getTime();
////
//// String subtractedDateAndTime = sdf.format(currentDatePlusOne);
////
//// // System.out.println("Updated Date " + sdf.format(currentDatePlusOne));
//
// //Toast.makeText(getContext(), selectedPostId+a+b+c+d+e+f, Toast.LENGTH_SHORT).show();
// //Toast.makeText(getContext(),returning.size(), Toast.LENGTH_SHORT).show();
//
// // return returning[0];
// // Log.d("PPPPPP.......PPPPP",returning.get(0));
//
// }
//
// @Override
// public void onCancelled(@NonNull DatabaseError error) {
// pd.dismiss();
// }
// });
// // Toast.makeText(getContext(),returning.get(0), Toast.LENGTH_SHORT).show();
//
//
//
// }
}
}
});
// stockTickerTextInputLayout = view.findViewById(R.id.activity_main_stockticker);
// periodRadioGroup = view.findViewById(R.id.activity_main_period_radiogroup);
// intervalRadioGroup = view.findViewById(R.id.activity_main_priceinterval);
//
// highCheckBox = view.findViewById(R.id.activity_main_high);
// lowCheckBox = view.findViewById(R.id.activity_main_low);
// closeCheckBox = view.findViewById(R.id.activity_main_close);
// configureLineChart();
GetPosts getPosts = new GetPosts();
getPosts.execute(prefs.getString("userID", null).toString());
// listView.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View view) {
// Toast.makeText(getContext(), "Clicked ", Toast.LENGTH_SHORT).show();
//
// // nestedScrollView.scrollTo(0, 0);
//// Runnable runnable=new Runnable() {
//// @Override
//// public void run() {
//// nestedScrollView.fullScroll(ScrollView.FOCUS_DOWN);
//// }
//// };
//// nestedScrollView.post(runnable);
//// //nestedScrollView.fullScroll(ScrollView.FOCUS_UP);
// }
// });
// List<Entry> valsComp1 = new ArrayList<Entry>();
// List<Entry> valsComp2 = new ArrayList<Entry>();
//
// Entry c1e1 = new Entry(0f, 100000f); // 0 == quarter 1
// valsComp1.add(c1e1);
// Entry c1e2 = new Entry(1f, 140000f); // 1 == quarter 2 ...
// valsComp1.add(c1e2);
// // and so on ...
// Entry c2e1 = new Entry(0f, 130000f); // 0 == quarter 1
// valsComp2.add(c2e1);
// Entry c2e2 = new Entry(1f, 115000f); // 1 == quarter 2 ...
// valsComp2.add(c2e2);
//
// LineDataSet setComp1 = new LineDataSet(valsComp1, "Company 1");
// setComp1.setAxisDependency(YAxis.AxisDependency.LEFT);
// LineDataSet setComp2 = new LineDataSet(valsComp2, "Company 2");
// setComp2.setAxisDependency(YAxis.AxisDependency.LEFT);
//
// List<ILineDataSet> dataSets = new ArrayList<ILineDataSet>();
// dataSets.add(setComp1);
// dataSets.add(setComp2);
// LineData data = new LineData(dataSets);
// lineChart.setData(data);
// lineChart.invalidate(); // refresh
//
// // the labels that should be drawn on the XAxis
// final String[] quarters = new String[] { "Q1", "Q2", "Q3", "Q4" };
// ValueFormatter formatter = new ValueFormatter() {
// @Override
// public String getAxisLabel(float value, AxisBase axis) {
// return quarters[(int) value];
// }
// };
// XAxis xAxis = lineChart.getXAxis();
// xAxis.setGranularity(1f); // minimum axis-step (interval) is 1
// xAxis.setValueFormatter(formatter);
//
lineChart = view.findViewById(R.id.activity_main_linechart);
entryList.add(new Entry(10,20));
entryList.add(new Entry(5,10));
entryList.add(new Entry(7,31));
entryList.add(new Entry(3,14));
LineDataSet lineDataSet = new LineDataSet(entryList,"country");
lineDataSet.setColors(ColorTemplate.JOYFUL_COLORS);
lineDataSet.setValueTextColor(ContextCompat.getColor(getContext(), R.color.white)); //Colors(ColorTemplate.JOYFUL_COLORS);
lineDataSet.setFillAlpha(110);
lineData = new LineData(lineDataSet);
lineChart.setData(lineData);
lineChart.setNoDataTextColor(ContextCompat.getColor(getContext(), R.color.white));
lineChart.setVisibleXRangeMaximum(10);
lineChart.invalidate();
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
For a given N (width) and M (height), print out a matrix of size N X M in spiral order. Example: N=3, M=3 Expected Output: 1 2 3 8 9 4 7 6 5 | public void printSpiralMatrix(int width, int height) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void spiral(int m,int n,int a[][])\n {\n int i;\n int k=0,l=0;\n \n while(k<m&&l<n)\n {\n for(i=l;i<n;i++)\n {\n System.out.print(a[k][i]);\n }\n k++;\n \n for(i=k;i<m;i++)\n {\n System.out.print(a[i][n-1]);\n }\n n--;\n \n if(k<m)\n {\n for(i=n-1;i>=l;i--)\n {\n }\n System.out.print(a[m-1][i]);\n }\n m--;\n \n if(l<n)\n {\n for(i=m-1;i>=k;i--)\n {\n System.out.print(a[i][l]);\n i++;\n }\n }\n }\n }",
"static void counterClockspiralPrint(int m,\n int n,\n int arr[][])\n {\n int i, k = 0, l = 0;\n\n /* k - starting row index\n m - ending row index\n l - starting column index\n n - ending column index\n i - iterator */\n //linkm\n\n // initialize the count\n int cnt = 0;\n\n // total number of\n // elements in matrix\n int total = m * n;\n\n while (k < m && l < n)\n {\n if (cnt == total)\n break;\n\n // Print the first column\n // from the remaining columns\n for (i = k; i < m; ++i)\n {\n System.out.print(arr[i][l] + \" \");\n cnt++;\n }\n l++;\n\n if (cnt == total)\n break;\n\n // Print the last row from\n // the remaining rows\n for (i = l; i < n; ++i)\n {\n System.out.print(arr[m - 1][i] + \" \");\n cnt++;\n }\n m--;\n\n if (cnt == total)\n break;\n\n // Print the last column\n // from the remaining columns\n if (k < m)\n {\n for (i = m - 1; i >= k; --i)\n {\n System.out.print(arr[i][n - 1] + \" \");\n cnt++;\n }\n n--;\n }\n\n if (cnt == total)\n break;\n\n // Print the first row\n // from the remaining rows\n if (l < n)\n {\n for (i = n - 1; i >= l; --i)\n {\n System.out.print(arr[k][i] + \" \");\n cnt++;\n }\n k++;\n }\n }\n }",
"static void spiral_disp(int arr[][]) {\n\t\t\tint mincol, minrow, maxcol, maxrow, count = 0;\n\t\t\tmincol = 0;\n\t\t\tminrow = 0;\n\t\t\tmaxrow = arr.length - 1;\n\t\t\tmaxcol = arr[0].length - 1;\n\t\t\tint net = arr.length * arr[0].length;\n\t\t\twhile (count < net) {\n\n\t\t\t\tfor (int row = minrow; row <= maxrow && count < net; row++) {\n\t\t\t\t\tSystem.out.print(arr[row][mincol] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\t\t\n\t\t\t\tmincol++;\n\t\t\t\tfor (int col = mincol; col <= maxcol && count < net; col++) {\n\t\t\t\t\tSystem.out.print(arr[maxrow][col] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tmaxrow--;\n\t\t\t\tfor (int row = maxrow; row >= minrow && count < net; row--) {\n\t\t\t\t\tSystem.out.print(arr[row][maxcol] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tmaxcol--;\n\t\t\t\tfor (int col = maxcol; col>= mincol && count < net; col--) {\n\t\t\t\t\tSystem.out.print(arr[minrow][col] + \", \");\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tminrow++;\n\n\t\t\t}\n\n\t\t}",
"public static int[][] task10_spiralGenerate(int m, int n) {\n\t\tif (m <= 0) {\n\t\t\t// !!! only m <= 0, return a empty array\n\t\t\treturn new int[][] {};\n\t\t}\n\t\tint rLen = m;\n\t\tint cLen = n;\n\t\tint[][] matrix = new int[m][n];\n\t\tint leftB = 0, rightB = cLen - 1;\n\t\tint upperB = 0, lowerB = rLen - 1;\n\t\tint counter = 1;\n\t\twhile (true) {\n\t\t\tfor (int j = leftB; j <= rightB; j++) {\n\t\t\t\tmatrix[upperB][j] = counter++;\n\t\t\t}\n\t\t\tupperB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = upperB; i <= lowerB; i++) {\n\t\t\t\tmatrix[i][rightB] = counter++;\n\t\t\t}\n\t\t\trightB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = rightB; j >= leftB; j--) {\n\t\t\t\tmatrix[lowerB][j] = counter++;\n\t\t\t}\n\t\t\tlowerB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = lowerB; i >= upperB; i--) {\n\t\t\t\tmatrix[i][leftB] = counter++;\n\t\t\t}\n\t\t\tleftB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t}",
"public static void spiralTraversalAlternate(int[][] input){\n int k = 0;\n int l = 0;\n int m = input.length - 1;\n int n = input[0].length - 1;\n while(k <= m && l <= n){\n for(int j = l ; j <= n ; j++){\n System.out.print(input[k][j] + \" \");\n }\n k++;\n for(int i = k; i <= m ; i++){\n System.out.print(input[i][n] + \" \");\n }\n n--;\n if(k <= m){\n for(int j = n ; j >= l ; j--){\n System.out.print(input[m][j] + \" \");\n }\n m--;\n }\n if(l <= n){\n for(int i = m; i >= k; i--){\n System.out.print(input[i][l] + \" \");\n }\n l++;\n }\n }\n }",
"public static int[][] task9_spiralGenerate(int n) {\n\t\tif (n <= 0) {\n\t\t\treturn new int[][] {};\n\t\t}\n\t\tint rLen = n;\n\t\tint cLen = n;\n\t\tint[][] matrix = new int[n][n];\n\t\tint leftB = 0, rightB = cLen - 1;\n\t\tint upperB = 0, lowerB = rLen - 1;\n\t\tint counter = 1;\n\t\twhile (true) {\n\t\t\tfor (int j = leftB; j <= rightB; j++) {\n\t\t\t\tmatrix[upperB][j] = counter++;\n\t\t\t}\n\t\t\tupperB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = upperB; i <= lowerB; i++) {\n\t\t\t\tmatrix[i][rightB] = counter++;\n\t\t\t}\n\t\t\trightB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int j = rightB; j >= leftB; j--) {\n\t\t\t\tmatrix[lowerB][j] = counter++;\n\t\t\t}\n\t\t\tlowerB--;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = lowerB; i >= upperB; i--) {\n\t\t\t\tmatrix[i][leftB] = counter++;\n\t\t\t}\n\t\t\tleftB++;\n\t\t\tif (leftB > rightB || upperB > lowerB) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t }",
"public ArrayList<Integer> spiralOrder(int[][] matrix) {\n ArrayList<Integer> resultList = new ArrayList<Integer>();\n if (matrix.length == 0 || matrix[0].length == 0) {\n\t\t\treturn resultList;\n\t\t}\n if (matrix.length == 1) {\n\t\t\tfor (int i = 0; i < matrix[0].length; i++) {\n\t\t\t\tresultList.add(matrix[0][i]);\n\t\t\t}\n\t\t\treturn resultList;\n\t\t}\n if (matrix[0].length == 1) {\n\t\t\tfor (int j = 0; j < matrix.length; j++) {\n\t\t\t\tresultList.add(matrix[j][0]);\n\t\t\t}\n\t\t\treturn resultList;\n\t\t}\n int width = matrix[0].length;\n int height = matrix.length;\n int round = Math.min(width, height)/2;\n if (Math.min(width, height) % 2 == 1) {\n\t\t\tround++;\n\t\t}\n for (int i = 0; i < round; i++) {\n \tresultList.add(matrix[i][i]);\n \tif (width > 1) {\n\t\t\t\tfor (int j = 1; j < width; j++) {\n\t\t\t\t\tresultList.add(matrix[i][i+j]);\n\t\t\t\t}\n\t\t\t}\n \tif (height > 1) {\n\t\t\t\tfor (int j = 1; j < height; j++) {\n\t\t\t\t\tresultList.add(matrix[i + j][width - 1 + i]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n \tif (width > 1) {\n\t\t\t\tfor (int j = width -2; j >= 0; j--) {\n\t\t\t\t\tresultList.add(matrix[height - 1 + i][i + j]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n \tif (height > 1) {\n\t\t\t\tfor (int j = height - 2; j > 0; j--) {\n\t\t\t\t\tresultList.add(matrix[i + j][i]);\n\t\t\t\t}\n\t\t\t}\n \twidth -= 2;\n \theight -= 2;\n }\n return resultList;\n }",
"public static void main(String[] args) {\n int[][] matrix = {\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {9,10,11,12}\n };\n\n List<Integer> res = Solution.spiralOrder(matrix);\n for (int i:res){\n System.out.printf(\"%d \", i);\n }\n }",
"public ArrayList<Integer> spiralOrder(int[][] matrix) {\n ArrayList<Integer> re = new ArrayList<Integer>();\n int m = matrix.length-1;\n if(m==-1) return re;\n int n = matrix[0].length-1; \n int i =0;\n while(m>=i && n>=i){\n spiral(matrix, i, i, m, n, re);\n m--;\n n--;\n i++;\n } \n \n return re; \n }",
"public List<Integer> spiralOrder(int[][] matrix) {\n\t\tList<Integer> spiralList = new ArrayList<>();\n\t\tif (matrix == null || matrix.length == 0)\n\t\t\treturn spiralList;\n\n\t\t// declare indices\n\t\tint top = 0;\n\t\tint bottom = matrix.length - 1;\n\t\tint left = 0;\n\t\tint right = matrix[0].length - 1;\n\n\t\twhile (true) {\n\t\t\t// 1. print top row\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tspiralList.add(matrix[top][j]);\n\t\t\t}\n\t\t\ttop++;\n\t\t\tif (boundriesCrossed(left, right, bottom, top)) // if(top > bottom) break;\n\t\t\t\tbreak;\n\n\t\t\t// 2. print rightmost column\n\t\t\tfor (int i = top; i <= bottom; i++) {\n\t\t\t\tspiralList.add(matrix[i][right]);\n\t\t\t}\n\t\t\tright--;\n\t\t\tif (boundriesCrossed(left, right, bottom, top)) // if(right < left) break;\n\t\t\t\tbreak;\n\n\t\t\t// 3. print bottom row\n\t\t\tfor (int j = right; j >= left; j--) {\n\t\t\t\tspiralList.add(matrix[bottom][j]);\n\t\t\t}\n\t\t\tbottom--;\n\t\t\tif (boundriesCrossed(left, right, bottom, top)) // if(bottom < top) break;\n\t\t\t\tbreak;\n\n\t\t\t// 4. print leftmost column\n\t\t\tfor (int i = bottom; i >= top; i--) {\n\t\t\t\tspiralList.add(matrix[i][left]);\n\t\t\t}\n\t\t\tleft++;\n\t\t\tif (boundriesCrossed(left, right, bottom, top)) // if(left > right) break;\n\t\t\t\tbreak;\n\t\t} // end while true\n\n\t\treturn spiralList;\n\t}",
"public List<Integer> spiralOrder(int[][] matrix) {\n List<Integer> result = new ArrayList<>();\n if (matrix.length == 0) {\n return result;\n }\n int rowBegin = 0;\n int colBegin = 0;\n int rowEnd = matrix.length - 1;\n int colEnd = matrix[0].length - 1;\n while (rowBegin <= rowEnd && colBegin <= colEnd) {\n for (int j = colBegin; j <= colEnd; j++) {\n result.add(matrix[rowBegin][j]);\n }\n rowBegin++;\n for (int j = rowBegin; j <= rowEnd; j++) {\n result.add(matrix[j][colEnd]);\n }\n colEnd--;\n if (rowBegin <= rowEnd) {\n // Traverse Left\n for (int j = colEnd; j >= colBegin; j--) {\n result.add(matrix[rowEnd][j]);\n }\n }\n rowEnd--;\n\n if (colBegin <= colEnd) {\n // Traver Up\n for (int j = rowEnd; j >= rowBegin; j--) {\n result.add(matrix[j][colBegin]);\n }\n }\n colBegin++;\n }\n return result;\n\n }",
"List<Integer> spiralOrderWalk(int[][] matrix) {\n List<Integer> result = new LinkedList<Integer>();\n int rows = matrix.length;\n if (rows == 0) {\n return result;\n }\n int cols = matrix[0].length;\n int[] dc = new int[] { 1, 0, -1, 0 };\n int[] dr = new int[] { 0, 1, 0, -1 };\n boolean[][] visited = new boolean[rows][cols];\n int dir = 0;\n int r = 0;\n int c = 0;\n while (isInside(r, c, rows, cols) && !visited[r][c]) {\n visited[r][c] = true;\n result.add(matrix[r][c]);\n int nr = r + dr[dir];\n int nc = c + dc[dir];\n if (isInside(nr, nc, rows, cols) && !visited[nr][nc]) {\n r = nr;\n c = nc;\n } else {\n dir = (dir + 1) % 4;\n r += dr[dir];\n c += dc[dir];\n }\n }\n return result;\n }",
"public ArrayList<Integer> spiralOrder(int[][] matrix) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n\t if(matrix == null || matrix.length == 0){\n\t return result;\n\t }\n\t int rowcount = matrix.length;\n\t int colcount = matrix[0].length;\n\t \n\t int[] colStep = {1, 0, -1, 0};\n\t int[] rowStep = {0, 1, 0, -1};\n\t \n\t //TIP: Note the visited row and coloum count\n\t int visitedRow = 0; \n\t int visitedCol = 0;\n\t \n\t int row=0; \n\t int col=0;\n\t \n\t int direction = 0; //0 right, 1 down, 2 left, 3 up\n\t while(true){\n\t boolean colMove = (direction%2==0);\n\t int maxStep = colMove ? colcount - visitedCol : rowcount - visitedRow;\n\t if(maxStep==0){ //TIP: stop when maxStep is out\n\t break;\n\t }\n\t for(int i=0;i<maxStep;i++){\n\t result.add(matrix[row][col]); //TIP: always add the current one\n\t if(i==maxStep-1){ //TIP: most importantly, at the last one, change direction\n\t direction = (direction + 1) % 4;\n\t }\n \t row+=rowStep[direction]; //TIP: but always move forward\n \t col+=colStep[direction];\n\t }\n\t if(colMove){\n\t visitedRow ++;\n\t }else{\n\t visitedCol ++;\n\t }\n\t }\n\t return result;\n\t}",
"public static void displayMatrix(char[][] M, int size){\n for (int i = 0 ; i < size ; i++){\n for (int j=0 ; j< size ; j++){\n System.out.print(M[i][j]);\n }\n System.out.println ();\n }\n }",
"private static void printInCircle(ArrayList<Integer> list, int[][] matrix, int rows, int cols, int index) {\n if (rows <= 0 || cols <= 0) {\n return;\n }\n\n int endX = cols - 1 - index;\n int endY = rows - 1 - index;\n // from left to right\n for (int i = index; i <= endX; i++) {\n list.add(matrix[index][i]);\n }\n // if print up to down, there must be more than 1 rows(endY - index)>=1\n // from up to down\n if ((endY - index) >= 1) {\n for (int i = index + 1; i <= endY; i++) {\n list.add(matrix[i][endX]);\n }\n }\n // if print right to left, there must be more than 1 rows(endY - index) >= 1 and more than 1 cols (endX - index) >= 1\n // from right to left\n if ((endY - index) >= 1 && (endX - index) >= 1) {\n for (int i = endX - 1; i >= index; i--) {\n list.add(matrix[endY][i]);\n }\n }\n // if print down to up, there must be more than 2 rows(endY - index)>=2 and more than 1 cols (endX - index) >= 1\n // from down to up\n if ((endY - index) >= 2 && (endX - index) >= 1) {\n for (int i = endY - 1; i > index; i--) {\n list.add(matrix[i][index]);\n }\n }\n }",
"public static void main(String[] args) {\n\t\tint [][]matrix = new int[4][4];\n\t\tint count = 1;\n\t\tfor (int i = 0; i < matrix.length; i++) {\n\t\t\tmatrix[i] = new int[4];\n\t\t\tfor (int j = 0; j < matrix.length; j++) {\n\t\t\t\tmatrix[i][j] = count++;\n\t\t\t}\n\t\t}\n\t\tSpiralMatrix test = new SpiralMatrix();\n\t\tSystem.out.println(test.spiralOrder(matrix));\n\t}",
"public void pyramid(int numberOfRows){\n int rowCount = 1;\n for(int i = numberOfRows; i>=1; i--){\n //for the before empty space\n for(int j = 1; j<=i;j++){\n System.out.print(\" \");\n }\n for(int j = 1; j<=rowCount;j++){\n System.out.print(j+\" \");\n }\n System.out.println();\n rowCount++;\n }\n\n }",
"private void printMatrixInCircle(int[][] arr, int rows, int cols, int start) {\n\t\tint endX = cols - 1 - start;\n\t\tint endY = rows - 1 - start;\n\n\t\tfor (int i = start; i <= endX; i++) {\n\t\t\tSystem.out.print(arr[start][i] + \" \");\n\t\t}\n\n\t\tif (start < endY) {\n\t\t\tfor (int i = start + 1; i <= endY; i++) {\n\t\t\t\tSystem.out.print(arr[i][endX] + \" \");\n\t\t\t}\n\t\t}\n\n\t\tif (start < endX && start < endY) {\n\t\t\tfor (int i = endX - 1; i >= start; i--) {\n\t\t\t\tSystem.out.print(arr[endY][i] + \" \");\n\t\t\t}\n\t\t}\n\n\t\tif (start < endX && start < endY - 1) {\n\t\t\tfor (int i = endY - 1; i >= start + 1; i--) {\n\t\t\t\tSystem.out.print(arr[i][start]+\" \");\n\t\t\t}\n\t\t}\n\t}",
"public void printMatrix(int n, int[][] A)\n {\n\t // go through by line, then by element, and print the output.\n\t for (int i = 0; i<n; i++) {\n\t\t for (int j = 0; j<n; j++) {\n\t\t\t System.out.print(A[i][j] + \" \");\n\t\t }\n\t\t // end the line at each new space. \n\t\t System.out.println(\" \");\n\t }\n }",
"private void spiralOrder(Node root) \n { \n \n \tLinkedList<Node> ls = new LinkedList<Node>(); \n \n // Push root \n ls.addLast(root); \n \n // Direction 0 shows print right to left \n // and for Direction 1 left to right \n int dir = 0; \n while (ls.size() > 0) \n { \n int size = ls.size(); \n while (size-->0) \n { \n // One whole level \n // will be print in this loop \n \n if (dir == 0) \n { \n Node temp = ls.peekLast(); \n ls.pollLast(); \n if (temp.right != null) \n ls.addFirst(temp.right); \n if (temp.left != null) \n ls.addFirst(temp.left); \n System.out.print(temp.value + \" \"); \n } \n else \n { \n Node temp = ls.peekFirst(); \n ls.pollFirst(); \n if (temp.left != null) \n ls.addLast(temp.left); \n if (temp.right != null) \n ls.addLast(temp.right); \n System.out.print(temp.value + \" \"); \n } \n } \n System.out.println(); \n \n // Direction change \n dir = 1 - dir; \n } \n }",
"private static long sumOfDiagonalsInSquareSpiral(int m) {\n assert m % 2 == 1 : \"Square matrix must be of odd numbered size!\";\n long sum = 0;\n final List<Integer> coefficients = Lists.newArrayList(4, 3, 8, -9);\n final int denominator = 6;\n for (int coefficient : coefficients) {\n sum = sum * m + coefficient;\n }\n return sum / denominator;\n }",
"public void printLayout() {\n\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 4; j++) {\n System.out.print(matrix[i][j] + \" \");\n\n }\n System.out.println(\"\");\n }\n }",
"public int[][] generateMatrix(int n) {\n\t \n\t int matrix[][] = new int[n][n];\n\t int count = n * n +1;\n int topRow = 0;\n int bottomRow = n-1;\n int leftmostColumn = 0;\n int rightmostColumn = n -1;\n int added = 0;\n\t \n\t \n\t while(leftmostColumn <= rightmostColumn && topRow<= bottomRow && added <= count){\n \n \n \tif(added != count){\n for(int i = leftmostColumn; i <= rightmostColumn;i++){\n \t matrix[topRow][i] = added +1;\n // #arrList.add(matrix[topRow][i]);\n added = added+1;\n /* if(added == count)\n \tbreak;*/\n }\n topRow = topRow +1;\n \t}\n \n \n \tif(added != count){\t\n for(int j = topRow; j <= bottomRow;j++){\n //arrList.add(matrix[j][rightmostColumn]);\n \t matrix[j][rightmostColumn] = added+1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n rightmostColumn = rightmostColumn -1;\n \t} \n \t\n \t\n \tif(added != count){\t\n for(int k = rightmostColumn; k >= leftmostColumn; k--){\n \t matrix[bottomRow][k] = added +1;\n //arrList.add(matrix[bottomRow][k]);\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n bottomRow = bottomRow -1;\n \t}\n \t\n \t\n \tif(added != count){\t\n for(int l = bottomRow; l >= topRow ;l--){\n // arrList.add(matrix[l][leftmostColumn]);\n \t matrix[l][leftmostColumn] = added +1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n leftmostColumn = leftmostColumn +1;\n \t}\n \n }\n\t \n\t return matrix;\n \n}",
"private void spiral() {\n\t\t// If in top right, increase size and go down right.\n\t\tif(xtraversed == size && ytraversed == size){\n\t\t\tsize++;\n\t\t\tmemory.nextMove = GameConstants.SOUTHEAST;\n\t\t\tytraversed--;\n\t\t\txtraversed++;\n\t\t}\n\t\t\n\t\t// If in top, go right.\n\t\telse if(ytraversed == size){\n\t\t\tmemory.nextMove = GameConstants.EAST;\n\t\t\txtraversed++;\n\t\t}\n\t\t\n\t\t// If in left, go up.\n\t\telse if(xtraversed == -size){\n\t\t\tmemory.nextMove = GameConstants.NORTH;\n\t\t\tytraversed++;\n\t\t}\n\t\t\n\t\t// If in bottom, go left.\n\t\telse if(ytraversed == -size){\n\t\t\tmemory.nextMove = GameConstants.WEST;\n\t\t\txtraversed--;\n\t\t}\n\t\t\n\t\t// If in right, go down.\n\t\telse if(xtraversed == size){\n\t\t\tmemory.nextMove = GameConstants.SOUTH;\n\t\t\tytraversed--;\n\t\t}\n\t\t\n\t\t// Else go right.\n\t\telse {\n\t\t\tmemory.nextMove = GameConstants.EAST;\n\t\t\txtraversed++;\n\t\t}\n\t}",
"public static void printMatrix()\n {\n for(int i = 0; i < n; i++)\n {\n System.out.println();\n for(int j = 0; j < n; j++)\n {\n System.out.print(connectMatrix[i][j] + \" \");\n }\n }\n }",
"public void print_board(){\n\t\tfor(int i = 0; i < size*size; i++){\n\t\t\tif(i%this.size == 0) System.out.println(); //just for divider\n\t\t\tfor(int j = 0; j < size*size; j++){\n\t\t\t\tif(j%this.size == 0) System.out.print(\" \"); //just for divider\n\t\t\t\tSystem.out.print(board[i][j]+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public int[][] generateMatrix(int n) {\n \n int[][] matrix = new int[n][n];\n \n int i = 0, j = 0, direction = 0;\n \n int right = n - 1, left = 0, top = 1, bottom = n - 1, count = 1;\n \n while (count <= n * n && i >= 0 && i < n && j >= 0 && j < n) {\n switch (direction) {\n case 0:\n if (j == right) {\n matrix[i++][j] = count;\n right--;\n direction = 1;\n } else {\n matrix[i][j++] = count;\n }\n break;\n case 1:\n if (i == bottom) {\n matrix[i][j--] = count;\n bottom--;\n direction = 2;\n } else {\n matrix[i++][j] = count;\n }\n break;\n case 2:\n if (j == left) {\n matrix[i--][j] = count;\n left++;\n direction = 3;\n } else {\n matrix[i][j--] = count;\n }\n break;\n case 3:\n if (i == top) {\n matrix[i][j++] = count;\n top++;\n direction = 0;\n } else {\n matrix[i--][j] = count;\n }\n break;\n }\n count++;\n }\n \n return matrix;\n }",
"static void printMat(Integer mat[][], int n)\n\t{\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t\tSystem.out.print(mat[i][j] + \" \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private static void rotateMatrix(int[][] matrix) {\n\n\t\t// Assume: the elements are integer, and are unique values so that the result\n\t\t// can be tested for correctness.\n\t\t// Question: are the dimensions square? i.e. row and column count are the same?\n\t\t// Assume Yes.\n\t\t// Question: Which direction should the array be rotated - Assume clockwise\n\n\t\t// Iterate from counter min to max - 1\n\t\t// Copy top row first cell into a temp variable.\n\t\t// Copy each corner into the next corner. Use temp variable to fill the last\n\t\t// corner\n\t\t// Decrement counter and perform for next set of cells\n\t\t// Repeat for inner layers.\n\n\t\t// Bounding Co-ordinates: matrix[min][min], matrix[min, max], matrix[max, max],\n\t\t// matrix[max, min]\n\t\t// Initially: min = 0, max = N-1 (i.e. 0 based array positions)\n\t\t// pos = min\n\t\t// While pos < max\n\t\t// temp = matrix[min][pos]\n\t\t// matrix[min][pos] = matrix[max - pos + min][min]\n\t\t// matrix[max - pos + min][min] = matrix[max][max - pos + min]\n\t\t// matrix[max][max - pos + min] = matrix[pos][max]\n\t\t// matrix[pos][max] = temp\n\t\t// Increment pos\n\t\t// Increment min and decrement max\n\t\t// Break when min >= max\n\t\t// For even N, the last grid will be a 2 X 2 matrix, for odd N, the last grid\n\t\t// will be a single cell\n\n\t\t// T.C. N/2 iterations of the while loop (for even N)\n\t\t// T.C. = (N - 1) + (N-3) + .. 1\n\t\t// [first calls executes 5 for loops, each N-1 times. last call executes 2*2\n\t\t// matrix. i.e. N-1 = 1]\n\t\t// = (N-1 + N-3 + .. + 1) = (N-1 + N-3 + ... + N-(N-1))\n\t\t// = (N*N/2 - (1 + 3 + .. + N-1))\n\t\t// Sum of n even no.s = n(n+1)\n\t\t// Sum of n odd no.s = N(N+1)/2 - n(n+1). Where N = Max of odd no. + 1\n\t\t// T.C. = (N*N/2 - (N(N+1)/2 - N/2 * (N/2 + 1)))\n\t\t// = ( N*N/2 - (N*N/2 + N/2 - N*N/4 - N/2)) = (N*N/4)\n\t\t// T.C = O(N*N), this is the best possible T.C as each element needs to be\n\t\t// visited once.\n\t\t// S.C. O(1)\n\n\t\tif (matrix == null || matrix.length == 0)\n\t\t\treturn;\n\n\t\tif (matrix.length != matrix[0].length)\n\t\t\tthrow new NotASquareMatrixException(\"Not a square matrix. Cannot be rotated in place.\");\n\n\t\tint min = 0;\n\t\tint max = matrix.length - 1;\n\t\tprint(matrix);\n\n\t\twhile (min < max) {\n\t\t\trotateCellsInALayer(matrix, min, max);\n\t\t\tprint(matrix);\n\t\t\tmin++;\n\t\t\tmax--;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint mat[][]= {{1,2,3},{4,5,6},{7,8,9}};\n\t\tspiralPrint(mat);\n\t}",
"static void print4(int n) {\n\t\tint blank = 0;\n\t\tint star = (n/2) + 1;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < blank; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int j = 0; j < Math.abs(star); j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstar--;\n\t\t\tif(star == 0) {\n\t\t\t\tstar = -2;\n\t\t\t}\n\t\t\tblank++;\n\t\t\tif(blank > n/2)\n\t\t\t\tblank = n >> 1;\n\t\t}\n\t}",
"public void display(){\n for(int i=0;i<N;i++){\n for(int j=0;j<N;j++)\n System.out.print(adj_matrix[i][j]+\" \");\n System.out.println();\n }\n }",
"public static void printSpiral(Node root) {\n if (root == null) return;\n Stack<Node> stackA = new Stack<Node>();\n Stack<Node> stackB = new Stack<Node>();\n stackA.add(root);\n\n while (!stackA.isEmpty() || !stackB.isEmpty()) {\n\n while (!stackA.isEmpty()) {\n Node temp = stackA.pop();\n System.out.print(temp.data + \" \");\n if (temp.right != null) stackB.push(temp.right);\n if (temp.left != null) stackB.push(temp.left);\n }\n\n while (!stackB.isEmpty()) {\n Node temp = stackB.pop();\n System.out.print(temp.data + \" \");\n if (temp.left != null) stackA.push(temp.left);\n if (temp.right != null) stackA.push(temp.right);\n }\n }\n }",
"public static void m12() {\r\n\tint m =1;\r\n\tfor(int i =1;i<=4;i++) {\r\n\t\tfor(int j =1;j<=(4-i);j++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int k =1;k<=m;k++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tm+=2;\r\n\t\tSystem.out.println();\r\n\t}\r\n}",
"public static void pyramid2(int rowCount) {\n\t\tint number = 1;\n\t\tfor (int i = rowCount; i > 0; i--) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int k = 1; k <= number; k++) {\n\t\t\t\tSystem.out.print(k + \" \");\n\t\t\t}\n\t\t\tnumber++;\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void display(int[][] matrix){\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix.length; j++) {\n System.out.print(matrix[i][j] + \" \");\n }\n System.out.println(\"\");\n }\n }",
"public static void pyramid1(int rowCount) {\n\t\tint number = 1;\n\t\tfor (int i = rowCount; i > 0; i--) {\n\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int k = 1; k <= number; k++) {\n\t\t\t\tSystem.out.print(number + \" \");\n\t\t\t}\n\t\t\tnumber++;\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"static void printMatrix(int[][] inp){\n\n for(int i=0;i<inp.length;i++){\n for(int j=0;j<inp[0].length;j++){\n System.out.print(inp[i][j]+\" \");\n }\n System.out.println(\"\");\n }\n }",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter N:\");\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println(\"Enter M:\");\n\t\tint m = sc.nextInt();\n\n\t\tint a = 1;\n\t\tint row = 0;\n\t\tint col = 0;\n\t\tint[][] arr = new int[n][m];\n \n\t\t// nad obratnia diagonal\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = row; j >= 0; j--) {\n\t\t\t\tarr[j][col] = a;\n\t\t\t\ta++;\n\t\t\t\tcol++;\n\t\t\t}\n\t\t\trow++;\n\t\t\tcol = 0;\n\t\t}\n\t\t// ako e kvadratna matrica\n\t\tint rowLimit = 0;\n\t\tif (m % 2 == 0) {\n\t\t\trowLimit = 1;\n\t\t} else {\n\t\t\trowLimit = 0;\n\t\t}\n\t\t// pod obratnia diagonal\n\t\trow -= 1;\n\t\tcol += 1;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = row; j >= rowLimit; j--) {\n\t\t\t\tarr[j][col] = a;\n\t\t\t\ta++;\n\t\t\t\tcol++;\n\t\t\t}\n\t\t\trow = n - 1;\n\t\t\tcol = i + 2;\n\t\t\trowLimit++;\n\n\t\t}\n // print\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[0].length; j++) {\n\t\t\t\tSystem.out.print(arr[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\n\t}",
"void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }",
"private void printMatrixClockwisely(int[][] array, int start) {\n\t\tfor(int i=start;i<array[0].length-start;i++)\n\t\t{\n\t\t\tSystem.out.print(array[start][i]+\" \");\n\t\t}\n\t\tif(array.length-1-start>start)\n\t\t{\n\t\t\tfor(int i=start+1;i<array.length-start-1;i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(array[i][array[0].length-1-start]+\" \");\n\t\t\t}\n\t\t}\n\t\tif(array[0].length-start-1>start&&array.length-start-1>start)\n\t\t{\n\t\t\tfor(int i=array.length-start-1;i>start;i--)\n\t\t\t\tSystem.out.print(array[array.length-start-1][i]+\" \");\n\t\t}\n\t\tif(array.length-1-start>start&&array[0].length-1-start>start)\n\t\t{\n\t\t\tfor(int i=array.length-start-1;i>start;i--)\n\t\t\t\tSystem.out.print(array[i][start]+\" \");\n\t\t}\n\t}",
"public static void main(String [] args){\n\t\t\n\t\t\n\t\t\n\t\n\t\tint [] [] matrix = new int [5][5];\n\t\tint count= 1;\n\t for(int i= 0 ; i < matrix.length; i++){\n\t \tSystem.out.println(\"\");\n\t \tfor(int j=0; j<matrix.length; j++){\n\t \t\t matrix[i][j]= count;\n\t \t\t //System.out.print(matrix[i][j]+\" \");\n\t \t\t count++;\n\t \t}\n\t \t\n\t }\n\t\tcount = 0;\n\t\tint i= 0;\n \tint j =0;\n \tint topLevel=0;\n \tint leftLevel=0;\n \tint bottumLevel =0;\n \tint rightLevel= 0;\n\t while(count<25){\n\t \t\n\t \t\n\t \t//move L-R \n\t \ti=topLevel;\n\t \tj=leftLevel;\n\t \tfor(;j <= (matrix.length-1)-rightLevel ;j++){\n\t \t\tSystem.out.println(matrix[i][j]);\n\t \t\tcount ++;\n\t \t}\n\t \ttopLevel++;\n\t \t//move T-B\n\t \tfor(i=topLevel;i<=(matrix.length-1)-bottumLevel;i++){\n\t \t\tSystem.out.println(matrix[i][j-1]);\n\t \t\tcount ++;\n\t \t}\n\t \trightLevel++;\n\t //Move R-L \n\t \tif(i==j){\n\t \t\ti=j=i-1;\n\t \t\tfor(j=j-1;j>=leftLevel;j--){\n\t \t\t\tSystem.out.println(matrix[i][j]);\n\t \t\t\tcount ++;\n\t \t\t}\n\t \t\tbottumLevel++;\n\t \t}\n\t \t//Move B-T\n\t \tj++;\n\t \tfor(i=i-1;i>=topLevel;i--){\n\t \t\tSystem.out.println(matrix[i][j]);\n\t \t\tcount ++;\n\t \t}\n\t \tleftLevel++;\n\t \t\n\t \t\n\t \t\n\t }\n\t\t\n\t}",
"public void printMatriz(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n //trata os espacamntos\n if((j+1)%3 == 0)\n System.out.printf(matriz[i][j] + \" \");\n else\n System.out.printf(matriz[i][j] + \" \");\n }else{\n if((j+1)%3 == 0)\n System.out.printf(\" \");\n else\n System.out.printf(\" \");\n }\n }\n if((i+1)%3 == 0){\n System.out.println(\"\\n\");\n }\n else\n System.out.println();\n\n }\n }",
"public void printdial(int[][] matrix) {\n\t\tif (matrix == null || matrix.length == 0 || matrix[0].length == 0) {\n\t\t\treturn;\n\t\t}\n\t\tint row = matrix.length;\n\t\tint col = matrix[0].length;\n\n\t\t//print up left big trangle\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tint j = 0, m = i;\n\t\t\twhile (m >= 0 && m < row && j >= 0 && j < col) {\n\t\t\t\tSystem.out.print(matrix[m][j]);\n\t\t\t\tm--;\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\n\t\t//print bottom right small trangle\n\t\tfor (int j = 1; j < col; j++) {\n\t\t\tint i = row - 1, m = j;\n\t\t\twhile (i >= 0 && i < row && m >= 0 && m < col) {\n\t\t\t\tSystem.out.print(matrix[i][m]);\n\t\t\t\ti--;\n\t\t\t\tm++;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t//int[][] arr = {{6,9,7}};\n\t\t//int[][] arr = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};\n\t\t//int[][] arr = {{1,2,3},{4,5,6},{7,8,9}};\n\t\tint[][] arr = {{2,3,4},{5,6,7},{8,9,10},{11,12,13},{14,15,16}};\n\t\tSolution2 sol = new Solution2();\n\t\tList<Integer> ans = sol.spiralOrder(arr);\n\t\tfor(int i : ans) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\t}",
"public static void printMatrix(int[][] matrix){\r\n\t\tfor (int i = matrix.length-1; i >= 0; i = i-1){\r\n\t\t\tfor (int j = 0; j < matrix.length; j = j+1){\r\n\t\t\t\tSystem.out.format(\"%4d\", matrix[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int i = scanner.nextInt();\n int j = scanner.nextInt();\n\n int[][] matrix = new int[i][j];\n\n for (int k = 0; k < i; k++) {\n for (int l = 0; l < j; l++) {\n matrix[k][l] = scanner.nextInt();\n }\n }\n\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n\n int tmp;\n\n for (int k = 0; k < i; k++) {\n tmp = matrix[k][n];\n matrix[k][n] = matrix[k][m];\n matrix[k][m] = tmp;\n }\n\n for (int[] ints : matrix) {\n for (int l = 0; l < j; l++) {\n System.out.print(ints[l] + \" \");\n }\n System.out.println();\n }\n\n }",
"public static void printMatrix(int[][] m) {\n for (int i = 0; i < m.length; ++i) {\n for (int j = 0; j < m[i].length; ++j) {\n System.out.print(\" \" + m[i][j]);\n }\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter n: \");\n int n = input.nextInt();\n printMatrix(n);\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void print() {\n\t\tfor(int i = 0; i < size; i++) {\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(m[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\n\t}",
"public ArrayList<Integer> spiralOrder(final List<ArrayList<Integer>> a) {\r\n\t\t ArrayList<Integer> result = new ArrayList<Integer>();\r\n\t\t int T = 0, B = a.size()-1, L = 0, R = a.get(0).size()-1; \r\n\t\t int dir = 0;\r\n\t\t if(B <= 0){\r\n\t\t return result;\r\n\t\t }\r\n\t\t while(L <= R && T <= B){\r\n\t\t if(dir == 0){\r\n\t\t for(int k = L; k <= R; k++){\r\n\t\t result.add(a.get(T).get(k));\r\n\t\t }\r\n\t\t T++;\r\n\t\t }\r\n\t\t else if(dir == 1){\r\n\t\t for(int k = T; k <= B; k++){\r\n\t\t result.add(a.get(k).get(R));\r\n\t\t }\r\n\t\t R--;\r\n\t\t }\r\n\t\t else if(dir == 2){\r\n\t\t for(int k = R; k >= L; k--){\r\n\t\t result.add(a.get(B).get(k));\r\n\t\t }\r\n\t\t B--;\r\n\t\t }\r\n\t\t else if(dir == 3){\r\n\t\t for(int k = B; k >= T; k--){\r\n\t\t result.add(a.get(k).get(L));\r\n\t\t }\r\n\t\t L++;\r\n\t\t }\r\n\t\t dir = (dir+1) % 4;\r\n\t\t }\r\n\t\t return result;\r\n\t}",
"public static List<Integer> spiralTraverse(int[][] array) {\n List<Integer> result = new ArrayList<>();\n int row, r=0, R=array.length-1;\n int col, c=0, C=array[0].length-1;\n\n while(r<=R && c<=C) {\n for(col=c; col<=C; col++) {\n result.add(array[r][col]);\n }\n\n for(row=r+1; row<=R; row++) {\n result.add(array[row][C]);\n }\n\n for(col=C-1; col>=c; col--) {\n if(r==R) {\n break;\n }\n result.add(array[R][col]);\n }\n\n for(row=R-1; row>r; row--) {\n if(c==C) {\n break;\n }\n result.add(array[row][c]);\n }\n\n r++;\n c++;\n R--;\n C--;\n }\n\n return result;\n }",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"public static void printPattern(int n){\n int c=1;\n for(int i=1;i<=(n+1)/2;i++){\n for(int j=1;j<=n;j++){\n System.out.print(c+\" \");\n c++;\n }\n c=c+n;\n System.out.println();\n }\n if(n%2==0)\n c=c-n;\n else\n c=c-3*n;\n for(int i=(n+1)/2;i<n;i++){\n for(int j=1;j<=n;j++){\n System.out.print(c+\" \");\n c++;\n }\n c=c-3*n;\n System.out.println();\n }\n\n\t}",
"public void printMatrix(){\n for (int row = 0; row < matrix.length; row++){\n for (int count = 0; count < matrix[row].length; count++){\n System.out.print(\"----\");\n }\n System.out.println();\n System.out.print('|');\n for (int column = 0; column < matrix[row].length; column++){\n if (matrix[row][column] == SHIP)\n System.out.print('X' + \" | \");\n else if (matrix[row][column] == HIT)\n System.out.print('+' + \" | \");\n else if (matrix[row][column] == MISS)\n System.out.print('*' + \" | \");\n else\n System.out.print(\" \" + \" | \");\n }\n System.out.println();\n }\n }",
"public int[] spiralOrder(int[][] matrix) {\n if (matrix == null || matrix.length == 0 || matrix[0].length == 0) {\n return new int[0];\n }\n\n int rows = matrix.length, cols = matrix[0].length;\n int row = 0, col = 0;\n // 方向数组代表向右、向下、向左、向上, directionIndex表示当前索引方向数组的下标\n int[][] directions = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}};\n int directionIndex = 0;\n // visited数组表示当前元素是否被访问过, total记录总的要访问的元素个数\n int total = rows * cols;\n boolean[][] visited = new boolean[rows][cols];\n int[] ans = new int[total];\n\n for (int i = 0; i < total; i++) {\n ans[i] = matrix[row][col];\n visited[row][col] = true;\n int nextRow = row + directions[directionIndex][0];\n int nextCol = col + directions[directionIndex][1];\n\n if (nextRow < 0 || nextRow >= rows || nextCol < 0 || nextCol >= cols || visited[nextRow][nextCol]) {\n directionIndex = (directionIndex + 1) % 4;\n }\n\n row += directions[directionIndex][0];\n col += directions[directionIndex][1];\n }\n\n return ans;\n }",
"public static void main(String[] args) {\n int[][] inp = new int[][] {\n {1,2,3},\n {5,6,7},\n {9,10,11}};\n \n int temp;\n \n\t for(int i = inp.length-1,j=0; i>=0 ; i--,j=0)\n {\n System.out.print(inp[i][j] + \" \");\n\t\t \n temp = i; // store old row where we started \n \n\t\t while(i+1 < inp.length && j+1 < inp[0].length)\n {\n System.out.print(inp[i+1][j+1] + \" \"); // keep print right diagonal\n i++;j++;\n }\n \n\t\t i = temp; // restore old row\n \n\t\t System.out.println();\n\t\t \n\t\t // special case - when we switch from processing row to processing column\n if(i == 0)\n {\n\t\t\t // now, column will go from 1 to inp[0].length-1\n\t\t\t \n for (int k = 1; k < inp[0].length; k++) {\n\n\t\t\t\t temp = k; // save old column\n \n\t\t\t\t System.out.print(inp[i][k] + \" \");\n\t\t\t\t \n\t\t\t\t // keep getting right diagonal\n while (i + 1 < inp.length && k + 1 < inp[0].length) {\n System.out.print(inp[i + 1][k + 1] + \" \");\n i++;\n k++;\n }\n \n\t\t\t\t k = temp;\n \n\t\t\t\t i = 0;\n \n\t\t\t\t System.out.println();\n\n }\n }\n }\n \n }",
"public static void printMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tfor (int i = 0; i < matrix.size(); i++){\r\n\t\t\tchar index = (char) ('A' + i);\r\n\t\t\tSystem.out.print(index);\r\n\t\t\tSystem.out.print(\":\\t \"); \r\n\t\t\tfor (int j = 0; j < matrix.get(i).size(); j++){\r\n\t\t\t\tSystem.out.print(matrix.get(i).get(j));\r\n\t\t\t\tif (j != matrix.get(i).size() - 1) System.out.print(\"\\t|\");\r\n\t\t\t\telse System.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void rotate(int [][]matrix, int n){\n for(int layer = 0; layer < n / 2 ; ++layer){\n int first = layer;\n int last = n - 1 - layer;\n for(int i = first; i < last; ++i){\n int offset = i - first;\n //save top\n int top = matrix[first][i];\n //left to top\n matrix[first][i] = matrix[last-offset][first];\n //bottom to left\n matrix[last-offset][first] = matrix[last][last-offset];\n //right to bottom\n matrix[last][last-offset] = matrix[i][last];\n //top to right\n matrix[i][last] = top;\n }\n }\n }",
"public void displayMatrix(){\r\n\t\t\r\n\t\tfor (int i = 0; i < head.getOrder(); i++) {\r\n\t\t\tElementNode e = head.gethead();\r\n\t\t\tif( i > 0){\r\n\t\t\t\tfor (int j = 0; j <= i-1; j++) {\r\n\t\t\t\t\te = e.getNextRow();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\tfor (int j = 0; j < head.getOrder(); j++) {\r\n\t\t\t\tSystem.out.print( e.getData() + \" \");\r\n\t\t\t\te = e.getNextColumn();\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint [][] matrix={\r\n\t\t\t\t{10,15,2,76,-9},\r\n\t\t\t\t{85,-22,4,35,99},\r\n\t\t\t\t{64,68,31,7,-3},\r\n\t\t\t\t{1,53,94,33,8}\r\n\t\t};\r\n\t\t\r\n\t\tfor(int[] fila:matrix){\r\n\t\t\tSystem.out.println();//le da salto de linea cuando termina cada fila\r\n\t\t\tfor (int z:fila){\r\n\t\t\t\tSystem.out.print(z + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*int [][] matrix= new int[4][5];//primera dimension, segunda dimension\r\n\t\t\r\n\t\tmatrix [0][0]=5;\r\n\t\tmatrix [0][1]=18;\r\n\t\tmatrix [0][2]=29;\r\n\t\tmatrix [0][3]=80;\r\n\t\tmatrix [0][4]=3;\r\n\t\t\r\n\t\tmatrix [1][0]=-9;\r\n\t\tmatrix [1][1]=71;\r\n\t\tmatrix [1][2]=32;\r\n\t\tmatrix [1][3]=-24;\r\n\t\tmatrix [1][4]=62;\r\n\t\t\r\n\t\tmatrix [2][0]=54;\r\n\t\tmatrix [2][1]=22;\r\n\t\tmatrix [2][2]=-39;\r\n\t\tmatrix [2][3]=1;\r\n\t\tmatrix [2][4]=97;\r\n\t\t\r\n\t\tmatrix [3][0]=74;\r\n\t\tmatrix [3][1]=43;\r\n\t\tmatrix [3][2]=39;\r\n\t\tmatrix [3][3]=96;\r\n\t\tmatrix [3][4]=-63;\r\n\r\n\t\tfor (int i=0; i<4; i++){\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int j=0; j<5; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\t\t}*/\r\n\t}",
"public static void main(String[] args) {\n\t\tint length = 9;\n\t\tint counter = 1;\n\t\t\tfor ( int x = (length+1)/2; x<=length;x++){\n\t\t\t\tfor (int j = x-counter; j>=0; j--){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tfor (int i =1;i<=counter;i++){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tcounter+=2;\n\t\t\t}\n\t\t\tcounter = length-2;\n\t\t\t\n\t\t\t// length = 9, counter is 7 , j = 1, i = 7, x=8\n\t\t\tfor ( int x = (length-1); x>=(length+1)/2; x--){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tfor (int j = 1; j<=x-counter; j++){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tfor (int i =counter;i>=1;i--){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tcounter-=2;\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(new SpiralMatrix().spiralOrder(new int[][] {{1,2,3,4},{5,6,7,8},{9,10,11,12}}));\r\n\t}",
"private void imprimirMatriz(int[][] m) {\n\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tSystem.out.println(\"M[\" + i + \"][\" + j + \"] = \" + m[i][j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t}",
"public void print() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n System.out.print(matrix[i][j] + \" \");\n }\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n ArrayList<ArrayList<Integer>> rows = new ArrayList<>();\n\n for (int i = 0; i < n; i++) {\n int r = scan.nextInt();\n ArrayList<Integer> row = new ArrayList<>();\n\n for (int j = 0; j < r; j++) {\n row.add(scan.nextInt());\n }\n rows.add(row);\n }\n\n int q = scan.nextInt();\n for (int k = 0; k < q; k++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n try {\n System.out.println(rows.get(x - 1).get(y - 1));\n } catch (IndexOutOfBoundsException e) {\n System.out.println(\"ERROR!\");\n }\n }\n }",
"public static void main(String[] args) {\n\r\n\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\tSystem.out.print(\"*\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int j = 1; j <= 4; j++) {\r\n\t\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\t\tSystem.out.print('*');\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\r\n\t\t*\t\t\t\t1\t\t\t1\r\n\t\t**\t\t\t\t2\t\t\t2\r\n\t\t***\t\t\t\t3\t\t\t3\r\n\t\t****\t\t\t4\t\t\t4\r\n\t\t*****\t\t\t5\t\t\t5\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 5;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\t规律:j + k = 5 换句话说:k = 5 - j;\r\n\t\t****\t\t\t1\t\t\t4\r\n\t\t***\t\t\t\t2\t\t\t3\r\n\t\t**\t\t\t\t3\t\t\t2\r\n\t\t*\t\t\t\t4\t\t\t1\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 4;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= 5 - j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}",
"public static void LeMatriz(int M[ ][ ], int n) {\n\t\tint i,j;\n\t\tfor (i=0;i<n;i++){\n\t\t\tSystem.out.print( \"\\n\");\n\t\t\tfor (j=0;j<n;j++){\n\t\t\t\tM[i][j] = teclado1.nextInt();\n\t\t\t}\n\t\t}\n\t}",
"public static void show(int mat3d[][][]) {\n //for loop which runs 3 times again\n for(int s=0; s<3; s++) {\n //this for loop does the same as the first method\n for(int j=0; j<(3+2*s); j++) {\n //for follows pattern of array ^^\n for(int c=0; c<(s+j+1); c++) {\n //prints of the array slot for s,j,c\n System.out.print(mat3d[s][j][c]);\n //prints out a blank space to seperate\n System.out.print(\" \");\n }\n //prints out blank line to seperate \n System.out.println();\n }\n \n System.out.println();\n }\n }",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint x = Integer.parseInt(in.readLine()), y = Integer.parseInt(in.readLine());\n\t\tcurrentNum = x+1;\n\t\tspiral = new int[(int)Math.ceil(Math.sqrt(y-x))][(int)Math.ceil(Math.sqrt(y-x))];\n\t\tint start = (int)Math.ceil(spiral.length/2.0)-1;\n\t\tif(x==y) {\n\t\t\tSystem.out.println(x);\n\t\t\tSystem.exit(0);\n\t\t}else if(x+1==y) {\n\t\t\tSystem.out.println(x);\n\t\t\tSystem.out.println(y);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tspiral[start][start] = x;\n\t\tcurrentX = start;\n\t\tcurrentY = start;\n\t\twhile(currentNum<=y) {\n\t\t\tif(direction==0) {\n\t\t\t\tif(down()) {\n\t\t\t\t\tdirection++;\n\t\t\t\t\tcurrentNum++;\n\t\t\t\t\tcurrentY++;\n\t\t\t\t}else {\n\t\t\t\t\tdirection=3;\n\t\t\t\t}\n\t\t\t}else if(direction==1) {\n\t\t\t\tif(right()) {\n\t\t\t\t\tdirection++;\n\t\t\t\t\tcurrentNum++;\n\t\t\t\t\tcurrentX++;\n\t\t\t\t}else {\n\t\t\t\t\tdirection--;\n\t\t\t\t}\n\t\t\t}else if(direction==2) {\n\t\t\t\tif(up()) {\n\t\t\t\t\tdirection++;\n\t\t\t\t\tcurrentNum++;\n\t\t\t\t\tcurrentY--;\n\t\t\t\t}else {\n\t\t\t\t\tdirection--;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(left()) {\n\t\t\t\t\tdirection = 0;\n\t\t\t\t\tcurrentNum++;\n\t\t\t\t\tcurrentX--;\n\t\t\t\t}else {\n\t\t\t\t\tdirection--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < spiral.length; i++) {\n\t\t\tfor(int j = 0; j < spiral[i].length; j++) {\n\t\t\t\tSystem.out.print(spiral[j][i]!=0 ? spiral[j][i]+\" \" : \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void printMatrix(int[][] A){\n //must test if it's rectangular\n //even though it must be rectangular based on input\n //use inbedded for loop for test\n int size=A[0].length;\n //initial value that A[n].ength must equal for all n<A.length\n for(int g=1; g<A.length; g++){\n //test if they are all equal\n if(size==A[g].length){\n //nothign happens if its okay\n }\n else{\n System.out.print(\"Error. Matrix is not rectangular.\");\n }\n }\n //now print it\n for(int f=0; f<A.length; f++){\n for(int m=0; m<size; m++){\n System.out.print(A[f][m]+\" \");\n }\n System.out.println();\n }\n \n }",
"public static void main(String[] args) {\n\t\tint[][] m = Method.initRandomMatrix(5, 5, 20);\r\n\t\tMethod.print(m);\r\n\t\tSystem.out.println(\"Вариант отображения согласно заданию:\");\r\n\t\tfor (int i = 0; i < m.length; i++) {\r\n\t\t\tif (i % 2 == 0) {\r\n\t\t\t\tfor (int j = m[i].length - 1; j >= 0; j--) {\r\n\t\t\t\t\tSystem.out.print(m[i][j] + \"\\t\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (int j = 0; j < m[i].length; j++) {\r\n\t\t\t\t\tSystem.out.print(m[i][j] + \"\\t\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}",
"public static void print(int n) {\n int[][] data = new int[n][n];\n data[0][0] = 1;\n data[n - 1][n - 1] = n * n;\n\n //将蛇形矩阵按照正对角线分为上半部分和下半部分\n //现在先来设计上半部分,并且负责对角线,上半部分可将斜线的顺序记为k,按k的奇偶性进行判断\n //以斜线为基准打印\n for (int k = 1; k <= (n - 1); k++) {\n if (k % 2 == 1) {//当k为奇数时,代表每条斜线的最小值在上方\n data[0][k] = 1 + k * (k + 1) / 2;\n for (int i = 1; i <= k; i++) {\n data[i][k - i] = data[0][k] + i;//行递增,列递减\n\n }\n } else {//当k为偶数时,代表每条斜线的最小值在下方\n data[k][0] = 1 + k * (k + 1) / 2;\n for (int i = 0; i <= k; i++) {\n data[k - i][i] = data[k][0] + i;//行递减,列递增\n }\n }\n }//上半部分就已经设计好了,接着设计下半部分\n\n //下半部分就会显得比较复杂,首先要先判断n的奇偶性,还要再判断k的奇偶性\n //从左向右按照从大到小的顺序进行斜线的连接,同样以k代表斜线的序号\n if (n % 2 == 0) {//如果n为偶数\n for (int k = 1; k <= (n - 2); k++) {\n if (k % 2 == 1) {//当k为奇数的时候每条斜线的最大值在上方\n data[k][n - 1] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[k + i][n - 1 - i] = data[k][n - 1] - i;//行递增,列递减\n }\n } else {//当k为偶数的时候,每条斜线的最大值在下方\n data[n - 1][k] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[n - 1 - i][k + i] = data[n - 1][k] - i;//行递减,列递增\n }\n }\n }\n } else {//如果n为奇数,那么就是相反的\n for (int k = 1; k <= (n - 2); k++) {\n if (k % 2 == 0) {//当k为偶数的时候每条斜线的最大值在上方\n data[k][n - 1] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[k + i][n - 1 - i] = data[k][n - 1] - i;//行递增,列递减\n }\n } else {//当k为奇数的时候,每条斜线的最大值在下方\n data[n - 1][k] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[n - 1 - i][k + i] = data[n - 1][k] - i;//行递减,列递增\n }\n }\n }\n }//下半部分的就设计好咯\n\n //接下来就是显示矩阵咯\n\n for (int i = 0; i < data.length; i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.print(data[i][j] + \"\\t\");\n }\n System.out.println();\n }//结束显示,结束print方法,进入main方法\n }",
"public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}",
"public void print_maze () {\n \n System.out.println();\n\n for (int row=0; row < grid.length; row++) {\n for (int column=0; column < grid[row].length; column++)\n System.out.print (grid[row][column]);\n System.out.println();\n }\n\n System.out.println();\n \n }",
"public static void main(String[] args) {\n System.out.println(\"1.)\");\n int i,j;\n int n=6;\n for(i =1;i<=n;i++){\n\n for(j=1;j<=n-i;j++){\n System.out.print(\" \");\n }\n for(j=1;j<=i;j++){\n System.out.print(\"* \");\n }\n System.out.println();\n }\n\n // pattern 2\n int num=1;\n System.out.println(\"2.)\");\n for(i =1;i<=n;i++){\n\n for(j=1;j<=n-i;j++){\n System.out.print(\" \");\n }\n for(j=1;j<=i;j++){\n System.out.print(num+\" \");\n num=num+2;\n }\n System.out.println();\n }\n //pattern3\n System.out.println(\"3.)\");\n int rows = 2*n-1;\n for(i=1;i<=rows;i++){\n\n if(i<=n) {\n for (j = 1; j <= i; j++) {\n System.out.print(\"* \");\n }\n }\n else{\n for (j=1;j<=rows-i+1;j++)\n {\n System.out.print(\"* \");\n }\n }\n System.out.println();\n\n }\n\n //pattern4\n System.out.println(\"4.)\");\n System.out.println(\"*\");\n\n for(i=2;i<=n-1;i++){\n System.out.print(\"* \");\n for(j=1;j<=i-2;j++){\n System.out.print(\" \");\n }\n System.out.print(\" *\");\n System.out.println();\n\n }\n for(i=1;i<=n;i++){\n System.out.print(\"* \");\n }\n }",
"public static void main(String[] args) {\n \n int num = 5;\n\n for(int i=1; i<=num; i++){\n\n for (int x=1; x<=i; x++){\n System.out.print(\" \");\n }\n for(int y = i; y<=num; y++ ) System.out.print(\"*\");\n\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tif (j<=1) {\r\n\t\t\t\tfor (int m = 5 - j; m >= i; m--) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}}\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}",
"public static void m9() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\t\r\n\t for(int j =1;j<=i;j++) {\r\n\t\t System.out.print(\" \");\r\n\t }\r\n\t char ch ='A';\r\n\t for(int k=0;k<=(5-i);k++) {\r\n\t System.out.print(ch);\r\n\t ch++;\r\n\t }\r\n\t System.out.println();\r\n\t}\r\n}",
"void resDiagonale(){ \r\n for (int i = 0; i<N; i=i+nCarre) \r\n \tresCarre(i, i); \r\n }",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n System.out.println(\"Enter value\");\n int n = sc.nextInt();\n \n for (int rowCount = 1; rowCount <= n; rowCount++){\n for (int space = 1; space <=n-rowCount; space++){\n System.out.print(\" \");\n }\n for (int star = 1; star<=rowCount; star++ ){\n System.out.print(\"*\");\n }\n System.out.println(\" \");\n }\n \n \n \n }",
"public static void main(String[] args) {\n int[][] matrix = new int[][]{{1,2,3},{4,5,6},{7,8,9}};\n\n rotate(matrix);\n for (int[] rows : matrix) {\n for (int col : rows) {\n System.out.print(col + \" | \");\n }\n System.out.print(\"\\n\");\n }\n }",
"public static void main(String args[]) {\n\n\t\tint i = 0, j = 0;\n\t\t// 'i' will be the number of rows you want to print\n\t\tfor(i = 0; i < 3; i++) {\n\t\t\tfor(j = 0; j < 5; j++) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\"); // bring to new line\n\t\t}\n\n\n\t\tSystem.out.println(\"--------------------------------------\");\n\n\t\t// for getting same rows and columns; i &j will be same\n\t\tfor(i = 0; i < 3; i++) {\n\t\t\tfor(j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\"); // bring to new line\n\t\t}\n\n\t\tSystem.out.println(\"--------------------------------------\");\n\n\t\t// Trick for building a triangular output like, use j <= i as the conditional\n\t\t/*\n\n\t\t\t*\n\t\t\t* *\n\t\t\t* * *\n\t\t\t* * * *\n\n\t\t*/\n\t\tfor(i = 0; i < 3; i++) {\n\t\t\tfor(j = 0; j <= i; j++) {\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\"); // bring to new line\n\t\t}\n\n\t\tSystem.out.println(\"--------------------------------------\");\n\n\t\t// Print numbers\n\t\t/* this combines printing row numbers 1,2,3 etc combined with above logic for triangular shape.\n\n\t\t\t1\n\t\t\t2 2\n\t\t\t3 3 3\n\n\t\t * */\n\t\tfor(i = 1; i <= 3; i++) {\n\t\t\tfor(j = 1; j <= i; j++) {\n\t\t\t\tSystem.out.print(i+ \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\"); // bring to new line\n\t\t}\n\n\t\t// combining other smaller tricks like for i+j, if odd number print x and\n\t\t// for even print y in a specific way can give rise to many such pattern problems\n\n\t}",
"public static void main(String[] args) {\n\t\tint num=4;\r\n\t\tfor(int i=0;i<=num;i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j=0;j<=num;j++) {\r\n\t\t\t\t\t\tif(j<=i && i+j>=num) \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t}",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Enter n :\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num = scanner.nextInt();\n\t\t\n\t\tint mat[][] = new int[num][num];\n\t\tint mirr[][] = new int[num][num];\n\t\t\n\t\tint sum =0;\n\t\t\n\t\tfor(int i =0; i<num;i++)\n\t\t{\n\t\t\tfor(int j=0;j<num;j++)\n\t\t\t{\n\t\t\t System.out.println(\"Enter \"+i+\"\"+j+\" matrix\");\n\t\t\t int data = scanner.nextInt();\n\t\t\t\tmat[i][j]=data;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t System.out.println(\"Original Matrix is :\");\n\t \n\t \n\t for(int i =0; i<num;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<num;j++)\n\t\t\t\t{\n\t\t\t\t \n\t System.out.print(mat[i][j]+\" \");\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t \n\t\t\n\t\t\n\t\tfor(int i =0; i<num;i++)\n\t\t{\n\t\t\tint img = 0;\n\t\t\tfor(int j=num-1;j>=0;j--)\n\t\t\t{\n\t\t\t \n\n int temp = mat[i][j];\n mirr[i][img]=temp;\n img++;\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t \n\t\t\n\t\t\n\t\t\n System.out.println(\"\\n2Mirror Matrix is :\");\n \n \n for(int i =0; i<num;i++)\n\t\t{\n\t\t\tfor(int j=0;j<num;j++)\n\t\t\t{\n\t\t\t \n System.out.print(mirr[i][j]+\" \");\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n \n \n \n\t}",
"public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint c=num*2-1;//5\r\n\t\tfor(int j=0 ; j< c ; j++){//j: 0, 1, 2,3 4\r\n\t\t\t\r\n\t\t\tif(j<num) {///j: 0, 1, 2\r\n\t\t\t\t// 1 ,2,3 : 0+1, 1+1, 2+1\r\n\t\t\t\tfor(int i=0; i<j+1 ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}else {//j: 3,4\r\n\t\t\t\t//2,1 : 5-3, 5-4\r\n\t\t\t\tfor(int i=0; i<c-j ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"private static void writeRiddle(int[][] a) {\n for (int i=0; i<9; ++i) {\n for (int j=0; j<9; ++j) {\n System.out.print(a[i][j]+ \" \");\n if ((j+1)%3==0) System.out.print(\" | \");\n }\n \n if ( (i+1)%3==0 && i!=8 ) {\n System.out.print(\"\\n--------------------------\");\n }\n \n System.out.print(\"\\n\");\n }\n \n System.out.println(\"\\n\");\n }",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tfor(int j=n;j>=i;j--)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=1;k<2*i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\t/*for(int l=2;l<=i;l++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}*/\n\t\t\tSystem.out.println();\n\t\t}\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\tfor(int j=3;j<=30;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void m11() {\r\n\tint size =4;\r\n\tfor(int i=size;i>=-size;i--) {\r\n\t\t\r\n\t\tfor(int j=1;j<=Math.abs(i);j++) {\r\n\t\t\t System.out.print(\" \");\r\n\t\t }\r\n\t\tchar ch = 'A';\r\n\t\tfor(int k =size;k>=Math.abs(i) ;k--) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\t System.out.println();\r\n\t}\r\n}",
"public static void main(String[] args) {\n\t\tint num = 5;\n\t\tfor(int i = 1;i<=num;i++) {\n\t\t\tfor(int j=1; j<=num;j++) {\n\t\t\t\tif(i==j || i+j ==num+1)\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\telse {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\tint M = in.nextInt(); // row\n\t\tint N = in.nextInt(); // column\n\t\tint R = in.nextInt(); // the number of times\n\t\tM = 4;\n\t\tN = 4;\n\t\tR = 1;\n\t\tint[][] matrix = {{1 ,2 ,3 ,4},\n\t\t\t\t\t\t {5 ,6 ,7 ,8},\n\t\t\t\t\t\t {9 ,10,11,12},\n\t\t\t\t\t\t {13,14,15,16}};\n\t\tint [][] res = new int[M][N];\n\t\t\n\t}",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tArrayList<ArrayList> matrix = new ArrayList<ArrayList>();\r\n\r\n\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\tArrayList<Integer> row = new ArrayList<Integer>();\r\n\r\n\t\t\tfor (int j = 0; j <= 10; j++)\r\n\t\t\t\trow.add(i * j);\r\n\r\n\t\t\tmatrix.add(row);\r\n\r\n\t\t}\r\n\t\tfor (ArrayList ar : matrix)\r\n\t\t\tSystem.out.println(ar);\r\n\t}",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n printSpiralRec(root);\n System.out.println();\n printSpiralIte(root);\n }",
"private void printInScreen(int cols, int rows, Result[] myResults) {\n\t\t//6*8\n\t\t\n\t\tString matrix[][] = new String[rows][cols];\n\t\t\n\t\t//Llenar matriz con espacios o guiones\n\t\tfor(int i=0; i<rows; i++) {\n\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\tmatrix[i][j] = \"-\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Encabezados de la matrix\n\t\tint maxChars = 20;\n\t\tString charToFill = \" \";\n\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tfor(int j=0; j<cols; j++) {\n\t\t\tmatrix[0][j] = getHeaders(j, cols);\n\t\t\t\n\t\t\tif((j%2) == 0)\n\t\t\t\tfillWithSpaces(matrix, 0, j, maxChars, charToFill);\n\t\t}\n\n\t\t//Add separator rows\n\t\tfor(int i=1; i<rows; i+=2) {\n\t\t\t\n\t\t\tfor(int j=0; j<cols; j+=2) {\n\t\t\t\tmatrix[i][j] = ROW_SEPARATOR;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Add results\n\t\tint indexAux = 0;\n\n\t\tfor(int i=2; i<rows; i+=2) {\n\t\t\t\n\t\t\t\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\t\n\t\t\t\tif(j==0) {\n\t\t\t\t\tmatrix[i][j] = myResults[indexAux].getElements() + \" elements\";\n\t\t\t\t\tfillWithSpaces(matrix, i, j, maxChars, charToFill);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(j==2) {\n\t\t\t\t\tmatrix[i][j] = myResults[indexAux].getLinealSearch() + \" milliseconds\";\n\t\t\t\t\tfillWithSpaces(matrix, i, j, maxChars, charToFill);\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(j==4) {\n\t\t\t\t\tmatrix[i][j] = myResults[indexAux].getBinarySearch() + \" milliseconds\";\n\t\t\t\t\tfillWithSpaces(matrix, i, j, maxChars, charToFill);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tmatrix[i][j] = \" \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tindexAux++;\n\t\t}\n\t\t\n\t\t//Draw the matriz\n\t\tfor(int i=0; i<rows; i++) {\n\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\tSystem.out.print(matrix[i][j]);\n\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void displayMaze(){\n System.out.println(\"---- SOLUTION------\");\n for(int j = 0; j < maze.length; j++){\n for(int k = 0; k < maze[0].length; k++){\n System.out.print(maze[j] [k]);\n }\n System.out.println();\n\n }\n }",
"public int[][] generateMatrix(int n) {\n int[][] matrix = new int[n][n];\n int counter = 1;\n for(int layer = 0; layer < (n + 1)/2; layer++){\n matrix[layer][layer] = counter++;\n for(int i = layer + 1; i < n - layer; i++) matrix[layer][i] = counter++;\n for(int i = layer + 1; i < n - layer; i++) matrix[i][n-layer-1] = counter++;\n //if(layer == (n + 1)/2 - 1 && n % 2 == 1) break;\n for(int i = n - layer - 2; i >= layer; i--) matrix[n-layer-1][i] = counter++;\n for(int i = n - layer - 2; i > layer; i--) matrix[i][layer] = counter++;\n }\n return matrix;\n }",
"void printMatrix(int[][] matrix){\n\t\tfor(int i = 0; i < matrix.length; i++){\n\t\t\tfor(int j = 0; j < matrix[i].length; j++){\n\t\t\t\tSystem.out.print(matrix[i][j] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void printEdges(){\n System.out.print(\" |\");\n for(int i=0;i<size;i++)\n System.out.print(\" \"+i+\" \");\n System.out.print(\"\\n\");\n for(int i=0;i<size+1;i++)\n System.out.print(\"-------\");\n System.out.print(\"\\n\");\n for(int i=0;i<size;i++){\n System.out.print(\" \"+i+\" |\");\n for(int j=0;j<size;j++){\n System.out.print(\" \"+Matrix[i][j]+\" \");\n }\n System.out.print(\"\\n\");\n }\n }"
]
| [
"0.76276886",
"0.7273642",
"0.72533",
"0.70745724",
"0.70016974",
"0.684545",
"0.6838195",
"0.66326255",
"0.65448076",
"0.64841855",
"0.64429325",
"0.62444335",
"0.61958426",
"0.6180775",
"0.6139878",
"0.6071242",
"0.603015",
"0.60213524",
"0.60109156",
"0.6010184",
"0.5993616",
"0.5985813",
"0.59585947",
"0.5900813",
"0.58839613",
"0.5874121",
"0.5863042",
"0.58206064",
"0.5796268",
"0.57859814",
"0.5763638",
"0.574979",
"0.574309",
"0.5732525",
"0.5719261",
"0.57169163",
"0.5714311",
"0.57079303",
"0.570773",
"0.57039326",
"0.57028985",
"0.5655053",
"0.5651491",
"0.5651325",
"0.5635838",
"0.5618901",
"0.5610337",
"0.5605214",
"0.5604128",
"0.5594135",
"0.55907923",
"0.55780524",
"0.5575775",
"0.55743766",
"0.5567544",
"0.55657125",
"0.5552793",
"0.55527866",
"0.55507517",
"0.5550381",
"0.5550362",
"0.55482805",
"0.55452394",
"0.55446965",
"0.55431515",
"0.55304694",
"0.55253494",
"0.55031765",
"0.54979527",
"0.5489258",
"0.54868215",
"0.5476991",
"0.5475946",
"0.54731035",
"0.54529554",
"0.5452046",
"0.5449129",
"0.54422736",
"0.5432972",
"0.54215926",
"0.5418749",
"0.54163146",
"0.5412589",
"0.5389349",
"0.53881043",
"0.5387527",
"0.5384363",
"0.5380476",
"0.5359958",
"0.53523916",
"0.5350952",
"0.5344094",
"0.5342071",
"0.5340559",
"0.53373456",
"0.5334685",
"0.53339696",
"0.53299206",
"0.5329529",
"0.53291565"
]
| 0.79903746 | 0 |
Instantiates a new VerifyPhonePage. | public VerifyPhonePage(WebDriver driver)
{
super(driver);
this.driver= driver;
softAssert = new SoftAssert();
PageFactory.initElements(new AppiumFieldDecorator(this.driver, Duration.ofSeconds(30)),this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NewCZ_DPPHRProcessPage(){ super(); }",
"public PhoneNumber() {\n }",
"public ContactPage() {\n\t\t\t\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}",
"private void init(){\n mPhoneNumber = \"\";\n mSelectedCountry = Utils.getDefaultCountry(this);\n mPresenter = new PhoneSignInSignUpPresenter();\n mPresenter.attachView(this);\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState)\r\n {\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.page_modify_phonenumber);\r\n \r\n this.init();\r\n \r\n }",
"public PhoneBook(){\n\n }",
"public ContactsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"Page createPage();",
"public void getVerified() {\n Toast.makeText(this, \"Enter your registered mobile number\", Toast.LENGTH_LONG).show();\n\n authCallback = new AuthCallback() {\n\n @Override\n public void success(DigitsSession session, final String phoneNumber) {\n\n //In case phone number gets verified.. call successMethod() function..\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }\n\n @Override\n public void failure(DigitsException exception) {\n //In case phone number isn't verified, finish() this activity displaying appropriate toast..\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }\n };\n\n Digits.clearActiveSession();\n getAuthCallback();\n AuthConfig.Builder authConfigBuilder = new AuthConfig.Builder()\n .withAuthCallBack(authCallback)\n .withPhoneNumber(\"+91\");\n Digits.authenticate(authConfigBuilder.build());\n }",
"private void verifyPhoneNumber() {\n showSnackbar(\"Verifying Phone Number\");\n\n //Remove Social Sign-ins\n// disableViews(mBinding.imageButtonFacebook, mBinding.imageButtonGoogle);\n //Remove Login Button\n disableViews(mBinding.buttonLogin);\n\n mPhoneNumber = getTextFromTextInputLayout(mBinding.textPhoneNumber);\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"@Override\n public void onClick(View view) {\n\n String numberPhone = inputPhoneNumEt.getText().toString();\n if(TextUtils.isEmpty(numberPhone)){\n showToastMessage(\"phone number required!\");\n }else{\n //loading bar put here\n ///...\n // [START start_phone_auth]\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n numberPhone, // Phone number to verify\n 60, // Timeout duration\n TimeUnit.SECONDS, // Unit of timeout\n PhoneLoginActivity.this, // Activity (for callback binding)\n mCallbacks); // OnVerificationStateChangedCallbacks\n // [END start_phone_auth]\n }\n }",
"@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"public void onNextClicked(View v) {\n // TODO: format phone number\n final String email = etEmail.getText().toString();\n final String mobile = etMobile.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty() || mobile.isEmpty() || password.isEmpty()) {\n Toast.makeText(this, \"Please complete the form\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (password.length() < 5) {\n Toast.makeText(this, \"Password must have at least 5 characters\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (!DeviceUtil.hasConnection(this)) {\n Toast.makeText(this, \"No Internet connection\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n final IdentityVerifier identityVerifier = new IdentityVerifier(this, new IdentityVerifier.ResultCallback() {\n @Override\n public void handleResult(int result) {\n if (result == IdentityVerifier.RESULT_PASS) {\n clearError();\n goToCreateProfile(email, mobile, password);\n } else {\n showError(result);\n }\n }\n\n @Override\n public void handleFault(ParseException fault) {\n if (fault != null) {\n Logger.e(TAG, fault.getMessage());\n Toast.makeText(RegisterActivity.this, fault.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n identityVerifier.verify(email, mobile);\n }",
"private void setupView() {\n\t\tphoneEditView = (EditText) findViewById(R.id.edit_phone);\n\n\t\tconfirmBtn = (ImageView) findViewById(R.id.btnStart);\n\t\tconfirmBtn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tboolean isRegularPhoneNumber = phoneEditView.getText()\n\t\t\t\t\t\t.toString().matches(\"[0-9]{10}\");\n\t\t\t\tphoneCheckRes(isRegularPhoneNumber);\n\t\t\t}\n\t\t});\n\t}",
"public ParticipantPage(RegistrationManager rm) {\n\t\tthis.rm = rm;\n\t\tinitComponents();\n\t}",
"public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public OnlineVerificationView() {\n }",
"@And(\"^I enter the plenti phone number using mobile website$\")\n public void I_enter_the_plenti_phone_number_using_mobile_website() throws Throwable {\n TextBoxes.typeTextbox(Elements.element(\"plenti_enroll.phone_number\"), TestUsers.getuslCustomer(null).getUser().getProfileAddress().getBestPhone());\n }",
"public DeveloperRegistrationPage enterPhone(String data){\n\t \tString phone = prop.getProperty(\"DeveloperRegistration.Phone.Name\");\t \n\t \tenterByName(phone, data);\n\t\treturn this;\n\t}",
"@Override\n public void userPageMyTickets() {\n String phone_number = getphoneNumber();\n Intent intent = new Intent(userPageModel.this, myTicketsPageModel.class);\n intent.putExtra(\"phone\",phone_number);\n startActivity(intent);\n }",
"private void openVerificationActivity() {\n }",
"private void showVerificationDialog(String phoneNumber) {\n\t\tnew AlertDialog.Builder(this)\n\t\t\t\t.setTitle(R.string.phoneVerification_confirmTitle)\n\t\t\t\t.setMessage(getString(R.string.phoneVerification_confirmText, phoneNumber))\n\t\t\t\t.setPositiveButton(R.string.app_yes, (dialog, which) -> requestVerificationCode(phoneNumber))\n\t\t\t\t.setNegativeButton(R.string.app_no, (dialog, which) -> phoneInput.getEditText().selectAll())\n\t\t\t\t.show();\n\t}",
"public MockPageContext() {\n super();\n MockPageContext.init();\n }",
"public TextFieldPage() {\n initView();\n }",
"public void waitForPhoneVerification() \n\t{\n\t\tString xp=\"//android.widget.TextView[contains(@text,'Verify')]\"; \n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 40).until(ExpectedConditions.visibilityOf(phoneVerificationIdentifier));\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Phone Verification page not found\\n\"+e.getMessage());\n\t\t}\n\t}",
"public LoginPage() {\n }",
"public FindLeadPage enterPhoneNo(String phNo){\n\t\tenterByName(prop.getProperty(\"MyLead.phoneno.name\"), phNo);\n\t\treturn this;\n\t}",
"public MyProfilePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"@Test\n public void phoneNumber_isCorrect() {\n loginFragment = new LoginFragment();\n\n assertEquals(correctNum, loginFragment.getPhoneNumber(baseNumber));\n }",
"private void initialise() {\n progressBar = (ProgressBar) view.findViewById(R.id.deliver_page_progress_bar);\n getCurrentAddressButton = (Button) view.findViewById(R.id.get_current_address);\n\n contactPersonEditText = (EditText) view.findViewById(R.id.contact_person);\n phoneNumberEditText = (EditText) view.findViewById(R.id.phone_number);\n emailEditText = (EditText) view.findViewById(R.id.email);\n houseNumberEditText = (EditText) view.findViewById(R.id.house_number);\n streetAddressEditText = (EditText) view.findViewById(R.id.street_address);\n //clearErrors();\n\n\n// normalDeliveryButton.setOnClickListener(this);\n// expressDeliveryButton.setOnClickListener(this);\n getCurrentAddressButton.setOnClickListener(this);\n\n sharedData = SharedData.getSingletonObject();\n\n ApplicationPreferences preferences = new ApplicationPreferences();\n String phone_number = preferences.getUserRegisterPhone(getContext());\n\n phoneNumberEditText.setText(phone_number);\n hideSoftKeyboard();\n }",
"private ShowCreateAnswerPage() {\n this.service = UserService.retrieve();\n this.validator = Validator.retrieve();\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n loading.setVisibility(View.VISIBLE);\n etOtp.setText(code);\n etOtp.setEnabled(false);\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"public void setPhoneNumber() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Phone Number : \"+phoneNumber);}",
"@Override\n public void verifyHasPhone() {\n }",
"public PageControl() {}",
"public void onCreate() {\r\n\t\trelayState = null;\r\n\t\tdomainName = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getDomain().getName();\r\n\t\tgoogleAccount = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getGoogleAccount();\r\n\t\tregistry = ((Person) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getRegistry();\r\n\t\tacsForm = new AcsForm(domainName);\r\n\t\tappendChild(acsForm);\r\n\t\ticeForm = new IceForm();\r\n\t\tappendChild(iceForm);\r\n\t\ticeAppsController = (IceAppsController) SpringUtil.getBean(\"iceAppsController\");\r\n\t}",
"public StartPage() {\n initComponents();\n \n }",
"public Page(PageInformation pageInfo)\n\t{\n\t\tthis.pageInfo = pageInfo;\n\t\tthis.contentInstructions = new ArrayList<ContentInstruction>();\n\t\tthis.pageContent = new HashMap<Integer, Content>();\n\t\tnextContentNumber = 0;\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometimes the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n\n codeValues_into_views(code);\n\n stop_timer();\n //verify the code\n verifyVerificationCode(code);\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_phone_number, container, false);\n\n phoneEditText = view.findViewById(R.id.phone_number_edit_text_sign_in_activity);\n signInBtn = view.findViewById(R.id.sign_in_btn_sign_in_activity);\n progressBar = view.findViewById(R.id.progress_bar_sign_in_activity);\n\n db = FirebaseFirestore.getInstance();\n\n signInBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String phoneNumber = phoneEditText.getText().toString();\n\n if (phoneNumber.length() == 10){\n\n\n progressBar.setVisibility(View.VISIBLE);\n signInBtn.setEnabled(false);\n\n Fragment fragment = new VerificationCodeFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"phone\", phoneNumber);\n fragment.setArguments(bundle);\n getFragmentManager().beginTransaction().replace(R.id.sign_in_frame_layout_sign_in_activity, fragment).commit();\n\n } else\n Toast.makeText(getContext(), \"בבקשה הכנס מספר טלפון חוקי\", Toast.LENGTH_SHORT).show();\n\n }\n });\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, final ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_verification, container, false);\n final String st = getArguments().getString(ARGS_PHONE);\n final String cd = getArguments().getString(ARGS_VER_CODE);\n textView = (TextView) view.findViewById(R.id.phone_numbah);\n textView.setText(st);\n\n button = (Button) view.findViewById(R.id.submit_btn);\n\n myEditText = (EditText) view.findViewById(R.id.ver_edit);\n myEditText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n String text = s.toString();\n addSpaces(text);\n }\n });\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String temp = myEditText.getText().toString();\n temp = temp.replaceAll(\" \", \"\");\n MainActivity m = (MainActivity) getActivity();\n PhoneAuthCredential phoneCre = PhoneAuthProvider.getCredential(cd, temp);\n m.signInWithPhoneAuthCredential(phoneCre);\n }\n });\n\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate (R.layout.fragment_phone_verification, container, false);\n //initviews is used to initialize the views\n initViews (view);\n actionProfileVerificationInstance=Navigation.findNavController (getActivity (), R.id.mainNavHostFragment);\n //get bundles data get the data sent from previous fragment\n getBundlesData ();\n return view;\n }",
"public void createPage(@NonNull WPEView wpeView, @NonNull Context context) {\n Log.d(LOGTAG, \"Create new Page instance for view \" + wpeView);\n if (m_pages == null) {\n m_pages = new IdentityHashMap<>();\n }\n assert (!m_pages.containsKey(wpeView));\n Page page = new Page(this, context, wpeView, m_pages.size());\n m_pages.put(wpeView, page);\n m_activeView = wpeView;\n if (m_webProcess != null) {\n m_webProcess.setActivePage(page);\n }\n loadPendingUrls(wpeView);\n }",
"public void initialize(URL url, ResourceBundle rb) {\n // TODO\n System.out.println(\"Sign in Parent \");\n numTelTest.setVisible(false);\n }",
"private InCallPresenter() {\n }",
"public MainPage() {\n initComponents();\n \n initPage();\n }",
"public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}",
"NewAccountPage openNewAccountPage();",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n final String code = phoneAuthCredential.getSmsCode();\n if (code != null) {\n OTP.setText(code);\n verifyCode(code);\n }\n }",
"public Mobile() { }",
"public abstract boolean Verifypage();",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)\n {\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"public PlanPage() {\n this( new PageParameters() );\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(new PageWidget(this));\r\n\t}",
"public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }",
"public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }",
"public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }",
"public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }",
"public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }",
"public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }",
"public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }",
"private static MockPageManager createPageManager()\r\n {\r\n return new MockPageManager();\r\n }",
"public HeaderSettingsPage()\n {\n initialize();\n }",
"public Phone(String countryCode, String areaCode, String number) {\n this.countryCode = countryCode;\n this.areaCode = areaCode;\n this.number = number;\n }",
"private void callRegisterHttp(String phone, int region, final Bundle bundle){\n ObserverOnNextListener<GetVerificationCodeModel> observer = new ObserverOnNextListener<GetVerificationCodeModel>() {\n @Override\n public void onNext(GetVerificationCodeModel model) {\n if(model.getStatus().equals(Constant.CONNECT_SUCCESS)){\n setPrevTitle(mTitle);\n replaceFragment(new VerifyPhoneFragment(), bundle);\n }\n else if(model.getStatus().equals(Constant.CONNECT_FAILED)){\n showBottomSnackBar(getString(R.string.network_connect_errors));\n Log.e(TAG, \"Fail: \" + model.getResult().getErrors().get(0));\n }\n }\n };\n HttpMethod.getInstance().registerByPhone(new ProgressObserver<GetVerificationCodeModel>(getContext(), observer), phone, region);\n }",
"@SuppressWarnings(\"unused\")\n\tprivate void CreateVerificationPage(final Composite wizPanel,\n\t\t\tfinal StackLayout wizLayout) {\n\t\tif(wizPages.size() > wizpagenum + 1)\n\t\t{\n\t\t\twizPages.remove(wizpagenum + 1);\n\t\t}\n\t\tfinal Composite verific = new Composite(wizPanel, SWT.NONE);\n\t\tLabel wiz14Label = new Label(verific, SWT.NONE);\n\t\twiz14Label.setText(\"Name: \" + spellname +\"\\nComponent: \"+ spellcomp\n\t\t\t\t+\"\\nSchool: \" + spellschool + \"\\nRange: \" + spellrange + \n\t\t\t\t\"\\nEffect: \" + spelleffect + \"\\nCasting Time: \" +\n\t\t\t\tspellcastime + \"\\nMaterial Component: \" + spellmaterial + \n\t\t\t\t\"\\nSaving Throw: \" + spellsaving +\"\\nFocus: \" + spellfocus + \n\t\t\t\t\"\\nDuration: \" + spellduration + \"\\nLevel: \" + spelllevel + \n\t\t\t\t\"\\nSpell Resistance: \" + spellresistance + \"\\nDescription: \" + spellscript);\n\t\twiz14Label.pack();\n\t\tButton confirm = new Button(verific, SWT.PUSH);\n\t\tcreateBackButton(verific, wizPanel, wizLayout);\n\t\tcreateCancelButton(verific, wizPanel, wizLayout);\n\t\tconfirm.setText(\"Confirm\");\n\t\tconfirm.setBounds(WIDTH-117, HEIGHT - 90, 100, 50);\n\t\tconfirm.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\t//TODO save the item\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\twizPages.add(verific);\n\t\t\n\t}",
"private LWPageUtilities()\n {\n }",
"public VideoPage()\r\n\t{\r\n\t}",
"PagesAddress(String url) {\n applicationUrl = url;\n }",
"public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n // auto verification of user.\n\n\n\n Toast.makeText(this, \"Verification Code sent!\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_registration);\n //if(ScreenUtils.hasSoftKeys(getWindowManager(), this)) findViewById(R.id.nevSoftBar).setVisibility(View.VISIBLE);\n initViews();\n countries = JsonUtils.loadCountries(this);\n getCountryZipCode();\n user = new User();\n\n Intent intent = getIntent();\n if(intent.getExtras()!=null){\n user.socialId = intent.getStringExtra(Constants.SOCIAL_ID);\n user.email = intent.getStringExtra(Constants.EMAIL_ID);\n user.businessType = intent.getStringExtra(Constants.registrationType);\n }\n\n smsVerifyCatcher = new SmsVerifyCatcher(this, new OnSmsCatchListener<String>() {\n @Override\n public void onSmsCatch(String message) {\n String code = parseCode(message);//Parse verification code\n\n if(CURRENT_VIEW_STATE==2){\n if(message.contains(\"Mualab\") || message.contains(\"mualab\")){\n inputList.clear();\n user.otp = code;\n for(int i=0; i<code.length(); i++){\n tvOtp[i].setText(String.format(\"%s\", code.charAt(i)));\n inputList.add(Character.getNumericValue(code.charAt(i)));\n }\n\n if(apiOTP.equals(user.otp)){\n user.otp = code;\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n nextScreen();\n }\n }, 700);\n }\n }\n }\n }\n });\n\n findViewById(R.id.llBusinessAddr).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent intent = new Intent(RegistrationActivity.this, AddAddressActivity.class);\n if(address!=null)\n intent.putExtra(\"address\",address);\n startActivityForResult(intent,1001);\n }\n });\n }",
"public CreatePatientFragment() {\n\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t realCode = GenerateCodeActivity.getInstance().getCode();\n\t\t\t\t\t\t\tString phoneCode = et_phoneCode.getText().toString();\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tif(phoneCode.equals(realCode))\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent intent=new Intent(pre_registerActivity.this, RegisterActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"phone\",et_phoneNum.getText().toString());//传到跳转页面\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\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\t\tToast.makeText(pre_registerActivity.this, \"验证码错误\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t}",
"public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n phoneAuthView.setVerificationCode(code);\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public void setPhone(String phone) {\n this.phone = phone;\n }",
"public Reqif10ModelWizardInitialObjectCreationPage(String pageId) {\r\n \t\t\tsuper(pageId);\r\n \t\t}",
"public void setPhone(String phone) {\r\n this.phone = phone;\r\n }",
"public\r\n Mobile() {}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n if (code != null){\n progressBar.setVisibility(View.VISIBLE);\n System.out.println(\"PhoneAuthProvider onVerificationCompleted \"+phoneAuthCredential);\n verifyCode(code);\n }\n }",
"public UserPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n }",
"public void phone_validate(View v1) {\n Intent A2Intent = new Intent (v1.getContext(), Main2Activity.class);\n EditText phone = (EditText) findViewById(R.id.editText);\n // pass the entered phone number to the next activity\n //A2Intent.putExtra(\"phoneNumber\", tv2.getText());\n String ph = phone.getText().toString();\n A2Intent.putExtra(\"phoneNumber\", ph);\n\n // start the next activity/page\n startActivity(A2Intent);\n\n\n }",
"private PhoneUtils() {\n }"
]
| [
"0.5955755",
"0.5887391",
"0.5887247",
"0.57861656",
"0.57622236",
"0.5756084",
"0.56558406",
"0.5536623",
"0.5535111",
"0.5464138",
"0.5422474",
"0.5307508",
"0.53008264",
"0.52993786",
"0.52891296",
"0.5285774",
"0.5285427",
"0.5263541",
"0.5240146",
"0.52308804",
"0.52272403",
"0.5224408",
"0.5194158",
"0.5184474",
"0.5180853",
"0.51706",
"0.51576626",
"0.5148308",
"0.5147263",
"0.5146916",
"0.5145597",
"0.5145255",
"0.51424056",
"0.513732",
"0.5129429",
"0.50870055",
"0.5072721",
"0.5062943",
"0.50608087",
"0.50434595",
"0.5018861",
"0.50048",
"0.49960846",
"0.4976861",
"0.49717087",
"0.49696258",
"0.4967806",
"0.49664468",
"0.49636677",
"0.49587134",
"0.49495947",
"0.4947207",
"0.4943006",
"0.49367678",
"0.49364775",
"0.49364775",
"0.49364775",
"0.49364775",
"0.49353614",
"0.49270883",
"0.49233434",
"0.49233434",
"0.49233434",
"0.49233434",
"0.49233434",
"0.49184084",
"0.49152055",
"0.4902565",
"0.48996666",
"0.4899617",
"0.4886646",
"0.4885388",
"0.48730186",
"0.48623365",
"0.4862002",
"0.4857527",
"0.48505017",
"0.48463452",
"0.48310745",
"0.48288068",
"0.48221275",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.4819977",
"0.48181623",
"0.4816056",
"0.4814235",
"0.48118135",
"0.48000824",
"0.47993293",
"0.47990468",
"0.47973725"
]
| 0.6000048 | 0 |
Tries to Login by selecting the SIM and Number. If the Phone verification is taking too much time it aborts Phone Verification by clicking on 'Lets login ...' button. If Phone Verification fails then it skips the page and goes to Verify Device page. | public void loginWithPersonalDeviceWithSkip()
{
Log.info("======== Login With Verify Personal Device ========");
for(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns
{
e.click();
selectWithinList.get(1).click();
}
continueButton.click();
// Wait until presence of Home page or Verify device Page or Verify Failed popup
WebDriverWait wait= new WebDriverWait(driver,90); // 60 + 30 sec taken by try catch
try
{
wait.until(ExpectedConditions.visibilityOf(checker));
Generic.wait(2);
}
catch(Exception e)
{
Assert.fail(" Page is taking too much time to load , stopping execution\n"+e.getMessage());
/*Log.info("======== Page taking too much time to load , trying to click on Lets Login by cancelling phone verification ========");
try
{
verifyAbortButton.click();
gotoHome();
return;
}
catch(Exception e1)
{
Assert.fail(" Page is taking too much time to load , stopping execution\n"+e1.getMessage());
}*/
}
// ==== Handle Verify Phone Authentication failed alert ==== //
if (checker.getText().toLowerCase().contains("ok") && checker.getAttribute("resourceId").contains("button2"))
{
Log.info("======== Skipping Phone verification ========");
driver.findElement(By.id("button2")).click();
skipDontAskCheckbox.click();
continueButton.click();
Generic.wait(5);
return; // goto to VerifyDevice Page from verifyLogin() method
}
gotoHome();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//android.widget.TextView[contains(@text,'Verify')]\")));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Verify Phone page not found\"+e.getMessage());\n\t\t}\n\t\t\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\tif(pageTitle.getText().contains(\"Device\"))\n\t\t{\t\t\t\n\t\t\tLog.info(\"== Verify Device page found instead of Verify Phone page ==\"); \t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click();\n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \t\t\n\t\t\n\t\tnew WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button1\"))\n\t\t{\t\n\t\t\tchecker.click();\n\t\t\t\n\t\t\tnew WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tif(checker.getText().contains(\"OK\") && checker.getAttribute(\"resourceId\").contains(\"button2\")) return;\t// LGN_05 will verify this\t\n\t\t\n\t\t//gotoHome();\tNo need to go to Home since Error messages and skip buttons need to be validated\t\n\t}",
"private void attemptLogin() {\n /*if (userLoginTask != null) {\n Snackbar.make(idNumberET, \"Please wait...\", Snackbar.LENGTH_LONG).show();\n return;\n }*/\n\n // Reset errors.\n phoneNumberET.setError(null);\n idNumberET.setError(null);\n\n // Store values at the time of the login attempt.\n String phoneNumber = phoneNumberET.getText().toString();\n String idNumber = idNumberET.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n String simCardSN = null;\n if(Permissions.check(this, Manifest.permission.READ_PHONE_STATE)) {\n simCardSN = Device.getSimCardSN(this);\n }\n if(simCardSN == null) {\n cancel = true;\n Snackbar.make(idNumberET, \"You will need a simcard to sign in\", Snackbar.LENGTH_LONG).show();\n }\n\n if(cancel == false) {//first things first, make sure the simcard is accessible first\n if(idNumberET.getVisibility() == View.VISIBLE) {\n if (TextUtils.isEmpty(idNumber)) {\n idNumberET.setError(getString(R.string.error_invalid_phone_number));\n focusView = idNumberET;\n cancel = true;\n } else if(!isIdNumberValid(idNumber)) {\n idNumberET.setError(getString(R.string.error_incorrect_password));\n focusView = idNumberET;\n cancel = true;\n }\n } else {\n idNumber = null;\n }\n\n if (TextUtils.isEmpty(phoneNumber)) {\n phoneNumberET.setError(getString(R.string.error_invalid_phone_number));\n focusView = phoneNumberET;\n cancel = true;\n } else if (!isPhoneNumberValid(phoneNumber)) {\n phoneNumberET.setError(getString(R.string.error_incorrect_password));\n focusView = phoneNumberET;\n cancel = true;\n }\n\n if(cancel == false) {\n showProgress(true);\n Log.d(TAG,phoneNumber+\" \"+idNumber+\" \"+simCardSN);\n sendData(phoneNumber, simCardSN, idNumber);\n } else {\n focusView.requestFocus();\n }\n }\n }",
"public void loginWithoutPersonalDevice() {\n\t\t//new WebDriverWait(driver, 45).pollingEvery(1, TimeUnit.SECONDS).until(ExpectedConditions.visibilityOf(personalCheckbox));\n\t\twaitOnProgressBarId(45);\n\t\tif (pageTitle.getText().contains(\"Phone\")) {\n\n\t\t\tLog.info(\"======== Unchecking personal device ========\");\n\t\t\tpersonalCheckbox.click();\n\t\t\tLog.info(\"======== Selecting Dont ask again checkbox ========\");\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tLog.info(\"======== Clicking on Skip button ========\");\n\t\t\tcontinueButton.click(); // Click on Skip , Skip=Continue\n\t\t}\n\t}",
"@Test\n\t\tpublic void Login() throws Exception{\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/loginPhone\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\t//Enters Mobile No\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/loginPhone\")).sendKeys(\"6001600256\");\n\t\t\tThread.sleep(3000);\n\t\t\tSystem.out.println(\"Phone Number Entered Successfully\");\n\t\t\t//click for entering password\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/loginPassword\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\t//Enters Password\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/loginPassword\")).sendKeys(\"Abc123###\");\n\t\t\tThread.sleep(3000);\n\t\t\tSystem.out.println(\"Password entered successfully\");\n\t\t\t//press android back button for hiding keyboard\n\t\t\tdriver.navigate().back();\n\t\t\tThread.sleep(3000);\n\t\t\t//Click on Sign IN button\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/loginButton\")).click();\n\t\t\tSystem.out.println(\"Login Details matched\");\n\n\t\t\t//click for address\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/home_address_text\")).click();\n\t\t\tThread.sleep(3000);\n\n\t\t\t//click plus sign\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/imageView9\")).click();\n\t\t\tThread.sleep(3000);\n\n\t\t\t//click for entering name\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_UserName\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\t//Enters name\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_UserName\")).sendKeys(\"sssppp\");\n\t\t\tThread.sleep(3000);\n\t\t\tSystem.out.println(\"name entered successfully\");\n\n\t\t\t//click for entering phone number\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_phone\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\t//Enters phone no.\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_phone\")).sendKeys(\"7810111111\");\n\t\t\tThread.sleep(3000);\n\t\t\tSystem.out.println(\"phone no. entered successfully\");\n\n\t\t\t//click for choosing apartment\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_choose_appartments\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\t//Enters street address\n\t\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[2]/android.widget.TextView\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\tSystem.out.println(\"street address added successfully\");\n\n\t\t\t//click for entering flat no\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_flat_no\")).click();\n\t\t\tThread.sleep(3000);\n\t\t\t//Enters flat no.\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_flat_no\")).sendKeys(\"enterTheLandmark\");\n\t\t\tThread.sleep(3000);\n\t\t\tSystem.out.println(\"flat no entered successfully\");\n\n\t\t\t//press android back button for hiding keyboard\n\t\t\tdriver.navigate().back();\n\t\t\tThread.sleep(3000);\n\t\t\t//Click on add address button\n\t\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/add_address_submit_button\")).click();\n\t\t\tSystem.out.println(\"address added successfully\");\n\t\t\t//press android back button for hiding keyboard\n\t\t\tdriver.navigate().back();\n\t\t\tThread.sleep(3000);\n\n\n\t\t//\tTouchAction touch = new TouchAction(driver);\n\t\tUtilities utilObj = new Utilities();\n\n\t\t//Search button to be clicked\n\n\t\tutilObj.clickCheck(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.widget.LinearLayout/android.view.ViewGroup/android.widget.TextView\", \"Search\");\n\n\t\t//Product to be searched\n\t\tutilObj.sendKeywords(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.widget.LinearLayout/android.view.ViewGroup/androidx.appcompat.widget.LinearLayoutCompat/android.widget.SearchView/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.EditText\");\n\n\t\tutilObj.clickCheck(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[1]\", \"Product\");\n\n\t\t//press android back button for hiding keyboard\n\t\tdriver.navigate().back();\n\t\tThread.sleep(3000);\n\n\t\tdriver.navigate().back();\n\t\tThread.sleep(3000);\n\n\t\tSystem.out.println(\"Product search test completed.\");\n\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[1]/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[4]/android.widget.ImageView\")).click();\n\t\tSystem.out.println(\"Opened food and beverage\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[1]/android.widget.ImageView\")).click();\n\t\tSystem.out.println(\"Ghee & Oil clicked\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[4]/android.view.ViewGroup\")).click();\n\t\tSystem.out.println(\"Pure and sure Organic clicked\");\n\t\tThread.sleep(3000);\n\n\t\tfor (int i = 1;i<3;i++){\n\t\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.ScrollView/android.widget.LinearLayout/android.view.ViewGroup[2]/android.view.ViewGroup[1]/android.view.ViewGroup/android.widget.ImageButton[2]\")).click();\n\t\t\tSystem.out.println(\"Quantity Added\"+\" \"+i);\n\t\t\tThread.sleep(3000);\n\t\t}\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.TextView\")).click();\n\t\tSystem.out.println(\"Product Added To Cart\");\n\t\tThread.sleep(3000);\n\n\t\t//Make payment from Cart\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/image_btn_layout\")).click();\n\t\tSystem.out.println(\"cart opened\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/my_cart_place_order_button\")).click();\n\t\tSystem.out.println(\"proceed to payment\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/payment_option_pay_on_delivery\")).click();\n\t\tSystem.out.println(\"Pay on Delivery\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/cart_checkout_place_order_button\")).click();\n\t\tSystem.out.println(\"Place Order\");\n\t\tThread.sleep(3000);\n\n\n\n\t\tSystem.out.println(\"Deal Initiation Complete\");\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/cart_success_my_orders_btn\")).click();\n\t\tSystem.out.println(\"Next order from cart\");\n\t\tThread.sleep(3000);\n\n\n\t\tSystem.out.println(\"EUREKA\");\n\t\tdriver.close();\n\n\n\n\n\t\t//Make payment from Cart\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/image_btn_layout\")).click();\n\t\tSystem.out.println(\"cart opened\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/my_cart_place_order_button\")).click();\n\t\tSystem.out.println(\"proceed to payment\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/payment_option_pay_on_delivery\")).click();\n\t\tSystem.out.println(\"Pay on Delivery\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/cart_checkout_place_order_button\")).click();\n\t\tSystem.out.println(\"Place Order\");\n\t\tThread.sleep(3000);\n\n\n\n\t\tSystem.out.println(\"Deal Initiation Complete\");\n\n\t\tdriver.findElement(By.id(\"com.gobillion.android.commerce.dev:id/cart_success_my_orders_btn\")).click();\n\t\tSystem.out.println(\"Go to my orders\");\n\t\tThread.sleep(3000);\n\t\t//press android back button for hiding keyboard\n\t\tdriver.navigate().back();\n\t\tThread.sleep(3000);\n\n\t\tSystem.out.println(\"EUREKA\");\n\t\tdriver.close();\n\n\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.view.ViewGroup[2]/android.widget.TextView[2]\")).click();\n\t\tSystem.out.println(\"Opened See All\");\n\t\tThread.sleep(5000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[1]\")).click();\n\t\tSystem.out.println(\"Sundrop Super clicked\");\n\t\tThread.sleep(5000);\n\n\t\tfor (int i = 1;i<3;i++){\n\t\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.ScrollView/android.widget.LinearLayout/android.view.ViewGroup[2]/android.view.ViewGroup[1]/android.view.ViewGroup/android.widget.ImageButton[2]\")).click();\n\t\t\tSystem.out.println(\"Quantity Added\"+\" \"+i);\n\t\t\tThread.sleep(3000);\n\t\t}\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.TextView\")).click();\n\t\tSystem.out.println(\"Buy Together clicked\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.Button\")).click();\n\t\tSystem.out.println(\"Continue\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/android.widget.ScrollView/android.view.ViewGroup/android.widget.LinearLayout/android.view.ViewGroup/android.widget.RadioGroup/android.widget.RadioButton[4]\")).click();\n\t\tSystem.out.println(\"Pay on Delivery\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.Button\")).click();\n\t\tSystem.out.println(\"Continue\");\n\t\tThread.sleep(6000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/androidx.drawerlayout.widget.DrawerLayout/android.view.ViewGroup/android.view.ViewGroup/android.widget.FrameLayout/android.view.ViewGroup/android.widget.LinearLayout\")).click();\n\t\tSystem.out.println(\"share on whatsapp\");\n\t\tThread.sleep(6000);\n\n\t\tdriver.findElement(By.xpath(\"//android.widget.TextView[@content-desc='Search']\")).click();\n\t\tSystem.out.println(\"Whatsapp Search Enabled\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout[1]/android.widget.FrameLayout/androidx.appcompat.widget.LinearLayoutCompat/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.EditText\")).sendKeys(\"+916001600256\");\n\t\tSystem.out.println(\"Contact Searched\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout[2]/android.widget.ListView/android.widget.RelativeLayout\")).click();\n\t\tSystem.out.println(\"Contact selected\");\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(\"//android.widget.ImageButton[@content-desc='Send']\")).click();\n\t\tSystem.out.println(\"Contact opened\");\n\t\tThread.sleep(7000);\n\n\n\t\tdriver.findElement(By.xpath(\"//android.widget.ImageButton[@content-desc='Send']\")).click();\n\t\tSystem.out.println(\"Deal Shared\");\n\t\tThread.sleep(5000);\n\n\t\tdriver.findElement(By.xpath(\"//android.widget.LinearLayout[@content-desc='Navigate up']\")).click();\n\t\tSystem.out.println(\"Back to contact list\");\n\t\tThread.sleep(5000);\n\n\t\tSystem.out.println(\"Deal Initiation Complete\");\n\n\n\n\n\t\tSystem.out.println(\"EUREKA\");\n\t\tdriver.close();\n\n\t}",
"public void loginByRetail(RetailLoginData retailLoginData){ // method for login by retail\n if (isSelectedPresent(By.name(\"auth[PHONE]\"))) {\n type(By.name(\"auth[PHONE]\"), retailLoginData.getRetailphone());\n } else if (isSelectedPresent(By.name(\"auth[EMAIL]\"))){\n type(By.name(\"auth[EMAIL]\"), retailLoginData.getRetailemail());\n }\n type(By.name(\"auth[PASSWORD]\"), retailLoginData.getRetailpassword());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n\n }",
"private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mPhoneView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String phone = mPhoneView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid phone address.\r\n if (TextUtils.isEmpty(phone)) {\r\n mPhoneView.setError(getString(R.string.error_field_required));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n } else if (!isPhoneValid(phone)) {\r\n mPhoneView.setError(getString(R.string.error_invalid_phone));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(phone, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }",
"private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n mEMSIpview.setError(null);\n // Store values at the time of the login attempt.\n final String emsIP = mEMSIpview.getText().toString();\n final String email = mEmailView.getText().toString();\n final String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(emsIP)) {\n mEMSIpview.setError(\"Please enter an ems ip\");\n focusView = mEMSIpview;\n cancel = true;\n }\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n performNetworkOperations.doLogin(emsIP, email, password);\n// Toast.makeText(this,token,Toast.LENGTH_SHORT).show();\n// List<String> nodeData = performNetworkOperations.getNodesList(emsIP,token);\n\n }\n }",
"public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }",
"public void Login()\r\n\t{\r\n\t\t\r\n\t\tString firstName = CommonDriver.getProperties(\"FirstName\");\r\n\t\tString lastName = CommonDriver.getProperties(\"LastName\");\r\n\t\tString mobileNumber = CommonDriver.getProperties(\"MobileNumber\");\r\n\t\tString email = CommonDriver.getProperties(\"Email\");\r\n\t\tString Fpassword = CommonDriver.getProperties(\"Password\");\r\n\t\tString confirmPassword = CommonDriver.getProperties(\"ConfirmPassword\");\r\n\t\tString userName = CommonDriver.getProperties(\"UserName\");\r\n\t\tString logPassword = CommonDriver.getProperties(\"LogPassword\");\r\n\t\t\r\n\t\tUserName.sendKeys(userName);\r\n\t\t\r\n\t\tLogPassword.sendKeys(logPassword);\r\n\t\t\t\t\r\n\t\tLogin.click();\r\n\t\t\r\n\t\t/**\r\n\t\t * Since the application forgets the login credentials in sometime, hence, checking the error msg and signing up again \r\n\t\t * \r\n\t\t */\r\n\t\r\n\t\tboolean present;\r\n\t\ttry {\r\n\t\t driver.findElement(By.xpath(\"//*[@id='loginfrm']/div[1]/div[2]/div\"));\r\n\t\t present = true;\r\n\t\t System.out.println(\"Need to signup first\");\r\n\t\t\t\r\n\t\t\tSignUp.click();\r\n\t\t\t\r\n\t\t\tFirstName.sendKeys(firstName);\r\n\t\t\t\r\n\t\t\tLastName.sendKeys(lastName);\r\n\t\t\t\t\t\r\n\t\t\tMobileNumber.sendKeys(mobileNumber);\r\n\t\t\t\t\t\r\n\t\t\tEmail.sendKeys(email);\r\n\t\t\t\t\t\r\n\t\t\tPassword.sendKeys(Fpassword);\r\n\t\t\t\t\t\r\n\t\t\tConfirmPassword.sendKeys(confirmPassword);\r\n\t\t\t\t\t\r\n\t\t\tSignUpF.click();\r\n\t\t \r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t present = false;\r\n\t\t \r\n\t\t\tSystem.out.println(\"Loggedin Successfully\");\r\n\t\t}\r\n\t}",
"private void checkToLogin() {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivityForResult(intent, ConstantValue.LOG_IN_CODE);\n }",
"public void loginCorporate(CorporateLoginData corporateLoginData) {\n type(By.name(\"auth[ACCOUNT]\"), corporateLoginData.getAccountnumber());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[PIN]\"))){ // searching the pin field, if true - fills pin and caller\n type(By.name(\"auth[PIN]\"), corporateLoginData.getPin());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[CALLER]\"))) {\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n } else if (isSelectedPresent(By.name(\"auth[PASSWORD]\"))){ // searching the password field, if true - fills password and caller\n type(By.name(\"auth[PASSWORD]\"), corporateLoginData.getPin());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[CALLER]\"))) {\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n } else if (isSelectedPresent(By.name(\"auth[CALLER]\"))){ // searching the caller field, if true - fills caller\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n }",
"@When(\"^Mobile: Open the chrome browser, Enter the valid URL, Login via email or phone number mode and switch to card mode of transaction for further playable$\")\n\tpublic void mobile_Open_the_chrome_browser_Enter_the_valid_URL_Login_via_email_or_phone_number_mode_and_switch_to_card_mode_of_transaction_for_further_playable() throws Throwable {\n\t\tWebElement text = driver.findElement(By.cssSelector(\".text-white.top-text\"));\n\t\tString txt = text.getText();\n\t\tAssert.assertEquals(\"Online\", txt);\n\t\tSystem.out.println(\"Verified the text over balance field when logged via E-mail\");\n\t\t\n\t\tWebElement dropdown = driver.findElement(By.id(\"nav-dropbtn\"));\n\t\tdropdown.click();\n\t\tThread.sleep(1000);\n\n\t\t//Verifying the radio button is checked\n\t\tWebElement selected = driver.findElement(By.id(\"online\"));\n\t\tBoolean radiobutton = selected.isSelected();\n\t\tSystem.out.println(\"online radio button: \"+radiobutton);\n\t\tAssert.assertTrue(\"Radio button selected for online mode\", radiobutton);\n\t\tThread.sleep(1000);\n\n\t\t//\t\tString online = driver.findElement(By.id(\"online-active\")).getAttribute(\"class\");\n\t\t//\t\tSystem.out.println(\"Fetching class attritube to verify online mode is selected: \" +online);\n\t\t//\t\tSystem.out.println(\"Transaction mode is Online and radio button is checked\");\n\t\t//\t\tAssert.assertEquals(\"active\", online);\n\t\t//\t\tThread.sleep(1000);\n\n\t\t// Select the card mode of payment\n\t\tWebElement cardBal = driver.findElement(By.id(\"cardRefresh\"));\n\t\tString cardbal = cardBal.getText();\n\t\tSystem.out.println(\"Card Account Balance:\" +cardbal);\n\n\t\tString cb=null;\n\t\tString cardbalance=null;\n\t\tif(cardbal.endsWith(\"0\")){\n\t\t\tcb = cardbal.substring(0, cardbal.length() - 1);\n\t\t\tcardbalance = cb.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(cardbalance);\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tcb = cardbal;\n\t\t\tcardbalance = cb.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(cardbalance);\n\t\t\tSystem.out.println(\"Card Balance amount doesn't ends with '0'.\");\n\t\t}\n\n\t\t//\t\tString onlinecard = driver.findElement(By.id(\"card-active\")).getAttribute(\"class\");\n\t\t//\t\tSystem.out.println(\"Fetching class attritube to verify card mode is selected: \" +onlinecard);\n\t\t//\t\tSystem.out.println(\"Card modeTransaction is not checked\");\n\t\t//\t\tAssert.assertNull(onlinecard);\n\t\t//\t\tThread.sleep(1000);\n\n\t\t// Verify the card radio button is not selected\n\t\tWebElement selected1 = driver.findElement(By.id(\"card\"));\n\t\tBoolean radiobutton1 = selected1.isSelected();\n\t\tSystem.out.println(\"card radio button: \"+radiobutton1);\n\t\tAssert.assertFalse(\"Radio button not selected for card mode\", radiobutton1);\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.id(\"card-active\")).click();\n\t\tThread.sleep(1500);\n\n\t\t// Text validation\n\t\tdriver.switchTo().alert();\n\t\tThread.sleep(3000);\n\t\tWebElement title = driver.findElement(By.xpath(\"//*[text()= 'AUTHENTICATE CARD']\"));\n\t\tAssert.assertEquals(title.getText(), \"AUTHENTICATE CARD\");\n\t\tSystem.out.println(\"Authenticate card alert window has been generated\");\n\t\tThread.sleep(1000);\n\t\tWebElement Card_Num = driver.findElement(By.xpath(\"//*[text()= 'Card Number']\"));\n\t\tAssert.assertEquals(Card_Num.getText(), \"Card Number\");\n\t\tSystem.out.println(\"Card number text is validated\");\n\t\tThread.sleep(1000);\n\t\tWebElement Card_Pin = driver.findElement(By.xpath(\"//*[text()='Card Pin']\"));\n\t\tAssert.assertEquals(Card_Pin.getText(), \"Card Pin\");\n\t\tSystem.out.println(\"Card pin text is validated\");\n\t\tWebElement Submit = driver.findElement(By.id(\"CardAuth\"));\n\t\tAssert.assertEquals(Submit.getText(),\"Authenticate Card\");\n\t\tSystem.out.println(\"Submit button text is validated\");\n\n\t\t//Login with the valid card details\n\t\tWebElement CardInput = driver.findElement(By.id(\"card-number\"));\n\t\tAssert.assertEquals(CardInput.getAttribute(\"maxlength\"), \"16\");\n\t\tSystem.out.println(\"Verified the max character input length:\"+ \"16\");\n\n\t\tAssert.assertEquals(CardInput.getAttribute(\"placeholder\"), \"Please Enter Card Number\");\n\t\tSystem.out.println(\"Verified the charter input text\");\n\t\tCardInput.sendKeys(\"2111649489988826\");\n\t\tThread.sleep(1000);\n\n\t\tWebElement CardPin = driver.findElement(By.id(\"pin\"));\n\t\tAssert.assertEquals(CardPin.getAttribute(\"maxlength\"), \"4\");\n\t\tSystem.out.println(\"Verified the max character input length:\"+ \"4\");\n\n\t\tAssert.assertEquals(CardPin.getAttribute(\"placeholder\"), \"Please Enter Card Pin\");\n\t\tSystem.out.println(\"Verified the charter input text\");\n\t\tCardPin.sendKeys(\"1125\");\n\t\tThread.sleep(1000);\n\n\t\t//Check for hide and unhide button state \n\t\tWebElement HideButton = driver.findElement(By.id(\"checkpin\"));\n\t\tAssert.assertTrue(HideButton.isDisplayed());\n\t\tSystem.out.println(\"Visibility of the hide button is verified and visible on the screen\");\n\t\tHideButton.click();\n\t\tThread.sleep(1000);\n\t\tAssert.assertEquals(CardPin.getAttribute(\"type\"), \"text\");\n\t\tSystem.out.println(\"Verified the input type for card pin under hidden condition: \"+ CardPin.getAttribute(\"type\"));\n\t\tHideButton.click();\n\t\tThread.sleep(1000);\n\t\tAssert.assertEquals(CardPin.getAttribute(\"type\"), \"password\");\n\t\tSystem.out.println(\"Verified the input type for card pin under un-hide condition: \"+CardPin.getAttribute(\"type\"));\n\t\tSubmit.click();\n\t\tThread.sleep(3000);\n\t\tSystem.out.println(\"Card mode is selected for future transcations\");\n\n\t\t//Verify the which mode of transaction is selected and verify the amount in the card for before and after selection \n\t\tWebElement Rbalance = driver.findElement(By.xpath(\"//*[@id='nav-dropbtn']//following::label\"));\n\t\tString Rbal = Rbalance.getText();\n\t\tSystem.out.println(\"Card Balance: \" +Rbal);\n\n\t\tString card = text.getText();\n\t\tAssert.assertEquals(\"Card\", card);\n\t\tSystem.out.println(\"Verified the text over balance field when logged via card\");\n\t\t\n\t\t// if the last digit is zero its not displayed on the balance amount and after refreshing its displayed \n\t\t/* \n\t\t * Validation failed as before and after the amount is sperated by ',' in the balance field\n\t\t */\n\t\t//\t\tAssert.assertEquals(Rbal, cardbalance);\n\t\t//\t\tSystem.out.println(\"Card balance before refreshing is verified\");\n\n\t\t/*\n\t\t * Verifying the checkbox radio button is checked for card mode transaction\n\t\t * Failing as the Assertions fails need ids\n\t\t */\n\t\t//\t\tdropdown.click();\n\t\t//\t\tThread.sleep(3000);\n\t\t//\t\tWebElement radio = driver.findElement(By.name(\"card\"));\n\t\t//\t\tBoolean rad = radio.isEnabled();\n\t\t//\t\tBoolean radi = radio.isSelected();\n\t\t//\t\tSystem.out.println(\"card radio button after transactions via card mode: \" +rad);\n\t\t//\t\tSystem.out.println(\"card radio button after transactions via card mode: \" +radi);\n\t\t//\t\tAssert.assertTrue(rad);\n\t\t//\t\tAssert.assertTrue(radi);\n\t\t//\t\tSystem.out.println(\"Fetching class attritube to verify card mode is selected: \" +radio);\n\n\n\n\t\t//Verify the balance after refresh the main balance\n\t\tString rbal1 = Rbalance.getText();\n\t\tSystem.out.println(\"Balance before refresh: \"+rbal1 );\n\t\tWebElement refresh = driver.findElement(By.xpath(\"(//*[@onclick = 'refreshbalance();'])[2]\"));\n\t\trefresh.click();\n\t\tThread.sleep(5000);\n\t\trefresh.click();\n\t\tThread.sleep(3000);\n\t\tString rbal2 = Rbalance.getText();\n\t\tSystem.out.println(rbal2);\n\n\t\tString cb1=null;\n\t\tif(rbal2.endsWith(\"0\")){\n\t\t\tcb1 = rbal2.substring(0, rbal2.length() - 1);\n\t\t\tSystem.out.println(cb1);\n\t\t}\n\t\telse {\n\t\t\tcb1 = rbal2;\n\t\t\tSystem.out.println(\"Card Balance amount doesn't ends with '0'.\");\n\t\t}\n\t\tString str44 = rbal1.replaceAll(\",\", \"\");\n\t\tString cb2 = rbal1.replaceAll(\",\", \"\");\n\t\tAssert.assertEquals(str44,cb2);\n\t\tSystem.out.println(\"Refresh balance verified\");\n\n\n\t\t//Verifying the currency \"SRD\" for card deductions\n\t\tWebElement currency = driver.findElement(By.id(\"DisplayBalance2\"));\n\t\tString srd = currency.getText();\n\t\tAssert.assertEquals(\"SRD\", srd);\n\t\tSystem.out.println(\"Currency form is validated after card modfe transcation and after refresh balance: \"+srd);\n\t\t\n\t\t\n\t\t//Verify if the user able to switch back to online mode of transcation\n\t\tdropdown.click();\n\t\tThread.sleep(1000);\n\t\t\n\t\tWebElement OnlineBal = driver.findElement(By.id(\"onlineRefresh\"));\n\t\tString Onlinebal = OnlineBal.getText();\n\t\tSystem.out.println(\"Online Account Balance:\" +Onlinebal);\n\n\t\tString ob=null;\n\t\tString onlinebalance=null;\n\t\tif(Onlinebal.endsWith(\"0\")){\n\t\t\tob = Onlinebal.substring(0, Onlinebal.length() - 1);\n\t\t\tonlinebalance = ob.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(onlinebalance);\n\t\t}\n\t\telse {\n\t\t\tob = Onlinebal;\n\t\t\tonlinebalance = ob.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(onlinebalance);\n\t\t\tSystem.out.println(\"Card Balance amount doesn't ends with '0'.\");\n\t\t}\n\t\t\n\t\tWebElement online = driver.findElement(By.id(\"online-active\"));\n\t\tonline.click();\n\t\tThread.sleep(3000);\n\t\t\n\t\tWebElement Obalance = driver.findElement(By.xpath(\"//*[@id='nav-dropbtn']//following::label\"));\n\t\tString Obal = Obalance.getText();\n\t\tSystem.out.println(\"Online Balance: \" +Obal);\n\t\trefresh.click();\n\t\tThread.sleep(5000);\n\t\t//Assert the online balance after switching back to online\n\t\t/*\n\t\t * Assertion fails as the ',' is missing while validating\n\t\t */\n\t\tAssert.assertEquals(onlinebalance, Obal);\n\t\tSystem.out.println(\"Online balance is same after switching back and refreshing\");\n\n\t}",
"public void testLoginPIN() {\r\n try {\r\n tokenHandler.loginPIN(pinCode);\r\n tokenHandler.logoutPIN();\r\n } catch (Exception e) {\r\n fail(e.toString());\r\n }\r\n }",
"public void tryLogin() {\n\t\tcontroller.setupClient(txtNickname.getText());\n\t\tString cardDesign = comboBoxCardDesign.getSelectionModel()\n\t\t\t\t.getSelectedItem();\n\t\tConfiguration.chooseCardDesign(cardDesign);\n\t\tConfiguration.chooseMeepleDesign(cardDesign);\n\t}",
"public static void Android_Invalid_otp() {\n try {\n\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n Thread.sleep(2000);\n MobileElement el1 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[1]/android.widget.EditText\");\n el1.click();\n\n String userName = getData(\"UserName\");\n el1.sendKeys(userName);\n driver.hideKeyboard();\n MobileElement el2 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[3]/android.widget.EditText\");\n String password = getData(\"Password\");\n\n el2.sendKeys(password);\n driver.hideKeyboard();\n ReportHelper.logReportStatus(LogStatus.PASS, \"UserName and Password Given Successfully\");\n\n MobileElement loginBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Login']\");\n loginBtn.click();\n\n Thread.sleep(12000);\n\n driver.findElementByXPath(\"//android.widget.EditText[@text='Confirmation Code']\").sendKeys(\"5252\");\n Thread.sleep(2000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Invalid OTP Given Successfully\");\n driver.hideKeyboard();\n MobileElement continueBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Continue']\");\n continueBtn.click();\n Thread.sleep(15000);\n MobileElement Errormsg = driver.findElementByXPath(\"//android.widget.TextView[@text='Sorry the authentication code you entered is incorrect. Please try again.']\");\n\n if (Errormsg.isDisplayed()) {\n Thread.sleep(3000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Sorry the authentication code you entered is incorrect. Please try again.\");\n MobileElement e2 = driver.findElementByXPath(\"//android.widget.Button[@text='Go To Home']\");\n e2.click();\n Thread.sleep(2000);\n }\n\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"login into the application\");\n\n }\n }",
"private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mIPView.setError(null);\r\n mPortView.setError(null);\r\n mUsernameView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String ip = mIPView.getText().toString();\r\n int port = 0;\r\n try {\r\n port = Integer.parseInt(mPortView.getText().toString());\r\n }catch (Exception e){\r\n\r\n }\r\n String username = mUsernameView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid ip address.\r\n if (TextUtils.isEmpty(ip)) {\r\n mIPView.setError(getString(R.string.error_field_required));\r\n focusView = mIPView;\r\n cancel = true;\r\n } else if (!isIPValid(ip)) {\r\n mIPView.setError(getString(R.string.error_invalid_ip));\r\n focusView = mIPView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid port.\r\n if (TextUtils.isEmpty(\"\"+port)) {\r\n mPortView.setError(getString(R.string.error_field_required));\r\n focusView = mPortView;\r\n cancel = true;\r\n }else if(port != (int)port){\r\n mPortView.setError(getString(R.string.error_invalid_port));\r\n focusView = mPortView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid username.\r\n if (TextUtils.isEmpty(username)) {\r\n mUsernameView.setError(getString(R.string.error_field_required));\r\n focusView = mUsernameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(ip, port, username, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }",
"private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }",
"@Test(dependsOnMethods=\"startapp\")\r\n\tpublic void loginapp() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[1]/input\")).sendKeys(\"[email protected]\");\r\n\t\t//((WebElement) driver.findElements(By.xpath(\"//*[@id=\\\"idSIButton9\\\"]\"))).click();\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[2]/input\")).sendKeys(\"Liverpool1\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/button\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\r\n\t}",
"public static void Android_Meembahrain_Login(String username,String environment) {\n try {\n\n System.out.println(username);\n loginCredentials(username);\n\n System.out.println(loginCredentials(username)[0]);\n System.out.println(loginCredentials(username)[1]);\n\n\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n waitToElement(\"//android.widget.Button[@text='OK']\");\n MobileElement e1ement = driver.findElementByXPath(\"//android.widget.Button[@text='OK']\");\n e1ement.click();\n\n waitToElement(\"//android.widget.EditText[@text='Username']\");\n MobileElement el11 = driver.findElementByXPath(\"//android.widget.EditText[@text='Username']\");\n el11.sendKeys(loginCredentials(username)[0]);\n driver.hideKeyboard();\n MobileElement el2 = driver.findElementByXPath(\"//android.view.ViewGroup[3]/android.widget.EditText\");\n //String password = getData(\"Password\");\n el2.sendKeys(loginCredentials(username)[1]);\n driver.hideKeyboard();\n ReportHelper.logReportStatus(LogStatus.PASS, \"UserName and Password Given Successfully\");\n\n MobileElement loginBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Login']\");\n loginBtn.click();\n ReportHelper.logReportStatus(LogStatus.PASS, \"Login button clicked successfully\");\n\n String otp = FetchOTP.getOTP().replace(\"Your OTP is \", \"\").trim();\n\n\n waitToElement(\"//android.widget.EditText[@text='Confirmation Code']\");\n\n MobileElement ConfirmCode = driver.findElementByXPath(\"//android.widget.EditText[@text='Confirmation Code']\");\n ConfirmCode.sendKeys(otp);\n\n Thread.sleep(2000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"OTP Given Successfully\");\n driver.hideKeyboard();\n MobileElement continueBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Continue']\");\n continueBtn.click();\n waitToElement(\"//android.widget.Button[@text='S']\");\n ReportHelper.logReportStatus(LogStatus.PASS, \"Login Successfully\");\n\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"Unable to login into the application\" + e.getMessage());\n\n }\n }",
"private void CustCheckLogin() {\n\t\tLoggingUtil.trace(\"Customer log in\");\n\t\tinput = new Scanner(System.in);\n\t\tSystem.out.println(\"Customer Login Page\");\n\t\tString email;\tString pass;\t\n\t\tint i=0;//counter from tries\n\t do { System.out.println(\"Email: \");\n\t\tSystem.out.print(\">>>>>\");email=input.nextLine(); c.setUsername(email);\n\t\tif(email.isEmpty()) {System.out.println(\"\\n\\nNo Dont put empty email\"); break; }\n\t\tSystem.out.println(\"Passowrd\");\n\t\tSystem.out.print(\">>>>>\");pass=input.nextLine();\n\t i++; \n\t if (s.checkUserCust(email, pass)==false) {\n\t \tSystem.out.println(\"Invalid Username or Pass\"); \n\t \tSystem.out.println(i);\n\t }\n\t else { cs.choosechoice();// go to customer screen\n\t \t break; }\t \n\t }while(i<4);\n\t ms.pageoneScreen();\n\t}",
"@Test\n\tpublic void TC02_Login() {\n\t\tSystem.out.println(\"TC02 : 1. Click to Login Page\");\n\t\tclickToElemnet(loginLinkX);\n\n\t\t// Verify Navigate to Login Page\n\t\tSystem.out.println(\"TC02 : 2. Login Page Display Status :\" + checkElementDisplayed(loginPageX));\n\n\t\t// Login to Page\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tclickToElemnet(loginBtnX);\n\n\t\t// Verify Login Successfully\n\t\tSystem.out.println(\"TC02 : 3. Login Successfully Status : \" + checkElementDisplayed(myAccountLinkX));\n\t}",
"@When(\"^To Validathe Retail Login with Valid Credentials$\")\r\n\tpublic void to_Validathe_Retail_Login_with_Valid_Credentials() throws InterruptedException {\n\t\tdriver.findElement(By.className(\"sign-in\")).click();\r\n\t\tdriver.findElement(By.name(\"log\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.name(\"pwd\")).sendKeys(\"admin@123\");\r\n\t\tdriver.findElement(By.name(\"login\")).click();\r\n\t\t Thread.sleep(3000);\r\n\t\t \r\n\t}",
"public void clickLogin() {\n\t\tcontinueButton.click();\n\t}",
"protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}",
"public boolean login(EMProvider ep, Phone loginPhone) {\r\n return loginPhone.login(ep, this);\r\n }",
"public void waitForPhoneVerification() \n\t{\n\t\tString xp=\"//android.widget.TextView[contains(@text,'Verify')]\"; \n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 40).until(ExpectedConditions.visibilityOf(phoneVerificationIdentifier));\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Phone Verification page not found\\n\"+e.getMessage());\n\t\t}\n\t}",
"public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }",
"private void tryLogin() {\n AsyncTask<String, Void, Boolean> task = new AsyncTask<String, Void, Boolean>(){\n @Override\n protected Boolean doInBackground(String... ci_session) {\n boolean isValid = PwcatsRequester.isValidCiSession(ci_session[0]);\n return isValid;\n }\n @Override\n protected void onPostExecute(Boolean isValid) {\n isLogined = isValid;\n showOrHideLogInOut(isLogined);\n if (!isValid)\n authLogout();\n TextView mNavAuthLogin = (TextView) findViewById(R.id.nav_auth_login);\n TextView mNavAuthLogout = (TextView) findViewById(R.id.nav_auth_logout);\n }\n };\n String ci_session = prefs.getString(getString(R.string.ci_session), null);\n task.execute(ci_session);\n }",
"public void verifyLogin(){\n\n //Verifica que haya conexion de internet\n networkManager = (ConnectivityManager) this.getSystemService(\n Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = networkManager.getActiveNetworkInfo();\n boolean isConnected = networkInfo != null && networkInfo.isConnectedOrConnecting();\n\n if (PreferenceUtils.getEmail (this) != null) { //Verifica que hay una session abierta.\n showSplash ();\n if(isConnected){\n\n //Checa el tipo de session\n if(PreferenceUtils.getSession (this))\n //Facebook session\n new LoadDataLoginFacebook (this).execute(\n PreferenceUtils.getName (this),\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n else\n //Manual session\n new LoadDataLogin (this).execute (\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n }\n else{ //Si no hay internet pasa directo a la session abierta.\n Intent intent = new Intent (AccessActivity.this, MainActivity.class);\n startActivity (intent);\n }\n }\n }",
"private void authenticateSimulatedDevice() {\n mSimulatedDevice.writeln(TestsConfig.deviceWelcome.toString());\n TestsConfig.delay(300);\n \n // check if everything is ok, and get the device instance\n mDeviceInstance = mMainServer.getDevice(\n TestsConfig.deviceWelcome.getString(\"identifier\"));\n assertNotNull(mDeviceInstance);\n }",
"@When(\"^I enter my code on Phone Number Verification page$\")\n public void IEnterCode() throws Exception {\n final String verificationCode = BackendAPIWrappers.getLoginCodeByPhoneNumber(\n AndroidTabletTestContextHolder.getInstance().getTestContext().getUsersManager()\n .getSelfUserOrThrowError().getPhoneNumber());\n getTabletPhoneNumberVerificationPage().inputConfirmationCode(verificationCode);\n }",
"private void attemptLogin() {\n\n if (!Utils.isNetworkAvailable(mBaseActivity)) {\n Utils.showNetworkAlertDialog(mBaseActivity);\n return;\n }\n if (signInTask != null) {\n return;\n }\n\n // Reset errors.\n binding.email.setError(null);\n binding.password.setError(null);\n\n // Store values at the time of the login attempt.\n String email = binding.email.getText().toString();\n String password = binding.password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n binding.email.setError(getString(R.string.error_field_required));\n focusView = binding.email;\n cancel = true;\n } else if (TextUtils.isEmpty(password)) {\n binding.password.setError(getString(R.string.error_field_required));\n focusView = binding.password;\n cancel = true;\n } else if (!isEmailValid(email)) {\n binding.email.setError(getString(R.string.error_invalid_email));\n focusView = binding.email;\n cancel = true;\n } else if (!isPasswordValid(password)) {\n binding.password.setError(getString(R.string.error_invalid_password));\n focusView = binding.password;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // perform the user login attempt.\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(email, password);\n }\n }",
"@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n\n // checks to see if the login was successful or not\n try\n {\n // server connection class will handle initiating the connection to the remote server\n ServerConnection loginConn = new ServerConnection(\"http://cop4331groupeight.com/androidlogin.php\");\n String resultString = loginConn.initialLogin(email, password);\n\n JSONArray resultJSON = new JSONArray(resultString);\n JSONObject jsonObj = resultJSON.getJSONObject(0);\n\n int userID = jsonObj.getInt(\"userID\");\n String userEmail = jsonObj.getString(\"email\");\n String pass = jsonObj.getString(\"pass\");\n String error = jsonObj.getString(\"error\");\n String profileLocation = jsonObj.getString(\"profileLocation\");\n String firstName = jsonObj.getString(\"firstName\");\n String lastName = jsonObj.getString(\"lastName\");\n boolean inChat = jsonObj.getBoolean(\"inChat\");\n String preference = jsonObj.getString(\"preference\");\n String about = jsonObj.getString(\"about\");\n\n // login attempt was successful and we should proceed to the next activity\n if(error.equals(\"None\"))\n {\n\n session.createLoginSession(userID, userEmail, pass, profileLocation, firstName, lastName, inChat, true, preference, about);\n\n // Staring MainActivity\n Intent i = new Intent(getApplicationContext(), MatchActivity.class);\n startActivity(i);\n finish();\n }\n else\n {\n Log.v(\"Error\", \"Unexpected error occurred when parsing data.\");\n }\n }\n // failed login attempt\n catch(JSONException | NullPointerException e)\n {\n // if the user isn't currently connected to the internet, this exception will be thrown\n if (e instanceof NullPointerException)\n {\n Toast.makeText(LoginActivity.this, \"Error Connecting to Internet. Check your connection settings.\", Toast.LENGTH_SHORT).show();\n }\n // otherwise, the user's credentials were invalid and they need to try again\n else\n {\n Toast.makeText(LoginActivity.this, \"Login failed\", Toast.LENGTH_SHORT).show();\n mPasswordView.setError(getString(R.string.error_incorrect_password));\n mPasswordView.requestFocus();\n }\n\n }\n }\n }",
"@Override\n public void onSuccess(SignInResult signInResult) {\n intentLogin(mailPhone);\n }",
"@Override\n public void onSuccess(SignInResult signInResult) {\n intentLogin(mailPhone);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n mVerificationInProgress = false;\n Toast.makeText(PhoneActivity.this,\"Verification Complete\",Toast.LENGTH_SHORT).show();\n dialog.setMessage(\"Logging you in..\");\n dialog.show();\n signInWithPhoneAuthCredential(credential);\n }",
"public String Login(String phoneNum, String passwd) {\n return \"123\";\n }",
"private boolean login() {\n\t\t// Now log in using this name.\n\n\t\tif(!option.equals(\"1\") && !option.equals(\"2\") && !option.equals(\"3\") && !option.equals(\"0\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tMessage loginMessage = Message.makeLoginMessage(userName,password,option);\n\t\ttry {\n\t\t\tsocketConnection = new SocketNB(hostName, portNum);\n\t\t\tsocketConnection.startIMConnection();\n\t\t} catch (IOException e) {\n\t\t\t// Report the error\n\t\t\tSystem.err.println(\"ERROR: Could not make a connection to: \" + hostName + \" at port \" + portNum);\n\t\t\tSystem.err.println(\n\t\t\t\t\t\" If the settings look correct and your machine is connected to the Internet, report this error to Dr. Jump\");\n\t\t\t// And print out the problem\n\t\t\te.printStackTrace();\n\t\t\t// Return that the connection could not be made.\n\t\t\treturn false;\n\t\t}\n\t\t// Send the message to log us into the system.\n\t\tsocketConnection.print(loginMessage);\n\t\t// Create the background thread that handles our incoming messages.\n\t\tworkerBee = new ScanForMessagesWorker(this, socketConnection);\n\t\t// Start the worker bee scanning for messages.\n\t\tworkerBee.execute();\n\t\t// Return that we were successful\n\t\treturn true;\n\t}",
"@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}",
"private void setupLoginButton() {\n findViewById(R.id.loginActivityLoginButton).setOnClickListener(view -> {\n switch (\n this.loginController.verifyUserCredentials(\n ((TextView)findViewById(R.id.loginActivityEmailInput)).getText().toString().trim(),\n ((TextView)findViewById(R.id.loginActivityPasswordInput)).getText().toString().trim()\n )){\n case CORRECT_CREDENTIALS:\n Intent intent = new Intent(LoginActivity.this, MusicMatch.class);\n startActivity(intent);\n break;\n case INCORRECT_CREDENTIALS:\n Toast.makeText(getApplicationContext(), \"Error: Invalid Credentials\", Toast.LENGTH_LONG).show();\n break;\n default:\n Toast.makeText(getApplicationContext(), \"Network unavailable please try again later\", Toast.LENGTH_LONG).show();\n break;\n }\n });\n }",
"@Test\n public void ValidLoginTest() throws Exception {\n openDemoSite(driver).typeAuthInfo(loginEmail, \"Temp1234%\").signInByClick();\n }",
"public static void DoLogin(WebDriver driver){\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t \n\t //Launch application\n\t driver.navigate().to(\"http://socialsofttesthb.com/\");\n\t \n\t //Maximize the browser\n\t driver.manage().window().maximize();\n\t \n\t //driver.findElement(By.xpath(\".//*[@id='email']\")).sendKeys(\"[email protected]\");\n\t TestHelper.emailAddress(driver).sendKeys(\"[email protected]\");\n\t \n\t //driver.findElement(By.xpath(\".//*[@id='password']\")).sendKeys(\"Anuj123456\");\n\t TestHelper.password(driver).sendKeys(\"Anuj123456\");\n\t \n\t // Click Calculate Button\n\t driver.findElement(By.xpath(\".//*[@id='login-form']/button\")).click();\n\t \n\t \n\t\t\n\t}",
"@Test(priority = 1, dataProvider =\"inputData\")\r\n\t\tpublic void Login(String url,String Mob,String Pass ) throws InterruptedException \r\n\t\t\t{\r\n\t\t\tobjBaseClass.LocalBrowserInit(url);\r\n\t\t\t\tobjLoginPageView.Login(Mob,Pass);\r\n\t\t\t\tobjLoginPageView.YesPopup();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}",
"public MobileIDSession startLogin(String phone) {\n return startLogin(null, null, phone);\n }",
"public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }",
"public void attemptLogin()\n {\n if ( mAuthTask != null )\n {\n return;\n }\n\n // Reset errors.\n mIPView_.setError( null );\n mPortView_.setError( null );\n\n // Store values at the time of the login attempt.\n mIP_ = mIPView_.getText().toString();\n mPort_ = mPortView_.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if ( TextUtils.isEmpty( mPort_ ) )\n {\n mPortView_\n .setError( getString( R.string.error_field_required ) );\n focusView = mPortView_;\n cancel = true;\n }\n // The port should be four digits long\n else if ( mPort_.length() != 4 )\n {\n mPortView_\n .setError( getString( R.string.error_invalid_server ) );\n focusView = mPortView_;\n cancel = true;\n }\n\n // Check for a valid email address.\n if ( TextUtils.isEmpty( mIP_ ) )\n {\n mIPView_.setError( getString( R.string.error_field_required ) );\n focusView = mIPView_;\n cancel = true;\n }\n\n if ( cancel )\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView\n .setText( R.string.login_progress_signing_in );\n showProgress( true );\n\n // Start the asynchronous thread to connect and post to the server\n mAuthTask = new UserLoginTask();\n mAuthTask.execute( (Void) null );\n }\n }",
"public static void Android_meembah_Invalid_users() {\n try {\n\n AppiumDriver<MobileElement> driver = getAppiumDriver();\n Thread.sleep(2000);\n MobileElement el1 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[1]/android.widget.EditText\");\n el1.click();\n\n String userName = getData(\"UserName\");\n el1.sendKeys(userName);\n driver.hideKeyboard();\n MobileElement el2 = driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.ViewFlipper/android.widget.RelativeLayout/android.widget.ScrollView/android.view.ViewGroup/android.view.ViewGroup[1]/android.view.ViewGroup/android.view.ViewGroup[3]/android.widget.EditText\");\n String password = getData(\"Password\");\n\n el2.sendKeys(password);\n Thread.sleep(3000);\n driver.hideKeyboard();\n ReportHelper.logReportStatus(LogStatus.PASS, \"UserName and Password Given Successfully\");\n\n MobileElement loginBtn = driver.findElementByXPath(\"//android.widget.Button[@text='Login']\");\n loginBtn.click();\n\n Thread.sleep(4000);\n MobileElement Errormsg = driver.findElementByXPath(\"//android.widget.TextView[@text='Please enter a valid username or password and try again']\");\n\n if (Errormsg.isDisplayed()) {\n Thread.sleep(2000);\n ReportHelper.logReportStatus(LogStatus.PASS, \"Please enter a valid username or password and try again\");\n MobileElement e2 = driver.findElementByXPath(\"//android.widget.Button[@text='Go To Home']\");\n e2.click();\n Thread.sleep(2000);\n }\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"Login into the application\");\n\n }\n }",
"public void verifyLogin(String s1)\n\t{\n\t\tUtilityClass.fn_Click(\"usermanagement_plusicon_bt\");\n\t\t\n\t\t//log.info(\"providing mobile number in username input field\");\n\t\t//UtilityClass.fn_Input(\"Loginpage_usernm_Input\", s1);\n\t\t//System.out.println(\"in verifylogin\");\n\t\t\n\t}",
"private void attemptConnect() {\r\n if (mConnectTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mNameView.setError(null);\r\n mKeyView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String name = mNameView.getText().toString();\r\n String key = mKeyView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid name, if the user entered one.\r\n if (TextUtils.isEmpty(name)) {\r\n mNameView.setError(getString(R.string.error_invalid_password));\r\n focusView = mNameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(key)) {\r\n mKeyView.setError(getString(R.string.error_field_required));\r\n focusView = mKeyView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n mConnectTask = new ConnectTask(this, name, key);\r\n mConnectTask.execute((Void) null);\r\n }\r\n }",
"public void sendLoginClickPing() {\n WBMDOmnitureManager.sendModuleAction(new WBMDOmnitureModule(\"reg-login\", ProfessionalOmnitureData.getAppNamePrefix(this), WBMDOmnitureManager.shared.getLastSentPage()));\n }",
"@Test\n\tpublic void SignIn()\n\t{\n\t\tdriver.get(baseUrl);\n\t\tHomePage hp =new HomePage(driver);\n\t\thp.SignIn();\n\t\tString handle=driver.getWindowHandle();\n\t\tdriver.switchTo().window(handle);\n\t\t\n\t\t//2.\tLogin -Enter non-valid credentials. Expected error message is displayed\n\t\tLoginPage lp =new LoginPage(driver);\n\t\tlp.email(f);\n\t\tlp.password(p);\n\t\tlp.Login();\t\n\t\t\n\t\t// 3. Verify error message\n\t\tString ExpMsg = lp.Error_Mess();\n\t\tString DispMsg = (\"Authentication failed.\");\n\t\ttry\n\t\t{\n\t\t\tassertEquals(ExpMsg,DispMsg);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//4.\tLogin -Enter wrong credentials. Expected error message is displayed\n\t\tlp.email(g);\n\t\tlp.password(p);\n\t\tlp.Login();\n\t\t\n\t\t//5.\tVerify error message\n\t\tString ExpMsg1 = lp.Error_Mess();\n\t\tString DispMsg1 = (\"Invalid email address.\");\n\t\ttry\n\t\t{\n\t\t\tassertEquals(ExpMsg1,DispMsg1);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//6.\tLogin -Enter valid credentials and Sign in\n\t\tlp.Signin();\n\t\tlp.email(e);\n\t\tlp.password(p);\n\t\tlp.Login();\n\t}",
"public void enterPhoneNumber() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the Phone Number is available or not\");\n\t\tAssert.assertTrue(enterPhoneNumber.isDisplayed());\n\t\tenterPhoneNumber.sendKeys(BasePage.getCellData(xlsxName, sheetName, 9, 0));\n\n\t}",
"@And(\"^I enter the plenti phone number using mobile website$\")\n public void I_enter_the_plenti_phone_number_using_mobile_website() throws Throwable {\n TextBoxes.typeTextbox(Elements.element(\"plenti_enroll.phone_number\"), TestUsers.getuslCustomer(null).getUser().getProfileAddress().getBestPhone());\n }",
"private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}",
"@Test(priority = 0)\n public void correctLogin() {\n Login login = new Login(driver, wait);\n login.LoginMethod(login);\n login.typeCredentials(login.emailLabel, correctMail);\n login.typeCredentials(login.passwordLabel, correctPassword);\n login.click(login.submitBtn);\n login.checkElementDisplayed(login.loginContainer);\n }",
"private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n if(isOnline()){\n try {\n ApiRequests.POST(\"login/\", new Callback() {\n @Override\n public void onFailure(Call call, final IOException e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.e(\"error:\", \"burda\");\n }\n });\n }\n\n @Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n try {\n processTheResponse(response.body().string());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, email, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n InternetConnectionError();\n }\n }\n }",
"public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }",
"private void login() {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"login: \");\n\n // Store values at the time of the login attempt.\n mEmail = mEditTextSignInEmail.getText().toString();\n mPassword = mEditTextSignInPassword.getText().toString();\n mFocusView = null;\n\n // Check for a valid password\n if (TextUtils.isEmpty(mPassword) || !mPresenter.isPasswordValid(mPassword)) {\n mEditTextSignInPassword.setError(getString(R.string.error_invalid_password));\n mFocusView = mEditTextSignInPassword;\n isProcessCancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_field_required));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n } else if (!mPresenter.isEmailValid(mEmail)) {\n mEditTextSignInEmail.setError(getString(R.string.error_invalid_email));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n\n if (isProcessCancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n mFocusView.requestFocus();\n\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true, mLinearlayoutSignIn);\n mPresenter.loginTask(this, mAuth, mEmail, mPassword, new SignInCallback() {\n @Override\n public void onCompleted() {\n showProgress(false, mLinearlayoutSignIn);\n showUserInfoLog();\n transToShareBookActivity();\n }\n\n @Override\n public void onError(String errorMessage) {\n Log.d(Constants.TAG_LOGIN_ACTIVITY, \"onError: \" + errorMessage);\n\n showProgress(false, mLinearlayoutSignIn);\n mEditTextSignInEmail.setError(getString(R.string.error_login_fail));\n mFocusView = mEditTextSignInEmail;\n isProcessCancel = true;\n }\n });\n }\n }",
"private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_email_is_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mPresenter.isEmailValid(email)) {\n //mEmailView.setError(getString(R.string.error_invalid_email));\n customConfirmDialog(getString(R.string.message_incorrect_email), getString(R.string.message_require_format_email));\n focusView = mEmailView;\n cancel = true;\n }else if (!TextUtils.isEmpty(password) && !mPresenter.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n //customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }else if(TextUtils.isEmpty(password))\n {\n customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n if (isNetworkOffline()) {\n return;\n }\n showLoadingDialog(getString(R.string.message_please_wait));\n mPresenter.doLoginByEmail(email, password);\n }\n }",
"public void PINext (View view){\n try {\n readCardOpt.cancelCheckCard();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n final ProgressDialog pdialog = new ProgressDialog(powerInstantActivity.this);\n pdialog.setMessage(\"Loading, Please wait...\");\n pdialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pdialog.setCancelable(false);\n pdialog.show();\n\n if (meternumber.getText().toString() != null){\n meter = meternumber.getText().toString();\n\n if (piphoneno.getText().toString() != null){\n powerphone = piphoneno.getText().toString();\n int length = piphoneno.getText().length();\n if (length > 6 && length < 8){\n String firstdigit = powerphone.substring(0, 1);\n if (firstdigit.equals(\"8\") || firstdigit.equals(\"7\")){\n\n if (piamount.getText().toString() != null && !piamount.getText().toString().isEmpty()){\n poweramount = piamount.getText().toString();\n int amt = Integer.parseInt(poweramount);\n if (amt > 4 && amt < 401){\n appConn = new AppConn();\n appConn.meter_no = meter;\n appConn.webLink = Global.URL;\n appConn.commandpost = \"metercheck\";\n appConn.meterChecker(new ResponseListener() {\n @Override\n public void onResponse(Response response) {\n if (appConn.meterFailedcode != null) {\n pdialog.dismiss();\n Toast.makeText(powerInstantActivity.this, \"failedcode : \" + appConn.meterFailedcode, Toast.LENGTH_SHORT).show();\n } else {\n // test for valid meter number : 37120107851 / 98t00642\n\n String meterValidity = appConn.res_server;\n System.out.println(\"meterValidity = \" + meterValidity);\n if (meterValidity.equals(\"yes\")) {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.truetick);\n\n startActivity(new Intent(powerInstantActivity.this, powerInstantConfirm.class)\n .putExtra(\"name\", appConn.res_name)\n .putExtra(\"meter\", meternumber.getText().toString().toUpperCase())\n .putExtra(\"phoneno\", powerphone)\n .putExtra(\"amount\", piamount.getText().toString())\n .putExtra(\"piPid\", powerinstantPid)\n .putExtra(\"piMail\", powerinstantMail));\n } else {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.falsetick);\n Toast.makeText(powerInstantActivity.this, \"Invalid Meter No.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n @Override\n public void onError(String error) {\n pdialog.dismiss();\n finish();\n Toast.makeText(powerInstantActivity.this, \"Error : \" + error, Toast.LENGTH_SHORT).show();\n startActivity(new Intent(powerInstantActivity.this, errorActivity.class));\n }\n });\n //\n\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Amount range: $5 - $400\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter amount no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no. length\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter meter no.\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"public void onNextClicked(View v) {\n // TODO: format phone number\n final String email = etEmail.getText().toString();\n final String mobile = etMobile.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty() || mobile.isEmpty() || password.isEmpty()) {\n Toast.makeText(this, \"Please complete the form\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (password.length() < 5) {\n Toast.makeText(this, \"Password must have at least 5 characters\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (!DeviceUtil.hasConnection(this)) {\n Toast.makeText(this, \"No Internet connection\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n final IdentityVerifier identityVerifier = new IdentityVerifier(this, new IdentityVerifier.ResultCallback() {\n @Override\n public void handleResult(int result) {\n if (result == IdentityVerifier.RESULT_PASS) {\n clearError();\n goToCreateProfile(email, mobile, password);\n } else {\n showError(result);\n }\n }\n\n @Override\n public void handleFault(ParseException fault) {\n if (fault != null) {\n Logger.e(TAG, fault.getMessage());\n Toast.makeText(RegisterActivity.this, fault.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n identityVerifier.verify(email, mobile);\n }",
"@Override\n public void onClick(View v)\n {\n phoneAuthentication();\n }",
"private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}",
"@BeforeTest\n\tpublic static void loginFunctionality() throws Exception \n\t{\n\t\tDesiredCapabilities cap=new DesiredCapabilities();\n\t\t\n\t\tcap.setCapability(MobileCapabilityType.DEVICE_NAME,\"Redmi\");\n\t\tcap.setCapability(\"udid\", \"6215b09b\");\n\t\tcap.setCapability(\"platformName\", \"Android\");\n\t\tcap.setCapability(\"platformVersion\", \"9 PKQ1.180904.001\");\n\t\tcap.setCapability(\"appPackage\", \"com.danamon.uatomnimicroapps\");\n\t\tcap.setCapability(\"appActivity\", \"com.danamon.uatomnimicroapps.MainActivity\");\n\t\tcap.setCapability(\"noReset\", true);\n\t\tcap.setCapability(\"fullReset\",false);\n\t\t\n\t\t\n\t\t\n\t\tURL url=new URL(\"http://127.0.0.1:4723/wd/hub\");\n\t\t\n\t\t\n\t\tdriver=new AndroidDriver<AndroidElement>(url,cap);\n\t\tSystem.out.println(\"application started..\");\n\t\t//Thread.sleep(50000);\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\n\t\t/*\n\t\t MobileElement el1 = (MobileElement) driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[1]/android.view.View[1]/android.view.View[2]\");\n\t\t \n\t\tel1.click();\n\t\tMobileElement el2 = (MobileElement) driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.widget.EditText\");\n\t\tel2.sendKeys(\"perfomni1\");\n\t\t\n\t\tMobileElement el3=(MobileElement)driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.view.View[3]/android.widget.EditText\");\n\t\t\n\n\tel3.sendKeys(\"Reskin01\");\n\tdriver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.widget.Button[1]\").click();\n\t\tThread.sleep(220000);\n\t\t\n\n\t\t//MobileElement el4=(MobileElement)driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.view.View[3]/android.widget.EditText\");\n\t\t\n\n\t\t//el4.sendKeys(\"Reskin01\");\n\t\t \n\t\t */\n\t\t\n\t\tMobileElement el5 = (MobileElement) driver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.view.View[2]/android.widget.EditText\");\n\t\tel5.sendKeys(\"Reskin01\");\n\n\t\tdriver.findElementByXPath(\"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.webkit.WebView/android.webkit.WebView/android.view.View/android.view.View[5]/android.view.View/android.view.View[2]/android.view.View[2]/android.view.View[2]/android.view.View/android.view.View[1]/android.widget.Button\").click();\n\t\n\t\t\t\t}",
"public void enterLoginID() throws Exception {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\n\t\tlog.info(\"Verifying the Login ID is available or not\");\n\t\tAssert.assertTrue(enterLoginID.isDisplayed());\n\t\tenterLoginID.sendKeys(BasePage.getCellData(xlsxName, sheetName, 0, 0));\n\t}",
"public void CheckLogin()\n\t{\n\t\t\n\t\t\n\t\tinput = new Scanner(System.in);\n\t\tint checkans;\n\t\tSystem.out.println(\"\\t\\t===============================\");\n\t\tSystem.out.println(\"\\n\\t\\t\\tWELCOME BACK\\n\");\n\t\tSystem.out.println(\"\\t\\t===============================\");\n\t\tSystem.out.println(\"***********************************1-PRESS '1' EMPLOYEE\"\n\t\t\t\t+ \"\\n***********************************2-PRESS '2' CUSTOMER\"\n\t\t\t\t+ \"\\n***********************************3-PRESS '3' GO BACK TO THE PAGE \");\n\t\tdo{\tSystem.out.print(\">>>>>\");checkans=input.nextInt();\n\t\t\n\t\tswitch(checkans) {\n\t\tcase 1: EmpCheckLogin();\tbreak;\t\n\t\tcase 2: CustCheckLogin();\tbreak;\t\n\t\tcase 3: ms.pageoneScreen();\tbreak;\t\n\t\tdefault: System.out.println(\"Invalid choice\\n***********************************1-PRESS '1' EMPLOYEE\"\n\t\t\t\t+ \"\\n***********************************2-PRESS '2' CUSTOMER\"\n\t\t\t\t+ \"\\n***********************************3-PRESS '3' GO BACK TO THE PAGE\");}\n\t\t\n\t\t}while(checkans!=1 && checkans!=2&& checkans!=3);\n\t\t\n\t\t\n\t}",
"public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}",
"protected void doAdminLogin() {\n\t\tif (et_pin.getText().toString().trim().equals(\"\")) {\r\n//\t\t\td.dialogShow(v, AdminLoginActivity.this, \"Sorry\",\r\n//\t\t\t\t\t\"Please enter your master pin\");\r\n\t\t\t\r\n\t\t\td.showSingleButtonDialog( AdminLoginActivity.this,\r\n\t\t\t\t\t\"Please enter your master pin\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\r\n\t\t\tGlobalVariable.adminMasterPin = et_pin.getText().toString().trim();\r\n\t\t\tIntent i = new Intent(AdminLoginActivity.this,\r\n\t\t\t\t\tAdminConfirmLoginActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\toverridePendingTransition(R.anim.open_translate,\r\n\t\t\t\t\tR.anim.close_translate);\r\n\r\n\t\t}\r\n\t}",
"@Override\n public void success(DigitsSession session, final String phoneNumber) {\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }",
"private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}",
"public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}",
"private static void signInCorpMailApp()\n\t{\n\t\t\n\t\tif(driver==null)\n\t\t\tlaunchBrowser();\n\t\t\n\t\tdriver.get(\"https://mail.nagra.com/\");\n\t\t\n\t\tCommonUtil.sleep(30);\n\t\t\n\t\t/*WebElement txtUserName = driver.findElement(By.id(\"username\"));\n\t\tWebElement txtPassword = driver.findElement(By.id(\"password\"));\n\t\t\n\t\tdriver.getTitle()\n\t\t\n\t\t//Input user name\n\t\ttxtUserName.clear();\n\t\ttxtUserName.sendKeys(username);\n\t\t\n\t\t//Input password\n\t\ttxtPassword.clear();\n\t\ttxtPassword.sendKeys(password);\n\t\t\n\t\t//Click login\n\t\tdriver.findElement(By.id(\"SubmitCreds\")).click();*/\n\t}",
"private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }",
"public void test_Login() throws Exception {\n//\t\tSystem.setProperty(BrowType, BrowPath);\n//\t\tWebDriver driver = new ChromeDriver();\n\t\t\n//\t\tdriver.get(url);\n//\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.findElement(By.id(\"emailAddress\")).sendKeys(EmailAddress);\n\t\tdriver.findElement(By.id(\"password\")).sendKeys(Password);\n\t\tdriver.findElement(By.id(\"signInButton\")).click();\n\t\tThread.sleep(5000);\n\t\t\n\t\tString ExpConfMsg2 = \"Signed in as \" + DisplayName + \"(Sign Out)\";\n\t\tString ConfMsg2 = driver.findElement(By.xpath(\"//*[@id='signedInAs']\")).getText();\n\t\tif(ConfMsg2.equals(ExpConfMsg2)) {\n\t\t\tSystem.out.println(\"Login functionality Passed. Confirmation Message that appeared is : \" + ConfMsg2);\n\t\t} else {\n\t\t\tSystem.out.println(\"Login functionality Failed. Confirmation Message that appeared is : \" + ConfMsg2);\n\t\t}\n\t\t\n\t\tdriver.quit();\n\t\t\n\t}",
"public void clkbtnLogin() {\n\t\tWebDriverWait wait = new WebDriverWait(ldriver, 25);\n\t\twait.until(ExpectedConditions.visibilityOf(btnLogin));\n\t\twait.until(ExpectedConditions.elementToBeClickable(btnLogin));\n\t\tbtnLogin.click();\n\t}",
"@OnClick(R.id.login_login_btn)\r\n protected void login(View view) {\n String username = StringsOperations.getTextFromEditText(mUsername);\r\n if (!GenericDialogs.isFieldValidAndShowValidMessage(username, R.string.validate_email, mContext)) {\r\n return;\r\n }\r\n\r\n String password = StringsOperations.getTextFromEditText(mPassword);\r\n if (!GenericDialogs.isFieldValidAndShowValidMessage(password, R.string.validate_password, mContext)) {\r\n return;\r\n }\r\n\r\n LoginDto loginDto = new LoginDto(username, password);\r\n mCustomProgressBar.showHideProgressBar(true, getString(R.string.loading_login));\r\n mLoginService.loginWithEmail(new ResponseCallBackHandler() {\r\n @Override\r\n public void returnResponse(ResponseHandler responseHandler) {\r\n mCustomProgressBar.showHideProgressBar(false, null);\r\n if (responseHandler.isExecuted()) {\r\n mUserSession.login((User) responseHandler.getValue());\r\n ChangeActivityHelper.changeActivityClearStack((Activity) mContext, HomeActivity.class, true);\r\n return;\r\n }\r\n\r\n // Not verified\r\n if (getString(R.string.email_not_verified).equalsIgnoreCase(responseHandler.getMessage())) {\r\n GenericDialogs.getGenericConfirmDialog(mContext, \"\", getString(R.string.login_service_failed),\r\n \"Verify Email\", GenericDialogs.OK, false, new GenericConfirmationDialogBoxCallback() {\r\n @Override\r\n public void PositiveMethod(DialogInterface dialog, int id) {\r\n Uri uri = Uri.parse(\"https://mysnsi.scubasnsi.com/verify-email\"); // missing 'http://' will cause crashed\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\r\n startActivity(intent);\r\n dialog.dismiss();\r\n\r\n }\r\n\r\n @Override\r\n public void NegativeMethod(DialogInterface dialog, int id) {\r\n dialog.dismiss();\r\n }\r\n });\r\n } else {\r\n //Wrong username password\r\n GenericDialogs.showInformativeDialog(responseHandler.getMessage(), mContext);\r\n }\r\n\r\n }\r\n }, loginDto);\r\n\r\n }",
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"public void goingToLoginActivity_changing_mob_no(View view) {\r\n Intent i = new Intent(OtpScreen.this, LoginScreen.class);\r\n startActivity(i);\r\n }",
"private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }",
"public String Login_by_entering_credentials_which_do_not_exsist() {\n\temailtextbox.sendKeys(\"User\"+random.nextInt(100000)+\"@gmail.com\");\n\tpasswordtextbox.sendKeys(\"password\"+random.nextInt(100000));\n\tLoginButton.click();\n\twait.TextToBe_Wait(\"//div[text()='Invalid Email or Password']\", \"Invalid Email or Password\");\n\tString text=ErrorMessage.getText();\n\treturn text;\n\t}",
"@Override\n public void onClick(View view) {\n\n String numberPhone = inputPhoneNumEt.getText().toString();\n if(TextUtils.isEmpty(numberPhone)){\n showToastMessage(\"phone number required!\");\n }else{\n //loading bar put here\n ///...\n // [START start_phone_auth]\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n numberPhone, // Phone number to verify\n 60, // Timeout duration\n TimeUnit.SECONDS, // Unit of timeout\n PhoneLoginActivity.this, // Activity (for callback binding)\n mCallbacks); // OnVerificationStateChangedCallbacks\n // [END start_phone_auth]\n }\n }",
"private static void Test4(ChromeDriver driver) throws InterruptedException {\n\t\tScanner scan=new Scanner(System.in);\n\t\tHold();\n\t\tdriver.findElement(By.id(\"student\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"otpLogin\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"roll\")).sendKeys(\"CB.EN.U4CSE18452\");\n\t\tdriver.findElement(By.ByTagName.id(\"submitBtn\")).click();\n\t\tString otp;\n\t\tSystem.out.print(\"Enter OTP: \");\n\t\totp=scan.next();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.name(\"otp\")).sendKeys(otp);\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"submitOTP\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"logoutBtn\")).click();\n\t\tHold();\n\t\tdriver.findElement(By.ByTagName.id(\"HomeBtn\")).click();\n\t}",
"@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }",
"public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}",
"public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}",
"@Override\n\tpublic void loginGPGS() {\n\t\ttry {\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgameHelper.beginUserInitiatedSignIn();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (final Exception ex) {\n\t\t}\n\n\t}",
"public String F_WebLogin(String uniqueValue) throws InterruptedException, EncryptedDocumentException, InvalidFormatException, IOException {\n\t\t\n\t\tdata = readExcelData(\"Info\", uniqueValue);\n\t\t//startTime=System.currentTimeMillis();\n\t\t//System.out.println(startTime);\n\t\tThread.sleep(2000);\n\t\tloginLink.click();\n\t\tThread.sleep(2000);\n\t\tmobileNo.clear();\n\t\t//mobileNo.sendKeys(\"8951350\");\n\t\tmobileNo.sendKeys(data.get(\"Email\"));\n\t\tSystem.out.println(data.get(\"Email\"));\n\t\tThread.sleep(2000);\n\t\t//password.sendKeys(\"**********\");\n\t\tpassword.sendKeys(data.get(\"Password\"));\n\t\tSystem.out.println(data.get(\"Password\"));\n\t\tThread.sleep(5000);\n\t\ttry{\n\t\tif (show.isDisplayed()) {\n\t\t\t Login.click();\n\t\t\t // endTime=System.currentTimeMillis();\n\t\t\t //System.out.println(endTime);\n\t\t\t //System.out.println(\"Time taken to load page:\"+(totalTime=(endTime-startTime)/1000)+\" Seconds\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t}\n\t\n\t\treturn uniqueValue;\n\t\t\n\t}",
"@Test(priority=1)\r\n\tpublic void loginApp()\r\n\t{\r\n\t\t\r\n\t\tlogger=report.createTest(\"Login To Pymidol\");\r\n\t\r\n\t\tLoginPage loginPage=PageFactory.initElements(driver, LoginPage.class); //it will goto login page check all the locators initialise then it will return object of same class\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\"); //it will provide information about test or test step\r\n\t\t\r\n\t\tloginPage.loginToPymidol(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\r\n\t\t\r\n\t\tlogger.pass(\"Login done Success\");\r\n\t\r\n\t}",
"@Test\n\tpublic void cricLogin(){\n\t\tdriver.get(\"http://localhost:8080/CricWebApp/login.do\");\n\t\tdriver.manage().window().maximize(); \n\t\ttry {\n\t\t\tThread.sleep(4000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//driver.findElement(By.linkText(\"Sign Up\")).click();\n\t\tdriver.findElement(By.name(\"userName\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"jmuh\");\n\t\tdriver.findElement(By.tagName(\"input\")).click();\n\t\tdriver.findElement(By.xpath(\"/html/body/form/div[2]/table/tbody/tr[3]/td/input\")).click();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdriver.close();\n\t\t\n\t}",
"public void Login(View view) throws InterruptedException {\n \t\tLogger CONLOG = Logger.getLogger(LoginActivity.class .getName());\n \t\tCONLOG.setLevel(Level.INFO);\n \t\tCONLOG.info(\"Login page loaded\");\n \t\tfinal String EMAIL_PATTERN = \n \t\t\t\t\"^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$\";\n \t\tfinal Pattern pattern = Pattern.compile(EMAIL_PATTERN);\n \t\tfinal Matcher matcher;\n \n \t\tString email = ((EditText)findViewById(R.id.email)).getText().toString();\n \t\tString password = ((EditText)findViewById(R.id.password)).getText().toString();\n \t\tCONLOG.info(\"Login info: <\"+email+\", \"+password+\">\");\n \t\tmatcher = pattern.matcher(email);\n \n \t\tif(email.isEmpty()){\n \t\t\tToast.makeText(getApplicationContext(), \"Email field is empty\", Toast.LENGTH_SHORT).show();\n \t\t}else if(password.isEmpty()){\n \t\t\tToast.makeText(getApplicationContext(), \"Password field is empty\", Toast.LENGTH_SHORT).show();\n \t\t}else if(!matcher.matches()){\n \t\t\tToast.makeText(getApplicationContext(), \"Email: \\\"\"+email+\"\\\" is not a valid email address!\", Toast.LENGTH_SHORT).show();\n \t\t}else{\n \n \t\t\tString status =\"fail\";\n \t\t\tAccessNet caller = new AccessNet();\n \n \t\t\tString params = \"email=\"+email+\"&password=\"+password;\n \t\t\tString urlstub = \"AccountLogin.php\";\n \n \t\t\tCONLOG.info(\"Attempting to call server at: \"+urlstub+\", \"+params);\n \t\t\tstatus = caller.simpleServerCall(urlstub, params);\n \n \t\t\tif(status.equalsIgnoreCase(\"success\")){\n \t\t\t\tCONLOG.info(\"Server call successful and logged in!\");\n \t\t\t\tIntent intent = new Intent(this, MainActivity.class);\n \t\t\t\tToast.makeText(getApplicationContext(),\"Welcome\", Toast.LENGTH_SHORT).show();\n \t\t\t\tstartActivity(intent);\n\t\t\t\tthis.finish();\n \t\t\t}else{\n \t\t\t\tCONLOG.info(\"Server call successful but user failed login.\");\n \t\t\t\tToast.makeText(getApplicationContext(),\"Incorrect username or password\", Toast.LENGTH_SHORT).show();\n \t\t\t}\n \t\t}\n \t}",
"public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }",
"@Test(priority = 7)\n\tpublic void loginTest4() throws InterruptedException {\n\t\tHomePage home = new HomePage(this.driver);\n\t\tAssert.assertTrue(home.myAccountElementIsDisplayed());\n\t\thome.navigateToMyAccount();\n\t\tAssert.assertTrue(home.dropBoxMyAccountIsDisplayed());\n\t\tLoginPage login = new LoginPage(this.driver);\n\t\tlogin = home.navigateToLogin();\n\t\tAssert.assertTrue(login.loginPageIsOpen());\n\t\tThread.sleep(2000);\n\t\tlogin.clearField();\n\t\tThread.sleep(2000);\n\t\tlogin.navigateToEmailField(\"[email protected]\");\n\t\tlogin.navigateToPasswordField(\"\");\n\t\tlogin.navigateToLoginBtn();\n\t\tAssert.assertTrue(login.errorDisplayed());\n\t\thome.navigateToReturnHomePage();\n\t}",
"public void getVerified() {\n Toast.makeText(this, \"Enter your registered mobile number\", Toast.LENGTH_LONG).show();\n\n authCallback = new AuthCallback() {\n\n @Override\n public void success(DigitsSession session, final String phoneNumber) {\n\n //In case phone number gets verified.. call successMethod() function..\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }\n\n @Override\n public void failure(DigitsException exception) {\n //In case phone number isn't verified, finish() this activity displaying appropriate toast..\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }\n };\n\n Digits.clearActiveSession();\n getAuthCallback();\n AuthConfig.Builder authConfigBuilder = new AuthConfig.Builder()\n .withAuthCallBack(authCallback)\n .withPhoneNumber(\"+91\");\n Digits.authenticate(authConfigBuilder.build());\n }",
"public void gotoCoachLogin(){ application.gotoCoachLogin(); }",
"@Test\r\n\tpublic void loginApp1() throws InterruptedException\r\n\t{\n\t\tlogger = report.createTest(\"Another\");\r\n\t\t//freeCRMLoginPage loginPageObj = PageFactory.initElements(driver, freeCRMLoginPage.class);\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\");\r\n\t\t\r\n\t\t//loginPageObj.loginToCRM(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\t\r\n\t\t\r\n\t\tlogger.fail(\"Login fail\");\r\n\t\thelper.captureScreenShot(driver);\r\n\t\t\t\t\t\t\r\n\t}",
"private void attemptLogin() {\n /* if (mAuthTask != null) {\n return;\n }\n*/\n // Reset errors.\n mEmailView.setError(null);\n editTextname.setError(null);\n\n pojo = new BusinessAccountPojo();\n // Store values at the time of the login attempt.\n pojo.email = mEmailView.getText().toString();\n pojo.name = editTextname.getText().toString();\n// pojo.phone_number = editTextPhone.getText().toString();\n// pojo.phone_number = String.valueOf(primaryNumber.getNationalNumber());\n\n\n String num = primaryNumber.getNumber();\n\n// String phone = primaryNumber.getNationalNumber();\n// primaryNumber.getNumber()\n\n pojo.category= etCategory.getText().toString();\n pojo.services = etService.getText().toString();\n pojo.keywords= etKeyword.getText().toString();\n pojo.address = etAddress.getText().toString();\n pojo.latitude = \"17.68\";\n pojo.longitude = \"83.21\";\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty( pojo.email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!pojo.email.matches(UtilsServer.EMAIL_PATTERN)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n\n\n if (TextUtils.isEmpty(pojo.name)) {\n editTextname.setError(getString(R.string.error_username));\n focusView = editTextname;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(num)) {\n primaryNumber.setError(getString(R.string.error_field_required));\n focusView = primaryNumber;\n cancel = true;\n\n\n }else if (!isValidPhonneNumber){\n cancel = true;\n primaryNumber.setError(getString(R.string.error_invalid_phone));\n focusView = primaryNumber;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.category)) {\n etCategory.setError(getString(R.string.error_field_required));\n focusView = etCategory;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.keywords)) {\n etKeyword.setError(getString(R.string.error_field_required));\n focusView = etKeyword;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.services)) {\n etService.setError(getString(R.string.error_field_required));\n focusView = etService;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.address)) {\n etAddress.setError(getString(R.string.error_field_required));\n focusView = etAddress;\n cancel = true;\n }\n\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n pojo.phone_number = num.substring(3);\n\n createBusinessAccount(pojo);\n\n\n // confirmOtp();\n// mAuthTask = new UserLoginTask(email, \"password\");\n// mAuthTask.execute((Void) null);\n }\n }",
"@Test(description = \"Login con credenciales correctas\", enabled = false)\n\tpublic void login() {\n\t\tPageLogin pageLogin = new PageLogin(driver);\n\t\tPageReservation pageReservation = new PageReservation(driver);\n\t\tpageLogin.login(\"mercury\", \"imercury\");\n\t\tpageReservation.assertPage();\n\t\t//****Este código se cambió por A****\n\t\t/*driver.findElement(By.name(\"userName\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"login\")).click();*/\n\t\t//******todo este código que se repite se cambió por B****\n\t\t/*try {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//****código B****\n\t\t/*Helpers helper = new Helpers();\n\t\thelper.sleepSeconds(4);*/\n\t\t//este codigo pasa a la Page Object(page reservation)\n\t\t//Assert.assertTrue(driver.findElement(By.xpath(\"/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/font\")).getText().contains(\"Flight Finder to search\"));\n\t}"
]
| [
"0.811232",
"0.7354985",
"0.6491805",
"0.63236684",
"0.62573373",
"0.6254961",
"0.62291956",
"0.6218996",
"0.6159669",
"0.61110216",
"0.6105996",
"0.60556835",
"0.6018605",
"0.6018113",
"0.5977574",
"0.5961596",
"0.5939509",
"0.5932942",
"0.59209406",
"0.5914049",
"0.5902714",
"0.58920926",
"0.5871082",
"0.586483",
"0.5863271",
"0.5830108",
"0.58174366",
"0.58035135",
"0.5796119",
"0.5777355",
"0.57731724",
"0.57603437",
"0.57581145",
"0.57513934",
"0.57492137",
"0.57492137",
"0.5738328",
"0.57370263",
"0.5728171",
"0.57208556",
"0.57171816",
"0.5714322",
"0.57045436",
"0.56961507",
"0.56893796",
"0.5688084",
"0.56842977",
"0.56816477",
"0.5666119",
"0.5664042",
"0.5661937",
"0.56605405",
"0.56537646",
"0.5650689",
"0.5649049",
"0.56463873",
"0.56457895",
"0.5639769",
"0.56376505",
"0.5632136",
"0.56288326",
"0.5625375",
"0.56221336",
"0.561977",
"0.56129223",
"0.560543",
"0.5602984",
"0.5602137",
"0.56018853",
"0.5596821",
"0.5594965",
"0.5594592",
"0.55846316",
"0.5568732",
"0.5563631",
"0.5563334",
"0.55606586",
"0.55563396",
"0.5550832",
"0.5542513",
"0.55413145",
"0.5539831",
"0.5539371",
"0.55342513",
"0.5533965",
"0.5530922",
"0.5530848",
"0.5528562",
"0.55258113",
"0.55255723",
"0.5524726",
"0.5524626",
"0.55184805",
"0.551682",
"0.5512326",
"0.5504331",
"0.55000216",
"0.54990155",
"0.54856664",
"0.5485598"
]
| 0.7611353 | 1 |
Waits for the next page after Verify Phone page. Based on the Phone Verification status the next page could be Home Page,Verify Device page, Merchant Payment screen or Prepaid popup. | public void gotoHome() // Wait for Home page or Verify Device page
{
WebDriverWait wait= new WebDriverWait(driver,90);
try
{
wait.until(ExpectedConditions.visibilityOf(checker));
}
catch(Exception e)
{
Assert.fail(" Page is taking too much time to load , stopping execution");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForPhoneVerification() \n\t{\n\t\tString xp=\"//android.widget.TextView[contains(@text,'Verify')]\"; \n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 40).until(ExpectedConditions.visibilityOf(phoneVerificationIdentifier));\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Phone Verification page not found\\n\"+e.getMessage());\n\t\t}\n\t}",
"public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//android.widget.TextView[contains(@text,'Verify')]\")));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Verify Phone page not found\"+e.getMessage());\n\t\t}\n\t\t\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\tif(pageTitle.getText().contains(\"Device\"))\n\t\t{\t\t\t\n\t\t\tLog.info(\"== Verify Device page found instead of Verify Phone page ==\"); \t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click();\n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \t\t\n\t\t\n\t\tnew WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button1\"))\n\t\t{\t\n\t\t\tchecker.click();\n\t\t\t\n\t\t\tnew WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tif(checker.getText().contains(\"OK\") && checker.getAttribute(\"resourceId\").contains(\"button2\")) return;\t// LGN_05 will verify this\t\n\t\t\n\t\t//gotoHome();\tNo need to go to Home since Error messages and skip buttons need to be validated\t\n\t}",
"public void onNextClicked(View v) {\n // TODO: format phone number\n final String email = etEmail.getText().toString();\n final String mobile = etMobile.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty() || mobile.isEmpty() || password.isEmpty()) {\n Toast.makeText(this, \"Please complete the form\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (password.length() < 5) {\n Toast.makeText(this, \"Password must have at least 5 characters\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (!DeviceUtil.hasConnection(this)) {\n Toast.makeText(this, \"No Internet connection\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n final IdentityVerifier identityVerifier = new IdentityVerifier(this, new IdentityVerifier.ResultCallback() {\n @Override\n public void handleResult(int result) {\n if (result == IdentityVerifier.RESULT_PASS) {\n clearError();\n goToCreateProfile(email, mobile, password);\n } else {\n showError(result);\n }\n }\n\n @Override\n public void handleFault(ParseException fault) {\n if (fault != null) {\n Logger.e(TAG, fault.getMessage());\n Toast.makeText(RegisterActivity.this, fault.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n identityVerifier.verify(email, mobile);\n }",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"public void loginWithPersonalDeviceWithSkip()\n\t{\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click(); \n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \tor Verify Failed popup\n\t\t\n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\t\t// 60 + 30 sec taken by try catch \n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\t\n\t\t\tGeneric.wait(2);\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e.getMessage());\n\t\t\t\n\t\t\t/*Log.info(\"======== Page taking too much time to load , trying to click on Lets Login by cancelling phone verification ========\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\tverifyAbortButton.click();\n\t\t\t\tgotoHome();\t\n\t\t\t\treturn;\t\n\t\t\t}\n\t\t\tcatch(Exception e1)\n\t\t\t{\n\t\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e1.getMessage());\n\t\t\t}*/\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\t// ==== Handle Verify Phone Authentication failed alert ==== //\n\t\tif (checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button2\"))\n\t\t{\n\t\t\tLog.info(\"======== Skipping Phone verification ========\");\n\t\t\tdriver.findElement(By.id(\"button2\")).click();\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tcontinueButton.click();\t\n\t\t\tGeneric.wait(5);\n\t\t\treturn;\t// goto to VerifyDevice Page from verifyLogin() method\t\t\n\t\t}\t\t\t\n\t\tgotoHome();\t\t\n\t}",
"@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }",
"@Override\n\tpublic void navigateToNext(String phoneNum) {\n\t\t\n\t}",
"private InboxPage clickPasswordNext() {\n try {\n Thread.sleep(2000);\n } catch (Exception e) {\n }\n if (waitForElementDisplayed(By.id(ID_PASSWORD_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_PASSWORD_NEXT)));\n return new InboxPage(driver);\n }\n return null;\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n if (code != null){\n progressBar.setVisibility(View.VISIBLE);\n System.out.println(\"PhoneAuthProvider onVerificationCompleted \"+phoneAuthCredential);\n verifyCode(code);\n }\n }",
"@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"public void getVerified() {\n Toast.makeText(this, \"Enter your registered mobile number\", Toast.LENGTH_LONG).show();\n\n authCallback = new AuthCallback() {\n\n @Override\n public void success(DigitsSession session, final String phoneNumber) {\n\n //In case phone number gets verified.. call successMethod() function..\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }\n\n @Override\n public void failure(DigitsException exception) {\n //In case phone number isn't verified, finish() this activity displaying appropriate toast..\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }\n };\n\n Digits.clearActiveSession();\n getAuthCallback();\n AuthConfig.Builder authConfigBuilder = new AuthConfig.Builder()\n .withAuthCallBack(authCallback)\n .withPhoneNumber(\"+91\");\n Digits.authenticate(authConfigBuilder.build());\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n loading.setVisibility(View.VISIBLE);\n etOtp.setText(code);\n etOtp.setEnabled(false);\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }",
"public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}",
"public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometimes the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n\n codeValues_into_views(code);\n\n stop_timer();\n //verify the code\n verifyVerificationCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n mVerificationInProgress = false;\n Toast.makeText(PhoneActivity.this,\"Verification Complete\",Toast.LENGTH_SHORT).show();\n dialog.setMessage(\"Logging you in..\");\n dialog.show();\n signInWithPhoneAuthCredential(credential);\n }",
"private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }",
"public abstract boolean Verifypage();",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }",
"@Step\n public void waitUntilSmsCodeWillBeSent(){\n Utils.waitABit(3);\n actionWithWebElements.waitVisibilityOfElement(confirmationCodeFromSmsHeader);\n actionWithWebElements.waitVisibilityOfElement(confirmationSmsCodeInput);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)\n {\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"@Override\n public void onClick(View view) {\n\n String numberPhone = inputPhoneNumEt.getText().toString();\n if(TextUtils.isEmpty(numberPhone)){\n showToastMessage(\"phone number required!\");\n }else{\n //loading bar put here\n ///...\n // [START start_phone_auth]\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n numberPhone, // Phone number to verify\n 60, // Timeout duration\n TimeUnit.SECONDS, // Unit of timeout\n PhoneLoginActivity.this, // Activity (for callback binding)\n mCallbacks); // OnVerificationStateChangedCallbacks\n // [END start_phone_auth]\n }\n }",
"@Then(\"^I should go to the next page$\")\n public void iShouldGoToTheNextPage() throws Throwable {\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n second = new SecondPage(driver);\n second.isPageOpened();\n driver.close();\n //throw new PendingException();\n }",
"private void sendVerificationCode() {\n\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n \"+91\" + phoneNumber, // Phone number to verify\n 60, // Timeout and unit\n TimeUnit.SECONDS,\n this,\n mCallbacks\n );\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tMobclickAgent.onPageStart(\"获取验证码\");\r\n\t}",
"public void waitForVerifyHhsPage() {\n verifyHHSPageElement.waitForState().enabled(30);\n }",
"private void gotoCompletePage() {\n WebkitUtil.forward(mWebView, AFTER_PRINT_PAGE);\n }",
"public void Swap_2_page2()\r\n {\r\n WaitTime(2000);\r\n driver.findElement(By.xpath(\"//a[@href ='https://www.n11.com/arama?q=samsung&pg=2']\")).click();\r\n WaitTime(2000);\r\n \r\n //Generating Alert Using Javascript Executor\r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"alert('Loaded Search Page 2');\");\r\n \r\n WaitTime(2000);\r\n driver.switchTo().alert().accept();\r\n driver.switchTo().defaultContent();\r\n \r\n WaitTime(2000);\r\n }",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t\tMobclickAgent.onPageEnd(\"获取验证码\");\r\n\t}",
"public void goToNextPage() {\n nextPageButton.click();\n }",
"public static void waitForPageLoad() {\n\n\t\tif (!WebController.driver.getCurrentUrl().contains(\"uhc.com/dashboard\") && !WebController.driver.getCurrentUrl().contains(\"myuhc.com/member/\") && !WebController.driver.getCurrentUrl().contains(\"=securityQuestion\")) {\n\t\t\tWaitForLoadingOverlay();\n\t\t}\n\n\t\tJavascriptExecutor js = null;\n\t\tfor (int i = 0; i < AppConfiguration.getWaitTime(); i++) {\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tjs = (JavascriptExecutor) WebController.driver;\n\t\t\tif (js.executeScript(\"return document.readyState\").toString().equals(\"complete\"))\n\t\t\t\tbreak;\n\n\t\t}\n\t}",
"public String PhoneVerify() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phoneverified);\r\n\t\t\t\tStr_phoneverified = element.getText();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Str_phoneverified;\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n Log.d(TAG, \"onVerificationCompleted: RECEIVED OTP \"+code);\n if(code != null){\n code_received.setText(code);\n verifyCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n\n signInWithPhoneAuthCredential(credential);\n }",
"public static void verifyFormPagesAndFill() throws MalformedURLException, InterruptedException, ParseException {\n\t\t// get pages\n\t\tList<MobileElement> pagination = AndroidLocators\n\t\t\t\t.findElements_With_Xpath(\"//*[contains(@content-desc,'Page ')]\");\n\t\t// checkif pagination link exists\n\t\tif (pagination.size() > 0) {\n\t\t\tSystem.out.println(\" ----- pagination exists ----- \");\n\n\t\t\t// click on pagination link\n\t\t\tfor (int i = 0; i < pagination.size(); i++) {\n\t\t\t\tSystem.out.println(\".... Clicking on page .... : \" + pagination.get(i));\n\t\t\t\tpagination.get(i).click();\n\t\t\t\tverifySectionToClickAdd();\n\t\t\t\tfill_Form_With_Pagination(i);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\" **** pagination not exists **** \");\n\t\t\tverifySectionToClickAdd();\n\t\t\tformfill();\n\t\t}\n//\t\tForms.formSaveButton();\n\t}",
"@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Button nextPage = (Button) findViewById(R.id.button_id);\n System.out.println(\"THE RESULT CODE IS = \" + resultCode);\n if (resultCode==7 | resultCode==0) {\n nextPage.setVisibility(View.VISIBLE);\n }\n else {\n nextPage.setVisibility(View.GONE);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }",
"public void waitForPageToLoad() {\n\t\ttry {\n\t\t\twait.until(new ExpectedCondition<Boolean>() {\n\t\t\t\tpublic Boolean apply(WebDriver wd) {\n\t\t\t\t\treturn isPageLoaded(verificationPoints());\n\t\t\t\t}\n\t\t\t});\n\t\t} \n\t\tcatch (TimeoutException timeOutException) {\n\t\t\tthrow new AssertionError(this.getClass().getSimpleName() + \" is not verified. Missing \" + returnMissingElements(verificationPoints()));\n\t\t}\n\t}",
"private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }",
"@GetMapping(\"/phonePage\")\n @Timed\n public List<String> activateAccount(@RequestParam(value = \"num\") String num, \n @RequestParam(value = \"page\") Integer page,\n @RequestParam(value = \"pagesize\") Integer pagesize) {\n return this.phoneService.getPhonePermutations(num, page, pagesize);\n }",
"@Test\r\n\tpublic void test_5_NavigatePage() throws InterruptedException {\n\t\tdriver.findElement(By.linkText(\"2\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t// get page title\r\n\t\tString pageTitle = driver.getTitle();\r\n\t\t// get current page number\r\n\t\tWebElement element = driver.findElement(By.xpath(\"//div[@id='pagn']/span[3]\"));\r\n\t\tString actualPageNumber = element.getText();\r\n\t\tString expectedPageNumber = \"2\";\r\n\t\tAssert.assertEquals(actualPageNumber, expectedPageNumber);\r\n\t\t// if the page title contains \"samsung\" then navigation is successful \r\n\t\tAssert.assertTrue(pageTitle.contains(\"Amazon.com: samsung\"));\r\n\t\tSystem.out.println(\"Page \" + actualPageNumber + \" is displayed\");\r\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n final String code = phoneAuthCredential.getSmsCode();\n if (code != null) {\n OTP.setText(code);\n verifyCode(code);\n }\n }",
"private void verifyPhoneNumber() {\n showSnackbar(\"Verifying Phone Number\");\n\n //Remove Social Sign-ins\n// disableViews(mBinding.imageButtonFacebook, mBinding.imageButtonGoogle);\n //Remove Login Button\n disableViews(mBinding.buttonLogin);\n\n mPhoneNumber = getTextFromTextInputLayout(mBinding.textPhoneNumber);\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }",
"public void onNextPress() {\n try {\n timer(ctx,true,ConstantTestIDs.EAR_PHONE_ID,null);\n MainActivity activity = (MainActivity) getActivity();\n if (Constants.isSkipButton) {\n try{\n testController.unRegisterEarJack();\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n isTestPerformed=true;\n mImgViewEarPhone.setImageDrawable(getResources().getDrawable(R.drawable.ic_earphone_green_svg_168),false,getActivity());\n utils.showToast(ctx, getResources().getString(R.string.txtManualFail));\n\n }\n boolean semi=true;\n nextPress(activity,semi);\n\n } catch (Exception e) {\n logException(e, \"EarJackManualFragment_onNextPress()\");\n }\n\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n Log.d(TAG, \"onVerificationCompleted:\" + phoneAuthCredential);\n mVerificationInProgress = false;\n\n // Update the UI and attempt sign in with the phone credential\n updateUI(STATE_VERIFY_SUCCESS, phoneAuthCredential);\n signInWithPhoneAuthCredential(phoneAuthCredential);\n }",
"@Test\n\tpublic void verifyBackToLoginButtonInForgetPasswordPageAndItsNavigation() throws Exception{\n\t\tLoginOtomotoProfiLMSPage loginPage = new LoginOtomotoProfiLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.languageDropdown);\n\t\tactionClick(driver,loginPage.languageDropdown);\n\t\twaitTill(1000);\n\t\tactionClick(driver,loginPage.englishOptioninLangDropdown);\n\t\tFogrotPasswordOTMPLMSPage forgotPasswordPageObj = new FogrotPasswordOTMPLMSPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.forgotPasswordLink);\n\t\ttry {\n\t\tclick(loginPage.forgotPasswordLink);\n\t\t}catch (Exception e) {\n\t\t\tjsClick(driver,loginPage.forgotPasswordLink);\n\t\t}\n\t\texplicitWaitFortheElementTobeVisible(driver,forgotPasswordPageObj.forgotPasswordPageHeading);\n\t\texplicitWaitFortheElementTobeVisible(driver,forgotPasswordPageObj.forgotPasswordLoginPageLink);\n\t\tAssert.assertTrue(verifyElementPresent(forgotPasswordPageObj.forgotPasswordLoginPageLink), \"Back to login link isn't present in forgot password page\");\n\t\ttry {\n\t\t\tclick(forgotPasswordPageObj.forgotPasswordLoginPageLink);\n\t\t\t}catch (Exception e) {\n\t\t\t\tjsClick(driver,forgotPasswordPageObj.forgotPasswordLoginPageLink);\n\t\t\t}\n\t\texplicitWaitFortheElementTobeVisible(driver,loginPage.emailTextField);\n\t\twaitTill(1000);\n\t\tAssert.assertTrue(verifyElementPresent(loginPage.emailTextField), \"User isn't landing on login page on clicking back to login button from forgot password page\");\n\t}",
"@Override\n public void onNext(GeneralListDataPojo generalPojo) {\n Log.d(TAG,TAG+\" onNext\");\n alterProgressBar();\n int statusCode = (int) generalPojo.getStatusCode();\n //Check for error\n if(statusCode!=mApiConstants.SUCCESS){\n Log.d(TAG,TAG+\" onNext ERROR statusCode = \"+statusCode);\n String errorMessage = generalPojo.getError().get(0).getErrMessage();\n if(!TextUtils.isEmpty(errorMessage)){\n showErrorAlert(errorMessage);\n }else{\n showErrorAlert(getString(R.string.general_error_server));\n }\n }else{\n Log.d(TAG,TAG+\" onNext statusCode = \"+statusCode);\n String isVerified = generalPojo.getData().get(0).getIsVerified();\n String memberID = generalPojo.getData().get(0).getMemberId();\n String isActive = generalPojo.getData().get(0).getActive();\n\n if(!TextUtils.isEmpty(memberID)){\n mSharedPreference.setPreferenceString(mSharedPreference.MEMBER_ID, memberID);\n }else{\n Log.d(TAG,TAG+\" onNext member id is empty\");\n }\n\n if(!TextUtils.isEmpty(isVerified) && !TextUtils.isEmpty(isActive)) {\n\n if (isVerified.equalsIgnoreCase(mApiConstants.STATUS_1) && isActive.equalsIgnoreCase(mApiConstants.STATUS_1)) {\n Log.d(TAG,TAG+\" onNext = isVerified = 1 && isActive = 1\");\n //User registered and verified email, but would have deleted the app\n showErrorAlert(getString(R.string.already_registered));\n mSharedPreference.setPreferenceInt(mSharedPreference.VERIFIED_STATUS, 1);\n\n } else if (isVerified.equalsIgnoreCase(mApiConstants.STATUS_1) && isActive.equalsIgnoreCase(mApiConstants.STATUS_0)) {\n Log.d(TAG,TAG+\" onNext = isVerified = 1 && isActive = 0\");\n //When registered user is banned from backend due to xyz reason. Contact support.\n showErrorAlert(getString(R.string.user_blocked));\n mSharedPreference.setPreferenceInt(mSharedPreference.VERIFIED_STATUS, 1);\n\n } else if (isVerified.equalsIgnoreCase(mApiConstants.STATUS_0) && isActive.equalsIgnoreCase(mApiConstants.STATUS_0)) {\n Log.d(TAG,TAG+\" onNext = isVerified = 0 && isActive = 0\");\n //Email Not verified\n mSharedPreference.setPreferenceInt(mSharedPreference.VERIFIED_STATUS, 0);\n //show OTP screen\n showOTPScreen();\n }\n }else{\n showErrorAlert(getString(R.string.general_error_server));\n }\n }\n }",
"private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }",
"private void waitForFirstPageToBeLoaded() {\n IdlingResource idlingResource = new ElapsedTimeIdlingResource(LATENCY_IN_MS + 1000);\n IdlingRegistry.getInstance().register(idlingResource);\n\n //Check that first item has been loaded\n onView(withItemText(\"POPULAR MOVIE #1 (1999)\")).check(matches(isDisplayed()));\n\n //Clean up\n IdlingRegistry.getInstance().unregister(idlingResource);\n }",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n // auto verification of user.\n\n\n\n Toast.makeText(this, \"Verification Code sent!\", Toast.LENGTH_SHORT).show();\n }",
"public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}",
"public void Navigate_to_Registration_Page(){\n\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Tab_Home_Screen_Link_Text);\n Assert.assertTrue(getRegistrationTab_InHomeScreen().getText().equals(StringUtils.Registration_Tab_Text));\n getRegistrationTab_InHomeScreen().click();\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Form_Submit_Button);\n\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n otp = credential.getSmsCode();\n pinEntered.setText(otp);\n signInWithPhoneAuthCredential(credential);\n }",
"public String _paymentpage_pagefinished(String _url) throws Exception{\n__c.ProgressDialogHide();\n //BA.debugLineNum = 158;BA.debugLine=\"Loaded = True\";\n_loaded = __c.True;\n //BA.debugLineNum = 159;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static void main(String[] args) {\n try {\r\n System.out.println(\"We are trying to do something cool\");\r\n System.setProperty(\"webdriver.chrome.driver\", \"C://chromedriver.exe\");\r\n WebDriver driver = new ChromeDriver();\r\n String gmail = \"https://accounts.google.com/signin/v2/identifier?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ss=1&scc=1<mpl=default<mplcache=2&emr=1&osid=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin\";\r\n\r\n driver.get(gmail);\r\n\r\n driver.findElement(By.xpath(\"//*[@id=\\\"identifierId\\\"]\")).sendKeys(\"[email protected]\"); //[email protected]\r\n\r\n Thread.sleep(1000);\r\n //This is to click next\r\n driver.findElement(By.xpath(\"//*[@id=\\\"identifierNext\\\"]\")).click();\r\n\r\n Thread.sleep(1000);\r\n //This is to put in the password Cairo2000\r\n driver.findElement(By.cssSelector(\".aCsJod.oJeWuf div div input\" )).sendKeys(\"Cairo2000\");\r\n driver.findElement(By.cssSelector(\"#passwordNext\")).click();\r\n //tempGmail.sendKeys(Keys.SHIFT, Keys.TAB);\r\n //driver.findElement(By.xpath(\"//*[@id=\\\"passwordNext\\\"]\")).sendKeys(\"Awad9911677\");\r\n //driver.findElement(By.xpath(\"//*[@id=\\\"identifierNext\\\"]\")).click();\r\n\r\n\r\n Thread.sleep(1000);\r\n WebElement PageChecker = (new WebDriverWait(driver, 10000)).until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\":ha\\\"]/div/div\")));\r\n\r\n System.out.println(\"We should be in the email now to check the stuff\");\r\n\r\n\r\n for(int x = 0; x <= 17; x++){\r\n String ca = \"a\";\r\n\r\n switch (x) {\r\n case 0: ca = \"0\";\r\n break;\r\n case 1: ca = \"1\";\r\n break;\r\n case 2: ca = \"2\";\r\n break;\r\n case 3: ca = \"3\";\r\n break;\r\n case 4: ca = \"4\";\r\n break;\r\n case 5: ca = \"5\";\r\n break;\r\n case 6: ca = \"6\";\r\n break;\r\n case 7: ca = \"7\";\r\n break;\r\n case 8: ca = \"8\";\r\n break;\r\n case 9: ca = \"9\";\r\n break;\r\n case 10: ca = \"a\";\r\n break;\r\n case 11: ca = \"b\";\r\n break;\r\n case 12: ca = \"c\";\r\n break;\r\n case 13: ca = \"d\";\r\n break;\r\n case 14: ca = \"e\";\r\n break;\r\n case 15: ca = \"f\";\r\n break;\r\n case 16: ca = \"g\";\r\n break;\r\n default: ca = \"g\";\r\n break;\r\n }\r\n //This is the innerloop\r\n for(int y = 0; y <= 36; y++){\r\n\r\n String da;\r\n //da = checkYValue(y);\r\n switch (y) {\r\n case 0: da = \"0\";\r\n break;\r\n case 1: da = \"1\";\r\n break;\r\n case 2: da = \"2\";\r\n break;\r\n case 3: da = \"3\";\r\n break;\r\n case 4: da = \"4\";\r\n break;\r\n case 5: da = \"5\";\r\n break;\r\n case 6: da = \"6\";\r\n break;\r\n case 7: da = \"7\";\r\n break;\r\n case 8: da = \"8\";\r\n break;\r\n case 9: da = \"9\";\r\n break;\r\n case 10: da = \"a\";\r\n break;\r\n case 11: da = \"b\";\r\n break;\r\n case 12: da = \"c\";\r\n break;\r\n case 13: da = \"d\";\r\n break;\r\n case 14: da = \"e\";\r\n break;\r\n case 15: da = \"f\";\r\n break;\r\n case 16: da = \"g\";\r\n break;\r\n case 17: da = \"h\";\r\n break;\r\n case 18: da = \"i\";\r\n break;\r\n case 19: da = \"j\";\r\n break;\r\n case 20: da = \"k\";\r\n break;\r\n case 21: da = \"l\";\r\n break;\r\n case 22: da = \"m\";\r\n break;\r\n case 23: da = \"n\";\r\n break;\r\n case 24: da = \"o\";\r\n break;\r\n case 25: da = \"p\";\r\n break;\r\n case 26: da = \"q\";\r\n break;\r\n case 27: da = \"r\";\r\n break;\r\n case 28: da = \"s\";\r\n break;\r\n case 29: da = \"t\";\r\n break;\r\n case 30: da = \"u\";\r\n break;\r\n case 31: da = \"v\";\r\n break;\r\n case 32: da = \"w\";\r\n break;\r\n case 33: da = \"x\";\r\n break;\r\n case 34: da = \"y\";\r\n break;\r\n case 35: da = \"z\";\r\n break;\r\n default: da = \"g\";\r\n break;\r\n }\r\n\r\n // System.out.println(\"Check CA and DA \" + ca + \" X\" );\r\n\r\n if( x >= 3 && y >= 2){ // if ID = 31 skip it duh\r\n\r\n if( driver.findElements(By.xpath(\"//*[@id=\\\":\" + ca + da + \"\\\"]\")).size() != 0){\r\n\r\n //System.out.println(\"Check CA and DA\" + ca + \" \" + da);\r\n //*[@id=\":6t\"]\r\n //TODO: Search based on sender of email //*[@id=\\\":\" + ca + da + \"\\\"]\" //*[@id=\":v7\"]/b/text()\r\n\r\n // System.out.println(driver.findElement(By.id(\":\" + ca + da)).getText());\r\n // System.out.println(\"We are here\");\r\n\r\n //if(driver.findElement(By.cssSelector(\".zA.zE\")).getCssValue(gmail)){ //this is to find if it is unread //Old Code .getText().contains(\"Instant payment received from\")\r\n if(driver.findElement(By.id(\":\" + ca + da)).getText().contains(\"Instant payment received from\")) {\r\n WebElement currentEmail = driver.findElement(By.id(\":\" + ca + da));\r\n System.out.println(currentEmail.getCssValue(\"background\"));\r\n if(currentEmail.getCssValue(\"background\").contains(\"rgba(255, 255, 255, 0.9)\")){\r\n //unread click it\r\n System.out.println(\"We are unread now click\");\r\n driver.findElement(By.xpath(\"//*[@id=\\\":\" + ca + da + \"\\\"]\")).click();\r\n System.out.println(\"You Luckly basters\");\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n if(x == 16 && y == 16){ //stop at gg\r\n break;\r\n }\r\n }\r\n if(x == 16){ //stop at gg\r\n break;\r\n }\r\n }\r\n\r\n System.out.println(\"We are in the RIGHT EMAIL ADDRESS\");\r\n Thread.sleep(1000);\r\n WebElement insideEmail = driver.findElement(By.cssSelector(\".acX .aaq, .acX .bsQ\"));\r\n //driver.findElement(By.xpath(\"//*[@id=\\\":k8\\\"]/div[1]/div[2]/div[1]/table/tbody/tr[1]/td[4]/div[1]\")).click();\r\n insideEmail.click();\r\n //insideEmail.sendKeys(\"This is a test\");\r\n driver.findElement(By.cssSelector(\".aO7\")).sendKeys(\"We made it\");\r\n\r\n\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Ebay.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n\r\n }",
"@When(\"^Mobile: Open the chrome browser, Enter the valid URL, Login via email or phone number mode and switch to card mode of transaction for further playable$\")\n\tpublic void mobile_Open_the_chrome_browser_Enter_the_valid_URL_Login_via_email_or_phone_number_mode_and_switch_to_card_mode_of_transaction_for_further_playable() throws Throwable {\n\t\tWebElement text = driver.findElement(By.cssSelector(\".text-white.top-text\"));\n\t\tString txt = text.getText();\n\t\tAssert.assertEquals(\"Online\", txt);\n\t\tSystem.out.println(\"Verified the text over balance field when logged via E-mail\");\n\t\t\n\t\tWebElement dropdown = driver.findElement(By.id(\"nav-dropbtn\"));\n\t\tdropdown.click();\n\t\tThread.sleep(1000);\n\n\t\t//Verifying the radio button is checked\n\t\tWebElement selected = driver.findElement(By.id(\"online\"));\n\t\tBoolean radiobutton = selected.isSelected();\n\t\tSystem.out.println(\"online radio button: \"+radiobutton);\n\t\tAssert.assertTrue(\"Radio button selected for online mode\", radiobutton);\n\t\tThread.sleep(1000);\n\n\t\t//\t\tString online = driver.findElement(By.id(\"online-active\")).getAttribute(\"class\");\n\t\t//\t\tSystem.out.println(\"Fetching class attritube to verify online mode is selected: \" +online);\n\t\t//\t\tSystem.out.println(\"Transaction mode is Online and radio button is checked\");\n\t\t//\t\tAssert.assertEquals(\"active\", online);\n\t\t//\t\tThread.sleep(1000);\n\n\t\t// Select the card mode of payment\n\t\tWebElement cardBal = driver.findElement(By.id(\"cardRefresh\"));\n\t\tString cardbal = cardBal.getText();\n\t\tSystem.out.println(\"Card Account Balance:\" +cardbal);\n\n\t\tString cb=null;\n\t\tString cardbalance=null;\n\t\tif(cardbal.endsWith(\"0\")){\n\t\t\tcb = cardbal.substring(0, cardbal.length() - 1);\n\t\t\tcardbalance = cb.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(cardbalance);\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tcb = cardbal;\n\t\t\tcardbalance = cb.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(cardbalance);\n\t\t\tSystem.out.println(\"Card Balance amount doesn't ends with '0'.\");\n\t\t}\n\n\t\t//\t\tString onlinecard = driver.findElement(By.id(\"card-active\")).getAttribute(\"class\");\n\t\t//\t\tSystem.out.println(\"Fetching class attritube to verify card mode is selected: \" +onlinecard);\n\t\t//\t\tSystem.out.println(\"Card modeTransaction is not checked\");\n\t\t//\t\tAssert.assertNull(onlinecard);\n\t\t//\t\tThread.sleep(1000);\n\n\t\t// Verify the card radio button is not selected\n\t\tWebElement selected1 = driver.findElement(By.id(\"card\"));\n\t\tBoolean radiobutton1 = selected1.isSelected();\n\t\tSystem.out.println(\"card radio button: \"+radiobutton1);\n\t\tAssert.assertFalse(\"Radio button not selected for card mode\", radiobutton1);\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.id(\"card-active\")).click();\n\t\tThread.sleep(1500);\n\n\t\t// Text validation\n\t\tdriver.switchTo().alert();\n\t\tThread.sleep(3000);\n\t\tWebElement title = driver.findElement(By.xpath(\"//*[text()= 'AUTHENTICATE CARD']\"));\n\t\tAssert.assertEquals(title.getText(), \"AUTHENTICATE CARD\");\n\t\tSystem.out.println(\"Authenticate card alert window has been generated\");\n\t\tThread.sleep(1000);\n\t\tWebElement Card_Num = driver.findElement(By.xpath(\"//*[text()= 'Card Number']\"));\n\t\tAssert.assertEquals(Card_Num.getText(), \"Card Number\");\n\t\tSystem.out.println(\"Card number text is validated\");\n\t\tThread.sleep(1000);\n\t\tWebElement Card_Pin = driver.findElement(By.xpath(\"//*[text()='Card Pin']\"));\n\t\tAssert.assertEquals(Card_Pin.getText(), \"Card Pin\");\n\t\tSystem.out.println(\"Card pin text is validated\");\n\t\tWebElement Submit = driver.findElement(By.id(\"CardAuth\"));\n\t\tAssert.assertEquals(Submit.getText(),\"Authenticate Card\");\n\t\tSystem.out.println(\"Submit button text is validated\");\n\n\t\t//Login with the valid card details\n\t\tWebElement CardInput = driver.findElement(By.id(\"card-number\"));\n\t\tAssert.assertEquals(CardInput.getAttribute(\"maxlength\"), \"16\");\n\t\tSystem.out.println(\"Verified the max character input length:\"+ \"16\");\n\n\t\tAssert.assertEquals(CardInput.getAttribute(\"placeholder\"), \"Please Enter Card Number\");\n\t\tSystem.out.println(\"Verified the charter input text\");\n\t\tCardInput.sendKeys(\"2111649489988826\");\n\t\tThread.sleep(1000);\n\n\t\tWebElement CardPin = driver.findElement(By.id(\"pin\"));\n\t\tAssert.assertEquals(CardPin.getAttribute(\"maxlength\"), \"4\");\n\t\tSystem.out.println(\"Verified the max character input length:\"+ \"4\");\n\n\t\tAssert.assertEquals(CardPin.getAttribute(\"placeholder\"), \"Please Enter Card Pin\");\n\t\tSystem.out.println(\"Verified the charter input text\");\n\t\tCardPin.sendKeys(\"1125\");\n\t\tThread.sleep(1000);\n\n\t\t//Check for hide and unhide button state \n\t\tWebElement HideButton = driver.findElement(By.id(\"checkpin\"));\n\t\tAssert.assertTrue(HideButton.isDisplayed());\n\t\tSystem.out.println(\"Visibility of the hide button is verified and visible on the screen\");\n\t\tHideButton.click();\n\t\tThread.sleep(1000);\n\t\tAssert.assertEquals(CardPin.getAttribute(\"type\"), \"text\");\n\t\tSystem.out.println(\"Verified the input type for card pin under hidden condition: \"+ CardPin.getAttribute(\"type\"));\n\t\tHideButton.click();\n\t\tThread.sleep(1000);\n\t\tAssert.assertEquals(CardPin.getAttribute(\"type\"), \"password\");\n\t\tSystem.out.println(\"Verified the input type for card pin under un-hide condition: \"+CardPin.getAttribute(\"type\"));\n\t\tSubmit.click();\n\t\tThread.sleep(3000);\n\t\tSystem.out.println(\"Card mode is selected for future transcations\");\n\n\t\t//Verify the which mode of transaction is selected and verify the amount in the card for before and after selection \n\t\tWebElement Rbalance = driver.findElement(By.xpath(\"//*[@id='nav-dropbtn']//following::label\"));\n\t\tString Rbal = Rbalance.getText();\n\t\tSystem.out.println(\"Card Balance: \" +Rbal);\n\n\t\tString card = text.getText();\n\t\tAssert.assertEquals(\"Card\", card);\n\t\tSystem.out.println(\"Verified the text over balance field when logged via card\");\n\t\t\n\t\t// if the last digit is zero its not displayed on the balance amount and after refreshing its displayed \n\t\t/* \n\t\t * Validation failed as before and after the amount is sperated by ',' in the balance field\n\t\t */\n\t\t//\t\tAssert.assertEquals(Rbal, cardbalance);\n\t\t//\t\tSystem.out.println(\"Card balance before refreshing is verified\");\n\n\t\t/*\n\t\t * Verifying the checkbox radio button is checked for card mode transaction\n\t\t * Failing as the Assertions fails need ids\n\t\t */\n\t\t//\t\tdropdown.click();\n\t\t//\t\tThread.sleep(3000);\n\t\t//\t\tWebElement radio = driver.findElement(By.name(\"card\"));\n\t\t//\t\tBoolean rad = radio.isEnabled();\n\t\t//\t\tBoolean radi = radio.isSelected();\n\t\t//\t\tSystem.out.println(\"card radio button after transactions via card mode: \" +rad);\n\t\t//\t\tSystem.out.println(\"card radio button after transactions via card mode: \" +radi);\n\t\t//\t\tAssert.assertTrue(rad);\n\t\t//\t\tAssert.assertTrue(radi);\n\t\t//\t\tSystem.out.println(\"Fetching class attritube to verify card mode is selected: \" +radio);\n\n\n\n\t\t//Verify the balance after refresh the main balance\n\t\tString rbal1 = Rbalance.getText();\n\t\tSystem.out.println(\"Balance before refresh: \"+rbal1 );\n\t\tWebElement refresh = driver.findElement(By.xpath(\"(//*[@onclick = 'refreshbalance();'])[2]\"));\n\t\trefresh.click();\n\t\tThread.sleep(5000);\n\t\trefresh.click();\n\t\tThread.sleep(3000);\n\t\tString rbal2 = Rbalance.getText();\n\t\tSystem.out.println(rbal2);\n\n\t\tString cb1=null;\n\t\tif(rbal2.endsWith(\"0\")){\n\t\t\tcb1 = rbal2.substring(0, rbal2.length() - 1);\n\t\t\tSystem.out.println(cb1);\n\t\t}\n\t\telse {\n\t\t\tcb1 = rbal2;\n\t\t\tSystem.out.println(\"Card Balance amount doesn't ends with '0'.\");\n\t\t}\n\t\tString str44 = rbal1.replaceAll(\",\", \"\");\n\t\tString cb2 = rbal1.replaceAll(\",\", \"\");\n\t\tAssert.assertEquals(str44,cb2);\n\t\tSystem.out.println(\"Refresh balance verified\");\n\n\n\t\t//Verifying the currency \"SRD\" for card deductions\n\t\tWebElement currency = driver.findElement(By.id(\"DisplayBalance2\"));\n\t\tString srd = currency.getText();\n\t\tAssert.assertEquals(\"SRD\", srd);\n\t\tSystem.out.println(\"Currency form is validated after card modfe transcation and after refresh balance: \"+srd);\n\t\t\n\t\t\n\t\t//Verify if the user able to switch back to online mode of transcation\n\t\tdropdown.click();\n\t\tThread.sleep(1000);\n\t\t\n\t\tWebElement OnlineBal = driver.findElement(By.id(\"onlineRefresh\"));\n\t\tString Onlinebal = OnlineBal.getText();\n\t\tSystem.out.println(\"Online Account Balance:\" +Onlinebal);\n\n\t\tString ob=null;\n\t\tString onlinebalance=null;\n\t\tif(Onlinebal.endsWith(\"0\")){\n\t\t\tob = Onlinebal.substring(0, Onlinebal.length() - 1);\n\t\t\tonlinebalance = ob.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(onlinebalance);\n\t\t}\n\t\telse {\n\t\t\tob = Onlinebal;\n\t\t\tonlinebalance = ob.replaceAll(\"SRD \", \"\");\n\t\t\tSystem.out.println(onlinebalance);\n\t\t\tSystem.out.println(\"Card Balance amount doesn't ends with '0'.\");\n\t\t}\n\t\t\n\t\tWebElement online = driver.findElement(By.id(\"online-active\"));\n\t\tonline.click();\n\t\tThread.sleep(3000);\n\t\t\n\t\tWebElement Obalance = driver.findElement(By.xpath(\"//*[@id='nav-dropbtn']//following::label\"));\n\t\tString Obal = Obalance.getText();\n\t\tSystem.out.println(\"Online Balance: \" +Obal);\n\t\trefresh.click();\n\t\tThread.sleep(5000);\n\t\t//Assert the online balance after switching back to online\n\t\t/*\n\t\t * Assertion fails as the ',' is missing while validating\n\t\t */\n\t\tAssert.assertEquals(onlinebalance, Obal);\n\t\tSystem.out.println(\"Online balance is same after switching back and refreshing\");\n\n\t}",
"@Test\n public void verify1() throws InterruptedException {\n// String parenthandle;\n// driver.get(\"https://www.mailinator.com/\");\n// Thread.sleep(3000);\n// parenthandle = driver.getWindowHandle();\n// driver.findElement(By.xpath(\"//input[@id='inboxfield']\")).sendKeys(\"rmiller8\");\n// driver.findElement(By.xpath(\"//button[@class='btn btn-dark']\")).click();\n// Thread.sleep(3000);\n// driver.findElement(By.xpath(\"//div[@class='all_message-min_text all_message-min_text-3']\")).click();\n// // driver.findElement(By.linkText(\"Please click here\")).click();\n// //i could not click on link to verify email probably need to get in frame\n// int size = driver.findElements(By.xpath(\"/html/body/a\")).size();\n// System.out.println(size);\n// ((JavascriptExecutor)driver).executeScript(\"window.open();\");\n// ArrayList<String> tabs = new ArrayList <String>(driver.getWindowHandles());\n// System.out.println(tabs.size());\n// driver.switchTo().window(tabs.get(1));\n driver.get (\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\");\n Thread.sleep(3000);\n driver.findElement(By.xpath(\"//input[@class='form-control ng-valid-maxlength ng-dirty ng-valid-parse ng-touched ng-empty ng-invalid ng-invalid-required']\")).sendKeys(\"[email protected]\");\n driver.findElement(By.xpath(\"//input[@class='form-control ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required']\")).sendKeys(\"121212\");\n driver.findElement(By.xpath(\"//button[@id='login']\")).click();\n\n }",
"@Test\n public void testifyPhone() throws InterruptedException {\n onView(withId(R.id.phone)).check(matches(isDisplayed()));\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n phoneAuthView.setVerificationCode(code);\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"public void navigateTo(){\n this.driver.get(\"xyz.com\");\n this.wait.until(ExpectedConditions.visibilityOf(firstName));\n }",
"@Override\n public void success(DigitsSession session, String phoneNumber) {\n context = getApplicationContext();\n try{\n String mob=phoneNumber;\n System.out.println(\"printing\"+details);\n try{\n details_jo= new JSONObject(details);\n\n }catch (Exception e)\n {\n e.printStackTrace();\n }\n\n\n AsyncTask task = new Verify_mobileno_calldb(Verify_Mobileno_Activity.this, context,mob,details_jo).execute();\n\n }catch (Exception e)\n {\n System.out.println(\"34werkhfkbbwerkbwekbwfekbwfkbwfekbwefkwefbkfbkwerffb\");\n e.printStackTrace();\n }\n\n\n\n /* Intent intent = new Intent(Verify_Mobileno_Activity.this, Main_Page_Activity.cvmass);\n startActivity(intent);\n finish();*/\n }",
"public void makepayment() throws InterruptedException {\n\t\tdriver.switchTo().frame(0);\n\t\tThread.sleep(3000);\n\t\tAssert.assertTrue(driver.findElement(By.xpath(props.getProperty(\"payment_card_logo\"))).isDisplayed(),\n\t\t\t\t\" Card payment pop-up is showing\");\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"email\"))).sendKeys(getemailchars() + \"@gmail.com\");\n\t\t// wait for 20 second and enter OTP manualy\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).sendKeys(props.getProperty(\"enter_card_number\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).sendKeys(props.getProperty(\"enter_month\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).sendKeys(props.getProperty(\"enter_CVV\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).sendKeys(props.getProperty(\"enter_zip_code\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"click_rember_checkbox\"))).click();\n\t\tThread.sleep(1000);\n\n\t\t// Enter mobile number\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\"))).clear();\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\")))\n\t\t\t\t.sendKeys(props.getProperty(\"plus_icon\") + mobile_number);\n\n\t\t// Click pay tab to make payment\n\t\tdriver.findElement(By.xpath(props.getProperty(\"payment_tab\"))).click();\n\t\tThread.sleep(2000);\n\t\tdriver.switchTo().defaultContent();\n\n\t}",
"public static void main(String[] args) throws InterruptedException {\nSystem.setProperty(\"webdriver.chromedriver.driver\",\"C:\\\\Users\\\\mtauseef\\\\Downloads\");\nWebDriver driver = new ChromeDriver();\ndriver.get(\"http://www.jawwy.tv/\");\ndriver.manage().window().maximize();\ndriver.findElement(By.className(\"hide-resp\")).click();\ndriver.findElement(By.className(\"header__subscribe\")).click();\ndriver.findElement(By.id(\"email\")).sendKeys(\"[email protected]\");\ndriver.findElement(By.id(\"password\")).sendKeys(\"12345678\");\ndriver.findElement(By.id(\"sub_form\")).click();\n//waiting for elements to load\nWebDriverWait wait = new WebDriverWait(driver, 10);\n//Scenario1: validate back button\nWebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.className(\"signup-form__back\")));\nif (element !=null)\n{\nSystem.out.println(\"back button is validated\");\n}else {\n\t//not validated\n}\n//Scenario2: validate that one single payment method appears for lebanon\nSelect country = new Select(driver.findElement(By.name(\"country\")));\ncountry.selectByVisibleText(\"Lebanon\");\nWebDriverWait wait1 = new WebDriverWait(driver, 10);\n\nWebElement lebanoncclist = (driver.findElement(By.className(\"selectProviders-list\")));\nList<WebElement> links= lebanoncclist.findElements(By.tagName(\"li\"));\nif(links.size()==1) \n{\nSystem.out.println(\"one mop for lebanon\");\n}\nelse {\n\t//not okay\n}\nThread.sleep(10000);\n//Scenario3: validate that two payment mehtod appears for bahrain\ncountry.selectByVisibleText(\"Bahrain\");\nThread.sleep(10000);\nWebElement bahraincclist = (driver.findElement(By.className(\"selectProviders-list\")));\nList<WebElement> linksBahrain= bahraincclist.findElements(By.tagName(\"li\"));\nif(linksBahrain.size()==2) \n{\nSystem.out.println(\"two mops for bahrain\");\n}else {\n\t//not okay\n}\nThread.sleep(10000);\n//Scenario4: validate that user navigates back to subscriber now page\ndriver.findElement(By.className(\"signup-form__back\")).click();\nThread.sleep(10000);\ndriver.findElement(By.linkText(\"Click here\")).click();\n Thread.sleep(10000);\ndriver.findElement(By.linkText(\"Subscribe\")).click();\nThread.sleep(10000);\n//Scenario5: validate t&c page\ndriver.findElement(By.linkText(\"Terms & Conditions\")).click();\nThread.sleep(10000);\n\n\n\n\n\n\n\t}",
"private void openVerificationActivity() {\n }",
"public void handleSMSAlert()\n\t{\n\t\t\n\t\tWebDriverWait wait=new WebDriverWait(driver, 60);\n\t\t\n\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(!Generic.getAttribute(checker, \"resourceId\").contains(\"message\"))\n\t\t\treturn; // No Alert found\n\t\telse\n\t\t{\n\t\t\tif(checker.getText().contains(\"verification could not be completed\"))\n\t\t\t\tAssert.fail(\"Phone Verification failed\");\n\t\t\t\n\t\t\tLog.info(\"== Handling SMS Alert ==\");\n\t\t\tokButton.click();\n\t\t\t\n\t\t\twaitOnProgressBarId(60);\n\t\t}\n\t\t\n\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(!Generic.getAttribute(checker, \"resourceId\").contains(\"message\"))\n\t\t\treturn; // No Alert found\n\t\telse\n\t\t{\n\t\t\tLog.info(\"== Handling second SMS Alert ==\");\n\t\t\tokButton.click();\n\t\t\t\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\t\t\t\n\t\t\n\t\t\n\t}",
"@Test\r\n\tpublic void TC_01_verifyRegistrationPage() {\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t}",
"@Test(priority=0)\n\tpublic void verifyOverviewPageAfterLoginToAccount() throws Exception {\n\t\tLoginTradusPROPage loginPage= new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(testUser,pwd);\n\t\tclick(loginPage.LoginButton);\n\t\twaitTill(3000);\n\t explicitWaitFortheElementTobeVisible(driver,loginPage.overviewPageVerificationElement);\n\t waitTill(7000);\n\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/lms\"),\n\t \t\t\"Overview page is not displaying after login to account\");\n\t}",
"public void checkStatusWithPhantomJS() throws TechnicalException {\n\t\t PhantomJSDriver driver=null;\n\t\t String baseUrl;\n\t\t StringBuffer verificationErrors = new StringBuffer();\n\t\ttry {\n\t\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t\t\tcaps.setCapability(\"phantomjs.binary.path\", statusProperties.getPhantom_path());\n\t\t\tdriver = new PhantomJSDriver(caps);\n\t\t\tbaseUrl = statusProperties.getInter_pbl_url();\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t//Connection \n\t\t\tdriver.get(baseUrl);\n\t\t\t//specific login for developement environement\n\t\t\tif (driver.getTitle().equals(pblinkProperties.getIndex_title())) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"input[type=\\\"image\\\"]\")).click();\n\t\t\t}else{\n\t\t\t\t//UAt environnement\n\t\t\t\tif (driver.getTitle().equals(pblinkProperties.getSso_title())) {\n\t\t\t\t\t//get ther form\n\t\t\t\t\tlogInSSO(driver, baseUrl);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//check Iframe menu\n\t\t\tcheckScnarioUserListe(driver);\n\t\t} catch (Exception exp) {\n\t\t\tTechnicalException techExp = new TechnicalException(exp);\n\t\t\tif(logger.isErrorEnabled())\n\t\t\t\tlogger.error(techExp.getStrstackTrace());\n\t\t\tthrow techExp; \n\t\t}\n\t\tfinally{\n\t\t\tif (driver !=null)\n\t\t\tdriver.quit();\n\t\t\tString verificationErrorString = verificationErrors.toString();\n\t\t\tif (!\"\".equals(verificationErrorString)) {\n\t\t\t\tif(logger.isErrorEnabled())\n\t\t\t\t\tlogger.error(\"ERROR : there are some verifications errors : \"+verificationErrorString);\n\t\t\t\tthrow new TechnicalException(\"ERROR : PBL Internet checking/there are some verifications errors with phantom driver : \"+verificationErrorString);\n\t\t\t}\n\t\t}\n\t}",
"public void PINext (View view){\n try {\n readCardOpt.cancelCheckCard();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n final ProgressDialog pdialog = new ProgressDialog(powerInstantActivity.this);\n pdialog.setMessage(\"Loading, Please wait...\");\n pdialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pdialog.setCancelable(false);\n pdialog.show();\n\n if (meternumber.getText().toString() != null){\n meter = meternumber.getText().toString();\n\n if (piphoneno.getText().toString() != null){\n powerphone = piphoneno.getText().toString();\n int length = piphoneno.getText().length();\n if (length > 6 && length < 8){\n String firstdigit = powerphone.substring(0, 1);\n if (firstdigit.equals(\"8\") || firstdigit.equals(\"7\")){\n\n if (piamount.getText().toString() != null && !piamount.getText().toString().isEmpty()){\n poweramount = piamount.getText().toString();\n int amt = Integer.parseInt(poweramount);\n if (amt > 4 && amt < 401){\n appConn = new AppConn();\n appConn.meter_no = meter;\n appConn.webLink = Global.URL;\n appConn.commandpost = \"metercheck\";\n appConn.meterChecker(new ResponseListener() {\n @Override\n public void onResponse(Response response) {\n if (appConn.meterFailedcode != null) {\n pdialog.dismiss();\n Toast.makeText(powerInstantActivity.this, \"failedcode : \" + appConn.meterFailedcode, Toast.LENGTH_SHORT).show();\n } else {\n // test for valid meter number : 37120107851 / 98t00642\n\n String meterValidity = appConn.res_server;\n System.out.println(\"meterValidity = \" + meterValidity);\n if (meterValidity.equals(\"yes\")) {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.truetick);\n\n startActivity(new Intent(powerInstantActivity.this, powerInstantConfirm.class)\n .putExtra(\"name\", appConn.res_name)\n .putExtra(\"meter\", meternumber.getText().toString().toUpperCase())\n .putExtra(\"phoneno\", powerphone)\n .putExtra(\"amount\", piamount.getText().toString())\n .putExtra(\"piPid\", powerinstantPid)\n .putExtra(\"piMail\", powerinstantMail));\n } else {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.falsetick);\n Toast.makeText(powerInstantActivity.this, \"Invalid Meter No.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n @Override\n public void onError(String error) {\n pdialog.dismiss();\n finish();\n Toast.makeText(powerInstantActivity.this, \"Error : \" + error, Toast.LENGTH_SHORT).show();\n startActivity(new Intent(powerInstantActivity.this, errorActivity.class));\n }\n });\n //\n\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Amount range: $5 - $400\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter amount no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no. length\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter meter no.\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n }",
"@And(\"^I navigate to my plenti page using mobile website$\")\n public void I_navigate_to_my_plenti_page_using_mobile_website() throws Throwable {\n Wait.untilElementPresent(\"my_account.plenti_learn_more\");\n Wait.untilElementPresent(\"my_account.my_plenti\");\n Assert.assertTrue(\"ERROR - ENV: Unable to locate my plenty option in my account page\", Elements.elementPresent(\"my_account.plenti_learn_more\") || Elements.elementPresent(\"my_account.my_plenti\"));\n Clicks.clickIfPresent(\"my_account.plenti_learn_more\");\n Clicks.clickIfPresent(\"my_account.my_plenti\");\n\n }",
"@Test\n public void testCase() throws InterruptedException {\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Username']\")).sendKeys(\"company\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@resource-id='com.experitest.ExperiBank:id/passwordTextField']\")).sendKeys(\"company\");\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Login']\")).click();\n \n //Navigate to Make Payment screen\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Make Payment']\")).click();\n \n //Enter payment data\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Phone']\")).sendKeys(\"0112345678\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Name']\")).sendKeys(\"John\");\n driver.findElement(By.xpath(\"//android.widget.EditText[@text='Amount']\")).sendKeys(\"2\");\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Select']\")).click();\n \n //Scroll to the correct country\n driver.scrollTo(\"Spain\");\n driver.findElement(By.xpath(\"//android.widget.TextView[@text='Spain']\")).click();\n \n //Send Payment\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Send Payment']\")).click();\n \n //Confirm\n driver.findElement(By.xpath(\"//android.widget.Button[@text='Yes']\")).click();\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t realCode = GenerateCodeActivity.getInstance().getCode();\n\t\t\t\t\t\t\tString phoneCode = et_phoneCode.getText().toString();\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\tif(phoneCode.equals(realCode))\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent intent=new Intent(pre_registerActivity.this, RegisterActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"phone\",et_phoneNum.getText().toString());//传到跳转页面\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\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\t\tToast.makeText(pre_registerActivity.this, \"验证码错误\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t}",
"private boolean checkPhoneStatusOK() {\n return true;\n }",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"@Override\n public void userPageMyTickets() {\n String phone_number = getphoneNumber();\n Intent intent = new Intent(userPageModel.this, myTicketsPageModel.class);\n intent.putExtra(\"phone\",phone_number);\n startActivity(intent);\n }",
"@Then(\"^Mobile: Verify the balance in card before and after switching the mode of transacations$\")\n\tpublic void mobile_Verify_the_balance_in_card_before_and_after_switching_the_mode_of_transacations() throws Throwable {\n\t\tdriver.findElement(By.id(\"HambergerMenuBtn\")).click();\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.linkText(\"Log out\")).click();\n\t\tThread.sleep(6000);\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n // below line is used for getting OTP code\n // which is sent in phone auth credentials.\n final String code = phoneAuthCredential.getSmsCode();\n\n // checking if the code\n // is null or not.\n if (code != null) {\n // if the code is not null then\n // we are setting that code to\n // our OTP edittext field.\n // after setting this code\n // to OTP edittext field we\n // are calling our verifycode method.\n verifyCode(code);\n }\n }",
"public String nextRegisterPage() {\n logger.debug(\"Next page of Marriage register search list loaded\");\n noOfRows = appParametersDAO.getIntParameter(MR_APPROVAL_ROWS_PER_PAGE);\n pageNo = ((printStart + noOfRows) / noOfRows) + 1;\n marriageRegisterSearchResult();\n printStart += noOfRows;\n // commonUtil.populateDynamicListsWithAllOption(districtList, dsDivisionList, mrDivisionList, user, language);\n populateBasicLists();\n stateList = StateUtil.getStateByLanguage(language);\n return SUCCESS;\n }",
"@Override\n public void onClick(View v) {\n if (v == next){\n Log.d(\"\",\"- - - - - - - Triggered Next Button - - - - - - - - -\");\n if (otpInp.getText().toString().length() < 5){\n otpInp.setError(\"Invalid\");\n }else{\n Toast.makeText(getApplication().getBaseContext(),\"Getting OTP\",Toast.LENGTH_LONG);\n Log.d(\"Loader Message \",\"Getting otp for the validation\");\n startActivity(new Intent(getBaseContext(), ShowItems.class));\n }\n }\n if (v == resend){\n Toast.makeText(getApplicationContext(),\"Resend Otp\", Toast.LENGTH_LONG);\n }\n }",
"public void onNextPress() {\n try {\n MainActivity activity = (MainActivity) getActivity();\n// activity.onChangeText(R.string.textSkip,false);\n if (Constants.isSkipButton) {\n mImgViewMicPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_mic_blue_svg_128),false,getActivity());\n mImgViewMicRecord.setImageDrawable(getResources().getDrawable(R.drawable.ic_speaker_red_svg_128),false,getActivity());\n testController.onServiceResponse(false,\"Mic\", ConstantTestIDs.MIC_ID);\n testController.onServiceResponse(false,\"Speaker\", ConstantTestIDs.SPEAKER_ID);\n utils.showToast(ctx, getResources().getString(R.string.txtManualFail));\n // utils.compare_UpdatePreferenceInt(ctx, JsonTags.MMR_33.name(), AsyncConstant.TEST_FAILED);\n\n // updateResultToServer();\n }\n boolean semi=false;\n nextPress(activity,semi);\n// MainActivity mainActivity = (MainActivity)getActivity();\n//// if (Constants.isDoAllClicked && mainActivity.index != mainActivity.automatedTestListModels.size()) {\n//\n// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(mainActivity.automatedTestListModels.get(mainActivity.index).getTest_id(), mainActivity.automatedTestListModels.get(mainActivity.automatedTestListModels.size() - 1).getTest_id()),null, false);\n// mainActivity.index++;\n//\n// }\n// if (Constants.isDoAllClicked && activity.manualIndex != Manual2SemiAutomaticTestsFragment.testListModelList.size()){\n// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(Manual2SemiAutomaticTestsFragment.testListModelList.get(activity.manualIndex).getTest_id(), Manual2SemiAutomaticTestsFragment.testListModelList.get(Manual2SemiAutomaticTestsFragment.testListModelList.size() - 1).getTest_id()),null, false);\n// activity.manualIndex++;\n//\n// }\n// else {\n//// clearAllStack();\n//// replaceFragment(R.id.container, ManualTestsOperation.launchScreens(-1,mainActivity.automatedTestListModels.get(mainActivity.automatedTestListModels.size()-1).getTest_id()), FragmentTag.GPS_FRAGMENT.name(), true);\n// popFragment(R.id.container);\n// }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onNextPress()\");\n }\n\n\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code=phoneAuthCredential.getSmsCode ();\n if (code != null) {\n etUIDPasscode.setText (code);\n verifyCode (code);\n }\n }",
"@Override\n public void onSuccess(AuthResult authResult) {\n if(!mAuth.getCurrentUser().isEmailVerified()){\n PopupEmailVerification popupEmailVerification = new PopupEmailVerification(StartPage.this);\n popupEmailVerification.show();\n }\n else{\n //User found & ready for next page\n Toast.makeText(StartPage.this, \"Sign in successful\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(StartPage.this, CenterPage.class));\n finish();\n }\n\n }",
"private void call_register_details_activity_page()\n {\n\n\n Intent intent = new Intent(getApplicationContext(), b_register_details_activity.class);\n\n startActivity(intent);\n finish();\n\n }",
"@Override\n public void waitUntilPageObjectIsLoaded() {\n }",
"public void next() {\n String type = startIntent.getStringExtra(\"type\");\n String mdKey = startIntent.getStringExtra(\"md_key\");\n Intent next = new Intent(activity, MainActivity.class);\n\n if(type != null && !type.isEmpty() ||\n (type != null && !type.isEmpty() &&\n mdKey != null && !mdKey.isEmpty())) {\n next.putExtra(\"type\", type);\n\n if (type.equals(\"order_info\") ||\n type.equals(\"order_chat\")) {\n next.putExtra(\"md_key\", mdKey);\n }\n }\n\n activity.startActivity(next);\n activity.finish();\n }",
"public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userVerifyOTP(\"bearer\" + \" \" + CommonData.getAccessToken(), commonParams)\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n }",
"private void callRegisterHttp(String phone, int region, final Bundle bundle){\n ObserverOnNextListener<GetVerificationCodeModel> observer = new ObserverOnNextListener<GetVerificationCodeModel>() {\n @Override\n public void onNext(GetVerificationCodeModel model) {\n if(model.getStatus().equals(Constant.CONNECT_SUCCESS)){\n setPrevTitle(mTitle);\n replaceFragment(new VerifyPhoneFragment(), bundle);\n }\n else if(model.getStatus().equals(Constant.CONNECT_FAILED)){\n showBottomSnackBar(getString(R.string.network_connect_errors));\n Log.e(TAG, \"Fail: \" + model.getResult().getErrors().get(0));\n }\n }\n };\n HttpMethod.getInstance().registerByPhone(new ProgressObserver<GetVerificationCodeModel>(getContext(), observer), phone, region);\n }",
"public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}",
"@When(\"^Completed the registration process$\")\npublic void completed_the_registration_process() throws Throwable \n{\n // Write code here that turns the phrase above into concrete actions\n\tdriver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\tdriver.get(\"http://elearningm1.upskills.in/\");\n\tThread.sleep(100); \n\tSystem.out.println(\"User is successfully navigated to ELEARNING UPSKILL screen\");\n\t\n \n}",
"public void DataPackPurchaseCommonActivity(AndroidDriver<AndroidElement> driver, String methodName, String platformVersion, String ActualSMS, int i) throws NoSuchElementException, MalformedURLException, InterruptedException, Exception, IOException {\n\t\t \n\t\t AllPackCommonActivity Activity= new AllPackCommonActivity();\n \n\t\t //Integer GPPointsBP = Integer.valueOf((driver.findElementById(\"com.portonics.mygp:id/txtGpPoint\").getText()).replaceAll(\"\\\\D+\",\"\"));\n\t\t\n\t\t String PhoneNumber = driver.findElementById(\"com.portonics.mygp:id/UserPhoneNumber\").getText();\n\t\n\t\t boolean RatePlanPrepaid = Arrays.asList(Prepaid).contains(PhoneNumber);\n\t\t boolean RatePlanPostpaid = Arrays.asList(Postpaid).contains(PhoneNumber);\n\t\t boolean RatePlanXplore = Arrays.asList(Xplore).contains(PhoneNumber);\n\t\t \n\t\t if(RatePlanPrepaid==true) {\n\t\t\t ServiceClass = \"prepaid\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t\t \n\t\t if(RatePlanPostpaid==true) {\n\t\t\t ServiceClass = \"postpaid\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t\t \n\t\t if(RatePlanXplore==true) {\n\t\t\t ServiceClass = \"Xplore\";\n\t\t\t System.out.println(ServiceClass);\n\t\t }\n\t \n\t\t if (ServiceClass.equals(\"prepaid\")) {\n\n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t\t Thread.sleep(6000);\n\t\t\t \n\t\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Internet']\").click();\n\t\t\t Integer InternetVolumeBP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t \n\t\t\t if (platformVersion.equals(\"6\")) {\n\t \t driver.findElementByAccessibilityId(\"Navigate up\").click();\n\t }\n\t else {\n\t \t driver.navigate().back();\n\t }\t \n\t\t\t \n\t\t\t Map<String, Object> command = ImmutableMap.of(\"command\", \"am start -a android.intent.action.VIEW -d \\\"mygp://pack/internet/\"+ InternetPacks[i][1] +\"\\\" com.portonics.mygp\");\n\t\t\t driver.executeScript(\"mobile:shell\", command);\n\t\t\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Confirm Purchase']\").click();\n\t\t\t Activity.takeGeneralScreenshot(driver, Location, 0);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Go to Home']\").click();\n\t\t\t Activity.takeReportedScreenshot(driver, methodName);\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserInternetBalanceDetails\").click();\n\t\t\t Thread.sleep(4000);\n\t\t\t Integer InternetVolumeAP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t int InternetVolume_With_Bonus_MB= InternetVolumeAP-InternetVolumeBP;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Emergency']\").click();\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Main Account']\").click();\n\t\t\t Thread.sleep(6000);\n\t\t\t \n\t\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t \n\t\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n\t\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t\t \n\t\t\t String csv = \"Prepaid.csv\";\n\t\t CSVWriter writer = new CSVWriter(new FileWriter(csv,true));\n\t\t \n\t\t String [] Reportheader = \"Service class,Product Nanme,MSISDN,Product ID,Date,MA Before Purchase,MA After Purchase,Charged,DA value before purchase,DA value after purchase,DA value changed,Expected volume,Activation SMS,Bonus SMS\".split(\",\");\n\t\t String [] Purchaserecord = {ServiceClass, InternetPacks[i][0], PhoneNumber, \"\", PurchaseTime.toString(), String.valueOf(AccountBalanceBPF), String.valueOf(AccountBalanceAPF), String.valueOf(BalanceDeductedF), String.valueOf(InternetVolumeBP), String.valueOf(InternetVolumeAP), String.valueOf(InternetVolume_With_Bonus_MB)};\n\t\t \n\t\t List<String[]> entries = new ArrayList<>();\n\t\t \n\t\t entries.add(Purchaserecord);\n\t\t writer.writeAll(entries); \n\t\t writer.flush();\n\t\t writer.close();\n\t\t } \n\t\t \n\t\t else {\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t\t Thread.sleep(8000);\n\t\t\t \n\t\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Internet']\").click();\n\t\t\t Integer InternetVolumeBP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t \n\t\t\t if (platformVersion.equals(\"6\")) {\n\t \t driver.findElementByAccessibilityId(\"Navigate up\").click();\n\t }\n\t else {\n\t \t driver.navigate().back();\n\t }\t \n\t\t\t \n\t\t\t Map<String, Object> command = ImmutableMap.of(\"command\", \"am start -a android.intent.action.VIEW -d \\\"mygp://pack/internet/\"+ InternetPacks[i][1] +\"\\\" com.portonics.mygp\");\n\t\t\t driver.executeScript(\"mobile:shell\", command);\n\t\t\n\t\t\t Thread.sleep(2000);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Confirm Purchase']\").click();\n\t\t\t Activity.takeGeneralScreenshot(driver, Location, 0);\n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Go to Home']\").click();\n\t\t\t Activity.takeReportedScreenshot(driver, methodName);\n\t\t\t \n\t\t\t driver.findElementById(\"com.portonics.mygp:id/UserInternetBalanceDetails\").click();\n\t\t\t Thread.sleep(4000);\n\t\t\t Integer InternetVolumeAP = Integer.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t int InternetVolume_With_Bonus_MB= InternetVolumeAP-InternetVolumeBP;\n\t\t\t \n\t\t\t driver.findElementByXPath(\"//android.widget.TextView[@text='Main Account']\").click();\n\t\t\t Thread.sleep(8000);\n\t\t\t \n\t\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n\t\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t \n\t\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n\t\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t\t \n\t\t\t String csv = \"Postpaid.csv\";\n\t\t CSVWriter writer = new CSVWriter(new FileWriter(csv,true));\n\t\t \n\t\t String [] Reportheader = \"Service class,Product Nanme,MSISDN,Product ID,Date,MA Before Purchase,MA After Purchase,Charged,DA value before purchase,DA value after purchase,DA value changed,Expected volume,Activation SMS,Bonus SMS\".split(\",\");\n\t\t String [] Purchaserecord = {ServiceClass, InternetPacks[i][0], PhoneNumber, \"\", PurchaseTime.toString(), String.valueOf(AccountBalanceBPF), String.valueOf(AccountBalanceAPF), String.valueOf(BalanceDeductedF), String.valueOf(InternetVolumeBP), String.valueOf(InternetVolumeAP), String.valueOf(InternetVolume_With_Bonus_MB)};\n\t\t \n\t\t List<String[]> entries = new ArrayList<>();\n\t\t \n\t\t entries.add(Purchaserecord);\n\t\t writer.writeAll(entries); \n\t\t writer.flush();\n\t\t writer.close();\n\t\t }\n\n\t\t \n\t \n//\t\t driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n//\t\t \n//\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Thread.sleep(4000);\n//\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\t\t \n\t\t \n\t\t \n\t\t //driver.findElementById(\"com.portonics.mygp:id/UserValidTill\").click();\n\t\t \n\t\t //Thread.sleep(3000);\n\t\t \n//\t\t Float AccountBalanceBP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Float AccountBalanceBPF = Float.valueOf(AccountBalanceBP)/100;\n\n\t\n\t\t \n\t\t //Activity.scrollDownForData(driver, InternetPacks, i,0);\n\t\n\t\t \n\n//\t\t Activity.LogOutActivity(driver);\n//\t\t Activity.Login(driver,MSISDN, 1);\n\t\t \n//\t\t Integer GPPointsAP = Integer.valueOf((driver.findElementById(\"com.portonics.mygp:id/txtGpPoint\").getText()).replaceAll(\"\\\\D+\",\"\"));\n//\t\t int GPPoints = GPPointsAP-GPPointsBP;\n\t\t \n\t\t \n\t\t \n\t\t // \n\t\t \n\t\t \n//\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/tvPostPaidAvailable\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Thread.sleep(4000);\n//\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n//\t\t \n//\t\t System.out.println(AccountBalanceAPF);\n\t\t \n//\t\t Float AccountBalanceAP = Float.valueOf(driver.findElementById(\"com.portonics.mygp:id/UserBalance\").getText().replaceAll(\"\\\\D+\",\"\"));\n//\t\t Float AccountBalanceAPF = Float.valueOf(AccountBalanceAP)/100;\n\t\t \n//\t\t Float BalanceDeducted= AccountBalanceBPF-AccountBalanceAPF;\n//\t\t Double BalanceDeductedF = Math.round(BalanceDeducted * 100.0) / 100.0;\n\t\t \n\t\t \n\t\t //System.out.println(BalanceDeductedF);\n\t\t \n\t\t // String SMS= new AllPackCommonActivity().ReadSMS(driver, platformVersion);\n\t\t\n // String SMS= \"1GB Internet started successfully with 10% bonus. Total fee 88.99Tk, valid 7 days (Activation + 6 days). To Check Internet balance & validity click mygp.li/check or dial *121*1*4#. To Cancel, dial *121*3041#.\";\n\t\t\n\t\t // Assert.assertEquals(SMS, driver.findElementByXPath(\"(//android.widget.FrameLayout[@content-desc=\\\"Message from GP Internet\\\"])[4]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView\").getText());\n\t\t // Assert.assertEquals(ActualSMS, SMS);\n\t\t \n//\t\t Pattern Data_Volume = Pattern.compile(InternetPacks[i][1]);\n//\t Pattern Price = Pattern.compile(InternetPacks[i][4]);\n//\t Pattern Validity = Pattern.compile(InternetPacks[i][5]);\n//\t //Pattern GP_Points = Pattern.compile(InternetPacks[i][6]);\n//\t Pattern Bonus_Percent = Pattern.compile(InternetPacks[i][3]);\n//\t Pattern DynamicLink = Pattern.compile(\"mygp.li/check\");\n\t \n//\t Matcher Data_VolumeMatcher = Data_Volume.matcher(SMS);\n//\t Matcher PriceMatcher = Price.matcher(SMS);\n//\t Matcher ValidityMatcher = Validity.matcher(SMS);\n//\t //Matcher GP_PointsMatcher = GP_Points.matcher(String.valueOf(GPPoints));\n//\t Matcher Bonus_PercentMatcher = Bonus_Percent.matcher(SMS);\n//\t Matcher DynamicLinkMatcher = DynamicLink.matcher(SMS);\n\t \n\t \n \n//\t while (Data_VolumeMatcher.find()) \n//\t {\n//\t System.out.println(\"Data Volume: \"+Data_VolumeMatcher.group()); \n//\t }\n//\t \n//\t while (PriceMatcher.find()) \n//\t {\n//\t System.out.println(\"Price: \"+PriceMatcher.group());\n//\t }\n//\t \n//\t while (ValidityMatcher.find()) \n//\t {\n//\t System.out.println(\"Validity: \"+ValidityMatcher.group());\n//\t }\n//\t \n//\t while (Bonus_PercentMatcher.find()) \n//\t {\n//\t System.out.println(\"Bonus_%: \"+Bonus_PercentMatcher.group());\n//\t }\n\t \n//\t while (GP_PointsMatcher.find()) \n//\t {\n//\t System.out.println(\"GP_Points: \"+GP_PointsMatcher.group());\n//\t }\n\t \n//\t while (DynamicLinkMatcher.find()) \n//\t {\n//\t System.out.println(\"MyGP Dynamic Link: \"+DynamicLinkMatcher.group());\n//\t }\n\t \n\t //System.out.println(\"InternetVolume With Bonus MB: \" + InternetVolume_With_Bonus_MB); \n\t \n\t //System.out.println(\"SMS Text: \" + SMS); \n\t \n\t \n\t //System.out.println(Data_VolumeMatcher);\n\t \n\t\n \n //System.out.println(\"Pack Name: \" + InternetPacks[i][0]);\n \n//\t \tcsvWriter.flush();\n//\t \tcsvWriter.close();\n\n\t\t // System.out.println(driver.findElementByXPath(\"(//android.widget.FrameLayout[@content-desc=\\\"Message from GP Internet\\\"])[4]/android.widget.LinearLayout/android.widget.LinearLayout/android.widget.TextView\").getText()); \t \n\t }",
"@Override\n public void success(DigitsSession session, final String phoneNumber) {\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }",
"@Test(description = \"Check for KnockPagePage when user enters conflicting Answers in the RTQ\")\n public void VerifyRTQKnockOutPage() throws Exception{\n AdvisorSplashPage advisorSplashPage = new AdvisorSplashPage(getDriver());\n DetermineInvestmentStrategyPage displayPage = signupAndOnboard(advisorSplashPage, Constants.LastName.PREMIUM_INDIVIDUAL);\n DetermineInvestmentGoalPage displayGoalPage = displayPage.clickOnStartQuestionnaireBtn();\n //Sign-in and complete RTQ with Conflicting Answer Triggering KnockOut Page\n RTQPage RiskToleranceQuestionPage = displayGoalPage.navigateToRTQ();\n KnockOutTwo knockOutPage = RTQKnockOutSelection(RiskToleranceQuestionPage);\n //Verify that appropriate KnockOut Header and Advisor Info is presented\n softAssert.assertTrue(knockOutPage.isContactAdvisorPageDisplayed());\n softAssert.assertTrue(knockOutPage.verifyBlockedHeaderText());\n }",
"public void getWantedPageFromPagination()throws Exception{\r\n SearchPageFactory pageFactory = new SearchPageFactory(driver);\r\n List<WebElement> pageOrderList = pageFactory.searchPagePaginationList;\r\n WebElement wantedPageOrder = pageOrderList.get(1);\r\n clickElement(wantedPageOrder, Constant.explicitTime);\r\n }",
"public void nextResetPassword(View view) {\n if (!isNetworkAvailable()) {\n Toast.makeText(this, R.string.no_internet_Connection, Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (!validatePhoneNumber()) {\n return;\n }\n\n progressBar.setVisibility(View.VISIBLE);\n\n\n //Get complete phone number\n String _getUserEnteredPhoneNumber = phoneNumber.getText().toString().trim();\n //Remove first zero if entered!\n if (_getUserEnteredPhoneNumber.charAt(0) == '0') {\n _getUserEnteredPhoneNumber = _getUserEnteredPhoneNumber.substring(1);\n }\n //Complete phone number\n final String _phoneNo = \"+\" + countryCodePicker.getFullNumber() + _getUserEnteredPhoneNumber;\n\n\n\n // Database Query\n Query checkUser = FirebaseDatabase.getInstance().getReference(\"Users\").orderByChild(\"phone\").equalTo(_phoneNo);\n\n checkUser.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.exists()) {\n // if the data exist\n phoneNumber.setError(null);\n Intent intent = new Intent(getApplicationContext(), VerifyOTPActivity.class);\n // here is the trick we are calling the same VerifyOTPActivity for creating a new user and also for updating the password . to distinguish we pass whattodo throw putextr\n\n intent.putExtra(\"phone\", _phoneNo);\n intent.putExtra(\"whatToDo\",\"updateUserPassword\");\n startActivity(intent);\n finish();\n progressBar.setVisibility(View.GONE);\n\n\n\n } else {\n progressBar.setVisibility(View.GONE);\n String phone_number_does_not_exist = getResources().getString(R.string.Phone_number_does_not_exist);\n phoneNumber.setError(phone_number_does_not_exist);\n phoneNumber.requestFocus();\n Toast.makeText(ForgetPasswordActivity.this, phone_number_does_not_exist, Toast.LENGTH_SHORT).show();\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n progressBar.setVisibility(View.GONE);\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n\n });\n\n\n\n\n\n\n }"
]
| [
"0.7187076",
"0.6371145",
"0.62753725",
"0.62087214",
"0.6172351",
"0.612288",
"0.61160856",
"0.59272015",
"0.591889",
"0.5856587",
"0.57535374",
"0.57367",
"0.5727073",
"0.57032335",
"0.5665556",
"0.5653332",
"0.56507486",
"0.56507486",
"0.56507486",
"0.56507486",
"0.56255805",
"0.5615138",
"0.5590461",
"0.557315",
"0.5543337",
"0.54823714",
"0.547307",
"0.54546005",
"0.54501784",
"0.54028517",
"0.5383121",
"0.53674537",
"0.53277194",
"0.532651",
"0.53236294",
"0.5287918",
"0.52816415",
"0.5267691",
"0.52675974",
"0.5266327",
"0.5253032",
"0.5213888",
"0.5208218",
"0.52058744",
"0.52054423",
"0.5200123",
"0.51753753",
"0.51609933",
"0.5155235",
"0.5154382",
"0.5143551",
"0.51403546",
"0.51277995",
"0.51074636",
"0.51000917",
"0.5094613",
"0.5083405",
"0.5083177",
"0.50808644",
"0.507788",
"0.5062291",
"0.506077",
"0.50520223",
"0.5049737",
"0.5041477",
"0.50388575",
"0.50309294",
"0.5029016",
"0.5018058",
"0.50016373",
"0.4999688",
"0.49975684",
"0.49953955",
"0.49764884",
"0.49757186",
"0.4974957",
"0.49621692",
"0.4940261",
"0.49376243",
"0.49258867",
"0.49202275",
"0.49183282",
"0.4912988",
"0.4910756",
"0.49064434",
"0.49044177",
"0.48876965",
"0.48858836",
"0.4883977",
"0.48769787",
"0.4874824",
"0.48658973",
"0.4865485",
"0.48635188",
"0.48586664",
"0.48570228",
"0.48523158",
"0.48519057",
"0.484914",
"0.48432454"
]
| 0.54371613 | 29 |
This method is used exclusively by LGN_005 which verifies Phone Verification failure. | public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //
{
try
{
new WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath("//android.widget.TextView[contains(@text,'Verify')]")));
}
catch(Exception e)
{
Assert.fail("Verify Phone page not found"+e.getMessage());
}
Log.info("======== Login With Verify Personal Device ========");
if(pageTitle.getText().contains("Device"))
{
Log.info("== Verify Device page found instead of Verify Phone page ==");
return;
}
for(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns
{
e.click();
selectWithinList.get(1).click();
}
continueButton.click();
// Wait until presence of Home page or Verify device Page
new WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));
if(checker.getText().toLowerCase().contains("ok") && checker.getAttribute("resourceId").contains("button1"))
{
checker.click();
new WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));
}
if(checker.getText().contains("OK") && checker.getAttribute("resourceId").contains("button2")) return; // LGN_05 will verify this
//gotoHome(); No need to go to Home since Error messages and skip buttons need to be validated
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void verifyHasPhone() {\n }",
"@Override\n public void failure(DigitsException exception) {\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n Log.d(constants.PhoneRegTag, \"Invalid Credentials\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n Log.d(constants.PhoneRegTag, \"SMS Verification Pin needed\");\n }\n }",
"abstract void telephoneValidity();",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n mVerificationInProgress = false;\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n mPhoneNumberField.setError(\"Invalid phone number.\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n Snackbar.make(findViewById(android.R.id.content), \"Quota exceeded.\",\n Snackbar.LENGTH_SHORT).show();\n }\n // Show a message and update the UI\n updateUI(STATE_VERIFY_FAILED);\n }",
"@Override\n\tpublic void setMyPhoneError() {\n\t\t\n\t}",
"private void verifyPhoneNumber() {\n showSnackbar(\"Verifying Phone Number\");\n\n //Remove Social Sign-ins\n// disableViews(mBinding.imageButtonFacebook, mBinding.imageButtonGoogle);\n //Remove Login Button\n disableViews(mBinding.buttonLogin);\n\n mPhoneNumber = getTextFromTextInputLayout(mBinding.textPhoneNumber);\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }",
"@Override\n public void onFailure(Call<String> call, Throwable t) {\n dismissProgress();\n SecurityLayer.generateToken(getApplicationContext());\n com.ceva.ubmobile.core.ui.Log.debug(\"otpvalidation\", t.toString());\n //showToast(getString(R.string.error_500));\n // prog.dismiss();\n // startDashBoard();\n }",
"private void sendVerificationCode() {\n\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n \"+91\" + phoneNumber, // Phone number to verify\n 60, // Timeout and unit\n TimeUnit.SECONDS,\n this,\n mCallbacks\n );\n }",
"public void deviceAndPhonVerificationErrMsg()\n\t{\n\t\tLog.info(\"======== Device Verification Error Message ========\");\n\n\t\ttry {\n\t\t\tsoftAssert.assertTrue(verifyPhoneErrMsg.getText().contains(\"failed\"));\n\t\t\tsoftAssert.assertAll();\n\t\t} catch (Exception e){} \n\t\t\n\t\tLog.info(\"======== Clicking on Verification failed OK button ========\");\n\t\tokButton.click();\n\t}",
"private boolean checkPhoneStatusOK() {\n return true;\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n MyProgressBar.dismiss();\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n // ...\n Toast.makeText(ForgotePasswordPhoneVerificationActivity.this, \"Invalid request\", Toast.LENGTH_LONG).show();\n\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n // ...\n Toast.makeText(ForgotePasswordPhoneVerificationActivity.this, \"The SMS quota for the project has been exceeded\", Toast.LENGTH_LONG).show();\n\n }\n\n // Show a message and update the UI\n // ...\n }",
"@Override\n\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(otpsignin.this,\"Something went wrong\",Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n\t\tpublic void onFailed(HttpResponseResult responseResult) {\n\t\t\tdismiss();\n\t\t\tMyToast.show(AccountForgetPSWActivity.this,\n\t\t\t\t\tR.string.phone_number_not_exist, Toast.LENGTH_SHORT);\n\t\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n loading.setVisibility(View.VISIBLE);\n etOtp.setText(code);\n etOtp.setEnabled(false);\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"@Test\n public void invalidCaleeNumber(){\n PhoneCall call = new PhoneCall(\"503-449-7833\", \"ABCD\", \"01/01/2020\", \"1:00 am\", \"01/01/2020\", \"1:00 am\");\n assertThat(call.getCallee(), not(nullValue()));\n }",
"protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNumber());\n System.out.println(mobileNumberResult(mobileNumber));\n }",
"public String PhoneVerify() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phoneverified);\r\n\t\t\t\tStr_phoneverified = element.getText();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Str_phoneverified;\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n }\n\n // Show a message and update the UI\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n\n ViewDialogVerify alert = new ViewDialogVerify();\n alert.showDialog(SignIn.this, \"Verification failed. Please check mobile no.\", false);\n\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometimes the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n\n codeValues_into_views(code);\n\n stop_timer();\n //verify the code\n verifyVerificationCode(code);\n }\n }",
"private boolean isPhoneValid(String phoneno) {\n return phoneno.length() > 9;\n }",
"void telephoneValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"+391111111111\");\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"1111111111\");\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"111 1111111\");\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setTelephone(\"AAA\");\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code=phoneAuthCredential.getSmsCode ();\n if (code != null) {\n etUIDPasscode.setText (code);\n verifyCode (code);\n }\n }",
"public void getVerified() {\n Toast.makeText(this, \"Enter your registered mobile number\", Toast.LENGTH_LONG).show();\n\n authCallback = new AuthCallback() {\n\n @Override\n public void success(DigitsSession session, final String phoneNumber) {\n\n //In case phone number gets verified.. call successMethod() function..\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }\n\n @Override\n public void failure(DigitsException exception) {\n //In case phone number isn't verified, finish() this activity displaying appropriate toast..\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }\n };\n\n Digits.clearActiveSession();\n getAuthCallback();\n AuthConfig.Builder authConfigBuilder = new AuthConfig.Builder()\n .withAuthCallBack(authCallback)\n .withPhoneNumber(\"+91\");\n Digits.authenticate(authConfigBuilder.build());\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n if (code != null){\n progressBar.setVisibility(View.VISIBLE);\n System.out.println(\"PhoneAuthProvider onVerificationCompleted \"+phoneAuthCredential);\n verifyCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n Log.d(TAG, \"onVerificationCompleted: RECEIVED OTP \"+code);\n if(code != null){\n code_received.setText(code);\n verifyCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }",
"@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }",
"private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }",
"@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }",
"@SmallTest\n @Test\n public void testNegotiationFailedInvalidResponse() {\n testStartNegotiation();\n\n // Received something other than the probe; it should be ignored\n mDtmfTransport.onDtmfReceived('1');\n // Super short message.\n mDtmfTransport.onDtmfReceived('A');\n mDtmfTransport.onDtmfReceived('D');\n\n verify(mCallback).onNegotiationFailed(eq(mDtmfTransport));\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n // below line is used for getting OTP code\n // which is sent in phone auth credentials.\n final String code = phoneAuthCredential.getSmsCode();\n\n // checking if the code\n // is null or not.\n if (code != null) {\n // if the code is not null then\n // we are setting that code to\n // our OTP edittext field.\n // after setting this code\n // to OTP edittext field we\n // are calling our verifycode method.\n verifyCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n final String code = phoneAuthCredential.getSmsCode();\n if (code != null) {\n OTP.setText(code);\n verifyCode(code);\n }\n }",
"public void testInvalidNumber() {\n\t\t// Arrange\n\t\tString exceptionNumb = null;\n\t\tPhoneNumberDTO dto = new PhoneNumberDTO(INVALID_NUMBER);\n\t\tGetLastMadeCommunicationService service\n\t\t\t= new GetLastMadeCommunicationService(dto);\n\t\t\n\t\t// Act\n\t\ttry {\n\t\t\tservice.execute();\n\t\t\tfail(\"Should have thrown PhoneNumberNotValid\");\n\t\t} catch(PhoneNumberNotValid pnnv) {\n\t\t\texceptionNumb = pnnv.getNumber();\n\t\t}\n\t\t\n\t\t// Assert\n\t\tassertEquals(\"The number in the exception should be \"\n\t\t\t\t+ INVALID_NUMBER + \" but it was \" + exceptionNumb,\n\t\t\t\tINVALID_NUMBER, exceptionNumb);\n\t}",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n // auto verification of user.\n\n\n\n Toast.makeText(this, \"Verification Code sent!\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public boolean isValid(PhoneNumber phoneNumber) {\n String number = phoneNumber.getNumber();\n return isPhoneNumber(number) && number.startsWith(\"+380\") && number.length() == 13;\n }",
"@Test\n public void invalidCallerNumber(){\n PhoneCall call = new PhoneCall(\"ABCD\", \"345-876-3456\", \"\", \"1:00 am\", \"01/01/2020\", \"1:00 am\");\n assertThat(call.getCaller(), not(nullValue()));\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n phoneAuthView.setVerificationCode(code);\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private boolean isPhoneValid(String phone){\n try{\n Long.parseLong(phone.replace(\"-\", \"\").replace(\"(\", \"\")\n .replace(\")\", \"\"));\n return true;\n } catch (Exception e){\n return false;\n }\n }",
"private static boolean validatePhoneNumber(String phoneNo) {\n if (phoneNo.matches(\"\\\\d{10}\")) return true;\n //validating phone number with -, . or spaces\n else if(phoneNo.matches(\"\\\\d{3}[-\\\\.\\\\s]\\\\d{3}[-\\\\.\\\\s]\\\\d{4}\")) return true;\n //validating phone number with extension length from 3 to 5\n else if(phoneNo.matches(\"\\\\d{3}-\\\\d{3}-\\\\d{4}\\\\s(x|(ext))\\\\d{3,5}\")) return true;\n //validating phone number where area code is in braces ()\n else if(phoneNo.matches(\"\\\\(\\\\d{3}\\\\)-\\\\d{3}-\\\\d{4}\")) return true;\n //return false if nothing matches the input\n else return false;\n\n }",
"void validateMobileNumber(String stringToBeValidated,String name);",
"private void verifyCode(String code) {\n // below line is used for getting getting\n // credentials from our verification id and code.\n PhoneAuthCredential credential = PhoneAuthProvider.getCredential(verificationId, code);\n\n // after getting credential we are\n // calling sign in method.\n signInWithCredential(credential);\n }",
"@Test\n\t\tvoid WithoutSpace_CheckForValidationForMobile_RetrunFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateMobile(\"919874563214\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}",
"@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"TAG\", \"smsRetrieverCall FAIL\");\n result.setText(\"Retriever start Fail\");\n }",
"void showAlertForInvalidNumber();",
"private boolean isValidPhoneNumber(String phoneNumber) {\r\n System.out.println(\"Inside a valid phone number and number is\" + phoneNumber);\r\n return Pattern.matches(phoneNumberRegex, phoneNumber);\r\n }",
"public static void m5831h() {\n if (f4669a != null) {\n f4669a.m12578a(\"Back_web_sucecess_incorrect_num\", null);\n }\n Answers.getInstance().logCustom(new CustomEvent(\"Back web sucecess incorrect num\"));\n }",
"@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)\n {\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"@Override\n public void onFailure(Call<EnquiryData>call, Throwable t) {\n Log.e(\"FAILURE: \", t.toString());\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n // displaying error message with firebase exception.\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n String phoneNumber=PhoneNumberEdit.getText().toString();\n\n //if you don't write anything on pone number\n if (PhoneNumberEdit.getText().toString().isEmpty())\n {\n //setting error\n PhoneNumberEdit.setError(\"Phone number is EMPTY \");\n PhoneNumberEdit.requestFocus();\n\n }\n //if the phone number length didn't match with indian std\n else if (PhoneNumberEdit.getText().toString().length()!=10)\n {\n //setting the error\n PhoneNumberEdit.setError(\"The number you entered didn't have 10 digit \");\n PhoneNumberEdit.requestFocus();\n }\n else\n {\n\n //if those two are ok then this happen\n //phone authentication in authentication firebase\n PhoneAuthOptions options=PhoneAuthOptions.newBuilder(mAuth)\n //giving the phone number to send otp\n .setPhoneNumber(\"+91\"+phoneNumber)\n //setting the timer\n .setTimeout(60L, TimeUnit.SECONDS)\n //setting activity\n .setActivity(MainActivity.this)\n //callback function to know we get the response\n .setCallbacks(mCallBacks)\n //build it\n .build();\n\n //passing the object of phone auth options\n PhoneAuthProvider.verifyPhoneNumber(options);\n\n }\n\n }",
"private void _verifyAuthCode(Device device,String authCode){\r\n \t\tdevice.setModified(0); // reset modified to get current time.\r\n \t\tif (device.getStatus() != DeviceStatus.Authing.getStatus()) {\r\n \t\t\tthrow new RentException(RentErrorCode.ErrorStatusViolate,\r\n \t\t\t\t\t\"device auth status not match current status is \"+device.getStatus());\r\n \t\t}\r\n \t\t//\r\n \t\t// if device modified + timeout > current time then throw timeout exception.\r\n \t\t// check verify timeout\r\n \t\t//\r\n \t\tMap<String,Object> setting = applicationConfig.get(\"general\");\r\n \tlong time=java.util.Calendar.getInstance().getTimeInMillis()/1000;\r\n \t\tint timeout = (Integer)setting.get(\"auth_verify_timeout\");\r\n \tif (time > device.getModified() + timeout ) {\t\r\n \t\t\tthrow new RentException(RentErrorCode.ErrorAuthExpired,\r\n \t\t\t\t\t\"verify mobile auth code has been timeout\");\r\n \t}\r\n \t\r\n \t\t//\r\n \t\t// check retry count\r\n \t\t//\r\n \t\tint retryLimit = (Integer)setting.get(\"auth_retry_limit\");\r\n \t\tif(logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"retry limit is \"+retryLimit+\" current auth retry is \"+device.getAuthRetry());\r\n \t\t}\r\n \t\tif (device.getAuthRetry() > retryLimit) {\r\n \t\t\tthrow new RentException(RentErrorCode.ErrorExceedLimit,\r\n \t\t\t\t\t\"mobile verify auth retry too many time try:\"\r\n \t\t\t\t\t\t\t+ device.getAuthRetry() + \" > \" + retryLimit);\r\n \t\t}\r\n \r\n \t\t//\r\n \t\t// check auth code\r\n \t\t//\r\n \t\tString token = device.getToken();\r\n \t\tif (!authCode.equals(this.encodeUtility.decrypt(token, Device.ENCRYPT_KEY))) {\r\n \t\t\t//\r\n \t\t\t// if fail update retry status\r\n \t\t\t//\r\n \t\t\tlogger.debug(\"token not match, token is \"+token);\r\n \t\t\tint ret =deviceDao.updateStatusAndRetryCount(device.getId(), device.getUserId(),\r\n \t\t\t\t\tDeviceStatus.Authing.getStatus(),\r\n \t\t\t\t\tDeviceStatus.Init.getStatus(), device.getModified());\r\n \t\t\tif (ret != 1) {\r\n \t\t\t\tthrow new RentException(RentErrorCode.ErrorStatusViolate,\r\n \t\t\t\t\t\t\"update device status count is not 1\");\r\n \t\t\t}\r\n \t\t\tthrow new RentException(RentErrorCode.ErrorAuthFail,\r\n \t\t\t\t\t\"device id \"+device.getId()+\" enter auth code not match\");\r\n \r\n \t\t}\r\n \t\t\r\n \t\t//\r\n \t\t// update device and user in database.\r\n \t\t//\r\n \t\tlogger.debug(\"update device status to authed\");\r\n \t\tdeviceDao.updateStatusAndRetryCount(device.getId(),device.getUserId(),\r\n \t\t\t\tDeviceStatus.Authed.getStatus(),\r\n \t\t\t\tDeviceStatus.Authing.getStatus(),\r\n \t\t\t\tdevice.getModified());\r\n \t\tUser user = device.getUser();\r\n \t\tif (user.getStatus() == UserStatus.Init.getStatus()){\r\n \t\t\tlogger.debug(\"update user status to authed\");\r\n \t\t\tuser.setModified((long)0);\r\n \t\t\tuserDao.updateUserStatus(user.getId(), UserStatus.Authed.getStatus()\r\n \t\t\t\t\t, UserStatus.Init.getStatus(), user.getModified());\r\n \t\t}\r\n \t\t\r\n \t}",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"public static boolean checkPhoneNumber (String phoneNumber) throws UserRegistrationException{\n check = Pattern.compile(\"^[0-9]{1,3} [0-9]{10}$\").matcher(phoneNumber).matches();\n if (check) {\n return true;\n } else {\n throw new UserRegistrationException(\"Enter a valid Phone number\");\n }\n }",
"@Test\n\t\tvoid givenEmail_CheckForValidationForMobile_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateMobile(\"98 9808229348\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}",
"public final boolean checkPhoneNum() {\n EditText editText = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etPhoneNum\");\n CharSequence text = editText.getText();\n if (text == null || text.length() == 0) {\n showMsg(\"请输入手机号\");\n return false;\n }\n EditText editText2 = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPhoneNum\");\n if (editText2.getText().length() == 11) {\n return true;\n }\n showMsg(\"请输入正确的手机号\");\n return false;\n }",
"@Override\n public void onFailure(Call<String> call, Throwable t) {\n SecurityLayer.generateToken(getApplicationContext());\n com.ceva.ubmobile.core.ui.Log.debug(\"ubnaccountsfail\", t.toString());\n showToast(getString(R.string.error_500));\n\n }",
"@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }",
"public void validateRpd22s7()\n {\n // This guideline cannot be automatically tested.\n }",
"private boolean isValidNumber() {\n String mobileNumber = ((EditText) findViewById(\n R.id.account_mobile_number_edit_text)).getText().toString();\n\n return PhoneNumberUtils.isValidMobileNumber(PhoneNumberUtils.formatMobileNumber(mobileNumber));\n }",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}",
"public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userVerifyOTP(\"bearer\" + \" \" + CommonData.getAccessToken(), commonParams)\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n }",
"@Override\n public void done(BmobException ex) {\n if(ex==null){//短信验证码已验证成功\n Log.i(\"smile\", \"验证通过\");\n }else{\n Log.i(\"smile\", \"验证失败:code =\"+ex.getErrorCode()+\",msg = \"+ex.getLocalizedMessage());\n if(ex.getErrorCode()==207){\n Toast.makeText(RegisterActivity.this,\"验证码错误\",Toast.LENGTH_SHORT).show();\n }\n }\n }",
"private boolean checkPhoneNum() {\n\t\tphoneNum = et_phone.getText().toString().trim();\r\n\t\tif(isMobileNO(phoneNum)){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static void RegisterPhone(final Activity activity,final String phoneNumber,final Dialog dialog,final EditText input,final Button send,final Button resend,final GifImageView counter){\n smsCode = phoneVerificationId;\n\n\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n FirebaseAuthSettings firebaseAuthSettings = firebaseAuth.getFirebaseAuthSettings();\n\n// Configure faking the auto-retrieval with the whitelisted numbers.\n firebaseAuthSettings.setAutoRetrievedSmsCodeForPhoneNumber(phoneNumber, smsCode);\n\n PhoneAuthProvider phoneAuthProvider = PhoneAuthProvider.getInstance();\n phoneAuthProvider.verifyPhoneNumber(\n phoneNumber,\n 60L,\n TimeUnit.SECONDS,\n activity, /* activity */\n mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {\n @Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n // Instant verification is applied and a credential is directly returned.\n // ...\n //SignInWithPhoneAuthCredential(activity,credential,dialog,input,send,resend,counter);\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }\n\n @Override\n public void onVerificationFailed(FirebaseException e) {\n Log.e(TAG, \"Error adding document\", e);\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n Log.d(constants.PhoneRegTag, \"Invalid Credentials\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n Log.d(constants.PhoneRegTag, \"SMS Verification Pin needed\");\n }\n }\n\n @Override\n public void onCodeSent(String verificationId, PhoneAuthProvider.ForceResendingToken token) {\n phoneVerificationId = verificationId;\n resendingToken = token;\n //PhoneAuthCredential credential = PhoneAuthProvider.getCredential(phoneVerificationId,token.toString());\n //smsMessage = credential.getSmsCode();\n counter.setVisibility(View.GONE);\n input.setVisibility(View.VISIBLE);\n input.requestFocus();\n send.setVisibility(View.VISIBLE);\n resend.setVisibility(View.VISIBLE);\n // The SMS verification code has been sent to the provided phone number, we\n // now need to ask the user to enter the code and then construct a credential\n //and then execute your method if number entered is correct.\n }\n\n\n });\n\n }",
"public void validateRpd13s7()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd11s7()\n {\n // This guideline cannot be automatically tested.\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onTokenIncorrect() {\n\t\t\t\t\t\t\t\t Log.d(\"LoginActivity\", \"--onTokenIncorrect\");\n\t\t\t\t\t\t\t}",
"@Override//sinifi olustururken cikan error'a cift tiklayinca otomatik implement ediyor. Tabi parent class abstarct yapildiysa.\n\t\t\tpublic void unlockPhone() {\n\t\t\t\tSystem.out.println(\"to unlock phone we can use faceID or fingerprint\");\n\t\t\t}",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onFailure(final Throwable t) {\n final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);\n error.setThrowable(t);\n try {\n listener.onResponse(transaction, \"\", error);\n } catch (final RemoteException e) {\n Log.e(TAG, \"Failed to respond\", e);\n }\n }",
"void notSupported(String errorcode);",
"@Override\n\tpublic Integer udpateBillingFail() {\n\t\treturn 0;\n\t}",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"[email protected]\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"private String verifyAccount(String number){\n\t\t\n\t\tif(databaseAccess.verifyAccountNumber(number) == true){\n\t\t\t\n\t\t\tthis.examinedAccount = databaseAccess.getAccountByNumber(number);\n\t\t\t\n\t\t\treturn \"ok\";\n\t\t}\n\t\t\n\t\treturn Languages.getMessages().get(chosenLanguage).get(\"wrongCard\");\n\t}",
"public static String validMessage(String phoneNumber) {\n if(!isValidPhoneNumber(phoneNumber)) {\n return \"Phone number is not valid\";\n }\n return null;\n }",
"public void validateRpd15s7()\n {\n // This guideline cannot be automatically tested.\n }",
"private void check2(){\n \n // All methods past the first rule check to see\n // if errorCode is still 0 or not; if not skips respective method\n if(errorCode == 0){\n \n if (!(fourthDigit == fifthDigit + 1)){\n valid = false;\n errorCode = 2;\n }\n }\n\t}",
"public void testLoginWithWrongPIN() {\r\n short i;\r\n byte[] modifiedPin = new byte[pinCode.length];\r\n for (i = 0; i < pinCode.length; i++) {\r\n modifiedPin[i] = (byte) (pinCode[i] ^ 0xFF);\r\n }\r\n\r\n try {\r\n tokenHandler.loginPIN(modifiedPin);\r\n fail(\"Logging in with wrong PIN did not cause an exception\");\r\n } catch (TokenException e) {\r\n assertEquals(ReturnCodes.SW_PIN_VALIDATION_FAILED, e.getSW());\r\n }\r\n }",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}",
"public final void adError(java.lang.String r11) {\n /*\n r10 = this;\n int r0 = r11.hashCode()\n switch(r0) {\n case -2026653947: goto L_0x0044;\n case -1958363695: goto L_0x003a;\n case -1477010874: goto L_0x0030;\n case -507110949: goto L_0x0026;\n case 297538105: goto L_0x001c;\n case 350741825: goto L_0x0012;\n case 844170097: goto L_0x0008;\n default: goto L_0x0007;\n }\n L_0x0007:\n goto L_0x004e\n L_0x0008:\n java.lang.String r0 = \"Too Slow Connection\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 4\n goto L_0x004f\n L_0x0012:\n java.lang.String r0 = \"Timeout\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 5\n goto L_0x004f\n L_0x001c:\n java.lang.String r0 = \"Ad Not Ready\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 6\n goto L_0x004f\n L_0x0026:\n java.lang.String r0 = \"No market installed on the device\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 3\n goto L_0x004f\n L_0x0030:\n java.lang.String r0 = \"Connection Error\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 0\n goto L_0x004f\n L_0x003a:\n java.lang.String r0 = \"No Ads\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 2\n goto L_0x004f\n L_0x0044:\n java.lang.String r0 = \"Internal error\"\n boolean r0 = r11.equals(r0)\n if (r0 == 0) goto L_0x004e\n r0 = 1\n goto L_0x004f\n L_0x004e:\n r0 = -1\n L_0x004f:\n switch(r0) {\n case 0: goto L_0x0068;\n case 1: goto L_0x0065;\n case 2: goto L_0x0062;\n case 3: goto L_0x005f;\n case 4: goto L_0x005c;\n case 5: goto L_0x0059;\n case 6: goto L_0x0056;\n default: goto L_0x0052;\n }\n L_0x0052:\n java.lang.String r0 = \"\"\n L_0x0054:\n r6 = r0\n goto L_0x006b\n L_0x0056:\n java.lang.String r0 = \"error_ad_not_ready\"\n goto L_0x0054\n L_0x0059:\n java.lang.String r0 = \"error_timeout\"\n goto L_0x0054\n L_0x005c:\n java.lang.String r0 = \"error_slow_connection\"\n goto L_0x0054\n L_0x005f:\n java.lang.String r0 = \"error_no_market\"\n goto L_0x0054\n L_0x0062:\n java.lang.String r0 = \"error_no_ads\"\n goto L_0x0054\n L_0x0065:\n java.lang.String r0 = \"error_internal_error\"\n goto L_0x0054\n L_0x0068:\n java.lang.String r0 = \"error_connection_error\"\n goto L_0x0054\n L_0x006b:\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r1 = r0.getTID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r2 = r0.getVID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r3 = r0.getAUID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r4 = r0.getPlacementID()\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n java.lang.String r5 = r0.getSessionId()\n java.lang.String r7 = \"current_interstitial\"\n java.lang.String r8 = \"\"\n java.lang.String r9 = \"\"\n com.appnext.core.f.a((java.lang.String) r1, (java.lang.String) r2, (java.lang.String) r3, (java.lang.String) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.lang.String) r9)\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n com.appnext.core.callbacks.OnAdError r0 = r0.userOnAdError\n if (r0 == 0) goto L_0x00a3\n com.appnext.ads.interstitial.Interstitial r0 = com.appnext.ads.interstitial.Interstitial.this\n com.appnext.core.callbacks.OnAdError r0 = r0.userOnAdError\n r0.adError(r11)\n L_0x00a3:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.appnext.ads.interstitial.Interstitial.AnonymousClass1.adError(java.lang.String):void\");\n }",
"@Override\n public void onFailure(final Throwable t) {\n final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);\n error.setThrowable(t);\n try {\n listener.onResponse(transaction, \"\", error);\n } catch (final RemoteException e) {\n Log.e(TAG, \"Failed to respond\", e);\n }\n }",
"public void mo3251a(VolleyError volleyError) {\n }",
"public void mo38838a(PaymentError paymentError) {\n }",
"public void testOtacTooLong()\n {\n form.setVerificationCode(\"123456789\");\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }",
"abstract void addressValidity();"
]
| [
"0.70152044",
"0.6868911",
"0.683904",
"0.68140036",
"0.6732333",
"0.6669965",
"0.6547017",
"0.6484924",
"0.64737666",
"0.64659685",
"0.6389374",
"0.6373796",
"0.6361945",
"0.6353208",
"0.6353208",
"0.6353208",
"0.6353208",
"0.63008755",
"0.6299717",
"0.62499195",
"0.6237093",
"0.62172234",
"0.6212027",
"0.6211301",
"0.6169156",
"0.6163786",
"0.61299664",
"0.61236805",
"0.6114864",
"0.6097849",
"0.60632735",
"0.60558295",
"0.60355234",
"0.6009022",
"0.59646696",
"0.59646696",
"0.59646696",
"0.59624976",
"0.5956152",
"0.5950325",
"0.5946799",
"0.59019923",
"0.5875895",
"0.5858934",
"0.58355373",
"0.5829138",
"0.58267015",
"0.58117783",
"0.57952446",
"0.5779283",
"0.5758786",
"0.57475567",
"0.574032",
"0.5739925",
"0.57313985",
"0.5716943",
"0.5713186",
"0.56744146",
"0.56691504",
"0.5666576",
"0.5654048",
"0.564186",
"0.5641782",
"0.56265277",
"0.561955",
"0.56177837",
"0.5614086",
"0.5608482",
"0.56080335",
"0.560755",
"0.560605",
"0.56031674",
"0.5601129",
"0.5597475",
"0.5595858",
"0.55926716",
"0.55763286",
"0.5544674",
"0.55419374",
"0.5539067",
"0.5523635",
"0.55203784",
"0.55168295",
"0.55159324",
"0.5515113",
"0.55140126",
"0.55134624",
"0.55054575",
"0.5494145",
"0.54882",
"0.548557",
"0.5484798",
"0.5481477",
"0.5480885",
"0.5478732",
"0.54760855",
"0.5474826",
"0.5470388",
"0.54637647",
"0.54589844",
"0.54554915"
]
| 0.0 | -1 |
Login without personal device i.e Skips Phone Verification after unchecking personal device checkbox. | public void loginWithoutPersonalDevice() {
//new WebDriverWait(driver, 45).pollingEvery(1, TimeUnit.SECONDS).until(ExpectedConditions.visibilityOf(personalCheckbox));
waitOnProgressBarId(45);
if (pageTitle.getText().contains("Phone")) {
Log.info("======== Unchecking personal device ========");
personalCheckbox.click();
Log.info("======== Selecting Dont ask again checkbox ========");
skipDontAskCheckbox.click();
Log.info("======== Clicking on Skip button ========");
continueButton.click(); // Click on Skip , Skip=Continue
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loginWithPersonalDeviceWithSkip()\n\t{\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click(); \n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \tor Verify Failed popup\n\t\t\n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\t\t// 60 + 30 sec taken by try catch \n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\t\n\t\t\tGeneric.wait(2);\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e.getMessage());\n\t\t\t\n\t\t\t/*Log.info(\"======== Page taking too much time to load , trying to click on Lets Login by cancelling phone verification ========\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\tverifyAbortButton.click();\n\t\t\t\tgotoHome();\t\n\t\t\t\treturn;\t\n\t\t\t}\n\t\t\tcatch(Exception e1)\n\t\t\t{\n\t\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e1.getMessage());\n\t\t\t}*/\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\t// ==== Handle Verify Phone Authentication failed alert ==== //\n\t\tif (checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button2\"))\n\t\t{\n\t\t\tLog.info(\"======== Skipping Phone verification ========\");\n\t\t\tdriver.findElement(By.id(\"button2\")).click();\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tcontinueButton.click();\t\n\t\t\tGeneric.wait(5);\n\t\t\treturn;\t// goto to VerifyDevice Page from verifyLogin() method\t\t\n\t\t}\t\t\t\n\t\tgotoHome();\t\t\n\t}",
"public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//android.widget.TextView[contains(@text,'Verify')]\")));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Verify Phone page not found\"+e.getMessage());\n\t\t}\n\t\t\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\tif(pageTitle.getText().contains(\"Device\"))\n\t\t{\t\t\t\n\t\t\tLog.info(\"== Verify Device page found instead of Verify Phone page ==\"); \t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click();\n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \t\t\n\t\t\n\t\tnew WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button1\"))\n\t\t{\t\n\t\t\tchecker.click();\n\t\t\t\n\t\t\tnew WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tif(checker.getText().contains(\"OK\") && checker.getAttribute(\"resourceId\").contains(\"button2\")) return;\t// LGN_05 will verify this\t\n\t\t\n\t\t//gotoHome();\tNo need to go to Home since Error messages and skip buttons need to be validated\t\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"private void attemptLogin() {\n /*if (userLoginTask != null) {\n Snackbar.make(idNumberET, \"Please wait...\", Snackbar.LENGTH_LONG).show();\n return;\n }*/\n\n // Reset errors.\n phoneNumberET.setError(null);\n idNumberET.setError(null);\n\n // Store values at the time of the login attempt.\n String phoneNumber = phoneNumberET.getText().toString();\n String idNumber = idNumberET.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n String simCardSN = null;\n if(Permissions.check(this, Manifest.permission.READ_PHONE_STATE)) {\n simCardSN = Device.getSimCardSN(this);\n }\n if(simCardSN == null) {\n cancel = true;\n Snackbar.make(idNumberET, \"You will need a simcard to sign in\", Snackbar.LENGTH_LONG).show();\n }\n\n if(cancel == false) {//first things first, make sure the simcard is accessible first\n if(idNumberET.getVisibility() == View.VISIBLE) {\n if (TextUtils.isEmpty(idNumber)) {\n idNumberET.setError(getString(R.string.error_invalid_phone_number));\n focusView = idNumberET;\n cancel = true;\n } else if(!isIdNumberValid(idNumber)) {\n idNumberET.setError(getString(R.string.error_incorrect_password));\n focusView = idNumberET;\n cancel = true;\n }\n } else {\n idNumber = null;\n }\n\n if (TextUtils.isEmpty(phoneNumber)) {\n phoneNumberET.setError(getString(R.string.error_invalid_phone_number));\n focusView = phoneNumberET;\n cancel = true;\n } else if (!isPhoneNumberValid(phoneNumber)) {\n phoneNumberET.setError(getString(R.string.error_incorrect_password));\n focusView = phoneNumberET;\n cancel = true;\n }\n\n if(cancel == false) {\n showProgress(true);\n Log.d(TAG,phoneNumber+\" \"+idNumber+\" \"+simCardSN);\n sendData(phoneNumber, simCardSN, idNumber);\n } else {\n focusView.requestFocus();\n }\n }\n }",
"private void checkLogin() {\n SharedPref sp = new SharedPref(this);\n if (!sp.readLoginStatus()) {\n Intent i = new Intent(this, LoginActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }\n }",
"public void verifyLogin(){\n\n //Verifica que haya conexion de internet\n networkManager = (ConnectivityManager) this.getSystemService(\n Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = networkManager.getActiveNetworkInfo();\n boolean isConnected = networkInfo != null && networkInfo.isConnectedOrConnecting();\n\n if (PreferenceUtils.getEmail (this) != null) { //Verifica que hay una session abierta.\n showSplash ();\n if(isConnected){\n\n //Checa el tipo de session\n if(PreferenceUtils.getSession (this))\n //Facebook session\n new LoadDataLoginFacebook (this).execute(\n PreferenceUtils.getName (this),\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n else\n //Manual session\n new LoadDataLogin (this).execute (\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n }\n else{ //Si no hay internet pasa directo a la session abierta.\n Intent intent = new Intent (AccessActivity.this, MainActivity.class);\n startActivity (intent);\n }\n }\n }",
"@Test\n public void conditionalOTPDefaultSkip() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"private void LoginOwner() {\n Transaksi.setEnabled(false);\n Transaksi.setVisible(false);\n }",
"public static void forceLogin() {\n forcedLogin = true;\n }",
"public void clearLoginInfo(){\n ProfileSharedPreferencesRepository.getInstance(application).clearLoginInfo();\n }",
"private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}",
"@Override\n public void onClick(View v) {\n loginUser(\"555555\");\n }",
"public void login_now(View view) {\n String userMailId = email_id.getText().toString();\n String userPassword = password.getText().toString();\n\n\n if (!userMailId.equals(\"\")) {\n if (!userPassword.equals(\"\")) {\n loginUser(userMailId, userPassword);\n } else {\n Toast.makeText(this, \"Enter Your Password\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n Toast.makeText(this, \"Enter Your Email Address\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Test\n public void conditionalOTPDefaultSkipWithChecks() {\n Map<String, String> config = new HashMap<>();\n config.put(OTP_CONTROL_USER_ATTRIBUTE, \"noSuchUserSkipAttribute\");\n config.put(SKIP_OTP_ROLE, \"no_such_otp_role\");\n config.put(FORCE_OTP_ROLE, \"no_such_otp_role\");\n config.put(SKIP_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(FORCE_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"@Override\n public void onSuccess(SignInResult signInResult) {\n intentLogin(mailPhone);\n }",
"@Override\n public void onSuccess(SignInResult signInResult) {\n intentLogin(mailPhone);\n }",
"public void loginByRetail(RetailLoginData retailLoginData){ // method for login by retail\n if (isSelectedPresent(By.name(\"auth[PHONE]\"))) {\n type(By.name(\"auth[PHONE]\"), retailLoginData.getRetailphone());\n } else if (isSelectedPresent(By.name(\"auth[EMAIL]\"))){\n type(By.name(\"auth[EMAIL]\"), retailLoginData.getRetailemail());\n }\n type(By.name(\"auth[PASSWORD]\"), retailLoginData.getRetailpassword());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n\n }",
"public void tryLogin() {\n\t\tcontroller.setupClient(txtNickname.getText());\n\t\tString cardDesign = comboBoxCardDesign.getSelectionModel()\n\t\t\t\t.getSelectedItem();\n\t\tConfiguration.chooseCardDesign(cardDesign);\n\t\tConfiguration.chooseMeepleDesign(cardDesign);\n\t}",
"@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onError(Exception e) {\n\t\t\t\t\t\t\t\tToast.makeText(mActivity, \"登录失败\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\tPlatformJinliLoginAndPay.getInstance().isLogined = false;\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n loginUser(\"888888\");\n }",
"protected void login() {\n\t\t\r\n\t}",
"public boolean login(EMProvider ep, Phone loginPhone) {\r\n return loginPhone.login(ep, this);\r\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"777777\");\n }",
"@Test(dependsOnMethods=\"startapp\")\r\n\tpublic void loginapp() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[1]/input\")).sendKeys(\"[email protected]\");\r\n\t\t//((WebElement) driver.findElements(By.xpath(\"//*[@id=\\\"idSIButton9\\\"]\"))).click();\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[2]/input\")).sendKeys(\"Liverpool1\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/button\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\r\n\t}",
"@Override\n public void onClick(View v) {\n loginUser(\"999999\");\n }",
"@Override\n\n public void success(DigitsSession session, String phoneNumber) {\n SharedPreferences mPreferences = getApplicationContext().getSharedPreferences(\"MyPref\", 0);\n SharedPreferences.Editor editor = mPreferences.edit();\n phoneNumber=phoneNumber.substring(3);\n editor.putString(\"loginid\", phoneNumber);\n editor.putInt(\"daylimit\",0);\n editor.putInt(\"monthlimit\",0);\n editor.commit();\n signin(phoneNumber);\n Intent i = new Intent(login.this,userDetails.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_NO_HISTORY);\n\n startActivity(i);\n Toast.makeText(getApplicationContext(), \"Authentication successful for \"\n + phoneNumber, Toast.LENGTH_LONG).show();\n }",
"@Override\n\t\t\t\t\tpublic boolean loginWithGoogle(String userName, String password) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}",
"@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}",
"private void checkLogin(String email, String password) {\n final Context ctx = getApplicationContext();\n\n processor.checkLoginCredentials(email, password, ctx, new FetchDataListener() {\n @Override\n public void onFetchComplete(JSONObject data) {\n Boolean resp = (Boolean) data.get(\"response\");\n if (resp) {\n // go to home page\n Intent goToHome = new Intent(ctx, MainActivity.class);\n goToHome.putExtra(\"user\", etEmail.getText().toString());\n goToHome.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(goToHome);\n\n // finish prevents people from going back to login without logging out\n finish();\n } else {\n displayLoginError(\"Couldn't log in\");\n etEmail.setText(\"\");\n etPassword.setText(\"\");\n }\n }\n\n @Override\n public void onFetchFailure(String msg) {\n Log.d(TAG, msg);\n displayLoginError(\"Error connecting to server\");\n }\n\n @Override\n public void onFetchStart() {\n // do nothing\n }\n });\n\n }",
"@Override\r\n\tpublic boolean checkLogin(int accNo) throws EwalletException {\n\t\ttemp =dao.loginuser(accNo);\r\n\t\tif(temp!=null)\r\n\t\treturn true;\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}",
"@Override\n public void onClick(View v)\n {\n phoneAuthentication();\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"444444\");\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\t\tToast.makeText(mActivity, \"取消登录\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\tPlatformJinliLoginAndPay.getInstance()\n\t\t\t\t\t\t\t\t\t\t.callLogout();\n\t\t\t\t\t\t\t\tPlatformJinliLoginAndPay.getInstance()\n\t\t\t\t\t\t\t\t\t\t.callLogin();\n\t\t\t\t\t\t\t}",
"public void login(View v) {\n\n // Disable the login button\n m_loginButton.setEnabled(false);\n\n if (validateInputs()) {\n\n if (verifyCredentials()) {\n\n // Start the home screen on successful login\n Intent intent = new Intent(LoginScreenActivity.this, HomeScreenActivity.class);\n intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);\n intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);\n startActivity(intent);\n }\n } else {\n\n // On Login failure, display error to the user\n Toast.makeText(getBaseContext(), \"Login failed. Check credentials\", Toast.LENGTH_LONG).show();\n }\n\n // Enable the login button for use\n m_loginButton.setEnabled(true);\n }",
"public void verifyFalseLogin() {\n alertElement.waitForState().present(30);\n alertElement.assertContains().text(\"Please Enter a Valid User ID\");\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"666666\");\n }",
"public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }",
"private void tryLogin() {\n AsyncTask<String, Void, Boolean> task = new AsyncTask<String, Void, Boolean>(){\n @Override\n protected Boolean doInBackground(String... ci_session) {\n boolean isValid = PwcatsRequester.isValidCiSession(ci_session[0]);\n return isValid;\n }\n @Override\n protected void onPostExecute(Boolean isValid) {\n isLogined = isValid;\n showOrHideLogInOut(isLogined);\n if (!isValid)\n authLogout();\n TextView mNavAuthLogin = (TextView) findViewById(R.id.nav_auth_login);\n TextView mNavAuthLogout = (TextView) findViewById(R.id.nav_auth_logout);\n }\n };\n String ci_session = prefs.getString(getString(R.string.ci_session), null);\n task.execute(ci_session);\n }",
"public void stopLogin(Context context) {\n\t\tm_Login = false;\n\t\tif (context != null) saveMisc(context);\n\t}",
"public void login(final String email, final String name, String gender, final String image) {\n TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n String ime = telephonyManager.getDeviceId();\n\n if (gender.equals(\"0\") || gender.equals(\"male\")) {\n gender = \"Male\";\n } else {\n if (gender.equals(\"1\") || gender.equals(\"female\")) {\n gender = \"Female\";\n }\n }\n\n final GPSTracker tracker = new GPSTracker(this);\n if (tracker.canGetLocation() == false) {\n tracker.showSettingsAlert();\n showToastMessage(R.string.message_wait_for_location);\n } else {\n String lat = tracker.getLatitude() + \"\";\n String lng = tracker.getLongitude() + \"\";\n final String genderData = gender;\n String gcmId = \"\";\n if (!MyGcmSharedPrefrences.getToken(this).equals(\"\")) {\n gcmId = MyGcmSharedPrefrences.getToken(this);\n }\n ModelManager.login(gcmId, email, ime, lat, lng, name,\n genderData, image, this, true, new ModelManagerListener() {\n\n @Override\n public void onSuccess(String json) {\n\n if (ParseJsonUtil.isSuccess(json)) {\n // Check is user or driver\n if (ParseJsonUtil.isDriverFromLogin(json)) {\n preferencesManager.setIsDriver();\n // If is driver check active or not\n if (ParseJsonUtil.driverIsActive(json)) {\n preferencesManager\n .setDriverIsActive();\n } else {\n preferencesManager\n .setDriverIsUnActive();\n }\n } else {\n preferencesManager.setIsUser();\n }\n\n // Set Login\n preferencesManager.setLogin();\n // Set Token\n preferencesManager.setToken(ParseJsonUtil\n .getTokenFromLogin(json));\n // Set User Id\n preferencesManager.setUserID(ParseJsonUtil\n .getIdFromLogin(json));\n // gotoActivity(MainActivity.class);\n gotoActivity(SplashActivity.class);\n finish();\n } else {\n if (ParseJsonUtil.getIsActiveAsDriver(json).equals(\"1\")) {\n login(email, name, genderData, image);\n }\n\n }\n }\n\n @Override\n public void onError() {\n showToastMessage(R.string.message_have_some_error);\n }\n });\n }\n\n }",
"private void disConnect() {\n Auth.GoogleSignInApi.revokeAccess(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n m_tvStatus.setText(R.string.status_notconnected);\n m_tvEmail.setText(\"\");\n m_tvDispName.setText(\"\");\n }\n });\n }",
"public void testLoginPIN() {\r\n try {\r\n tokenHandler.loginPIN(pinCode);\r\n tokenHandler.logoutPIN();\r\n } catch (Exception e) {\r\n fail(e.toString());\r\n }\r\n }",
"public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}",
"@Test\n public void conditionalOTPDefaultForce() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n \n setConditionalOTPForm(config);\n \n //test OTP is forced\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}",
"private void validateLoginUser() {\n\t\tUser user = userDao.getByPin(et_password.getText().toString());\n\t\tSession.setDriver(user);\n\n\t\tif (user.getWorkStatus().equals(User.STATUS_INACTIVE)) {\n\n\t\t\tdoLogin();\n\t\t} else {\n\t\t\tString locAt = \"\";\n\t\t\tif (user.getWorkStatus().equals(User.STATUS_IN_VEHICLE)) {\n\t\t\t\tVehiclesDao dao = new VehiclesDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentVehicleId()).getName();\n\t\t\t} else {\n\t\t\t\tServiceLocationDao dao = new ServiceLocationDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentServiceLocationId()).getName();\n\t\t\t}\n\t\t\tString msg = \"You are currently marked as \" + user.getWorkStatus() + \" at \" + locAt + \" since \" + user.getWorkStatusDate()\n\t\t\t\t\t+ \"\\n\" + \"Do you want to continue and override this status?\";\n\t\t\tAlertDialog.Builder alert_box = new AlertDialog.Builder(this);\n\t\t\talert_box.setIcon(R.drawable.icon);\n\t\t\talert_box.setMessage(msg);\n\t\t\talert_box.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdoPunchOut(et_password.getText().toString());\n\t\t\t\t\tdoLogin();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\t\t\talert_box.setNeutralButton(\"NO\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\talert_box.show();\n\t\t}\n\t}",
"public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"email\")).clear();\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(UID);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"pass\")).clear();\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(PWD);\r\n\t}",
"@Test\n public void conditionalOTPRequestHeaderSkip() {\n Map<String, String> config = new HashMap<>();\n String port = AUTH_SERVER_PORT;\n config.put(SKIP_OTP_FOR_HTTP_HEADER, \"Host: localhost:\" + port);\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"public void loginCorporate(CorporateLoginData corporateLoginData) {\n type(By.name(\"auth[ACCOUNT]\"), corporateLoginData.getAccountnumber());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[PIN]\"))){ // searching the pin field, if true - fills pin and caller\n type(By.name(\"auth[PIN]\"), corporateLoginData.getPin());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[CALLER]\"))) {\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n } else if (isSelectedPresent(By.name(\"auth[PASSWORD]\"))){ // searching the password field, if true - fills password and caller\n type(By.name(\"auth[PASSWORD]\"), corporateLoginData.getPin());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n if (isSelectedPresent(By.name(\"auth[CALLER]\"))) {\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n } else if (isSelectedPresent(By.name(\"auth[CALLER]\"))){ // searching the caller field, if true - fills caller\n type(By.name(\"auth[CALLER]\"), corporateLoginData.getCaller());\n click(By.xpath(\"//form[@id='authForm']/div[3]/button\"));\n }\n }",
"protected void doAdminLogin() {\n\t\tif (et_pin.getText().toString().trim().equals(\"\")) {\r\n//\t\t\td.dialogShow(v, AdminLoginActivity.this, \"Sorry\",\r\n//\t\t\t\t\t\"Please enter your master pin\");\r\n\t\t\t\r\n\t\t\td.showSingleButtonDialog( AdminLoginActivity.this,\r\n\t\t\t\t\t\"Please enter your master pin\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\r\n\t\t\tGlobalVariable.adminMasterPin = et_pin.getText().toString().trim();\r\n\t\t\tIntent i = new Intent(AdminLoginActivity.this,\r\n\t\t\t\t\tAdminConfirmLoginActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\toverridePendingTransition(R.anim.open_translate,\r\n\t\t\t\t\tR.anim.close_translate);\r\n\r\n\t\t}\r\n\t}",
"public void test_LoginToSystem7(){\n\t\tLogin l = new Login();\n\t\tl.LoginToSystem(\"\", \"\");\n\t\tassertFalse(l.GetSuccessfulLogin());\n\t}",
"public void unauthorized() {\n super.unauthorized();\n LoginFragment.this.getTracker().send(new HitBuilders.EventBuilder().setCategory(\"sign_in\").setAction(\"incorrect\").setLabel(\"incorrect\").build());\n Answers.getInstance().logLogin(new LoginEvent().putSuccess(false));\n new AlertDialog.Builder(LoginFragment.this.getActivity()).setMessage(R.string.incorrect_email_or_password).setPositiveButton(17039370, (DialogInterface.OnClickListener) null).show();\n }",
"@Test(priority = 1)\n\tpublic void login() {\n\t\tlp.loginToApp();\n\t}",
"@Test(priority = 3)\n public void emptyPasswordLogin() {\n Login login = new Login(driver, wait);\n login.LoginMethod(login);\n login.typeCredentials(login.emailLabel, correctMail);\n login.typeCredentials(login.passwordLabel, \"\");\n login.click(login.submitBtn);\n login.checkElementDisplayed(login.errorBox);\n login.checkErrorMessageMatching(login.errorBox,emptyPasswordError);\n\n }",
"@Override\n\tpublic boolean login(MemberBean param) {\n\t\treturn false;\n\t}",
"private void checkToLogin() {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivityForResult(intent, ConstantValue.LOG_IN_CODE);\n }",
"@Override\n public void doWhenNetworkCame() {\n doLogin();\n }",
"public MobileIDSession startLogin(String phone) {\n return startLogin(null, null, phone);\n }",
"public void login2() {\n\t\tdriver.findElement(By.cssSelector(\"input[name='userName']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='password']\")).sendKeys(\"testing\");\n\t\tdriver.findElement(By.cssSelector(\"input[name='login']\")).click();\n\t\t\n\n\t\n\t\n\t}",
"@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}",
"@Override\r\n\tpublic boolean login(MemberDto mem) {\n\t\treturn login(mem.getEmail(),mem.getPw());\r\n\t}",
"private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mPhoneView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String phone = mPhoneView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid phone address.\r\n if (TextUtils.isEmpty(phone)) {\r\n mPhoneView.setError(getString(R.string.error_field_required));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n } else if (!isPhoneValid(phone)) {\r\n mPhoneView.setError(getString(R.string.error_invalid_phone));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(phone, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }",
"public static void Login() \r\n\t{\n\t\t\r\n\t}",
"public void signInExistingUser(View v) {\n attemptLogin();\n\n }",
"@Override\n\t\tpublic void onCancelLogin() {\n\n\t\t}",
"@Override\n\t\tpublic void onCancelLogin() {\n\n\t\t}",
"protected Response login() {\n return login(\"\");\n }",
"public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}",
"public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }",
"@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }",
"@Override\r\n\tpublic void onOffline() {\n\t\tShowToast(\"您的账号已在其他设备上登录!\");\r\n\t\tstartActivity(new Intent(this, Login.class));\r\n\t\tfinish();\r\n\t}",
"private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}",
"@OnClick(R.id.login_login_btn)\r\n protected void login(View view) {\n String username = StringsOperations.getTextFromEditText(mUsername);\r\n if (!GenericDialogs.isFieldValidAndShowValidMessage(username, R.string.validate_email, mContext)) {\r\n return;\r\n }\r\n\r\n String password = StringsOperations.getTextFromEditText(mPassword);\r\n if (!GenericDialogs.isFieldValidAndShowValidMessage(password, R.string.validate_password, mContext)) {\r\n return;\r\n }\r\n\r\n LoginDto loginDto = new LoginDto(username, password);\r\n mCustomProgressBar.showHideProgressBar(true, getString(R.string.loading_login));\r\n mLoginService.loginWithEmail(new ResponseCallBackHandler() {\r\n @Override\r\n public void returnResponse(ResponseHandler responseHandler) {\r\n mCustomProgressBar.showHideProgressBar(false, null);\r\n if (responseHandler.isExecuted()) {\r\n mUserSession.login((User) responseHandler.getValue());\r\n ChangeActivityHelper.changeActivityClearStack((Activity) mContext, HomeActivity.class, true);\r\n return;\r\n }\r\n\r\n // Not verified\r\n if (getString(R.string.email_not_verified).equalsIgnoreCase(responseHandler.getMessage())) {\r\n GenericDialogs.getGenericConfirmDialog(mContext, \"\", getString(R.string.login_service_failed),\r\n \"Verify Email\", GenericDialogs.OK, false, new GenericConfirmationDialogBoxCallback() {\r\n @Override\r\n public void PositiveMethod(DialogInterface dialog, int id) {\r\n Uri uri = Uri.parse(\"https://mysnsi.scubasnsi.com/verify-email\"); // missing 'http://' will cause crashed\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\r\n startActivity(intent);\r\n dialog.dismiss();\r\n\r\n }\r\n\r\n @Override\r\n public void NegativeMethod(DialogInterface dialog, int id) {\r\n dialog.dismiss();\r\n }\r\n });\r\n } else {\r\n //Wrong username password\r\n GenericDialogs.showInformativeDialog(responseHandler.getMessage(), mContext);\r\n }\r\n\r\n }\r\n }, loginDto);\r\n\r\n }",
"@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}",
"public void checkLogin(){\n // Check login status\n if(!this.isLoggedIn()){\n Intent i = new Intent(mContext, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(i);\n }\n }",
"@Test\n public void conditionalOTPRequestHeaderForce() {\n Map<String, String> config = new HashMap<>();\n String port = AUTH_SERVER_PORT;\n config.put(FORCE_OTP_FOR_HTTP_HEADER, \"Host: localhost:\" + port);\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is required\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertEquals(PageUtils.getPageTitle(driver), \"Mobile Authenticator Setup\");\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }",
"public abstract boolean login(String email, String passwaord) throws CouponSystemException;",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"void denyRegistration(String login);",
"private void attemptLogin() {\n /* if (mAuthTask != null) {\n return;\n }\n*/\n // Reset errors.\n mEmailView.setError(null);\n editTextname.setError(null);\n\n pojo = new BusinessAccountPojo();\n // Store values at the time of the login attempt.\n pojo.email = mEmailView.getText().toString();\n pojo.name = editTextname.getText().toString();\n// pojo.phone_number = editTextPhone.getText().toString();\n// pojo.phone_number = String.valueOf(primaryNumber.getNationalNumber());\n\n\n String num = primaryNumber.getNumber();\n\n// String phone = primaryNumber.getNationalNumber();\n// primaryNumber.getNumber()\n\n pojo.category= etCategory.getText().toString();\n pojo.services = etService.getText().toString();\n pojo.keywords= etKeyword.getText().toString();\n pojo.address = etAddress.getText().toString();\n pojo.latitude = \"17.68\";\n pojo.longitude = \"83.21\";\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty( pojo.email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!pojo.email.matches(UtilsServer.EMAIL_PATTERN)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n\n\n if (TextUtils.isEmpty(pojo.name)) {\n editTextname.setError(getString(R.string.error_username));\n focusView = editTextname;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(num)) {\n primaryNumber.setError(getString(R.string.error_field_required));\n focusView = primaryNumber;\n cancel = true;\n\n\n }else if (!isValidPhonneNumber){\n cancel = true;\n primaryNumber.setError(getString(R.string.error_invalid_phone));\n focusView = primaryNumber;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.category)) {\n etCategory.setError(getString(R.string.error_field_required));\n focusView = etCategory;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.keywords)) {\n etKeyword.setError(getString(R.string.error_field_required));\n focusView = etKeyword;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.services)) {\n etService.setError(getString(R.string.error_field_required));\n focusView = etService;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(pojo.address)) {\n etAddress.setError(getString(R.string.error_field_required));\n focusView = etAddress;\n cancel = true;\n }\n\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n pojo.phone_number = num.substring(3);\n\n createBusinessAccount(pojo);\n\n\n // confirmOtp();\n// mAuthTask = new UserLoginTask(email, \"password\");\n// mAuthTask.execute((Void) null);\n }\n }",
"public String Login(String phoneNum, String passwd) {\n return \"123\";\n }",
"boolean hasLoginapiavgrtt();",
"boolean checkUserCorrispondenceLogin(String emailLogin, String passwordLogin);",
"public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}",
"@Override\n public void onSignInFailed() {\n BYPASS_LOGIN = true;\n }",
"public void onLogin(View view) {\n // get user mail and pwd\n\n HideSoftKeyboard();\n\n mUserMail = emailField.getEditableText().toString();\n\n if (utils.validateUserEmail(mUserMail)) {\n mUserPwd = passwordField.getEditableText().toString();\n\n if (utils.validateUserPwd(mUserPwd)) {\n\n // email & pwd are ok, proceed with service call\n new SendLoginDataToServer().execute();\n\n }else{\n showToast(\"Check your password , min 3 char \");\n }\n\n }else{\n showToast(\"Check your mail ID\");\n }\n\n }",
"public void testSetNewPINWithoutPUK() {\r\n try {\r\n tokenHandler.loginPIN(pinCode);\r\n tokenHandler.setPIN(pinCode);\r\n fail(\"Changing PIN without PUK authentication did not cause an exception\");\r\n } catch (TokenException e) {\r\n assertEquals(ReturnCodes.SW_PIN_PUK_AUTHENTICATION_REQUIRED, e.getSW());\r\n }\r\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"222222\");\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"333333\");\n }",
"private void login() {\n User user;\n SharedPreferences preferences = context.getSharedPreferences(context.getString(R.string.user_shared_preferences), MODE_PRIVATE);\n preferences.edit().putLong(context.getString(R.string.user_id), -1).apply();\n if(preferences.getLong(context.getString(R.string.user_id), -1) != -1){\n user = User.getUser();\n }\n else{\n Globals.showDialog(\"New User\",\"Choose a user name\", LoginActivity.this);\n\n }\n user = new User();\n\n HttpUserService userService = new HttpUserService();\n Call<User> call = userService.login(user.getId());\n\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n asyncLogin(response);\n\n\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n Globals.showConnectionDialog(LoginActivity);\n\n }\n });\n }",
"public static void saveLoginWhenFirst(Context context) {\n SharedPreferences.Editor editor = context.getSharedPreferences(SHARED_PREFERENCES_KEY, context.MODE_PRIVATE).edit();\n editor.putBoolean(IS_FIRST_TOKEN,false);\n editor.commit();\n }",
"private static void signInCorpMailApp()\n\t{\n\t\t\n\t\tif(driver==null)\n\t\t\tlaunchBrowser();\n\t\t\n\t\tdriver.get(\"https://mail.nagra.com/\");\n\t\t\n\t\tCommonUtil.sleep(30);\n\t\t\n\t\t/*WebElement txtUserName = driver.findElement(By.id(\"username\"));\n\t\tWebElement txtPassword = driver.findElement(By.id(\"password\"));\n\t\t\n\t\tdriver.getTitle()\n\t\t\n\t\t//Input user name\n\t\ttxtUserName.clear();\n\t\ttxtUserName.sendKeys(username);\n\t\t\n\t\t//Input password\n\t\ttxtPassword.clear();\n\t\ttxtPassword.sendKeys(password);\n\t\t\n\t\t//Click login\n\t\tdriver.findElement(By.id(\"SubmitCreds\")).click();*/\n\t}",
"public void LogOnReady(){\n\t\tDriver driver = ModelManager.Get().getDriver();\n\t\tif(driver != null){\n\t\t\t//remove the softkeypad\n\t\t\tinMgr.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), 0);\n\t\t\t\n\t\t\tfm = getFragmentManager();\n\t\t\tfm.beginTransaction()\n\t\t\t\t.replace(R.id.fragmentContainer, new ScreenFragment())\n\t\t\t\t.commit();\n\t\t}else{\n\t\t\tuserNameEditText.setText(\"\");\n\t\t\tnumberPlateEditText.setText(\"\");\n\t\t\tpasswordEditText.setText(\"\");\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(username.getText().toString()) || TextUtils.isEmpty(password.getText().toString())) {\n new DialogBox(LoginActivity.this, \"Please Enter In The Required Fields!\");\n } else {\n// if(isChecked) {\n// saveLoginDetails();\n// } else {\n// deleteLoginDetails();\n// }\n Login();\n }\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"111111\");\n }",
"private void autoLogon() {\n\n // Get the username from the shared preferences file\n String strMailID = null;\n SharedPreferences appPreferences = getSharedPreferences(RegistrationScreenActivity.PREFERENCES_FILENAME, MODE_PRIVATE);\n if( appPreferences.contains(RegistrationScreenActivity.KEY_MAIL_ID) ) {\n strMailID = appPreferences.getString(RegistrationScreenActivity.KEY_MAIL_ID, null);\n }\n\n // If the username is not stored in the file, then request\n // the user to explicitly login by providing the credentials\n if(strMailID != null) {\n\n // Fetch the data from the database\n DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());\n AccountInformation accountInfo = dbHandler.getAccountInfo(strMailID);\n if(accountInfo != null) {\n\n // If the account exists, then check auto logon is set to true\n if( !accountInfo.getIfSignedOut() && accountInfo.getIfAlwaysSignIn() ) {\n\n strUserMailID = accountInfo.getEmail();\n strUserName = accountInfo.getName();\n\n // Do auto login by auto displaying the home screen\n Intent intent = new Intent(this, HomeScreenActivity.class);\n intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);\n intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);\n startActivity(intent);\n\n } else {\n\n // Request user to enter the credentials\n Toast.makeText(getApplicationContext(), \"Session signed out previously. \\n \" +\n \"Please enter credentials to login\", Toast.LENGTH_LONG).show();\n }\n } else {\n // Display error if the account does not exists\n Toast.makeText(getApplicationContext(), \"No such user exists. \\n \" +\n \"Please register to login\", Toast.LENGTH_LONG).show();\n }\n }\n }",
"private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }"
]
| [
"0.7309071",
"0.73073417",
"0.6291903",
"0.6291903",
"0.6248045",
"0.62475854",
"0.61762655",
"0.6098656",
"0.6045574",
"0.60184246",
"0.6004265",
"0.59343886",
"0.5888728",
"0.5882276",
"0.58725786",
"0.5848772",
"0.5848772",
"0.5847705",
"0.58427197",
"0.5831344",
"0.58197534",
"0.57983905",
"0.579687",
"0.57944006",
"0.5791597",
"0.57746375",
"0.5767844",
"0.5766846",
"0.5764908",
"0.57621187",
"0.5760827",
"0.5751359",
"0.5749278",
"0.57464683",
"0.5744482",
"0.5741966",
"0.5725405",
"0.5724809",
"0.5720398",
"0.57172513",
"0.5716483",
"0.57138",
"0.5713443",
"0.57068324",
"0.57047665",
"0.5684302",
"0.56815314",
"0.56617343",
"0.5661707",
"0.5660758",
"0.565899",
"0.56500256",
"0.56456023",
"0.56450266",
"0.5636198",
"0.56285506",
"0.56277376",
"0.5619256",
"0.56188923",
"0.561401",
"0.5607679",
"0.56011504",
"0.5595485",
"0.559507",
"0.5590049",
"0.55886567",
"0.5580718",
"0.5580718",
"0.55774",
"0.55736816",
"0.55628425",
"0.55622184",
"0.55574167",
"0.55537283",
"0.5550562",
"0.5545646",
"0.5541361",
"0.5539201",
"0.553359",
"0.55308306",
"0.55307555",
"0.5530348",
"0.5521053",
"0.55192274",
"0.55096084",
"0.5507885",
"0.5507488",
"0.55072874",
"0.5507167",
"0.5503241",
"0.54985446",
"0.54954827",
"0.5489618",
"0.5483693",
"0.5481792",
"0.54800725",
"0.5471014",
"0.54690826",
"0.54687154",
"0.5467006"
]
| 0.8447702 | 0 |
Verifies the presence of Skip button while skipping Phone verification. | public void verifySkip()
{
Assert.assertEquals(continueButton.getText(), "Skip");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loginWithPersonalDeviceWithSkip()\n\t{\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click(); \n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \tor Verify Failed popup\n\t\t\n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\t\t// 60 + 30 sec taken by try catch \n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\t\n\t\t\tGeneric.wait(2);\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e.getMessage());\n\t\t\t\n\t\t\t/*Log.info(\"======== Page taking too much time to load , trying to click on Lets Login by cancelling phone verification ========\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\tverifyAbortButton.click();\n\t\t\t\tgotoHome();\t\n\t\t\t\treturn;\t\n\t\t\t}\n\t\t\tcatch(Exception e1)\n\t\t\t{\n\t\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e1.getMessage());\n\t\t\t}*/\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\t// ==== Handle Verify Phone Authentication failed alert ==== //\n\t\tif (checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button2\"))\n\t\t{\n\t\t\tLog.info(\"======== Skipping Phone verification ========\");\n\t\t\tdriver.findElement(By.id(\"button2\")).click();\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tcontinueButton.click();\t\n\t\t\tGeneric.wait(5);\n\t\t\treturn;\t// goto to VerifyDevice Page from verifyLogin() method\t\t\n\t\t}\t\t\t\n\t\tgotoHome();\t\t\n\t}",
"public void waitForPhoneVerification() \n\t{\n\t\tString xp=\"//android.widget.TextView[contains(@text,'Verify')]\"; \n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 40).until(ExpectedConditions.visibilityOf(phoneVerificationIdentifier));\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Phone Verification page not found\\n\"+e.getMessage());\n\t\t}\n\t}",
"@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }",
"public void uiVerifyButtonUndoEnable() {\n try {\n getLogger().info(\"Verify button Undo Todo enable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo\")) {\n NXGReports.addStep(\"Verify button Undo Todo enable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo enable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@And(\"^I Should see Continue shopping button$\")\n public void iShouldSeeCountinueButton()throws Throwable{\n Assert.assertTrue(\"Continue shopping button is not present\", Elements.elementPresent(\"checkout.rc_test_element\"));\n Clicks.click(\"checkout.rc_test_element\");\n getWebDriver().navigate().back();\n }",
"public void checkoutcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked in popu page\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"checkoutregistrationcontinue\"));\r\n\t\t\tclick(locator_split(\"checkoutregistrationcontinue\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ccontinue Registartion button clicked in popu page\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked in popu page\"+elementProperties.getProperty(\"_Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}",
"public void enableContinue() {\n if (PayBillAccountBox.getValue() != null) continueButton.setDisable(false);\n }",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }",
"@Test\n public void conditionalOTPDefaultSkip() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"public void onNextClicked(View v) {\n // TODO: format phone number\n final String email = etEmail.getText().toString();\n final String mobile = etMobile.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty() || mobile.isEmpty() || password.isEmpty()) {\n Toast.makeText(this, \"Please complete the form\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (password.length() < 5) {\n Toast.makeText(this, \"Password must have at least 5 characters\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (!DeviceUtil.hasConnection(this)) {\n Toast.makeText(this, \"No Internet connection\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n final IdentityVerifier identityVerifier = new IdentityVerifier(this, new IdentityVerifier.ResultCallback() {\n @Override\n public void handleResult(int result) {\n if (result == IdentityVerifier.RESULT_PASS) {\n clearError();\n goToCreateProfile(email, mobile, password);\n } else {\n showError(result);\n }\n }\n\n @Override\n public void handleFault(ParseException fault) {\n if (fault != null) {\n Logger.e(TAG, fault.getMessage());\n Toast.makeText(RegisterActivity.this, fault.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n identityVerifier.verify(email, mobile);\n }",
"public static Boolean tryAgainBtn() throws Exception {\n\t\tboolean checkPage=false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tcheckPage=true;\n\t\t}\n\t\treturn checkPage;\n\t}",
"public void loginWithoutPersonalDevice() {\n\t\t//new WebDriverWait(driver, 45).pollingEvery(1, TimeUnit.SECONDS).until(ExpectedConditions.visibilityOf(personalCheckbox));\n\t\twaitOnProgressBarId(45);\n\t\tif (pageTitle.getText().contains(\"Phone\")) {\n\n\t\t\tLog.info(\"======== Unchecking personal device ========\");\n\t\t\tpersonalCheckbox.click();\n\t\t\tLog.info(\"======== Selecting Dont ask again checkbox ========\");\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tLog.info(\"======== Clicking on Skip button ========\");\n\t\t\tcontinueButton.click(); // Click on Skip , Skip=Continue\n\t\t}\n\t}",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"@Override\n public void onClick(View v) {\n if (v == next){\n Log.d(\"\",\"- - - - - - - Triggered Next Button - - - - - - - - -\");\n if (otpInp.getText().toString().length() < 5){\n otpInp.setError(\"Invalid\");\n }else{\n Toast.makeText(getApplication().getBaseContext(),\"Getting OTP\",Toast.LENGTH_LONG);\n Log.d(\"Loader Message \",\"Getting otp for the validation\");\n startActivity(new Intent(getBaseContext(), ShowItems.class));\n }\n }\n if (v == resend){\n Toast.makeText(getApplicationContext(),\"Resend Otp\", Toast.LENGTH_LONG);\n }\n }",
"@Test\n public void conditionalOTPUserAttributeSkip() {\n Map<String, String> config = new HashMap<>();\n config.put(OTP_CONTROL_USER_ATTRIBUTE, \"userSkipAttribute\");\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n\n setConditionalOTPForm(config);\n\n //add skip user attribute to user\n testUser.singleAttribute(\"userSkipAttribute\", \"skip\");\n testRealmResource().users().get(testUser.getId()).update(testUser);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }",
"private boolean checkPhoneStatusOK() {\n return true;\n }",
"public void proceedToCheckOut()\n\t{\n\t\tproceedtocheckoutpage = productpage.addToCartBtnClick();\n\t}",
"private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }",
"private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }",
"public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}",
"public void continue_billing() {\r\n\t\t\tthis.Continue_Billing.click();\r\n\t\t}",
"public void onNextPress() {\n try {\n timer(ctx,true,ConstantTestIDs.EAR_PHONE_ID,null);\n MainActivity activity = (MainActivity) getActivity();\n if (Constants.isSkipButton) {\n try{\n testController.unRegisterEarJack();\n\n }\n catch (Exception e){\n e.printStackTrace();\n }\n isTestPerformed=true;\n mImgViewEarPhone.setImageDrawable(getResources().getDrawable(R.drawable.ic_earphone_green_svg_168),false,getActivity());\n utils.showToast(ctx, getResources().getString(R.string.txtManualFail));\n\n }\n boolean semi=true;\n nextPress(activity,semi);\n\n } catch (Exception e) {\n logException(e, \"EarJackManualFragment_onNextPress()\");\n }\n\n }",
"public void onButtonDone(View view) {\n\t\tif (!phoneInput.isValid()) {\n\t\t\tphoneInput.setError(getString(R.string.phoneVerification_invalidNumber));\n\t\t} else if (!checkBoxPrivacyConsent.isChecked()) {\n\t\t\tphoneInput.setError(null);\n\t\t\tnew AlertDialog.Builder(this)\n\t\t\t\t\t.setTitle(R.string.app_name)\n\t\t\t\t\t.setMessage(R.string.phoneVerification_notAgreed)\n\t\t\t\t\t.setPositiveButton(R.string.app_ok, null)\n\t\t\t\t\t.show();\n\t\t} else {\n\t\t\tphoneInput.setError(null);\n\t\t\thideKeyboard();\n\t\t\tshowVerificationDialog(phoneInput.getPhoneNumberE164());\n\t\t}\n\t}",
"boolean canBeSkipped();",
"public void clickContinue() {\n\t\tcontinueButton.click();\n\t}",
"@Test\n\tpublic void addButtons__wrappee__SkipTrackTest() throws Exception {\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.ogg &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.volumecontrol &&\n\t\t\t\tConfiguration.shufflerepeat &&\n\t\t\t\tConfiguration.skiptrack\n\t\t) {\n\t\tstart();\n\t\t\t\n\t\t\tConfiguration.skiptrack = false;\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__SkipTrack\");\n\t\t\tJButton button = (JButton) MemberModifier.field(Application.class, \"btnNextTrack\").get(gui);\n\t\t\tassertTrue(button.getBounds().getX() == 100);\n\t\t\tassertTrue(button.getBounds().getY() == 279);\n\t\t\tassertTrue(button.getBounds().getWidth() == 64);\n\t\t\tassertTrue(button.getBounds().getHeight() == 23);\n\t\t}\n\t}",
"public void Regcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Regcontinuebutton\"));\r\n\t\t\tclick(locator_split(\"Regcontinuebutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- continue Registartion button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked \"+elementProperties.getProperty(\"Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Regcontinuebutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}",
"public void invalidSkip() {\n JOptionPane.showMessageDialog(frame, \"Invalid skip\", \"Invalid skip\", JOptionPane.ERROR_MESSAGE);\n\n }",
"boolean hasSkipMessage();",
"public static void checkAndClickTryAgainButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t}",
"public void clickOnContinueShoppingButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnContinueShoppingButton.click();\n\n \t}",
"@When(\"^User clicks on continue button$\")\n\tpublic void user_clicks_on_continue_button() throws Throwable {\n\t\tGetDriver.browserState().findElement(By.name(\"findFlights\")).click();\n\t}",
"public synchronized WebElement btn_continueShopping() throws Exception {\n\n\t\treturn utils.findElementByLocator(driver, \"PDP_continueShopping\", \"| PDP:Continue Shopping not present\");\n\t}",
"boolean isNextButtonDisabled() {\r\n\t\treturn nextPage.isDisabled();\r\n\t}",
"public boolean phonedisplayed() throws Exception{\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phone);\r\n\t\t\t\tflag = element.isDisplayed();\r\n\t\t\t\tAssert.assertTrue(flag, \"Phone Number is not dispalyed and enabled\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn flag;\r\n\t\t}",
"@Test(priority=3)\n\tpublic void verifySignUpBtn() {\n\t\tboolean signUpBtn = driver.findElement(By.name(\"websubmit\")).isEnabled();\n\t\tAssert.assertTrue(signUpBtn);\n\t}",
"public void noReceipt() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"salescompleteBtn\")));\n\t\ttemp.click();\n\t}",
"public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}",
"public void testGetNextFinishButtonEnabled() {\n System.out.println(\"getNextFinishButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getNextFinishButtonEnabled();\n assertEquals(expResult, result);\n }",
"public boolean VerifyOrderDetails_OrderConfirmation(){\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PAYMENTCONFIRMATION_LABEL).isDisplayed();\n\tif(flag){extentLogs.passWithCustom(\"VerifyOrderDetails\", \"PAYMENTCONFIRMATION_LABEL\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERNUMBER_LABEL).isDisplayed();\n\t\tif(flag){\n\t\t\textentLogs.passWithCustom(\"VerifyOrderDetails\", \"OrderNumberLabelIsDisplayed\");\n\t\t}else{extentLogs.fail(\"VerifyOrderDetails\", \"OrderNumberLabelIsNotDisplayed\");}\n\t}else{extentLogs.fail(\"VerifyOrderDetails\", \"PAYMENTCONFIRMATION_LABEL\");}\n\t\n\treturn flag;\n\t}",
"protected boolean validatePage( UserRequest request,\n int pageNumber,\n String buttonPressed)\n throws IOException, ServletException\n {\n // default noop\n return true;\n }",
"@Test\n public void conditionalOTPDefaultSkipWithChecks() {\n Map<String, String> config = new HashMap<>();\n config.put(OTP_CONTROL_USER_ATTRIBUTE, \"noSuchUserSkipAttribute\");\n config.put(SKIP_OTP_ROLE, \"no_such_otp_role\");\n config.put(FORCE_OTP_ROLE, \"no_such_otp_role\");\n config.put(SKIP_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(FORCE_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//android.widget.TextView[contains(@text,'Verify')]\")));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Verify Phone page not found\"+e.getMessage());\n\t\t}\n\t\t\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\tif(pageTitle.getText().contains(\"Device\"))\n\t\t{\t\t\t\n\t\t\tLog.info(\"== Verify Device page found instead of Verify Phone page ==\"); \t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click();\n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \t\t\n\t\t\n\t\tnew WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button1\"))\n\t\t{\t\n\t\t\tchecker.click();\n\t\t\t\n\t\t\tnew WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tif(checker.getText().contains(\"OK\") && checker.getAttribute(\"resourceId\").contains(\"button2\")) return;\t// LGN_05 will verify this\t\n\t\t\n\t\t//gotoHome();\tNo need to go to Home since Error messages and skip buttons need to be validated\t\n\t}",
"@Override\n public void onSkipPressed(Fragment currentFragment) {\n Dexter.withActivity(this)\n .withPermissions(\n Manifest.permission.READ_CALENDAR,\n Manifest.permission.WRITE_CALENDAR,\n Manifest.permission.CAMERA,\n Manifest.permission.READ_CONTACTS,\n Manifest.permission.WRITE_CONTACTS,\n Manifest.permission.GET_ACCOUNTS,\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.RECORD_AUDIO,\n Manifest.permission.READ_PHONE_STATE,\n Manifest.permission.READ_CALL_LOG,\n Manifest.permission.WRITE_CALL_LOG,\n Manifest.permission.ADD_VOICEMAIL,\n Manifest.permission.USE_SIP,\n Manifest.permission.PROCESS_OUTGOING_CALLS,\n Manifest.permission.BODY_SENSORS,\n Manifest.permission.SEND_SMS,\n Manifest.permission.RECEIVE_SMS,\n Manifest.permission.READ_SMS,\n Manifest.permission.RECEIVE_WAP_PUSH,\n Manifest.permission.RECEIVE_MMS,\n Manifest.permission.READ_EXTERNAL_STORAGE,\n Manifest.permission.WRITE_EXTERNAL_STORAGE\n ).withListener(new MultiplePermissionsListener() {\n @Override public void onPermissionsChecked(MultiplePermissionsReport report) {ActivityOptionsCompat compat = setActivityAnimation();\n startActivity(new Intent(MainIntroActivity.this, MainActivity.class), compat.toBundle());\n finish();}\n @Override public void onPermissionRationaleShouldBeShown(List<PermissionRequest> permissions, PermissionToken token) {/* ... */}\n }).check();\n }",
"public void checkOutFlight() {\n confirmationPage.checkButton();\n }",
"public boolean isCheckoutButtonPresent() {\n\t\ttry{\n\t\t\tdriver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + checkout + \"']\"));\n\t\t\treturn true;\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void uiVerifyButtonUndoExist() {\n try {\n getLogger().info(\"Verify button Undo Todo exist.\");\n btnToDoUndo.getAttribute(\"class\");\n NXGReports.addStep(\"Verify button Undo Todo exist.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo exist.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Button nextPage = (Button) findViewById(R.id.button_id);\n System.out.println(\"THE RESULT CODE IS = \" + resultCode);\n if (resultCode==7 | resultCode==0) {\n nextPage.setVisibility(View.VISIBLE);\n }\n else {\n nextPage.setVisibility(View.GONE);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }",
"public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}",
"public void clickContinueButtonForUnit() {\r\n\t\twebAppDriver.clickElementByCss(btnContinueButtonStorageUnitCss);\r\n\t\twebAppDriver.verifyPresenceOfTextInDivTagText(\"Your Reservation\");\r\n\t}",
"@Test\n public void conditionalOTPRequestHeaderSkip() {\n Map<String, String> config = new HashMap<>();\n String port = AUTH_SERVER_PORT;\n config.put(SKIP_OTP_FOR_HTTP_HEADER, \"Host: localhost:\" + port);\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n\n setConditionalOTPForm(config);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"@OnClick\n public void onClickNext() {\n alipayPhoneLogging();\n String phoneNumber = this.airPhone.phoneInputText();\n String countryCode = this.phoneNumberInput.getCountryCode();\n getAlipayActivity().setPhoneNumber(phoneNumber);\n CreatePaymentInstrumentRequest.forAlipay(new Builder().alipayLoginId(getAlipayActivity().getAlipayId()).mobilePhoneNumber(phoneNumber).mobilePhoneCountry(countryCode).build()).withListener((Observer) this.requestListener).execute(this.requestManager);\n this.nextButton.setState(AirButton.State.Loading);\n }",
"public void skipVerify() {\n\tskipVerify = true;\n }",
"private void CheckEnable()\n {\n btn_prev.setEnabled(true);\n btn_next.setEnabled(true);\n\n if(increment+1 == pageCount)\n {\n btn_next.setEnabled(false);\n }\n if(increment == 0)\n {\n btn_prev.setEnabled(false);\n }\n }",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t\tMobclickAgent.onPageEnd(\"获取验证码\");\r\n\t}",
"public synchronized void click_lnk_continueShopping() throws Exception {\n\t\tutils.clickWebElement(driver, btn_continueShopping(), \"Continue Shopping button not found\");\n\n\t}",
"@Override\n public void verifyHasPhone() {\n }",
"public boolean Verify_NonIpoConfirmation() {\n\t\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed();\n\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"DISPLAYED\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERRECEIVED_LABEL).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"DISPLAYED\");\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"DISPLAYED\");\n\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"DISPLAYED\");\n\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"DISPLAYED\");\n\t\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.MYSTORE_SECTION).isDisplayed();\n\t\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"DISPLAYED\");\n\t\t\t\t\t\t flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.GOTOHOMEPAGE_BUTTON).isDisplayed();\n\t\t\t\t\t\t if(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");\n\t\t\t\t\t\t\t}else{extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"NOTDISPLAYED\");}\n\t\t \t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"NOTDISPLAYED\");}\n\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"NOTDISPLAYED\");}\n\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"NOTDISPLAYED\");}\n\t\nreturn flag;\n\t}",
"public synchronized void verifyCartBtn() {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(cartBtn, \"cart button\", 30);\n\t\t\tWebActionUtil.isElementClickable(cartBtn, \"Cart button\");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to clk on cart button\");\n\t\t\tAssert.fail(\"Unable to clk on cart button\");\n\t\t}\n\t}",
"private boolean handleRightBtnIfInVerify(){\n \t\tif(!detail.getValueByKey(\"status\").equals(\"0\")){\n \t\t\tpd = ProgressDialog.show(GoodDetailView.this.getContext(), \"提示\", \"请稍候...\");\n \t\t\tpd.setCancelable(true);\n \t\t\tnew Thread(new RequestThread(REQUEST_TYPE.REQUEST_TYPE_DELETE)).start();\n \n \t\t\treturn true;\t\n \t\t}\n \t\treturn false;\n \t}",
"private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}",
"public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }",
"@And(\"^I tap Commit button on Phone Number Verification page$\")\n public void ICommitData() throws Exception {\n getTabletPhoneNumberVerificationPage().tapCommitButton();\n }",
"public boolean verifyMentorRequestContinue(){\n\t\treturn mentorConnectRequestObjects.almostDoneText.isDisplayed();\n\t}",
"@Test\n public void testifyPhone() throws InterruptedException {\n onView(withId(R.id.phone)).check(matches(isDisplayed()));\n }",
"public void verifyRegisterForNPILink() {\n npiLink.assertState().enabled();\n npiLink.assertContains().text(\"register for a National Provider Identifier (NPI)\");\n }",
"public boolean canSkipThreePid() {\n boolean canSkip = true;\n\n if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n canSkip = isOptional(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n\n if (canSkip) {\n if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)) {\n canSkip = isOptional(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n }\n\n return canSkip;\n }",
"public boolean verifyAcceptButtonPresence(ExtentTest extentedReport) {\n\t\treturn WaitUtils.waitForElement(driver, btnAcceptPayment, 30);\n\t}",
"boolean isAutoSkip();",
"public void PINext (View view){\n try {\n readCardOpt.cancelCheckCard();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n final ProgressDialog pdialog = new ProgressDialog(powerInstantActivity.this);\n pdialog.setMessage(\"Loading, Please wait...\");\n pdialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pdialog.setCancelable(false);\n pdialog.show();\n\n if (meternumber.getText().toString() != null){\n meter = meternumber.getText().toString();\n\n if (piphoneno.getText().toString() != null){\n powerphone = piphoneno.getText().toString();\n int length = piphoneno.getText().length();\n if (length > 6 && length < 8){\n String firstdigit = powerphone.substring(0, 1);\n if (firstdigit.equals(\"8\") || firstdigit.equals(\"7\")){\n\n if (piamount.getText().toString() != null && !piamount.getText().toString().isEmpty()){\n poweramount = piamount.getText().toString();\n int amt = Integer.parseInt(poweramount);\n if (amt > 4 && amt < 401){\n appConn = new AppConn();\n appConn.meter_no = meter;\n appConn.webLink = Global.URL;\n appConn.commandpost = \"metercheck\";\n appConn.meterChecker(new ResponseListener() {\n @Override\n public void onResponse(Response response) {\n if (appConn.meterFailedcode != null) {\n pdialog.dismiss();\n Toast.makeText(powerInstantActivity.this, \"failedcode : \" + appConn.meterFailedcode, Toast.LENGTH_SHORT).show();\n } else {\n // test for valid meter number : 37120107851 / 98t00642\n\n String meterValidity = appConn.res_server;\n System.out.println(\"meterValidity = \" + meterValidity);\n if (meterValidity.equals(\"yes\")) {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.truetick);\n\n startActivity(new Intent(powerInstantActivity.this, powerInstantConfirm.class)\n .putExtra(\"name\", appConn.res_name)\n .putExtra(\"meter\", meternumber.getText().toString().toUpperCase())\n .putExtra(\"phoneno\", powerphone)\n .putExtra(\"amount\", piamount.getText().toString())\n .putExtra(\"piPid\", powerinstantPid)\n .putExtra(\"piMail\", powerinstantMail));\n } else {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.falsetick);\n Toast.makeText(powerInstantActivity.this, \"Invalid Meter No.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n @Override\n public void onError(String error) {\n pdialog.dismiss();\n finish();\n Toast.makeText(powerInstantActivity.this, \"Error : \" + error, Toast.LENGTH_SHORT).show();\n startActivity(new Intent(powerInstantActivity.this, errorActivity.class));\n }\n });\n //\n\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Amount range: $5 - $400\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter amount no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no. length\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter meter no.\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"private void continueButton() {\n Optional<Squadron> anyAvailable = game\n .getHumanPlayer()\n .getNations()\n .stream()\n .filter(Nation::isSquadronsPresent)\n .flatMap(nation -> game.getHumanPlayer().getSquadrons(nation, SquadronLocationType.LAND).stream())\n .filter(Squadron::isAvailable)\n .findAny();\n\n List<Region> regionsNotSatisfied = gameMap\n .areAllRegionsSatisfied(game.getHumanSide());\n\n if (anyAvailable.isPresent()) {\n warnNotAllSquadronsDeployed();\n } else if (regionsNotSatisfied.size() > 0) {\n warnNotAllRegionsSatisfied(regionsNotSatisfied);\n } else {\n navigate.goNext(this.getClass(), stage);\n }\n }",
"@Then(\"^My Account button is not present$\")\r\n public void my_Account_button_is_not_present() throws Throwable {\n throw new PendingException();\r\n }",
"boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}",
"private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }",
"@BeforeTest\r\n\t\t\tpublic void checkTestSkip()\r\n\t\t\t{\r\n\t\t\t\tif(!TestUtil.isTestCaseRunnable(suiteProductDescPageXls,this.getClass().getSimpleName()))//suites XlSX name is passed by the object from base class. and name of the TestCase.\r\n\t\t\t\t\t//Instead of passing TestCase name,using this \"this.getClass().getSimpleName()\" to get the name of the class as the name of the class is the TestCase name.\r\n\t\t\t\t{ \r\n\t\t\t\t \r\n\t\t\t\t //writing the Skip in the Xls file for the test case\r\n\t\t\t\t \r\n\t\t\t \t\r\n\t\t\t \tTestUtil.reportDataSetResult(suiteProductDescPageXls, \"Test Cases\",TestUtil.getRowNum(suiteProductDescPageXls,this.getClass().getSimpleName()),\"Skip\");\r\n\t\t\t \t\r\n\t\t\t\t\tAPP_LOGS.debug(\"skipping test ProductDescPage_TC4 ( Navigation to PDP check) as the runmode is NO\");\r\n\t\t\t\t\tthrow new SkipException(\"Skipping this testcase as the runmode is NO for this testcase : ProductDescPage_TC4 (Navigation to PDP check)\");\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t//Load the RunModes of the Test\r\n\t\t\t\trunmodes=TestUtil.getDataSetRunmodes(suiteProductDescPageXls, this.getClass().getSimpleName());\r\n\t\t\t\t\r\n\t\t\t}",
"public void ClickChecoutsubmitcontinue(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit continue button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tif(isElementPresent(locator_split(\"btncheckoutregistrationsubmitcontinue\"))){\r\n\t\t\t\tclick(locator_split(\"btncheckoutregistrationsubmitcontinue\"));\r\n\t\t\t}else{\r\n\t\t\t\tclick(locator_split(\"chkcheckoutregistrationconfirmaddress\"));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Checkout Registration submit continue button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit continue button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit continue button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmitcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}",
"@Test(groups = {\n\t\t\t\"Register Suite\" }, description = \"TestCase_02_Validate register button should be enabled if password field blank\")\n\tpublic void validateRegisterButtonShouldBeEnabledIfPasswordFieldBlank() throws InterruptedException {\n\n\t\topenURL(\"testSiteURL\");\n\t\ttype(\"register_email_field_CSS\", \"[email protected]\");\n\t\t// Assert.assertTrue(driver.findElement(By.xpath(OR.getProperty(\"register_button_XPATH\"))).isEnabled(),\n\t\t// \"Register Button is disabled\");\n\t\t// Assert.assertTrue(isElementPresent(by, locator));\n\n\t\tThread.sleep(3000);\n\t\tAssert.assertTrue(isElementEnabled(\"register_button_XPATH\"));\n\t}",
"@Override\n public void failure(DigitsException exception) {\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }",
"public void v_Verify_Guest11_Hidden(){\n\t}",
"public void requestConfirmationCode() {\n PhoneNumberVerificationRequest.forPhoneNumberVerification(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberVerificationRequestListener).execute(this.requestManager);\n }",
"public void isReadyToPay(){\n\t\t\n\t\t//Checking whether cancel button should be active.\n\t\t//(only if there is at least one item in the order OR customer name is not empty)\n\t\tif(currentOrder.getOrderItems().size()==0 && custNameField.getText().equals(\"\"))\n\t\t\tcancelButton.setEnabled(false);\n\t\telse cancelButton.setEnabled(true);\n\t\t\n\t\tif(currentOrder.getOrderItems().size()==0){\n\t\t\tpayButton.setText(\"ORDER IS EMPTY\");\n\t\t\tpayButton.setEnabled(false);\n\t\t\tpayButton.setBackground(new Color(184,75,82));\n\t\t\treturn;\n\t\t}\n\n\t\t\n\t\tif(custNameField.getText().equals(\"\")){\n\t\t\tDimension goodSize = payButton.getSize(); // so that size will not change\n\t\t\tpayButton.setText(\"NO CUST. NAME\");\n\t\t\tpayButton.setEnabled(false);\n\t\t\tpayButton.setBackground(new Color(184,75,82));\n\t\t\tpayButton.setPreferredSize(goodSize);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tDimension goodSize = payButton.getSize(); // so that size will not change\n\t\tpayButton.setText(\"PAY\");\n\t\tpayButton.setBackground(Color.GREEN);\n\t\tpayButton.setEnabled(true);\n\t\tpayButton.setPreferredSize(goodSize);\n\t}",
"public void v_Verify_Guest8_Hidden(){\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"public void v_Verify_Guest11_Displayed(){\n\t}",
"private void proceedManual() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n abortProgress(true);\n startValidationCode(REQUEST_MANUAL_VALIDATION);\n }\n });\n }",
"public boolean VerifyButtonStatus() throws InterruptedException {\n\n Thread.sleep(10000);\n if(roundTripButton.isSelected()) {\n System.out.println(\"round trip Button is already selected\");\n wait.until(ExpectedConditions.elementToBeClickable(oneWayButton));\n oneWayButton.click();\n System.out.println(\"Switched to One Way button\");\n }\n else if(oneWayButton.isSelected()){\n System.out.println(\"One way button is already selected\");\n roundTripButton.click();\n System.out.println(\"Switched to Round Trip button\");\n\n }\n return true;\n }",
"public void v_Verify_Guest4_Hidden(){\n\t}",
"public void v_Verify_Guest8_Displayed(){\n\t}",
"public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}",
"@Test\n public void userClicksAgree_RedirectsToRequestPickup(){\n //Validates the agree button exists\n onView(ViewMatchers.withId(R.id.button_rules_agree)).perform(click());\n\n //Checks that the Request ride page appears\n Activity mRequestRide = mInstrumentation.waitForMonitorWithTimeout(mRulesMonitor, 1000);\n Assert.assertNotNull(mRequestRide);\n }",
"public void v_Verify_Guest7_Hidden(){\n\t}",
"@Test\n public void TestNextAppNoUpcoming () {\n onView(withId(R.id.noUpcoming)).check(matches(withText(containsString(\"No Upcoming Appointments\"))));\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFiPPPoE() {\n\t\tboolean flag = oTest.checkWiFiPPPoE();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test\n @DisplayName(\"After one player makes one move, verify conditions for next player toggle\")\n void doesPlayerContinue() {\n Player player = playerService.getP1();\n Pit pit = boardService.getPitByID(0);\n Move move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertTrue(boardService.doesPlayerContinue());\n\n // For the next move, if player 1 moves from pit 1, player will not continue\n pit = boardService.getPitByID(1);\n move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertFalse(boardService.doesPlayerContinue());\n }",
"public void v_Verify_Guest12_Hidden(){\n\t}",
"public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }",
"private void allowContinueOrStop(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(false);\r\n\t\tagain.setEnabled(true);\r\n\t\tnoMore.setEnabled(true);\r\n\t\tstatusLabel.setText(\"Feeling lucky?\");\r\n\t\tupdate();\r\n\t}",
"@Override\n public void onClick(View v) {\n if(((RelapseProcessActivity)getActivity()).canProceed == true) {\n goToEmergencyGoneStep();\n }\n }"
]
| [
"0.6438048",
"0.6214393",
"0.60238546",
"0.59793466",
"0.59319645",
"0.5912778",
"0.5864866",
"0.5863645",
"0.58095026",
"0.5675305",
"0.5668384",
"0.56605095",
"0.5625777",
"0.561321",
"0.559106",
"0.55891144",
"0.5585253",
"0.5584292",
"0.55791354",
"0.55599314",
"0.5558921",
"0.55512667",
"0.55389404",
"0.5531837",
"0.5531148",
"0.55226034",
"0.55208796",
"0.551694",
"0.55144167",
"0.55062443",
"0.54948545",
"0.54804736",
"0.54779255",
"0.547026",
"0.546612",
"0.5444231",
"0.5442905",
"0.5436603",
"0.54311365",
"0.54306746",
"0.5425955",
"0.5419362",
"0.54170436",
"0.54112387",
"0.540281",
"0.5393889",
"0.53834647",
"0.53738016",
"0.53654295",
"0.5362028",
"0.5355799",
"0.53485507",
"0.53425956",
"0.5342048",
"0.53392196",
"0.53383493",
"0.5337978",
"0.53300256",
"0.5320906",
"0.529933",
"0.52985823",
"0.5297344",
"0.52885616",
"0.5284547",
"0.5263264",
"0.52579933",
"0.525189",
"0.5248179",
"0.5245498",
"0.5234575",
"0.52145475",
"0.5206748",
"0.5200596",
"0.51899564",
"0.5188204",
"0.5175767",
"0.5168213",
"0.5165207",
"0.51640856",
"0.5162053",
"0.51495254",
"0.51452",
"0.51402044",
"0.5138607",
"0.5137141",
"0.513627",
"0.5135655",
"0.5132511",
"0.5125146",
"0.5123899",
"0.5123688",
"0.5118281",
"0.511707",
"0.51102704",
"0.51099515",
"0.5097492",
"0.50907147",
"0.5089158",
"0.50880885",
"0.5085326"
]
| 0.7223062 | 0 |
Verifies the Phone verification failed message. | public void deviceAndPhonVerificationErrMsg()
{
Log.info("======== Device Verification Error Message ========");
try {
softAssert.assertTrue(verifyPhoneErrMsg.getText().contains("failed"));
softAssert.assertAll();
} catch (Exception e){}
Log.info("======== Clicking on Verification failed OK button ========");
okButton.click();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n mVerificationInProgress = false;\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n mPhoneNumberField.setError(\"Invalid phone number.\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n Snackbar.make(findViewById(android.R.id.content), \"Quota exceeded.\",\n Snackbar.LENGTH_SHORT).show();\n }\n // Show a message and update the UI\n updateUI(STATE_VERIFY_FAILED);\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n Log.d(constants.PhoneRegTag, \"Invalid Credentials\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n Log.d(constants.PhoneRegTag, \"SMS Verification Pin needed\");\n }\n }",
"@Override\n public void failure(DigitsException exception) {\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n MyProgressBar.dismiss();\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n // ...\n Toast.makeText(ForgotePasswordPhoneVerificationActivity.this, \"Invalid request\", Toast.LENGTH_LONG).show();\n\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n // ...\n Toast.makeText(ForgotePasswordPhoneVerificationActivity.this, \"The SMS quota for the project has been exceeded\", Toast.LENGTH_LONG).show();\n\n }\n\n // Show a message and update the UI\n // ...\n }",
"private void verifyPhoneNumber() {\n showSnackbar(\"Verifying Phone Number\");\n\n //Remove Social Sign-ins\n// disableViews(mBinding.imageButtonFacebook, mBinding.imageButtonGoogle);\n //Remove Login Button\n disableViews(mBinding.buttonLogin);\n\n mPhoneNumber = getTextFromTextInputLayout(mBinding.textPhoneNumber);\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n }\n\n // Show a message and update the UI\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n\n ViewDialogVerify alert = new ViewDialogVerify();\n alert.showDialog(SignIn.this, \"Verification failed. Please check mobile no.\", false);\n\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }",
"private void sendVerificationCode() {\n\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n \"+91\" + phoneNumber, // Phone number to verify\n 60, // Timeout and unit\n TimeUnit.SECONDS,\n this,\n mCallbacks\n );\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }",
"@Override\n\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(otpsignin.this,\"Something went wrong\",Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void verifyHasPhone() {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n if (code != null){\n progressBar.setVisibility(View.VISIBLE);\n System.out.println(\"PhoneAuthProvider onVerificationCompleted \"+phoneAuthCredential);\n verifyCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code=phoneAuthCredential.getSmsCode ();\n if (code != null) {\n etUIDPasscode.setText (code);\n verifyCode (code);\n }\n }",
"@Override\n\t\tpublic void onFailed(HttpResponseResult responseResult) {\n\t\t\tdismiss();\n\t\t\tMyToast.show(AccountForgetPSWActivity.this,\n\t\t\t\t\tR.string.phone_number_not_exist, Toast.LENGTH_SHORT);\n\t\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometimes the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n\n codeValues_into_views(code);\n\n stop_timer();\n //verify the code\n verifyVerificationCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n loading.setVisibility(View.VISIBLE);\n etOtp.setText(code);\n etOtp.setEnabled(false);\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n Log.d(TAG, \"onVerificationCompleted: RECEIVED OTP \"+code);\n if(code != null){\n code_received.setText(code);\n verifyCode(code);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n final String code = phoneAuthCredential.getSmsCode();\n if (code != null) {\n OTP.setText(code);\n verifyCode(code);\n }\n }",
"public String PhoneVerify() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phoneverified);\r\n\t\t\t\tStr_phoneverified = element.getText();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Str_phoneverified;\r\n\t\t\t\r\n\t\t}",
"public static void reportFailure(String message) {\n System.err.println(\"\\nData verification failed:\");\n System.err.println('\\t' + message);\n }",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n emailVerificationProgressBar.setVisibility (View.GONE);\n Toast.makeText (getContext (), e.getMessage (), Toast.LENGTH_LONG).show ();\n }",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n phoneAuthView.setVerificationCode(code);\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }",
"public void getVerified() {\n Toast.makeText(this, \"Enter your registered mobile number\", Toast.LENGTH_LONG).show();\n\n authCallback = new AuthCallback() {\n\n @Override\n public void success(DigitsSession session, final String phoneNumber) {\n\n //In case phone number gets verified.. call successMethod() function..\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }\n\n @Override\n public void failure(DigitsException exception) {\n //In case phone number isn't verified, finish() this activity displaying appropriate toast..\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }\n };\n\n Digits.clearActiveSession();\n getAuthCallback();\n AuthConfig.Builder authConfigBuilder = new AuthConfig.Builder()\n .withAuthCallBack(authCallback)\n .withPhoneNumber(\"+91\");\n Digits.authenticate(authConfigBuilder.build());\n }",
"@Override\n public void onVerificationFailed(FirebaseException e) {\n // displaying error message with firebase exception.\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n // auto verification of user.\n\n\n\n Toast.makeText(this, \"Verification Code sent!\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n // below line is used for getting OTP code\n // which is sent in phone auth credentials.\n final String code = phoneAuthCredential.getSmsCode();\n\n // checking if the code\n // is null or not.\n if (code != null) {\n // if the code is not null then\n // we are setting that code to\n // our OTP edittext field.\n // after setting this code\n // to OTP edittext field we\n // are calling our verifycode method.\n verifyCode(code);\n }\n }",
"@SmallTest\n @Test\n public void testNegotiationFailedInvalidResponse() {\n testStartNegotiation();\n\n // Received something other than the probe; it should be ignored\n mDtmfTransport.onDtmfReceived('1');\n // Super short message.\n mDtmfTransport.onDtmfReceived('A');\n mDtmfTransport.onDtmfReceived('D');\n\n verify(mCallback).onNegotiationFailed(eq(mDtmfTransport));\n }",
"@Override\n public void onFailure(Call<String> call, Throwable t) {\n dismissProgress();\n SecurityLayer.generateToken(getApplicationContext());\n com.ceva.ubmobile.core.ui.Log.debug(\"otpvalidation\", t.toString());\n //showToast(getString(R.string.error_500));\n // prog.dismiss();\n // startDashBoard();\n }",
"void telephoneValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"+391111111111\");\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"1111111111\");\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"111 1111111\");\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setTelephone(\"AAA\");\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }",
"abstract void telephoneValidity();",
"public void testInvalidNumber() {\n\t\t// Arrange\n\t\tString exceptionNumb = null;\n\t\tPhoneNumberDTO dto = new PhoneNumberDTO(INVALID_NUMBER);\n\t\tGetLastMadeCommunicationService service\n\t\t\t= new GetLastMadeCommunicationService(dto);\n\t\t\n\t\t// Act\n\t\ttry {\n\t\t\tservice.execute();\n\t\t\tfail(\"Should have thrown PhoneNumberNotValid\");\n\t\t} catch(PhoneNumberNotValid pnnv) {\n\t\t\texceptionNumb = pnnv.getNumber();\n\t\t}\n\t\t\n\t\t// Assert\n\t\tassertEquals(\"The number in the exception should be \"\n\t\t\t\t+ INVALID_NUMBER + \" but it was \" + exceptionNumb,\n\t\t\t\tINVALID_NUMBER, exceptionNumb);\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)\n {\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"public static void RegisterPhone(final Activity activity,final String phoneNumber,final Dialog dialog,final EditText input,final Button send,final Button resend,final GifImageView counter){\n smsCode = phoneVerificationId;\n\n\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n FirebaseAuthSettings firebaseAuthSettings = firebaseAuth.getFirebaseAuthSettings();\n\n// Configure faking the auto-retrieval with the whitelisted numbers.\n firebaseAuthSettings.setAutoRetrievedSmsCodeForPhoneNumber(phoneNumber, smsCode);\n\n PhoneAuthProvider phoneAuthProvider = PhoneAuthProvider.getInstance();\n phoneAuthProvider.verifyPhoneNumber(\n phoneNumber,\n 60L,\n TimeUnit.SECONDS,\n activity, /* activity */\n mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {\n @Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n // Instant verification is applied and a credential is directly returned.\n // ...\n //SignInWithPhoneAuthCredential(activity,credential,dialog,input,send,resend,counter);\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }\n\n @Override\n public void onVerificationFailed(FirebaseException e) {\n Log.e(TAG, \"Error adding document\", e);\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n Log.d(constants.PhoneRegTag, \"Invalid Credentials\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n Log.d(constants.PhoneRegTag, \"SMS Verification Pin needed\");\n }\n }\n\n @Override\n public void onCodeSent(String verificationId, PhoneAuthProvider.ForceResendingToken token) {\n phoneVerificationId = verificationId;\n resendingToken = token;\n //PhoneAuthCredential credential = PhoneAuthProvider.getCredential(phoneVerificationId,token.toString());\n //smsMessage = credential.getSmsCode();\n counter.setVisibility(View.GONE);\n input.setVisibility(View.VISIBLE);\n input.requestFocus();\n send.setVisibility(View.VISIBLE);\n resend.setVisibility(View.VISIBLE);\n // The SMS verification code has been sent to the provided phone number, we\n // now need to ask the user to enter the code and then construct a credential\n //and then execute your method if number entered is correct.\n }\n\n\n });\n\n }",
"public void forgotPasswordValidate()\r\n\t{\n\t\tString expectedMessage = \"An email with a confirmation link has been sent your email address.\";\r\n\t\tString actualMessage=this.forgotPasswordSuccessMessage.getText();\r\n\t\tAssert.assertEquals(expectedMessage,actualMessage);\r\n\t}",
"public boolean testVerify(byte[] message)\n {\n return false;\n }",
"private void showVerificationDialog(String phoneNumber) {\n\t\tnew AlertDialog.Builder(this)\n\t\t\t\t.setTitle(R.string.phoneVerification_confirmTitle)\n\t\t\t\t.setMessage(getString(R.string.phoneVerification_confirmText, phoneNumber))\n\t\t\t\t.setPositiveButton(R.string.app_yes, (dialog, which) -> requestVerificationCode(phoneNumber))\n\t\t\t\t.setNegativeButton(R.string.app_no, (dialog, which) -> phoneInput.getEditText().selectAll())\n\t\t\t\t.show();\n\t}",
"public static String validMessage(String phoneNumber) {\n if(!isValidPhoneNumber(phoneNumber)) {\n return \"Phone number is not valid\";\n }\n return null;\n }",
"@Override\n\tpublic void setMyPhoneError() {\n\t\t\n\t}",
"void showAlertForInvalidNumber();",
"private void verifyCode() {\n com.explara_core.login.LoginScreenManager.getInstance().verifyCode(getActivity().getApplicationContext(), mCode, mEmail, new com.explara_core.login.LoginScreenManager.VerifyCodeListener() {\n @Override\n public void onCodeVerified(com.explara_core.login.login_dto.LoginResponseDto loginResponse) {\n if (getActivity() != null && loginResponse != null) {\n if (loginResponse.status.equals(Constants.STATUS_ERROR)) {\n //Constants.createToastWithMessage(this, response.getMessage());\n mMaterialProgressDialog.dismiss();\n AppUtility.createSnackWithMessage(getActivity().findViewById(R.id.forgot_verification_activity_relative_layout), loginResponse.message);\n } else {\n mMaterialProgressDialog.dismiss();\n mMaterialAlertDialog = new MaterialDialog.Builder(getActivity())\n .title(\"Alert\")\n .content(loginResponse.message)\n .positiveText(\"Ok\")\n .positiveColor(Color.RED)\n .negativeColor(Color.GRAY)\n .callback(new MaterialDialog.ButtonCallback() {\n @Override\n public void onPositive(MaterialDialog dialog) {\n super.onPositive(dialog);\n // navigate to login screen\n navigateToResetPage();\n }\n\n @Override\n public void onNegative(MaterialDialog dialog) {\n super.onNegative(dialog);\n }\n })\n .show();\n\n }\n }\n }\n\n @Override\n public void onCodeVerifyFailed() {\n if (getActivity() != null) {\n mMaterialProgressDialog.dismiss();\n Toast.makeText(getActivity(), \"Oops! Could not verify the code.\", Toast.LENGTH_SHORT).show();\n }\n }\n }, TAG);\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"TAG\", \"smsRetrieverCall FAIL\");\n result.setText(\"Retriever start Fail\");\n }",
"@Override\n public void done(BmobException ex) {\n if(ex==null){//短信验证码已验证成功\n Log.i(\"smile\", \"验证通过\");\n }else{\n Log.i(\"smile\", \"验证失败:code =\"+ex.getErrorCode()+\",msg = \"+ex.getLocalizedMessage());\n if(ex.getErrorCode()==207){\n Toast.makeText(RegisterActivity.this,\"验证码错误\",Toast.LENGTH_SHORT).show();\n }\n }\n }",
"public void verificationFor2fa() throws MessagingException, IOException {\n\t\tverifyMailPage engine2fa = new verifyMailPage(driver);\n\t\tengine2fa.clickSendBackupCodeToMail();\n\t\tString recoveryCode =engine2fa.goToRecoveryCodeMail();\n\t\tengine2fa.enterRecoveryCode(recoveryCode);\n\t\tengine2fa.clickSubmit();\n\t}",
"@Test\n public void testCantRegisterMismatchPassword() {\n enterValuesAndClick(\"name\", \"[email protected]\", \"123456\", \"123478\");\n checkErrors(nameNoError, emailNoError, pwdsDoNotMatchError, pwdsDoNotMatchError);\n }",
"public boolean verifyFailure() {\r\n return driver.findElement(failMsg).isDisplayed();\r\n }",
"@Test\n public void invalidCaleeNumber(){\n PhoneCall call = new PhoneCall(\"503-449-7833\", \"ABCD\", \"01/01/2020\", \"1:00 am\", \"01/01/2020\", \"1:00 am\");\n assertThat(call.getCallee(), not(nullValue()));\n }",
"public void Verify(View view) {\n try {\n if (!appsingleton.isvalidateLength(et_username,6)) {\n tv_validationtext.setText(getResources().getString(R.string.st_errorOtplength));\n rl_validation.setVisibility(View.VISIBLE);\n tv_validationtext.startAnimation(appsingleton.shake_animation);\n return;\n }\n else\n {\n rl_validation.setVisibility(View.GONE);\n }\n\n if (AppUtils.isNetworkAvailable(this)) {\n new OTPVerification(et_username.getText().toString()).execute();\n\n }//end of network if\n else\n {\n appsingleton.SnackbarMessage(getResources().getString(R.string.st_internet_error),\"\",et_username);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public final boolean checkPhoneNum() {\n EditText editText = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText, \"etPhoneNum\");\n CharSequence text = editText.getText();\n if (text == null || text.length() == 0) {\n showMsg(\"请输入手机号\");\n return false;\n }\n EditText editText2 = (EditText) _$_findCachedViewById(R.id.etPhoneNum);\n Intrinsics.checkExpressionValueIsNotNull(editText2, \"etPhoneNum\");\n if (editText2.getText().length() == 11) {\n return true;\n }\n showMsg(\"请输入正确的手机号\");\n return false;\n }",
"public static boolean checkPhoneNumber (String phoneNumber) throws UserRegistrationException{\n check = Pattern.compile(\"^[0-9]{1,3} [0-9]{10}$\").matcher(phoneNumber).matches();\n if (check) {\n return true;\n } else {\n throw new UserRegistrationException(\"Enter a valid Phone number\");\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n otp = credential.getSmsCode();\n pinEntered.setText(otp);\n signInWithPhoneAuthCredential(credential);\n }",
"public void resendVerificationEmail(){\n progressDialog.setMessage(\"Please wait...\");\n progressDialog.show();\n mAuth.getCurrentUser().sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n alertDialogBuilderSentSuccessMessage(SignInActivity.this);\n Toast.makeText(SignInActivity.this,\"Sent email successfully.\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(SignInActivity.this,task.getException().getLocalizedMessage(),Toast.LENGTH_LONG).show();\n }\n\n progressDialog.dismiss();\n }\n });\n }",
"@Override\n public void onRegistrationFail(RegistrationResponse response) {\n StringBuilder errorMsg = new StringBuilder();\n if (null != response.getErrors() && response.getErrors().size() > 0) {\n for (Error e : response.getErrors()) {\n\n if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG001.toString())) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG002.toString())) {\n signUpBinding.txtUserName.setErrorEnabled(true);\n signUpBinding.txtUserName.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG003.toString())) {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG004.toString())) {\n signUpBinding.txtPassword.setErrorEnabled(true);\n signUpBinding.txtPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG005.toString())) {\n signUpBinding.txtConfPassword.setErrorEnabled(true);\n signUpBinding.txtConfPassword.setError(e.getMessage());\n\n } else if (e.getCode().equalsIgnoreCase(ERROR_CODE.REG006.toString())) {\n\n if (signUpBinding.txtUserId.isErrorEnabled() && signUpBinding.txtUserId.getError().toString().equalsIgnoreCase(getString(R.string.user_id_already))) {\n signUpBinding.txtUserId.setErrorEnabled(true);\n signUpBinding.txtUserId.setError(getString(R.string.user_id_already));\n } else {\n signUpBinding.txtEmailId.setErrorEnabled(true);\n signUpBinding.txtEmailId.setError(e.getMessage());\n }\n\n } else {\n errorMsg.append(e.getMessage()).append(\"\\n\");\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }\n } else {\n errorMsg.append(getString(R.string.server_error));\n signUpBinding.txtError.setText(errorMsg);\n signUpBinding.txtError.setVisibility(View.VISIBLE);\n }\n }",
"private String verifyAccount(String number){\n\t\t\n\t\tif(databaseAccess.verifyAccountNumber(number) == true){\n\t\t\t\n\t\t\tthis.examinedAccount = databaseAccess.getAccountByNumber(number);\n\t\t\t\n\t\t\treturn \"ok\";\n\t\t}\n\t\t\n\t\treturn Languages.getMessages().get(chosenLanguage).get(\"wrongCard\");\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n Log.d(TAG, \"onVerificationCompleted:\" + phoneAuthCredential);\n mVerificationInProgress = false;\n\n // Update the UI and attempt sign in with the phone credential\n updateUI(STATE_VERIFY_SUCCESS, phoneAuthCredential);\n signInWithPhoneAuthCredential(phoneAuthCredential);\n }",
"public void successMethod(final String phoneNumber) {\n Toast.makeText(ForgotPassword.this, \"Phone Number Verified Successfully..\", Toast.LENGTH_SHORT).show();\n\n //Check if new entered password (while typing) is of minimum 6 characters or not..\n newPassword.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n //New password should be min of 6 chars..\n int length = newPassword.getText().toString().length();\n if (length < 6) {\n\n //If length<6, display error message..\n newPassword.setError(\"Minimum 6 characters required\");\n } else {\n\n //Else erase the error message..\n newPassword.setError(null);\n }\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n\n }\n });\n\n //When reset password is pressed..\n reset.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //Get new password and call changePassword api to change it for the current user..\n text = newPassword.getText().toString();\n\n //If length<6, show error message..\n if (text.length() < 6) {\n newPassword.setError(\"Minimum 6 characters required\");\n } else {\n //Else call changePassword api..\n\n //Required for https connection..\n ConstantsDefined.updateAndroidSecurityProvider(ForgotPassword.this);\n ConstantsDefined.beforeVolleyConnect();\n\n //Initialise requestQueue instance and url to be connected to for Volley connection..\n requestQueue = Volley.newRequestQueue(getApplicationContext());\n String url = ConstantsDefined.api + \"changePassword\";\n\n //While api is being connected to, display apppropriate dialog box..\n dialog = new ProgressDialog(ForgotPassword.this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(\"Changing your password. Please wait...\");\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n dialog.show();\n\n //Make a request..\n StringRequest stringRequest = new StringRequest(Request.Method.POST,\n url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //Dismiss dialog box on successful response..\n if (dialog != null)\n dialog.dismiss();\n\n //On getting the response..\n try {\n\n //Parse the login response..\n HashMap<String, String> mapper = MiscellaneousParser.changePasswordParser(response);\n\n //Finish activity with desired toast message (whether success or failure)..\n if (mapper.get(\"success\").equals(\"true\")) {\n Toast.makeText(ForgotPassword.this, mapper.get(\"message\"), Toast.LENGTH_SHORT).show();\n finish();\n }else{\n Toast.makeText(ForgotPassword.this, \"Something went wrong..\\nPlease try again..\", Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //In case the connection to the Api couldn't be established..\n\n //Dismiss the dialog box..\n if (dialog != null)\n dialog.dismiss();\n\n //Display appropriate toast message depending upon internet connectivity was a reason for failure or something else..\n if(ConstantsDefined.isOnline(ForgotPassword.this)){\n Toast.makeText(ForgotPassword.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(ForgotPassword.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }\n }) {\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n //Put all the required parameters for the post request..\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"mobileNumber\", phoneNumber.substring(3));\n params.put(\"newPassword\", text);\n return params;\n }\n };\n requestQueue.add(stringRequest);\n }\n }\n });\n }",
"void onValidationFailed();",
"private void validatePassword() {\n mPassWordValidator.processResult(\n mPassWordValidator.apply(binding.registerPassword.getText().toString()),\n this::verifyAuthWithServer,\n result -> binding.registerPassword.setError(\"Please enter a valid Password.\"));\n }",
"@Override\n public void onClick(View v) {\n String phoneNumber=PhoneNumberEdit.getText().toString();\n\n //if you don't write anything on pone number\n if (PhoneNumberEdit.getText().toString().isEmpty())\n {\n //setting error\n PhoneNumberEdit.setError(\"Phone number is EMPTY \");\n PhoneNumberEdit.requestFocus();\n\n }\n //if the phone number length didn't match with indian std\n else if (PhoneNumberEdit.getText().toString().length()!=10)\n {\n //setting the error\n PhoneNumberEdit.setError(\"The number you entered didn't have 10 digit \");\n PhoneNumberEdit.requestFocus();\n }\n else\n {\n\n //if those two are ok then this happen\n //phone authentication in authentication firebase\n PhoneAuthOptions options=PhoneAuthOptions.newBuilder(mAuth)\n //giving the phone number to send otp\n .setPhoneNumber(\"+91\"+phoneNumber)\n //setting the timer\n .setTimeout(60L, TimeUnit.SECONDS)\n //setting activity\n .setActivity(MainActivity.this)\n //callback function to know we get the response\n .setCallbacks(mCallBacks)\n //build it\n .build();\n\n //passing the object of phone auth options\n PhoneAuthProvider.verifyPhoneNumber(options);\n\n }\n\n }",
"private boolean isPhoneValid(String phoneno) {\n return phoneno.length() > 9;\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n mVerificationInProgress = false;\n Toast.makeText(PhoneActivity.this,\"Verification Complete\",Toast.LENGTH_SHORT).show();\n dialog.setMessage(\"Logging you in..\");\n dialog.show();\n signInWithPhoneAuthCredential(credential);\n }",
"@Override\r\n\tpublic void onFinishGetVerifyCode(int reg17FoxReturn) {\n\r\n\t\tswitch (reg17FoxReturn) {\r\n\t\tcase 103:\r\n\t\t\tdisplayRegisterResult(\"authKey出错\");\r\n\t\t\tbreak;\r\n\t\tcase 104:\r\n\t\t\tdisplayRegisterResult(\"参数不全\");\r\n\t\t\tbreak;\r\n\t\tcase 105:\r\n\t\t\tdisplayRegisterResult(\"手机格式错误\");\r\n\t\t\tbreak;\r\n\t\tcase 106:\r\n\t\t\tdisplayRegisterResult(\"此手机号已经注册\");\r\n\t\t\tbreak;\r\n\t\tcase 107:\r\n\t\t\tdisplayRegisterResult(\"此手机号不存在\");\r\n\t\t\tbreak;\r\n\t\tcase 108:\r\n\t\t\tToast.makeText(this, \"验证短信稍后发送到您手机\", Toast.LENGTH_LONG).show();\r\n\t\t\tbreak;\r\n\t\tcase 109:\r\n\t\t\tdisplayRegisterResult(\"短信发送失败\");\r\n\t\t\tbreak;\r\n\t\tcase 110:\r\n\t\t\tdisplayRegisterResult(\"短信验证码超时,请重新获取验证码\");\r\n\t\t\tbreak;\r\n\t\tcase 111:\r\n\t\t\tdisplayRegisterResult(\"短信验证码不正确\");\r\n\t\t\tbreak;\r\n\t\tcase 112:\r\n\t\t\tdisplayRegisterResult(\"短信验证通过\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tdisplayRegisterResult(\"服务器内部错误\");\r\n\t\t}\r\n\t\tenableYzBtnHandler.sendEmptyMessageDelayed(1, 1000);\r\n\t}",
"public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n\n signInWithPhoneAuthCredential(credential);\n }",
"@Override\n public void done(Integer smsId, BmobException ex) {\n if (ex == null) {//验证码发送成功\n show(\"发送成功!\");\n } else {\n show(\"发送失败!\");\n }\n }",
"public void validateVerifyCode(String lang) {\n if (StringUtils.isBlank(this.verifyCode))\n throw new ValidateException(new ErrorEntity(ErrorCode.INVALID, lang));\n }",
"private boolean isValidPhoneNumber(String phoneNumber) {\r\n System.out.println(\"Inside a valid phone number and number is\" + phoneNumber);\r\n return Pattern.matches(phoneNumberRegex, phoneNumber);\r\n }",
"@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n progress.hide();\n\n\n try {\n JSONObject resultJson = new JSONObject(result);\n if (resultJson.getString(\"code\").trim().contentEquals(\"200\")) {\n final AlertDialog.Builder builder1 = new AlertDialog.Builder(\n activity);\n final View view = activity.getLayoutInflater().inflate(R.layout.verify_dialog, null, false);\n builder1.setView(view);\n builder1.setTitle(\"Mobile Verification Code\");\n\n builder1.setCancelable(false);\n builder1.setPositiveButton(\"verify\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n\n String otpCode = ((EditText) view.findViewById(R.id.otp_code_edit_text)).getText().toString();\n new VerifyUserAsyncTask(activity).execute(otpCode);\n\n dialog.cancel();\n //activity.finish();\n }\n });\n AlertDialog alert11 = builder1.create();\n alert11.show();\n\n IntentFilter intentFilter = new IntentFilter(\"SmsMessage.intent.MAIN\");\n BroadcastReceiver receiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n String msg = intent.getStringExtra(\"get_msg\");\n\n //Process the sms format and extract body & phoneNumber\n msg = msg.replace(\"\\n\", \"\");\n String message = msg.substring(msg.lastIndexOf(\":\") + 1, msg.length());\n Log.d(\"Received Message Body :\", message.toString());\n\n StringTokenizer tokens = new StringTokenizer(message, \".\");\n tokens.nextToken();\n tokens.nextToken();\n tokens.nextToken();\n // this will contain \"Your Aptamitra verification code is\"\n String code = tokens.nextToken();// this will contain \"XXXX\"\n tokens.nextToken();// this will contain \"for any query visit aptamitra.in\"\n ((EditText) view.findViewById(R.id.otp_code_edit_text)).setText(code);\n Log.d(\"otp:\", code);\n\n\n }\n };\n\n activity.registerReceiver(receiver, intentFilter);\n\n\n } else if (resultJson.getString(\"code\").trim().contentEquals(\"505\")) {\n AlertDialog.Builder builder1 = new AlertDialog.Builder(\n activity);\n builder1.setMessage(\"User already exists!\");\n builder1.setCancelable(true);\n builder1.setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n activity.finish();\n }\n });\n AlertDialog alert11 = builder1.create();\n alert11.show();\n } else {\n AlertDialog.Builder builder1 = new AlertDialog.Builder(\n activity);\n builder1.setMessage(\"Registration failed.Try Again\");\n builder1.setCancelable(true);\n builder1.setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n activity.finish();\n }\n });\n AlertDialog alert11 = builder1.create();\n alert11.show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n // Toast.makeText(activity, result, Toast.LENGTH_SHORT).show();\n\n\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onFailed(String failReason) {\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"return Error\");\r\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"failReason:\" + failReason);\r\n\t\t\t\t\t\t\tpayResult.SetData(AttName.PAY_RESULT, \"0\");\r\n\t\t\t\t\t\t\tpayResult.SetData(AttName.PAY_RESULT_REASON, \"PAY_FAIL\");\r\n\t\t\t\t\t\t\tnotify.Pay(payResult.DataToString());\r\n\t\t\t\t\t\t}",
"@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }",
"private boolean checkValidation(Reset reset, String confirmPassword) {\n if (reset.getPassword().isEmpty()) {\n mValidateLiveData.setValue(new FailureResponse(\n AppConstants.UIVALIDATIONS.NEW_PASSWORD_EMPTY, ResourceUtils.getInstance()\n .getString(R.string.new_password_empty)\n ));\n return false;\n } else if (reset.getPassword().length() < 6) {\n mValidateLiveData.setValue(new FailureResponse(\n AppConstants.UIVALIDATIONS.INVALID_PASSWORD, ResourceUtils.getInstance()\n .getString(R.string.enter_valid_password)\n ));\n return false;\n } else if (confirmPassword.isEmpty()) {\n mValidateLiveData.setValue(new FailureResponse(\n AppConstants.UIVALIDATIONS.CONFIRM_PASSWORD_EMPTY, ResourceUtils.getInstance()\n .getString(R.string.confirm_password_empty)\n ));\n return false;\n } else if (confirmPassword.length() < 6) {\n mValidateLiveData.setValue(new FailureResponse(\n AppConstants.UIVALIDATIONS.INVALID_PASSWORD, ResourceUtils.getInstance()\n .getString(R.string.enter_valid_password)\n ));\n return false;\n\n } else if (!reset.getPassword().equals(confirmPassword)) {\n mValidateLiveData.setValue(new FailureResponse(\n AppConstants.UIVALIDATIONS.PASSWORD_NOT_MATCHED, ResourceUtils.getInstance()\n .getString(R.string.password_not_matched)\n ));\n return false;\n }\n return true;\n }",
"@Nullable\n/* */ protected String getFailedValidationText(@NotNull ConversationContext context, @NotNull Number invalidInput) {\n/* 87 */ return null;\n/* */ }",
"private boolean checkPhoneStatusOK() {\n return true;\n }",
"public static String validPhone(String message){\n boolean success = false;\n String line = \"\";\n do {\n line = readLine(message).trim();\n success = checkPhoneNumber(line);\n if (!success)\n System.out.println(\"Debes introducir un número de teléfono válido... \");\n } while(!success);\n return line;\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n final Bundle bundle = intent.getExtras();\n boolean verify=false;\n try {\n if (bundle != null) {\n final Object[] pdusObj = (Object[]) bundle.get(\"pdus\");\n for (int i = 0; i < pdusObj.length; i++) {\n SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);\n String message = currentMessage.getDisplayMessageBody();\n\n String[] inputSplitNewLine = message.split(\"\\\\n\");\n for (int j = 0; j < inputSplitNewLine.length; j++) {\n System.out.println(inputSplitNewLine[j]);\n if (inputSplitNewLine[j].contains(\"Your Zaparound verification code is\")) {\n String verifyCode = inputSplitNewLine[j].replaceAll(\"[^0-9]\", \"\");\n et_username.setText(verifyCode);\n verify=true;\n //Verify(new View(VerificationActivity.this));\n break;\n }\n }//end of for\n }//end of for\n if(verify)\n Verify(new View(VerificationActivity.this));\n }\n } catch (Exception e) {\n Log.e(\"SmsReceiver\", \"Exception smsReceiver\" + e);\n }\n }",
"public boolean verify();",
"private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }",
"boolean checkVerification();",
"String getFailureMessage();",
"private void verifyCode(String code) {\n // below line is used for getting getting\n // credentials from our verification id and code.\n PhoneAuthCredential credential = PhoneAuthProvider.getCredential(verificationId, code);\n\n // after getting credential we are\n // calling sign in method.\n signInWithCredential(credential);\n }",
"@Test(expected = ValidationException.class)\n public void phoneAndEmailMissing() throws Exception {\n attendee.setPhoneNumber(null);\n attendee.setEmail(null);\n validator.validate(attendee);\n }",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"public void receiveResultterminal_Code_Verify(\n com.xteam.tourismpay.PFTMXStub.Terminal_Code_VerifyResponse result) {\n }",
"private boolean validate(){\n\n String MobilePattern = \"[0-9]{10}\";\n String name = String.valueOf(userName.getText());\n String number = String.valueOf(userNumber.getText());\n\n\n if(name.length() > 25){\n Toast.makeText(getApplicationContext(), \"pls enter less the 25 characher in user name\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n\n\n\n else if(name.length() == 0 || number.length() == 0 ){\n Toast.makeText(getApplicationContext(), \"pls fill the empty fields\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n\n else if(number.matches(MobilePattern))\n {\n\n return true;\n }\n else if(!number.matches(MobilePattern))\n {\n Toast.makeText(getApplicationContext(), \"Please enter valid 10\" +\n \"digit phone number\", Toast.LENGTH_SHORT).show();\n\n\n return false;\n }\n\n return false;\n\n }",
"@Override\n\tpublic boolean hasError() {\n\t\treturn super.hasError() || (answerCode != null && answerCode == GeneralAnswerCode.FAIL);\n\t}",
"private void signalInvalidPassword() {\r\n passText.setBackgroundColor(ContextCompat.getColor(this, R.color.errorBackground));\r\n Toast.makeText(this, \"The password was incorrect!\", Toast.LENGTH_SHORT).show();\r\n }",
"@Override\n public void onFailure(Call<org.tsofen.ourstory.model.api.User> call, Throwable t) {\n passErrorText.setVisibility(View.VISIBLE);\n passErrorText.setText(\"The password you've entered is incorrect\");\n }",
"private boolean isValidNumber() {\n String mobileNumber = ((EditText) findViewById(\n R.id.account_mobile_number_edit_text)).getText().toString();\n\n return PhoneNumberUtils.isValidMobileNumber(PhoneNumberUtils.formatMobileNumber(mobileNumber));\n }",
"@Override\n\n public void onCodeSent(String verificationId,\n PhoneAuthProvider.ForceResendingToken token) {\n\n Toast.makeText(otpsignin.this, verificationId, Toast.LENGTH_SHORT).show();\n\n Log.d(TAG, \"onCodeSent:\" + verificationId);\n\n Toast.makeText(otpsignin.this,\"On code sent meathod\",Toast.LENGTH_SHORT).show();\n\n // Save verification ID and resending token so we can use them later\n\n btntype=1;\n\n\n mVerificationId = verificationId;\n\n mResendToken = token;\n\n btnOTP.setText(\"Verify code\");\n\n // ...\n }"
]
| [
"0.7106476",
"0.6994624",
"0.6834473",
"0.6793984",
"0.6687532",
"0.66637313",
"0.6662351",
"0.64182734",
"0.64182734",
"0.64182734",
"0.6401836",
"0.63522154",
"0.6327407",
"0.6293969",
"0.62734735",
"0.6270848",
"0.62547886",
"0.624159",
"0.624159",
"0.624159",
"0.624159",
"0.6232944",
"0.6201171",
"0.61700517",
"0.61483043",
"0.6123499",
"0.60133",
"0.6002719",
"0.59956855",
"0.59750366",
"0.59656143",
"0.5938279",
"0.59084445",
"0.58659893",
"0.58637476",
"0.5858013",
"0.58429486",
"0.58405006",
"0.57459915",
"0.57067555",
"0.5638024",
"0.5610947",
"0.5572638",
"0.55623275",
"0.55565053",
"0.5528371",
"0.5523497",
"0.5509053",
"0.5498157",
"0.5472475",
"0.5456699",
"0.54363894",
"0.54232407",
"0.54051864",
"0.5349018",
"0.5341783",
"0.5333125",
"0.53155935",
"0.52600414",
"0.5255853",
"0.5255768",
"0.52459747",
"0.52407616",
"0.52403224",
"0.52378756",
"0.5234336",
"0.522896",
"0.5223671",
"0.5220237",
"0.52058923",
"0.51932853",
"0.5180155",
"0.5166739",
"0.5155593",
"0.5149263",
"0.5134683",
"0.5130585",
"0.5126702",
"0.5121122",
"0.51204455",
"0.51187164",
"0.5100343",
"0.5094269",
"0.5090005",
"0.5076714",
"0.5072521",
"0.5069621",
"0.50635904",
"0.50627303",
"0.5059805",
"0.5056466",
"0.50461954",
"0.50413877",
"0.50374913",
"0.5035304",
"0.5034634",
"0.5033485",
"0.5031319",
"0.5028091",
"0.50279254"
]
| 0.66745377 | 5 |
Waits for phone verification page to occur. | public void waitForPhoneVerification()
{
String xp="//android.widget.TextView[contains(@text,'Verify')]";
try
{
new WebDriverWait(driver, 40).until(ExpectedConditions.visibilityOf(phoneVerificationIdentifier));
}
catch(Exception e)
{
Assert.fail("Phone Verification page not found\n"+e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Step\n public void waitUntilSmsCodeWillBeSent(){\n Utils.waitABit(3);\n actionWithWebElements.waitVisibilityOfElement(confirmationCodeFromSmsHeader);\n actionWithWebElements.waitVisibilityOfElement(confirmationSmsCodeInput);\n }",
"public void getVerified() {\n Toast.makeText(this, \"Enter your registered mobile number\", Toast.LENGTH_LONG).show();\n\n authCallback = new AuthCallback() {\n\n @Override\n public void success(DigitsSession session, final String phoneNumber) {\n\n //In case phone number gets verified.. call successMethod() function..\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }\n\n @Override\n public void failure(DigitsException exception) {\n //In case phone number isn't verified, finish() this activity displaying appropriate toast..\n Toast.makeText(ForgotPassword.this, \"Couldn't verify phone number\", Toast.LENGTH_SHORT).show();\n finish();\n }\n };\n\n Digits.clearActiveSession();\n getAuthCallback();\n AuthConfig.Builder authConfigBuilder = new AuthConfig.Builder()\n .withAuthCallBack(authCallback)\n .withPhoneNumber(\"+91\");\n Digits.authenticate(authConfigBuilder.build());\n }",
"private void sendVerificationCode(String phone_number){\n Log.d(TAG, \"sendVerificationCode: SENDING OTP\");\n progressBar.setVisibility(View.VISIBLE);\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n phone_number,\n 60,\n TimeUnit.SECONDS,\n TaskExecutors.MAIN_THREAD,\n mCallBack\n );\n }",
"public void waitForVerifyHhsPage() {\n verifyHHSPageElement.waitForState().enabled(30);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n if (code != null){\n progressBar.setVisibility(View.VISIBLE);\n System.out.println(\"PhoneAuthProvider onVerificationCompleted \"+phoneAuthCredential);\n verifyCode(code);\n }\n }",
"private void sendVerificationCode() {\n\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n \"+91\" + phoneNumber, // Phone number to verify\n 60, // Timeout and unit\n TimeUnit.SECONDS,\n this,\n mCallbacks\n );\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n mVerificationInProgress = false;\n Toast.makeText(PhoneActivity.this,\"Verification Complete\",Toast.LENGTH_SHORT).show();\n dialog.setMessage(\"Logging you in..\");\n dialog.show();\n signInWithPhoneAuthCredential(credential);\n }",
"@Override\n public void onVerifyPhoneNumberSuccessfully(PhoneVerification verification) {\n// if (BuildConfig.DEBUG){// TODO: 26/10/2017 this hard code should be removed later\n// gotoPhoneSignInScreen();\n// return;\n// }\n if (verification.isExists){\n gotoPhoneSignInScreen();\n }else{\n showConfirmDialog(verification.otpToken);\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n loading.setVisibility(View.VISIBLE);\n etOtp.setText(code);\n etOtp.setEnabled(false);\n Toast.makeText(OTPActivity.this, \"Reached here\", Toast.LENGTH_SHORT).show();\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"@Override\n public void onClick(View view) {\n\n String numberPhone = inputPhoneNumEt.getText().toString();\n if(TextUtils.isEmpty(numberPhone)){\n showToastMessage(\"phone number required!\");\n }else{\n //loading bar put here\n ///...\n // [START start_phone_auth]\n PhoneAuthProvider.getInstance().verifyPhoneNumber(\n numberPhone, // Phone number to verify\n 60, // Timeout duration\n TimeUnit.SECONDS, // Unit of timeout\n PhoneLoginActivity.this, // Activity (for callback binding)\n mCallbacks); // OnVerificationStateChangedCallbacks\n // [END start_phone_auth]\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometimes the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n\n codeValues_into_views(code);\n\n stop_timer();\n //verify the code\n verifyVerificationCode(code);\n }\n }",
"@Override\n\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n\n\n Toast.makeText(otpsignin.this,\"Code send to your phone\",Toast.LENGTH_SHORT).show();\n\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"public void waitForPageToLoad() {\n\t\ttry {\n\t\t\twait.until(new ExpectedCondition<Boolean>() {\n\t\t\t\tpublic Boolean apply(WebDriver wd) {\n\t\t\t\t\treturn isPageLoaded(verificationPoints());\n\t\t\t\t}\n\t\t\t});\n\t\t} \n\t\tcatch (TimeoutException timeOutException) {\n\t\t\tthrow new AssertionError(this.getClass().getSimpleName() + \" is not verified. Missing \" + returnMissingElements(verificationPoints()));\n\t\t}\n\t}",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n // auto verification of user.\n\n\n\n Toast.makeText(this, \"Verification Code sent!\", Toast.LENGTH_SHORT).show();\n }",
"public void waitForTransfer() {\n\t\tWebDriverUtil.waitForElementVisible(driver, redirectTimer, 10);\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\t\tLOG.info(\"waiting to be transferred to merchant site...\");\n\t\twait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"transfer-success\")));\n\t\tLOG.info(\"done waiting\"); \n\t}",
"public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }",
"public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//android.widget.TextView[contains(@text,'Verify')]\")));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Verify Phone page not found\"+e.getMessage());\n\t\t}\n\t\t\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\tif(pageTitle.getText().contains(\"Device\"))\n\t\t{\t\t\t\n\t\t\tLog.info(\"== Verify Device page found instead of Verify Phone page ==\"); \t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click();\n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \t\t\n\t\t\n\t\tnew WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button1\"))\n\t\t{\t\n\t\t\tchecker.click();\n\t\t\t\n\t\t\tnew WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tif(checker.getText().contains(\"OK\") && checker.getAttribute(\"resourceId\").contains(\"button2\")) return;\t// LGN_05 will verify this\t\n\t\t\n\t\t//gotoHome();\tNo need to go to Home since Error messages and skip buttons need to be validated\t\n\t}",
"private void sendVerificationCode(String number) {\n PhoneAuthOptions options =\n PhoneAuthOptions.newBuilder(mAuth)\n .setPhoneNumber(number) // Phone number to verify\n .setTimeout(60L, TimeUnit.SECONDS) // Timeout and unit\n .setActivity(this) // Activity (for callback binding)\n .setCallbacks(mCallBack) // OnVerificationStateChangedCallbacks\n .build();\n PhoneAuthProvider.verifyPhoneNumber(options);\n }",
"public static void waitForPageLoad() {\n\n\t\tif (!WebController.driver.getCurrentUrl().contains(\"uhc.com/dashboard\") && !WebController.driver.getCurrentUrl().contains(\"myuhc.com/member/\") && !WebController.driver.getCurrentUrl().contains(\"=securityQuestion\")) {\n\t\t\tWaitForLoadingOverlay();\n\t\t}\n\n\t\tJavascriptExecutor js = null;\n\t\tfor (int i = 0; i < AppConfiguration.getWaitTime(); i++) {\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tjs = (JavascriptExecutor) WebController.driver;\n\t\t\tif (js.executeScript(\"return document.readyState\").toString().equals(\"complete\"))\n\t\t\t\tbreak;\n\n\t\t}\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n\n signInWithPhoneAuthCredential(credential);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }",
"private void startOTPVerificationProcess() {\n enableViews(mBinding.textOtpHeading, mBinding.editOtp, mBinding.buttonResendOtp, mBinding.buttonChangeNumber, mBinding.buttonVerifyOtp);\n disableViews(mBinding.progressBar);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential)\n {\n signInWithPhoneAuthCredential(phoneAuthCredential);\n\n }",
"private void verifyPhoneNumber() {\n showSnackbar(\"Verifying Phone Number\");\n\n //Remove Social Sign-ins\n// disableViews(mBinding.imageButtonFacebook, mBinding.imageButtonGoogle);\n //Remove Login Button\n disableViews(mBinding.buttonLogin);\n\n mPhoneNumber = getTextFromTextInputLayout(mBinding.textPhoneNumber);\n PhoneAuthOptions authOptions = PhoneAuthOptions.newBuilder(mFirebaseAuth)\n .setPhoneNumber(getString(R.string.country_code) + mPhoneNumber)\n .setTimeout(60L, TimeUnit.SECONDS).setActivity(this).setCallbacks(mCallBacks).build();\n\n PhoneAuthProvider.verifyPhoneNumber(authOptions);\n }",
"@Override\n protected void waitThePageToLoad() {\n WaitUtils.waitUntil(driver, ExpectedConditions.visibilityOf(driver\n .findElement(By.xpath(SEARCH_XPATH))));\n }",
"public void loginWithPersonalDeviceWithSkip()\n\t{\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click(); \n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \tor Verify Failed popup\n\t\t\n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\t\t// 60 + 30 sec taken by try catch \n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\t\n\t\t\tGeneric.wait(2);\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e.getMessage());\n\t\t\t\n\t\t\t/*Log.info(\"======== Page taking too much time to load , trying to click on Lets Login by cancelling phone verification ========\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\tverifyAbortButton.click();\n\t\t\t\tgotoHome();\t\n\t\t\t\treturn;\t\n\t\t\t}\n\t\t\tcatch(Exception e1)\n\t\t\t{\n\t\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e1.getMessage());\n\t\t\t}*/\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\t// ==== Handle Verify Phone Authentication failed alert ==== //\n\t\tif (checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button2\"))\n\t\t{\n\t\t\tLog.info(\"======== Skipping Phone verification ========\");\n\t\t\tdriver.findElement(By.id(\"button2\")).click();\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tcontinueButton.click();\t\n\t\t\tGeneric.wait(5);\n\t\t\treturn;\t// goto to VerifyDevice Page from verifyLogin() method\t\t\n\t\t}\t\t\t\n\t\tgotoHome();\t\t\n\t}",
"protected void waitThePageToLoad() {\n ExpectedCondition pageLoadCondition = new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver driver) {\n return ((JavascriptExecutor) driver).executeScript(\"return document.readyState\").equals(\"complete\");\n }\n };\n WaitUtils.waitUntil(driver, pageLoadCondition);\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n Log.d(TAG, \"onVerificationCompleted:\" + phoneAuthCredential);\n mVerificationInProgress = false;\n\n // Update the UI and attempt sign in with the phone credential\n updateUI(STATE_VERIFY_SUCCESS, phoneAuthCredential);\n signInWithPhoneAuthCredential(phoneAuthCredential);\n }",
"public void readyToReceive()\n { ua.printLog(\"WAITING FOR INCOMING CALL\");\n if (!ua.ua_profile.audio && !ua.ua_profile.video) ua.printLog(\"ONLY SIGNALING, NO MEDIA\"); \n //ua.listen();\n changeStatus(UA_IDLE);\n printOut(\"digit the callee's URL to make a call or press 'enter' to exit\");\n }",
"private void smsRetrieverCall() {\n SmsRetrieverClient client = SmsRetriever.getClient(this /* context */);\n\n // Starts SmsRetriever, which waits for ONE matching SMS message until timeout\n // (5 minutes). The matching SMS message will be sent via a Broadcast Intent with\n // action SmsRetriever#SMS_RETRIEVED_ACTION.\n Task<Void> task = client.startSmsRetriever();\n\n // Listen for success/failure of the start Task. If in a background thread, this\n // can be made blocking using Tasks.await(task, [timeout]);\n task.addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n // Successfully started retriever, expect broadcast intent\n Log.d(\"TAG\", \"smsRetrieverCall SUCCESS\");\n }\n });\n\n task.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Failed to start retriever, inspect Exception for more details\n // ...\n Log.d(\"TAG\", \"smsRetrieverCall FAIL\");\n result.setText(\"Retriever start Fail\");\n }\n });\n }",
"@Test\n public void testifyPhone() throws InterruptedException {\n onView(withId(R.id.phone)).check(matches(isDisplayed()));\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code = phoneAuthCredential.getSmsCode();\n Log.d(TAG, \"onVerificationCompleted: RECEIVED OTP \"+code);\n if(code != null){\n code_received.setText(code);\n verifyCode(code);\n }\n }",
"public void waitForPageLoaded() {\r\n\r\n\t\tExpectedCondition<Boolean> expectation = new ExpectedCondition<Boolean>() {\r\n\t\t\tpublic Boolean apply(WebDriver driver) {\r\n\t\t\t\treturn ((JavascriptExecutor) driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t\t}\r\n\t\t};\r\n\t\tWait<WebDriver> wait = new WebDriverWait(driver, timeout);\r\n\t\twait.until(expectation);\r\n\t}",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n Log.d(TAG, \"onVerificationCompleted:\" + credential);\n otp = credential.getSmsCode();\n pinEntered.setText(otp);\n signInWithPhoneAuthCredential(credential);\n }",
"public void callNextScreenFromOTP(View view) {\n String otpByuser = pinEntered.getText().toString();\n if (!otpByuser.isEmpty()) {\n verifyPhoneNumberWithCode(mVerificationId,otpByuser);\n }\n }",
"public String PhoneVerify() throws Exception {\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(phoneverified);\r\n\t\t\t\tStr_phoneverified = element.getText();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Phone Number NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Str_phoneverified;\r\n\t\t\t\r\n\t\t}",
"public static void awaitUntilPageIsLoaded (WebDriver webDriver, int timer)\n\t{\n\t\tawait ().\n\t\t\t\tatMost (timer, SECONDS).\n\t\t\t\tpollDelay (5, SECONDS).\n\t\t\t\tpollInterval (1, SECONDS).\n\t\t\t\tignoreExceptions ().\n\t\t\t\tuntilAsserted (() -> assertThat (((JavascriptExecutor) webDriver).executeScript (\"return document.readyState\").toString ()).\n\t\t\t\t\t\tas (\"Wait for the web Page to be rendered and loaded completely.\").\n\t\t\t\t\t\tisEqualTo (\"complete\"));\n\t}",
"public void waitForPageToLoad(){\r\n\t\t\t\tDriver.driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t\t}",
"public void waitForPageToLoad() {\n Wait<WebDriver> wait = new WebDriverWait(WebDriverManager.getDriver(), 90);\n wait.until(new Function<WebDriver, Boolean>() {\n public Boolean apply(WebDriver driver) {\n return String\n .valueOf(((JavascriptExecutor) driver).executeScript(\"return document.readyState\"))\n .equals(\"complete\");\n }\n });\n try {\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(\"waitMessage_div\")));\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(\"//div[contains(text(),'Loading')]\")));\n // waitForPageToLoad();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n final String code = phoneAuthCredential.getSmsCode();\n if (code != null) {\n OTP.setText(code);\n verifyCode(code);\n }\n }",
"public void handleSMSAlert()\n\t{\n\t\t\n\t\tWebDriverWait wait=new WebDriverWait(driver, 60);\n\t\t\n\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(!Generic.getAttribute(checker, \"resourceId\").contains(\"message\"))\n\t\t\treturn; // No Alert found\n\t\telse\n\t\t{\n\t\t\tif(checker.getText().contains(\"verification could not be completed\"))\n\t\t\t\tAssert.fail(\"Phone Verification failed\");\n\t\t\t\n\t\t\tLog.info(\"== Handling SMS Alert ==\");\n\t\t\tokButton.click();\n\t\t\t\n\t\t\twaitOnProgressBarId(60);\n\t\t}\n\t\t\n\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(!Generic.getAttribute(checker, \"resourceId\").contains(\"message\"))\n\t\t\treturn; // No Alert found\n\t\telse\n\t\t{\n\t\t\tLog.info(\"== Handling second SMS Alert ==\");\n\t\t\tokButton.click();\n\t\t\t\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\t\t\t\n\t\t\n\t\t\n\t}",
"@Override\n public void waitUntilPageObjectIsLoaded() {\n }",
"@Override\n public void success(DigitsSession session, final String phoneNumber) {\n h.post(new Runnable() {\n @Override\n public void run() {\n\n successMethod(phoneNumber);\n containerForgotPassword.setVisibility(View.VISIBLE);\n\n }\n });\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n code = phoneAuthCredential.getSmsCode();\n\n //sometime the code is not detected automatically\n //in this case the code will be null\n //so user has to manually enter the code\n if (code != null) {\n phoneAuthView.setVerificationCode(code);\n //verifying the code\n verifyVerificationCode(code);\n }\n }",
"@And(\"^I wait for page to load completely$\")\n\tpublic void waitForCompleteLoading(){\n\t\tString result=selenium.synchronize();\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}",
"public void Verify(View view) {\n try {\n if (!appsingleton.isvalidateLength(et_username,6)) {\n tv_validationtext.setText(getResources().getString(R.string.st_errorOtplength));\n rl_validation.setVisibility(View.VISIBLE);\n tv_validationtext.startAnimation(appsingleton.shake_animation);\n return;\n }\n else\n {\n rl_validation.setVisibility(View.GONE);\n }\n\n if (AppUtils.isNetworkAvailable(this)) {\n new OTPVerification(et_username.getText().toString()).execute();\n\n }//end of network if\n else\n {\n appsingleton.SnackbarMessage(getResources().getString(R.string.st_internet_error),\"\",et_username);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tMobclickAgent.onPageStart(\"获取验证码\");\r\n\t}",
"public void onNextClicked(View v) {\n // TODO: format phone number\n final String email = etEmail.getText().toString();\n final String mobile = etMobile.getText().toString();\n final String password = etPassword.getText().toString();\n\n if (email.isEmpty() || mobile.isEmpty() || password.isEmpty()) {\n Toast.makeText(this, \"Please complete the form\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (password.length() < 5) {\n Toast.makeText(this, \"Password must have at least 5 characters\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (!DeviceUtil.hasConnection(this)) {\n Toast.makeText(this, \"No Internet connection\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n final IdentityVerifier identityVerifier = new IdentityVerifier(this, new IdentityVerifier.ResultCallback() {\n @Override\n public void handleResult(int result) {\n if (result == IdentityVerifier.RESULT_PASS) {\n clearError();\n goToCreateProfile(email, mobile, password);\n } else {\n showError(result);\n }\n }\n\n @Override\n public void handleFault(ParseException fault) {\n if (fault != null) {\n Logger.e(TAG, fault.getMessage());\n Toast.makeText(RegisterActivity.this, fault.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n identityVerifier.verify(email, mobile);\n }",
"public void gotoHome() // Wait for Home page or Verify Device page \n\t{\t\t\t\t \n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\n\t\t\n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\");\n\t\t}\t\t\n\t}",
"public void PINext (View view){\n try {\n readCardOpt.cancelCheckCard();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n final ProgressDialog pdialog = new ProgressDialog(powerInstantActivity.this);\n pdialog.setMessage(\"Loading, Please wait...\");\n pdialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pdialog.setCancelable(false);\n pdialog.show();\n\n if (meternumber.getText().toString() != null){\n meter = meternumber.getText().toString();\n\n if (piphoneno.getText().toString() != null){\n powerphone = piphoneno.getText().toString();\n int length = piphoneno.getText().length();\n if (length > 6 && length < 8){\n String firstdigit = powerphone.substring(0, 1);\n if (firstdigit.equals(\"8\") || firstdigit.equals(\"7\")){\n\n if (piamount.getText().toString() != null && !piamount.getText().toString().isEmpty()){\n poweramount = piamount.getText().toString();\n int amt = Integer.parseInt(poweramount);\n if (amt > 4 && amt < 401){\n appConn = new AppConn();\n appConn.meter_no = meter;\n appConn.webLink = Global.URL;\n appConn.commandpost = \"metercheck\";\n appConn.meterChecker(new ResponseListener() {\n @Override\n public void onResponse(Response response) {\n if (appConn.meterFailedcode != null) {\n pdialog.dismiss();\n Toast.makeText(powerInstantActivity.this, \"failedcode : \" + appConn.meterFailedcode, Toast.LENGTH_SHORT).show();\n } else {\n // test for valid meter number : 37120107851 / 98t00642\n\n String meterValidity = appConn.res_server;\n System.out.println(\"meterValidity = \" + meterValidity);\n if (meterValidity.equals(\"yes\")) {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.truetick);\n\n startActivity(new Intent(powerInstantActivity.this, powerInstantConfirm.class)\n .putExtra(\"name\", appConn.res_name)\n .putExtra(\"meter\", meternumber.getText().toString().toUpperCase())\n .putExtra(\"phoneno\", powerphone)\n .putExtra(\"amount\", piamount.getText().toString())\n .putExtra(\"piPid\", powerinstantPid)\n .putExtra(\"piMail\", powerinstantMail));\n } else {\n pdialog.dismiss();\n meterStat.setImageResource(R.drawable.falsetick);\n Toast.makeText(powerInstantActivity.this, \"Invalid Meter No.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n @Override\n public void onError(String error) {\n pdialog.dismiss();\n finish();\n Toast.makeText(powerInstantActivity.this, \"Error : \" + error, Toast.LENGTH_SHORT).show();\n startActivity(new Intent(powerInstantActivity.this, errorActivity.class));\n }\n });\n //\n\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Amount range: $5 - $400\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter amount no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Invalid phone no. length\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter phone no.\", Toast.LENGTH_SHORT).show();\n }\n } else {\n pdialog.dismiss();\n Toast.makeText(this, \"Please enter meter no.\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttime=30;\n\t\t\t\tverfy_button.setEnabled(false);\n\t\t\t\thandler.postDelayed(runnable, 1000); \n\t\t\t\tinitSDK();\n\t\t\t\tSMSSDK.getVerificationCode(\"86\",textview_phone.getText().toString());\n\t\t\t\t\n\t\t\t}",
"private void openVerificationActivity() {\n }",
"@And(\"^Enter user phone and confirmation code$\")\t\t\t\t\t\n public void Enter_user_phone_and_confirmation_code() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.id(\"phoneNumberId\")).sendKeys(\"01116844320\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvPhoneNext']/content/span\")).click();\n driver.findElement(By.id(\"code\")).sendKeys(\"172978\");\n driver.findElement(By.xpath(\"//*[@id='gradsIdvVerifyNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n String code=phoneAuthCredential.getSmsCode ();\n if (code != null) {\n etUIDPasscode.setText (code);\n verifyCode (code);\n }\n }",
"@Override\r\n\tpublic void onPause() {\n\t\tsuper.onPause();\r\n\t\tMobclickAgent.onPageEnd(\"获取验证码\");\r\n\t}",
"@Override\n\tpublic void waitMail() {\n\t\tif (Harness.TRACE)\n\t\t\tHarness.trace(String.format(\"[HarnessMailbox] WaitMail from %d, timeout %d\",\n\t\t\t\t\t\t\t\t\t\t(int)mailbox_number, timeout));\n\t\t\n\t\tif (mail_count[mailbox_number] > 0) {\n\t\t\twait_result = MSG_RECEIVED;\n\t\t\texecution_result = MSG_RECEIVED;\n\t\t\tmessage = mail_message[mailbox_number];\n\n\t\t\tif (Harness.TRACE)\n\t\t\t\tHarness.trace(String.format(\"[HarnessMailbox] Message from %d is %d = 0x%x\",\n\t\t\t\t\t\t\t\t\t\t\t(int)mailbox_number, (int)message, (int)message));\n\t\t\t\n\t\t\tmail_count[mailbox_number]--;\n\t\t} else {\n\t\t\twait_result = TIMEOUT_OCCURRED;\n\t\t\texecution_result = TIMEOUT_OCCURRED;\n\t\t\tmessage = 0;\n\t\t}\n\t}",
"public void waitForPageToLoad(long timeout) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\twhile ((System.currentTimeMillis() - startTime) < timeout * 1000) {\n\t\t\tboolean pageLoaded = (String) getExecutor().executeScript(\"return document.readyState\") == \"complete\";\n\t\t\tif (pageLoaded) {\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void verifyCodePressed(View view) {\r\n emailTo = String.valueOf(etEmail.getText());\r\n //Generate the random verify code\r\n verifyCode = (int)((Math.random() * 9 + 1) * 100000);\r\n Toast.makeText(ForgetPswActivity.this,\"Sending..... the verify code\", Toast.LENGTH_LONG).show();\r\n Thread thread = new Thread(){\r\n @Override\r\n public void run() {\r\n EmailUtil.getInstance().sendEmail(emailTo,\"Verify Code from Digital Learner Logbook\",\r\n \"DLL send a verify code: \" + verifyCode +\r\n \", This code is for reset the password only!\" );\r\n\r\n Looper.prepare();\r\n Toast.makeText(ForgetPswActivity.this,\"Sent the verify code\", Toast.LENGTH_LONG).show();\r\n Looper.loop();\r\n }\r\n };\r\n thread.start();\r\n\r\n }",
"public void validateApplyForaNumberPlatePage() throws InterruptedException {\n\t\tsFunName = \"validateApplyForaNumberPlatePage\";\n\t\tSystem.out.println(\"Inside : validateApplyForaNumberPlatePage\");\n\t\tString currentURL = driver.getCurrentUrl();\n\t\tSystem.out.println(sFunName + \" : Current URL : \" + currentURL);\n\t\tutil.waitForPageToLoad();\n\t\tbStatus = util.explicitlyWaitUntilElementIsPresent(numberPlatesLink);\n\t\tAssert.assertTrue(bStatus, \"Number Plates Link Found\");\n\t\tString title = driver.getTitle();\n\t\tSystem.out.println(sFunName + \" page title Is : \" + title);\n\t\tAssert.assertEquals(\"Apply for a number plate | Service NSW\", title);\n\t}",
"private InboxPage clickPasswordNext() {\n try {\n Thread.sleep(2000);\n } catch (Exception e) {\n }\n if (waitForElementDisplayed(By.id(ID_PASSWORD_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_PASSWORD_NEXT)));\n return new InboxPage(driver);\n }\n return null;\n }",
"public abstract boolean Verifypage();",
"public void waitingForPartner();",
"private void showVerificationDialog(String phoneNumber) {\n\t\tnew AlertDialog.Builder(this)\n\t\t\t\t.setTitle(R.string.phoneVerification_confirmTitle)\n\t\t\t\t.setMessage(getString(R.string.phoneVerification_confirmText, phoneNumber))\n\t\t\t\t.setPositiveButton(R.string.app_yes, (dialog, which) -> requestVerificationCode(phoneNumber))\n\t\t\t\t.setNegativeButton(R.string.app_no, (dialog, which) -> phoneInput.getEditText().selectAll())\n\t\t\t\t.show();\n\t}",
"protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }",
"public void verifyVINCERegistrationPageInNewWindow() {\n\t\tAssert.assertTrue(notAUserText.isDisplayed());\n\t\t_normalWait(3000);\n\t}",
"@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}",
"public void waitForPageToLoad(WebDriver driver)\n {\n ExpectedCondition < Boolean > pageLoad = new\n ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver driver)\n {\n return ((JavascriptExecutor) driver)\n .executeScript(\"return document.readyState\").equals(\"complete\");\n }\n };\n Wait< WebDriver > wait = new WebDriverWait(driver, 60, DEFAULT_SLEEP_IN_MILLIS);\n try\n {\n wait.until(pageLoad);\n }\n catch (TimeoutException pageLoadWaitError)\n {\n System.out.println(\"Timeout during page load:\" + pageLoadWaitError.toString());\n }\n }",
"public static void waitForRegistrationButton(){\n DriverManager.waitForElement(Constans.REGISTRATION_BUTTON_LOCATOR);\n }",
"public static void main(String[] args) {\n try {\r\n System.out.println(\"We are trying to do something cool\");\r\n System.setProperty(\"webdriver.chrome.driver\", \"C://chromedriver.exe\");\r\n WebDriver driver = new ChromeDriver();\r\n String gmail = \"https://accounts.google.com/signin/v2/identifier?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ss=1&scc=1<mpl=default<mplcache=2&emr=1&osid=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin\";\r\n\r\n driver.get(gmail);\r\n\r\n driver.findElement(By.xpath(\"//*[@id=\\\"identifierId\\\"]\")).sendKeys(\"[email protected]\"); //[email protected]\r\n\r\n Thread.sleep(1000);\r\n //This is to click next\r\n driver.findElement(By.xpath(\"//*[@id=\\\"identifierNext\\\"]\")).click();\r\n\r\n Thread.sleep(1000);\r\n //This is to put in the password Cairo2000\r\n driver.findElement(By.cssSelector(\".aCsJod.oJeWuf div div input\" )).sendKeys(\"Cairo2000\");\r\n driver.findElement(By.cssSelector(\"#passwordNext\")).click();\r\n //tempGmail.sendKeys(Keys.SHIFT, Keys.TAB);\r\n //driver.findElement(By.xpath(\"//*[@id=\\\"passwordNext\\\"]\")).sendKeys(\"Awad9911677\");\r\n //driver.findElement(By.xpath(\"//*[@id=\\\"identifierNext\\\"]\")).click();\r\n\r\n\r\n Thread.sleep(1000);\r\n WebElement PageChecker = (new WebDriverWait(driver, 10000)).until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\":ha\\\"]/div/div\")));\r\n\r\n System.out.println(\"We should be in the email now to check the stuff\");\r\n\r\n\r\n for(int x = 0; x <= 17; x++){\r\n String ca = \"a\";\r\n\r\n switch (x) {\r\n case 0: ca = \"0\";\r\n break;\r\n case 1: ca = \"1\";\r\n break;\r\n case 2: ca = \"2\";\r\n break;\r\n case 3: ca = \"3\";\r\n break;\r\n case 4: ca = \"4\";\r\n break;\r\n case 5: ca = \"5\";\r\n break;\r\n case 6: ca = \"6\";\r\n break;\r\n case 7: ca = \"7\";\r\n break;\r\n case 8: ca = \"8\";\r\n break;\r\n case 9: ca = \"9\";\r\n break;\r\n case 10: ca = \"a\";\r\n break;\r\n case 11: ca = \"b\";\r\n break;\r\n case 12: ca = \"c\";\r\n break;\r\n case 13: ca = \"d\";\r\n break;\r\n case 14: ca = \"e\";\r\n break;\r\n case 15: ca = \"f\";\r\n break;\r\n case 16: ca = \"g\";\r\n break;\r\n default: ca = \"g\";\r\n break;\r\n }\r\n //This is the innerloop\r\n for(int y = 0; y <= 36; y++){\r\n\r\n String da;\r\n //da = checkYValue(y);\r\n switch (y) {\r\n case 0: da = \"0\";\r\n break;\r\n case 1: da = \"1\";\r\n break;\r\n case 2: da = \"2\";\r\n break;\r\n case 3: da = \"3\";\r\n break;\r\n case 4: da = \"4\";\r\n break;\r\n case 5: da = \"5\";\r\n break;\r\n case 6: da = \"6\";\r\n break;\r\n case 7: da = \"7\";\r\n break;\r\n case 8: da = \"8\";\r\n break;\r\n case 9: da = \"9\";\r\n break;\r\n case 10: da = \"a\";\r\n break;\r\n case 11: da = \"b\";\r\n break;\r\n case 12: da = \"c\";\r\n break;\r\n case 13: da = \"d\";\r\n break;\r\n case 14: da = \"e\";\r\n break;\r\n case 15: da = \"f\";\r\n break;\r\n case 16: da = \"g\";\r\n break;\r\n case 17: da = \"h\";\r\n break;\r\n case 18: da = \"i\";\r\n break;\r\n case 19: da = \"j\";\r\n break;\r\n case 20: da = \"k\";\r\n break;\r\n case 21: da = \"l\";\r\n break;\r\n case 22: da = \"m\";\r\n break;\r\n case 23: da = \"n\";\r\n break;\r\n case 24: da = \"o\";\r\n break;\r\n case 25: da = \"p\";\r\n break;\r\n case 26: da = \"q\";\r\n break;\r\n case 27: da = \"r\";\r\n break;\r\n case 28: da = \"s\";\r\n break;\r\n case 29: da = \"t\";\r\n break;\r\n case 30: da = \"u\";\r\n break;\r\n case 31: da = \"v\";\r\n break;\r\n case 32: da = \"w\";\r\n break;\r\n case 33: da = \"x\";\r\n break;\r\n case 34: da = \"y\";\r\n break;\r\n case 35: da = \"z\";\r\n break;\r\n default: da = \"g\";\r\n break;\r\n }\r\n\r\n // System.out.println(\"Check CA and DA \" + ca + \" X\" );\r\n\r\n if( x >= 3 && y >= 2){ // if ID = 31 skip it duh\r\n\r\n if( driver.findElements(By.xpath(\"//*[@id=\\\":\" + ca + da + \"\\\"]\")).size() != 0){\r\n\r\n //System.out.println(\"Check CA and DA\" + ca + \" \" + da);\r\n //*[@id=\":6t\"]\r\n //TODO: Search based on sender of email //*[@id=\\\":\" + ca + da + \"\\\"]\" //*[@id=\":v7\"]/b/text()\r\n\r\n // System.out.println(driver.findElement(By.id(\":\" + ca + da)).getText());\r\n // System.out.println(\"We are here\");\r\n\r\n //if(driver.findElement(By.cssSelector(\".zA.zE\")).getCssValue(gmail)){ //this is to find if it is unread //Old Code .getText().contains(\"Instant payment received from\")\r\n if(driver.findElement(By.id(\":\" + ca + da)).getText().contains(\"Instant payment received from\")) {\r\n WebElement currentEmail = driver.findElement(By.id(\":\" + ca + da));\r\n System.out.println(currentEmail.getCssValue(\"background\"));\r\n if(currentEmail.getCssValue(\"background\").contains(\"rgba(255, 255, 255, 0.9)\")){\r\n //unread click it\r\n System.out.println(\"We are unread now click\");\r\n driver.findElement(By.xpath(\"//*[@id=\\\":\" + ca + da + \"\\\"]\")).click();\r\n System.out.println(\"You Luckly basters\");\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n if(x == 16 && y == 16){ //stop at gg\r\n break;\r\n }\r\n }\r\n if(x == 16){ //stop at gg\r\n break;\r\n }\r\n }\r\n\r\n System.out.println(\"We are in the RIGHT EMAIL ADDRESS\");\r\n Thread.sleep(1000);\r\n WebElement insideEmail = driver.findElement(By.cssSelector(\".acX .aaq, .acX .bsQ\"));\r\n //driver.findElement(By.xpath(\"//*[@id=\\\":k8\\\"]/div[1]/div[2]/div[1]/table/tbody/tr[1]/td[4]/div[1]\")).click();\r\n insideEmail.click();\r\n //insideEmail.sendKeys(\"This is a test\");\r\n driver.findElement(By.cssSelector(\".aO7\")).sendKeys(\"We made it\");\r\n\r\n\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Ebay.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n\r\n }",
"public void verifyOTP() {\n HashMap<String, String> commonParams = new CommonParams.Builder()\n .add(AppConstant.KEY_COUNTRY_CODE, mCountryCode)\n .add(AppConstant.KEY_PHONE, mPhoneno)\n .add(AppConstant.KEY_OTP, mOTP).build().getMap();\n ApiInterface apiInterface = RestClient.getApiInterface();\n apiInterface.userVerifyOTP(\"bearer\" + \" \" + CommonData.getAccessToken(), commonParams)\n .enqueue(new ResponseResolver<CommonResponse>(OtpActivity.this, true, true) {\n @Override\n public void success(final CommonResponse commonResponse) {\n Log.d(\"debug\", commonResponse.getMessage());\n\n }\n\n @Override\n public void failure(final APIError error) {\n Log.d(\"debug\", error.getMessage());\n\n }\n });\n }",
"@Override\n public void verifyHasPhone() {\n }",
"@Override\n public void onVerificationCompleted(PhoneAuthCredential phoneAuthCredential) {\n // below line is used for getting OTP code\n // which is sent in phone auth credentials.\n final String code = phoneAuthCredential.getSmsCode();\n\n // checking if the code\n // is null or not.\n if (code != null) {\n // if the code is not null then\n // we are setting that code to\n // our OTP edittext field.\n // after setting this code\n // to OTP edittext field we\n // are calling our verifycode method.\n verifyCode(code);\n }\n }",
"private void waitForFirstPageToBeLoaded() {\n IdlingResource idlingResource = new ElapsedTimeIdlingResource(LATENCY_IN_MS + 1000);\n IdlingRegistry.getInstance().register(idlingResource);\n\n //Check that first item has been loaded\n onView(withItemText(\"POPULAR MOVIE #1 (1999)\")).check(matches(isDisplayed()));\n\n //Clean up\n IdlingRegistry.getInstance().unregister(idlingResource);\n }",
"public void waitForLoad() {\n\tExpectedCondition<Boolean> pageLoadCondition = new ExpectedCondition<Boolean>()\r\n\t { \r\n public Boolean apply(WebDriver driver) \r\n {\r\n\t return ((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t }\r\n\t\t };\r\n\t// a\r\n\t\t if((new WebDriverWait(driver, 0.1).until(PageLoadCondition))==false){\r\n\t\t \t \t\r\n\t\t \t//Takesscreenshot is a java class - screenshot code\r\n\t\t \tTakesScreenshot scrShot=((TakesScreenshot)driver);\r\n\t\t \tFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\r\n\t\t \tFile DestFile=new File(fileWithPath);\r\n\t\t \tFileUtils.copyFile(SrcFile, DestFile);\r\n\t\t \tSyso(\"page failed to load in 0.1 sec, refer screenshot saved in ___\");\r\n\t\t }\r\n\t\t// b \r\n\t\t if ((new WebDriverWait(driver, 5).until(PageLoadCondition))==true)){\r\n\t\t System.out.println(\"page loaded in 5 sec\");\t\r\n\t\t }\r\n\t}",
"public void waitForPageToLoad(int timeOutInSeconds) {\n\t\tboolean flag=false;\n\t\ttry {\n\t\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\t\t\tString jsCommand = \"return document.readyState\";\n\t\t\t\n\t\t\t// Validate readyState before doing any waits\n\t\t\tif (js.executeScript(jsCommand).toString().equals(\"complete\")) {\n\t\t\t\tflag=true;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < timeOutInSeconds; i++) {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\tflag=js.executeScript(jsCommand).toString().equals(\"complete\")?true:false;\n\t\t\t\t\tif(flag)break;\n\t\t\t\t} //for-loop\n\t\t\t} //if-else\n\t\t\t\n\t\t\tif(!flag) {\n\t\t\t\tlog.error(\"Failed to Load Complete Page....\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception to Load Complete Page....\");\n\t\t}\n\t}",
"public void ImplicitlyWait_PageLoadTimeout() throws InterruptedException {\r\n\t//declaration of chrome driver\r\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t WebDriver driver=new ChromeDriver(); \r\n\t \r\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\r\n\t\t\t\r\n\t //Navigated to the webpage\r\n\tdriver.get(\"https://contentstack.built.io\");\r\n \tdriver.findElement(By.linkText(\"Forgot password?\")).click();\r\n \t\r\n //driver.quit();\r\n}",
"public void requestConfirmationCode() {\n PhoneNumberVerificationRequest.forPhoneNumberVerification(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberVerificationRequestListener).execute(this.requestManager);\n }",
"@OnClick\n public void onNext() {\n KeyboardUtils.dismissSoftKeyboard(getView());\n this.nextButton.setState(AirButton.State.Loading);\n RegistrationAnalytics.trackClickEvent(RegistrationAnalytics.NEXT_BUTTON, \"phone\", getNavigationTrackingTag());\n AccountCreationRequest.forValidatingPhone(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberExistValidationRequestListener).execute(this.requestManager);\n }",
"private boolean checkPhoneStatusOK() {\n return true;\n }",
"public void waitForContentLoad() {\n verifyPageIsOpened(currentPage.get(), \"Please open some page before the waiting for content to load.\");\n currentPage.get().waitLoadFinished();\n }",
"public void makepayment() throws InterruptedException {\n\t\tdriver.switchTo().frame(0);\n\t\tThread.sleep(3000);\n\t\tAssert.assertTrue(driver.findElement(By.xpath(props.getProperty(\"payment_card_logo\"))).isDisplayed(),\n\t\t\t\t\" Card payment pop-up is showing\");\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"email\"))).sendKeys(getemailchars() + \"@gmail.com\");\n\t\t// wait for 20 second and enter OTP manualy\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).sendKeys(props.getProperty(\"enter_card_number\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).sendKeys(props.getProperty(\"enter_month\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).sendKeys(props.getProperty(\"enter_CVV\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).sendKeys(props.getProperty(\"enter_zip_code\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"click_rember_checkbox\"))).click();\n\t\tThread.sleep(1000);\n\n\t\t// Enter mobile number\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\"))).clear();\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\")))\n\t\t\t\t.sendKeys(props.getProperty(\"plus_icon\") + mobile_number);\n\n\t\t// Click pay tab to make payment\n\t\tdriver.findElement(By.xpath(props.getProperty(\"payment_tab\"))).click();\n\t\tThread.sleep(2000);\n\t\tdriver.switchTo().defaultContent();\n\n\t}",
"private void getVerifyCode() {\n\t\t\n\t\tNetworkTask task = new NetworkTask((CApplication) getActivity().getApplication(), \"user_isdn_code\", false){\n\t\t\t\n\t\t\tprivate ProgressDialog mProgressDialog;\n\t\t\t\n\t\t\t@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tmProgressDialog = new ProgressDialog(getActivity());\n\t\t\t\tmProgressDialog.setCanceledOnTouchOutside(false);\n\t\t\t\tmProgressDialog.setCancelable(false);\n\t\t\t\tmProgressDialog.show();\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(JSONObject result) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void responseData(String str, boolean isBackground) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.responseData(str, isBackground);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject result = new JSONObject(str);\n\t\t\t\t\tint status = result.getInt(\"status\");\n\t\t\t\t\tif(status == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\tJSONArray array = result.getJSONObject(\"result\").getJSONArray(\"dataset\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(array.length() > 0){\n\t\t\t\t\t\t\tJSONObject obj = array.getJSONObject(0);\n\t\t\t\t\t\t\tverifyCode = obj.getString(\"code\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tmGetVerifyCode.countDown(AccountResetPwdFragment.this);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t};\n\t\t\n\t\ttry {\n\t\t\tString isdn = mPhone.getText().toString();\n\t\t\tJSONObject params = new JSONObject();\n\t\t\tparams.put(\"isdn\", isdn);\n\t\t\ttask.execute(params);\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public static void RegisterPhone(final Activity activity,final String phoneNumber,final Dialog dialog,final EditText input,final Button send,final Button resend,final GifImageView counter){\n smsCode = phoneVerificationId;\n\n\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n FirebaseAuthSettings firebaseAuthSettings = firebaseAuth.getFirebaseAuthSettings();\n\n// Configure faking the auto-retrieval with the whitelisted numbers.\n firebaseAuthSettings.setAutoRetrievedSmsCodeForPhoneNumber(phoneNumber, smsCode);\n\n PhoneAuthProvider phoneAuthProvider = PhoneAuthProvider.getInstance();\n phoneAuthProvider.verifyPhoneNumber(\n phoneNumber,\n 60L,\n TimeUnit.SECONDS,\n activity, /* activity */\n mCallbacks = new PhoneAuthProvider.OnVerificationStateChangedCallbacks() {\n @Override\n public void onVerificationCompleted(PhoneAuthCredential credential) {\n // Instant verification is applied and a credential is directly returned.\n // ...\n //SignInWithPhoneAuthCredential(activity,credential,dialog,input,send,resend,counter);\n Toast.makeText(activity, \"credentials : \"+credential, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"Sms : \"+smsCode, Toast.LENGTH_SHORT).show();\n Toast.makeText(activity, \"phone verification Id : \"+phoneVerificationId, Toast.LENGTH_SHORT).show();\n smsMessage = credential.getSmsCode();\n }\n\n @Override\n public void onVerificationFailed(FirebaseException e) {\n Log.e(TAG, \"Error adding document\", e);\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n Log.d(constants.PhoneRegTag, \"Invalid Credentials\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n Log.d(constants.PhoneRegTag, \"SMS Verification Pin needed\");\n }\n }\n\n @Override\n public void onCodeSent(String verificationId, PhoneAuthProvider.ForceResendingToken token) {\n phoneVerificationId = verificationId;\n resendingToken = token;\n //PhoneAuthCredential credential = PhoneAuthProvider.getCredential(phoneVerificationId,token.toString());\n //smsMessage = credential.getSmsCode();\n counter.setVisibility(View.GONE);\n input.setVisibility(View.VISIBLE);\n input.requestFocus();\n send.setVisibility(View.VISIBLE);\n resend.setVisibility(View.VISIBLE);\n // The SMS verification code has been sent to the provided phone number, we\n // now need to ask the user to enter the code and then construct a credential\n //and then execute your method if number entered is correct.\n }\n\n\n });\n\n }",
"public void Wait_ExplictWait() {\r\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\r\n\t WebDriver driver=new ChromeDriver(); \r\n\t \r\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t \t\t\tdriver.get(\"https://contentstack.built.io\");\r\n\t \t\t\t\r\n\t \t\t\t\r\n\t\t\t\t\t\tWebDriverWait wait=new WebDriverWait(driver, 15);\r\n\t\t\t\t\r\n\t\t\t\t\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"kannan\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tWebElement link;\r\n\t\t\t\t\t\tlink= wait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"kForgot password?\")));\r\n\t\t\t\t\t\tlink.click();\r\n driver.quit();\r\n}",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"@Test\n public void userClicksAgree_RedirectsToRequestPickup(){\n //Validates the agree button exists\n onView(ViewMatchers.withId(R.id.button_rules_agree)).perform(click());\n\n //Checks that the Request ride page appears\n Activity mRequestRide = mInstrumentation.waitForMonitorWithTimeout(mRulesMonitor, 1000);\n Assert.assertNotNull(mRequestRide);\n }",
"public void paymentgetSuccess() throws InterruptedException {\n\t\tAssert.assertTrue(driver.findElement(By.xpath(props.getProperty(\"payment_success\"))).isDisplayed(),\n\t\t\t\t\"Payment get success\");\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.xpath(props.getProperty(\"i_payment\"))).click();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"i_payment\"))).getText();\n\t}",
"@Test(enabled = true)\n public void registraionPage() throws InterruptedException {\n driver.findElement(By.xpath(\"//a[contains(.,'Sign up, it’s free')]\")).click();\n Thread.sleep(2000);\n\n\n String expected = \"Show us your human side...\";\n String actual = driver.findElement(By.xpath(\"//h1[contains(.,'Show us your human side')]\")).getText();\n\n Assert.assertEquals(actual, expected, \"Test Failed. Registration page could not be reached.\");\n\n\n }",
"@Test\n public void verify1() throws InterruptedException {\n// String parenthandle;\n// driver.get(\"https://www.mailinator.com/\");\n// Thread.sleep(3000);\n// parenthandle = driver.getWindowHandle();\n// driver.findElement(By.xpath(\"//input[@id='inboxfield']\")).sendKeys(\"rmiller8\");\n// driver.findElement(By.xpath(\"//button[@class='btn btn-dark']\")).click();\n// Thread.sleep(3000);\n// driver.findElement(By.xpath(\"//div[@class='all_message-min_text all_message-min_text-3']\")).click();\n// // driver.findElement(By.linkText(\"Please click here\")).click();\n// //i could not click on link to verify email probably need to get in frame\n// int size = driver.findElements(By.xpath(\"/html/body/a\")).size();\n// System.out.println(size);\n// ((JavascriptExecutor)driver).executeScript(\"window.open();\");\n// ArrayList<String> tabs = new ArrayList <String>(driver.getWindowHandles());\n// System.out.println(tabs.size());\n// driver.switchTo().window(tabs.get(1));\n driver.get (\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\");\n Thread.sleep(3000);\n driver.findElement(By.xpath(\"//input[@class='form-control ng-valid-maxlength ng-dirty ng-valid-parse ng-touched ng-empty ng-invalid ng-invalid-required']\")).sendKeys(\"[email protected]\");\n driver.findElement(By.xpath(\"//input[@class='form-control ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required']\")).sendKeys(\"121212\");\n driver.findElement(By.xpath(\"//button[@id='login']\")).click();\n\n }",
"private void verifyAuthWithServer() {\n mResetModel.connect(\n myBinding.editResetEmail.getText().toString());\n //This is an Asynchronous call. No statements after should rely on the\n //result of connect().\n }",
"private void sendEmailVerification() {\n showProgressDialog();\n\n // [START send_email_verification]\n final FirebaseUser user = mAuth.getCurrentUser();\n assert user != null;\n user.sendEmailVerification()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // [START_EXCLUDE]\n // Re-enable button\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(),\n \"Verification email sent to \" + user.getEmail(),\n Toast.LENGTH_SHORT).show();\n } else {\n Log.e(TAG, \"sendEmailVerification\", task.getException());\n Toast.makeText(getApplicationContext(),\n \"Failed to send verification email.\",\n Toast.LENGTH_SHORT).show();\n }\n hideProgressDialog();\n // [END_EXCLUDE]\n }\n });\n // [END send_email_verification]\n }",
"public void waitForContentLoad() {\n // TODO implement generic method to wait until page content is loaded\n\n // wait.until(...);\n // ...\n }",
"public void openSpamPage() {\n WebDriverWait wait = new WebDriverWait(driver, 20);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()='COMPOSE']\")));\n inputSearch.clear();\n inputSearch.sendKeys(\"in:spam\");\n buttonSearch.click();\n }",
"public void verificationFor2fa() throws MessagingException, IOException {\n\t\tverifyMailPage engine2fa = new verifyMailPage(driver);\n\t\tengine2fa.clickSendBackupCodeToMail();\n\t\tString recoveryCode =engine2fa.goToRecoveryCodeMail();\n\t\tengine2fa.enterRecoveryCode(recoveryCode);\n\t\tengine2fa.clickSubmit();\n\t}",
"public static void waitForPageToLoad(WebDriver driver) throws InterruptedException\n\t{\n\t\t\n\t\tThread.sleep(2000);\n\t\t//waitPageLoad.until(executeJavaScript(\"return document.readyState;\", \"complete\"));\n\t}",
"public void accept()\n { ua.accept();\n changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n printOut(\"press 'enter' to hangup\"); \n }"
]
| [
"0.64606017",
"0.6422165",
"0.63578147",
"0.6276002",
"0.62740093",
"0.6266476",
"0.6247829",
"0.6206518",
"0.6167156",
"0.6167156",
"0.6167156",
"0.6167156",
"0.6113416",
"0.6030672",
"0.6021677",
"0.6019895",
"0.5981653",
"0.5898013",
"0.58462316",
"0.5825657",
"0.5823723",
"0.5799323",
"0.5772715",
"0.5768451",
"0.5768182",
"0.5759672",
"0.57517445",
"0.57415336",
"0.5682266",
"0.5656604",
"0.56460726",
"0.5643929",
"0.5642602",
"0.563669",
"0.56239223",
"0.55572945",
"0.5553742",
"0.55326766",
"0.5522934",
"0.5478813",
"0.5464535",
"0.5462107",
"0.5452979",
"0.54441106",
"0.5434156",
"0.5427806",
"0.539924",
"0.5389588",
"0.5383794",
"0.5382715",
"0.53760207",
"0.5371685",
"0.5343722",
"0.53350097",
"0.5329155",
"0.5326271",
"0.5324127",
"0.5320805",
"0.5307571",
"0.5300041",
"0.52985114",
"0.52958816",
"0.528681",
"0.52861273",
"0.52705324",
"0.5267452",
"0.52645326",
"0.52417004",
"0.524036",
"0.5224615",
"0.51927793",
"0.5188747",
"0.5183611",
"0.51750934",
"0.517198",
"0.5168536",
"0.5163322",
"0.5153228",
"0.5140617",
"0.5138218",
"0.5134638",
"0.51275474",
"0.51262313",
"0.5120679",
"0.5103193",
"0.5094738",
"0.50932705",
"0.5090952",
"0.50898856",
"0.50813967",
"0.50809455",
"0.5058701",
"0.50552416",
"0.5052772",
"0.5051752",
"0.50367445",
"0.5027669",
"0.50266135",
"0.50231224",
"0.50196"
]
| 0.7914759 | 0 |
if postpaid sim from config.properties then return; BaseTest1.checkPostPaidSIM(); | public void handleSMSAlert()
{
WebDriverWait wait=new WebDriverWait(driver, 60);
wait.until(ExpectedConditions.visibilityOf(checker));
if(!Generic.getAttribute(checker, "resourceId").contains("message"))
return; // No Alert found
else
{
if(checker.getText().contains("verification could not be completed"))
Assert.fail("Phone Verification failed");
Log.info("== Handling SMS Alert ==");
okButton.click();
waitOnProgressBarId(60);
}
wait.until(ExpectedConditions.visibilityOf(checker));
if(!Generic.getAttribute(checker, "resourceId").contains("message"))
return; // No Alert found
else
{
Log.info("== Handling second SMS Alert ==");
okButton.click();
wait.until(ExpectedConditions.visibilityOf(checker));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }",
"@Test( groups ={\"PaymentMethodValidation\"})\r\n\t\r\n\tpublic static void PayLaterOption(){\r\n\r\n\t\ttry {\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tPaymentMethod PaymentMethodObj \t= \tnew PaymentMethod() ;\r\n\t\t\t\r\n\t\t\tPaymentMethodObj.setPaymentMethod(\"PayLater\");\r\n\t\t\t\r\n\t\t\tCommonTestLibrary.launchDefaultProduct() ;\r\n\r\n\t\t\tAssert.assertEquals(CommonTestLibrary.purchaseProduct(\tTestApplicationParams.getDefaultUser(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getDefaultShippingAddress(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getDefaultBillingAddress(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrue, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPaymentMethodObj,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTestApplicationParams.getDefaultDiscount(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Address\"), true) ;\r\n\t\t\t\r\n\t\t\tWaitUtil.waitFor(Driver,\"THREAD_SLEEP\", (long)200);\t\r\n\t\t\tAssert.assertEquals(new FrontEndCommonPage(Driver).logout(),true) ;\t\t\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch ( TestException Te)\r\n\t\t{\r\n\t\t\tTestLog.logTestStep(\"Error/Exception : \" + Te.getExceptionName());\r\n\t\t\tTe.printException();\r\n\t\t\tassert(false);\r\n\t\t}\t\t\r\n\t\tcatch (InterruptedException e){\r\n\t\t\t//do nothing\t\t\r\n\t\t}\r\n\t\tcatch ( Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tTestLog.logTestStep(\"Error/Exception \" + e.getMessage());\r\n\t\t\tassert(false) ;\r\n\t\t}\r\n\t\t\r\n\t}",
"boolean hasPayment();",
"boolean hasPayment();",
"boolean hasBillingSetup();",
"private String processPaymentStatus() {\n\t\treturn new Random().nextBoolean() ? \"success\" : \"failure\";\n\t}",
"private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"public boolean checkpay(){\n return pay;\n }",
"@Test\n\tpublic void onholdToConfirmSEPA() throws Exception {\n\t\ttry {\n\t\t\t// Launch the browser and load the default URL\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t// Title for HTML report\n\t\t\ttest = extend.createTest(\"Vendor script execution for 'DIRECT_DEBIT_SEPA' onhold to confirm\");\n\t\t\t// Steps\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Read the order completion status\n\t\t\tString OrderCompletionStatus = element.Sepa_Order_Completion_Status_Selectbox.getText();\n\t\t\tThread.sleep(3000);\t\t\t\n\t\t\t// On-hold enabled\n\t\t\tActions action = new Actions(driver);\n\t\t\tThread.sleep(3000);\n\t\t\tWebElement onhold = element.Sepa_Onhold_Payment_Action_Selectbox;\n\t\t\tThread.sleep(5000);\n\t\t\taction.click(onhold).sendKeys(\"Authorize\", Keys.DOWN, Keys.ENTER).build().perform();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(4000);\n\t\t\t// Read the data from excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed() == true) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed()) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t// Get the amount from order success page front end\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\t// Get the TID from order success page front end\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t// Go to card portal and check the tid_status\n\t\t\t\t\tdriver.navigate().to(Constant.novalnetcardportalurl);\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\telement.Cardportal_TID_Textbox.sendKeys(TID);\n\t\t\t\t\telement.Cardportal_Submit.click();\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tString tid_status_value = element.Status_Code.getText();\n\t\t\t\t\tint tid_status = Integer.parseInt(tid_status_value);\n\t\t\t\t\t// Check whether the Tid is 99\n\t\t\t\t\tif (tid_status == 99) {\n\t\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t\t// Enter required parameter\n\t\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"DIRECT_DEBIT_SEPA\");\n\t\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\t\telement.Status.clear();\n\t\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\t\telement.Tid.sendKeys(TID);\n\t\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\t\tString callback_message = element.callback_message.getText();\n\t\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\t\t\t\t\t\t\n\t\t\t\t\t\tif (callback_message\n\t\t\t\t\t\t\t\t.contains(\"Novalnet callback received. The transaction has been confirmed\")) {\n\t\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\t\tString BEOrderStatus = element.Backend_Order_Status.getText();\n\t\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\t\t// Verify order completion status is updated in shop back end after the execution\n\t\t\t\t\t\t\tSystem.out.println(\"Order completion status: \" + OrderCompletionStatus);\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order status: \" + BEOrderStatus);\n\t\t\t\t\t\t\tif (OrderCompletionStatus.equals(BEOrderStatus)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop back end\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop back end\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated successfully in shop back end\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated successfully in shop back end\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Verify order completion status is updated in front after the execution\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\telement.MyAccount_Menu.click();\n\t\t\t\t\t\t\telement.MyAccount_Orders.click();\n\t\t\t\t\t\t\tString FEOrderStatus = element.Frontend_Order_Status.getText();\n\t\t\t\t\t\t\tSystem.out.println(\"Front end order status: \" + FEOrderStatus);\n\t\t\t\t\t\t\tif (OrderCompletionStatus.equals(FEOrderStatus)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop front end\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: Direct Debit SEPA order completion status is updated successfully in shop front end\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated in shop front end\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: Direct Debit SEPA order completion status is not updated in shop front end\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"callback execution message: \" + callback_message_updated);\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DIRECT_DEBIT_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DIRECT_DEBIT_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DIRECT_DEBIT_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DIRECT_DEBIT_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"TC FAILED: Transaction is already confirmed or not in pending status\");\n\t\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Transaction is already confirmed or not in pending status\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'onholdToConfirmSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'onholdToConfirmSEPA' method\");\n\t\t}\n\t}",
"@Test(priority = 4)\n\tpublic void testPayment() {\n\t\tlogger = extent.startTest(\"passed\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 100);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"payment-info\")));\n\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"swit\\\"]/div[1]\")).click();\n\t\tdriver.findElement(By.id(\"btn\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t// For netbanking login\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"123456\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Pass@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='LOGIN']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t//\n\t\tdriver.findElement(By.name(\"transpwd\")).sendKeys(\"Trans@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='PayNow']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Order Details\");\n\t\tlogger.log(LogStatus.PASS, \"testPayment Testcase is passed\");\n\t}",
"public boolean deliveryEstimationCheck(Map<String,String> dataMap) throws Exception\r\n\t{\t\r\n\t\tList<String> listOfPincode = new ArrayList<String>();\r\n\t\tString pincode = dataMap.get(\"Pincode\");\r\n\t\tString changePincode = dataMap.get(\"ChangePincode\");\r\n\t\tString product = dataMap.get(\"Product\");\r\n\t\tString message=null;\r\n\t\tlistOfPincode.add(pincode);\r\n\t\tlistOfPincode.add(changePincode);\r\n\t\t\r\n\t\tfor(int i=0;i<listOfPincode.size();i++)\r\n\t\t{\r\n\t\t\tString code = listOfPincode.get(i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(code==null||code.length()!=6||code.matches(\"[0-9]+\") == false)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The pincode selected should be 6 digit or not a numberic. Currently set as \"+code+\". ReEnter a valid pincode\");\r\n\t\t\t\tBaseClass.skipTestExecution(\"The pincode selected should be 6 digit. Currently set as \"+code+\". ReEnter a valid pincode\");\r\n\t\t\t}\t\t\t\r\n\t\t\t\tmessage = enterPincode(code);\r\n\t\t\t\t//System.out.println(message.split(\"?\")[1]);\r\n\t\t\t\tif(message.contains(\"Not available for delivery, please change your pincode\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(changePincode==null||changePincode.equalsIgnoreCase(\"na\")||changePincode.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(message);\r\n\t\t\t\t\t\tBaseClass.skipTestExecution(\"The product: \"+product+\" selected cannot be delivered to the select location: \"+code);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tproductPageIndia.clickWebElement(productPageIndia.ChangePin);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(message);\r\n\t\tstartTest.log(LogStatus.INFO, message,\"Successfull\");\r\n\t\tstartTest.log(LogStatus.INFO, \"User has insert the pincode successfull and gets the estimation date \"+pincode,\"Successfull\");\r\n\t\treturn true;\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n\tpublic void returnDebitSEPA() throws Exception {\n\t\ttry {\n\t\t\t// Launch the browser and load the default URL\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t// Title for HTML report\n\t\t\ttest = extend.createTest(\"Vendor script execution for SEPA 'RETURN_DEBIT_SEPA'\");\n\t\t\t// Steps\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\t// Checking payment method enabled or disabled\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Checking Guarantee payment enabled or disabled\n\t\t\tif (element.Sepa_Enable_Payment_Guarantee_CheckBox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Guarantee_CheckBox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(4000);\n\t\t\t// Read the data from excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed()) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed() == true) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t// Get the amount from order success page front end\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\t// Get the TID from order success page front end\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t// Enter required parameter\n\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"RETURN_DEBIT_SEPA\");\n\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\telement.Tid_Payment.sendKeys(TID);\n\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\telement.Status.clear();\n\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\telement.Tid.sendKeys(\"13245678945612345\");\n\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\tString callback_message = element.callback_message.getText();\n\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\n\t\t\t\t\tSystem.out.println(\"Callback execution message: \" + callback_message_updated);\n\t\t\t\t\tif (callback_message\n\t\t\t\t\t\t\t.contains(\"Novalnet callback received. Chargeback executed successfully for the TID:\")) {\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\tSystem.out.println(\"Backend order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC PASSED: RETURN_DEBIT_SEPA execution message and back end order note message text was matched successfully.\");\n\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: RETURN_DEBIT_SEPA execution message and back end order note message text was matched successfully.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC FAILED: RETURN_DEBIT_SEPA execution message and back end order note message text was not matched.\");\n\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\"TC FAILED: RETURN_DEBIT_SEPA execution messageA and back end order note message text was not matched.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'returnDebitSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'returnDebitSEPA' method\");\n\t\t}\n\t}",
"@Test\n\tpublic void creditEntrySEPA() throws Exception {\n\t\ttry {\n\t\t\t// Launch the browser and load the default URL\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t// Title for HTML report\n\t\t\ttest = extend.createTest(\"Vendor script execution for 'CREDIT_ENTRY_SEPA'\");\n\t\t\t// Steps\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\t// Checking payment method enabled or disabled\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Checking Guarantee payment enabled or disabled\n\t\t\tif (element.Sepa_Enable_Payment_Guarantee_CheckBox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Guarantee_CheckBox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(4000);\n\t\t\t// Read the datafrom excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed()) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed() == true) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000); // Get the amount from order success page front end\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"CREDIT_ENTRY_SEPA\");\n\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\telement.Tid_Payment.sendKeys(TID);\n\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\telement.Status.clear();\n\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\telement.Tid.sendKeys(\"13245678945612345\");\n\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\tString callback_message = element.callback_message.getText();\t\t\t\t\t\n\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\n\t\t\t\t\tSystem.out.println(\"Callback execution message: \" + callback_message_updated);\n\t\t\t\t\tif (callback_message.contains(\"Novalnet Callback Script executed successfully for the TID:\")) {\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC PASSED: CREDIT_ENTRY_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: CREDIT_ENTRY_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC FAILED: CREDIT_ENTRY_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\"TC FAILED: CREDIT_ENTRY_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'creditEntrySEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'creditEntrySEPA' method\");\n\t\t}\n\t}",
"private boolean verifyCalculatedPremium(String adjustmentOption, HashMap<String, String> testData,\n\t\t\tExtentTest extentedReport, boolean screenshot) {\n\t\tboolean isOk = false;\n\n\t\tList<WebElement> lstCalculatedPremium = driver.findElements(By.cssSelector(cssPaySchedCalculatedPremium));\n\t\tfloat expectedTotalCalculatedPremium = 0;\n\t\tString actualTotalCalculatedPremium = divTotalCalculatedPremium.getText().trim();\n\t\tString oldPremium, adjustmentAmount, totalPayment, firstPayment, installmentPayment;\n\t\toldPremium = adjustmentAmount = totalPayment = firstPayment = installmentPayment = null;\n\t\tint totalInstallments = adjustmentOption.contains(\"spread\") ? 12\n\t\t\t\t: (adjustmentOption.contains(\"single\") ? 13 : 12);\n\t\tif (adjustmentOption.contains(\"spread\") || adjustmentOption.contains(\"single\")) {\n\t\t\toldPremium = spnExistingPremiumAcceptanceTab.getText().trim();\n\t\t\tadjustmentAmount = spnAdjustmentAmountAcceptanceTab.getText().trim();\n\t\t\ttotalPayment = spnNewPremiumAcceptanceTab.getText().trim();\n\t\t\tfirstPayment = testData.get(\"firstPaymentCoverTab\");\n\t\t\tinstallmentPayment = testData.get(\"installmentPaymentCoverTab\");\n\t\t} else {\n\t\t\ttotalPayment = spnTotalPaymentAcceptanceTab.getText().trim();\n\t\t\tfirstPayment = spnFirstPaymentAcceptanceTab.getText().trim();\n\t\t\tinstallmentPayment = spnInstallmentPaymentAcceptanceTab.getText().trim();\n\t\t}\n\n\t\tboolean isOkRowCount = lstCalculatedPremium.size() == totalInstallments;\n\t\tLog.message(\"Row count: [\" + lstCalculatedPremium.size() + \"]; totalInstallments: [\" + totalInstallments\n\t\t\t\t+ \"]; isOkRowCount: [\" + isOkRowCount + \"]\", extentedReport);\n\t\tboolean isOkFirstPayment = false;\n\t\tboolean isOkInstallmentPayment = false;\n\t\tboolean isOkTotalCalculatedPremium = false;\n\t\tboolean isOkAdjustmentAmount = false; \n\n\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\tfloat actualCalculatedPremium = Float.parseFloat(lstCalculatedPremium.get(i).getText().trim());\n\t\t\texpectedTotalCalculatedPremium += actualCalculatedPremium;\n\n\t\t\tif (i == 0) {\n\t\t\t\tisOkFirstPayment = String.format(\"%.2f\", actualCalculatedPremium).equals(firstPayment);\n\t\t\t\tLog.message(\"Row #\" + (i + 1) + \": actualCalculatedPremium: [\"\n\t\t\t\t\t\t+ String.format(\"%.2f\", actualCalculatedPremium) + \"]; firstPayment: [\" + firstPayment\n\t\t\t\t\t\t+ \"]; isOkFirstPayment: [\" + isOkFirstPayment + \"]\", extentedReport);\n\t\t\t} else if (i == 1 && adjustmentOption.contains(\"single\")) {\n\t\t\t\tisOkAdjustmentAmount = String.format(\"%.2f\", actualCalculatedPremium).equals(adjustmentAmount);\n\t\t\t\tLog.message(\"Row #\" + (i + 1) + \": actualCalculatedPremium: [\" + String.format(\"%.2f\", actualCalculatedPremium)\n\t\t\t\t\t\t+ \"]; adjustmentAmount: [\" + adjustmentAmount + \"]; isOkAdjustmentAmount: [\"\n\t\t\t\t\t\t+ isOkAdjustmentAmount + \"]\", extentedReport);\n\t\t\t} else {\n\t\t\t\tif (!adjustmentOption.contains(\"single\") && i > 1 && !isOkInstallmentPayment) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (adjustmentOption.contains(\"single\") && i > 2 && !isOkInstallmentPayment) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tif (adjustmentOption.contains(\"spread\")) {\n\t\t\t\t\t\tisOkInstallmentPayment = !String.format(\"%.2f\", actualCalculatedPremium)\n\t\t\t\t\t\t\t\t.equals(installmentPayment);\n\t\t\t\t\t} else { // single or edit quote\n\t\t\t\t\t\tisOkInstallmentPayment = String.format(\"%.2f\", actualCalculatedPremium)\n\t\t\t\t\t\t\t\t.equals(installmentPayment);\n\t\t\t\t\t}\n\t\t\t\t\tLog.message(\"Row #\" + (i + 1) + \": actualCalculatedPremium: [\" + String.format(\"%.2f\", actualCalculatedPremium)\n\t\t\t\t\t\t\t+ \"]; installmentPayment: [\" + installmentPayment + \"]; isOkInstallmentPayment: [\"\n\t\t\t\t\t\t\t+ isOkInstallmentPayment + \"]\", extentedReport);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tisOkTotalCalculatedPremium = actualTotalCalculatedPremium\n\t\t\t\t.equals(String.format(\"%.2f\", expectedTotalCalculatedPremium))\n\t\t\t\t&& actualTotalCalculatedPremium.equals(totalPayment);\n\t\tLog.message(\"actualTotalCalculatedPremium: [\" + actualTotalCalculatedPremium\n\t\t\t\t+ \"]; expectedTotalCalculatedPremium: [\" + String.format(\"%.2f\", expectedTotalCalculatedPremium)\n\t\t\t\t+ \"]; totalPayment: [\" + totalPayment + \"]\", extentedReport);\n\t\tif (adjustmentOption.contains(\"spread\")) {\n\t\t\tString calcAdjAmount = String.format(\"%.2f\",\n\t\t\t\t\tFloat.parseFloat(actualTotalCalculatedPremium) - Float.parseFloat(oldPremium));\n\t\t\tisOkAdjustmentAmount = calcAdjAmount.equals(adjustmentAmount);\n\t\t\tLog.message(\n\t\t\t\t\t\"actualCalculatedPremium - oldPremium: [\" + calcAdjAmount + \"]; adjustmentAmount: [\"\n\t\t\t\t\t\t\t+ adjustmentAmount + \"]; isOkAdjustmentAmount: [\" + isOkAdjustmentAmount + \"]\",\n\t\t\t\t\textentedReport);\n\t\t}\n\t\t\n\t\tif (adjustmentOption.contains(\"spread\") || adjustmentOption.contains(\"single\")) {\n\t\t\tisOk = isOkRowCount && isOkFirstPayment && isOkInstallmentPayment && isOkTotalCalculatedPremium\n\t\t\t\t\t&& isOkAdjustmentAmount;\n\t\t\tLog.message(\"isOkRowCount: [\" + isOkRowCount + \"]; isOkFirstPayment: [\" + isOkFirstPayment\n\t\t\t\t\t+ \"]; isOkInstallmentPayment: [\" + isOkInstallmentPayment + \"]; isOkTotalCalculatedPremium: [\"\n\t\t\t\t\t+ isOkTotalCalculatedPremium + \"]; isOkAdjustmentAmount:[\" + isOkAdjustmentAmount + \"]\",\n\t\t\t\t\textentedReport);\n\t\t} else {\n\t\t\tisOk = isOkRowCount && isOkFirstPayment && isOkInstallmentPayment && isOkTotalCalculatedPremium;\n\t\t\tLog.message(\"isOkRowCount: [\" + isOkRowCount + \"]; isOkFirstPayment: [\" + isOkFirstPayment\n\t\t\t\t\t+ \"]; isOkInstallmentPayment: [\" + isOkInstallmentPayment + \"]; isOkTotalCalculatedPremium: [\"\n\t\t\t\t\t+ isOkTotalCalculatedPremium + \"]\", extentedReport);\n\t\t}\t\n\n\t\treturn isOk;\n\t}",
"@Test\n public void makeAndRetrievePbaPaymentsByProbate() {\n String accountNumber = testProps.existingAccountNumber;\n CreditAccountPaymentRequest accountPaymentRequest = PaymentFixture.aPbaPaymentRequestForProbate(\"90.00\",\n \"PROBATE\",accountNumber);\n accountPaymentRequest.setAccountNumber(accountNumber);\n PaymentDto paymentDto = paymentTestService.postPbaPayment(USER_TOKEN, SERVICE_TOKEN, accountPaymentRequest).then()\n .statusCode(CREATED.value()).body(\"status\", equalTo(\"Success\")).extract().as(PaymentDto.class);\n\n assertTrue(paymentDto.getReference().startsWith(\"RC-\"));\n\n // Get pba payment by reference\n PaymentDto paymentsResponse =\n paymentTestService.getPbaPayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then()\n .statusCode(OK.value()).extract().as(PaymentDto.class);\n\n assertThat(paymentsResponse.getAccountNumber()).isEqualTo(accountNumber);\n\n // delete payment record\n paymentTestService.deletePayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then().statusCode(NO_CONTENT.value());\n\n }",
"@Test(groups=\"SMR1137\")\r\n\tpublic void smr1137(){\r\n\t\ttry {\r\n\t\t\t//final String firstName=testDataOR.get(\"mono_first_name\"),lastName=testDataOR.get(\"mono_last_name\"); \r\n\t\t\t//login(\"URLEportal\",testDataOR.get(\"mono_user_login\"),firstName,lastName);\r\n\t\t\teportalCust=testDataOR.get(\"customer\");\r\n\t\t\tfinal String firstName=testDataOR.get(\"superuser_first_name\"),lastName=testDataOR.get(\"superuser_last_name\");\r\n\t\t\tlogin(\"URLEportal\",testDataOR.get(\"superuser\"),firstName,lastName);\r\n\t\t\t//login(\"URLEverest\",testDataOR.get(\"superuser\"),firstName,lastName);\r\n\t\t\t/*logger.info(\"SMR1137 execution started\");\r\n\t\t\tfinal String customerName=testDataOR.get(\"customer\");\r\n\r\n\t\t\t//Access ePortal and 'In Store Payment' menu should be available\r\n\t\t\tlogger.info(\"Step 1 :\");\r\n\t\t\tlogger.info(\"Access eportal with superuser\");\r\n\t\t\tselUtils.verifyElementDisp(selUtils.getCommonObject(\"instorepay_tab_xpath\"), INSTOREPAY);\r\n\r\n\t\t\t//logout from eportal and login everest, select customer in eportal\r\n\t\t\tlogger.info(\"Step 2,3,4:\");\r\n\t\t\tlogoutNEvselCust(customerName);\r\n\t\t\t\r\n\t\t\t//Disable ‘ePayment’ module and validate\r\n\t\t\tlogger.info(\"Step 5:\");\r\n\t\t\tdisableModNVal(\"ep_ckbx_id\", EPAYMENT);\r\n\t\t\t\t\t\t\r\n\t\t\t//Disable 'Card Payment' module and validate\r\n\t\t\tlogger.info(\"Step 6:\");\r\n\t\t\tdisableModNVal(\"cp_ckbx_id\", CARDPAYMENT);\r\n\t\t\t\t\t\t\r\n\t\t\t//Access ePortal with a superuser and select customer\r\n\t\t\t//In Store Payment menu should not be available\r\n\t\t\tlogger.info(\"Step 7:\");\r\n\t\t\tlogoutEpSelCust(customerName);\r\n\t\t\tAssert.assertFalse(selUtils.isElementPresentCommon(\"instorepay_tab_xpath\"),INSTOREPAY+\" menu is available\");\r\n\t\t\tlogger.info(\"In store payment menu is not available\");\r\n\r\n\t\t\t//logout from eportal and login everest, select customer in eportal\r\n\t\t\tlogger.info(\"Step 8,9:\");\r\n\t\t\tlogoutNEvselCust(customerName);\r\n\t\t\t\r\n\t\t\t//Enable 'Card Payment' module and validate\r\n\t\t\tlogger.info(\"Step 10\");\r\n\t\t\tenableModNVal(\"cp_ckbx_id\", CARDPAYMENT);\r\n\t\t\r\n\t\t\t\r\n\t\t\t//Access ePortal and 'In Store Payment' menu should be available\r\n\t\t\tlogger.info(\"Step 11\");\r\n\t\t\tlogoutEpSelCust(customerName);\r\n\t\t\tselUtils.verifyElementDisp(selUtils.getCommonObject(\"instorepay_tab_xpath\"), INSTOREPAY);*/\r\n\t\t\tlogger.info(\"SMR1137 execution started\");\r\n\t\t}catch (Throwable t) {\r\n\t\t\thandleException(t);\r\n\t\t}\r\n\t}",
"protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }",
"boolean hasPaymentUrl();",
"boolean isSetPaymentDelay();",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFiPPPoE() {\n\t\tboolean flag = oTest.checkWiFiPPPoE();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Step\n\tpublic void verify_the_DP_Topic_of_retire_status(String Page)throws Exception {\n\n\t\tLong dpKey=Serenity.sessionVariableCalled(\"DPkey\"); \n\n\t\tswitch(Page){\n\t\tcase \"AWB\": \n\t\t\tMongoDBUtils.getDPAndTopicRetire(\"No Disposition\");\n\t\t\tString medicalPolicy=Serenity.sessionVariableCalled(\"Medicalpolicy\");\n\t\t\tString MedPolicyXpath = StringUtils.replace(oCPWPage.MedPolicyAfterSearch, \"MedPolicyValue\", medicalPolicy);\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.PolicySelectionDrawerButton);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_10_Seconds);\n\t\t\tobjSeleniumUtils.Enter_given_Text_Element(oCPWPage.MedPolicySearchBox, medicalPolicy);\n\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.MedPolicySearchButton);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_3_Seconds);\n\t\t\tobjSeleniumUtils.clickGivenXpath(MedPolicyXpath); \n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.ApplyToOpportunityGridBtn);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\tboolean statusValue=oGenericUtils.isElementExist(oCPWPage.nonRecordsOfMedicalPolicies);\n\t\t\tif(statusValue)\n\t\t\t{\n\t\t\t\tAssert.assertTrue(\"Non Medical Policy / Topic \"+oCPWPage.nonRecordsOfMedicalPolicies+\"Status\",statusValue);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tobjSeleniumUtils.Enter_given_Text_Element(oCPWPage.SearchFileldXpath, String.valueOf(dpKey));\n\t\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.SearchButtonXpath);\n\t\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\t\tAssert.assertTrue(\"Non Records Opportunities \"+oCPWPage.nonRecordsOfOpportunities+\"Status\",oGenericUtils.isElementExist(oCPWPage.nonRecordsOfOpportunities));\n\t\t\t}\n\t\t\tbreak;\n\t\tcase \"RWO\":\n\t\t\tMongoDBUtils.getDPAndTopicRetire(\"No Disposition\");\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.reviewWorkedOpportunities);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\tobjSeleniumUtils.Enter_given_Text_Element(oCPWPage.SearchFileldXpath, String.valueOf(dpKey));\n\t\t\tobjSeleniumUtils.clickGivenXpath(oCPWPage.SearchButtonXpath);\n\t\t\tobjSeleniumUtils.defaultWait(ProjectVariables.TImeout_6_Seconds);\n\t\t\tAssert.assertTrue(\"Non Records Opportunities \"+oCPWPage.nonRecordsOfOpportunities+\"Status\",oGenericUtils.isElementExist(oCPWPage.nonRecordsOfOpportunities));\n\t\t\tbreak;\n\t\tcase \"PM\":\n\t\t\tMongoDBUtils.getDPAndTopicRetire(\"Present\"); \n\t\t\tThread.sleep(2000);\n\t\t\t//Click on 'Reset' button\n\t\t\tobjSeleniumUtils.highlightElement(oFilterDrawer.sReset);\n\t\t\toGenericUtils.clickButton(By.xpath(oFilterDrawer.sReset));\n\t\t\tThread.sleep(2000);\n\t\t\tboolean bstatus=oCPWPage.Enter_the_given_MP_Topic_in_filter_Drawer(Serenity.sessionVariableCalled(\"Medicalpolicy\"));\n\n\t\t\tif(bstatus)\n\t\t\t{\n\t\t\t\tobjSeleniumUtils.clickGivenXpath(StringUtils.replace(oFilterDrawer.Medicalpolicy_Checkbox, \"value\", Serenity.sessionVariableCalled(\"Medicalpolicy\")));\n\t\t\t\toFilterDrawer.user_filters_by_clicking_on_Apply_for_Medical_Policy_Topic();\n\t\t\t\toOppurtunityDeck.validatethegivenDatainOpportunityDeck(Serenity.sessionVariableCalled(\"DPkey\").toString(), \"Updated DPkey\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tAssert.assertTrue(\"DPKey not displayed as its retired\"+Serenity.sessionVariableCalled(\"DPkey\"), true);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Test\n public void defineShippingmethod()\n {\n library.agreeCheckbox();\n library.isAlertPresent1();\n library.enterCountryToCheckout(country);\n //Verify product added to shopping cart successfully\n library.verifyBillingAddressWindow();\n library.definingTheAddress(country,city,address1,postalCode,phone);\n library.shippingAddressSelect();\n library.verifyShippingMethodWindow();\n\n\n }",
"public boolean isTestPayment() {\n\t\treturn isTestPayment;\n\t}",
"boolean isCreditCardIsSingleAvailablePayment();",
"static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }",
"boolean checkVerification();",
"CarPaymentMethod processPayPal();",
"boolean hasMerchantData();",
"boolean hasMerchantData();",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t public void AnonymousGasSmrCR_singleregister_alreatchecked(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Gas customer is able to do SMR journey\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGasCRdata\");\n\t\t\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"CrmDetailsforSMR\");\n\t\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"ViewuserVerifynew\");\t\t\n\t\t\t new SubmitMeterReadAction()\n\t\t\t .openSMRpageCRGas(\"Gas\")\t\t\t \n\t\t\t .verifyAnonymousSAPGasCus_CR_Multiplereg_newuser_alertchecked(smrProfile) ;\n\t\t\t // .VerifySAPCRM_SMR(crmuserProfile,userProfile,smrProfile);\n\t\t\t \t}",
"@Test\n\t@TestProperties(name = \"PnP procedure in NMS cold reboot IPV4 including PnP iRelay configuration\", returnParam = {\n\t\t\t\"IsTestWasSuccessful\" }, paramsExclude = { \"IsTestWasSuccessful\" })\n\tpublic void PnPColdRebootIPV4iRelayConfiguration() throws Exception {\n\t\tisWarmReset = false;\n\t\tisIRelayConfig = true;\n\t\tmainProcedure();\n\t\tpostTest();\n\t}",
"@Test\n\tpublic void refundByBankTransferEuSEPA() throws Exception {\n\t\ttry {\n\t\t\tUtility.initConfiguration();\n\t\t\tThread.sleep(3000);\n\t\t\t// Login to back end and check payment method is enabled or not\n\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\tThread.sleep(3000);\n\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\ttest = extend.createTest(\"Vendor script execution for SEPA 'REFUND_BY_BANK_TRANSFER_EU'\");\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\tThread.sleep(3000);\n\t\t\telement.WooCommerce_Settings.click();\n\t\t\telement.Payment_Tab.click();\n\t\t\tThread.sleep(2000);\n\t\t\telement.Sepa_Payment_Display.click();\n\t\t\t// Checking payment method enabled or disabled\n\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\t// Checking Guarantee payment enabled or disabled\n\t\t\tif (element.Sepa_Enable_Payment_Guarantee_CheckBox.isSelected()) {\n\t\t\t\telement.Sepa_Enable_Payment_Guarantee_CheckBox.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t}\n\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\tThread.sleep(3000);\n\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\tThread.sleep(3000);\n\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\tThread.sleep(3000);\n\t\t\t// Read the data from excel sheet\n\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\tif (element.Sepa_Label.isDisplayed()) {\n\t\t\t\tif (element.Sepa_Radio_button.isDisplayed() == true) {\n\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t}\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\telement.Place_Order.click();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\tSystem.out.println(\"Order amount:\" + totalOrderAmount);\n\t\t\t\t\tSystem.out.println(\"TID:\" + TID);\n\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t// Enter required parameter\n\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"REFUND_BY_BANK_TRANSFER_EU\");\n\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\telement.Tid_Payment.sendKeys(TID);\n\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\telement.Status.clear();\n\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\telement.Tid.sendKeys(\"13245678945612345\");\n\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\tString callback_message = element.callback_message.getText();\t\t\t\t\t\n\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\n\t\t\t\t\tSystem.out.println(\"Callback execution message: \" + callback_message_updated);\n\t\t\t\t\tif (callback_message.contains(\n\t\t\t\t\t\t\t\"Novalnet callback received. Refund/Bookback executed successfully for the TID:\")) {\n\t\t\t\t\t\t// Go to shop front end and check the order status update\n\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\tString BEOrderNotes_CallBackMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotes_CallBackMessage);\n\t\t\t\t\t\t// Verify the callback execution message is updated in the order note\n\t\t\t\t\t\tif (BEOrderNotes_CallBackMessage.equalsIgnoreCase(callback_message_updated)) {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC PASSED: REFUND_BY_BANK_TRANSFER_EU execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: REFUND_BY_BANK_TRANSFER_EU execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"TC FAILED: REFUND_BY_BANK_TRANSFER_EU execution message and back end order note message text was not matched successfully\");\n\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\"TC PASSED: REFUND_BY_BANK_TRANSFER_EU execution and back end order note message text was not matched successfully\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"ERROR: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'refundByBankTransferEuSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'refundByBankTransferEuSEPA' method\");\n\t\t}\n\t}",
"public boolean _paymentpage_overrideurl(String _url) throws Exception{\n__c.LogImpl(\"21114113\",_url,0);\n //BA.debugLineNum = 172;BA.debugLine=\"If Url.Contains(\\\"api.com\\\") Then\";\nif (_url.contains(\"api.com\")) { \n };\n //BA.debugLineNum = 175;BA.debugLine=\"Return True\";\nif (true) return __c.True;\n //BA.debugLineNum = 176;BA.debugLine=\"End Sub\";\nreturn false;\n}",
"public void VerifyBillingTabPaymentDetails(String payment0, String payment1, String payment2, String payment3){\r\n\t\tString[] Payment = {getValue(payment0),getValue(payment1),getValue(payment2),getValue(payment3)};\r\n\t\tString Payments=\"\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Payment Methods should be present in Checkout Page\");\r\n\r\n\t\ttry{\r\n\t\t\tsleep(8000);\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"txtCheckoutPaymentMethods\"));\r\n\r\n\t\t\tfor(int i=0; i<ele.size(); i++){\r\n\t\t\t\tif(getText(ele.get(i)).contains(Payment[i])){\r\n\t\t\t\t\tSystem.out.println(getText(ele.get(i))+\" payment option is present\");\r\n\t\t\t\t\tPayments=Payments.concat(getText(ele.get(i))).concat(\", \");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.println(\"one or more Payment options are not present\");\r\n\t\t\t\t\tthrow new Error(\"one or more Payment options are not present\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- All the payment options\"+Payments+\" are present\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Element is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutBillingAddress\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCheckoutPaymentMethods\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t\tcatch (Error e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- one or more Payment options are not present\");\r\n\r\n\t\t}\r\n\t}",
"public void loginWithPersonalDeviceWithSkip()\n\t{\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click(); \n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \tor Verify Failed popup\n\t\t\n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\t\t// 60 + 30 sec taken by try catch \n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\t\n\t\t\tGeneric.wait(2);\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e.getMessage());\n\t\t\t\n\t\t\t/*Log.info(\"======== Page taking too much time to load , trying to click on Lets Login by cancelling phone verification ========\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\tverifyAbortButton.click();\n\t\t\t\tgotoHome();\t\n\t\t\t\treturn;\t\n\t\t\t}\n\t\t\tcatch(Exception e1)\n\t\t\t{\n\t\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\\n\"+e1.getMessage());\n\t\t\t}*/\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\t// ==== Handle Verify Phone Authentication failed alert ==== //\n\t\tif (checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button2\"))\n\t\t{\n\t\t\tLog.info(\"======== Skipping Phone verification ========\");\n\t\t\tdriver.findElement(By.id(\"button2\")).click();\n\t\t\tskipDontAskCheckbox.click();\n\t\t\tcontinueButton.click();\t\n\t\t\tGeneric.wait(5);\n\t\t\treturn;\t// goto to VerifyDevice Page from verifyLogin() method\t\t\n\t\t}\t\t\t\n\t\tgotoHome();\t\t\n\t}",
"@Test\n\t\tpublic void debitCollectionSEPA() throws Exception {\n\t\t\ttry {\n\t\t\t\t// Launch the browser and load the default URL\n\t\t\t\tUtility.initConfiguration();\n\t\t\t\tThread.sleep(3000);\n\t\t\t\t// Login to back end and check payment method is enabled or disabled\n\t\t\t\tUtility.wooCommerceBackEndLogin();\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tElementLocators element = PageFactory.initElements(driver, ElementLocators.class);\n\t\t\t\t// Title for HTML report\n\t\t\t\ttest = extend.createTest(\"Vendor script execution for SEPA 'DEBT_COLLECTION_SEPA'\");\n\t\t\t\t// Steps\n\t\t\t\tActions actions = new Actions(driver);\n\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\tThread.sleep(3000);\n\t\t\t\telement.WooCommerce_Settings.click();\n\t\t\t\telement.Payment_Tab.click();\n\t\t\t\tThread.sleep(2000);\n\t\t\t\telement.Sepa_Payment_Display.click();\n\t\t\t\t// Checking payment method enabled or disabled\n\t\t\t\tif (!element.Sepa_Enable_Payment_Method_Checkbox.isSelected()) {\n\t\t\t\t\telement.Sepa_Enable_Payment_Method_Checkbox.click();\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t}\n\t\t\t\t// Checking Guarantee payment enabled or disabled\n\t\t\t\tif (element.Sepa_Enable_Payment_Guarantee_CheckBox.isSelected()) {\n\t\t\t\t\telement.Sepa_Enable_Payment_Guarantee_CheckBox.click();\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t}\n\t\t\t\telement.Sepa_Payment_Save_Changes.click();\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tdriver.navigate().to(Constant.shopfrontendurl);\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tUtility.wooCommerceCheckOutProcess();\n\t\t\t\tThread.sleep(4000);\n\t\t\t\t// Read the data from excel sheet\n\t\t\t\tMap<String, String> UserData = new HashMap<String, String>();\n\t\t\t\tUserData = Data.ExcelReader_PaymentMethods();\n\t\t\t\t// Check whether payment method is displayed in checkout page\n\t\t\t\tif (element.Sepa_Label.isDisplayed()) {\n\t\t\t\t\tif (element.Sepa_Radio_button.isDisplayed() == true) {\n\t\t\t\t\t\telement.Sepa_Radio_button.click();\n\t\t\t\t\t}\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\telement.Sepa_Iban_TextBox.sendKeys(UserData.get(\"SEPAIBAN\"));\n\t\t\t\t\telement.Place_Order.click();\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);\n\t\t\t\t\t// After order placed successfully verify Thank you message displayed\n\t\t\t\t\tString thankyoumessage = element.FE_Thank_You_Page_Text.getText();\n\t\t\t\t\tif (thankyoumessage.equals(\"Thank you. Your order has been received.\")) {\n\t\t\t\t\t\tSystem.out.println(\"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\t\ttest.log(Status.INFO, \"Order placed successfully using Direct Debit SEPA\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t\t// Get the amount from order success page front end\n\t\t\t\t\t\tString totalOrderAmount = element.OrderDetails_TotalAmount.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\t\t// Get the TID from order success page front end\n\t\t\t\t\t\tString TID = element.OrderDetails_Note_TID.getText().replaceAll(\"[^0-9]\", \"\");\n\t\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\t\t\t\t\t// Go to callback execution site and enter vendor script URL\n\t\t\t\t\t\tdriver.navigate().to(Constant.vendorscripturl);\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t\telement.Vendor_Script_Url.sendKeys((Constant.shopfrontendurl) + \"?wc-api=novalnet_callback\");\n\t\t\t\t\t\t// Enter required parameter\n\t\t\t\t\t\telement.Vendor_Id.clear();\n\t\t\t\t\t\telement.Vendor_Id.sendKeys(\"4\");\n\t\t\t\t\t\telement.Vendor_Auth_Code.clear();\n\t\t\t\t\t\telement.Vendor_Auth_Code.sendKeys(\"JyEtHUjjbHNJwVztW6JrafIMHQvici\");\n\t\t\t\t\t\telement.Product_Id.clear();\n\t\t\t\t\t\telement.Product_Id.sendKeys(\"14\");\n\t\t\t\t\t\telement.Tariff_Id.clear();\n\t\t\t\t\t\telement.Tariff_Id.sendKeys(\"30\");\n\t\t\t\t\t\telement.Payment_Type_Edit_Button.click();\n\t\t\t\t\t\tSelect selectpaymenttype = new Select(element.Payment_Type_Selectbox);\n\t\t\t\t\t\tselectpaymenttype.selectByVisibleText(\"DEBT_COLLECTION_SEPA\");\n\t\t\t\t\t\telement.Test_Mode.clear();\n\t\t\t\t\t\telement.Test_Mode.sendKeys(\"1\");\n\t\t\t\t\t\telement.Tid_Payment.clear();\n\t\t\t\t\t\telement.Tid_Payment.sendKeys(TID);\n\t\t\t\t\t\telement.Amount.clear();\n\t\t\t\t\t\telement.Amount.sendKeys(totalOrderAmount);\n\t\t\t\t\t\telement.Currency.clear();\n\t\t\t\t\t\telement.Currency.sendKeys(\"EUR\");\n\t\t\t\t\t\telement.Status.clear();\n\t\t\t\t\t\telement.Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid_Status.clear();\n\t\t\t\t\t\telement.Tid_Status.sendKeys(\"100\");\n\t\t\t\t\t\telement.Tid.clear();\n\t\t\t\t\t\telement.Tid.sendKeys(\"13245678945612345\");\n\t\t\t\t\t\telement.Execute_Button.click();\n\t\t\t\t\t\tString callback_message = element.callback_message.getText();\n\t\t\t\t\t\tString callback_message_updated = callback_message.substring(9, callback_message.length());\n\t\t\t\t\t\tSystem.out.println(\"Callback execution message: \" + callback_message_updated);\n\t\t\t\t\t\tif (callback_message.contains(\"Novalnet Callback Script executed successfully for the TID:\")) {\n\t\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t\t\tdriver.navigate().to(Constant.shopbackendurl);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tactions.moveToElement(element.WooCommerce).perform();\n\t\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t\t\telement.WooCommerce_Orders.click();\n\t\t\t\t\t\t\telement.Backend_Order_Number.click();\n\t\t\t\t\t\t\tString BEOrderNotesMessage = element.BE_OrderNotes_Message.getText();\n\t\t\t\t\t\t\tSystem.out.println(\"Back end order note: \" + BEOrderNotesMessage);\n\t\t\t\t\t\t\tif (callback_message_updated.equals(BEOrderNotesMessage)) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DEBT_COLLECTION_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t\ttest.log(Status.PASS,\n\t\t\t\t\t\t\t\t\t\t\"TC PASSED: DEBT_COLLECTION_SEPA execution message and back end order note message text was matched successfully\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DEBT_COLLECTION_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t\ttest.log(Status.FAIL,\n\t\t\t\t\t\t\t\t\t\t\"TC FAILED: DEBT_COLLECTION_SEPA execution message and back end order note message text was not matched\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t\ttest.log(Status.ERROR, \"ERROR: Callback response message is displayed wrongly\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t\ttest.log(Status.FAIL, \"TC FAILED: Order was not placed successfully using Direct Debit SEPA\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Close browser\n\t\t\tUtility.closeBrowser();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Unexpected error from 'debitCollectionSEPA' method\");\n\t\t\ttest.log(Status.ERROR, \"ERROR: Unexpected error from 'debitCollectionSEPA' method\");\n\t\t}\n\t}",
"private boolean verifyAmountPayable(String adjustmentOption, HashMap<String, String> testData,\n\t\t\tExtentTest extentedReport, boolean screenshot) {\n\t\tboolean isOk = false;\n\t\t\n\t\tint totalInstallments = adjustmentOption.contains(\"spread\") ? 12\n\t\t\t\t: (adjustmentOption.contains(\"single\") ? 13 : 12);\n\t\t//List<WebElement> lstDueDates = driver.findElements(By.cssSelector(cssPaySchedDueDates));\n\t\tList<WebElement> lstCalculatedPremium = driver.findElements(By.cssSelector(cssPaySchedCalculatedPremium));\n\t\tList<WebElement> lstTaxes = driver.findElements(By.cssSelector(cssPaySchedTaxes));\n\t\tList<WebElement> lstCharges = driver.findElements(By.cssSelector(cssPaySchedCharges));\n\t\tList<WebElement> lstChargesTax = driver.findElements(By.cssSelector(cssPaySchedChargesTax));\n\t\tList<WebElement> lstInstallments = driver.findElements(By.cssSelector(cssPaySchedInstallments));\n\t\tList<WebElement> lstAmountPayable = driver.findElements(By.cssSelector(cssPaySchedAmountPayable));\n\t\tfloat expectedTotalAmountPayable = 0;\n\t\tString actualTotalAmountPayable = divTotalAmountPayable.getText().trim();\n\t\tString totalPayment = (adjustmentOption.contains(\"spread\") || adjustmentOption.contains(\"single\"))\n\t\t\t\t? spnNewPremiumAcceptanceTab.getText().trim() : spnTotalPaymentAcceptanceTab.getText().trim();\n\t\t\n\t\tboolean isOkRowCount = lstAmountPayable.size() == totalInstallments;\n\t\tLog.message(\"Row count: [\" + lstCalculatedPremium.size() + \"]; totalInstallments: [\" + totalInstallments\n\t\t\t\t+ \"]; isOkRowCount: [\" + isOkRowCount + \"]\", extentedReport);\n\t\tboolean isOkRowData = false;\n\t\tboolean isOkTotalAmountPayable = false;\n\t\t\n\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\tfloat rowCalculatedPremium = Float.parseFloat(lstCalculatedPremium.get(i).getText().trim());\n\t\t\tfloat rowTaxes = Float.parseFloat(lstTaxes.get(i).getText().trim());\n\t\t\tfloat rowCharges = Float.parseFloat(lstCharges.get(i).getText().trim());\n\t\t\tfloat rowChargesTax = Float.parseFloat(lstChargesTax.get(i).getText().trim());\n\t\t\tfloat rowInstallments = Float.parseFloat(lstInstallments.get(i).getText().trim());\n\t\t\tString rowAmountPayable = lstAmountPayable.get(i).getText().trim();\n\t\t\tString rowTotal = String.format(\"%.2f\", (rowCalculatedPremium + rowTaxes + rowCharges + rowChargesTax + rowInstallments));\n\t\t\texpectedTotalAmountPayable += Float.parseFloat(rowAmountPayable);\n\t\t\tboolean isOkCurrentRow = rowAmountPayable.equals(rowTotal);\n\t\t\tLog.message(\"Row #\" + (i + 1) + \": rowAmountPayable: [\" + rowAmountPayable + \"]; rowTotal: [\" + rowTotal\n\t\t\t\t\t+ \"]; isOkCurrentRow: [\" + isOkCurrentRow + \"]\", extentedReport);\n\t\t\tif (i > 0 && !isOkRowData) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tisOkRowData = isOkCurrentRow;\n\t\t\t}\n\t\t}\n\t\t\n\t\tisOkTotalAmountPayable = actualTotalAmountPayable.equals(String.format(\"%.2f\", expectedTotalAmountPayable))\n\t\t\t\t&& actualTotalAmountPayable.equals(totalPayment);\n\t\tLog.message(\n\t\t\t\t\"actualTotalAmountPayable: [\" + actualTotalAmountPayable + \"]; expectedTotalAmountPayable: [\"\n\t\t\t\t\t\t+ String.format(\"%.2f\", expectedTotalAmountPayable) + \"]; totalPayment: [\" + totalPayment + \"]\",\n\t\t\t\textentedReport);\n\t\t\n\t\tisOk = isOkRowCount && isOkRowData && isOkTotalAmountPayable;\n\t\tLog.message(\"isOkRowCount: [\" + isOkRowCount + \"]; isOkRowData: [\" + isOkRowData\n\t\t\t\t+ \"]; isOkTotalAmountPayable: [\" + isOkTotalAmountPayable + \"]\", extentedReport);\n\t\t\t\t\n\t\t\n\t\treturn isOk;\n\t}",
"boolean hasCampaignprice();",
"private void verifyPrice(SearchResultsPage searchResultsPage) throws Exception {\n\t\tString sPriceSearchResults = searchResultsPage.getSavedPrice(); // the price of the selected flights from the Search Results page\n\t\tWebElement pricePaymentElement = getElement(pricePayment, \"ID\");\n\t\tString sPricePayment = pricePaymentElement.getText().trim(); // string will be similar to: \"$###.##\"\n\n\t\tif (sPricePayment.equals(sPriceSearchResults)) {\n\t\t\tlog.debug(\"Payment price matches\");\n\t\t} \n\t\telse {\n\t\t\tlog.debug(\"Payment price MISmatch\");\n\t\t}\n\t\tlog.info(\"verifyPrice() completed\");\n\t}",
"public void testSponsorPaymentPrefConstant() {\n assertEquals(\"SPONSOR_PAYMENT_PREF is incorrect\", UserConstants.SPONSOR_PAYMENT_PREF, \"sponsor-payment-pref\");\n }",
"public boolean verifyPaymentPlanDisabled() {\n\t\treturn !divPaymentPlan.isEnabled();\n\t}",
"@Test\n\t@TestProperties(name = \"PnP procedure in NMS warm reboot IPV4 No NMS\", returnParam = {\n\t\t\t\"IsTestWasSuccessful\" }, paramsExclude = { \"IsTestWasSuccessful\" })\n\tpublic void PnPWarmRebootIPV4NoNMS() throws Exception {\n\t\tisWarmReset = true;\n\t\tnoNms = true;\n\t\tmainProcedure();\n\t\tpostTest();\n\t}",
"boolean hasPaymentDetailsVersion();",
"public boolean verifyProfile(Profile p) {\n // If the two profiles are exactly the same, they will obviously match each other\n if (this.equals(p)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(this.getImei() + \": Equal Profile.\");\n System.out.println(\"Equal profile.\");\n changedInformation = \"Nothing has changed.\";\n return true;\n }\n\n // Check static attributes, if something is different the profile is invalid\n if (!imei.equals(p.getImei()) | !macAddress.equals(p.getMacAddress()) | !screenResolution.equals(p.getScreenResolution())) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logError(this.getImei() + \": Static attribute changed.\");\n System.out.println(this.getImei() + \": Static attribute changed.\");\n changedInformation = \"Static Attributes changed.\";\n return false;\n }\n\n String logString = this.getImei() + \": \";\n // Comparing the number of changed attributes\n int changed = 0;\n\n if (!softwareVersion.equals(p.getSoftwareVersion())) {\n String message = \" Software Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simOperator.equals(p.getSimOperator())) {\n String message = \" SIM Operator changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simOperatorName.equals(p.getSimOperatorName())) {\n String message = \" SIM Operator Name changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simCountryIso.equals(p.getSimCountryIso())) {\n String message = \" SIM Country Iso changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!simSerialNumber.equals(p.getSimSerialNumber())) {\n String message = \" SIM Serial Number changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!imsiNumber.equals(p.getImsiNumber())) {\n String message = \" IMSI Number changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!ipAddress.equals(p.getIpAddress())) {\n String message = \" IP Address changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!osVersion.equals(p.getOsVersion())) {\n String message = \" OS Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!sdkVersion.equals(p.getSdkVersion())) {\n String message = \" SDK Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!deviceName.equals(p.getDeviceName())) {\n String message = \" Device Name changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!keyboardLanguage.equals(p.getKeyboardLanguage())) {\n String message = \" Keyboard Language changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!networksSSID.equals(p.getNetworksSSID())) {\n String message = \" Networks changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!googleAccounts.equals(p.getGoogleAccounts())) {\n String message = \" Google Accounts changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!memorizedAccounts.equals(p.getMemorizedAccounts())) {\n String message = \" Memorized Accounts changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!inputMethods.equals(p.getInputMethods())) {\n String message = \" Input Methods changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!installedApplications.equals(p.getInstalledApplications())) {\n String message = \" Installed Applications changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n // Dividing the number of changed attributes by the number of checked attributes\n double division = changed/ (double) 16;\n // If the division is greater than the threshold, the two profiles mismatch as they are not similar enough\n if (division >= (1 - ServerUtils.THRESHOLD)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logError(logString);\n System.out.println(\"ERROR: \" + logString);\n return false;\n }\n\n // Checks every list with the threshold\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(\"INFO: \" + logString);\n return compareLists(networksSSID, p.getNetworksSSID(), ServerUtils.THRESHOLD, \"NetworksSSID\", this.imei) &&\n compareLists(googleAccounts, p.getGoogleAccounts(), ServerUtils.ACCOUNTS_THRESHOLD, \"GoogleAccounts\", this.imei) &&\n compareLists(memorizedAccounts, p.getMemorizedAccounts(), ServerUtils.ACCOUNTS_THRESHOLD, \"Accounts\", this.imei) &&\n compareLists(inputMethods, p.getInputMethods(), ServerUtils.THRESHOLD, \"InputMethods\", this.imei) &&\n compareLists(installedApplications, p.getInstalledApplications(), ServerUtils.THRESHOLD, \"Applications\", this.imei);\n }",
"private void issecond() {\n\n\t\t\tString tn = \"\";\n\t\t\tif (mytn == null || ((String) mytn).length() == 0) {\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\t\tbuilder.setTitle(\"错误提示\");\n\t\t\t\tbuilder.setMessage(\"网络连接失败,请重试!\");\n\t\t\t\tbuilder.setNegativeButton(\"确定\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tbuilder.create().show();\n\t\t\t} else {\n\t\t\t\ttn = mytn;\n\t\t\t\t/************************************************* \n\t\t\t\t * \n\t\t\t\t * 步骤2:通过银联工具类启动支付插件 \n\t\t\t\t * \n\t\t\t\t ************************************************/\n\t\t\t\tdoStartUnionPayPlugin(this, tn, mMode);\n\t\t\t}\n\n\n\n\n\t\t}",
"private void chkPRMST()\n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Select count(*) from co_prmst\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\tif(cl_dat.getRECCNT(M_strSQLQRY) > 0)\n\t\t\t\tupdPRMST();\n\t\t\telse{\n\t\t\t\tsetMSG(\"Record does not exist in CO_PRMST\",'E');\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = false;\n\t\t\t\t}\n\t\t\t//System.out.println(M_strSQLQRY);\n\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"chkPRMST\");\n\t\t}\n\t}",
"private Boolean getStatusForPaid(final String status) {\n boolean flag = false;\n if (status.equalsIgnoreCase(PdfConstants.PAID)\n || status.equalsIgnoreCase(PdfConstants.RETURN_PENDING)\n || status.equalsIgnoreCase(PdfConstants.SCHEDULED_PENDING)\n || status.equalsIgnoreCase(PdfConstants.SCHEDULED_PROCESSING)\n || status.equalsIgnoreCase(PdfConstants.IN_PROCESS)\n || status.equalsIgnoreCase(PdfConstants.PENDING)) {\n flag = true;\n }\n return flag;\n }",
"@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }",
"private boolean verifyPaymentScheduleColumn(String columnName, String adjustmentOption,\n\t\t\tHashMap<String, String> testData, ExtentTest extentedReport, boolean screenshot) {\n\t\tboolean isOk = false;\n\t\t// Single Bill-Card or Spread over Instalments\n\t\tint totalInstallments = adjustmentOption.contains(\"spread\") ? 12\n\t\t\t\t: (adjustmentOption.contains(\"single\") ? 13 : 12);\n\n\t\tLog.message(\"Verifying the '\" + columnName + \"' column in 'Payment Schedule' (\" + totalInstallments\n\t\t\t\t+ \" installments)\", extentedReport);\n\n\t\tif (columnName.equals(\"Due\")) { // #1\n\t\t\tint preferredPaymentDay = testData.containsKey(\"Preferred Payment Day\")\n\t\t\t\t\t? Integer.parseInt(testData.get(\"Preferred Payment Day\"))\n\t\t\t\t\t: Integer.parseInt(DateTimeUtility.getCurrentDate().split(\"/\")[0]);\n\t\t\tList<String> lstInstDates = DateTimeUtility.generateInstallmentDates(preferredPaymentDay,\n\t\t\t\t\ttotalInstallments);\n\t\t\tif (totalInstallments == 13) { // Single Bill-Card\n\t\t\t\tlstInstDates.add(1, lstInstDates.get(0));\n\t\t\t}\n\t\t\tList<WebElement> lstDueDates = driver.findElements(By.cssSelector(cssPaySchedDueDates));\n\n\t\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\t\tString expectedDueDate = lstInstDates.get(i);\n\t\t\t\tString actualDueDate = lstDueDates.get(i).getText().trim();\n\t\t\t\tLog.message(\"Row No: [\" + (i + 1) + \"]; Expected Date: [\" + expectedDueDate + \"]; Actual Date: [\"\n\t\t\t\t\t\t+ actualDueDate + \"]\", extentedReport);\n\t\t\t\tisOk = actualDueDate.equals(expectedDueDate);\n\t\t\t\tif (!isOk) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (columnName.equals(\"Calculated Premium\")) { // #2\n\t\t\tisOk = verifyCalculatedPremium(adjustmentOption, testData, extentedReport, screenshot);\n\t\t} else if (columnName.equals(\"Taxes\")) { // #3\n\t\t\tList<WebElement> lstTaxes = driver.findElements(By.cssSelector(cssPaySchedTaxes));\n\t\t\tfloat expectedTotalTaxes = 0;\n\t\t\tString actualTotalTaxes = divTotalTaxes.getText().trim();\n\t\t\tString expectedTaxes = \"0.00\";\n\t\t\tboolean isOkInstallmentTaxes = false;\n\t\t\tboolean isOkTotalTaxes = false;\n\n\t\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\t\tfloat actualTaxes = Float.parseFloat(lstTaxes.get(i).getText().trim());\n\t\t\t\texpectedTotalTaxes += actualTaxes;\n\n\t\t\t\tif (i > 1 && !isOkInstallmentTaxes) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tisOkInstallmentTaxes = String.format(\"%.2f\", actualTaxes).equals(expectedTaxes);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tisOkTotalTaxes = actualTotalTaxes.equals(String.format(\"%.2f\", expectedTotalTaxes));\n\t\t\tisOk = isOkInstallmentTaxes && isOkTotalTaxes;\n\t\t\tLog.message(\n\t\t\t\t\t\"isOkInstallmentTaxes: [\" + isOkInstallmentTaxes + \"]; isOkTotalTaxes: [\" + isOkTotalTaxes + \"]\",\n\t\t\t\t\textentedReport);\n\t\t} else if (columnName.equals(\"Charges\")) { // #4\n\t\t\tList<WebElement> lstCharges = driver.findElements(By.cssSelector(cssPaySchedCharges));\n\t\t\tfloat expectedTotalCharges = 0;\n\t\t\tString actualTotalCharges = divTotalCharges.getText().trim();\n\t\t\tString expectedCharges = \"0.00\";\n\t\t\tboolean isOkInstallmentCharges = false;\n\t\t\tboolean isOkTotalCharges = false;\n\n\t\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\t\tfloat actualCharges = Float.parseFloat(lstCharges.get(i).getText().trim());\n\t\t\t\texpectedTotalCharges += actualCharges;\n\n\t\t\t\tif (i > 1 && !isOkInstallmentCharges) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tisOkInstallmentCharges = String.format(\"%.2f\", actualCharges).equals(expectedCharges);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tisOkTotalCharges = actualTotalCharges.equals(String.format(\"%.2f\", expectedTotalCharges));\n\t\t\tisOk = isOkInstallmentCharges && isOkTotalCharges;\n\t\t\tLog.message(\"isOkInstallmentCharges: [\" + isOkInstallmentCharges + \"]; isOkTotalCharges: [\"\n\t\t\t\t\t+ isOkTotalCharges + \"]\", extentedReport);\n\t\t} else if (columnName.equals(\"Charges Tax\")) { // #5\n\t\t\tList<WebElement> lstChargesTax = driver.findElements(By.cssSelector(cssPaySchedChargesTax));\n\t\t\tfloat expectedTotalChargesTax = 0;\n\t\t\tString actualTotalChargesTax = divTotalChargesTax.getText().trim();\n\t\t\tString expectedChargesTax = \"0.00\";\n\t\t\tboolean isOkInstallmentChargesTax = false;\n\t\t\tboolean isOkTotalChargesTax = false;\n\n\t\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\t\tfloat actualChargesTax = Float.parseFloat(lstChargesTax.get(i).getText().trim());\n\t\t\t\texpectedTotalChargesTax += actualChargesTax;\n\n\t\t\t\tif (i > 1 && !isOkInstallmentChargesTax) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tisOkInstallmentChargesTax = String.format(\"%.2f\", actualChargesTax).equals(expectedChargesTax);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tisOkTotalChargesTax = actualTotalChargesTax.equals(String.format(\"%.2f\", expectedTotalChargesTax));\n\t\t\tisOk = isOkInstallmentChargesTax && isOkTotalChargesTax;\n\t\t\tLog.message(\"isOkInstallmentChargesTax: [\" + isOkInstallmentChargesTax + \"]; isOkTotalChargesTax: [\"\n\t\t\t\t\t+ isOkTotalChargesTax + \"]\", extentedReport);\n\t\t} else if (columnName.equals(\"Instalments\")) { // #6\n\t\t\tList<WebElement> lstInstallments = driver.findElements(By.cssSelector(cssPaySchedInstallments));\n\t\t\tfloat expectedTotalInstallments = 0;\n\t\t\tString actualTotalInstallments = divTotalInstallments.getText().trim();\n\t\t\tString expectedInstallments = \"0.00\";\n\t\t\tboolean isOkInstallments = false;\n\t\t\tboolean isOkTotalInstallments = false;\n\n\t\t\tfor (int i = 0; i < totalInstallments; i++) {\n\t\t\t\tfloat actualInstallments = Float.parseFloat(lstInstallments.get(i).getText().trim());\n\t\t\t\texpectedTotalInstallments += actualInstallments;\n\n\t\t\t\tif (i > 1 && !isOkInstallments) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tisOkInstallments = String.format(\"%.2f\", actualInstallments).equals(expectedInstallments);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tisOkTotalInstallments = actualTotalInstallments.equals(String.format(\"%.2f\", expectedTotalInstallments));\n\t\t\tisOk = isOkInstallments && isOkTotalInstallments;\n\t\t\tLog.message(\"isOkInstallments: [\" + isOkInstallments + \"]; isOkTotalInstallments: [\" + isOkTotalInstallments\n\t\t\t\t\t+ \"]\", extentedReport);\n\t\t} else if (columnName.equals(\"Amount Payable\")) { // #7\n\t\t\tisOk = verifyAmountPayable(adjustmentOption, testData, extentedReport, screenshot);\n\t\t}\n\n\t\treturn isOk;\n\t}",
"boolean hasDdzConfirmRule();",
"boolean hasSerializedPaymentDetails();",
"boolean isSetCapitalPayed();",
"@Test\n void testDoPaymentInitiationRequest() {\n String PIS_BASE = \"https://api-sandbox.rabobank.nl/openapi/sandbox/payments/payment-initiation/pis/v1\";\n raboUtilUnderTest.doPaymentInitiationRequest(PIS_BASE, \"/payments/sepa-credit-transfers\", \"token\", \"payload\", \"redirect\");\n\n // Verify the results\n verify(webClient).post(anyString(),any(),any());\n }",
"public void verifyPopupShouldNotDisplayAfterPublishingTheAd() throws Exception {\n\t\t\tCreateStockTradusProPage createStockObj= new CreateStockTradusProPage(driver);\n\t\t\tAllStockTradusPROPage AllStockPage= new AllStockTradusPROPage(driver);\n\t\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\t\twaitTill(2000);\n\t\t\tLoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\t\tloginPage.setAccountEmailAndPassword(\"[email protected]\", \"sunfra123\");\n\t\t\tjsClick(driver, loginPage.LoginButton);\n\t\t\twaitTill(5000);\n\t\t\tif(!verifyElementPresent(overviewObj.PostYourAdButtonOnWelcomePopup))\n\t\t\t{\n\t\t\t\tdriver.navigate().refresh();\n\t\t\t}\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.TradusWelcomeBox);\n\t\t\tjsClick(driver, overviewObj.PostYourAdButtonOnWelcomePopup);\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.createStockPageVerificationElement);\n\t\t\tcreateStockObj.uploadImageButtonInPostingForm.sendKeys(System.getProperty(\"user.dir\") + \"\\\\Tire.jpeg\");\n\t\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.successToastInPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tscrollToElement(driver, createStockObj.priceSectionInPostingForm);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.priceTypeFieldPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tactionClick(driver, createStockObj.priceTypeasFixed);\n\t\t\twaitTill(1000);\n\t\t\tif (!getText(createStockObj.currencyFieldAutofillValue).equalsIgnoreCase(\"EUR\")) {\n\t\t\t\tclick(createStockObj.currencyTypeFieldPostingForm);\n\t\t\t\twaitTill(1000);\n\t\t\t\tactionClick(driver, createStockObj.currencyTypeasEuro);\n\t\t\t}\n\t\t\tsendKeys(createStockObj.netPriceFieldPostingForm, \"10000\");\n\t\t\twaitTill(1000);\n\t\t\tscrollToElement(driver, createStockObj.yourVehicleSectionInPostingForm);\n\t\t\twaitTill(2000);\n\t\t\tclick(createStockObj.vehicleTypeFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleTypeasSpareParts);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.vehicleCategoryFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleCategoryasTires);\n\t\t\twaitTill(2000);\n\t\t\tclick(createStockObj.vehicleMakeFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleMakeasVolvo);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.vehicleModelFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleModelas8700);\n\t\t\twaitTill(4000);\n\t\t\tsendKeys(createStockObj.descriptionAreainPostingForm, \"Ad\");\n\t\t\tjsClick(driver, createStockObj.postYourAdButton);\n\t\t\texplicitWaitFortheElementTobeVisible(driver, AllStockPage.MyStockText);\n\t\t\tjsClick(driver, overviewObj.overviewOptioninSiderBar);\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\t\twaitTill(5000);\n\t\t\tAssert.assertFalse(verifyElementPresent(overviewObj.TradusWelcomeBox),\n\t\t\t\t\t\"Welcome popup displaying even after clicking cross icon\");\n\t\t}",
"protected void preTest() {\n\t\tprintTestParmas();\n\t\tif (attenuatorSetUnderTest != null) {\n\t\t\tperipheralsConfig.setAttenuatorSetValue(attenuatorSetUnderTest,\n\t\t\t\t\tattenuatorSetUnderTest.getDefaultValueAttenuation());\n\t\t} else {\n\t\t\treport.report(\"There is no attenuator set \");\n\t\t}\n\t\tchangeOtherENBsToOOS();\n\n\t\t/*if (runWithDynamicCFI)\n\t\t\tenbConfig.enableDynamicCFI(this.dut);\n\t\telse\n\t\t\tenbConfig.disableDynamicCFI(this.dut);*/\n\t\t\n\t\tgetRadioProfile();\n\n\t\tprintResultsForTest = true;\n\t\tresetTestBol = false;\n\t\texceptionThrown = false;\n\t}",
"public void testPlayerPaymentPrefConstant() {\n assertEquals(\"PLAYER_PAYMENT_PREF is incorrect\", UserConstants.PLAYER_PAYMENT_PREF, \"player-payment-pref\");\n }",
"public boolean Verify_NonIpoConfirmation() {\n\t\n\tboolean flag = false;\n\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed();\n\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"DISPLAYED\");\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.ORDERRECEIVED_LABEL).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"DISPLAYED\");\n\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed();\n\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"DISPLAYED\");\n\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed();\n\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"DISPLAYED\");\n\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed();\n\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"DISPLAYED\");\n\t\t\t\t\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.MYSTORE_SECTION).isDisplayed();\n\t\t\t\t\t\tif(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"DISPLAYED\");\n\t\t\t\t\t\t flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.GOTOHOMEPAGE_BUTTON).isDisplayed();\n\t\t\t\t\t\t if(flag){extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");\n\t\t\t\t\t\t\t}else{extentLogs.pass(\"VerifyNonIPOConfirmationScreen_GOTOHOMEPAGE_BUTTON\", \"DISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_MYSTORE_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_STOREDETAILS_CONFIRMATIONSECTION\", \"NOTDISPLAYED\");}\n\t\t \t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_UPONDELIVERY_SECTION\", \"NOTDISPLAYED\");}\n\t\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_WHATNEXT_SECTION\", \"NOTDISPLAYED\");}\n\t\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ORDERRECEIVED_LABEL\", \"NOTDISPLAYED\");}\n\t}else{extentLogs.fail(\"VerifyNonIPOConfirmationScreen_ThankYou\", \"NOTDISPLAYED\");}\n\t\nreturn flag;\n\t}",
"public boolean doRemoteSetupAndVerification() throws Exception {\n return true;\n }",
"@Test\n\t@TestProperties(name = \"PnP procedure in NMS cold reboot IPV4\", returnParam = {\n\t\t\t\"IsTestWasSuccessful\" }, paramsExclude = { \"IsTestWasSuccessful\" })\n\tpublic void PnPColdRebootIPV4() throws Exception {\n\t\tisWarmReset = false;\n\t\tmainProcedure();\n\t\tpostTest();\n\t}",
"private static boolean verifyDeveloperPayload(Purchase p) {\n RequestParams params = new RequestParams();\n params.put(\"signed_data\", p.getOriginalJson());\n params.put(\"signature\", p.getSignature());\n\n String url = \"http://54.218.122.252/api/receipt/android\";\n\n AsyncHttpClient client = new AsyncHttpClient();\n\n client.post(url, params, new ResponseHandlerInterface() {\n @Override\n public void sendResponseMessage(HttpResponse httpResponse) throws IOException {\n\n }\n\n @Override\n public void sendStartMessage() {\n\n }\n\n @Override\n public void sendFinishMessage() {\n\n }\n\n @Override\n public void sendProgressMessage(long l, long l1) {\n\n }\n\n @Override\n public void sendCancelMessage() {\n\n }\n\n @Override\n public void sendSuccessMessage(int i, Header[] headers, byte[] bytes) {\n\n }\n\n @Override\n public void sendFailureMessage(int i, Header[] headers, byte[] bytes, Throwable throwable) {\n\n }\n\n @Override\n public void sendRetryMessage(int i) {\n\n }\n\n @Override\n public URI getRequestURI() {\n return null;\n }\n\n @Override\n public void setRequestURI(URI uri) {\n\n }\n\n @Override\n public Header[] getRequestHeaders() {\n return new Header[0];\n }\n\n @Override\n public void setRequestHeaders(Header[] headers) {\n\n }\n\n @Override\n public boolean getUseSynchronousMode() {\n return false;\n }\n\n @Override\n public void setUseSynchronousMode(boolean b) {\n\n }\n\n @Override\n public boolean getUsePoolThread() {\n return false;\n }\n\n @Override\n public void setUsePoolThread(boolean b) {\n\n }\n\n @Override\n public void onPreProcessResponse(ResponseHandlerInterface responseHandlerInterface, HttpResponse httpResponse) {\n\n }\n\n @Override\n public void onPostProcessResponse(ResponseHandlerInterface responseHandlerInterface, HttpResponse httpResponse) {\n try {\n String result = EntityUtils.toString(httpResponse.getEntity());\n JSONObject myObject = new JSONObject(result);\n if(myObject.getInt(\"status\") == 1) {\n unlockContentSuccess();\n } else {\n complain(\"Error purchasing. Authenticity verification failed.\");\n }\n }catch (Exception ex) {\n Log.d(TAG, ex.getMessage());\n }\n }\n\n @Override\n public Object getTag() {\n return null;\n }\n\n @Override\n public void setTag(Object o) {\n\n }\n });\n return false;\n\n /*\n * TODO: verify that the developer payload of the purchase is correct.\n * It will be the same one that you sent when initiating the purchase.\n *\n * WARNING: Locally generating a random string when starting a purchase\n * and verifying it here might seem like a good approach, but this will\n * fail in the case where the user purchases an item on one device and\n * then uses your app on a different device, because on the other device\n * you will not have access to the random string you originally\n * generated.\n *\n * So a good developer payload has these characteristics:\n *\n * 1. If two different users purchase an item, the payload is different\n * between them, so that one user's purchase can't be replayed to\n * another user.\n *\n * 2. The payload must be such that you can verify it even when the app\n * wasn't the one who initiated the purchase flow (so that items\n * purchased by the user on one device work on other devices owned by\n * the user).\n *\n * Using your own server to store and verify developer payloads across\n * app installations is recommended.\n */\n //return true;\n }",
"@Test\n public void makeAndRetrievePbaPaymentsByProbateForSuccessLiberataValidation() {\n String accountNumber = testProps.existingAccountNumber;\n CreditAccountPaymentRequest accountPaymentRequest = PaymentFixture\n .aPbaPaymentRequestForProbateForSuccessLiberataValidation(\"215.00\", \"PROBATE\");\n accountPaymentRequest.setAccountNumber(accountNumber);\n PaymentDto paymentDto = paymentTestService.postPbaPayment(USER_TOKEN, SERVICE_TOKEN, accountPaymentRequest).then()\n .statusCode(CREATED.value()).body(\"status\", equalTo(\"Success\")).extract().as(PaymentDto.class);\n\n // Get pba payment by reference\n PaymentDto paymentsResponse =\n paymentTestService.getPbaPayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then()\n .statusCode(OK.value()).extract().as(PaymentDto.class);\n\n assertThat(paymentsResponse.getAccountNumber()).isEqualTo(accountNumber);\n\n // Get pba payments by ccdCaseNumber\n PaymentsResponse liberataResponse = paymentTestService\n .getPbaPaymentsByCCDCaseNumber(SERVICE_TOKEN, accountPaymentRequest.getCcdCaseNumber()).then()\n .statusCode(OK.value()).extract().as(PaymentsResponse.class);\n assertThat(liberataResponse.getPayments().size()).isGreaterThanOrEqualTo(1);\n PaymentDto retrievedPaymentDto = liberataResponse.getPayments().stream()\n .filter(o -> o.getPaymentReference().equals(paymentDto.getReference())).findFirst().get();\n assertThat(retrievedPaymentDto.getAccountNumber()).isEqualTo(accountNumber);\n assertThat(retrievedPaymentDto.getFees().get(0).getApportionedPayment()).isEqualTo(\"215.00\");\n assertThat(retrievedPaymentDto.getFees().get(0).getCalculatedAmount()).isEqualTo(\"215.00\");\n assertThat(retrievedPaymentDto.getFees().get(0).getMemoLine())\n .isEqualTo(\"Personal Application for grant of Probate\");\n assertThat(retrievedPaymentDto.getFees().get(0).getNaturalAccountCode())\n .isEqualTo(\"4481102158\");\n assertThat(retrievedPaymentDto.getFees().get(0).getJurisdiction1()).isEqualTo(\"family\");\n assertThat(retrievedPaymentDto.getFees().get(0).getJurisdiction2())\n .isEqualTo(\"probate registry\");\n\n // delete payment record\n paymentTestService.deletePayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then().statusCode(NO_CONTENT.value());\n\n }",
"boolean hasPkpfe1000();",
"public void verifyConfig() {\r\n if (getIbnrRiskManager() == null)\r\n throw new ConfigurationException(\"The required property 'ibnrRiskManager' is missing.\");\r\n }",
"boolean isSetupDone();",
"boolean hasCampaignCriterionSimulation();",
"private boolean isArendaProcessingEnabled() throws RemoteException {\n\n try {\n return Util_Alex.receiveIntConstant(com.hps.july.platinum.sessionbean.arenda.SystemConstants.SYNCNRIPLATINARENDA) == 1;\n } catch (Exception e) {\n return false; \n\t //throw new RemoteException(\"SYNCNRIPLATINARENDA not received\", e);\n }\n}",
"private String verifyPolicy(String webMethodName, String opName)\r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t String ret = naas.verifyPolicy(null,webMethodName, opName);\r\n\t return ret;\r\n\t}",
"public abstract void selfCheck(MCTSConfig config);",
"boolean verifyDeveloperPayload(Purchase p) {\n String payload = p.getDeveloperPayload();\n String messageAfterDecrypt = \"not_empty_line\";\n String password = getString(R.string.check_token);\n ;\n try {\n messageAfterDecrypt = AESCrypt.decrypt(password, payload);\n //Log.e(TAG, \"messageAfterDecrypt \" + messageAfterDecrypt);\n //Log.e(TAG, \"email \" + email);\n } catch (GeneralSecurityException e) {\n e.printStackTrace();\n //handle error - could be due to incorrect password or tampered encryptedMsg\n }\n// if (messageAfterDecrypt.equals(email)){\n// return true;\n// }\n if (Utils.isEmailValid(messageAfterDecrypt)) {\n return true;\n }\n\n return false;\n }",
"boolean CanBuyDevCard();",
"@Override\r\n\tpublic boolean isPaid() {\n\t\treturn false;\r\n\t}",
"public void loginWithPersonalDevice() // ==== To be used by LGN_005 and Verify SIM ==== //\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew WebDriverWait(driver, 45).until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//android.widget.TextView[contains(@text,'Verify')]\")));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\"Verify Phone page not found\"+e.getMessage());\n\t\t}\n\t\t\n\t\tLog.info(\"======== Login With Verify Personal Device ========\");\n\t\tif(pageTitle.getText().contains(\"Device\"))\n\t\t{\t\t\t\n\t\t\tLog.info(\"== Verify Device page found instead of Verify Phone page ==\"); \t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(WebElement e: selectSimNumberList) // Select any/all Sim and Number dropdowns\n\t\t{\n\t\t\te.click();\n\t\t\tselectWithinList.get(1).click();\n\t\t}\n\t\tcontinueButton.click();\n\t\t// Wait until presence of Home page or Verify device Page \t\t\n\t\t\n\t\tnew WebDriverWait(driver,90).until(ExpectedConditions.visibilityOf(checker));\n\t\t\n\t\tif(checker.getText().toLowerCase().contains(\"ok\") && checker.getAttribute(\"resourceId\").contains(\"button1\"))\n\t\t{\t\n\t\t\tchecker.click();\n\t\t\t\n\t\t\tnew WebDriverWait(driver,60).until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tif(checker.getText().contains(\"OK\") && checker.getAttribute(\"resourceId\").contains(\"button2\")) return;\t// LGN_05 will verify this\t\n\t\t\n\t\t//gotoHome();\tNo need to go to Home since Error messages and skip buttons need to be validated\t\n\t}",
"@Test\r\n public void testGetPaymentDetails() {\r\n }",
"private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }",
"public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}",
"public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}",
"@Test\r\n public void testVerificaPossibilidade2() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }",
"boolean hasSimspeed();",
"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}",
"@Test\n public void RiskPresets_TestB()\n {\n RiskPresets preset = new RiskPresets();\n Assert.assertEquals(false,preset.CustomRiskPreset(\"low\",1,2,3,4,0.05));\n }",
"@Test\n\t@TestProperties(name = \"PnP procedure in NMS warm reboot IPV4 + Change frequency\", returnParam = {\n\t\t\t\"IsTestWasSuccessful\" }, paramsExclude = { \"IsTestWasSuccessful\" })\n\tpublic void PnPWarmRebootIPV4ChangeFrequency() throws Exception {\n\t\tisWarmReset = true;\n\t\tisInterTest = true;\n\t\tmainProcedure();\n\t\tpostTest();\n\t}",
"public static void main(String[] args) {\n\n int expLast4SSN = 1487;\n int exPinCode = 2729;\n\n int last4SSN = 1459;\n int pinCode = 2726;\n\n if (expLast4SSN == last4SSN && exPinCode == pinCode) {\n System.out.println(\"Authentication successful\");\n } else {\n System.out.println(\"Authentication unsuccessful\");\n if (expLast4SSN != last4SSN) {\n System.out.println(\"Last 4 of SSN did not match\");\n }\n if (exPinCode != pinCode){\n System.out.println(\"Pin code did not match\");\n\n\n\n\n }\n }\n }",
"@Test\r\n public void testVerificaPossibilidade4() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"boolean additionalPayerInfoVerification(final String email) {\n return Log.altVerify(email, lblEMail().getText(), true, \"E-mail address\");\n }",
"boolean completeTransaction(String amount) throws PreAuthFailure {\n String store_id = \"store5\"; // TestAPI, switch when in production\n String api_token = \"yesguy\";// TestAPI, switch when in production.\n String crypt = \"7\"; //TODO: Check if right crypt to be using.\n String storeName = \"PayGuard\"; // Must be <= 13 char.\n String processing_country_code = \"CA\";\n boolean status_check = false; //TODO: Should change this to true and test.\n\n Completion completion = new Completion();\n completion.setOrderId(orderId);\n completion.setCompAmount(amount);\n completion.setTxnNumber(token.getTxnNumber());\n completion.setCryptType(crypt);\n completion.setDynamicDescriptor(storeName);\n\n HttpsPostRequest mpgReq = new HttpsPostRequest();\n mpgReq.setProcCountryCode(processing_country_code);\n mpgReq.setTestMode(true); //false or comment out this line for production transactions\n mpgReq.setStoreId(store_id);\n mpgReq.setApiToken(api_token);\n mpgReq.setTransaction(completion);\n mpgReq.setStatusCheck(status_check);\n mpgReq.send();\n\n try\n {\n Receipt receipt = mpgReq.getReceipt();\n if(receipt.getComplete().equalsIgnoreCase(\"false\")){\n throw new PreAuthFailure(\"Token failed completion: \" + receipt.getMessage());\n }\n return true;\n }\n catch (Exception e)\n {\n throw new PreAuthFailure(\"Token failed completion: \" + e.toString());\n }\n }",
"@Given(\"^I'm on \\\"([^\\\"]*)\\\" page of GetGo pay with valid \\\"([^\\\"]*)\\\" and \\\"([^\\\"]*)\\\"$\")\n public void i_m_on_page_of_GetGo_pay_with_valid_and(String arg1, String arg2, String arg3) throws Throwable {\n passworddetails=arg3;\n email=PropertyReader.testDataOf(arg2);\n if(Device.isAndroid()) {\n welcome.clickLogin();\n login.enterEmail(PropertyReader.testDataOf(arg2));\n login.clickNext();\n login.enterPassword(PropertyReader.testDataOf(arg3));\n //login.enterPassword(PropertyReader.dynamicReadTestDataOf(arg3));\n\n login.clickLogin();\n //dashboard.\n }\n else\n {\n login.iOSLoginFlow(PropertyReader.testDataOf(arg2),PropertyReader.testDataOf(arg3));\n }\n\n }",
"@Test(dataProvider = \"NLGEMPTY\", groups = { \"RUNLGEmpty\",\"RUpaymentAll\",\"RUNLGMobile\",\"all\",\"RUPayment\"})\n\tpublic void RUNLGpaymentMobileTabTest(String url,String pid,String amount) throws Exception {\n\t\tString aURL = url + \"/?pid=\"+pid+\"&territory=RU\";\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.get(aURL);\n\t\tdriver.manage().window().maximize();\n\n\t\tDriverWrapper util=new DriverWrapper(driver);\n\t\tutil.waitForPageLoad();\n\t\tRUNLGPaymentPage np=new RUNLGPaymentPage();\n\n\t\tReporter.log(\"\\nVerification of footer links\"); \n//\t\tutil.elementPresent(np.CancelLink);\n\t\tutil.elementPresent(np.termLink);\n\t\tutil.elementPresent(np.privacyLink);\n\t\tutil.elementPresent(np.contactUsLink);\n\t\tutil.verifyContainText(np.mobileNumberTextBox, np.mobileNumberTextBoxValue);\n\t\tutil.verifyContainText(np.mobileBeforeMNumTextField, np.mobileBeforeMNumTextFieldValue);\n\t\tutil.verifyContainText(np.mobileFormP1, np.mobileFormP1Value);\n\t\tutil.elementPresent(np.mobileSubmitButton);\n\t\tutil.verifyContainText(np.mobileFormP2, np.mobileFormP2Value);\n\t\tutil.verifyContainText(np.termLink, np.termLinkValue);\n\t\tutil.verifyContainText(np.contactUsLink, np.contactUsLinkValue);\n\t\tutil.verifyContainText(np.privacyLink, np.privacyLinkValue);\n//\t\tutil.elementPresent(np.firstTab);\n\n\t\n\t}",
"boolean CanBuySettlement();",
"public void checkStatusWithPhantomJS() throws TechnicalException {\n\t\t PhantomJSDriver driver=null;\n\t\t String baseUrl;\n\t\t StringBuffer verificationErrors = new StringBuffer();\n\t\ttry {\n\t\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t\t\tcaps.setCapability(\"phantomjs.binary.path\", statusProperties.getPhantom_path());\n\t\t\tdriver = new PhantomJSDriver(caps);\n\t\t\tbaseUrl = statusProperties.getInter_pbl_url();\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t//Connection \n\t\t\tdriver.get(baseUrl);\n\t\t\t//specific login for developement environement\n\t\t\tif (driver.getTitle().equals(pblinkProperties.getIndex_title())) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"input[type=\\\"image\\\"]\")).click();\n\t\t\t}else{\n\t\t\t\t//UAt environnement\n\t\t\t\tif (driver.getTitle().equals(pblinkProperties.getSso_title())) {\n\t\t\t\t\t//get ther form\n\t\t\t\t\tlogInSSO(driver, baseUrl);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//check Iframe menu\n\t\t\tcheckScnarioUserListe(driver);\n\t\t} catch (Exception exp) {\n\t\t\tTechnicalException techExp = new TechnicalException(exp);\n\t\t\tif(logger.isErrorEnabled())\n\t\t\t\tlogger.error(techExp.getStrstackTrace());\n\t\t\tthrow techExp; \n\t\t}\n\t\tfinally{\n\t\t\tif (driver !=null)\n\t\t\tdriver.quit();\n\t\t\tString verificationErrorString = verificationErrors.toString();\n\t\t\tif (!\"\".equals(verificationErrorString)) {\n\t\t\t\tif(logger.isErrorEnabled())\n\t\t\t\t\tlogger.error(\"ERROR : there are some verifications errors : \"+verificationErrorString);\n\t\t\t\tthrow new TechnicalException(\"ERROR : PBL Internet checking/there are some verifications errors with phantom driver : \"+verificationErrorString);\n\t\t\t}\n\t\t}\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t\tpublic void verifySAPGasCustomer_AnnualServiceAmount()\t\n\t\t\t\t{\t\n\t\t\t\t\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the SAP SMR page for Electricity customer\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n\t\t\t\t\t\t new SubmitMeterReadAction()\n\t\t\t\t\t\t .openSMRpage(\"Gas\")\n\t\t\t\t\t\t.verifyAnonymousSAPGasCustomersRewrite(smrProfile);\n\t\t\t\t}",
"public void verifyServerCn(boolean yesno);",
"@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }",
"public void validateRpd7s2()\n {\n // This guideline cannot be automatically tested.\n }",
"boolean isTestEligible();",
"@Test\r\n public void testVerificaPossibilidade3() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }",
"@java.lang.Override\n public boolean hasPayment() {\n return instance.hasPayment();\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMultiDialMeterBySitepostcode()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Single or multiple Search results are getting displayed while giving valid Site postcode in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersitepost\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n\t.BgbloginDetails(smrProfile)\n\t.BgbverifyAfterLogin()\n\t.clickSubmitMeterReadLink()\n\t.searchBySitepostcode(smrProfile)\n .enterGlobalMeterDials(smrProfile)\n .verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void siteNormalUptoAndAbove3Meters(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether address displayed for particular meter is Site address for normal account for less than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t new SubmitMeterReadAction()\n\t \t.BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .clickManageAccountLinkWithAccNo(smrProfile)\n\t .submitMeterReadLink(smrProfile)\n\t .smrNormalSite(smrProfile);\n}",
"public boolean isProduced(){\n if(!step1.isEmpty()&&!step2.isEmpty()&&!step3.isEmpty()){\n return true;\n }else {\n return false;\n }\n }"
]
| [
"0.6424128",
"0.61669815",
"0.6087858",
"0.6087858",
"0.5940034",
"0.59038186",
"0.5879072",
"0.58015895",
"0.57874817",
"0.5686056",
"0.56571835",
"0.56492007",
"0.55951387",
"0.5577131",
"0.55593306",
"0.55542743",
"0.5554245",
"0.54947007",
"0.54867566",
"0.5460545",
"0.5451819",
"0.5442739",
"0.5424002",
"0.53948295",
"0.53942895",
"0.5379434",
"0.53708804",
"0.5354365",
"0.5350538",
"0.5350538",
"0.53421354",
"0.53387344",
"0.5329227",
"0.5328709",
"0.5305268",
"0.5295016",
"0.529451",
"0.5292297",
"0.52807325",
"0.52704513",
"0.5266124",
"0.52639043",
"0.5258016",
"0.5256181",
"0.52560854",
"0.52517045",
"0.5250232",
"0.5245776",
"0.52449054",
"0.52290934",
"0.5213879",
"0.5211981",
"0.52034897",
"0.51779824",
"0.5171455",
"0.51433635",
"0.5136714",
"0.5131597",
"0.51265234",
"0.51240176",
"0.512365",
"0.5118197",
"0.51134896",
"0.51082534",
"0.5105797",
"0.5092438",
"0.5092018",
"0.507516",
"0.50736064",
"0.50709236",
"0.5067889",
"0.5063022",
"0.50599116",
"0.5059665",
"0.5058765",
"0.5058701",
"0.5056733",
"0.5051149",
"0.5050345",
"0.5050273",
"0.50463426",
"0.5040203",
"0.50392133",
"0.5033701",
"0.50321305",
"0.50236726",
"0.50198257",
"0.501752",
"0.5017496",
"0.50083387",
"0.5006324",
"0.5006185",
"0.50050664",
"0.5003279",
"0.50023544",
"0.49998805",
"0.49976596",
"0.49974206",
"0.4996475",
"0.49884805",
"0.49841386"
]
| 0.0 | -1 |
125 + 24 = 149 125 24 = 101 125 x 24 = 3000 125 / 24 = 5 125 mod 24 = 5 | public static void main(String[] args) {
int numAdd;
numAdd=125+24;
System.out.println(numAdd+ "=125+24");
int numSubstract=125-24;
System.out.println(numSubstract+ "=125-24");
int num1 =125;
int num2= 24;
System.out.println(num1+"x"+num2+"="+(num1*num2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public void operacionletradni(int dni, int result){\n this.result=dni%23;}",
"private static String mod10(String code) {\n if (!code.matches(\"\\\\d+\")) {\n return null;\n }\n if (code.length() > 5) {\n return null;\n }\n // if length < 5, add leading \"0\"\n StringBuffer input = new StringBuffer(code);\n while (input.length() < 5) {\n input.insert(0, \"0\");\n }\n\n // 1. Using the number 12345, assign positions to the digits, from right\n // to left.\n\n // 2. Take the odd digit positions counting from the right (1st, 3rd,\n // 5th, etc.)\n StringBuffer odd = new StringBuffer();\n for (int i = 0; 2 * i < input.length(); i++) {\n odd.insert(0, input.charAt(2 * i));\n }\n\n // 3.Multiply by 2.\n int odd2 = Integer.parseInt(odd.toString()) * 2;\n\n // 4. Take the even digit positions starting from the right (2nd, 4th,\n // etc.).\n StringBuffer even = new StringBuffer();\n for (int i = 0; 2 * i + 1 < input.length(); i++) {\n even.insert(0, input.charAt(2 * i + 1));\n }\n\n // 5.Append (4) to the front of the results of (3).\n even.append(odd2);\n\n // 6. Add the digits of (5) together.\n double add = 0;\n for (int i = 0; i < even.length(); i++) {\n add = add + Integer.parseInt(even.substring(i, i + 1));\n }\n\n // 7. Find the next highest multiple of 10.\n double multiple = Math.ceil(add / 10) * 10;\n\n // 8. Subtract (6) from (7).\n Long result = Math.round(multiple - add);\n\n return result.toString();\n }",
"private String calcMod(double val) {\n double vall = (val - 10) / 2;\n if (vall < 0) {\n val = Math.floor(vall);\n return String.valueOf((int)val);\n }\n else {\n val = Math.ceil(vall);\n return \"+\" + String.valueOf((int)val);\n }\n }",
"int CalcKey(int g, int x, int n)\r\n {\r\n int rtn = 1;\r\n for(int i = 0; i < x; i++)\r\n rtn = (rtn * g) % n;\r\n return rtn;\r\n }",
"private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }",
"@Test\n public void testModulus10() {\n System.out.println(\"modulus10\");\n int pz = 7;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 3;\n int result = instance.modulus10(pz);\n assertEquals(expResult, result);\n pz = 5;\n expResult = 5;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n pz = 17;\n expResult = 3;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n }",
"public static void main(String args[] ) throws Exception {\n Scanner in = new Scanner(System.in);\n \n String original = in.next();\n int n = original.length();\n long moda = 1000000007;\n long ones = 1;\n long sum=0; \n for (int s=original.length()-1; s>=0; s--) {\n sum = (sum + (s+1) * (original.charAt(s) - '0') * ones) %moda; \n ones = (ones * 10 + 1) % moda;\n \n }\n \n System.out.println(sum);\n \n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }",
"protected final double mod(double value, double modulus) {\n return (value % modulus + modulus) % modulus;\n }",
"public static void main(String[] args) {\n\n long a_i3 = 3;\n long a_i2 = 4;\n long a_i1 = 10;\n\n int MOD = 1000_000_000 + 7;\n\n for (int i = 4; i < 30; i++) {\n long a_i = (a_i1 + 2 * a_i2 + 4 * a_i3) % MOD;\n System.out.println(\"N: \" + i + \" --> \" + a_i);\n\n a_i3 = a_i2;\n a_i2 = a_i1;\n a_i1 = a_i;\n }\n\n old1();\n }",
"public static int Main()\n\t{\n\tint[] b = new int[12];\n\tint w;\n\tint i;\n\tint[] a = {13, 44, 72, 103, 133, 164, 194, 225, 256, 286, 317, 347};\n\tString tempVar = ConsoleInput.scanfRead();\n\tif (tempVar != null)\n\t{\n\t\tw = Integer.parseInt(tempVar);\n\t}\n\tfor (i = 0;i < 12;i++)\n\t{\n\t\tb[i] = a[i] % 7 - 1;\n\t\tb[i] = (b[i] + w) % 7;\n\t}\n\tfor (i = 0;i < 12;i++)\n\t{\n\t\tif (b[i] == 5)\n\t\t{\n\t\t\tSystem.out.printf(\"%d\\n\",i + 1);\n\t\t}\n\t}\n\treturn 0;\n\t}",
"@Test\n public void testModulus7() {\n System.out.println(\"modulus7\");\n int number = 8;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 6;\n int result = instance.modulus7(number);\n assertEquals(expResult, result);\n\n }",
"private static String computeReminder(String stream) {\n String end, remainder, padding, paddedRemainder = stream;\n String bytesStream;\n for(int i = 0; i <= paddedRemainder.length() - generator.length(); i++) {\n // Compute division\n if(paddedRemainder.charAt(i) == '1') {\n bytesStream = paddedRemainder.substring(i, i + generator.length());\n end = stream.substring(i + generator.length());\n remainder = divideBytesByGenerator(bytesStream) + end;\n padding = new String(new char[stream.length() - remainder.length()]).replace(\"\\0\", \"0\");\n paddedRemainder = padding + remainder;\n }\n }\n return paddedRemainder.substring(paddedRemainder.length() - generator.length());\n }",
"@Test\n public void testLargeA() {\n assertEquals(18, PiGenerator.powerMod(123456, 2, 23));\n }",
"@Test\n public void calculationOnElevenDigitMsgIsCorrect() {\n final String msg = \"00110001110\";\n final int[] expectedMsg = {0,0,1,0, 1,0,1,1, 1,0,0,0, 1,1,1,0};\n\n // When\n int[] transformedMsg = HammingAlgorithm.calculate(msg);\n\n // Then\n assertThat(transformedMsg).isEqualTo(expectedMsg);\n }",
"private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }",
"public void Series() {\n\t\tint n=8,i=1,k=2,count=0;\n\t\tSystem.out.print(n+\" \");\n\t\twhile (count<5) {\n\t\t\tn=n*i;//12\n\t\t\tn=n-k;//9\n\t\t\tSystem.out.print(n+\" \");//9\n\t\t\ti++;\n\t\t\tk++;\n\t\t\tcount++;\n\t\t}\n\t\t/*System.out.println(n);//8\n\t\tn=n*1;//8\n\t\tn=n-2;//6\n\t\t\n\t\tSystem.out.println(n);//6\n\t\tn=n*2;//12\n\t\tn=n-3;//9\n\t\tSystem.out.println(n);//9\n\t\tn=n*3;//27\n\t\tn=n-4;//23\n\t\tSystem.out.println(n);\n\t\tn=n*4;//12\n\t\tn=n-5;*/\n\t\t\n\t\t/*System.out.println(n);\n\t\tn=n*5;//12\n\t\tn=n-6;\n\t\tSystem.out.println(n);*/\n\t\t\n\t}",
"public void testModulusValue() throws Exception {\r\n // Create key pair using java.security\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\r\n keyGen.initialize(1024, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n \r\n PublicKeyRSA rsaKey = (PublicKeyRSA)KeyFactory.createInstance(keyPair.getPublic(), \"SHA1WITHRSA\", null);\r\n byte[] modulusData = ((ByteField)rsaKey.getSubfield(CVCTagEnum.MODULUS)).getData();\r\n assertTrue(\"Leading zero found in modulus\", modulusData[0]!=0);\r\n }",
"private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}",
"public static void main(String[] args) {\n\r\n int cent = 200;\r\n\r\n // you have purchase candle for 74 cent, what would be your remainder\r\n\r\n cent -= 74 ; // 126 cent\r\n\r\n int quarter = cent / 25 ; // 126/25---->\r\n int penny = cent % 25; //126%25 ---> 1 is remaining\r\n\r\n System.out.println(quarter);\r\n System.out.println(penny);\r\n\r\n int dime= cent / 10 ; // 126 / 10 --->12\r\n // how much penny I have after getting dime 126 %10---->6\r\n int penny2 = cent % 10 ; //---->6\r\n System.out.println(dime);\r\n System.out.println(penny2);\r\n\r\n\r\n\r\n }",
"void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }",
"@Override\n public String solve() {\n\n long firstCoin = 1504170715041707L;\n long modValue = 4503599627370517L;\n //System.out.println(\"Second Coin \" + (firstCoin - (4503599627370517L % firstCoin)));\n long secondCoin = firstCoin - (modValue % firstCoin);\n long ans = firstCoin + secondCoin;\n while(secondCoin > 1) {\n modValue = firstCoin;\n firstCoin = secondCoin;\n secondCoin = firstCoin - (modValue % firstCoin);\n //System.out.println(secondCoin);\n ans += secondCoin;\n }\n return Long.toString(ans);\n }",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"static int modulo(int x, int y) {\n return (x%y);\n }",
"public static void main(String[] args) {\n\t\tint N = 234;\n\t\tint times=N%10;\n\t\tN/=10;\n\t\tint temp=N/10,sum=0;\n\t\twhile(times>0)\n\t\t{\n\t\t\tint rem=N%10;\n\t\t\tsum=temp+rem;\n\t\t\ttemp=sum;\n\t\t\ttimes--;\n\t\t}\n\t\tSystem.out.println(temp);\n\t\n\t}",
"int main()\n{\n int n;\n cin >>n;\n int m = 11;\n for(int i=0; i<n; i++){\n cout << m*m << \" \";\n m += 4;\n }\n}",
"public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\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 < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}",
"private static long modPow(long a, long b, long c) {\n long res = 1;\n for (int i = 0; i < b; i++)\n {\n res *= a;\n res %= c;\n }\n return res % c;\n }",
"private String getModulo(){\n int lenghtOfInput = String.valueOf(modulo).length();\n String even = new String();\n String odd = new String();\n\n if (lenghtOfInput != 8){\n return modulo + getString(R.string.notValidMatrikelNotePt1) + lenghtOfInput + getString(R.string.notValidMatrikelNotePt2);\n } else {\n int[] arr = new int[lenghtOfInput];\n\n //make an array of digits\n int i = 0;\n do {\n arr[i] = modulo % 10;\n modulo = modulo / 10;\n i++;\n } while (modulo != 0);\n\n //seperate even digits from odd ones\n for (int runner = 0; runner < lenghtOfInput; runner++){\n if(arr[runner] % 2 == 0){\n even += arr[runner];\n } else {\n odd += arr[runner];\n }\n }\n\n //Sorting of the char-rays which are numbers\n char[] evenSorted = even.toCharArray();\n Arrays.sort(evenSorted);\n String evenSortedString = new String(evenSorted);\n char[] oddSorted = odd.toCharArray();\n Arrays.sort(oddSorted);\n String oddSortedString = new String(oddSorted);\n\n return getString(R.string.solutionTxt) + \"\\n\" + evenSortedString + oddSortedString;\n }\n }",
"@Test\n public void testPowerMod_0_0_2() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber p = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(2);\n CryptoUtilities.powerMod(n, p, m);\n assertEquals(\"1\", n.toString());\n assertEquals(\"0\", p.toString());\n assertEquals(\"2\", m.toString());\n }",
"public boolean or35 (int n) {\n if ( (n % 3 == 0) || (n % 5 == 0)){\n return true;\n }\n return false;\n}",
"public static void calculateDecimalNumber() {\n\t\tint number = 121;\n\t\tint base = 4;\n\t\tint remain = 0;\n\t\tint commaShift = 0;\n\t\tint decimalnumber = 0;\n\n\t\tswitch (base) {\n\t\tcase 1: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(1, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 2: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(2, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 3: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(3, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 4: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(4, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 5: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(5, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 6: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(6, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 7: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(7, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 8: {\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(8, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\t\tcase 9:\n\t\t\twhile (number != 0) {\n\t\t\t\tremain = number % 10;\n\t\t\t\tdecimalnumber = decimalnumber + (int) (remain * (Math.pow(9, commaShift)));\n\t\t\t\tnumber = number / 10;\n\t\t\t\tcommaShift = commaShift + 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"decimalnumber:\" + decimalnumber);\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public static void main(String[] args) {\nint t = 101010101;\n// koden begynner her\nString s = \"\";\nwhile ( t % 10 > 0 ) {\ns = t % 10 + s;\nt = t / 10;\n}\ns = \"s = \" + s;\nout.println(s);\n\n }",
"public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }",
"private static void addAllMultiplesOfFive()\n\t{\n\t\tfor (int i = 0; i <= MAX_NUMBER; i += 5)\n\t\t{\n\t\t\tboolean isDivisibleByThree = i % 3 == 0;\n\t\t\tif (!isDivisibleByThree)\n\t\t\t{\n\t\t\t\tanswerSum += i;\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void computeDigits()\n {\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 1.0));\n assertEquals(1, BinaryEncoder.computeDigits(1.0, 1.0));\n assertEquals(1, BinaryEncoder.computeDigits(2.0, 1.0));\n assertEquals(2, BinaryEncoder.computeDigits(3.0, 1.0));\n assertEquals(2, BinaryEncoder.computeDigits(4.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(4.5, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(5.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(6.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(7.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(8.0, 1.0));\n assertEquals(4, BinaryEncoder.computeDigits(9.0, 1.0));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 0.1));\n assertEquals(4, BinaryEncoder.computeDigits(1.0, 0.1));\n assertEquals(5, BinaryEncoder.computeDigits(2.0, 0.1));\n assertEquals(5, BinaryEncoder.computeDigits(3.0, 0.1));\n assertEquals(6, BinaryEncoder.computeDigits(4.0, 0.1));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 0.01));\n assertEquals(7, BinaryEncoder.computeDigits(1.0, 0.01));\n assertEquals(8, BinaryEncoder.computeDigits(2.0, 0.01));\n assertEquals(9, BinaryEncoder.computeDigits(3.0, 0.01));\n assertEquals(9, BinaryEncoder.computeDigits(4.0, 0.01));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(1.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(2.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(3.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(4.0, 10.0));\n assertEquals(2, BinaryEncoder.computeDigits(30.0, 10.0));\n assertEquals(2, BinaryEncoder.computeDigits(40.0, 10.0));\n }",
"public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}",
"static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}",
"private static long[] sumIE(int mod, int g) {\n long[] sum_ie = new long[30];\n long[] es = new long[30];\n long[] ies = new long[30];\n\n int cnt2 = Integer.numberOfTrailingZeros(mod - 1);\n long e = pow(g, (mod - 1) >> cnt2, mod);\n long ie = pow(e, mod - 2, mod);\n for (int i = cnt2; i >= 2; i--) {\n es[i - 2] = e;\n ies[i - 2] = ie;\n e = e * e % mod;\n ie = ie * ie % mod;\n }\n long now = 1;\n for (int i = 0; i < cnt2 - 2; i++) {\n sum_ie[i] = ies[i] * now % mod;\n now = now * es[i] % mod;\n }\n return sum_ie;\n }",
"@Test\n public void findFirstSquareThatIsDivisibleBy5() {\n // HINT: IntStream.range(1, 100) creates a stream 1, 2, ... 99\n final int first = 0; // TODO\n\n assertEquals(25, first);\n }",
"private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }",
"public static void main(String[] args) {\n\n double fraction = 1/2.0;\n System.out.println(fraction);\n\n //Modules is the remainder of a division problem\n //25 % 6 = 1\n //31 % 5 = 1\n //17 % 3 = 2\n //4 % 2 = 0\n //5 % 2 = 1\n //6 % 2 = 0\n //121 % 100 = 21\n // 47 % 15 = 2\n //55 % 15 =10\n\n //5 + 2 * 4 =\n //12 / 2 - 4 =\n //4 + 17 % 2 -1 =\n //4 + 5 * 2 / 2 + 1 =\n //4 * (6 + 3 * 2) + 7 =\n\n System.out.println(5 + 2 * 4);\n System.out.println (12 / 2 -4);\n System.out.println(4 + 17 % 2 - 1);\n System.out.println(4 + 5 * 2 / 2 + 1);\n System.out.println(4 * (6 + 3 *2) + 7);\n\n\n }",
"public static int offset_sum_e() {\n return (104 / 8);\n }",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int t = in.nextInt();\n for(int a0 = 0; a0 < t; a0++){\n long n = in.nextLong();\n long sum=0;\n n--;\n long x=n-n%3;\n sum+=(x)*(x+3)/6;\n x=n-n%5;\n sum+=(x)*(x+5)/10;\n x=n-n%15;\n sum-=(x)*(x+15)/30;\n System.out.println(sum);\n in.close();\n }\n }",
"@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }",
"protected int nextInt(int p_75902_1_) {\n/* 135 */ int var2 = (int)((this.chunkSeed >> 24) % p_75902_1_);\n/* */ \n/* 137 */ if (var2 < 0)\n/* */ {\n/* 139 */ var2 += p_75902_1_;\n/* */ }\n/* */ \n/* 142 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 143 */ this.chunkSeed += this.worldGenSeed;\n/* 144 */ return var2;\n/* */ }",
"int pacemodulator() {\n int buckpacedirector = ((rand.nextInt() >> rightshift) & 7);\n int rbuckpacedirector = 0;\n\n rbuckpacedirector = switch (buckpacedirector)\n {\n case 0 -> 2;\n case 1 -> 3;\n case 2 -> 4;\n case 3 -> 5;\n case 4 -> 6;\n case 5 -> 7;\n case 6 -> 8;\n default -> 1;\n };\n return rbuckpacedirector;\n }",
"private void permutateDigits(){\r\n List<Integer> digits = new ArrayList<Integer>();\r\n for (int dig = 1; dig < 10; dig++)\r\n digits.add(dig);\r\n Collections.shuffle(digits);\r\n for (int row = 0; row < 9; row++)\r\n for (int col = 0; col < 9; col++)\r\n solution[row][col] = digits.get(solution[row][col]-1);\r\n }",
"private int Sum1(int x) {\n int a = ROTR(6, x);\n int b = ROTR(11, x);\n int c = ROTR(25, x);\n int ret = a ^ b ^ c;\n return ret;\n }",
"int main()\n{\n int num,rem;\n cin>>num;\n rem=num%10;\n cout<<rem+(num/1000);\n}",
"public static int calculateRemainderPart(int a)\n\t\t\t{\n\t\t\t\tint remainderPart = a % 10;\t\t\t\t\n\t\t\t\treturn remainderPart;\t\t\t\t\n\t\t\t}",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public static void main(String[] args) {\n int value = 5;\n int ab= 0;\n int ac=0;\n int ad=0;\n int ae=0;\n int af=0;\n int ag=0;\n int am=0;\n int az=0;\n int x = 0;\n int y = 0;\n int z = 0;\n int a = 0;\n int b = 0;\n int c = 0;\n int d = 0;\n int e = 0;\n x= value%2;\n ab=value/2;\n y= ab % 2;\n ac = ab/2;\n z = ac % 2;\n ad= ac/2;\n a = ad % 2;\n ae = ad/2;\n b = ae % 2;\n af= ae/2;\n c = af % 2;\n ag= af/2;\n d= ag % 2;\n am=ag/2;\n e = am %2;\n\n System.out.println(e+\"\"+d+\"\"+c+\"\"+b+\"\"+a+\"\"+z+\"\"+y+\"\"+x);\n\n\n\n\n\n\n\n }",
"int timesThree(int number);",
"@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n\tpublic void quotientAndReminder(){\n\t\t\n\t\tint dividend = 80;\n\t\tint divider = 40;\n\t\t\n\t\tint quotient = dividend/divider;\n\t\tint remainder = dividend%divider;\n\t\t\n\t\tSystem.out.println(\"quotient is :\" +quotient);\n\t\tSystem.out.println(\"remainder is : \"+ remainder);\n\t}",
"private int p(K k, int i) {\r\n return i/2 + (i*i)/2 + (i%2);\r\n }",
"public boolean or35(int n) {\n return (n % 3 == 0 || n % 5 == 0);\n}",
"@Test\n public void testModulus11() {\n System.out.println(\"modulus11\");\n int pz = 11;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 0;\n int result = instance.modulus11(pz);\n assertEquals(expResult, result);\n\n try {\n pz = 12;\n expResult = 1;\n result = instance.modulus11(pz);\n fail(\"not InvalidException\");\n assertEquals(expResult, result);\n } catch (InvalidException ex) {\n\n }\n\n }",
"public static void main(String args[]) {\n\t\tBigDecimal start = new BigDecimal(\"2658455991569831744654692615953842176\");\n//\t\tBigDecimal start = new BigDecimal(\"8128\");\n//\t\tBigDecimal dd = start.divide(next, 0);\n//\t\tSystem.out.println(dd);\n\t\t\n\t\tList<BigDecimal> fs = new PerfectNumber().factor2(start, 10, null);\n\t\tBigDecimal multiply = new BigDecimal(1);\n\t\tBigDecimal sum = new BigDecimal(0);\n\t\tfor (BigDecimal d : fs) {\n\t\t\tSystem.out.println(d);\n\t\t\tmultiply = multiply.multiply(d);\n\t\t\tsum = sum.add(d);\n\t\t}\n\t\tSystem.out.println(\"sum = \" + sum);\n\t\tSystem.out.println(\"multiply = \" + multiply);\n\t}",
"private static int getShiftForChannel(int channel) {\n return 24 - 8 * channel;\n }",
"public int encrypt(int value) {\n int[] arrValue = new int[4];\n\n // split int into array\n // countdown so as to not reverse the original order\n int i = 3;\n while (i >= 0) {\n arrValue[i] = value % 10;\n value /= 10;\n i--;\n }\n\n\n arrValue = swapDigits(arrValue);\n\n int j = 0;\n while (j < 4) {\n arrValue[j] = (arrValue[j] + 7) % 10;\n j++;\n }\n\n return toInt(arrValue);\n }",
"int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }",
"public String getModulo11(String campo, int type) {\n\n int multiplicador = 2;\n int multiplicacao = 0;\n int soma_campo = 0;\n\n for (int i = campo.length(); i > 0; i--) {\n multiplicacao = Integer.parseInt(campo.substring(i - 1, i)) * multiplicador;\n\n soma_campo = soma_campo + multiplicacao;\n\n multiplicador++;\n if (multiplicador > 7 && type == 7) {\n multiplicador = 2;\n } else if (multiplicador > 9 && type == 9) {\n multiplicador = 2;\n }\n }\n\n int dac = 11 - (soma_campo % 11);\n\n if (dac > 9 && type == 7) {\n dac = 0;\n } else if ((dac > 9) && type == 9) {\n dac = 0;\n }\n \n return ((Integer) dac).toString();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint result1 =5 + 2 * (16 - 2 * 5);\n\t\tSystem.out.println(result1);\n\n\t\tint a =8+2*(24/3 -2*3)+1;\n\t\tint b= 4*3-3*(2+2*3);\n\t\tSystem.out.println(a+a*b);\n\t\t\n\t\t\n\t\t//What is the remainder when you divide 17by 3?\n\t\t//Modulus operator (%) is used to find reminder\n\t\tSystem.out.println(17%3);//2\n\t\tSystem.out.println(1235%11);//3\n\t\t//Modulus operator is used to find the digit of a number\n\t\tint c= 2345678;\n\t\t\n\t\t//What is the last digit of number c?\n\t\tSystem.out.println(c%10);\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 int m= 9, n= 1,x=0 ;\n\t\t \n\t\t while (m>n) {\n\t\t\t m--;\n\t\t\t n+=2;\n\t\t\t x+=m+n;\n\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t \n\t\t }\n\t\t System.out.println(x);\n\t\t \n\t\t \n\t\t \n\t\t // a) 11\n\t \t// b) 13\n //c) 23\n //d) 36\n //e) 50\n\t\t\n\n\t}",
"static int random(int mod)\n {\n Random rand = new Random();\n int l= (rand.nextInt());\n if(l<0)\n l=l*-1;\n l=l%mod;\n return l;\n }",
"public static void main(String[] args) {\n\t\tint n=345;\r\n\t\tint s=0;\r\n\t\twhile(n!=0)\r\n\t\t{\r\n\t\tint last=n%10;\r\n\t\ts =s+last;\r\n\t\tn= n/10;\t\r\n\t\t\t\r\n\t\t\t}\r\n\r\nSystem.out.println(s);\r\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 }",
"private int calculate(int index) {\n return (head + index) % data.length;\n }",
"public static int offset_group() {\n return (24 / 8);\n }",
"public static void main(String[] args) {\r\n\tint a=1;\r\n\twhile(a>=1 && a<10) {\r\n\t\ta+=1;\r\n\t\tif(a%2==0) {\r\n\t\t\tSystem.out.println(\"\"+a);\r\n\t\t}\r\n\t}\r\n\tint max = 50;\r\n\tint add =0;\r\n\tfor(int s =0;s<=max;s+=1) {\r\n\t\tadd+= s;\r\n\t}\r\n\tSystem.out.println(\"\"+add);\r\n\t/*Adding up odd numbers 1-25\r\n\t * \r\n\t */\r\n\tint sum = 0;\r\n\tint c = 25;\r\n\tfor(int b=1 ;b<=c;b+=2) {\r\n\t\tsum+=b;\r\n\t\tSystem.out.println(\"\"+sum);\r\n\t}\r\n\t\r\n}",
"private static void countRiddle(int[][] a, int m) {\n for (int i=0; i<9; ++i) {\n for (int j=0; j<9; ++j) {\n a[i][j] = ( a[i][j] * m ) % 9 + 1;\n }\n }\n }",
"private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}",
"static int modPow(int b, int p, int m) {\n b = b % m;\n int res = 1;\n\n while (p > 0) {\n if (p % 2 == 1)\n res = (res * b) % m;\n p /= 2;\n b = b * b % m;\n }\n return res;\n }",
"public final void mod() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue % topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"public int method_2436() {\r\n return 16;\r\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"public int mo36g() {\n return 8;\n }",
"private static void displayNumbers(){\n BigInteger bigInteger = new BigInteger(create50DigitString());\n int i = 1;\n do {\n // Checking the remainder's int value == 0 since the requirement is to find the number greater than Long.MAX_VALUE and divisible by 2 or 3.\n if (bigInteger.remainder(new BigInteger(\"2\")).intValue() == 0 || bigInteger.remainder(new BigInteger(\"3\")).intValue() == 0) {\n System.out.println(bigInteger);\n i++;\n }\n// Incrementing the bigInteger\n bigInteger = bigInteger.add(new BigInteger(\"1\"));\n// Exit condition\n } while (i != 11);\n }",
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }",
"public static void main(String[] args) {\n BigDecimal bigDecimal = new BigDecimal(2);\n BigDecimal divisor = bigDecimal.pow(256);\n BigDecimal dividend = divisor.add(new BigDecimal(-1));\n BigDecimal multiplier = new BigDecimal(2).pow(128);\n// BigDecimal result = dividend.divide(divisor).pow(multiplier);\n// System.out.println(result);\n }",
"public static void sumNum() {\n\t\tint result = 0;\n\t\tfor(int i = 1; i<=112; i = i + 3) {\n\t\t\tresult = result + i;\t\n\t\t}\n\tSystem.out.println(\"Sum = \" + result);\n\t}",
"Sum getMultiplier();",
"public static void main(String[] args) {\n\t\t\n\t\tint num=456;\n\t\t\n\t\tint rem1 = 456%10;\n\t\tSystem.out.println(rem1);\n\t\t\n\t\t//123 -> 12\n\t\t\n\t\tint num2 = num/10; // 123/10 -> 12.3 -> 12\n\t\tSystem.out.println(num2);\n\t\t\n\t\tint rem2=num2%10; // 12%10 -> 2\n\t\t\n\t\t//12 ->1\n\t\t\n\t\tint num3 = num2/10; // 12/10 -> 1.2 -> 1\n\t\t\n\t\tint rem3 = num3%10; // 1%10 -> 1\n\t\t\n\t\tSystem.out.println(\"The sum of digits: \"+(rem1+rem2+rem3));\n\t\t\n\t}",
"public int getInterdigitInterval();",
"static long mpow(long x, int k) {\n\t long result = 1;\n\t for(; k > 0; k >>= 1) {\n\t if(k % 2 == 1) {\n\t result = mod(result * x ,511);\n\t }\n\t x = mod(x * x , 511);\n\t }\n\t return result;\n\t}",
"private BigInteger oddModPow(BigInteger y, BigInteger z) {\n /*\n * The algorithm is adapted from Colin Plumb's C library.\n *\n * The window algorithm:\n * The idea is to keep a running product of b1 = n^(high-order bits of exp)\n * and then keep appending exponent bits to it. The following patterns\n * apply to a 3-bit window (k = 3):\n * To append 0: square\n * To append 1: square, multiply by n^1\n * To append 10: square, multiply by n^1, square\n * To append 11: square, square, multiply by n^3\n * To append 100: square, multiply by n^1, square, square\n * To append 101: square, square, square, multiply by n^5\n * To append 110: square, square, multiply by n^3, square\n * To append 111: square, square, square, multiply by n^7\n *\n * Since each pattern involves only one multiply, the longer the pattern\n * the better, except that a 0 (no multiplies) can be appended directly.\n * We precompute a table of odd powers of n, up to 2^k, and can then\n * multiply k bits of exponent at a time. Actually, assuming random\n * exponents, there is on average one zero bit between needs to\n * multiply (1/2 of the time there's none, 1/4 of the time there's 1,\n * 1/8 of the time, there's 2, 1/32 of the time, there's 3, etc.), so\n * you have to do one multiply per k+1 bits of exponent.\n *\n * The loop walks down the exponent, squaring the result buffer as\n * it goes. There is a wbits+1 bit lookahead buffer, buf, that is\n * filled with the upcoming exponent bits. (What is read after the\n * end of the exponent is unimportant, but it is filled with zero here.)\n * When the most-significant bit of this buffer becomes set, i.e.\n * (buf & tblmask) != 0, we have to decide what pattern to multiply\n * by, and when to do it. We decide, remember to do it in future\n * after a suitable number of squarings have passed (e.g. a pattern\n * of \"100\" in the buffer requires that we multiply by n^1 immediately;\n * a pattern of \"110\" calls for multiplying by n^3 after one more\n * squaring), clear the buffer, and continue.\n *\n * When we start, there is one more optimization: the result buffer\n * is implcitly one, so squaring it or multiplying by it can be\n * optimized away. Further, if we start with a pattern like \"100\"\n * in the lookahead window, rather than placing n into the buffer\n * and then starting to square it, we have already computed n^2\n * to compute the odd-powers table, so we can place that into\n * the buffer and save a squaring.\n *\n * This means that if you have a k-bit window, to compute n^z,\n * where z is the high k bits of the exponent, 1/2 of the time\n * it requires no squarings. 1/4 of the time, it requires 1\n * squaring, ... 1/2^(k-1) of the time, it reqires k-2 squarings.\n * And the remaining 1/2^(k-1) of the time, the top k bits are a\n * 1 followed by k-1 0 bits, so it again only requires k-2\n * squarings, not k-1. The average of these is 1. Add that\n * to the one squaring we have to do to compute the table,\n * and you'll see that a k-bit window saves k-2 squarings\n * as well as reducing the multiplies. (It actually doesn't\n * hurt in the case k = 1, either.)\n */\n // Special case for exponent of one\n if (y.equals(ONE))\n return this;\n\n // Special case for base of zero\n if (signum == 0)\n return ZERO;\n\n int[] base = mag.clone();\n int[] exp = y.mag;\n int[] mod = z.mag;\n int modLen = mod.length;\n\n // Select an appropriate window size\n int wbits = 0;\n int ebits = bitLength(exp, exp.length);\n // if exponent is 65537 (0x10001), use minimum window size\n if ((ebits != 17) || (exp[0] != 65537)) {\n while (ebits > bnExpModThreshTable[wbits]) {\n wbits++;\n }\n }\n\n // Calculate appropriate table size\n int tblmask = 1 << wbits;\n\n // Allocate table for precomputed odd powers of base in Montgomery form\n int[][] table = new int[tblmask][];\n for (int i=0; i < tblmask; i++)\n table[i] = new int[modLen];\n\n // Compute the modular inverse\n int inv = -MutableBigInteger.inverseMod32(mod[modLen-1]);\n\n // Convert base to Montgomery form\n int[] a = leftShift(base, base.length, modLen << 5);\n\n MutableBigInteger q = new MutableBigInteger(),\n a2 = new MutableBigInteger(a),\n b2 = new MutableBigInteger(mod);\n\n MutableBigInteger r= a2.divide(b2, q);\n table[0] = r.toIntArray();\n\n // Pad table[0] with leading zeros so its length is at least modLen\n if (table[0].length < modLen) {\n int offset = modLen - table[0].length;\n int[] t2 = new int[modLen];\n for (int i=0; i < table[0].length; i++)\n t2[i+offset] = table[0][i];\n table[0] = t2;\n }\n\n // Set b to the square of the base\n int[] b = squareToLen(table[0], modLen, null);\n b = montReduce(b, mod, modLen, inv);\n\n // Set t to high half of b\n int[] t = Arrays.copyOf(b, modLen);\n\n // Fill in the table with odd powers of the base\n for (int i=1; i < tblmask; i++) {\n int[] prod = multiplyToLen(t, modLen, table[i-1], modLen, null);\n table[i] = montReduce(prod, mod, modLen, inv);\n }\n\n // Pre load the window that slides over the exponent\n int bitpos = 1 << ((ebits-1) & (32-1));\n\n int buf = 0;\n int elen = exp.length;\n int eIndex = 0;\n for (int i = 0; i <= wbits; i++) {\n buf = (buf << 1) | (((exp[eIndex] & bitpos) != 0)?1:0);\n bitpos >>>= 1;\n if (bitpos == 0) {\n eIndex++;\n bitpos = 1 << (32-1);\n elen--;\n }\n }\n\n int multpos = ebits;\n\n // The first iteration, which is hoisted out of the main loop\n ebits--;\n boolean isone = true;\n\n multpos = ebits - wbits;\n while ((buf & 1) == 0) {\n buf >>>= 1;\n multpos++;\n }\n\n int[] mult = table[buf >>> 1];\n\n buf = 0;\n if (multpos == ebits)\n isone = false;\n\n // The main loop\n while (true) {\n ebits--;\n // Advance the window\n buf <<= 1;\n\n if (elen != 0) {\n buf |= ((exp[eIndex] & bitpos) != 0) ? 1 : 0;\n bitpos >>>= 1;\n if (bitpos == 0) {\n eIndex++;\n bitpos = 1 << (32-1);\n elen--;\n }\n }\n\n // Examine the window for pending multiplies\n if ((buf & tblmask) != 0) {\n multpos = ebits - wbits;\n while ((buf & 1) == 0) {\n buf >>>= 1;\n multpos++;\n }\n mult = table[buf >>> 1];\n buf = 0;\n }\n\n // Perform multiply\n if (ebits == multpos) {\n if (isone) {\n b = mult.clone();\n isone = false;\n } else {\n t = b;\n a = multiplyToLen(t, modLen, mult, modLen, a);\n a = montReduce(a, mod, modLen, inv);\n t = a; a = b; b = t;\n }\n }\n\n // Check if done\n if (ebits == 0)\n break;\n\n // Square the input\n if (!isone) {\n t = b;\n a = squareToLen(t, modLen, a);\n a = montReduce(a, mod, modLen, inv);\n t = a; a = b; b = t;\n }\n }\n\n // Convert result out of Montgomery form and return\n int[] t2 = new int[2*modLen];\n System.arraycopy(b, 0, t2, modLen, modLen);\n\n b = montReduce(t2, mod, modLen, inv);\n\n t2 = Arrays.copyOf(b, modLen);\n\n return new BigInteger(1, t2);\n }",
"private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }",
"BigDecimal Spigot()\n\t{\n\t\t\n\t\tint increment \t= 20000;\n\t\tint max \t\t= 1000000;\n\t\t\n\t\tBigDecimal totResult = new BigDecimal(0.0);\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result1 = new BigDecimal(0.0);\n\t\t\n\t\tBigDecimal sixTeenPowStartVal = new BigDecimal(1.0);\n\t\tBigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult1 = result1.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\n\t\tresult1 = result1.multiply( new BigDecimal(4) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result2 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult2 = result2.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\tresult2 = result2.multiply( new BigDecimal(2) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result3 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult3 = result3.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result4 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult4 = result4.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\ttotResult = result1.subtract( result2.add( result3 ).add( result4 ) );\n\t\t\n\t\treturn totResult;\n\t}",
"private static BigInteger encrypt(BigInteger x, BigInteger e, BigInteger n) {\r\n\t\treturn x.modPow(e, n);\r\n\t}",
"public int modulo(int a, int b) {\n return a % b;\n }",
"private static long modInverse64(long d)\n {\n long x = d + (((d + 1L) & 4L) << 1); // d.x == 1 mod 2**4\n x *= 2 - d * x; // d.x == 1 mod 2**8\n x *= 2 - d * x; // d.x == 1 mod 2**16\n x *= 2 - d * x; // d.x == 1 mod 2**32\n x *= 2 - d * x; // d.x == 1 mod 2**64\n// assert d * x == 1L;\n return x;\n }",
"Integer get_add(Key key, int mod);",
"@Test\n public void testLargeALargeM() {\n assertEquals(11479907, PiGenerator.powerMod(123456, 2, 42423131));\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 }",
"public static void exArray01() {\r\n\r\n\t\tint i = 0;\r\n\t\tint K = 2;\r\n\t\tint sum = 0;\r\n\t\tint[] a = new int[5];\r\n\r\n\t\tSystem.out.println(\"Array with random numbers: \");\r\n\r\n\t\tfor (i = 0; i < a.length; i++) {\r\n\t\t\ta[i] = Helper.getRandomRange(1, 10);\r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\t}\r\n\r\n\t\tfor (i = 0; i < a.length; i++) {\r\n\r\n\t\t\tif ((a[i] % K) == 0) {\r\n\t\t\t\tsum += a[i];\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nSum of all multiples to \" + K + \" equals to \" + sum);\r\n\r\n\t}",
"public static void main(String[] args){\n for(int i = 1 ;i < 1000; i++){\n int x = i / 100;\n int y = (i % 100) / 10;\n int z = i % 10;\n int sum = x*x*x + y*y*y +z*z*z;\n if(i == sum || i < 10)\n System.out.println(i);\n }\n }"
]
| [
"0.60792047",
"0.5872232",
"0.5723001",
"0.5706899",
"0.56856847",
"0.56656086",
"0.5603434",
"0.5559723",
"0.55305296",
"0.5521591",
"0.5483796",
"0.54629016",
"0.54574686",
"0.5439004",
"0.53993917",
"0.5396234",
"0.5382255",
"0.538147",
"0.53560287",
"0.5353349",
"0.53405404",
"0.5314407",
"0.53059465",
"0.5302235",
"0.5286069",
"0.5275938",
"0.5275044",
"0.5262067",
"0.52469337",
"0.52353483",
"0.52074397",
"0.5204938",
"0.5204029",
"0.519997",
"0.5185949",
"0.51847214",
"0.51713455",
"0.51653063",
"0.5154499",
"0.51494455",
"0.5142533",
"0.5136378",
"0.5131437",
"0.5124618",
"0.5118865",
"0.5089351",
"0.5084979",
"0.50834376",
"0.5068726",
"0.5060479",
"0.5057642",
"0.5053523",
"0.5049953",
"0.5047002",
"0.50466186",
"0.5046389",
"0.504351",
"0.5032005",
"0.50295925",
"0.50239843",
"0.50177056",
"0.50163233",
"0.50131553",
"0.50050247",
"0.5001928",
"0.50010204",
"0.49996722",
"0.49798805",
"0.49778613",
"0.4975453",
"0.49753174",
"0.49722493",
"0.49662134",
"0.4964436",
"0.49635383",
"0.4957775",
"0.49520716",
"0.49506938",
"0.49493402",
"0.49454626",
"0.49443245",
"0.49400657",
"0.4937527",
"0.49362475",
"0.49359027",
"0.49353164",
"0.4931609",
"0.49308708",
"0.49263194",
"0.4924562",
"0.49205408",
"0.49186057",
"0.49124283",
"0.49114847",
"0.49085495",
"0.490495",
"0.49020547",
"0.4902051",
"0.489484",
"0.4893755"
]
| 0.5292504 | 24 |
Metodo que agrega un objeto en la base de datos, no recive ningun parametro | public void registrarUsuarioFinal(){
Usuario nuevoUsuario= new Usuario();
nuevoUsuario.setNombreUsuario(nuevoNombreUsuario);
nuevoUsuario.setPassword(nuevoPasswordUsuario);
nuevoUsuario.setTipoUsuario("final");
IUsuarioDAO iusuarioDAO = new UsuarioDAOImp();
iusuarioDAO.agregarUsuario(nuevoUsuario);
FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, "Usuario registrado", "Usuario registrado exitosamente");
FacesContext.getCurrentInstance().addMessage(null, facesMessage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);",
"ParqueaderoEntidad agregar(String nombre);",
"Objet getObjetAlloue();",
"public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }",
"@Override\n\tpublic void adicionarNoInicio(T obj) {\n\n\t}",
"public Cuenta(Usuario usuario) { // constructor que crea objetos tipo cuenta que recibe por parámetro\n //un objeto de tipo usuario\n\n this.usuario = usuario;\n saldo = 0;\n }",
"void adicionaComentario(Comentario comentario);",
"public void carregar(DadosGrafico dados){\r\n \r\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"void adicionar(Object o);",
"@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }",
"public void add(String nome, Object obj);",
"@Override\n\tpublic void insert(Unidade obj) {\n\n\t}",
"public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }",
"@Override\n public void add(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)\");\n\n pstmt.setString(1, entity.getNombre());\n pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n \n pstmt.execute();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\t@Override\r\n\tpublic void agregar(String cUsuario, ColorAuto obj) {\n\r\n\t\tConnection conexion = null;\r\n\t\ttry {\r\n\t\t\tconexion = ConexionApp.iniConexion();\r\n\r\n\t\t\tBooleanHolder lhResultado = new BooleanHolder();\r\n\t\t\tStringHolder chTexto = new StringHolder();\r\n\t\t\tapp app = new app(conexion);\r\n\r\n\t\t\tVector vector = new Vector();\r\n\t\t\tvector.add(obj.getLista());\r\n\r\n\t\t\tResultSetHolder tt_Nuevos = new ResultSetHolder(new VectorResultSet(vector));\r\n\t\t\tapp.as_ctColorAuto_Inserta(cUsuario, tt_Nuevos, lhResultado, chTexto);\r\n\r\n\t\t\tthis.setResultado(lhResultado.getBooleanValue());\r\n\t\t\tthis.setMensaje(chTexto.getStringValue());\r\n\r\n\t\t\tapp._release();\r\n\r\n\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tthis.setResultado(true);\r\n\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tConexionApp.finConexion(conexion);\r\n\r\n\t\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tthis.setResultado(true);\r\n\t\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }",
"public ClaseGenerica(T objeto){\n this.objeto=objeto;\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"Compuesta createCompuesta();",
"public abstract Anuncio creaAnuncioIndividualizado();",
"int insert(Tipologia record);",
"protected abstract DBObject getNewObject();",
"public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }",
"public void inicializar();",
"Reserva Obtener();",
"public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Empresa\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tEmpresa entity = new Empresa();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=EmpresaDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,EmpresaDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Seguridad.Empresa.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseEmpresa(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }",
"public ValorPorUnidadLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess = new ValorPorUnidadDataAccess();\r\n\t\t\t\r\n\t\t\tthis.valorporunidads= new ArrayList<ValorPorUnidad>();\r\n\t\t\tthis.valorporunidad= new ValorPorUnidad();\r\n\t\t\t\r\n\t\t\tthis.valorporunidadObject=new Object();\r\n\t\t\tthis.valorporunidadsObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.valorporunidadDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }",
"protected void agregarUbicacion(){\n\n\n\n }",
"public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //Banco\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tBanco entity = new Banco();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=BancoDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,BancoDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Tesoreria.Banco.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseBanco(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }",
"@DirectMethod\r\n\tpublic String agregarNodosArbolIn(boolean bNvoHijo,//que si es nuevo hijo si dice false es padre\r\n\t\t\t\t\t\t\t\t\tString sRuta,//trae la clave de donde viene de la empresa raiz ala que se le metera el hijo\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaRaiz,//trae la clave de la empresa raiz ala que se le metera el hijo \r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaHijo,//Id de la empresa \r\n\t\t\t\t\t\t\t\t\tdouble uMonto,//monto en flotante\r\n\t\t\t\t\t\t\t\t\tString nombreArbol,//trae un dato en blanco ''\r\n\t\t\t\t\t\t\t\t\t//String tipoValor,//trae el dato del combo tipodevalor \r\n\t\t\t\t\t\t\t\t\tint tipoOperacion,//treae el numero de la operacion\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaPadre){//trae el Id del padre ala que se insertara\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\tString sMsgUsuario = \"en nodos hojso angel\";\r\n\t\tif(!Utilerias.haveSession(WebContextManager.get()))\r\n\t\t\treturn sMsgUsuario;\r\n\t\ttry{\r\n\t\t\tBarridosFondeosService barridosFondeosService = (BarridosFondeosService) contexto.obtenerBean(\"barridosFondeosBusinessImpl\");\r\n\t\t\tsMsgUsuario = barridosFondeosService.agregarNodosArbolIn(bNvoHijo, sRuta, iIdEmpresaRaiz, \r\n\t\t\t\t\tiIdEmpresaHijo, uMonto, nombreArbol, tipoOperacion, iIdEmpresaPadre); \r\n\t\t}catch(Exception e){\r\n\t\t\tbitacora.insertarRegistro(new Date().toString() + \" \" + Bitacora.getStackTrace(e)\r\n\t\t\t\t\t+ \"P: BarridosFondeos C: BarridosFondeosAction M: agregarNodosArbolIn\");\r\n\t\t}return sMsgUsuario;\r\n\t}",
"public int Create(Objet obj) {\n\t\tPreparedStatement smt=null; \n\t\t\n\t\tString chaineSQL=\"\";\n int rep=0;\n \t\t\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tchaineSQL=\"insert into objet_vente (Designation,Prix,Categories,Lieu,Date,Email) values(?,?,?,?,?,?)\";\t\t\t\n\t\t\tsmt=this.getCnn().prepareStatement(chaineSQL, Statement.RETURN_GENERATED_KEYS); //retourne le Id auto incrementé lors de l'envoie de la chaine sql\n\t\t\t\n\t\t\tsmt.setString(1, obj.getDesignation());\n\t\t\tsmt.setInt(2, Integer.parseInt(obj.getPrix()));\n\t\t\tsmt.setString(3, obj.getCategorie());\n\t\t\tsmt.setString(4, obj.getLieu());\n\t\t\tsmt.setDate(5, obj.getDate());\n\t\t\tsmt.setString(6, obj.getEmail());\n\t\t\t\n\t\t\t\t\t\n\t\t\trep=smt.executeUpdate();\n\t\t\t// rep contient le nbre d'enreigistrement effectué/ligne\n\t\t\tResultSet generatedKey = smt.getGeneratedKeys(); //getGeneratedKeys retourne le *id auto incrementé\n\t\t\tgeneratedKey.next();\n\t\t\t//on sait que y a q'une ligne ou on insere donc 1 seule .next()\n\t\t\tobj.setId(generatedKey.getInt(1));\n\t\t\t// lit dans la 1ere colonne avec la ligne correspondante a celle crée et retourne ici l'ID objet\n\t\t\t\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rep;\n\t}",
"Documento createDocumento();",
"public void salvarProdutos(Produto produto){\n }",
"public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }",
"Lancamento persistir(Lancamento lancamento);",
"public void recupera() {\n Cliente clienteActual;\n clienteActual=clienteDAO.buscaId(c.getId());\n if (clienteActual!=null) {\n c=clienteActual;\n } else {\n c=new Cliente();\n }\n }",
"private Object buscaRegistro(BaseJDBC baseJDBC, Class<?> classe, Object id, int profundidade, Class<?>[] classes, int classesVerifica, List<OMObtido> jaObtidos) throws Exception\r\n\t{\r\n\t\tObject objetoAux, idAux;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor(int i=0; i<jaObtidos.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tobjetoAux = jaObtidos.get(i).getOm();\r\n\t\t\t\tif(objetoAux!=null && objetoAux.getClass()==classe)\r\n\t\t\t\t{\r\n\t\t\t\t\tidAux = getIdValue(objetoAux);\r\n\t\t\t\t\tif(idAux!=null && idAux.equals(id))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(jaObtidos.get(i).getProfundidade()>=profundidade) \t{ return objetoAux; }\r\n\t\t\t\t\t\telse \t\t\t\t\t\t\t\t\t\t\t\t\t{ break; }\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\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogs.addWarn(\"Nao foi possivel buscar o registro\", e);\r\n\t\t}\r\n\t\t\r\n\t\tobjetoAux = obtemUnico(baseJDBC, classe, id, profundidade, classes, classesVerifica, jaObtidos);\r\n\t\tjaObtidos.add(new OMObtido(objetoAux, profundidade));\r\n\t\treturn objetoAux;\r\n\t}",
"public void anadirObjetoRecolectable (ObjetoRecolectable pObjeto){\n\t\tif (pObjeto instanceof ObjetoClave){\n\t\t\tthis.anadirObjetoClave((ObjetoClave)pObjeto);\n\t\t}\n\t\telse if (pObjeto instanceof PiezaArmadura){\n\t\t\tthis.actualizarArmadura((PiezaArmadura)pObjeto);\n\t\t}\n\t}",
"public abstract void leerPersistencia();",
"Input getObjetivo();",
"public ClienteArchivoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.clientearchivoDataAccess = new ClienteArchivoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.clientearchivos= new ArrayList<ClienteArchivo>();\r\n\t\t\tthis.clientearchivo= new ClienteArchivo();\r\n\t\t\t\r\n\t\t\tthis.clientearchivoObject=new Object();\r\n\t\t\tthis.clientearchivosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.clientearchivoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.clientearchivoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public void inicializarOrdenDeCorte(OrdenDeCorte oc);",
"void crearNuevaPersona(Persona persona);",
"public void inserir(Comentario c);",
"public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new PresuTipoProyecto();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoObject=new Object();\r\n\t\t\tthis.presutipoproyectosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.presutipoproyectoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }",
"public void setObjeto(ObjetoVida o){\r\n\t\tobjeto = o;\r\n\t}",
"Motivo create(Motivo motivo);",
"Persistencia() {\n\t}",
"public Final_parametre() {\r\n\t}",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"public NodoDoble(Object valor) {\n this.valor = valor;\n }",
"public void add(Object objeto) throws BolsaCompletaException {\r\n\r\n\t\tif (lista.size() < tope) { // chequeamos que la bolsa ya no este llena\r\n\t\t\tlista.add(objeto);// agregamos el objeto a la bolsa\r\n\t\t\tSystem.out.println(\"Se Agrego el objeto a la bolsa\");\r\n\t\t} else {\r\n\r\n\t\t\t throw new BolsaCompletaException(\" Cosas \");//recordar agregar throws\r\n\t\t\t//throw new RuntimeException(\"No Caben Mas elementos\");\r\n\t\t}\r\n\r\n\t}",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"public void grabarConcepto(){\r\n try {\r\n Conexion conexion = new Conexion();\r\n String query = \"insert into concepto (descripcion, tipoConcepto, porcentaje, monto, fijo) values (?,?,?,?,?);\";\r\n PreparedStatement st = conexion.getConnection().prepareStatement(query);\r\n st.setString(1, this.getDescripcion());\r\n st.setString(2, this.getTipoConcepto());\r\n st.setDouble(3, this.getPorcentaje());\r\n st.setDouble(4, this.getMonto());\r\n st.setString(5, this.getFijo());\r\n st.execute();\r\n System.out.println(\"SE GRABO EL CONCEPTO EN LA BASE DE DATOS\");\r\n st.close();\r\n conexion.desconectar();\r\n } catch (SQLException ex) {\r\n System.err.println(ex.getMessage());\r\n }\r\n }",
"Operacion createOperacion();",
"@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}",
"public UtentiDB(){\r\n this.utenti = new LinkedList<Utente>();\r\n }",
"Casilla(String nombre){\n this.nombre=nombre; \n }",
"public void casdastrar(RelatorioDAO obj) throws SQLException {\n\t\t\n\t}",
"public void insertConsultoraNivel1(ConsultoraNivel1 consultoraNivel1);",
"Secuencia createSecuencia();",
"private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }",
"public Caso_de_uso () {\n }",
"private void guardarEstadoObjetosUsados() {\n }",
"public Lector(BD gestor, int id)\n {\n this.base_de_datos=gestor;\n this.id=id;\n }",
"public NodoDoble(NodoDoble<E> anterior, E elemento, NodoDoble<E> siguiente){//a ver si no te da problema el nodo por no estar especigicando su tipo... puesto que esta clase es genérica y aquí estas creando uno sin saber, asi que creo que debería de especificarselo\n contenido = elemento;\n nodoSiguiente = siguiente;\n nodoAnterior = anterior;\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public void saveORUpdateObra(Obra obra) throws Exception;",
"public void datos_elegidos(){\n\n\n }",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"public static void insertar(plantilla p,String nombre){\n\t\ttry {\r\n \tObjectInputStream entrada=new ObjectInputStream(new FileInputStream(nombre+\".lorito\"));\r\n patronesPlantillas obj1=(patronesPlantillas)entrada.readObject();\r\n obj1.mostrarPatronesPlantillas();\r\n System.out.println(\"-----------------------------\");\r\n entrada.close();\r\n \r\n\t\tobj1.insertarPlantilla(p);\r\n \r\n \r\n ObjectOutputStream salida=new ObjectOutputStream(new FileOutputStream(obj1.nombre()+\".lorito\"));\r\n // salida.writeObject(\"guardar este string y un objeto\\n\");\r\n salida.writeObject(obj1);\r\n salida.close();\r\n \r\n entrada=new ObjectInputStream(new FileInputStream(nombre+\".lorito\"));\r\n // String str=(String)entrada.readObject();\r\n obj1=(patronesPlantillas)entrada.readObject();\r\n obj1.mostrarPatronesPlantillas();\r\n System.out.println(\"-----------------------------\");\r\n entrada.close(); \r\n \r\n }catch (Exception e) { }\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t}",
"public Alojamiento() {\r\n\t}",
"public REGISTRARSE()\n {\n \t this.datos=new DATOS();\n }",
"public Objet getObjetById(int id){\n \n Objet ob=null;\n String query=\" select * from objet where id_objet=\"+id;\n \n try { \n Statement state = Connect.getInstance().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = state.executeQuery(query);\n while(res.next()) ob=new Objet(res.getInt(\"id_objet\"),res.getInt(\"id_user\"),res.getInt(\"qte\"),res.getString(\"types\"),res.getString(\"description\"));\n res.close();\n state.close();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }\n \n return ob;\n }",
"public void setEntidad(T entidad) {\r\n this.entidad = entidad;\r\n fillData(entidad);\r\n }",
"@Override\r\n public void agregarVehiculo(VehiculoModel vehiculo) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"Insert into vehiculo(veh_placa, veh_marca, veh_modelo, veh_anio, veh_capacidad, veh_color, veh_kilometros) values (?, ?, ?, ?, ?, ?, ?)\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, vehiculo.getVehPlaca());\r\n statement.setString(2, vehiculo.getVehMarca());\r\n statement.setString(3, vehiculo.getVehModelo());\r\n statement.setInt(4, vehiculo.getVehAnio());\r\n statement.setInt(5, vehiculo.getVehCapacidad());\r\n statement.setString(6, vehiculo.getVehColor());\r\n statement.setInt(7, vehiculo.getVehKilometros());\r\n //para insert into se usa executeUpdate();\r\n int rowUpdated = statement.executeUpdate();\r\n if(rowUpdated > 0){\r\n JOptionPane.showMessageDialog(null, \"El registro fue \" \r\n + \" creado exitosamente.\");\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Codigo : \" + ex.getErrorCode() + \"\\nError : \" + ex.getMessage());\r\n }\r\n }",
"private void attachEntity(Usuario entity) {\n }",
"public Object getAsObject(FacesContext facesContext, UIComponent component, String valor) {\n\t\ttry {\r\n\t\t\tLong codigo = Long.parseLong(valor);\r\n\t\t\tEnsinoDao ensinoDao = new EnsinoDao();\r\n\t\t\tEnsino ensino = ensinoDao.buscarPorCodigo(codigo);\r\n\r\n\t\t\treturn ensino;\r\n\t\t\t\r\n\t\t}catch(RuntimeException er) {\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public Entrada(String titulo, String descripcion, String enlace, String autor, String fecha, String categoria) {\n this.titulo = titulo;\n this.descripcion = descripcion;\n this.enlace = enlace;\n this.autor = autor;\n this.fecha = fecha;\n this.categoria = categoria;\n// this.imagen = imagen;\n }",
"public LocalResidenciaColaborador() {\n //ORM\n }",
"public FlujoDetalleDTO leerRegistro() {\n/* */ try {\n/* 82 */ FlujoDetalleDTO reg = new FlujoDetalleDTO();\n/* */ \n/* 84 */ reg.setCodigoFlujo(this.rs.getInt(\"codigo_flujo\"));\n/* 85 */ reg.setSecuencia(this.rs.getInt(\"secuencia\"));\n/* 86 */ reg.setServicioInicio(this.rs.getInt(\"servicio_inicio\"));\n/* 87 */ reg.setCodigoEstado(this.rs.getInt(\"codigo_estado\"));\n/* 88 */ reg.setServicioDestino(this.rs.getInt(\"servicio_destino\"));\n/* 89 */ reg.setNombreProcedimiento(this.rs.getString(\"nombre_procedimiento\"));\n/* 90 */ reg.setCorreoDestino(this.rs.getString(\"correo_destino\"));\n/* 91 */ reg.setEnviarSolicitud(this.rs.getString(\"enviar_solicitud\"));\n/* 92 */ reg.setMismoProveedor(this.rs.getString(\"ind_mismo_proveedor\"));\n/* 93 */ reg.setMismoCliente(this.rs.getString(\"ind_mismo_cliente\"));\n/* 94 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 95 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 96 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 97 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 98 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 99 */ reg.setNombreServicioInicio(this.rs.getString(\"nombre_servicio_inicio\"));\n/* 100 */ reg.setNombreCodigoEstado(this.rs.getString(\"nombre_codigo_estado\"));\n/* 101 */ reg.setNombreServicioDestino(this.rs.getString(\"nombre_servicio_destino\"));\n/* 102 */ reg.setNombreEstado(this.rs.getString(\"nombre_estado\"));\n/* 103 */ reg.setCaracteristica(this.rs.getInt(\"caracteristica\"));\n/* 104 */ reg.setCaracteristicaValor(this.rs.getInt(\"valor_caracteristica\"));\n/* 105 */ reg.setCaracteristicaCorreo(this.rs.getInt(\"caracteristica_correo\"));\n/* 106 */ reg.setNombreCaracteristica(this.rs.getString(\"nombre_caracteristica\"));\n/* 107 */ reg.setDescripcionValor(this.rs.getString(\"descripcion_valor\"));\n/* 108 */ reg.setMetodoSeleccionProveedor(this.rs.getString(\"metodo_seleccion_proveedor\"));\n/* 109 */ reg.setIndCorreoCliente(this.rs.getString(\"ind_correo_clientes\"));\n/* */ \n/* */ try {\n/* 112 */ reg.setEnviar_hermana(this.rs.getString(\"enviar_hermana\"));\n/* 113 */ reg.setEnviar_si_hermana_cerrada(this.rs.getString(\"enviar_si_hermana_cerrada\"));\n/* 114 */ reg.setInd_cliente_inicial(this.rs.getString(\"ind_cliente_inicial\"));\n/* */ \n/* */ \n/* */ }\n/* 118 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 122 */ return reg;\n/* */ }\n/* 124 */ catch (Exception e) {\n/* 125 */ e.printStackTrace();\n/* 126 */ Utilidades.writeError(\"FlujoDetalleDAO:leerRegistro \", e);\n/* */ \n/* 128 */ return null;\n/* */ } \n/* */ }",
"Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }",
"public DatoGeneralEmpleadoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess = new DatoGeneralEmpleadoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleados= new ArrayList<DatoGeneralEmpleado>();\r\n\t\t\tthis.datogeneralempleado= new DatoGeneralEmpleado();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoObject=new Object();\r\n\t\t\tthis.datogeneralempleadosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.datogeneralempleadoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }",
"BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }",
"public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }",
"public Bodega(@JsonProperty(value=\"id\") int id, @JsonProperty(value=\"estado\") char estado, @JsonProperty(value=\"tipo\") char tipo,@JsonProperty(value=\"ancho\") double ancho\r\n\t\t\t,@JsonProperty(value=\"largo\") double largo,@JsonProperty(value=\"plataformaExterna\") boolean plataformaExterna\r\n\t\t\t,@JsonProperty(value=\"tipoDeCarga\")TipoDeCarga tipoDeCarga,@JsonProperty(value=\"separacion\") double separacion\r\n\t\t\t, @JsonProperty(value=\"cuartosFrios\") List<CuartoFrio> cuartosFrios,@JsonProperty(value=\"entradas\") List<Operacion>entradas, @JsonProperty(value=\"salidas\") List<Operacion>salidas)\r\n\t{\r\n\t\tsuper(id,estado,tipo,entradas,salidas);\r\n\t\t\r\n\t\tthis.ancho=ancho;\r\n\t\tthis.largo=largo;\r\n\t\tthis.plataformaExterna=plataformaExterna;\r\n\t\tthis.tipoDeCarga=tipoDeCarga;\r\n\t\tthis.separacion=separacion;\r\n\t\tthis.setCuartosFrios(cuartosFrios);\r\n\t}",
"@Override\r\n\tpublic boolean create(Moteur obj, Connection conn) throws SQLException {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}",
"public Cgg_res_oficial_seguimiento_usuario(){}",
"public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }",
"public RequestDatosUsuario(){\r\n\t\tsuper();\r\n\t}",
"int insertSelective(Tipologia record);",
"public DAOImpl(String baseDatos, String usuario, String clave){\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }",
"OperacionColeccion createOperacionColeccion();",
"public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }",
"public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }",
"@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}",
"public CalMetasDTO leerRegistro() {\n/* */ try {\n/* 56 */ CalMetasDTO reg = new CalMetasDTO();\n/* 57 */ reg.setCodigoCiclo(this.rs.getInt(\"codigo_ciclo\"));\n/* 58 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 59 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 60 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 61 */ reg.setDescripcion(this.rs.getString(\"descripcion\"));\n/* 62 */ reg.setJustificacion(this.rs.getString(\"justificacion\"));\n/* 63 */ reg.setValorMeta(this.rs.getDouble(\"valor_meta\"));\n/* 64 */ reg.setTipoMedicion(this.rs.getString(\"tipo_medicion\"));\n/* 65 */ reg.setFuenteDato(this.rs.getString(\"fuente_dato\"));\n/* 66 */ reg.setAplicaEn(this.rs.getString(\"aplica_en\"));\n/* 67 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 68 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 69 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 70 */ reg.setMes01(this.rs.getString(\"mes01\"));\n/* 71 */ reg.setMes02(this.rs.getString(\"mes02\"));\n/* 72 */ reg.setMes03(this.rs.getString(\"mes03\"));\n/* 73 */ reg.setMes04(this.rs.getString(\"mes04\"));\n/* 74 */ reg.setMes05(this.rs.getString(\"mes05\"));\n/* 75 */ reg.setMes06(this.rs.getString(\"mes06\"));\n/* 76 */ reg.setMes07(this.rs.getString(\"mes07\"));\n/* 77 */ reg.setMes08(this.rs.getString(\"mes08\"));\n/* 78 */ reg.setMes09(this.rs.getString(\"mes09\"));\n/* 79 */ reg.setMes10(this.rs.getString(\"mes10\"));\n/* 80 */ reg.setMes11(this.rs.getString(\"mes11\"));\n/* 81 */ reg.setMes12(this.rs.getString(\"mes12\"));\n/* 82 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 83 */ reg.setTipoGrafica(this.rs.getString(\"tipo_grafica\"));\n/* 84 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 85 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 86 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 87 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 88 */ reg.setNombreTipoMedicion(this.rs.getString(\"nombreTipoMedicion\"));\n/* 89 */ reg.setNombreEstado(this.rs.getString(\"nombreEstado\"));\n/* 90 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* */ \n/* */ try {\n/* 93 */ reg.setNumeroAcciones(this.rs.getInt(\"acciones\"));\n/* */ }\n/* 95 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 99 */ return reg;\n/* */ }\n/* 101 */ catch (Exception e) {\n/* 102 */ e.printStackTrace();\n/* 103 */ Utilidades.writeError(\"CalPlanMetasFactory:leerRegistro \", e);\n/* */ \n/* 105 */ return null;\n/* */ } \n/* */ }"
]
| [
"0.72872114",
"0.68303853",
"0.64453065",
"0.6348356",
"0.63117313",
"0.6282985",
"0.6268342",
"0.6246815",
"0.623856",
"0.6227617",
"0.61495763",
"0.6146959",
"0.6118991",
"0.6081928",
"0.60786873",
"0.6078106",
"0.6062212",
"0.6032714",
"0.60322094",
"0.60222214",
"0.59822696",
"0.59752405",
"0.59710824",
"0.59672105",
"0.5965564",
"0.5963076",
"0.59627205",
"0.5947163",
"0.5927068",
"0.590984",
"0.590787",
"0.5907818",
"0.5904364",
"0.5903053",
"0.5901076",
"0.58881754",
"0.5887212",
"0.58795726",
"0.5864467",
"0.5860485",
"0.5847289",
"0.5824695",
"0.58235836",
"0.5813726",
"0.5808726",
"0.580464",
"0.5802527",
"0.58017343",
"0.57999074",
"0.5795825",
"0.57956403",
"0.5786442",
"0.57830125",
"0.57760346",
"0.57747024",
"0.57675344",
"0.57510024",
"0.5750098",
"0.57489747",
"0.5738873",
"0.5729773",
"0.5722728",
"0.5721239",
"0.5717635",
"0.5712893",
"0.5710249",
"0.5709503",
"0.5698086",
"0.5694191",
"0.5691144",
"0.5688711",
"0.5687239",
"0.56843686",
"0.5684207",
"0.5674579",
"0.567239",
"0.5671351",
"0.56706536",
"0.5668442",
"0.56616545",
"0.5653879",
"0.56523365",
"0.56521106",
"0.56512994",
"0.5646516",
"0.56429875",
"0.56410134",
"0.5640608",
"0.5639899",
"0.563985",
"0.56396246",
"0.5635819",
"0.5633934",
"0.56315434",
"0.56300896",
"0.56288236",
"0.5628436",
"0.5627805",
"0.5626393",
"0.5625856",
"0.56230986"
]
| 0.0 | -1 |
este metodo realiza la validacion de usuario , no recibe ningun parametro | public String validarUsuario(){
String resultado = null;
IUsuarioDAO usuarioDAO = new UsuarioDAOImp();
Usuario usuario = usuarioDAO.validarUsuario(nombreUsuario, password);
if(usuario!=null){
FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, "Usuario válido", "Usuario válido");
FacesContext.getCurrentInstance().addMessage(null, facesMessage);
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("usuarioValidado", usuario);
if(usuario.getTipoUsuario().equals("admin"))
resultado = "admin?faces-redirect=true";
else
{
if(usuario.getTipoUsuario().equals("final"))
resultado = "final?faces-redirect=true";
else
{
if(usuario.getTipoUsuario().equals("supervisor"))
resultado= "menu";
else
resultado = "login";
}
}
}else{
FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Credenciales Inválidas", "Credenciales Inválidas");
FacesContext.getCurrentInstance().addMessage(null, facesMessage);
}
return resultado;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Usuario validarUsuario(Usuario usuario) throws Exception;",
"public User validarUsuario(String email, String password) throws BLException;",
"public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}",
"public void validacionDatos() {\n if (!this.interfazLogin.txtUsuario().getText().isEmpty()) {\n if (this.interfazLogin.txtPassword().getText().length() > 7) {\n\n String[] usuario = modeloLogin.getAcceso(\n this.interfazLogin.txtUsuario().getText(),\n this.interfazLogin.txtPassword().getText());\n\n if (usuario[0].isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Usuario o Contraseña Invalidos\");\n } else {\n controlInterfazPrincipal();\n\n if (usuario[2].equals(\"Administrador\")) {\n interfazPrincipal.btnUsuario().setVisible(true);\n pintarPanelPrincipal(panelUsuarios);\n\n } else {\n interfazPrincipal.btnUsuario().setVisible(false);\n pintarPanelPrincipal(panelClientes);\n }\n }\n this.interfazLogin.txtPassword().setText(\"\");\n } else {\n JOptionPane.showMessageDialog(null, \"El campo de password debe tener como minino 8 caracteres\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"El campo de usurario no puede ir vacio\");\n }\n }",
"@Override\n public boolean validacionLogin(UsuarioDto usuarioDto) {\n HashMap<String, Object> params = new HashMap<>();\n params.put(\"NOMBRE_USUARIO\", usuarioDto.getNombre());\n params.put(\"PASS\", usuarioDto.getContracena());\n IntegerDto data = (IntegerDto) executeList(IntegerDto.class, \"PRC_VALIDAR_LOGIN\", params).get(0);\n return data.getData() != 0;\n }",
"private void validateUserObject(User user) {\n\t }",
"public boolean validarUsuario(String correo, String contrasena) {\n\n usuario = usuarioDAO.login(correo, contrasena);\n if (usuario != null) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }",
"private void validateUserObject(User user) {\n }",
"public User validate(String emailID , String password);",
"public int validarUsuario(Login l){\n\t\tcx.con();\n\t\tString com = \"SELECT * FROM usuario \"+ \n\t\t\t\t\"WHERE usuario='\"+l.getUsuario()+\"' \"+\n\t\t\t\t\"AND password='\"+l.getPassword()+\"' \"+\n\t\t\t\t\"AND estado=true\";\n\t\tint res = cx.contarFilas(com);\n\t\tcx.desconectar();\n\t\treturn res;\n\t}",
"private void validateUserObject(User user) {\n }",
"private static void validar() throws AcessoException {\r\n BancoDados bd = new BancoDados();\r\n PreparedStatement ps;\r\n ResultSet rs;\r\n String sql;\r\n \r\n try {\r\n //Define String\r\n sql = \"SELECT * FROM Usuario WHERE Login=? AND Senha=? AND XDEAD=FALSE\";\r\n //Prepara gatilho\r\n ps = bd.abrirConexao().prepareStatement(sql);\r\n ps.setString(1, usuario.getLogin());\r\n ps.setString(2, usuario.getSenha());\r\n //Executa e puxa a busca\r\n rs = ps.executeQuery();\r\n //Caso não foi encontrado, informa de erro, e anula admin\r\n if(!rs.next()){\r\n usuario = null;\r\n throw new AcessoException(\"Usuário não encontrado.\");\r\n }\r\n //Fecha conexão\r\n bd.fecharConexao();\r\n } catch(SQLException ex) {\r\n throw new AcessoException(\"Erro de SQL: \" + ex.getMessage() + \".\");\r\n } catch(ConexaoException ex) {\r\n throw new AcessoException(\"Erro de conexão: \" + ex.getMessage() + \".\");\r\n }\r\n }",
"public Boolean validarUsuarioActivo(String idUsuario);",
"private void validationUsername( String username ) throws Exception {\n\n if ( username.length() < 4 ) {\n throw new Exception( \"Longueur du nom d'utilisateur invalide.\" );\n }\n if ( username == null ) {\n throw new Exception( \"Merci de saisir un nom d'utilisateur valide.\" );\n }\n }",
"private boolean checkUserInformation(String name,String userName,String email,String password)\n {\n\n if(userName.isEmpty())\n {\n eUserName.setError(\"empty field\");\n return false;\n }\n\n if(name.isEmpty())\n {\n eName.setError(\"empty field\");\n return false;\n }\n\n if(email.isEmpty())\n {\n eEmail.setError(\"empty field\");\n return false;\n }\n if(password.isEmpty())\n {\n ePassword.setError(\"empty field\");\n return false;\n }\n\n\n if(password.length()<6)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n if(password.length()>16)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().isEmpty())\n {\n eAddress.setError(\"Invalid address\");\n eAddress.requestFocus();\n return false;\n }\n\n if(eFavourite.getText().toString().isEmpty())\n {\n eFavourite.setError(\"empty field\");\n eFavourite.requestFocus();\n return false;\n }\n\n if(!email.contains(\"@\"))\n {\n eEmail.setError(\"Invalid email\");\n eEmail.requestFocus();\n return false;\n }\n\n if(name.length()<3)\n {\n eName.setError(\"Invalid name\");\n eName.requestFocus();\n return false;\n }\n\n for(char c : name.toCharArray()){\n if(Character.isDigit(c)){\n eName.setError(\"Invalid Name\");\n eName.requestFocus();\n return false;\n }\n }\n\n if(userName.length()<5)\n {\n eUserName.setError(\"User name must be in 6 to 12 character\");\n eUserName.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().length()<10||eAddress.getText().toString().length()>30)\n {\n eAddress.setError(\"Must be in 10-30 characters\");\n eAddress.requestFocus();\n return false;\n }\n return true;\n }",
"boolean registrarUsuario(Usuario usuario) throws Exception;",
"public void validate(Object obj, Errors err) {\n\t\tUserLogin userLogin=(UserLogin)obj;\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"fName\", \"fName.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"lName\", \"lName.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"mailId\", \"mailId.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"pass\", \"password.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"mob\", \"mob.emptyOrSpace\");\r\n\t\t\r\n\t\t//Business rule related Validation \r\n\t\tif(userLogin.getfName()!=null && userLogin.getfName().trim().length()>0) {\r\n\t\t\tif(userLogin.getfName().trim().length()>20)\r\n\t\t\t\terr.rejectValue(\"fName\", \"fName.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getlName()!=null && userLogin.getlName().trim().length()>0) {\r\n\t\t\tif(userLogin.getlName().trim().length()>10)\r\n\t\t\t\terr.rejectValue(\"lName\", \"lName.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getMob()!=null && userLogin.getMob().trim().length()>0) {\r\n\t\t\tif(userLogin.getMob().trim().length()!=10)\r\n\t\t\t\terr.rejectValue(\"mob\", \"mob.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getMailId()!=null && userLogin.getMailId().trim().length()>0) {\r\n\t\t\tif(userLogin.getMailId().trim().length()>=20 ) {\r\n\t\t\t\terr.rejectValue(\"mailId\", \"mailId.length.exceeds\");\r\n\t\t\t}else if(!userLogin.getMailId().contains(\"@\")) {\r\n\t\t\t\terr.rejectValue(\"mailId\", \"mailId.format.first.rule\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getPass()!=null && userLogin.getPass().trim().length()>0) {\r\n\t\t\tif(userLogin.getPass().trim().length()>=10 ) {\r\n\t\t\t\terr.rejectValue(\"pass\", \"pass.length.exceeds\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//DB validations\r\n\t\tif(!registerService.validateUser(userLogin)) {\r\n\t\t\terr.rejectValue(\"mailId\", \"mailId.alreadyRegistered\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@BodyParser.Of(BodyParser.Xml.class)\n\t public static Result validarUsuario() //cambie aqui, y en gestorUsuario, si hay un error, lo setea en nombre y nombres para poder mostrar error personalizado\n\t {\n\t\t UsuarioOD validarusuario= null;\n\t\t System.out.println(\"Validando Usuario\");\n\t\t String nick = XPath.selectText(\"//nick\", request().body().asXml());\n\t\t String clave = XPath.selectText(\"//clave\", request().body().asXml());\n\t\t System.out.println(\"el nick es: \"+nick);\n\t\t System.out.println(\"el pass es: \"+clave);\n\t\t UsuarioOD usuario = new UsuarioOD(nick,clave);\n\t\t GestorUsuario validar = new GestorUsuario();\n\t\t String IP = null;\n\t\t\t \n\t\t try \n\t\t {\n\t\t\t IP = java.net.InetAddress.getLocalHost().getHostAddress();\n\t\t\t validarusuario = validar.Login(usuario,IP);\n\t\t\t if(!validarusuario.getNombre().equals(\"error\"))\t//antes era validarusuario!=null, lo cambie y si no lo encuentra, en el nombre, el gestor guarda el tipo de error\n\t\t\t {\t\t\t\t\t\n\t\t\t\t XStream xstream = new XStream(new DomDriver());\t\t\n\t\t\t\t String xml = xstream.toXML(validarusuario);\n\t\t\t \t xstream.alias(\"usuario\", UsuarioOD.class);\n\t\t\t \t Logger.info(\"ControladorUsuario: El usuario: \"+nick+ \" ha iniciado sesion\");\n\t\t\t \t return ok(xml);\n\t\t\t }\t\t\n\t\t } catch (UnknownHostException e) \n\t\t {\n\t\t\t e.printStackTrace();\t\t\t \n\t\t }\n\t\t String error = validarusuario.getNombres();\n\t\t System.out.println(\"el mega error es: \"+error);\n\t\t Logger.error(\"ControladorUsuario: Error: \"+error+\" del usuario \"+nick);\n\t\t return ok(\"<mensaje>Error: \"+error+\"</mensaje> \");\t \t\n\t }",
"public boolean validarIngresosUsuario_sueldo(JTextField empleadoTF, JTextField montoTF){\n\t\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\t\tif(montoTF.getText().length() >30) return false;\n\t\t\tif(!validarInt(empleadoTF.getText())) return false;\n\t\t\tif(numero==33) return false; //codigo halcones\n\t\t\tif(empleadoTF.getText().length() >30) return false;\n\t\t\t//if(numero < 0) return false;\n\t\t\tif(numero_double < 0) return false;\n\t\t\n\t\t\treturn true;\n\t}",
"private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }",
"public Boolean validarRegistro(Usuario u) {\r\n\t\tif(!this.modoAdmin) return false ;\r\n\t\tu.aprobar();\r\n\t\treturn true;\r\n\t}",
"@Test\n\tpublic void testUserValidationIfThere() {\n\t\tUserFunctions userCollections = new UserFunctions();\n\t\t\n\t\tassertNotEquals(-1, userCollections.validatePotentialUser(\"jonasanJosuta\", \"zaPasshon\"));\n\t}",
"@Override\n\tpublic void validate() {\n\t\tif(name==null||name.trim().equals(\"\")){\n\t\t\taddActionError(\"用户必须填写!\");\n\t\t}\n\t\t\n\t\tList l=new ArrayList();\n\t\tl=userService.QueryByTabId(\"Xxuser\", \"id\", id);\n\t\t//判断是否修改\n\t\tif(l.size()!=0){\n\t\t\t\n\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\tXxuser xxuser=new Xxuser();\n\t\t\t\txxuser=(Xxuser)l.get(i);\n\t\t\t\tif(xxuser.getName().equals(name.trim())){\n\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t}else{\n\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\tn=userService.QueryByTab(\"Xxuser\", \"name\", name);\n\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\taddActionError(\"该用户已经存在!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\n\t\t\t\n\t\t}\n\t}",
"public UsuarioTO validarUsuario(UsuarioTO usuarioTO){\n\t\tUsuarioTO usuarioTOResul=null;\r\n\t\ttry {\r\n\r\n\t\t\tList<Object> ListaUsuario = userDAO.listar(usuarioTO);\r\n\r\n\t\t\tif (ListaUsuario.size() > 0){\r\n\r\n\t\t\t\tusuarioTOResul = (UsuarioTO) ListaUsuario.get(0);\r\n\t\t\t}\r\n\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t\treturn usuarioTOResul;\r\n\r\n\t}",
"private void validationUsername( String name ) throws Exception {\n\t\t\t if ( name != null && name.trim().length() < 3 ) {\n\t\t\t throw new Exception( \"Le nom d'utilisateur doit contenir au moins 3 caractères.\" );\n\t\t\t }\n\t\t\t}",
"public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }",
"public boolean existUser(String campo1, String campo2);",
"public void validate(Object obj, Errors errors)\n {\n User user = (User) obj;\n //errors.rejectValue(\"userName\", \"error.userName.required\",\"User name or password incorrect!\");\n ValidationUtils.rejectIfEmptyOrWhitespace(errors, \"userName\", \"error.invalid.name\", \"UserName Required\");\n ValidationUtils.rejectIfEmptyOrWhitespace(errors, \"passWord\", \"error.invalid.password\", \"Password Required\");\n \n UserDAO userDao = new UserDAO();\n try {\n User temp = userDao.get(user.getUserName(), user.getPassWord());\n if(temp == null){\n errors.rejectValue(\"userName\", \"error.userName.required\",\"User name or password incorrect!\");\n }\n } catch (AdException ex) {\n Logger.getLogger(MyAccountValidator.class.getName()).log(Level.SEVERE, null, ex);\n errors.rejectValue(\"userName\", \"error.userName.required\",\"User or password incorrect!\");\n }\n userDao.close();\n }",
"private boolean validarDatos() {\n boolean result = true; // variable para saber si los datos son validos para su envio a la DAL de Rol y despues a la base de datos \n // verificar si la caja de texto txtNombre esta vacia \n if (this.txtNombre.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtApellido.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtDui.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtNumero.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (result == false) {\n // mostrar un mensaje al usuario de la pantalla que los campos son obligatorios en el caso que la variable result sea false\n JOptionPane.showMessageDialog(this, \"Los campos con * son obligatorios\");\n }\n return result; // retorna la variable result con el valor true o false para saber si los datos son validos o no\n }",
"private boolean validateParams(String userName, String password, String fullName) {\n if (userName == null || password == null || fullName == null) {\n return false;\n }\n\n if (userName.length() == 0 || password.length() == 0 || fullName.length() == 0) {\n return false;\n }\n\n return true;\n }",
"@Override\r\n\tpublic void validate(Object target, Errors errors) {\n\t\tUsuario usuario = (Usuario)target; // se castea al objeto tipo usuario\r\n\t\t\r\n\t\t//clase helpers de spring, rejectIfEmptyOrWhitespace se le pasa el error, el campo y el mensaje del error (mandamos al properties) \r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors, \"nombre\", \"requerido.usuario.nombre\"); //Reject the given field with the given error code if the value is emptyor just contains whitespace.\r\n\t\t\r\n\t\t// si el identificador no coincide con la expresion regular\r\n\t\tif(!usuario.getIdentificador().matches(\"[0-9]{2}[.][\\\\d]{3}[.][\\\\d]{3}[-][A-Z]{1}\")) {\r\n\t\t\terrors.rejectValue(\"identificador\", \"pattern.usuario.identificador\");// se le manda el campo y el mensaje de error del properties\r\n\t\t}\r\n\r\n\t}",
"@Override\n\t/*Método que va a ser utilizado en el momento en el que se vaya a registrar un usuario*/\n\tpublic String registrarusuario(String nombreusuario, String clave, String nombre, String apellidos, String email, float saldo, Boolean premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString mensaje=\"\"; //mensaje que se va a devolver al final de la funcion\n\t\tString sqlcomprobacionusuario=\"SELECT * from usuarios\"; //Se cojen todos los datos de los usuarios\n\t\tBoolean valido=true; //para ver si el usuario es válido\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rscomprobacionusuario = st.executeQuery(sqlcomprobacionusuario);\n\t\t\twhile(rscomprobacionusuario.next()) {\n\t\t\t\tString nombre_usu= rscomprobacionusuario.getString(\"nombreusuario\");\n\t\t\t\tString correo= rscomprobacionusuario.getString(\"email\");\n\t\t\t\tif(nombre_usu.equals(nombreusuario) || correo.equals(email)) {\n\t\t\t\t\tvalido=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*En caso de que el usuario sea válido se procederá a insertarlo en la BD como un nuevo usuario de la aplicación*/\n\t\t\tif(valido) {\n\t\t\t\tString sql =\"Insert into usuarios(nombreusuario,clave,nombre,apellidos,email,saldo,premium) VALUES('\" +nombreusuario+\"','\" +clave+\"','\" +nombre+\"','\"+apellidos+\"','\"+email+\"',\"+saldo+\",'\"+premium+\"')\";\n\t\t\t\tst.executeQuery(sql);\n\t\t\t\tst.close();\n\t\t\t\tmensaje=\"ok\"; //se establece el mensaje que se va a devolver como ok\n\t\t\t}else{\n\t\t\t\tmensaje=\"not ok\"; //mensaje pasa a ser not ok ya que el usuario no era valido\n\t\t\t\t}\n\t\t\t\n\t\t\treturn mensaje;\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\treturn e.getMessage();\n\t\t\t}finally {\n\t\t\t\tcon.desconectar();\n\t\t\t}\n\t }",
"public boolean validateuser(){\n if(fname.getText().toString().isEmpty()){\n fname.setError(\"Enter your first name\");\n fname.requestFocus();\n return false;\n }\n if(lname.getText().toString().isEmpty()){\n lname.setError(\"Enter your last name\");\n lname.requestFocus();\n return false;\n }\n if(username.getText().toString().isEmpty()){\n username.setError(\"Enter your last name\");\n username.requestFocus();\n return false;\n }\n if(password.getText().toString().isEmpty()||password.getText().toString().length()<6){\n password.setError(\"Enter your password with digit more than 6\");\n password.requestFocus();\n return false;\n }\n return true;\n }",
"public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }",
"private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }",
"public boolean validarUsuarioActivo(Long idUsuario);",
"private boolean validarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un numero de cedula\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtNombre.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un nombre\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtApellidos.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese los apellidos\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtCorreo.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el correo\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!Utilidades.validarEmailFuerte(txtCorreo.getText().trim())) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un correo valido\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtDireccion.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese la direccion\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtTelefono.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el numero de telefono\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtUsuario.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el nombre de usuario\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtContrasenia.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese una contraseña\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean validar() {\n if (getUsuario().length() <= 8) {\n if (getSenha().length() > 7 && getSenha().length() < 17) {\n return true;\n }\n }\n return false;\n }",
"private void verifyFromSQLite(){\n textInputLayoutUsername.setErrorEnabled(false);\n textInputLayoutPassword.setErrorEnabled(false);\n User user = new User();\n boolean _isnorekexist = false;\n\n for (int i=0;i<User.users.size();i++) {\n if (User.users.get(i).username.equals(textInputEditTextUsername.getText().toString())) {\n _isnorekexist = true;\n user = User.users.get(i);\n break;\n }\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextUsername, textInputLayoutUsername, getString(R.string.error_message_username))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextPassword, textInputLayoutPassword,getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextNoRekExist(textInputEditTextUsername, textInputLayoutUsername,_isnorekexist,getString(R.string.error_username_not_exists))){\n return;\n }\n if (databaseHelper.checkUsername(textInputEditTextUsername.getText().toString().trim()\n , textInputEditTextPassword.getText().toString().trim())) {\n\n SessionManager sessionManager = SessionManager.with(this);\n sessionManager.createsession(user);\n progress = new ProgressDialog(this);\n progress.setMessage(\"Loading...\");\n progress.show();\n Thread _thread = new Thread() {\n @Override\n public void run() {\n try {\n Thread.sleep(2000);\n progress.dismiss();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n masuk();\n }\n });\n\n }\n };\n _thread.start();\n }\n else {\n // Snack Bar to show success message that record is wrong\n Snackbar.make(nestedScrollView, getString(R.string.error_valid_username_pin), Snackbar.LENGTH_LONG).show();\n }\n }",
"public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;",
"private void validarCampos() {\n }",
"@Override\n\tpublic void validate() {\n\t\tSystem.out.println(user+\"//\"+password);\n\t\tif (user == null || user.trim().equals(\"\")) {\n\t\t\taddFieldError(\"user\", \"The user is required\");\n\t\t}\n\t\tif (password == null || password.trim().equals(\"\")) {\n\t\t\taddFieldError(\"password\", \"password is required\");\n\t\t}\n\t}",
"@Override\n\tpublic boolean isValid(UsersDto dto) {\n\t\tString id=session.selectOne(\"users.isValid\",dto);\n\t\tif(id==null) {//잘못된 아이디와 비밀번호\n\t\t\treturn false;\n\t\t}else {//유효한 아이디와 비밀번호\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean logInDatosCorrectos(){\n if (txtNombreUsuario.getText().equals(\"\") || txtContraseña.getText().equals(\"\")){\n return false;\n }\n return true;\n }",
"private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }",
"void onBoardUser(@Valid String x,HttpServletRequest request)throws Exception;",
"protected void validate_return(User[] param){\r\n \r\n }",
"private void validationLogin(String login) throws FormValidationException {\n\t\tif (login != null && login.length() < 3) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Le login utilisateur doit contenir au moins 3 caractères.\");\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le login utilisateur doit contenir au moins 3 caractères.\");\n\t\t}\n\n\t\t// TODO checker si le login exist pas ds la bdd\n\t\telse if (!personDao.checkLogin(login)) {\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le login utilisateur existe déjà.\");\n\n\t\t}\n\t}",
"public void validate(Object obj, Errors errors) {\n\t\tSystem.out.println(\" ------------------------ in validator ----------------,,,\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"username\", \"user.name.empty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"password\", \"user.password.empty\");\n\t\t/*ValidationUtils.rejectIfEmpty(errors, \"exist\", \"user.exist.empty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"notexist\", \"user.notexist.empty\");\n\t\tLoginBean lb = (LoginBean) obj;\n\t\tif(!lb.isExist()){\n\t\t\terrors.rejectValue(\"exist\", \"user.exist.empty\");\n\t\t}*/\n\t}",
"@Override\n public void check() {\n if(StringUtils.isBlank(username)||StringUtils.isBlank(password)){\n logger.error(\"登陆失败!\");\n throw new InyuException(ExceptionEnum.INVALID_PARAM.getIndex(),\"用户名或密码为空!\");\n }\n }",
"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}",
"@Override\r\n\tpublic void validate(Object target, Errors errors) {\n\t\tUser user = (User) target;\r\n\t\t//System.out.println(\"user\"+user.getUsername());\r\n\t\tif(!StringUtils.hasText(user.getUsername()))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"uname\");\r\n\t\t\terrors.rejectValue(\"username\", \"error.username.empty\");\r\n\t\t}\r\n\t\tif(!StringUtils.hasText(user.getPassword()))\r\n\t\t{\t\r\n\t\t\tSystem.out.println(\"pwd\");\r\n\t\t\terrors.rejectValue(\"password\", \"error.password.empty\");}\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n String cnpj_email = campo_CNPJ_email.getText().toString();\n String senhaLogim = campoSenha.getText().toString();\n\n //testar se nao estao vazios\n if (!cnpj_email.isEmpty()){\n\n //if para o campo senha\n if (!senhaLogim.isEmpty()){\n\n usuarioCliente = new UsuarioCliente();\n usuarioCliente.setEmail(cnpj_email);\n usuarioCliente.setSenha(senhaLogim);\n //metodo que valida login\n validarLogin(usuarioCliente);\n\n }else{\n Toast.makeText(AutentinticacaoActivity.this,\"Preencha o campo CNPJ/Email\",\n Toast.LENGTH_SHORT).show();\n }\n }else{\n\n Toast.makeText(AutentinticacaoActivity.this,\"Preencha o campo Senha\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"private boolean validarCampos() {\r\n\t\tif (cedula.equals(\"\") || nombre.equals(\"\") || apellido.equals(\"\") || telefono.equals(\"\")) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n\t@Transactional\n\tpublic boolean validateuser(String username, String password) {\n\t\tboolean flag = this.logindao.validateuser(username, password);\n\t\treturn flag;\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"public boolean validarIngresosUsuario_interno(JTextField motivoTF, JTextField detalleTF,\n\t\t\tJTextField montoTF){\n\t\t\n\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\tif(montoTF.getText().length() >30) return false;\n\t\tif(!validarInt(motivoTF.getText())) return false;\n\t\tif(motivoTF.getText().length() >30) return false;\n\t\tif(detalleTF.getText().equals(\"\")) return false;\n\t\tif(detalleTF.getText().length() >100) return false;\n\t\t//if(numero < 0) return false;\n\t\tif(numero_double < 0) return false;\n\t\n\t\treturn true;\n\t}",
"@Override\n\tpublic void validate(Object obj, Errors errors) {\n\n\t\tUser user = (User) obj;\n\t\t\n\t\t // Check validate for values in form\n\t\tValidationUtils.rejectIfEmpty(errors, \"user_fullName\", \"user.user_fullName.emplty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"user_mail\", \"user.user_mail.emplty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"user_passWord\", \"user.user_passWord.emplty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"role_id\", \"user.role_id.emplty\");\n\n\t\tPattern pattern = Pattern.compile(\"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\", Pattern.CASE_INSENSITIVE);\n\t\tif (!(pattern.matcher(user.getUser_mail()).matches())) {\n\t\t\terrors.rejectValue(\"user_mail\", \"user.user_mail.invalid\");\n\t\t}\n\n\t\tif (user.getUser_fullName().length() <= 3 || user.getUser_fullName().length() >= 50) {\n\t\t\terrors.rejectValue(\"user_fullName\", \"user.user_fullName.limit\");\n\t\t}\n\n\t\tif (user.getUser_passWord().length() <= 4 || user.getUser_passWord().length() >= 15) {\n\t\t\terrors.rejectValue(\"user_passWord\", \"user.user_passWord.limit\");\n\n\t\t}\n\n\t}",
"@Override\n public void manejarLogin() {\n loginPresenter.validarLogin(etxtEmail.getText().toString(),etxtPass.getText().toString());\n }",
"protected boolean isValid(AccessUser obj)\n {\n return obj != null && obj.username != null && !getMembers().contains(obj);\n }",
"private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }",
"@Override\r\n\tpublic Vendor validateUser(String email, String pass) {\n\t\treturn dao.validateUser(email, pass);\r\n\t}",
"boolean validateUserAndPassword(String username, String password);",
"public boolean validar_ingresoUsuario_inasistencia(ArrayList<JTextField> ar){\n\t\t\tfor(JTextField tf : ar){\n\t\t\t\t\n\t\t\t\tif(!validarInt(tf.getText())) return false;\n\t\t\t\tif(tf.getText().length() >30) return false;\n\t\t\t\t//if(numero < 0) return false;\n\t\t\t\tif(numero < 0) return false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }"
]
| [
"0.7789245",
"0.7419301",
"0.7300802",
"0.71158254",
"0.705317",
"0.70350003",
"0.6998106",
"0.69922596",
"0.6965651",
"0.6959822",
"0.6912738",
"0.68081194",
"0.6753424",
"0.6749016",
"0.6740935",
"0.673272",
"0.6694771",
"0.66843367",
"0.6679519",
"0.66760916",
"0.6652118",
"0.66244155",
"0.66221976",
"0.6602773",
"0.65896297",
"0.6581676",
"0.6550784",
"0.6545915",
"0.6544497",
"0.6539194",
"0.6534748",
"0.65301365",
"0.65299785",
"0.6523785",
"0.65190506",
"0.6517466",
"0.65172845",
"0.6502786",
"0.6477876",
"0.6473946",
"0.6470848",
"0.6465436",
"0.6462928",
"0.64602345",
"0.6427655",
"0.64133376",
"0.63874185",
"0.63712686",
"0.6371018",
"0.6362522",
"0.63592666",
"0.63237053",
"0.63208437",
"0.63165516",
"0.63120955",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.6310593",
"0.62958014",
"0.6291653",
"0.6283219",
"0.6282664",
"0.6275404",
"0.6272822",
"0.6260017",
"0.6250989",
"0.62358207"
]
| 0.6825974 | 11 |
este metodo retorna el nombre del usuario logueado | public String getNombreUsuarioValidado(){
Usuario usuario = (Usuario)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("usuarioValidado");
return usuario.getNombreUsuario();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"String getUserName();",
"String getUserName();",
"public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tnome = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tnome = principal.toString();\n\t\t}\n\t\t// System.out.println(nome);\n\t\treturn nome;\n\t}",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}",
"public String getUserName();",
"public String getCurrentUserUsername(){\n Subject subject = org.apache.shiro.SecurityUtils.getSubject();\n if(subject!=null){\n return subject.getPrincipal().toString();\n }else{\n return \"User\";\n }\n }",
"@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }",
"private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }",
"String getUserUsername();",
"public String getUserName() {\n return sessionData.getUserName();\n }",
"@Override\r\n\tpublic String getCurrentUserName() {\r\n\t\tString currentUserName = SecurityContextHolder.getContext().getAuthentication().getName();\r\n\t\treturn currentUserName;\r\n\t}",
"public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}",
"public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}",
"public static String getUserName() {\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getSession(false);\r\n\t\treturn session.getAttribute(\"username\").toString();\r\n\t}",
"public String getLogin() {\n return this.session.sessionPersona().getUserName();\n }",
"public String getUserName(int userId);",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }",
"public String getUserName() {\n return txtUserName().getText();\n }",
"public String getName(){\n return username;\n\t}",
"public String getUserName() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"USERNAME\", null);\n\t}",
"@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.getUser(_dataset.getUserId()).getScreenName();\n\t\t} catch (PortalException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SystemException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\treturn \"ERROR\";\n\t\t}\n\t}",
"@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}",
"String getUserName(String userId);",
"@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}",
"@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}",
"public static String getLoggedUser() {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\treturn auth.getName();\n\t}",
"public String getUserLoginName() {\n return userLoginName;\n }",
"public java.lang.String getUsuario();",
"public String getNick() {\n return this.session.sessionPersona().getUserName();\n }",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"public static String getUsername() throws Exception {\r\n\t\tif(!certifikatAktivan)\r\n\t\t\tthrow new Exception(\"Korisnik nije logovan.\");\r\n\t\treturn username;\r\n\t}",
"@Override\r\n\t\t\tpublic String getUsername() {\n\t\t\t\treturn \"User1\";\r\n\t\t\t}",
"public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}",
"@Override\n public String getUserName() throws ResourceException {\n return session.getUserID();\n }",
"public static String getCurrentUserFullName() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n User user = directoryManager.getUserByUsername(username);\n if (user != null && user.getFirstName() != null && user.getFirstName().trim().length() > 0) {\n return user.getFirstName() + \" \" + user.getLastName();\n } else {\n return username;\n }\n }",
"public String getUsername() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_user_text;\n\t}",
"public String getUserName() {\n\t\t\treturn name;\n\t\t}",
"public String getName() {\n return user.getName();\n }",
"public String getName() {\r\n\t\treturn username;\r\n\t}",
"public String getName() {\n\t\treturn this.username;\n\t}",
"@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}",
"String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}",
"public String getIdentityLogin()\r\n {\r\n return securityService.findLoggedInUsername();\r\n }",
"@Override\n\tpublic String getUsername(Context ctx){\n\t\treturn ctx.session().get(\"username\");\n\t}",
"@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}",
"@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}",
"public String getUserName() {\n\t\treturn this.username;\r\n\t}",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public String getUserName() {\n if (passCred != null)\n return passCred.getUserName();\n else\n return null;\n }",
"public String getUserName()\n\t{\n\t\treturn this.userName;\n\t}",
"public String getUserName(){\n\t\treturn this.userName;\n\t}",
"public UsuarioTable getUsuarioLogueado() {\n String usuario = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n return getUsuarioFacade().obtenerIDPorNombre(usuario);\n }",
"public String getUserName() {\r\n return userName;\r\n }",
"public String getUserName() {\r\n return userName;\r\n }",
"public String getUserName() {\r\n return userName;\r\n }",
"public String getUserName() {\r\n return userName;\r\n }",
"public String getUserName() {\n return userName;\n }",
"private String getPrincipalUsername()\n\t{\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails)\n\t\t{\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}",
"@Override\n public String getUserName() {\n return name;\n }",
"public String getUserName() {\n\t\treturn phoneText.getText().toString();\n\t}",
"public String getUserName()\n {\n return userName;\n }",
"@Override\n\tpublic String getUsername() {\n\t\treturn this.login;\n\t}",
"public static String getUsername() { return lblUsername.getText(); }",
"public java.lang.String getUserName() {\r\n return userName;\r\n }",
"@Override\n\tpublic String getUsername() {\n\t\treturn user.getUsername();\n\t}",
"public String getCurrentUserName() {\n\t\treturn currentUser.getName();\n\t}",
"public String getUserName() {\n\t \t return userName; \n\t}",
"java.lang.String getUser();",
"public String getNickName(){\n return nombreUsuario;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }",
"public String getUserName() {\n return userName;\n }"
]
| [
"0.78646535",
"0.78646535",
"0.78646535",
"0.76457065",
"0.76457065",
"0.7611904",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7530921",
"0.7511943",
"0.7439543",
"0.7380527",
"0.73700583",
"0.7339571",
"0.7323928",
"0.72469515",
"0.7246318",
"0.7244569",
"0.72135204",
"0.72135204",
"0.71876633",
"0.717382",
"0.7167716",
"0.7167716",
"0.7167716",
"0.7167716",
"0.7167716",
"0.7167716",
"0.7147884",
"0.7139801",
"0.70866054",
"0.70789105",
"0.7073464",
"0.70714426",
"0.707132",
"0.70618093",
"0.70618093",
"0.7061501",
"0.70601904",
"0.7027624",
"0.70261943",
"0.69994056",
"0.6984111",
"0.6979919",
"0.6973385",
"0.6970461",
"0.69692355",
"0.6967821",
"0.6964361",
"0.695547",
"0.6946171",
"0.694386",
"0.6942063",
"0.694197",
"0.6923154",
"0.6919179",
"0.69104916",
"0.69104916",
"0.6901646",
"0.69008976",
"0.68998754",
"0.6897802",
"0.68903494",
"0.68890876",
"0.6885713",
"0.6885713",
"0.6885713",
"0.6885713",
"0.6878991",
"0.6876362",
"0.68731725",
"0.68668914",
"0.6855313",
"0.68547916",
"0.6853485",
"0.68505126",
"0.68463045",
"0.68440545",
"0.68364364",
"0.6833193",
"0.6830215",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697",
"0.68214697"
]
| 0.0 | -1 |
este metodo cierra la session y reedireccciona a la pagina de logeo | public String cerrarSesion(){
FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, "Sesión Cerrada", "Sesión Cerrada");
FacesContext.getCurrentInstance().addMessage(null, facesMessage);
String resultado = "login?faces-redirect=true";
return resultado;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Navigation run() throws Exception {\n HttpSession session = request.getSession();\n// String username = null;\n// String userType = null;\n \n if (!session.getAttribute(\"loggedin\").equals(\"true\")) {\n System.out.println(\"Login Status tu session: \" + session.getAttribute(\"loggedin\"));\n return forward(\"login\");\n }\n else if((session.getAttribute(\"userType\").equals(\"khach\"))) {// && (session.getAttribute(\"loggedin\") == \"true\"))\n System.out.println(\"User Khach khong co quyen thuc thi tac vu nay\");\n return forward(\"index\");\n }\n else {\n// if (!validate()){\n// System.out.println(\"Check lai input!\");\n// request.setAttribute(\"error\",\"Vui long kiem tra lai input\");\n// return redirect(\"/addTour?error=\"+\"Vui lòng kiểm tra lại input\");\n// }\n \n \n \n String username = session.getAttribute(\"username\").toString();\n DiaDiem ddXP = ddService.findDiaDiemByName(request.getParameter(\"add_ddXP\").toString());\n DiaDiem ddDich = ddService.findDiaDiemByName(request.getParameter(\"add_ddDich\").toString());\n \n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date ngayXP = sdf.parse(request.getParameter(\"add_ngayXP\").toString());\n \n// request.removeAttribute(\"add_ddXP\");\n// request.removeAttribute(\"add_ddDich\");\n \n Tour newTour = new Tour();\n// BeanUtil.copy(request, newTour);\n \n newTour.setTen(request.getParameter(\"add_ten\").toString());\n newTour.setMoTa(request.getParameter(\"add_mota\").toString());\n newTour.setThoiGian(Integer.parseInt(request.getParameter(\"add_thoiGian\").toString()));\n newTour.setGia(Integer.parseInt(request.getParameter(\"add_gia\").toString()));\n newTour.setNgayXP(ngayXP);\n newTour.setSoLuong(Integer.parseInt(request.getParameter(\"add_soLuong\").toString()));\n \n newTour.getCtyRef().setModel((CongTy) userService.findUserByUsername(username));\n newTour.getDdXPRef().setModel(ddXP);\n newTour.getDdDichRef().setModel(ddDich);\n \n BlobstoreService bs = BlobstoreServiceFactory.getBlobstoreService();\n Map<String, List<BlobKey>> blobs = bs.getUploads(request);\n List<BlobKey> blobKeyList = blobs.get(\"add_imgKey\");\n Blobstore blobstore = new Blobstore();\n if ((blobKeyList != null) || (blobKeyList.size()>0)) {\n Key key = Datastore.createKey(Blobstore.class, blobKeyList.get(0).getKeyString());\n \n blobstore.setKey(key);\n Datastore.put(blobstore);\n// newTour.setImg(img);\n } \n// else {\n// newTour.setImg(null);\n// }\n newTour.getImgRef().setModel(blobstore);\n System.out.println(\"key name cua img: \" + newTour.getImgRef().getModel().getKey().getName());\n \n System.out.println(newTour.getCtyRef().getModel().getUsername());\n System.out.println(newTour.getDdXPRef().getModel().getName() + \" >> \" +newTour.getDdDichRef().getModel().getName());\n //TODO: bo comment dong duoi de luu\n Tour result = tourService.addTour(newTour);\n requestScope(\"ddXP\", ddXP);\n requestScope(\"ddDich\", ddDich);\n requestScope(\"tour\", result);\n// requestScope(\"tourKey\", newTour.getKey().toString());\n System.out.println(\"Reach the end:\" + result.getTen() + \" - \" + result.getKey().getId()) ; // >>> lay duoc ten roi\n// System.out.println(Datastore.createKey(Tour.class, result.getKey().getId()).toString());\n// Key tourKey = tourService.getTourKey(result);\n String tourKey = KeyFactory.createKeyString(\"Tour\", result.getKey().getId());\n System.out.println(tourKey.toString());\n// Thread.sleep(2000);\n return redirect(\"/viewTour?tourKey=\" + tourKey);\n }\n \n /*\n //Boolean loggedIn = (Boolean) session.getAttribute(\"loggedIn\");\n if (session.getAttribute(\"loggedin\") == \"true\") {\n username = session.getAttribute(\"username\").toString();\n userType = session.getAttribute(\"userType\").toString();\n }\n //System.out.println(username + \" - type - \" + userType);\n \n //NOTWorked: BeanUtil.copy(request, newTour);\n //Worked: System.out.println(request.getAttribute(\"ddXP\") + \" >> \" + request.getAttribute(\"ddDich\"));\n try {\n DiaDiem ddXP = ddService.findDiaDiemByName(request.getAttribute(\"ddXP\").toString());\n DiaDiem ddDich = ddService.findDiaDiemByName(request.getAttribute(\"ddDich\").toString());\n //System.out.println(ddXP.getName() + \" >> \" + ddDich.getName());\n \n if ((ddXP != null) && (ddDich != null)){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date ngayXP = sdf.parse(request.getParameter(\"ngayXP\"));\n if(ngayXP.after(new Date())){\n request.removeAttribute(\"ddXP\");\n request.removeAttribute(\"ddDich\");\n \n Tour newTour = new Tour();\n BeanUtil.copy(request, newTour);\n //copy cac input co cung ten vao doi tuong va thuoc tinh tuong ung cua doi tuong\n //request co 1 input \"name\" thi se copy gia tri do vao newTour.name\n newTour.getCtyRef().setModel((CongTy) userService.findUserByUsername(username));\n newTour.getDdXPRef().setModel(ddXP);\n newTour.getDdDichRef().setModel(ddDich);\n System.out.println(newTour.getCtyRef().getModel().getUsername());\n System.out.println(newTour.getDdXPRef().getModel().getName() + \" >> \" +newTour.getDdDichRef().getModel().getName());\n //TODO: bo comment dong duoi de luu\n tourService.addTour(newTour);\n requestScope(\"tour\", newTour);\n return forward(\"viewTour.jsp\");\n } else {\n System.out.println(\"NgayXP ko hop le\");\n }\n \n } else {\n //TODO: thong bao error\n System.out.println(\"Khong tim thay ddXP hoac ddDich\");\n }\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n */\n \n// return forward(\"addTour\");\n }",
"private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String accion=request.getParameter(\"opcion\");\n String menu=request.getParameter(\"menu\");\n if(menu.equalsIgnoreCase(\"agregar\")){\n if(accion.equalsIgnoreCase(\"mostrar\")){\n request.getRequestDispatcher(\"AgregarCoordiVTA.jsp\").forward(request, response); //Actualiza la pagina \n }else\n if(accion.equalsIgnoreCase(\"Registrarse\")){\n String nombre=request.getParameter(\"txt_nombre\");\n String apellido=request.getParameter(\"txt_apellido\");\n String proyecto=request.getParameter(\"txt_proyecto\");\n String correo=request.getParameter(\"txt_correo\");\n String clave=request.getParameter(\"txt_clave\");\n facade objfac=new facade();\n String estado;\n if(this.verificarCorreo(correo) == true && this.VerificarClave(clave) == true){\n CoordinadorProyectosDTO objcor=new CoordinadorProyectosDTO();\n clave=this.asegurarClave(clave);\n objcor.setApellido(apellido);\n objcor.setClave(clave);\n objcor.setCorreo(correo);\n objcor.setNombre(nombre);\n objcor.setProyecto(proyecto);\n if(objfac.crearCoordinador(objcor)){//se creo bien\n estado=\"bien\";\n request.setAttribute(\"estado\", estado);\n request.getRequestDispatcher(\"Coordinador?menu=agregar&opcion=mostrar\").forward(request, response);\n \n }\n else{//mal\n estado=\"mal\";\n request.setAttribute(\"estado\", estado);\n request.getRequestDispatcher(\"Coordinador?menu=agregar&opcion=mostrar\").forward(request, response);\n }\n }\n else{\n \n estado=\"mal\";\n request.setAttribute(\"estado\", estado);\n request.getRequestDispatcher(\"Coordinador?menu=agregar&opcion=mostrar\").forward(request, response); \n }\n } \n }else\n if(menu.equalsIgnoreCase(\"sesion\")){\n if(accion.equalsIgnoreCase(\"cerrar\")){\n HttpSession sesion=request.getSession();\n sesion.invalidate();\n response.sendRedirect(\"index.jsp\");\n }\n }\n }",
"private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n // Recupere la session\r\n HttpSession session = request.getSession(true);\r\n \r\n //Fermeture des sessions ouvertes\r\n session.invalidate();\r\n \r\n //Redirection vers la page d'accueil\r\n retourVue(request,response,\"/index.jsp\");\r\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n GestorDB g = new GestorDB();\n \n String usuario = request.getParameter(\"txtUsuario\");\n String pass = request.getParameter(\"txtPass\");\n \n if (g.existeUsuario(usuario, pass)) {\n //usuario valido\n //settear variable de sesion redirigir a menu\n request.getSession().setAttribute(\"usuario\", usuario);\n request.getSession().setAttribute(\"password\", pass);\n //request.getSession().setMaxInactiveInterval(120);\n //request.getSession().invalidate();\n //request.gesSession().setAtrribute(\"usr\", null);\n \n RequestDispatcher rd = getServletContext().getRequestDispatcher(\"/menu.jsp\");\n rd.forward(request, response);\n \n } else {\n // Mensaje al usuario\n request.setAttribute(\"mensajeErrorLogin\", \"Usuario o Contraseña incorrectos\");\n \n // redirigir al msimo login\n RequestDispatcher rd = getServletContext().getRequestDispatcher(\"/login.jsp\");\n rd.forward(request, response);\n }\n }",
"public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n if(request.getParameter(\"acao\").equals(\"Deslogar\")){\n HttpSession sessao = request.getSession();\n sessao.invalidate();\n response.sendRedirect(\"home.jsp\");\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try{\n le = Integer.parseInt(request.getParameter(\"legajo\"));\n HttpSession mySession = request.getSession();\n boolean isLogged = (boolean) mySession.getAttribute(\"inicio\");\n if (isLogged) {\n GestorAsistencias ga;\n GestorAlumnos g;\n if (le != 0) {\n ga = new GestorAsistencias();\n g = new GestorAlumnos(); \n\n ArrayList<Alumno> a;\n if (le != 0) {\n a = g.obtenerAlumnosxLegajo(le);\n } else{\n a = g.obtenerAlumnos();\n }\n\n ArrayList<VMAlumnosCursoInasistencias> alumno = new ArrayList<>();\n\n for (Alumno vm : a) {\n VMAlumnosCursoInasistencias p = ga.obtenerCantidadAusencias(vm.getIdAlumno());\n alumno.add(p);\n }\n\n request.setAttribute(\"alumno\", alumno);\n\n getServletContext().getRequestDispatcher(\"/ListadoAsistenciasEspecifico.jsp\").forward(request, response);\n }else{//Ya\n ga = new GestorAsistencias();\n g = new GestorAlumnos();\n \n ArrayList<Alumno> a = g.obtenerAlumnos();\n ArrayList<VMAlumnosCursoInasistencias> alumno = new ArrayList<>();\n\n for (Alumno vm : a) {\n VMAlumnosCursoInasistencias p = ga.obtenerCantidadAusencias(vm.getIdAlumno());\n alumno.add(p);\n }\n request.setAttribute(\"alumno\", alumno);\n\n getServletContext().getRequestDispatcher(\"/ListadoAsistenciasEspecifico.jsp\").forward(request, response);\n }\n } else {\n getServletContext().getRequestDispatcher(\"/Login.jsp\").forward(request, response);\n }\n }\n catch (NumberFormatException e){\n System.out.println(e);\n }\n le = 0;\n HttpSession mySession = request.getSession();\n boolean isLogged = (boolean) mySession.getAttribute(\"inicio\");\n if (isLogged) {\n GestorAsistencias ga;\n GestorAlumnos g;\n if (le != 0) {\n ga = new GestorAsistencias();\n g = new GestorAlumnos(); \n\n ArrayList<Alumno> a;\n if (le != 0) {\n a = g.obtenerAlumnosxLegajo(le);\n } else{\n a = g.obtenerAlumnos();\n }\n\n ArrayList<VMAlumnosCursoInasistencias> alumno = new ArrayList<>();\n\n for (Alumno vm : a) {\n VMAlumnosCursoInasistencias p = ga.obtenerCantidadAusencias(vm.getIdAlumno());\n alumno.add(p);\n }\n\n request.setAttribute(\"alumno\", alumno);\n\n getServletContext().getRequestDispatcher(\"/ListadoAsistenciasEspecifico.jsp\").forward(request, response);\n }else{//ya\n ga = new GestorAsistencias();\n g = new GestorAlumnos();\n \n ArrayList<Alumno> a = g.obtenerAlumnos();\n ArrayList<VMAlumnosCursoInasistencias> alumno = new ArrayList<>();\n\n for (Alumno vm : a) {\n VMAlumnosCursoInasistencias p = ga.obtenerCantidadAusencias(vm.getIdAlumno());\n alumno.add(p);\n }\n request.setAttribute(\"alumno\", alumno);\n\n getServletContext().getRequestDispatcher(\"/ListadoAsistenciasEspecifico.jsp\").forward(request, response);\n }\n } else {\n getServletContext().getRequestDispatcher(\"/Login.jsp\").forward(request, response);\n }\n processRequest(request, response);\n }",
"public synchronized void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {\r\n\r\n\t\ttry{\r\n\t\t\tsetLanguage(request.getSession(),request);\r\n\t\t\tAdminBO adminBO = (AdminBO)application.getAttribute(\"adminBO\");\r\n\r\n\r\n\t\t\tHttpSession session = request.getSession(true);\r\n\t\t\tString language = (String)session.getAttribute(\"language\");\r\n\r\n\t\t\t//check if the session is New if it's not we will a new session to avoid primary key conflict on the tabel C_USER_SESSIONS\r\n\t\t\tif(!session.isNew()){\r\n\t\t\t\tlogger.info(\"user userName\" + session.getAttribute(\"userName\") + \"is trying to log In using old session : old session Id = \" + session.getId());\r\n\t\t\t\tsession.setAttribute(\"SESSION_INVALIDATED\",\"true\");\r\n\t\t\t\tsession.invalidate();\r\n\t\t\t\tsession = request.getSession(true);\r\n\t\t\t\tif(language != null){\r\n\t\t\t\t\tsession.setAttribute(\"language\", language);\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"invalidating old Session And Creating a New Session : new session Id = \" + session.getId());\r\n\t\t\t}else{\r\n\t\t\t\tlogger.info(\"session is New : session Id =\" + session.getId() + \" for the user: \" + session.getAttribute(\"userName\"));\r\n\t\t\t}\r\n\r\n\t\t\t// removing 'siteAccessTime' parameter that is used only for outside the LOGGED IN area\r\n\t\t\tsession.removeAttribute(\"siteAccessTime\");\r\n\t\t\t\r\n\r\n\t\t\tString userName = StringUtil.nullToEmpty(request.getParameter(\"userName\"));\r\n//\t\t\tString password = StringUtil.nullToEmpty(request.getParameter(\"password\"));\r\n\t\t\tString encryptedPassword = SecurityUtil.byteArrayToHexString(SecurityUtil.getEncryptedString((request.getParameter(\"password\")!= null ? request.getParameter(\"password\").toString()+userName : \"\")));\r\n\r\n\t\t\tboolean isAuthenticated = adminBO.login(userName, encryptedPassword);\r\n\r\n\t\t\tif (isAuthenticated){\r\n\r\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyDDMM\");\r\n\t\t\t\tUserBean userBean = adminBO.getUserDetails(0, userName);\r\n\t\t\t\t\r\n\t\t\t\tlogger.info(\"\\nLOGINPAGE userID: \"+userBean.getUserID());\r\n\t\t\t\tlogger.info(\"\\nLOGINPAGE lastAccessTime: \"+userBean.getLastAccessTime());\r\n\t\t\t\tsession.setAttribute(\"userID\", userBean.getUserID());\r\n\t\t\t\tsession.setAttribute(\"userName\", userBean.getUserName());\r\n\t\t\t\tsession.setAttribute(\"userRole\", userBean.getRoleBean().getRoleID());\r\n\t\t\t\tsession.setAttribute(\"sessionAlive\", \"true\");\r\n\t\t\t\tsession.setAttribute(\"lastAccessTime\", userBean.getLastAccessTime());\r\n\t\t\t\t\r\n\t\t\t\tTimestamp loginTime = new Timestamp(new java.util.Date().getTime());\r\n\t\t\t\tString loginTimeStr = sdf.format(loginTime);\r\n\t\t\t\tsession.setAttribute(\"loginTime\", loginTimeStr);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tadminBO.updateUserSession(Integer.parseInt(userBean.getUserID()), session.getId(), loginTime/*, request.getRemoteHost(), */);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tStringBuffer requestString=new StringBuffer();\r\n\t\t\t\trequestString.append(\"formLastAccess=\"+loginTimeStr);\r\n\t\t\t\tString encryptedString = QueryCrypt.encrypt(request, requestString.toString());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tActivityLogVO activityLogVO = new ActivityLogVO();\r\n\t\t\t\tactivityLogVO.setActivityDate(new Timestamp(new java.util.Date().getTime()));\r\n\t\t\t\tactivityLogVO.setActivityDesc(\"User Successfully LoggedIn\");\r\n\t\t\t\tactivityLogVO.setActivityTypeID(ActivityType.LOGIN_ACT.value());\r\n\t\t\t\tactivityLogVO.setReference(\"\");\r\n\t\t\t\tactivityLogVO.setSessionID(session.getId());\r\n\t\t\t\tactivityLogVO.setUserID(Integer.parseInt(StringUtil.nullOrEmptyToString(session.getAttribute(\"userID\"), \"0\")));\r\n\t\t\t\tadminBO.logActivity(activityLogVO);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tresponse.sendRedirect(\"Home?\"+encryptedString);\r\n\t\t\t\t\r\n\r\n\t\t\t} else{\r\n\t\t\t\tsession.setAttribute(\"LoginErrorMsg\", \"Invalid Username/Password, please try again\");\r\n\t\t\t\tresponse.sendRedirect(\"Login\");\r\n\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"ERROR\", e); \r\n\t\t\tresponse.sendRedirect(\"ErrorHandler\");\r\n\t\t}\r\n\t}",
"public Result homeEst() {\n String correo = ctx().session().get(\"correo\");\n // System.out.println(\"correo\" + correo);\n if (correo!=null) {\n // System.out.println(\"entra aqui 2\");\n RegistroUsuario user = RegistroUsuario.findByUsername(correo);//busca el coreo\n // System.out.println(\"user\"+user);\n if (user != null) {\n // System.out.println(\"entra aqui 3\");\n return redirect(routes.ControllerEstudiante.listarFormularioEstudiante());//revisar este render\n //linea 34 error de anios silvia ya lo arreglo :v\n } else {\n // System.out.println(\"entra aqui 4\");\n session().clear();\n }\n }\n // session().clear();\n // System.out.println(\"entra aqui 5\");\n return ok(iniciarSesionEstudiante.render(\"Error\",form(ApplicationEstudiante.Login.class)));\n }",
"@Override\r\n\tpublic ActionData exec(HttpServletRequest request, HttpServletResponse response) {\n\t\tActionData data = new ActionData();\r\n\t\tHttpSession session = request.getSession(true);\r\n\r\n\t\tsession.removeAttribute(\"id\"); \r\n\t\t\r\n\t\tdata.setPath(\"../center/Main\");\r\n\t\tdata.setRedirect(true);\r\n\t\t\r\n\t\treturn data;\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n boolean logado = (boolean)request.getAttribute(\"logado\");\n int id = (int)request.getAttribute(\"id\");\n if(!logado) response.sendRedirect(\"index.html\");\n UsuariosDAO usuario = new UsuariosDAO();\n String tipo = usuario.getUsuarioPorID(id).getTipo();\n\n HttpSession ses = request.getSession();\n ses.setAttribute(\"idFuncionario\", id);\n \n switch(tipo){\n case \"1\":\n response.sendRedirect(\"areaVendedor.jsp\");\n break;\n case \"2\":\n response.sendRedirect(\"areaComprador.jsp\");\n break;\n case \"0\":\n response.sendRedirect(\"areaAdministrador.jsp\");\n break; \n }\n\n// \n// response.setContentType(\"text/html;charset=UTF-8\");\n// try (PrintWriter out = response.getWriter()) {\n// /* TODO output your page here. You may use following sample code. */\n// out.println(\"<!DOCTYPE html>\");\n// out.println(\"<html>\");\n// out.println(\"<head>\");\n// out.println(\"<meta charset=\\\"utf-8>\");\n// out.println(\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, shrink-to-fit=no\\\">\");\n// out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"css/bootstrap.min.css\\\">\");\n// out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"css/bootstrap.css\\\" type=\\\"text/css\\\"/>\");\n// out.println(\"<title>Servlet AreaRestrita</title>\"); \n// out.println(\"</head>\");\n// out.println(\"<body>\");\n// out.println(\"<div class=\\\"container\\\">\");\n// out.println(\"<p></p>\");\n// out.println(\"<nav class=\\\"navbar navbar-expand-sm bg-dark navbar-dark\\\">\");\n// out.println(\"<ul class=\\\"navbar-nav\\\">\");\n// out.println(\"<li class=\\\"nav-item active\\\"><a class=\\\"nav-link\\\" href=\\\"#\\\">Area Restrita</a></li>\");\n// out.println(\"<li class=\\\"nav-item\\\"><a class=\\\"nav-link\\\" href=\\\"areaVendedor.jsp\\\">Area do Vendedor</a></li>\");\n// out.println(\"<li class=\\\"nav-item\\\"><a class=\\\"nav-link\\\" href=\\\"areaComprador.jsp\\\">Area do Comprador</a></li>\");\n// out.println(\"<li class=\\\"nav-item\\\"><a class=\\\"nav-link\\\" href=\\\"index.html\\\">sair</a></li>\");\n// out.println(\"</ul>\");\n// out.println(\"</nav>\");\n// out.println(\"</div>\");\n// out.println(\"<script src=\\\"jquery-3.4.1.min.js\\\"></script>\");\n// out.println(\"<script src=\\\"js/popper.min.js\\\"></script>\");\n// out.println(\"<script src=\\\"js/bootstrap.min.js\\\"></script\");\n// out.println(\"</body>\");\n// out.println(\"</html>\");\n// }\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.getSession().invalidate();\n response.sendRedirect(request.getContextPath() + \"/index.html\");\n }",
"public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}",
"static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String userId = request.getParameter(\"username\");\r\n String password = request.getParameter(\"pass\");\r\n String remember = request.getParameter(\"remember\");\r\n \r\n HttpSession session = request.getSession();\r\n User user = new UserDAO().login(userId, password);\r\n \r\n if(user != null){//dang nhap thang cong\r\n if(remember != null){\r\n Cookie uCookie = new Cookie(\"username\", userId);\r\n uCookie.setMaxAge(24 * 3600);//hạn 1 ngày\r\n Cookie pCookie = new Cookie(\"password\", password);\r\n pCookie.setMaxAge(24 * 3600);//hạn 1 ngày\r\n response.addCookie(uCookie);\r\n response.addCookie(pCookie);\r\n }\r\n if(user.getRoleId() == 1) {\r\n response.sendRedirect(\"admin\");\r\n session.setAttribute(\"user\", user);\r\n }\r\n else if(user.getStatus() != 1) {//chua active code \r\n response.sendRedirect(\"active\");\r\n request.getSession().setAttribute(\"user\", user);\r\n \r\n } \r\n else {\r\n response.sendRedirect(\"home\"); \r\n session.setAttribute(\"user\", user);\r\n }\r\n }else{\r\n request.setAttribute(\"err\", \"Incorrect Id or Password\");\r\n request.getRequestDispatcher(\"login.jsp\").forward(request, response);\r\n }\r\n \r\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n response.setContentType(\"text/plain\");\n response.setCharacterEncoding(\"UTF-8\");\n\n String accion = request.getParameter(\"accion\");\n HttpSession session = request.getSession();\n\n if (request.getParameterMap().containsKey(\"accion\")) {\n\n if (accion.equals(\"Ingresar\")) {\n try {\n\n usuario.setEstado(0);\n usuario.setID(0);\n usuario.setCorreo(null);\n usuario.setClave(null);\n // Recibe datos de los txt del login correo y contraseña\n String correo = request.getParameter(\"correo\");\n String clave = request.getParameter(\"pass\");\n\n if (CExpregulares.formatoCorreo(correo) == true) {\n\n // En usuario estan los get y set de usuario\n // Los get seran igual a lo que se trajo de la DB en validar ingreso\n usuario = daouser.validarIngreso(correo, clave);\n\n // Validacion de datos.\n if (usuario.getCorreo() != null && usuario.getClave() != null && usuario.getEstado() == 1 && usuario.getCorreo().equals(correo) && usuario.getClave().equals(clave)) {\n\n try {\n // Si el usuario existe se crean las sessiones con los datos \n session.setAttribute(\"ID\", usuario.getID());\n session.setAttribute(\"NOMBRE\", usuario.getNombres());\n session.setAttribute(\"IDROL\", usuario.getRol());\n session.setAttribute(\"IDAREA\", usuario.getArea());\n\n usuario.setCorreo(null);\n usuario.setClave(null);\n usuario.setEstado(0);\n\n request.getRequestDispatcher(\"allindex?\").forward(request, response);\n\n } catch (IOException | ServletException e) {\n System.out.println(\"Error en validar\" + e);\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, e);\n request.getRequestDispatcher(\"error404.jsp\").forward(request, response);\n }\n // Envio al controlador usuarios donde el menu sera entra al perfil del usuario\n\n } else {\n\n usuario.setEstado(0);\n usuario.setID(0);\n usuario.setCorreo(null);\n usuario.setClave(null);\n\n request.setAttribute(\"alert\", \"Datos invalidos\");\n request.setAttribute(\"correo\", correo);\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\n }\n } else {\n request.setAttribute(\"alert\", \"Correo invalido\");\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\n }\n } catch (IOException | ServletException e) {\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, e);\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\n }\n } else if (accion.equals(\"Cerrar\")) {\n try {\n\n session.removeAttribute(\"ID\");\n session.removeAttribute(\"NOMBRE\");\n session.removeAttribute(\"IDROL\");\n session.removeAttribute(\"IDAREA\");\n session.invalidate();\n\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\n } catch (IOException | ServletException e) {\n\n session.invalidate();\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, e);\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\n }\n } else if (accion.equals(\"Confirmar\")) { // Confirma el email que se ingresa para validar si existe en la bdb para cambio de pass\n\n CUsuarioDAO daous = new CUsuarioDAO();\n String email = request.getParameter(\"correoconfirmar\");\n\n try {\n\n if (CExpregulares.formatoCorreo(email) == true) {\n\n if (!email.equals(\"\")) {\n usuario.setCorreo(email);\n usuario = daous.validarEmail(email);\n\n if (usuario.getID() > 0 && usuario.getCorreo().equalsIgnoreCase(email)) {\n\n if (usuario.getCorreoalterno() == null) {\n usuario.setCorreoalterno(usuario.getCorreo());\n }\n\n session.setAttribute(\"codigoemail\", mail.enviarEmail(usuario, \"Recovery\"));\n session.setAttribute(\"Idusuario\", usuario.getID());\n\n response.getWriter().write(\"true\");\n } else {\n response.getWriter().write(\"false\");\n }\n } else {\n response.getWriter().write(\"emailvacio\");\n }\n\n } else {\n response.getWriter().write(\"emailfalse\");\n }\n\n } catch (IOException e) {\n System.out.println(\"Error al confirmar correo en post\" + e);\n } catch (NamingException ex) {\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n } else if (accion.equals(\"Codigo\")) { // Confirmar el codigo enviado al correo electronico\n\n try {\n int txtcodigo = Integer.parseInt(request.getParameter(\"codigo\"));\n\n if (CExpregulares.formatoNumero(Integer.toString(txtcodigo)) == true) {\n if (txtcodigo > 0) {\n\n int codigoemail = Integer.parseInt(session.getAttribute(\"codigoemail\").toString());\n\n if (txtcodigo == codigoemail) {\n response.getWriter().write(\"true\");\n } else {\n response.getWriter().write(\"codfalse\");\n }\n } else {\n response.getWriter().write(\"codvacio\");\n }\n\n } else {\n response.getWriter().write(\"codinvalido\");\n }\n } catch (NumberFormatException e) {\n System.out.println(\"Error en la confirmacion del codigo en post\" + e);\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, e);\n request.getRequestDispatcher(\"error404.jsp\").forward(request, response);\n }\n\n } else if (accion.equals(\"Actualizar\")) {\n try {\n int idusuario = (int) (session.getAttribute(\"Idusuario\")); // ID DEL USUARIO QUE ACTUALIZA LA CLAVE\n String pass = request.getParameter(\"passone\");\n String passconfirm = request.getParameter(\"passconfirma\");\n\n if (pass.equals(passconfirm)) {\n try {\n\n usuario.setID(idusuario);\n usuario.setClave(pass);\n\n Date fechaactual = new Date(System.currentTimeMillis());\n SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n if (daouser.actualizarDatos(usuario, \"Clave\") == true) {\n CModificacionDAO.modificaUsuario(idusuario, dateformat.format(fechaactual), \"Actualizaste tu clave desde la recuperacion de contraseña.\");\n session.removeAttribute(\"Id\");\n session.invalidate();\n response.getWriter().write(\"true\");\n } else {\n response.getWriter().write(\"false\");\n }\n\n // request.getRequestDispatcher(\"index.jsp\").forward(request, response);\n } catch (IOException e) {\n System.out.println(\"Error al actualizar la clave en post\" + e);\n }\n } else {\n response.getWriter().write(\"password\"); // Respuesta de que las claves no coinciden\n }\n\n } catch (IOException e) {\n System.out.println(\"Error en la actualizacion de la clave en post\" + e);\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, e);\n request.getRequestDispatcher(\"error404.jsp\").forward(request, response);\n }\n } else if (accion.equals(\"Confirmar datos\")) { // Confirma \n try {\n usuario.setCorreo(null);\n usuario.setCorreoalterno(null);\n usuario = daouser.validarEmail((String) session.getAttribute(\"CORREO\"));\n\n if (usuario.getCorreo() == null && usuario.getCorreoalterno() == null) {\n\n if (session.getAttribute(\"NOMBRES\") != null && session.getAttribute(\"APELLIDOS\") != null && session.getAttribute(\"TELEFONO\") != null && session.getAttribute(\"CORREO\") != null && session.getAttribute(\"AREA\") != null && session.getAttribute(\"ROL\") != null) {\n\n String pass = \"\";\n Random rndpass = new Random();\n\n for (int i = 0; i < 4; i++) {\n pass += rndpass.nextInt(10);\n pass += (char) (rndpass.nextInt(10) + 65);\n }\n\n usuario.setNombres((String) session.getAttribute(\"NOMBRES\"));\n usuario.setApellidos((String) session.getAttribute(\"APELLIDOS\"));\n usuario.setCorreo((String) session.getAttribute(\"CORREO\"));\n usuario.setTelefono((String) session.getAttribute(\"TELEFONO\"));\n\n usuario.setClave(pass);\n\n usuario.setRol((int) session.getAttribute(\"ROL\"));\n usuario.setArea((int) session.getAttribute(\"AREA\"));\n\n if (daouser.registrarUsuario(usuario, \"Registrar\") != false) {\n\n mail.enviarEmail(usuario, \"AddUser\");\n\n session.removeAttribute(\"NOMBRES\");\n session.removeAttribute(\"APELLIDOS\");\n session.removeAttribute(\"TELEFONO\");\n session.removeAttribute(\"CORREO\");\n session.removeAttribute(\"AREA\");\n session.removeAttribute(\"ROL\");\n session.invalidate();\n\n response.getWriter().write(\"true\");\n\n } else {\n response.getWriter().write(\"false\");\n }\n\n }\n } else {\n response.getWriter().write(\"correo\"); // Correo ya registrado\n }\n } catch (NamingException | NullPointerException e) {\n session.invalidate();\n System.out.println(\"Error al confirmar datos de usuario \" + e);\n Logger.getLogger(validate.class.getName()).log(Level.SEVERE, null, e);\n }\n } else {\n response.getWriter().write(\"index\");\n }\n\n } else {\n response.getWriter().write(\"error404\");\n }\n\n }",
"@Override\r\n\tpublic String execute(HttpServletRequest request) {\t\t\r\n\t\tString page = ConfigurationManager.getProperty(\"path.page.login\");\r\n\t\tString language = request.getParameter(PARAM_NAME_LANGUAGE);\r\n\t\tswitch (language) {\r\n\t\tcase \"en\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", \"en\");\r\n\t\t\tbreak;\r\n\t\tcase \"ru\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", \"ru\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn page;\r\n\t}",
"private ModelAndView returnToLogin(HttpSession session) {\n ModelAndView mv = new ModelAndView(\"login\");\n mv.addObject(\"msg\", \"Sorry try again\");\n session.setAttribute(\"login\", false);\n return mv;\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t HttpSession session=request.getSession(); \n\t\tString username=request.getParameter(\"uname\");\n\t\t\n\t\tString password=request.getParameter(\"password\");\n\t\t\n\t\tString ip=request.getLocalAddr();\n\t\t\n\tSystem.out.println(\">>\"+username+\" \"+password+\" \"+ip);\n\t\n\tLoginService login=new LoginService();\n\tAdminLogin al=new AdminLogin();\n\tal.setName(username);\n\tal.setPassword(password);\n\tString resp=\"\";\n\ttry {\n\t\t resp=login.checkLogin(username,password,ip,session);\n\t}catch(Exception e) {\n\t\te.printStackTrace();\n\t}\n\tif(!resp.contains(\"NOK\")) {\n\t\t\n\t\t\n\t\tSystem.out.println(\"succefully login\");\n\t\t\n\t\tRandom rand = new Random(); \n\t\t \n \n session.setAttribute(\"uname\", username);\n int rand_int1 = rand.nextInt(1000);\n LinkedHashMap<String,Integer> lhm=new LinkedHashMap<String,Integer>();\n lhm.put(\"\"+rand_int1,rand_int1);\n System.out.println(lhm);\n //out.print(\"<a href='/CardDistributedSystem/test'>visit</a>\"); \n session.setAttribute(\"obj\", al);\n response.sendRedirect(\"/CardDistributedSystem/home.jsp\"); \n\t \n\t}\n\telse if(resp.contains(\"Invalid credentials\")) {\n\t\tSystem.out.println(\"not succefully login\");\n\t\trequest.setAttribute(\"StatusCode\",\"300\");\n\t\trequest.setAttribute(\"StatusMessage\",\"NOK\");\n\t\trequest.setAttribute(\"ErrorMessage\",\"Login with proper username and password!\");\n\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response); \n\t}\n\telse {\n\t\tSystem.out.println(\"not succefully login\");\n\t\trequest.setAttribute(\"StatusCode\",\"300\");\n\t\trequest.setAttribute(\"StatusMessage\",\"NOK\");\n\t\trequest.setAttribute(\"ErrorMessage\",resp.split(\",\")[1]);\n\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response); \n //response.sendRedirect(\"/CardDistributedSystem/index.jsp\"); \n\n\t}\n\t\t\n\n\t}",
"protected void doPost(HttpServletRequest r, HttpServletResponse s) throws ServletException, IOException {\n Cookie ck=new Cookie(\"auth\",\"\"); \n ck.setMaxAge(0);\n s.addCookie(ck); \n RequestDispatcher rd = r.getRequestDispatcher(\"index.jsp\");\n rd.forward(r, s);\n \n }",
"private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n HttpSession session = request.getSession();\n // Invalidate the session\n session.invalidate();\n // Redirect the user to the login page\n response.sendRedirect(\"Login\");\n }",
"private ModelAndView returnToAdminLogin(HttpSession session) {\n ModelAndView mv = new ModelAndView(\"redirect:adminlogin.secu\");\n mv.addObject(\"msg\", \"Sorry try again\");\n session.setAttribute(\"login\", false);\n return mv;\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n HttpSession sessao = request.getSession();\n Usuario User =(Usuario) sessao.getAttribute(\"User\");\n \n if(request.getParameter(\"acao\").equals(\"ENTRAR\")) {\n String login = request.getParameter(\"login\");\n String pswd = request.getParameter(\"senha\");\n if(Login(login,pswd,request,response)){\n response.sendRedirect(\"PokeCenter_Perfil.jsp\");\n }else{\n response.sendRedirect(\"home.jsp\");\n }\n }else if(request.getParameter(\"acao\").equals(\"UpdateUser\")){\n UpdateUser(request,response,User);\n }else if(request.getParameter(\"acao\").equals(\"CriaUser\")){\n CriaUser(request,response);\n }else if(request.getParameter(\"acao\").equals(\"Deslogar\")){\n sessao.invalidate();\n response.sendRedirect(\"home.jsp\");\n }\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tthis.getServletContext().removeAttribute(\"msgs\");\r\n\t\tString operacao= request.getParameter(\"op\");\r\n\t\tif(operacao== null) {\r\n\t\t\tthis.getServletContext().setAttribute(\"msgs\", new String[]{\"Operação (op) não especificada na requisição!\"});\r\n\t\t\tresponse.sendRedirect(request.getHeader(\"Referer\"));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tContatoController contatoCtrl= new ContatoController();\r\n\t\tOperadoraController operadoraCtrl = new OperadoraController();\r\n\t\t\r\n\t\tResultado resultado= null;\r\n\t\tString paginaSucesso= \"controller.do?op=conctt\";\r\n\t\tString paginaErro= \"../erro/erro.jsp\";\r\n\t\tString proxPagina= null;\r\n\t\t\r\n\t\tHttpSession session= request.getSession();\r\n\t\tUsuario usuario = (Usuario) session.getAttribute(\"usuario\");\r\n\t\t\r\n\t\tswitch(operacao) {\r\n\t\t\tcase\"login\":\r\n\t\t\t\tLoginController loginCtrl= new LoginController();\r\n\t\t\t\tpaginaSucesso= \"controller.do?op=conctt\";\r\n\t\t\t\tpaginaErro = \"login/login.jsp\";\r\n\t\t\t\tresultado= loginCtrl.isValido(request.getParameterMap());\r\n\t\t\t\tif(resultado.isErro()) {\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t\tproxPagina= paginaErro;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tproxPagina= paginaSucesso;\r\n\t\t\t\t\tUsuario usuarioLogado = (Usuario) resultado.getEntidade();\r\n\t\t\t\t\tsession.setAttribute(\"usuario\",usuarioLogado);\r\n\t\t\t\t\t// trata o lembrar\r\n\t\t\t\t\tString lembrar= request.getParameter(\"lembrar\");\r\n\t\t\t\t\tif(lembrar != null) {\r\n\t\t\t\t\t\tCookie c= new Cookie(\"loginCookie\", usuarioLogado.getEmail());\r\n\t\t\t\t\t\tc.setMaxAge(3600*60);\r\n\t\t\t\t\t\tresponse.addCookie(c);\r\n\t\t\t\t\t} else{\r\n\t\t\t\t\t\tfor(Cookie cookie: request.getCookies()) {\r\n\t\t\t\t\t\t\tif(cookie.getName().equals(\"loginCookie\")) {\r\n\t\t\t\t\t\t\t\tcookie.setValue(null);\r\n\t\t\t\t\t\t\t\tcookie.setMaxAge(0);\r\n\t\t\t\t\t\t\t\tresponse.addCookie(cookie);\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\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase\"logout\":\r\n\t\t\t\tproxPagina = \"login/login.jsp\";\r\n\t\t\t\tresultado = new Resultado();\r\n\t\t\t\tresultado.setErro(false);\r\n\t\t\t\tsession.invalidate();\r\n\t\t\tbreak;\t\r\n\t\t\tcase \"cadctt\":\r\n\t\t\t\tresultado= contatoCtrl.cadastrar(request.getParameterMap(),usuario);\r\n\t\t\t\tif(!resultado.isErro()) {\r\n\t\t\t\t\tproxPagina = paginaSucesso;\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t} else{\r\n\t\t\t\t\trequest.setAttribute(\"contato\", (Contato) resultado.getEntidade());\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t\tproxPagina= \"contato/cadastro.jsp\";\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\tcase \"excctt\":\r\n\t\t\t\tresultado= contatoCtrl.excluir(request.getParameterMap());\r\n\t\t\t\tif(!resultado.isErro()) {\r\n\t\t\t\t\tproxPagina = paginaSucesso;\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t} else{\r\n\t\t\t\t\trequest.setAttribute(\"contato\", (Contato) resultado.getEntidade());\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t\tproxPagina= paginaErro;\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\tcase \"cadopera\":\r\n\t\t\t\tresultado= operadoraCtrl.cadastrar(request.getParameterMap());\r\n\t\t\t\tif(!resultado.isErro()) {\r\n\t\t\t\t\tproxPagina = \"controller.do?op=conoper\";\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t} else{\r\n\t\t\t\t\trequest.setAttribute(\"operadora\", (Operadora) resultado.getEntidade());\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t\tproxPagina= \"operadora/cadastro.jsp\";\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\tcase \"excopera\":\r\n\t\t\t\tresultado= operadoraCtrl.excluir(request.getParameterMap());\r\n\t\t\t\tif(!resultado.isErro()) {\r\n\t\t\t\t\tproxPagina = \"controller.do?op=conoper\";\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t} else{\r\n\t\t\t\t\trequest.setAttribute(\"operadora\", (Operadora) resultado.getEntidade());\r\n\t\t\t\t\trequest.setAttribute(\"msgs\", resultado.getMensagens());\r\n\t\t\t\t\tproxPagina= \"controller.do?op=conoper\";\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\trequest.setAttribute(\"erro\", \"Operação não especificada no servlet!\");\r\n\t\t\t\tproxPagina= \"../erro/erro.jsp\";\r\n\t\t}\r\n\t\t\r\n\t\tif(resultado.isErro()){\r\n\t\t\t\tRequestDispatcher dispatcher= request.getRequestDispatcher(proxPagina);\r\n\t\t\t\tdispatcher.forward(request, response);\r\n\t\t}else{\r\n\t\t\tresponse.sendRedirect(proxPagina);\r\n\t\t}\r\n\t}",
"public void setSession(Map map) {\n\t\tthis.sessionMap=map;\n\t}",
"private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter().write(_sessionId);\n }",
"@Override\n protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException{\n try{\n //controllo se l'utente è già in sessione\n\n if(SecurityLayer.checkSession(request) != null){\n response.sendRedirect(\"/home?success=300\");\n }\n if(\"POST\".equals(request.getMethod())) {\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n PollwebDataLayer dl = ((PollwebDataLayer)request.getAttribute(\"datalayer\"));\n if(email != null && ! email.equals(\"\")){\n if(dl.getUtenteDAO().getUtenteByEmail(email) != null){\n action_login_utente(request,response);\n }else{\n\n response.sendRedirect(\"/login?error=200\");\n }\n\n }\n }\n\n\n if(request.getParameter(\"login\") != null){\n try{\n String referrer = null;\n if(request.getParameter(\"referrer\") != null){\n referrer = SecurityLayer.addSlashes(request.getParameter(\"referrer\"));\n request.setAttribute(\"referrer\", referrer);\n }\n String email =\" \";\n PollwebDataLayer dl = ((PollwebDataLayer)request.getAttribute(\"datalayer\"));\n if(email != null && ! email.equals(\"\")){\n if(dl.getUtenteDAO().getUtenteByEmail(email) != null){\n action_login_utente(request,response);\n }else{\n if(referrer != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(referrer, \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=200\");\n }\n }\n }else{\n if(referrer != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(referrer, \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=200\");\n }\n }\n } catch (DataException ex) {\n //TODO Handle exception\n }\n }else{\n //rimando alla pagina di login per riempire la form di login\n renderizza_form_login(request,response);\n }\n }catch (IOException | DataException ex) {\n //TODO Handle exception\n }\n }",
"private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n \n //----------------------------------------------------------------------------------------------------\n //CONTROL DE ACCESO\n //----------------------------------------------------------------------------------------------------\n String referer = request.getHeader(\"referer\");\n \n HttpSession session=request.getSession();\n String usuario = (String) session.getAttribute(NombreSesiones.USUARIO.getValor());\n Boolean esAdm = (Boolean) session.getAttribute(NombreSesiones.USUARIO_ADM.getValor());\n Boolean esAlu = (Boolean) session.getAttribute(NombreSesiones.USUARIO_ALU.getValor());\n Boolean esDoc = (Boolean) session.getAttribute(NombreSesiones.USUARIO_DOC.getValor());\n Retorno_MsgObj acceso = Seguridad.GetInstancia().ControlarAcceso(usuario, esAdm, esDoc, esAlu, utilidades.GetPaginaActual(referer));\n\n if (acceso.SurgioError() && !utilidades.GetPaginaActual(referer).isEmpty()) {\n mensaje = new Mensajes(\"Acceso no autorizado - \" + this.getServletName(), TipoMensaje.ERROR);\n System.err.println(\"Acceso no autorizado - \" + this.getServletName() + \" - Desde: \" + utilidades.GetPaginaActual(referer));\n out.println(utilidades.ObjetoToJson(mensaje));\n }\n else\n {\n String action = request.getParameter(\"pAction\");\n String retorno = \"\";\n\n if(usuario != null) perUsuario = (Persona) LoPersona.GetInstancia().obtenerByMdlUsr(usuario).getObjeto();\n\n\n switch(action)\n {\n\n case \"INSERT\":\n retorno = this.AgregarDatos(request);\n break;\n\n case \"UPDATE\":\n retorno = this.ActualizarDatos(request);\n break;\n\n case \"DELETE\":\n retorno = this.EliminarDatos(request);\n break;\n\n case \"OBTENER\":\n retorno = this.ObtenerDatos(request);\n break;\n\n }\n\n out.println(retorno);\n }\n }\n }",
"@RequestMapping(value={\"/login\"})\r\n\tpublic String login(HttpServletRequest request, HttpServletResponse response){\n\t\tLoginDAO dao = new LoginDAO();\r\n\t\tString userDefaultAdmin = \"lider\";\r\n\t\tString passwordDefaultAdmin = dao.read(\"lider\").getSenha();\t\t//\"admin\";\r\n\t\t\r\n\t\tString userDefaultMembro = \"membro\";\r\n\t\tString passwordDefaultMembro = dao.read(\"membro\").getSenha();\t//\"membro\";\r\n\t\t\r\n\t\tString usuario = request.getParameter(\"usuario\");\r\n\t\tString senha = request.getParameter(\"senha\");\r\n\t\t\r\n\t\tString usuario2 = request.getParameter(\"usuario2\");\r\n\t\tString senha2 = request.getParameter(\"senha2\");\r\n\t\t\r\n\t\t//verifica mobile\r\n\t\tif(usuario2 != null && !usuario2.isEmpty() && senha2 != null && !senha2.isEmpty()){\r\n\t\t\tusuario = usuario2;\r\n\t\t\tsenha = senha2;\r\n\t\t}\r\n\t\t//valida usuario e senha padrao do sistema\r\n\t\tif(usuario != null && senha != null){\r\n\t\t\tif(usuario.equalsIgnoreCase(userDefaultAdmin) && senha.equals(passwordDefaultAdmin)){\r\n\t\t\t\tlog.info(\"Login ok - Usuario admin lider logado!\");\t\t\t\t\r\n\t\t\t\tMembroUserWeb membroSession = new MembroUserWeb();\t\t\t\t\t\t\t\t//objeto usuario membro acesso\r\n\t\t\t\tmembroSession.setAcesso(TipoAcessoLogin.LIDER_ACESSO);\t\t\t\t\t\t\t//tipo acesso\r\n\t\t\t\trequest.getSession().setAttribute(MembroUserWeb.MEMBRO_SESSION, membroSession);\t//set objeto na session\t\t\t\r\n\t\t\t\treturn \"redirect:/home.jsp\";\t\t\t//redireciona para action /home\r\n\t\t\t\t\r\n\t\t\t}else if(usuario.equalsIgnoreCase(userDefaultMembro) && senha.equals(passwordDefaultMembro)){\r\n\t\t\t\tlog.info(\"Login ok - Usuario membro logado!\");\r\n\t\t\t\tMembroUserWeb membroSession = new MembroUserWeb();\t\t\t\t\t\t\t\t//objeto usuario membro acesso\r\n\t\t\t\tmembroSession.setAcesso(TipoAcessoLogin.MEMBRO_ACESSO);\t\t\t\t\t\t\t//tipo acesso\r\n\t\t\t\trequest.getSession().setAttribute(MembroUserWeb.MEMBRO_SESSION, membroSession);\t//set objeto na session\r\n\t\t\t\treturn \"redirect:/home.jsp\";\t\t\t//redireciona para action /home\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tlog.warn(\"Erro login - usuario ou senha invalidos!\");\r\n\t\t\t\treturn \"redirect:/index.html?error=login\";\t//redireciona para tela login informando erro de login\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tlog.warn(\"Erro login - usuario ou senha invalidos!\");\r\n\t\t\treturn \"redirect:/index.html?error=login\";\t\t//redireciona para tela login informando erro de login\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\r\npublic void sessionWillPassivate(HttpSessionEvent arg0) {\n\t\r\n}",
"protected void logout(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tHttpSession sessao = request.getSession(true);\r\n\t\tsessao.invalidate();\r\n\t\tresponse.sendRedirect(\"/Concessionaria/home\");\r\n\t}",
"public void tener_acceso_a_la_plataforma() {\n\t\tbaseState.setUrl(\"http://km.choucairtesting.com/login/index.php\");\t\n\t\tbaseState.setBrowserType(BrowserType.GoogleChrome);\n\t\tbaseState.execute(desktop);\t\n\t\tSerenity.takeScreenshot();\n\t\t\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n String login = request.getParameter(\"login\");\r\n String mdp = request.getParameter(\"password\");\r\n\r\n if (login != null && mdp != null && isLoginValid(login, mdp)) {\r\n HttpSession session = request.getSession();\r\n session.setAttribute(\"utilisateur\", request.getParameter(\"login\"));\r\n }\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n \r\n\r\n //response.sendRedirect(request.getContextPath());\r\n String cP = request.getParameter(\"currentPageAction\");\r\n String red = \"controleur?action=\" + cP;\r\n if(cP.equals(\"read\")) {\r\n red += \"&idBook=\" + request.getParameter(\"idBook\")\r\n + \"&idPara=\" + request.getParameter(\"idPara\");\r\n }\r\n response.sendRedirect(red);\r\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<< LogOutProc 실행 >>>>>>>>>>>>>>>>>>>>>\");\n\n\t\t\n\t\tresponse.setHeader(\"Cache-Control\",\"no-store\"); \n\t\tresponse.setHeader(\"Pragma\",\"no-cache\"); \n\t\n\t\tString logout = \"success\";\n\t\tHttpSession session = request.getSession();\n\t\tsession.invalidate();\n\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<< LogOutProc 완료 >>>>>>>>>>>>>>>>>>>>>\");\n\t\tresponse.sendRedirect(\"main.jsp?logout=\"+logout);\n\t\tSystem.out.println(\"main.jsp로 이동합니다....\\n\");\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String accion=request.getParameter(\"accion\");\n HttpSession session = request.getSession(true); // reusar\n switch (accion){\n case \"Reservar\":\n request.getRequestDispatcher(\"reservar.jsp\").forward(request, response);\n break;\n case \"ListarReservas\":\n //Buscar al cliente logeado\n String emailC=String.valueOf(session.getAttribute(\"email\"));\n ClienteDAO clDAO = new ClienteDAO();\n int rutSes = clDAO.traerCliente(emailC).getRut_cliente();\n \n //Listar las reservas del cliente\n List<Reserva>datos=resDAO.listarReservas(rutSes);\n System.out.println(Arrays.toString(datos.toArray()));\n request.setAttribute(\"datos\", datos);\n request.getRequestDispatcher(\"panelCliente.jsp\").forward(request, response);\n resDAO.listarReservas(rutSes);\n break;\n case \"Volver\":\n request.getRequestDispatcher(\"Resv?accion=ListarReservas\").forward(request, response);\n break;\n case \"Salir\":\n //Cerrar sesión\n session.removeAttribute(\"email\");\n response.sendRedirect(request.getContextPath() + \"/index.jsp\");\n break;\n case \"ModificarVentana\":\n request.getRequestDispatcher(\"modificarCliente.jsp\").forward(request, response);\n case \"MenuComprar\":\n request.getRequestDispatcher(\"menu_comprar.jsp\").forward(request, response);\n case \"PanelCliente\":\n request.getRequestDispatcher(\"Resv?accion=ListarReservas\").forward(request, response);\n case \"MenuCarro\":\n request.getRequestDispatcher(\"menu_carro.jsp\").forward(request, response);\n case \"Inicio\":\n request.getRequestDispatcher(\"Inicio.jsp\").forward(request, response);\n case \"Cancelar\":\n HorarioReservaDAO hrDAO = new HorarioReservaDAO();\n //Recuperar datos\n int id=Integer.parseInt(request.getParameter(\"id\"));\n String emailBuscar = String.valueOf(session.getAttribute(\"email\"));\n Date fechaActual = new Date(System.currentTimeMillis());\n Date fechaReservaExistente = resDAO.traerReserva(id).getFecha_reserva();\n int diferenciaDias = (int)((fechaReservaExistente.getTime() - fechaActual.getTime()) / (1000 * 60 * 60 * 24));\n \n //Condición para saber si la reserva se está cancelando el día antes o no\n if(diferenciaDias>1)\n {\n //Setear datos para que el correo recupere la información del cliente\n c.setRut_cliente(cDAO.traerCliente(emailBuscar).getRut_cliente());\n c.setDigito_verificador_cliente(cDAO.traerCliente(emailBuscar).getDigito_verificador_cliente());\n c.setNombre_cliente(String.valueOf(cDAO.traerCliente(emailBuscar).getNombre_cliente()));\n c.setPapellido_cliente(String.valueOf(cDAO.traerCliente(emailBuscar).getPapellido_cliente()));\n c.setSapellido_cliente(String.valueOf(cDAO.traerCliente(emailBuscar).getSapellido_cliente()));\n\n r.setFecha_registro(resDAO.traerReserva(id).getFecha_registro());\n r.setFecha_reserva(resDAO.traerReserva(id).getFecha_reserva());\n r.setRut_solicitante(resDAO.traerReserva(id).getRut_solicitante());\n r.setMesas_id_mesa(resDAO.traerReserva(id).getMesas_id_mesa());\n r.setHorario_reservas_id_horario_reserva(resDAO.traerReserva(id).getHorario_reservas_id_horario_reserva());\n int id_horario = resDAO.traerReserva(id).getHorario_reservas_id_horario_reserva();\n System.out.println(id_horario);\n String horario = hrDAO.recuperarHorario(id_horario).getHorario_reserva();\n r.setHorario_reserva(horario);\n System.out.println(horario);\n\n //Ejecutar las acciones\n resDAO.eliminarReserva(id);\n email.sendEmailReservaCancelada(c, r, emailBuscar);\n request.getRequestDispatcher(\"Resv?accion=ListarReservas\").forward(request, response);\n }else{\n boolean error = true;\n request.setAttribute(\"ErrorCancelar\", error);\n request.getRequestDispatcher(\"Resv?accion=ListarReservas\").forward(request, response);\n }\n break;\n case \"Registrar\":\n ClienteDAO cliDAO = new ClienteDAO();\n ReservaDAO resDAO = new ReservaDAO();\n HorarioReservaDAO horDAO = new HorarioReservaDAO();\n //Recuperar variables del formulario y el resto de datos\n HttpSession sessionReservar = request.getSession(true); // reusar\n String emailCliente=String.valueOf(sessionReservar.getAttribute(\"email\"));\n int rutSession = cliDAO.traerCliente(emailCliente).getRut_cliente();\n String fechaRegistro=java.time.LocalDate.now().toString();\n Date fechaReserva=Date.valueOf(request.getParameter(\"fechaReserva\"));\n int horarioReserva=Integer.parseInt(request.getParameter(\"horarioReserva\"));\n int idMesa=Integer.parseInt(request.getParameter(\"idMesa\"));\n String horario = horDAO.recuperarHorario(horarioReserva).getHorario_reserva();\n \n //Variables para determinar si la reserva ya está creada\n String fechaReservada = String.valueOf(resDAO.traerReservaPorFecha(fechaReserva).getFecha_reserva());\n String fechaReservadaEscogida=request.getParameter(\"fechaReserva\");\n int horarioReservado = resDAO.traerReservaPorFecha(fechaReserva).getHorario_reservas_id_horario_reserva();\n int MesaReservada = resDAO.traerReservaPorFecha(fechaReserva).getMesas_id_mesa();\n\n //Condición para validar si la reserva está creada o no\n if(horarioReserva==0 || idMesa==0){\n boolean error = true;\n request.setAttribute(\"errorData\", error);\n request.getRequestDispatcher(\"reservar.jsp\").forward(request, response);\n }else{\n if(fechaReservadaEscogida.equals(fechaReservada) && horarioReserva==horarioReservado && idMesa==MesaReservada){\n boolean error = true;\n request.setAttribute(\"ErrorReservar\", error);\n request.getRequestDispatcher(\"reservar.jsp\").forward(request, response);\n }else{\n c.setRut_cliente(rutSession);\n c.setDigito_verificador_cliente(String.valueOf(sessionReservar.getAttribute(\"dv\")));\n c.setNombre_cliente(String.valueOf(sessionReservar.getAttribute(\"nombre\")));\n c.setPapellido_cliente(String.valueOf(sessionReservar.getAttribute(\"papellido\")));\n c.setSapellido_cliente(String.valueOf(sessionReservar.getAttribute(\"sapellido\"))); \n\n r.setFecha_registro(Date.valueOf(fechaRegistro));\n r.setFecha_reserva(fechaReserva);\n r.setRut_solicitante(rutSession);\n r.setMesas_id_mesa(idMesa);\n r.setHorario_reservas_id_horario_reserva(horarioReserva);\n r.setHorario_reserva(horario);\n\n resDAO.crearReserva(r);\n email.sendEmailReserva(c, r, emailCliente);\n request.getRequestDispatcher(\"Resv?accion=ListarReservas\").forward(request, response);\n }\n }\n break;\n default:\n throw new AssertionError();\n }\n }",
"public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }",
"@Override\n\tpublic void afterPhase(PhaseEvent event) {\n\t\tFacesContext context = event.getFacesContext();\n\t\tString nomePagina = context.getViewRoot().getViewId();\n\t\t\n\t\tif(nomePagina.equals(\"/login.xhtml\")){\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\t//outra página\n\t\tUsuario usuarioLogado = (Usuario) context.getExternalContext().getSessionMap().get(\"usuariologado\");\n\t\t\n\t\t//usuario ja esta logado, nao precisa fazer nada\n\t\tif(usuarioLogado != null){\n\t\t\t\n\t\t\t//a página principal pode ser acessada\n\t\t\tif(nomePagina.equals(\"/principal.xhtml\")){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t/// caso nao seja,obtém a funcionalidade da sessão\n\t\t\tFuncionalidade funcionalidade = (Funcionalidade) context.getExternalContext().getSessionMap().get(nomePagina);\n\t\t\tif(funcionalidade != null){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tNavigationHandler handler = context.getApplication().getNavigationHandler();\n\t\t\thandler.handleNavigation(context, null, \"/principal?faces-redirect=true\");\n\t\t\t\n\t\t\tcontext.renderResponse();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//usuario nao esta logado\n\t\tif (nomePagina.equals(\"/usuariocomum.xhtml\")) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tNavigationHandler handler = context.getApplication().getNavigationHandler();\n\t\t\thandler.handleNavigation(context, null, \"/login?faces-redirect=true\");\n\t\t}\n\t\t\n\t\tcontext.renderResponse();\n\t\t\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\tHttpSession httpsession=request.getSession();\n\thttpsession.removeAttribute(\"current-user\");\n\tresponse.sendRedirect(\"index.jsp\");\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tif(req.getSession().getAttribute(\"Users\")!=null){\r\n\t\t\treq.getSession().removeAttribute(\"Users\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tresp.sendRedirect(PathUtil.getBasePath(req,\"index.jsp\"));\r\n\t\r\n\t}",
"@Override\n public String execute(final HttpServletRequest request, final HttpServletResponse response, ModelMap model) throws Exception {\n request.getSession().setAttribute(\"language\", request.getParameter(\"language\"));\n\n\n // model.addAttribute(\"language\",request.getParameter(\"language\"));\n // model.addAttribute(\"loginmessage\",\"null\");\n\n request.getSession().setAttribute(\"loginmessage\", \"\");\n return \"login\";\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n HttpSession session = request.getSession();\n \n if (request.getParameter(\"logout\")!=null){\n session.invalidate();\n String message=\"logout\";\n request.setAttribute(\"message\", message); \n session = request.getSession(); \n } \n getServletContext().getRequestDispatcher(\"/WEB-INF/login.jsp\").\n forward(request,response);\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, MessagingException {\r\n String accion;\r\n accion = request.getPathInfo();\r\n String vista;\r\n HttpSession session = request.getSession();\r\n \r\n session.removeAttribute(\"marca_favorito\");\r\n session.removeAttribute(\"comentarios\");\r\n session.removeAttribute(\"borra_favorito\");\r\n session.removeAttribute(\"sube_articulo\");\r\n session.removeAttribute(\"nuevouser\");\r\n session.removeAttribute(\"wrong_user\");\r\n ServletContext context = request.getSession().getServletContext();\r\n \r\n if(i!=0){\r\n context.removeAttribute(\"wrong_user\"); \r\n context.removeAttribute(\"nuevouser\");\r\n i=0;\r\n }\r\n \r\n \r\n switch (accion) {\r\n case \"/home\":\r\n // Página Principal\r\n TypedQuery<Articulos> query2 = em.createNamedQuery(\"Articulos.findAll\", Articulos.class);\r\n List<Articulos> result2 = query2.getResultList();\r\n List<Articulos> aux1 = new ArrayList<Articulos>();\r\n List<Articulos> aux2 = new ArrayList<Articulos>();\r\n int restantes=result2.size();\r\n int z=0;\r\n \r\n while(restantes!=0 && z!=3){\r\n aux1.add(result2.get(restantes-1));\r\n restantes--;\r\n z++;\r\n }\r\n \r\n while(restantes!=0 && z!=6){\r\n aux2.add(result2.get(restantes-1));\r\n restantes--;\r\n z++;\r\n }\r\n \r\n request.setAttribute(\"Ultimos_articulos1\", aux1);\r\n request.setAttribute(\"Ultimos_articulos2\", aux2);\r\n i++;\r\n vista = \"/index.jsp\";\r\n break;\r\n case \"/login\":\r\n // Mostrar el formulario de login\r\n vista = \"/login.jsp\";\r\n break;\r\n case \"/validar\":\r\n // Validar el usuario\r\n try {\r\n String user = request.getParameter(\"email\");\r\n String pass = request.getParameter(\"password_login\");\r\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n md.update(pass.getBytes());\r\n byte byteData[] = md.digest();\r\n StringBuffer sb = new StringBuffer();\r\n for (int i = 0; i < byteData.length; i++) {\r\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n String pass_digest = sb.toString();\r\n TypedQuery<Usuarios> query = em.createNamedQuery(\"Usuarios.findByNameAndPass\", Usuarios.class);\r\n query.setParameter(\"name\", user);\r\n query.setParameter(\"pwd\", pass_digest);\r\n\r\n List<Usuarios> lu;\r\n lu = query.getResultList();\r\n if (!lu.isEmpty()) {\r\n Usuarios u = lu.get(0);\r\n session.setAttribute(\"id\", u.getId());\r\n session.setAttribute(\"user\", u.getEmail());\r\n request.setAttribute(\"msg\", \"Login correcto.\");\r\n session.setAttribute(\"usuario\", u);\r\n } else {\r\n request.setAttribute(\"msg\", \"Usuario o Password incorrecto.\");\r\n context = request.getSession().getServletContext();\r\n context.setAttribute(\"wrong_user\",\"yes\");\r\n }\r\n } catch (Exception e) {\r\n System.err.println(e);\r\n request.setAttribute(\"msg\", \"ERROR: imposible validar al usuario\");\r\n }\r\n vista = \"/controlador/home\";\r\n break;\r\n case \"/alta\":\r\n // Mostrar el formulario de alta\r\n i++;\r\n vista = \"/alta.jsp\";\r\n break;\r\n case \"/guardar\":\r\n // Guardar datos de usuario\r\n // UNDO: Verificación de los datos\r\n try {\r\n String email = request.getParameter(\"correo\");\r\n String nombre = request.getParameter(\"name\");\r\n String password= request.getParameter(\"password1\");\r\n String direccion = request.getParameter(\"direccion\");\r\n String telefono = request.getParameter(\"telefono\");\r\n String cp = request.getParameter(\"cp\");\r\n String facebook = request.getParameter(\"fb\"); \r\n\r\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n md.update(password.getBytes());\r\n byte byteData[] = md.digest();\r\n StringBuffer sb = new StringBuffer();\r\n for (int i = 0; i < byteData.length; i++) {\r\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n String pass_digest = sb.toString();\r\n \r\n TypedQuery<Usuarios> query_email = em.createNamedQuery(\"Usuarios.findByEmail\", Usuarios.class);\r\n query_email.setParameter(\"emailUnicidad\", email);\r\n List<Usuarios> result_email = query_email.getResultList();\r\n \r\n \r\n if(email != null && pass_digest != null && nombre != null && result_email.size()==0){\r\n Usuarios u = new Usuarios();\r\n u.setCp(cp);\r\n u.setDireccion(direccion);\r\n u.setFacebook(facebook);\r\n u.setTelefono(telefono);\r\n u.setNombre(nombre);\r\n u.setEmail(email);\r\n u.setPassword(pass_digest);\r\n persist(u);\r\n request.setAttribute(\"msg\", \"Usuario guardado\");\r\n context.setAttribute(\"nuevouser\", \"yes\");\r\n \r\n final Part filePart = request.getPart(\"file2\");\r\n System.out.println(filePart.getSize());\r\n System.out.println(filePart.getName());\r\n if (filePart.getSize()!=0) {\r\n\r\n /*\r\n String nombre = filePart.getName();\r\n Long tamano = filePart.getSize();\r\n String file = filePart.getSubmittedFileName();\r\n */\r\n \r\n String relativePathFolder = \"../../web/assets/img_users\";\r\n String absolutePathFolder = getServletContext().getRealPath(relativePathFolder); \r\n \r\n File f = new File(absolutePathFolder + File.separator + email+\".jpg\");\r\n \r\n OutputStream p = new FileOutputStream(f);\r\n InputStream filecontent;\r\n filecontent = filePart.getInputStream();\r\n \r\n int read = 0;\r\n final byte[] bytes = new byte[1024];\r\n while ((read = filecontent.read(bytes)) != -1) {\r\n p.write(bytes, 0, read);\r\n }\r\n\r\n p.close();\r\n filecontent.close();\r\n \r\n }\r\n else{\r\n \r\n System.out.println(\"LLLLEGOOOOOOS\");\r\n \r\n String relativePathFolder = \"../../web/assets/img_users\";\r\n String absolutePathFolder = getServletContext().getRealPath(relativePathFolder); \r\n \r\n File f = new File(absolutePathFolder + File.separator + email+\".jpg\");\r\n \r\n OutputStream p = new FileOutputStream(f);\r\n InputStream filecontent;\r\n filecontent = new FileInputStream(new File(absolutePathFolder + File.separator + \"user.png\"));\r\n \r\n int read = 0;\r\n final byte[] bytes = new byte[1024];\r\n while ((read = filecontent.read(bytes)) != -1) {\r\n p.write(bytes, 0, read);\r\n }\r\n\r\n p.close();\r\n filecontent.close();\r\n \r\n /*\r\n System.out.println(\"He entrado\");\r\n \r\n InputStream is = null;\r\n OutputStream os = null;\r\n try {\r\n is = new FileInputStream(new File(\"../../web/assets/img_users/user.png\"));\r\n os = new FileOutputStream(new File(\"../../web/assets/img_users/\"+email+\".png\"));\r\n byte[] buffer = new byte[1024];\r\n int length;\r\n while ((length = is.read(buffer)) > 0) {\r\n os.write(buffer, 0, length);\r\n }\r\n } finally {\r\n is.close();\r\n os.close();\r\n }\r\n */\r\n \r\n }\r\n \r\n \r\n \r\n \r\n //ENVIAR EL EMAIL DE BIENVENIDA\r\n \r\n \r\n Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());\r\n final String SSL_FACTORY = \"javax.net.ssl.SSLSocketFactory\";\r\n\r\n // Get a Properties object\r\n Properties props = System.getProperties();\r\n props.setProperty(\"mail.smtps.host\", \"smtp.gmail.com\");\r\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\r\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n props.setProperty(\"mail.smtp.port\", \"465\");\r\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.setProperty(\"mail.smtps.auth\", \"true\");\r\n\r\n /*\r\n If set to false, the QUIT command is sent and the connection is immediately closed. If set \r\n to true (the default), causes the transport to wait for the response to the QUIT command.\r\n\r\n ref : http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html\r\n http://forum.java.sun.com/thread.jspa?threadID=5205249\r\n smtpsend.java - demo program from javamail\r\n */\r\n props.put(\"mail.smtps.quitwait\", \"false\");\r\n\r\n //Session.getInstance(props, null);\r\n Session session2 = Session.getDefaultInstance(props);\r\n\r\n // -- Create a new message --\r\n final MimeMessage msg = new MimeMessage(session2.getInstance(props, null));\r\n\r\n // -- Set the FROM and TO fields --\r\n msg.setFrom(new InternetAddress(\"[email protected]\"));\r\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(email, false));\r\n\r\n /*if (ccEmail.length() > 0) {\r\n msg.setRecipients(Message.RecipientType.CC, InternetAddress.parse(ccEmail, false));\r\n }*/\r\n\r\n msg.setSubject(\"Bienvenido a Tradder\");\r\n msg.setText(\"¡Hola \"+nombre+\"! \\n\\nBienvenido al portal de comercio electrónico donde podrás comprar todo aquello que siempre quisiste y vender lo que ya no necesitas. \\n\\n Aunque estamos especializados en Hardware aquí encontrarás todo lo relacionado con el mundo de la informática \\n\\n\\n Atentamente: El equipo de Tradder\");\r\n msg.setSentDate(new Date());\r\n\r\n SMTPTransport t = (SMTPTransport)session2.getTransport(\"smtps\");\r\n\r\n t.connect(\"smtp.gmail.com\", \"[email protected]\", \"panturrana\");\r\n t.sendMessage(msg, msg.getAllRecipients()); \r\n t.close();\r\n \r\n //FIN ENVIAR MAIL\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n } catch (Exception e) {\r\n request.setAttribute(\"msg\", \"ERROR: Usuario NO guardado\");\r\n }\r\n vista = \"/controlador/home\";\r\n break;\r\n \r\n case \"/articulos\":\r\n \r\n i++;\r\n TypedQuery<Articulos> query = em.createNamedQuery(\"Articulos.findAll\", Articulos.class);\r\n List<Articulos> result = query.getResultList();\r\n \r\n context = request.getSession().getServletContext();\r\n \r\n context.setAttribute(\"articulos\", result);\r\n \r\n vista= \"/ver_articulos.jsp\";\r\n \r\n break;\r\n \r\n case \"/addFavoritos\":\r\n \r\n String auxID = request.getParameter(\"id\");\r\n Long ida = Long.parseLong(auxID);\r\n Articulos art= new Articulos();\r\n TypedQuery<Articulos> q = em.createNamedQuery(\"Articulos.Seleccionar\", Articulos.class);\r\n q.setParameter(\"id_art\", ida); \r\n List<Articulos> resultAUX = q.getResultList(); \r\n List<Articulos> articulos_favoritos = (List<Articulos>) session.getAttribute(\"articulos_favoritos\");\r\n \r\n if (articulos_favoritos == null) {\r\n articulos_favoritos = new ArrayList<>();\r\n }\r\n \r\n art = resultAUX.get(0); \r\n articulos_favoritos.add(art);\r\n \r\n session.setAttribute(\"articulos_favoritos\", articulos_favoritos);\r\n \r\n TypedQuery<Articulos> query3 = em.createNamedQuery(\"Articulos.findAll\", Articulos.class);\r\n List<Articulos> result3 = query3.getResultList();\r\n session.setAttribute(\"marca_favorito\", \"yes\");\r\n request.setAttribute(\"articulos\", result3);\r\n \r\n vista=\"/ver_articulos.jsp\";\r\n break;\r\n \r\n case \"/borrarFavorito\":\r\n String auxID2 = request.getParameter(\"id\");\r\n Long id_borrar= Long.parseLong(auxID2);\r\n List<Articulos> lista_aux = (List<Articulos>) session.getAttribute(\"articulos_favoritos\");\r\n int b=0;\r\n session.setAttribute(\"borra_favorito\", \"yes\");\r\n Boolean encontrado=false; \r\n while(b<lista_aux.size() && !encontrado){\r\n if(Objects.equals(lista_aux.get(b).getId(), id_borrar)){\r\n lista_aux.remove(b);\r\n encontrado=true;\r\n }\r\n else b++;\r\n }\r\n \r\n session.setAttribute(\"articulos_favoritos\", lista_aux);\r\n \r\n vista= \"/interes.jsp\";\r\n break;\r\n \r\n case \"/interes\":\r\n vista= \"/interes.jsp\";\r\n break; \r\n \r\n case \"/logout\":\r\n \r\n //\r\n session.removeAttribute(\"id\");\r\n session.removeAttribute(\"user\");\r\n session.removeAttribute(\"usuario\");\r\n session.removeAttribute(\"comentarios\");\r\n request.setAttribute(\"msg\", \"Usuario desconectado\");\r\n vista = \"/controlador/home\";\r\n break;\r\n \r\n case \"/publicar\":\r\n \r\n vista=\"/publicar.jsp\";\r\n break;\r\n case \"/validar_articulo\":\r\n \r\n \r\n Articulos a;\r\n \r\n String cp = request.getParameter(\"cp\");\r\n String year = request.getParameter(\"ano\");\r\n String name = request.getParameter(\"name\");\r\n String pvp = request.getParameter(\"precio\");\r\n String categoria = request.getParameter(\"optionsRadios\");\r\n String estado = request.getParameter(\"optionsRadios2\");\r\n String descripcion = request.getParameter(\"descripcion\");\r\n \r\n if (cp != null && name != null && pvp != null) {\r\n try {\r\n a = new Articulos();\r\n a.setAño(year);\r\n a.setCp(cp);\r\n a.setCategoria(categoria);\r\n a.setEstado(estado);\r\n a.setDescripcion(descripcion);\r\n a.setNombre(name);\r\n a.setPrecio(pvp);\r\n a.setPropietario((Usuarios) request.getSession().getAttribute(\"usuario\"));\r\n //.setPropietario((Usuarios) session.getAttribute(\"id\"));\r\n persist(a);\r\n \r\n final Part filePart = request.getPart(\"file1\");\r\n if (filePart != null) {\r\n\r\n /*\r\n String nombre = filePart.getName();\r\n Long tamano = filePart.getSize();\r\n String file = filePart.getSubmittedFileName();\r\n */\r\n \r\n String relativePathFolder = \"../../web/assets/img_articulos\";\r\n String absolutePathFolder = getServletContext().getRealPath(relativePathFolder); \r\n \r\n File f = new File(absolutePathFolder + File.separator + name+year+cp+\".jpg\");\r\n \r\n OutputStream p = new FileOutputStream(f);\r\n InputStream filecontent;\r\n filecontent = filePart.getInputStream();\r\n \r\n int read = 0;\r\n final byte[] bytes = new byte[1024];\r\n while ((read = filecontent.read(bytes)) != -1) {\r\n p.write(bytes, 0, read);\r\n }\r\n\r\n p.close();\r\n filecontent.close();\r\n \r\n }\r\n\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n System.out.println(\"Error: Imposible persistir articulo: \" + name);\r\n String msg = \"<p class='error'>Error: Artículo \" + name + \" no creado</p>\";\r\n }\r\n } else {\r\n System.out.println(\"Error: datos incorrectos\"); \r\n }\r\n\r\n session.setAttribute(\"sube_articulo\", \"yes\");\r\n \r\n vista = \"/publicar.jsp\";\r\n break; \r\n \r\n case \"/detalles\" :\r\n \r\n \r\n \r\n String aux4 = request.getParameter(\"id\");\r\n Long idDet = Long.parseLong(aux4);\r\n Articulos artDet= new Articulos();\r\n TypedQuery<Articulos> qDet = em.createNamedQuery(\"Articulos.Seleccionar\", Articulos.class);\r\n qDet.setParameter(\"id_art\", idDet); \r\n List<Articulos> resultDet = qDet.getResultList();\r\n \r\n artDet = resultDet.get(0);\r\n \r\n \r\n \r\n if(request.getSession().getAttribute(\"usuario\")==null){\r\n \r\n TypedQuery<Comentarios> comentario_auxiliar = em.createNamedQuery(\"Comentarios.findByIdAndPrivacy\", Comentarios.class);\r\n comentario_auxiliar.setParameter(\"id_articulo\", Long.parseLong(aux4));\r\n comentario_auxiliar.setParameter(\"privacidad\", \"Publico\");\r\n List<Comentarios> lista_comentarios= comentario_auxiliar.getResultList();\r\n session.setAttribute(\"comentarios\", lista_comentarios);\r\n session.setAttribute(\"num_comentarios\", lista_comentarios.size());\r\n \r\n }\r\n \r\n else{\r\n \r\n \r\n \r\n TypedQuery<Comentarios> comentario_auxiliar = em.createNamedQuery(\"Comentarios.findByIdAndPrivacy\", Comentarios.class);\r\n comentario_auxiliar.setParameter(\"id_articulo\", Long.parseLong(aux4));\r\n comentario_auxiliar.setParameter(\"privacidad\", \"Publico\");\r\n \r\n \r\n \r\n \r\n TypedQuery<Comentarios> comentario_auxiliar2 = em.createNamedQuery(\"Comentarios.findByIdAndPrivacyAndAutor\", Comentarios.class);\r\n comentario_auxiliar2.setParameter(\"id_articulo\", Long.parseLong(aux4));\r\n comentario_auxiliar2.setParameter(\"privacidad\", \"Personal\");\r\n Usuarios aux_us = (Usuarios) request.getSession().getAttribute(\"usuario\");\r\n comentario_auxiliar2.setParameter(\"autor\", aux_us);\r\n \r\n TypedQuery<Comentarios> comentario_auxiliar3 = em.createNamedQuery(\"Comentarios.findByIdAndPrivacy\", Comentarios.class);\r\n comentario_auxiliar3.setParameter(\"id_articulo\", Long.parseLong(aux4));\r\n comentario_auxiliar3.setParameter(\"privacidad\", \"Vendedor\");\r\n \r\n \r\n \r\n \r\n List<Comentarios> lista_comentarios= comentario_auxiliar.getResultList();\r\n List<Comentarios> lista_comentarios2= comentario_auxiliar2.getResultList();\r\n List<Comentarios> lista_comentarios3= comentario_auxiliar3.getResultList();\r\n \r\n \r\n System.out.println(\"El tamaño de la lista3 es: \" + lista_comentarios3.size());\r\n \r\n \r\n List<Comentarios> lista_comentarios_final = new ArrayList();\r\n \r\n lista_comentarios_final.addAll(lista_comentarios);\r\n lista_comentarios_final.addAll(lista_comentarios2);\r\n \r\n \r\n \r\n \r\n for (int j = 0; j < lista_comentarios3.size(); j++) {\r\n \r\n \r\n System.out.println(\"Seba homo1\");\r\n \r\n if(lista_comentarios3.get(j).getAutor().getId()==aux_us.getId() || lista_comentarios3.get(j).getArticulo().getPropietario().getId()==aux_us.getId()){\r\n lista_comentarios_final.add(lista_comentarios3.get(j));\r\n System.out.println(\"seba hhomo2\");\r\n \r\n }\r\n \r\n }\r\n \r\n session.setAttribute(\"comentarios\", lista_comentarios_final);\r\n session.setAttribute(\"num_comentarios\", lista_comentarios_final.size());\r\n \r\n \r\n }\r\n \r\n \r\n \r\n request.setAttribute(\"articuloDetalle\", artDet);\r\n\r\n \r\n vista =\"/detalles.jsp\";\r\n break;\r\n case \"/filtro\":\r\n \r\n \r\n TypedQuery<Articulos> articulos_query = em.createNamedQuery(\"Articulos.findAll\", Articulos.class);\r\n List<Articulos> lista_articulos = articulos_query.getResultList();\r\n List<Articulos> articulos_final= (List) new ArrayList<>();\r\n List<Articulos> articulos_aux= new ArrayList<>();\r\n \r\n \r\n String categoria1 = request.getParameter(\"categoria1\");\r\n String categoria2 = request.getParameter(\"categoria2\");\r\n String categoria3 = request.getParameter(\"categoria3\");\r\n String cp_filtro = request.getParameter(\"cp\");\r\n String a1=request.getParameter(\"pmenor\");\r\n String b1=request.getParameter(\"pmayor\");\r\n \r\n \r\n \r\n \r\n int pmenor = Integer.parseInt(a1.toString());\r\n int pmayor = Integer.parseInt(b1.toString());\r\n \r\n boolean categoria1b=false, categoria2b=false, categoria3b=false, cpb=false;\r\n \r\n \r\n \r\n \r\n if(categoria1.equals(\"on\")){\r\n \r\n \r\n \r\n categoria1b=true;\r\n \r\n for (int i = 0; i < lista_articulos.size(); i++) {\r\n\r\n if(lista_articulos.get(i).getCategoria().equals(\"CPU\")) articulos_aux.add(lista_articulos.get(i));\r\n\r\n }\r\n }\r\n \r\n if(categoria2.equals(\"on\")){\r\n \r\n \r\n \r\n categoria2b=true;\r\n \r\n for (int i = 0; i < lista_articulos.size(); i++) {\r\n \r\n if(lista_articulos.get(i).getCategoria().equals(\"GPU\")) articulos_aux.add(lista_articulos.get(i));\r\n \r\n } \r\n \r\n }\r\n \r\n if(categoria3.equals(\"on\")){\r\n \r\n \r\n \r\n categoria3b=true;\r\n \r\n for (int i = 0; i < lista_articulos.size(); i++) {\r\n \r\n if(lista_articulos.get(i).getCategoria().equals(\"Otros\")) articulos_aux.add(lista_articulos.get(i));\r\n \r\n } \r\n \r\n }\r\n\r\n \r\n if(!cp_filtro.equals(\"\")){\r\n \r\n cpb=true;\r\n \r\n \r\n \r\n if(categoria1b || categoria2b || categoria3b) {\r\n \r\n \r\n int size=articulos_aux.size();\r\n ArrayList<Integer> borrar = new ArrayList<Integer>();\r\n \r\n for (int i = 0; i < size; i++) {\r\n \r\n \r\n if(!articulos_aux.get(i).getCp().equals(cp_filtro)) borrar.add(i);\r\n \r\n \r\n \r\n } \r\n \r\n for(int i =0;i<borrar.size();i++){\r\n \r\n \r\n articulos_aux.remove((borrar.get(i).intValue())-i);\r\n \r\n }\r\n \r\n }\r\n \r\n else{\r\n \r\n for (int i = 0; i < lista_articulos.size(); i++) {\r\n \r\n if(lista_articulos.get(i).getCp().equals(cp_filtro)) articulos_aux.add(lista_articulos.get(i));\r\n \r\n } \r\n }\r\n\r\n }\r\n \r\n \r\n if(categoria1b || categoria2b || categoria3b || cpb) {\r\n \r\n\r\n for (int i = 0; i < articulos_aux.size(); i++) {\r\n \r\n if(Integer.parseInt(articulos_aux.get(i).getPrecio())>=pmenor && Integer.parseInt(articulos_aux.get(i).getPrecio())<=pmayor) articulos_final.add(articulos_aux.get(i));\r\n \r\n } \r\n \r\n }\r\n \r\n else{\r\n \r\n for (int i = 0; i < lista_articulos.size(); i++) if(Integer.parseInt(lista_articulos.get(i).getPrecio())>=pmenor && Integer.parseInt(lista_articulos.get(i).getPrecio())<=pmayor) articulos_final.add(lista_articulos.get(i));\r\n \r\n }\r\n\r\n \r\n session.setAttribute(\"articulos2\", articulos_final);\r\n \r\n vista = \"/WEB-INF/vistas/filtro_articulos.jsp\";\r\n break; \r\n \r\n \r\n case\"/guardar_comentario\":\r\n \r\n \r\n TypedQuery<Articulos> articulos_comentarios = em.createNamedQuery(\"Articulos.Seleccionar\", Articulos.class);\r\n \r\n articulos_comentarios.setParameter(\"id_art\", Long.parseLong(request.getParameter(\"id_articulo\")));\r\n List<Articulos> lista_articulos_comentarios = articulos_comentarios.getResultList();\r\n Articulos articulo_comentario= lista_articulos_comentarios.get(0);\r\n \r\n TypedQuery<Usuarios> usuario_auxiliar = em.createNamedQuery(\"Usuarios.findById\", Usuarios.class);\r\n usuario_auxiliar.setParameter(\"id\", session.getAttribute(\"id\"));\r\n List<Usuarios> usuarios_list= usuario_auxiliar.getResultList();\r\n Usuarios usuario_comentario = usuarios_list.get(0);\r\n \r\n String texto=request.getParameter(\"texto\");\r\n String privacidad=request.getParameter(\"privacidad\");\r\n \r\n \r\n \r\n try{\r\n \r\n Long aux5 = Long.parseLong(request.getParameter(\"id_articulo\"));\r\n Comentarios comentario = new Comentarios();\r\n comentario.setArticulo(articulo_comentario);\r\n comentario.setAutor(usuario_comentario);\r\n comentario.setPrivacidad(privacidad);\r\n comentario.setTexto(texto);\r\n persist(comentario);\r\n \r\n \r\n \r\n TypedQuery<Comentarios> comentario_auxiliar = em.createNamedQuery(\"Comentarios.findByIdAndPrivacy\", Comentarios.class);\r\n comentario_auxiliar.setParameter(\"id_articulo\", aux5);\r\n comentario_auxiliar.setParameter(\"privacidad\", \"Publico\");\r\n \r\n \r\n \r\n \r\n TypedQuery<Comentarios> comentario_auxiliar2 = em.createNamedQuery(\"Comentarios.findByIdAndPrivacyAndAutor\", Comentarios.class);\r\n comentario_auxiliar2.setParameter(\"id_articulo\", aux5);\r\n comentario_auxiliar2.setParameter(\"privacidad\", \"Personal\");\r\n Usuarios aux_us = (Usuarios) request.getSession().getAttribute(\"usuario\");\r\n comentario_auxiliar2.setParameter(\"autor\", aux_us);\r\n \r\n TypedQuery<Comentarios> comentario_auxiliar3 = em.createNamedQuery(\"Comentarios.findByIdAndPrivacy\", Comentarios.class);\r\n comentario_auxiliar3.setParameter(\"id_articulo\", aux5);\r\n comentario_auxiliar3.setParameter(\"privacidad\", \"Vendedor\");\r\n \r\n \r\n \r\n \r\n List<Comentarios> lista_comentarios= comentario_auxiliar.getResultList();\r\n List<Comentarios> lista_comentarios2= comentario_auxiliar2.getResultList();\r\n List<Comentarios> lista_comentarios3= comentario_auxiliar3.getResultList();\r\n \r\n \r\n System.out.println(\"El tamaño de la lista3 es: \" + lista_comentarios3.size());\r\n \r\n \r\n List<Comentarios> lista_comentarios_final = new ArrayList();\r\n \r\n lista_comentarios_final.addAll(lista_comentarios);\r\n lista_comentarios_final.addAll(lista_comentarios2);\r\n \r\n \r\n \r\n \r\n for (int j = 0; j < lista_comentarios3.size(); j++) {\r\n \r\n \r\n \r\n \r\n if(lista_comentarios3.get(j).getAutor().getId()==aux_us.getId() || lista_comentarios3.get(j).getArticulo().getPropietario().getId()==aux_us.getId()){\r\n lista_comentarios_final.add(lista_comentarios3.get(j));\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n session.setAttribute(\"comentarios\", lista_comentarios_final);\r\n session.setAttribute(\"num_comentarios\", lista_comentarios_final.size());\r\n \r\n \r\n }\r\n catch (Exception e) {\r\n System.err.println(e);\r\n request.setAttribute(\"msg\", \"ERROR: imposible validar al usuario\");\r\n }\r\n \r\n \r\n \r\n \r\n \r\n vista=\"/WEB-INF/vistas/vista_comentarios.jsp\";\r\n \r\n break;\r\n \r\n \r\n case \"/nueva_pass\":\r\n \r\n String mail_pwd = request.getParameter(\"email_enviar\");\r\n TypedQuery<Usuarios> query5 = em.createNamedQuery(\"Usuarios.findByEmail\", Usuarios.class);\r\n query5.setParameter(\"emailUnicidad\", mail_pwd); \r\n List<Usuarios> resultado_nueva_pwd= query5.getResultList();\r\n \r\n if(resultado_nueva_pwd.size()>0){\r\n \r\n try {\r\n Usuarios user_reset = resultado_nueva_pwd.get(0);\r\n\r\n Random rnd = new Random();\r\n rnd.setSeed(System.currentTimeMillis());\r\n String nueva_pass=\"\";\r\n\r\n for(int i=0; i<5;i++){\r\n nueva_pass=nueva_pass+rnd.nextInt(9);\r\n }\r\n\r\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n md.update(nueva_pass.getBytes());\r\n byte byteData[] = md.digest();\r\n StringBuffer sb = new StringBuffer();\r\n for (int i = 0; i < byteData.length; i++) {\r\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n String pass_digest2 = sb.toString();\r\n\r\n user_reset.setPassword(pass_digest2);\r\n merge(user_reset);\r\n \r\n //ENVIAR EL EMAIL\r\n \r\n \r\n Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());\r\n final String SSL_FACTORY = \"javax.net.ssl.SSLSocketFactory\";\r\n\r\n // Get a Properties object\r\n Properties props = System.getProperties();\r\n props.setProperty(\"mail.smtps.host\", \"smtp.gmail.com\");\r\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\r\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n props.setProperty(\"mail.smtp.port\", \"465\");\r\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.setProperty(\"mail.smtps.auth\", \"true\");\r\n\r\n /*\r\n If set to false, the QUIT command is sent and the connection is immediately closed. If set \r\n to true (the default), causes the transport to wait for the response to the QUIT command.\r\n\r\n ref : http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html\r\n http://forum.java.sun.com/thread.jspa?threadID=5205249\r\n smtpsend.java - demo program from javamail\r\n */\r\n props.put(\"mail.smtps.quitwait\", \"false\");\r\n\r\n //Session.getInstance(props, null);\r\n Session session2 = Session.getDefaultInstance(props);\r\n\r\n // -- Create a new message --\r\n final MimeMessage msg = new MimeMessage(session2.getInstance(props, null));\r\n\r\n // -- Set the FROM and TO fields --\r\n msg.setFrom(new InternetAddress(\"[email protected]\"));\r\n msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(mail_pwd, false));\r\n\r\n /*if (ccEmail.length() > 0) {\r\n msg.setRecipients(Message.RecipientType.CC, InternetAddress.parse(ccEmail, false));\r\n }*/\r\n\r\n msg.setSubject(\"Tradder Nueva Password\");\r\n msg.setText(\"Su nueva contraseña es \"+nueva_pass, \"utf-8\");\r\n msg.setSentDate(new Date());\r\n\r\n SMTPTransport t = (SMTPTransport)session2.getTransport(\"smtps\");\r\n\r\n t.connect(\"smtp.gmail.com\", \"[email protected]\", \"panturrana\");\r\n t.sendMessage(msg, msg.getAllRecipients()); \r\n t.close();\r\n \r\n //FIN ENVIAR MAIL\r\n\r\n \r\n\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Controlador.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n } \r\n \r\n session.removeAttribute(\"wrong_user\");\r\n vista=\"/controlador/home\"; \r\n \r\n \r\n break;\r\n \r\n case \"/validarEmail\" :\r\n String mailAUX = request.getParameter(\"emailValidar\");\r\n TypedQuery<Usuarios> query4 = em.createNamedQuery(\"Usuarios.findByEmail\", Usuarios.class);\r\n query4.setParameter(\"emailUnicidad\", mailAUX); \r\n List<Usuarios> result4= query4.getResultList();\r\n int malAUX;\r\n if(result4.isEmpty()){\r\n session.setAttribute(\"malEmail\", 1);\r\n malAUX=0;\r\n }\r\n else{\r\n session.setAttribute(\"malEmail\", 0);\r\n malAUX=1;\r\n } \r\n vista=\"/WEB-INF/vistas/validarEmail.jsp?malEmail=\"+malAUX;\r\n break;\r\n \r\n \r\n // Otros case\r\n default:\r\n vista = \"/controlador/home\";\r\n break;\r\n }\r\n RequestDispatcher rd = request.getRequestDispatcher(vista);\r\n rd.forward(request, response);\r\n \r\n }",
"public void load() {\n setRemoteUser(\"\");\n setAuthCode(AuthSource.DENIED); \n \n if(pageContext==null) {\n return;\n }\n \n session=(HttpSession)getPageContext().getSession();\n setRemoteUser(Utilities.nvl((String)session.getAttribute(\"remoteUser\"), \"\"));\n setAuthCode(Utilities.nvl((String)session.getAttribute(\"authCode\"), AuthSource.DENIED));\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n HttpSession session = request.getSession(true);\r\n String id = (String) session.getAttribute(\"id\");//ici la valeur de la session va dans id\r\n if (id == null) {\r\n sc.getRequestDispatcher(\"/connexion.jsp\").forward(request, response); //si l'authentification n'a pas encore eu lieu, on renvoie sur la page connexion.html; dont l'action fait fonctionner le servlet sauthentifier\r\n return;\r\n }\r\n else{\r\n sc.getRequestDispatcher(\"/emprunter.jsp\").forward(request, response);\r\n }\r\n \r\n response.setContentType(\"text/html\"); // on pourra générer ca dans le code jsp en entête\r\n PrintWriter p = response.getWriter();\r\n p.println(\"<DOCTYPE html>\");\r\n p.println(\"<html>\");\r\n p.println(\"<head>\");\r\n p.println(\"</head>\");\r\n p.println(\"<body>\");\r\n p.println(\"<h1>Page pour Emprunter</h1>\");\r\n p.println(\"</body>\");\r\n p.println(\"</html>\");\r\n }",
"public void logout() {\n \n FacesContext.getCurrentInstance().getExternalContext().invalidateSession();\n try {\n FacesContext.getCurrentInstance().getExternalContext()\n .redirect(\"/BookStorePelikSangat/faces/admin/loginadmin.xhtml\");\n } \n catch (IOException e) {}\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setCharacterEncoding(\"UTF-8\");\n String command = request.getParameter(\"command\");\n Staff s = new Staff();\n HttpSession session = request.getSession();\n String url = \"\";\n switch (command) {//String tenKH, String matKhau, String diaChi, String email, String sdt\n case \"login\":\n s = s.Login((Integer.parseInt(request.getParameter(\"manv\"))), request.getParameter(\"pass\"));\n if (s != null) {\n session.setAttribute(\"user\", s);//user tự đặt tại đây, tiếp tục tại header \n url = \"/index.jsp\";\n } else {\n url = \"/login.jsp\";\n session.setAttribute(\"loi\", \"ID và Password error\");\n }\n System.out.println(\"login success\");\n RequestDispatcher rd = getServletContext().getRequestDispatcher(url);\n rd.forward(request, response);\n break;\n case \"changepassword\":\n System.out.println(\"fisrt changepassword\");\n //Staff s2 = null;\n if (session.getAttribute(\"user\") != null) {\n s = (Staff) session.getAttribute(\"user\");\n }\n // lam sao get gia tri cua bien moi dang nhap.(=>dựa vào sesstion, login xong get value len, use attribute.)\n String a = \"\";\n String b = \"\";\n if (s != null) {\n a = s.getMaNV(); // null nè, h moi get dc ne.\n b = s.getpW();// null nè \n System.out.println(\"gia tri cua a\" + a);\n String passcu = request.getParameter(\"passcu\");\n System.out.println(passcu);\n String passmoi = request.getParameter(\"passmoi\");\n String nhaplaipassmoi = request.getParameter(\"nhaplaipassmoi\");\n if (passcu.equals(b)) {\n if (nhaplaipassmoi.equals(passmoi)) {\n s.ChangePassword(a, nhaplaipassmoi);\n url = \"/success.jsp\";\n } else {\n url = \"/changepassword.jsp\";\n session.setAttribute(\"errordoipass\", \"change pass error!\");\n }\n } else {\n url = \"/changepassword.jsp\";\n session.setAttribute(\"errordoipass\", \"change pass error!\");\n }\n } else {\n response.sendRedirect(\"back.jsp\");\n }\n RequestDispatcher rd2 = getServletContext().getRequestDispatcher(url);\n rd2.forward(request, response);\n break;\n case \"updateinfo\":\n request.setCharacterEncoding(\"utf-8\");\n response.setCharacterEncoding(\"utf-8\");\n String ho = request.getParameter(\"ho\");\n String ten = request.getParameter(\"ten\");\n String ngaysinh = request.getParameter(\"ngaysinh\");\n String sex = request.getParameter(\"sex\");\n String cmnd = request.getParameter(\"cmnd\");\n String status = request.getParameter(\"status\");\n if (session.getAttribute(\"user\") != null) {\n s = (Staff) session.getAttribute(\"user\");\n }\n // lam sao get gia tri cua bien moi dang nhap.(=>dựa vào sesstion, login xong get value len, use attribute.)\n String manv = \"\";\n if (s != null) {\n manv = s.getMaNV(); // null nè, h moi get dc ne.\n s.UpdateStaff(manv, ho, ten, ngaysinh, sex, cmnd, status);\n url = \"/success.jsp\";\n } else {\n // do something!\n }\n RequestDispatcher rd3 = getServletContext().getRequestDispatcher(url);\n rd3.forward(request, response);\n break;\n }\n\n // \n }",
"void markAsUserSession();",
"@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n HttpSession session = request.getSession();\n session.invalidate();\n return ViewManager.INDEX_PAGE_PASS;\n }",
"@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tthis.session=map;\n\t\t\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n HttpSession session = request.getSession(true);\n \n if(request.getParameter(\"Submit\") != null)\n {\n // Preleva i dati inviati e controlla se sono giusti\n String username = request.getParameter(\"nome\");\n String pwd = request.getParameter(\"pw\");\n \n //se è un cliente\n utenteCliente client = ClienteFactory.getInstance().getClient(username, pwd);\n \n if(client.getUsername().equals(username) && client.getPwd().equals(pwd))\n {\n session.setAttribute(\"loggedIn\", true);\n session.setAttribute(\"username\", client);\n session.setAttribute(\"id\", client.getId());\n session.setAttribute(\"logVenditore\", false);\n session.setAttribute(\"logCliente\", true);\n \n request.setAttribute(\"cliente\", client);\n request.getRequestDispatcher(\"cliente.jsp\").forward(request, response);\n \n \n }\n \n // se è un venditore\n utenteVenditore vend = VenditoreFactory.getInstance().getVenditore(username, pwd);\n if(vend.getUser().equals(username) && vend.getPwd().equals(pwd))\n {\n session.setAttribute(\"loggedIn\", true);\n session.setAttribute(\"username\", vend);\n session.setAttribute(\"idV\", vend.getId());\n session.setAttribute(\"logVenditore\", true);\n session.setAttribute(\"logCliente\", false);\n \n request.setAttribute(\"venditore\", vend);\n request.getRequestDispatcher(\"venditore.jsp\").forward(request, response);\n \n \n } \n \n //se non sono autenticato\n request.setAttribute(\"error\", true);\n \n }\n //Nel caso l’utente non sia autenticato, deve mostrare il form di login\n request.getRequestDispatcher(\"login.jsp\").forward(request, response);\n\n }",
"@Override\r\n\tpublic void setSession(Map<String, Object> map) {\r\n\t\t sessionMap=(SessionMap<String, Object>)map;\r\n\t\t\r\n\t}",
"@RequestMapping(value = \"/session_form.htm\",method = RequestMethod.GET)\r\n\tpublic String sessionForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\tUserController.protectRoute(session,response);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}",
"@RequestMapping(value=\"/continue\")\n\tpublic String continueFromSession(ModelMap modelMap, HttpSession session) {\n\t\tMap<Long, SaleOrReturnOrderLine> orderLineMap = (Map<Long, SaleOrReturnOrderLine>) session.getAttribute(\"orderLineMap\");\n\t\tSaleOrReturn saleOrReturn = (SaleOrReturn) session.getAttribute(\"saleOrReturn\");\n\n\t\t//Place into session\n\t\tsession.setAttribute(\"saleOrReturn\", saleOrReturn);\n\t\tsession.setAttribute(\"orderLineMap\", orderLineMap);\n\n\t\t//Place into model\n\t\tfillModel(saleOrReturn, new StockItemSearchBean(), modelMap, orderLineMap);\n\t\treturn editOrCreateView(saleOrReturn);\n\t}",
"private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }",
"protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\r\n\t\t\r\n\t\tSystem.out.println(\"로그인기능을 수행하겠습니다\");\r\n\r\n\t\trequest.setCharacterEncoding(\"euc-kr\");\r\n\r\n\t\tString id = request.getParameter(\"id\");\r\n\t\tString pw = request.getParameter(\"pw\");\r\n\t\t\r\n\t\tSystem.out.println(id);\r\n\t\tSystem.out.println(pw);\r\n\t\t\r\n\r\n\t\tmemberDAO dao = new memberDAO();\r\n\t\tmemberVO vo = dao.Login(id, pw);\r\n\r\n\t\t\tSystem.out.println(vo);\r\n\r\n\t\t\tHttpSession session = request.getSession();\r\n\r\n\t\t\tsession.setAttribute(\"vo\", vo);\r\n\r\n\t\t\t\r\n\t\t\tresponse.sendRedirect(\"home.jsp\");\r\n\t\t\t\r\n\t\t}",
"@Override\n protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n Locale locale = request.getLocale();\n setBundle(ResourceBundle.getBundle(\"text\", locale));\n\n HttpSession session = request.getSession(false);\n\n String path = request.getServletPath();\n String destination;\n\n switch (path) {\n\n case \"/loginpage\":\n LOGGER.log(Level.SEVERE, \"Session is {0}\", session);\n\n boolean loggedIn;\n try {\n loggedIn = (boolean) session.getAttribute(\"loggedIn\");\n if (loggedIn) {\n path = (String) session.getAttribute(\"home\");\n }\n } catch (Exception e) {\n break;\n }\n\n break;\n\n case \"/index\":\n path = \"index.jsp\";\n try {\n request.getRequestDispatcher(path).forward(request, response);\n } catch (IOException | ServletException e) {\n LOGGER.log(Level.SEVERE, \"Request dispatch failed\");\n }\n return;\n\n case \"/login\":\n\n /*if (session == null || ((new Date().getTime() - session.getLastAccessedTime()) > 1800000)) {*/\n String username = request.getParameter(\"username\");\n String password = request.getParameter(\"password\");\n Map<PersonDetails, PersonRoleDetail> personToPersonRoleMap;\n try {\n personToPersonRoleMap = personService.retrievePerson(username, password);\n } catch (MilesException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n response.setContentType(\"text/html;charset=UTF-8\");\n response.getWriter().write(getBundle().getString(ex.getCode()));\n LOGGER.log(Level.INFO, getBundle().getString(ex.getCode()));\n return;\n\n }\n\n PersonDetails person = null;\n PersonRoleDetail personRole = null;\n for (Map.Entry<PersonDetails, PersonRoleDetail> entryKey : personToPersonRoleMap.entrySet()) {\n person = entryKey.getKey();\n personRole = entryKey.getValue();\n break;\n }\n\n HashMap<String, Boolean> rightsMaps = new HashMap<>();\n\n if (person != null && personRole != null) {\n session = request.getSession(true);\n session.setAttribute(\"loggedIn\", true);\n session.setAttribute(\"person\", person);\n session.setAttribute(\"user\", person.getName());\n session.setAttribute(\"personRole\", personRole);\n\n switch (personRole.getPersonRole()) {\n case \"Farmer\":\n rightsMaps.clear();\n rightsMaps.put(\"farmerSession\", true);\n session.setAttribute(\"home\", \"/farmer\");\n session.setAttribute(\"userTitle\", \": Farmer\");\n break;\n\n case \"Agro-dealer\":\n rightsMaps.clear();\n rightsMaps.put(\"agroDealerSession\", true);\n session.setAttribute(\"home\", \"/agro_dealer\");\n session.setAttribute(\"userTitle\", \": Agro-dealer\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"WAO (Ward Extension Officer)\":\n rightsMaps.clear();\n rightsMaps.put(\"waoSession\", true);\n session.setAttribute(\"home\", \"/ward\");\n session.setAttribute(\"userTitle\", \": Ward Agricultural Officer(WAO)\");\n session.setAttribute(\"locationLabel\", \"ward\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards(person.getLocation().getSubCounty().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"KALRO Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"kalroSession\", true);\n session.setAttribute(\"home\", \"/kalro\");\n session.setAttribute(\"userTitle\", \": KALRO Officer\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"AGMARK Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"agmarkSession\", true);\n session.setAttribute(\"home\", \"/agmark\");\n session.setAttribute(\"userTitle\", \": AGMARK Officer\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"County Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"countyDeskOfficerSession\", true);\n session.setAttribute(\"home\", \"/county\");\n session.setAttribute(\"userTitle\", \": County Desk Officer\");\n session.setAttribute(\"locationLabel\", \"county\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties(person.getLocation().getCounty().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"Sub-county Officer\":\n rightsMaps.clear();\n rightsMaps.put(\"subCountyDeskOfficerSession\", true);\n session.setAttribute(\"home\", \"/sub_county\");\n session.setAttribute(\"userTitle\", \": Sub-county Agricultural Officer(SCAO)\");\n session.setAttribute(\"locationLabel\", \"sub-county\");\n\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties(person.getLocation().getCounty().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n MilesDebugger.debug(session.getAttribute(\"personRoles\"));\n } catch (Exception e) {\n }\n break;\n\n case \"Regional Coordinator\":\n rightsMaps.clear();\n rightsMaps.put(\"regionalCoordinatorSession\", true);\n session.setAttribute(\"home\", \"/region\");\n session.setAttribute(\"userTitle\", \": Regional Project Coordinator\");\n session.setAttribute(\"locationLabel\", \"region\");\n\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties(person.getLocation().getCounty().getRegion().getId()));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n case \"National Officer\":\n case \"System Admin\":\n\n rightsMaps.clear();\n session.setAttribute(\"home\", \"/head\");\n\n if (personRole.getPersonRole().equals(\"National Officer\")) {\n rightsMaps.put(\"nationalOfficerSession\", true);\n session.setAttribute(\"userTitle\", \": PCU Project Coordinator\");\n session.setAttribute(\"locationLabel\", \"country\");\n } else {\n rightsMaps.put(\"systemAdminSession\", true);\n session.setAttribute(\"userTitle\", \": System Admin\");\n session.setAttribute(\"locationLabel\", \"country\");\n }\n\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRoles());\n } catch (Exception e) {\n }\n\n break;\n\n case \"Equity\":\n rightsMaps.clear();\n rightsMaps.put(\"equityPersonnelSession\", true);\n session.setAttribute(\"home\", \"/equity\");\n session.setAttribute(\"userTitle\", \": Equity Agent\");\n session.setAttribute(\"locationLabel\", \"service\");\n try {\n session.setAttribute(\"counties\", countyService.retrieveCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"subCounties\", subCountyService.retrieveSubCounties());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during sub-counties retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"wards\", wardService.retrieveWards());\n } catch (MilesException ex) {\n LOGGER.log(Level.SEVERE, \"An error occurred during wards retrieval\", ex);\n return;\n }\n\n try {\n session.setAttribute(\"personRoles\", personRoleService.retrievePersonRolesNotAdminOrPcu());\n } catch (Exception e) {\n }\n break;\n\n default:\n rightsMaps.clear();\n }\n\n }\n\n session.setAttribute(\"rightsMaps\", rightsMaps);\n\n availApplicationAttributes();\n\n return;\n\n case \"/home\":\n LOGGER.log(Level.INFO, \"Directing user to home\");\n path = (String) session.getAttribute(\"home\");\n LOGGER.log(Level.SEVERE, \"Path is : {0}\", path);\n\n break;\n\n case \"/logout\":\n if (session != null) {\n session.invalidate();\n }\n\n path = \"index.jsp\";\n LOGGER.log(Level.SEVERE, \"Path is : {0}\", path);\n request.getRequestDispatcher(path).forward(request, response);\n\n return;\n\n case \"/load\":\n\n availApplicationAttributes();\n\n return;\n\n }\n\n availApplicationAttributes();\n destination = \"/WEB-INF/views/pages\" + path + \".jsp\";\n\n LOGGER.log(Level.INFO, \"Request dispatch to forward to: {0}\", destination);\n try {\n request.getRequestDispatcher(destination).forward(request, response);\n } catch (ServletException | IOException e) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n response.setContentType(\"text/html;charset=UTF-8\");\n response.getWriter().write(getBundle().getString(\"redirection_failed\") + \"<br>\");\n LOGGER.log(Level.INFO, getBundle().getString(\"redirection_failed\"));\n }\n }",
"public String cargarDatosLogeado() {\n\t\tif (session != null) {\n\t\t\ttry {\n\t\t\t\tSubPostulante usr = managergest.postulanteByID(session\n\t\t\t\t\t\t.getIdUsr());\n\t\t\t\tpos_id = usr.getPosId();\n\t\t\t\tpos_nombre = usr.getPosNombre();\n\t\t\t\tpos_apellido = usr.getPosApellido();\n\t\t\t\tpos_direccion = usr.getPosDireccion();\n\t\t\t\tpos_correo = usr.getPosCorreo();\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = usr.getPosTelefono();\n\t\t\t\tpos_celular = usr.getPosCelular();\n\t\t\t\tpos_institucion = usr.getPosInstitucion();\n\t\t\t\tpos_gerencia = usr.getPosGerencia();\n\t\t\t\tpos_area = usr.getPosArea();\n\t\t\t\tedicion = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tMensaje.crearMensajeWARN(\"Error al cargar sus datos personales\");\n\t\t\t}\n\t\t} else {\n\t\t\tpos_id = \"\";\n\t\t\tpos_nombre = \"\";\n\t\t\tpos_apellido = \"\";\n\t\t\tpos_direccion = \"\";\n\t\t\tpos_correo = \"\";\n\t\t\tpos_password = \"\";\n\t\t\tpos_telefono = \"\";\n\t\t\tpos_celular = \"\";\n\t\t\tpos_institucion = \"\";\n\t\t\tpos_gerencia = \"\";\n\t\t\tpos_area = \"\";\n\t\t\tedicion = false;\n\t\t}\n\t\treturn \"uperfil?faces-redirect=true\";\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n String mensaje ; \r\n String usuarioCliente = request.getParameter(\"uname\");\r\n String passwordCliente = request.getParameter(\"psw\");\r\n \r\n Clientes cli = new Clientes();\r\n Cliente c = new Cliente();\r\n Conexion cnn = Conexion.getInstance();\r\n \r\n c = cli.ValidaLogin(usuarioCliente);\r\n \r\n \r\n if (c.getPasswd() == passwordCliente) {\r\n \r\n HttpSession miSession = request.getSession(true);\r\n miSession.setAttribute(\"cliente\", c);\r\n response.sendRedirect(\"pedido.jsp\");\r\n \r\n }\r\n else{\r\n mensaje= \"Clave erronea\";\r\n HttpSession miSession = request.getSession(true);\r\n miSession.setAttribute(\"mensaje\", mensaje);\r\n response.sendRedirect(\"Exito.jsp\");\r\n }\r\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n Usuario usuario = new Usuario();\n DaoUsuario usu = new DaoUsuario();\n Aluguel aluguel = new Aluguel();\n DaoAluguel alu = new DaoAluguel();\n \n try{\n String cod = (String) request.getSession().getAttribute(\"usu_cod\");\n usuario = usu.buscar(Integer.parseInt(cod));\n } catch (Exception erro) {\n request.getSession().setAttribute(\"Mensagem\", \"Sua sessão expirou, faça login novamente;\");\n request.getSession().setAttribute(\"Link\", \"../index.jsp\");\n response.sendRedirect(\"Status_Imovel.jsp\");\n }\n \n for (int i = 0; i < alu.listar().size(); i++) {\n\n if (alu.listar().get(i).getAlu_usu_cod() == usuario.getUsu_cod()) {\n aluguel=alu.buscar(alu.listar().get(i).getAlu_cod());\n aluguel.setAlu_pagamento(false);\n alu.altera(aluguel);\n \n \n }\n }\n \n\n \n\n \n\n request.getSession().setAttribute(\"Mensagem\", \"Todos os alugueis foram resetados.\");\n request.getSession().setAttribute(\"Link\", \"Painel_Aluguel.jsp\");\n response.sendRedirect(\"Views/Status_Imovel.jsp\");\n\n }\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.getSession().invalidate(); // destroy session\n\n response.sendRedirect(request.getContextPath() + \"/index.jsp\");\n }",
"@Override\n public String execute(RequestWrapper wrapper) throws SQLException {\n HttpSession session = wrapper.getSession();\n session.invalidate();\n return \"/jsp/index.jsp\";\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n paamelingsObjekt skjema = new paamelingsObjekt(request);\n\n if(skjema.isAllInputGyldig()){\n Bruker bruker = new Bruker(request);\n boolean lagtTil = brukerEAO.leggTilbruker(bruker);\n //sjekker at mobil nummeret ikke er registrert\n if(!lagtTil) {\n skjema.setTlfNrFeilmelding(\"Telefon nummer er allerede registrert\");\n skjema.setMobil(\"\");\n request.getSession().setAttribute(\"skjema\", skjema);\n response.sendRedirect(\"./paamelding\");\n return;\n }\n HttpSession sesjon = request.getSession(false);\n if(sesjon != null) {\n sesjon.invalidate();\n }\n sesjon = request.getSession(true);\n sesjon.setMaxInactiveInterval(loginTime);\n\n //setter attributter til sesjonen slik at det kan hentes og vises i paameldingsbekreftelse servleten\n sesjon.setAttribute(\"bruker\", bruker);\n sesjon.setAttribute(\"fornavn\", bruker.getFornavn());\n sesjon.setAttribute(\"etternavn\", bruker.getEtternavn());\n sesjon.setAttribute(\"mobil\", bruker.getMobil());\n sesjon.setAttribute(\"kjonn\", bruker.getKjonn());\n response.sendRedirect(\"./paameldingsBekreftelse\");\n }else{\n skjema.settOppFeilmeldinger();\n request.getSession().setAttribute(\"skjema\", skjema);\n response.sendRedirect(\"./paamelding\");\n }\n\n\n }",
"protected void logar(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString email = null;\r\n\t\tString senha = null;\r\n\t\tif(request.getParameter(\"email\") != null) {\r\n\t\t\t email = request.getParameter(\"email\");\r\n\t\t\t senha = request.getParameter(\"senha\");\r\n\t\t} else if (request.getSession().getAttribute(\"email\") != null) {\r\n\t\t\temail = (String) request.getSession().getAttribute(\"email\");\r\n\t\t\tsenha = (String) request.getSession().getAttribute(\"senha\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tUsuarioServico u = new UsuarioServico();\r\n\t\ttry {\r\n\t\t\r\n\t\t\tBoolean login = u.login(email, senha);\r\n\t\t\tif (login) {\r\n\t\t\t\tUsuario user = new Usuario();\r\n\t\t\t\tuser.setEmail(email);\r\n\t\t\t\tuser.setSenha(senha);\r\n\t\t\t\tEndereco e = new Endereco();\r\n\t\t\t\tTipoUsuario tp = new TipoUsuario();\r\n\t\t\t\t\r\n\t\t\t\tuser = u.listar(user);\r\n\t\t\t\tint id_endereco = user.getTipo_usuario().getId_tipo_usuario();\r\n\t\t\t\ttp = u.listarTipoUser(user.getTipo_usuario().getId_tipo_usuario());\r\n\t\t\t\tString tipo = tp.getTipo_usuario();\r\n\t\t\t\te = u.listarEndereco(user.getEndereco().getId_endereco());\r\n\t\t\t\tint idBairro = e.getBairro().getId_bairro();\r\n\t\t\t\tint idCidade = e.getCidade().getId_cidade();\r\n\t\t\t\tint idEstado = e.getEstado().getId_UF();\r\n\t\t\t\tHttpSession sessao = request.getSession(true);\r\n\t\t\t\tsessao.setAttribute(\"nome\", user.getNome());\r\n\t\t\t\tsessao.setAttribute(\"id\", user.getId_usuario());\r\n\t\t\t\trequest.getSession().setAttribute(\"sobrenome\", user.getSobrenome());\r\n\t\t\t\trequest.getSession().setAttribute(\"cpf\", user.getCpf());\r\n\t\t\t\trequest.getSession().setAttribute(\"email\", user.getEmail());\r\n\t\t\t\trequest.getSession().setAttribute(\"idEndereco\", id_endereco);\r\n\t\t\t\trequest.getSession().setAttribute(\"idBairro\", idBairro);\r\n\t\t\t\trequest.getSession().setAttribute(\"idCidade\", idCidade);\r\n\t\t\t\trequest.getSession().setAttribute(\"idEstado\", idEstado);\r\n\t\t\t\t\r\n\t\t\t\trequest.getSession().setAttribute(\"cep\", e.getCep());\r\n\t\t\t\trequest.getSession().setAttribute(\"rua\", e.getRua());\r\n\t\t\t\trequest.getSession().setAttribute(\"bairro\", e.getBairro().getNome_Bairro());\r\n\t\t\t\trequest.getSession().setAttribute(\"cidade\", e.getCidade().getNome_cidade());\r\n\t\t\t\trequest.getSession().setAttribute(\"estado\", e.getEstado().getUF());\r\n\t\t\t\trequest.getSession().setAttribute(\"numero\", e.getNumero());\r\n\t\t\t\trequest.getSession().setAttribute(\"complemento\", e.getComplemento());\r\n\t\t\t\tList<Contato> c = new ArrayList<>();\r\n\t\t\t\tc = u.buscar(user.getId_usuario());\r\n\t\t\t\tList<Pedido> pl = new ArrayList<>();\r\n\t\t\t\tList<ItemPedido> itemPedido = new ArrayList<>();\r\n\t\t\t\tPedidoServico ps = new PedidoServico();\r\n\t\t\t\t\r\n\t\t\t\titemPedido = ps.buscaItem();\r\n\t\t\t\t\r\n\t\t\t\tpl = ps.buscaPedido(user.getId_usuario());\r\n\t\t\t\tint pedidoqtd = pl.size();\r\n\t\t\t\t\r\n\t\t\t\tList<ItemPedido> carrinho = new ArrayList<>();\r\n\t\t\t\tDouble valor = 0.0;\r\n\t\t\t\tint qtd = 0;\r\n\t\t\t\tif(tipo == \"Funcionário\") {\r\n\t\t\t\t\tsessao.setAttribute(\"tipo\", true);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tsessao.setAttribute(\"item\", itemPedido);\r\n\t\t\t\tsessao.setAttribute(\"contato\", c);\r\n\t\t\t\tsessao.setAttribute(\"pedido\", pl);\r\n\t\t\t\tsessao.setAttribute(\"pedidoqtd\", pedidoqtd);\r\n\t\t\t\tsessao.setAttribute(\"carrinho\", carrinho);\r\n\t\t\t\tsessao.setAttribute(\"valor\", valor);\r\n\t\t\t\tsessao.setAttribute(\"qtd\", qtd);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tresponse.sendRedirect(\"home\");\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\r\n\t\t\t\tresponse.sendRedirect(\"cadastro\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\t\t// 로그인 유효성 검사\r\n\t\tHttpSession session = request.getSession();\r\n\t\tif(session.getAttribute(\"loginClient\") != null) {\r\n\t\t\tresponse.sendRedirect(request.getContextPath()+\"/IndexController\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/view/client/insertClient.jsp\").forward(request, response);\r\n\t}",
"public final void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {\n\t\n\t// if false will not create new cookie\n\t// HttpSession session = request.getSession(false);\n\t// session stores in cookies or in response.encodeURL in the form action\n\n\t// cookie in localhost name is Cookie: (name/value) JSESSIONID=79648B6603709388645FDF61F374469C\n\t// get value from firefox or w3m M-k\n\n\t// in tomcat/logs will view the log data \n\t//context.log(\"ahmad session id is = \"+ session.getId());\n\n\tresponse.setContentType(\"text/html\");\n\tPrintWriter out = response.getWriter();\n\n\tHttpSession session = request.getSession(false);// true default\n\t////////\tHttpSession session = request.getSession(false);\n\tString name = \"ali\";\n\n\t// because the session always not null, so i need to check something is null or not\n\t//\tString myName=(String) session.getAttribute(\"name\");\n\t///////\t if (session == null) {\n\t if (session==null) {\n\t out.println(\" session attribue is new , so new user \");\t \n \t session = request.getSession(true);\n \t } else {\n\t out.println(\"old session ,so welcome back user \");\t \n\t }\n\t session.setAttribute(\"name\",name);\n\n\t// if ((session.isNew())) {\n\t// //\tif ((session == null)) {\n\t// //\tif ((getName == null)) {\n // //\tout.println(\" session is new, welcome \");\n\t// out.println(\" session == new \");\n\t// //\tout.println(\" session == null \");\n\t// }else {\n\t// session.setAttribute(\"name\",name);\n\t// //\tgetName =(String) session.getAttribute(\"name\");\n\t// String getName =(String) session.getAttribute(\"name\");\n\t// out.println(\" session scope attribute = \"+ getName +\" <br/>\");\n\t// out.println(\" test session \"+ session.getId()+\" <br/>\");\n\t// out.println(\" <br/> ============ <br/>\" );\n\t// out.println(\" int x = \"+ (x++));\n\t// }\n\n\n\n\t// work only if the cookies are disabled\n // out.println(response.encodeURL(\"hi\"));\n\t out.println(\" <br/> ========== <br/> \");\n\t out.println(response.encodeURL(\"encodeURL\")); //\n\t out.println(\" <br/> ========== <br/> \");\n\t //\t out.println(response.encodeRedirectURL(\"encodeRedirectURL\"));\n\t out.println(\"<a href=\"+ response.encodeURL(\"http://www.sosox2.com\") +\">click me1</a>\");\n\t out.println(\"<a href=\"+ response.encodeRedirectURL(\"http://www.sosox2.com\") +\">click me2</a>\");\n\t response.sendRedirect(\"/aaa/bbb\");\n\t response.encodeRedirectURL(\"aaa/bbb\");\n }",
"public void redirectToHomeSameSession() {\r\n\t\t\r\n\t\ttry{\r\n\t\twebAppDriver.get(baseUrl);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void startSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n DBAccess dbAccess = DBAccess.getInstance();\n PreparedStatement pstm;\n PrintWriter out = response.getWriter();\n HttpSession session = request.getSession();\n ObjectMapper objM = new ObjectMapper();\n PropertiesReader props = PropertiesReader.getInstance();\n UserLogin userL = objM.readValue(request.getReader().lines().collect(Collectors.joining(System.lineSeparator())), UserLogin.class);\n String encryptedPass = NitroEncrypted.getNitroPassword(userL.getPassword());\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n\n try {\n Connection con = dbAccess.createConnection();\n pstm = con.prepareStatement(props.getValue(\"queryLogin\"), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n pstm.setString(1, userL.getUser());\n pstm.setString(2, encryptedPass);\n ResultSet rs = pstm.executeQuery();\n if (rs.next()){\n\n if (rs.getInt(\"type_id\") == 1){\n System.out.println(props.getValue(\"isAdmin\") + \": \" + userL.getUser());\n res.setMessage(\"Correct Username and Password!\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName(rs.getString(props.getValue(\"retName\")));\n loginData.setId(rs.getInt(props.getValue(\"retID\")));\n res.setData(loginData);\n AttrSession.setAttribute(session, \"name\", rs.getString(props.getValue(\"retName\")));\n AttrSession.setAttribute(session, \"id\", rs.getInt(props.getValue(\"retID\")));\n AttrSession.setAttribute(session, \"admin\", true);\n session.setMaxInactiveInterval((3600 * 24));\n }else{\n System.out.println(props.getValue(\"isnotAdmin\") + \": \" + userL.getUser());\n res.setMessage(\"Correct Username and Password!\");\n res.setStatus(200);\n loginData.setAdmin(false);\n loginData.setName(rs.getString(props.getValue(\"retName\")));\n loginData.setId(rs.getInt(props.getValue(\"retID\")));\n res.setData(loginData);\n AttrSession.setAttribute(session, \"name\", rs.getString(props.getValue(\"retName\")));\n AttrSession.setAttribute(session, \"id\", rs.getInt(props.getValue(\"retID\")));\n AttrSession.setAttribute(session, \"admin\", false);\n session.setMaxInactiveInterval((3600 * 24));\n }\n } else{\n System.out.println(\"This username or password entered isn't correct\");\n res.setMessage(\"This username or password entered isn't correct\");\n res.setStatus(404);\n loginData.setAdmin(false);\n loginData.setName(\"\");\n res.setData(loginData);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }finally {\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }\n\n }",
"public static void loadSession(Session session){\n currentSession = session;\n }",
"@Override\r\n public void onModuleLoad() {\r\n //register auto refreshing timer\r\n// autoRefresh = new Timer() {\r\n// @Override\r\n// public void run() {\r\n// Shared.EVENT_BUS.fireEvent(new UIRefreshEvent());\r\n// }\r\n// };\r\n// autoRefresh.scheduleRepeating(AUTO_REFRESH_INTERVAL);\r\n \r\n \r\n //read cookies to recover previous session\r\n if (cookie.getSeesionID().isEmpty()) {\r\n //create new session\r\n newSession();\r\n }else{\r\n //try to rebind the old session\r\n Shared.RPC.getSession(cookie.getSeesionID(), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s == null){\r\n //the session is absent on server\r\n Info.display(\"Expired\", \"Your session is expired, please sign in again\");\r\n newSession();\r\n }else{\r\n Shared.MY_SESSION = s; \r\n //try to auto sign in using saved accountKey\r\n if (cookie.getAccountKey(s).isEmpty() || s.getAccount() == null){\r\n //not to keep signed in / or not yet signed in\r\n //do nothing, wait for signing in\r\n }else{\r\n //try to sign in\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGN_IN)); //didn't set the account key because setting it result in overwrite the cookies\r\n Shared.RPC.signInAndBindSession(s.getAccount(), s, cookie.getAccountKey(s), new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n //login successful\r\n Shared.MY_SESSION = s;\r\n //dispatch sign in event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_IN));\r\n } else {\r\n Info.display(\"Incorrect\", \"Please check your password and try again\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n }); \r\n }\r\n }\r\n }\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n \r\n\r\n\r\n \r\n \r\n res.common_css().ensureInjected(); \r\n Widget loginpage = new LoginPage();\r\n RootPanel.get().add(loginpage);\r\n\r\n //add event handler for SignEvent event\r\n Shared.EVENT_BUS.addHandler(SignEvent.TYPE, new SignEvent.SignEventHandler(){\r\n @Override\r\n public void onSign(SignEvent event){\r\n //process sign_in\r\n //process signed_in\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_IN)) {\r\n //write cookies if keep signed in\r\n if (event.getAccountKey() != null && !event.getAccountKey().isEmpty()) {\r\n cookie.setAccountKey(Shared.MY_SESSION, event.getAccountKey());\r\n }\r\n //already signed in, load workspace\r\n RootPanel.get().clear();\r\n Widget workspace = new Workspace().asWidget();\r\n RootPanel.get().add(workspace); \r\n Info.display(\"Welcome\", \"Signed in as \" + Shared.MY_SESSION.getAccount().getFullName());\r\n }\r\n //process sign_out\r\n if (event.getAction().equals(SignEvent.Action.SIGN_OUT)){\r\n String accountKey = cookie.getAccountKey(Shared.MY_SESSION);\r\n Shared.RPC.signOutAndDetachSession(Shared.MY_SESSION, accountKey, new AsyncCallback<Session>() {\r\n @Override\r\n public void onSuccess(Session s) {\r\n if (s != null) {\r\n Shared.MY_SESSION = s;\r\n //sign out seems OK on server side, dispatch SIGNED_OUT event\r\n Shared.EVENT_BUS.fireEvent(new SignEvent(SignEvent.Action.SIGNED_OUT)); //WARN: don't dispatch SIGN_OUT avoiding deadlock call\r\n } else {\r\n Info.display(\"Error\", \"Account is already signed out or database error\");\r\n }\r\n }\r\n\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Info.display(\"Error\", caught.getMessage());\r\n }\r\n });\r\n }\r\n //process signed_out\r\n if (event.getAction().equals(SignEvent.Action.SIGNED_OUT)){\r\n //delete cookies\r\n cookie.discardCookie(Shared.MY_SESSION); \r\n //return UI to welcome status\r\n RootPanel.get().clear();\r\n RootPanel.get().add(new LoginPage()); \r\n Info.display(\"See you\", \"You are now signed out!\");\r\n }\r\n }\r\n });\r\n \r\n \r\n }",
"public static void getSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n PrintWriter out = response.getWriter();\n ObjectMapper objM = new ObjectMapper();\n HttpSession session = request.getSession();\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n if (session.isNew()){\n System.out.println(\"Session not started!\");\n res.setMessage(\"Session not started!\");\n loginData.setAdmin(true);\n res.setStatus(403);\n loginData.setName(\"\");\n res.setData(loginData);\n session.invalidate();\n\n } else {\n System.out.println(\"Session started\");\n res.setMessage(\"Session started\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName((String) session.getAttribute(\"name\"));\n res.setData(loginData);\n }\n\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }",
"public void recuperoListeUtenteloggato(HttpServletRequest request, HttpServletResponse response){\n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n HttpSession session = request.getSession();\n \n ShoppingListDAO shoppingListDAO = new MySQLShoppingListDAOImpl();\n SharingDAO sharingDAO = new MySQLSharingDAOImpl();\n ShoppingListCategoryDAO shoppingListCategoryDAO = new MySQLShoppingListCategoryDAOImpl();\n \n //elimino shopping list anonime scadute\n shoppingListDAO.deleteExpiredShoppingLists();\n \n if(session.getAttribute(\"emailSession\") != null){\n \n // START: recupero delle liste che appartengono all'utente loggato\n \n List lists = shoppingListDAO.getShoppingListsByOwner((String)session.getAttribute(\"emailSession\"));\n String[][] searchListResult = new String[lists.size()][4];\n\n for(int i=0; i<lists.size(); i++){\n searchListResult[i][0] = ((ShoppingList)(lists.get(i))).getName();\n searchListResult[i][1] = Integer.toString(((ShoppingList)(lists.get(i))).getLID());\n searchListResult[i][2] = ((ShoppingListCategory)(shoppingListCategoryDAO.getShoppingListCategory(((ShoppingList)(lists.get(i))).getLCID()))).getName();\n List listaCondivisa = sharingDAO.getAllEmailsbyList(Integer.parseInt(searchListResult[i][1]));\n if (listaCondivisa.isEmpty()){\n searchListResult[i][3] = Integer.toString(0);\n } else {\n searchListResult[i][3] = Integer.toString(1);\n }\n }\n\n session.setAttribute(\"ListUserSession\", searchListResult);\n session.setAttribute(\"ListUserSessionSize\", lists.size());\n\n // END: recupero delle liste che appartengono all'utente loggato\n \n // START: recupero delle liste condivise dell'utente loggato\n \n List sharingLists = sharingDAO.getAllListByEmail((String)session.getAttribute(\"emailSession\"));\n ShoppingList tmp = null;\n String[][] sharingListResult = new String[sharingLists.size()][3];\n\n for(int i=0; i<sharingLists.size(); i++){\n\n tmp = shoppingListDAO.getShoppingList(((Sharing)(sharingLists.get(i))).getLID());\n\n sharingListResult[i][0] = tmp.getName();\n sharingListResult[i][1] = Integer.toString(tmp.getLID());\n sharingListResult[i][2] = (shoppingListCategoryDAO.getShoppingListCategory(tmp.getLCID())).getName();\n } \n\n session.setAttribute(\"SharingListUserSession\", sharingListResult);\n session.setAttribute(\"SharingListUserSessionSize\", sharingLists.size());\n \n // END: recupero delle liste condivise dell'utente loggato \n \n } else {\n \n int cookieID;\n \n if(session.getAttribute(\"cookieIDSession\") == null){\n\n MyCookieDAO riverCookieDAO = mySqlFactory.getMyCookieDAO();\n MyCookieDAO myCookieDAO = new MySQLMyCookieDAOImpl();\n\n //cancello eventuali cookie scaduti\n List<MyCookie> cookieScaduti = myCookieDAO.deleteDBExpiredCookies();\n for(int i=0; i<cookieScaduti.size(); i++){\n myCookieDAO.deleteCookieByCookieID(cookieScaduti.get(i).getCookieID());\n }\n\n //Creo cookie\n Cookie cookie = new Cookie(\"FridayAnonymous\", Integer.toString(LastEntryTable(\"cookieID\", \"cookies\")));\n cookie.setMaxAge(-1);\n cookieID = Integer.parseInt((String)cookie.getValue());\n\n Long Deadline = new Timestamp(System.currentTimeMillis()).getTime()+1800*1000;\n\n myCookieDAO.createCookie(new MyCookie(LastEntryTable(\"cookieID\", \"cookies\"), 0, null, Deadline));\n session.setAttribute(\"cookieIDSession\", Integer.parseInt(cookie.getValue()));\n response.addCookie(cookie);\n \n } else {\n cookieID = (int)session.getAttribute(\"cookieIDSession\");\n }\n \n ShoppingList shoppingList = shoppingListDAO.getAnonymusShoppingList(cookieID);\n String[][] ListResult = null;\n\n if(shoppingList != null){\n\n ListResult = new String[1][3];\n ListResult[0][0] = shoppingList.getName();\n ListResult[0][1] = Integer.toString(shoppingList.getLID());\n ListResult[0][2] = (shoppingListCategoryDAO.getShoppingListCategory(shoppingList.getLCID())).getName();\n session.setAttribute(\"ListUserSessionSize\", 1);\n\n } else {\n ListResult = new String[0][3];\n session.setAttribute(\"ListUserSessionSize\", 0);\n }\n \n session.setAttribute(\"ListUserSession\", ListResult);\n \n }\n \n \n }",
"protected void service(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String login = request.getParameter(\"login\");\n String senha = request.getParameter(\"senha\");\n UsuarioDAO dao = new UsuarioDAO();\n if (dao.checkLogin(login, senha)) {\n HttpSession session = request.getSession(true);\n session.setAttribute(\"login\", login);\n Cookie[] cookies = request.getCookies();\n Cookie cookie = null;\n for (int i = 0; cookies != null && i < cookies.length; i++) {\n Cookie c = cookies[i];\n if (c.getName().equals(\"myapp.login\")) {\n cookie = c;\n cookie.setValue(cookie.getValue().replace(\"@\" + login, \"\"));\n cookie.setValue(cookie.getValue().replace(login + \"@\", \"\"));\n cookie.setValue(login + \"@\" + cookie.getValue());\n break;\n }\n }\n if (cookie == null) {\n cookie = new Cookie(\"myapp.login\", login);\n }\n cookie.setMaxAge(Integer.MAX_VALUE);\n response.addCookie(cookie);\n RequestDispatcher rd = request.getRequestDispatcher(\"WEB-INF/TheGame.jsp\");\n rd.forward(request, response);\n } else {\n request.setAttribute(\"msg\", \"<span class=\\\"alert label\\\">Login ou senha inválida</span>\");\n RequestDispatcher rd = request.getRequestDispatcher(\"index.jsp\");\n rd.forward(request, response);\n }\n }",
"protected void setRolSession(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\ttry {\n\t\t\tContactLogic contactLogic \t= new ContactLogic();\n\t \t\n\t\t\tContact contact = contactLogic.findByUser(request.getRemoteUser());\n\t\t\t\n\t\t\tif (contact != null) {\n\t\t\t\t\n\t\t\t\tif (request.getSession().getAttribute(\"plugins\") == null) {\n\t\t\t\t\t\n\t\t\t\t\tPluginLogic pluginLogic = new PluginLogic();\n\t\t\t\t\trequest.getSession().setAttribute(\"plugins\", pluginLogic.getPlugins(contact));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tEmployeeLogic employeeLogic = new EmployeeLogic();\n\t\t\t\tList<Employee> employees = employeeLogic.consEmployeesByUser(contact);\n\t\t\t\t\n\t\t\t\tif (employees.isEmpty()) { // Any user match\n\t\t\t\t\trequest.setAttribute(\"error\", getResourceBundle(request).getString(\"msg.error.without_permission\"));\n\t\t\t\t\trequest.setAttribute(\"notLogin\", true);\n\t\t\t\t\t\n\t\t\t\t\tHttpSession session = request.getSession();\n\t\t\t\t\tif (session != null) { session.invalidate(); }\n\t\t\t\t\t\n\t\t\t\t\tsetForward(true);\n\t\t\t\t\tforward(\"/login.jsp\", request, response);\n\t\t\t\t}\n\t\t\t\telse if (employees.size() == 1) { // One user match\n\t\t\t\t\tEmployee user = employeeLogic.consEmployee(employees.get(0).getIdEmployee());\n\t\t\t\t\trequest.getSession().setAttribute(\"user\", user);\n\t\t\t\t\trequest.getSession().setAttribute(\"rolPrincipal\", user.getResourceprofiles().getIdProfile());\n\t\t\t\t}\n\t\t\t\telse if (employees.size() > 1) { // More than one user found\n\t\t\t\t\tPerformingOrgLogic performingOrgLogic = new PerformingOrgLogic();\n\t\t\t\t\t\n\t\t\t\t\tList<Performingorg> orgs = performingOrgLogic.consByContact(contact);\n\t\t\t\t\t\n\t\t\t\t\tEmployee user = new Employee();\n\t\t\t\t\tuser.setContact(contact);\n\t\t\t\t\trequest.getSession().setAttribute(\"user\", user);\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"employees\", employees);\n\t\t\t\t\trequest.setAttribute(\"organizactions\", orgs);\n\t\t\t\t\t\n\t\t\t\t\t// Configurations\n\t\t\t\t\tConfigurationLogic configurationLogic\t= new ConfigurationLogic();\n\t\t\t\t\trequest.setAttribute(\"configurations\", configurationLogic.findByTypes(user, Configurations.TYPE_CHOOSE_ROLE));\n\t\t\t\t\t\n\t\t\t\t\tsetForward(true);\n\t\t\t\t\tforward(\"/select_rol.jsp\", request, response);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse { // Contact not exists\n\t\t\t\trequest.setAttribute(\"error\", getResourceBundle(request).getString(\"msg.error_login.message\"));\n\t\t\t\tsetForward(true);\n\t\t\t\tforward(\"/index.jsp\", request, response);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tExceptionUtil.evalueException(request, getResourceBundle(request), LOGGER, e);\n\t\t\tsetForward(true);\n\t\t\tforward(\"/index.jsp\", request, response);\n\t\t}\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String accion=request.getParameter(\"op\");\n if(accion.equalsIgnoreCase(\"Actualizar\")){\n request.getRequestDispatcher(\"AspirantesCoordiVTA.jsp\").forward(request, response);\n }\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n \n \n //la servlet prende i vari parametri dalla jsp\n String User1=request.getParameter(\"user1\");\n String Pass1=request.getParameter(\"pass1\");\n String User2=request.getParameter(\"user2\");\n String Pass2=request.getParameter(\"pass2\");\n String Loc2= request.getParameter(\"location2\");\n String Loc3= request.getParameter(\"location3\");\n String User3= \"Guest\";\n\n\n \n \n //caso 1 accesso con LogIn /credenziali\n if(User1 != null && Pass1 != null){\n try {\n DataAccessObject DAO = new DataAccessObject();\n \n //controllo utente e password\n boolean B1 = DAO.checkUser(User1, Pass1);\n if(B1){\n \n //gestione utente e location salvata\n request.setAttribute(\"User\",User1 );\n String Loc1 = DAO.takeLocation(User1);\n \n //gestione maiuscole e minuscole\n Loc1= Loc1.substring(0,1).toUpperCase()+Loc1.substring(1, Loc1.length()).toLowerCase();\n \n //gestione location salvata in db\n request.setAttribute(\"location\",Loc1);\n String Lat = DAO.getLatitude(Loc1);\n String Lon = DAO.getLongitude(Loc1);\n request.setAttribute(\"lati\",Lat);\n request.setAttribute(\"longi\",Lon);\n \n float [] values = DataAccessObject.getLastValues(Loc1); \n \n String s = \"--\";\n \n request.setAttribute(\"A\",values[0]);\n request.setAttribute(\"B\",values[1]);\n request.setAttribute(\"C\",values[2]);\n request.setAttribute(\"D\",values[3]);\n request.setAttribute(\"E\",values[4]);\n request.setAttribute(\"F\",values[5]);\n request.setAttribute(\"G\",values[6]);\n request.setAttribute(\"H\",values[7]);\n request.setAttribute(\"I\",values[8]);\n request.setAttribute(\"L\",values[9]);\n \n request.setAttribute(\"A1\",s);\n request.setAttribute(\"B1\",s);\n request.setAttribute(\"C1\",s);\n request.setAttribute(\"D1\",s);\n request.setAttribute(\"E1\",s);\n request.setAttribute(\"F1\",s);\n request.setAttribute(\"G1\",s);\n request.setAttribute(\"H1\",s);\n request.setAttribute(\"I1\",s);\n request.setAttribute(\"L1\",s);\n \n request.setAttribute(\"A2\",s);\n request.setAttribute(\"B2\",s);\n request.setAttribute(\"C2\",s);\n request.setAttribute(\"D2\",s);\n request.setAttribute(\"E2\",s);\n request.setAttribute(\"F2\",s);\n request.setAttribute(\"G2\",s);\n request.setAttribute(\"H2\",s);\n request.setAttribute(\"I2\",s);\n request.setAttribute(\"L2\",s);\n request.getRequestDispatcher(\"Page2.jsp\").forward(request, response);\n }\n else{\n request.getRequestDispatcher(\"welcomeStruts.jsp\").forward(request, response);\n showMessageDialog(null,\"Credenziali errate!\");\n }\n }\n catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n //caso 2 accesso con registrazione credenziali\n if(User2 != null && Pass2 != null && Loc2 != null){\n try {\n \n DataAccessObject DAO = new DataAccessObject();\n boolean B1 = DataAccessObject.checkLocation(Loc2);\n if(B1)\n {\n boolean B2 = DAO.insertUser(User2, Pass2, Loc2);\n if(B2)\n {\n request.setAttribute(\"User\",User2 );\n Loc2= Loc2.substring(0,1).toUpperCase()+Loc2.substring(1, Loc2.length()).toLowerCase();\n request.setAttribute(\"location\",Loc2 );\n String Lat = DAO.getLatitude(Loc2);\n String Lon = DAO.getLongitude(Loc2);\n request.setAttribute(\"lati\",Lat);\n request.setAttribute(\"longi\",Lon);\n \n float [] values = DataAccessObject.getLastValues(Loc2); \n String s = \"--\";\n\n \n request.setAttribute(\"A\",values[0]);\n request.setAttribute(\"B\",values[1]);\n request.setAttribute(\"C\",values[2]);\n request.setAttribute(\"D\",values[3]);\n request.setAttribute(\"E\",values[4]);\n request.setAttribute(\"F\",values[5]);\n request.setAttribute(\"G\",values[6]);\n request.setAttribute(\"H\",values[7]);\n request.setAttribute(\"I\",values[8]);\n request.setAttribute(\"L\",values[9]);\n \n request.setAttribute(\"A1\",s);\n request.setAttribute(\"B1\",s);\n request.setAttribute(\"C1\",s);\n request.setAttribute(\"D1\",s);\n request.setAttribute(\"E1\",s);\n request.setAttribute(\"F1\",s);\n request.setAttribute(\"G1\",s);\n request.setAttribute(\"H1\",s);\n request.setAttribute(\"I1\",s);\n request.setAttribute(\"L1\",s);\n \n request.setAttribute(\"A2\",s);\n request.setAttribute(\"B2\",s);\n request.setAttribute(\"C2\",s);\n request.setAttribute(\"D2\",s);\n request.setAttribute(\"E2\",s);\n request.setAttribute(\"F2\",s);\n request.setAttribute(\"G2\",s);\n request.setAttribute(\"H2\",s);\n request.setAttribute(\"I2\",s);\n request.setAttribute(\"L2\",s);\n request.getRequestDispatcher(\"Page2.jsp\").forward(request, response);\n }\n else\n {\n request.getRequestDispatcher(\"welcomeStruts.jsp\").forward(request, response);\n showMessageDialog(null,\"Utente gia' presente!\");\n }\n \n }\n else\n {\n request.getRequestDispatcher(\"welcomeStruts.jsp\").forward(request, response);\n showMessageDialog(null,\"Location non valida!\\nScegliere una provincia o regione italiana.\");\n }\n \n \n \n \n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n //caso 3 accesso veloce \n if(Loc3 != null)\n {\n \n try {\n DataAccessObject DAO = new DataAccessObject();\n boolean B1 = DataAccessObject.checkLocation(Loc3);\n if(B1)\n {\n request.setAttribute(\"User\",User3);\n Loc3= Loc3.substring(0,1).toUpperCase()+Loc3.substring(1, Loc3.length()).toLowerCase();\n request.setAttribute(\"location\",Loc3);\n String Lat = DAO.getLatitude(Loc3);\n String Lon = DAO.getLongitude(Loc3);\n request.setAttribute(\"lati\",Lat);\n request.setAttribute(\"longi\",Lon);\n \n \n float [] values = DataAccessObject.getLastValues(Loc3); \n String s = \"--\";\n\n \n request.setAttribute(\"A\",values[0]);\n request.setAttribute(\"B\",values[1]);\n request.setAttribute(\"C\",values[2]);\n request.setAttribute(\"D\",values[3]);\n request.setAttribute(\"E\",values[4]);\n request.setAttribute(\"F\",values[5]);\n request.setAttribute(\"G\",values[6]);\n request.setAttribute(\"H\",values[7]);\n request.setAttribute(\"I\",values[8]);\n request.setAttribute(\"L\",values[9]);\n \n request.setAttribute(\"A1\",s);\n request.setAttribute(\"B1\",s);\n request.setAttribute(\"C1\",s);\n request.setAttribute(\"D1\",s);\n request.setAttribute(\"E1\",s);\n request.setAttribute(\"F1\",s);\n request.setAttribute(\"G1\",s);\n request.setAttribute(\"H1\",s);\n request.setAttribute(\"I1\",s);\n request.setAttribute(\"L1\",s);\n \n request.setAttribute(\"A2\",s);\n request.setAttribute(\"B2\",s);\n request.setAttribute(\"C2\",s);\n request.setAttribute(\"D2\",s);\n request.setAttribute(\"E2\",s);\n request.setAttribute(\"F2\",s);\n request.setAttribute(\"G2\",s);\n request.setAttribute(\"H2\",s);\n request.setAttribute(\"I2\",s);\n request.setAttribute(\"L2\",s);\n \n \n request.getRequestDispatcher(\"Page2.jsp\").forward(request, response);\n \n }\n else\n {\n request.getRequestDispatcher(\"welcomeStruts.jsp\").forward(request, response);\n showMessageDialog(null,\"Location non valida!\\nScegliere una provincia.\");\n }\n\n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n }",
"@RequestMapping(value=\"/tracuunguoidang\" ,method = RequestMethod.GET)\r\n\tpublic String tracuugiangvien(Model model, HttpSession session){\n\t\tClientConfig config = new DefaultClientConfig();\r\n\t\tClient client = Client.create(config);\r\n\t\tWebResource resource = client.resource(Server.addressAuthenWS);\r\n\t\tForm form = new Form();\r\n\t\tform.add(\"username\", \"\");\r\n\t\tform.add(\"email\", \"\");\r\n\t\tString json = resource.path(\"userinfo/findAll\").cookie(new NewCookie(\"JSESSIONID\", session.getAttribute(\"sessionid\").toString())).post(String.class,form);\r\n\t\tType type = new TypeToken<ArrayList<User>>(){}.getType();\r\n\t\tArrayList<User> dsuser = new Gson().fromJson(json, type);\r\n\t\tmodel.addAttribute(\"dsuser\", dsuser);\r\n\t\treturn \"tracuunguoidang\";\r\n\t}",
"void sessionExpired();",
"@SuppressWarnings(\"unchecked\")\n\tpublic void loadDefault() {\n\t\tAppLog.begin();\n\t\ttry {\n\t\t\tMap<String, Object> session = ActionContext.getContext()\n\t\t\t\t\t.getSession();\n\t\t\tsession.put(\"CURR_TAB\", \"MRD\");\n\t\t\tif (null == session.get(\"ZoneListMap\")) {\n\t\t\t\tsession.put(\"ZoneListMap\", GetterDAO.getZoneListMap());\n\t\t\t}\n\t\t\t/* Start: Added by Matiur Rahman on 30-09-2015 */\n\t\t\tif (null == session.get(\"MRKEYListMap\")) {\n\t\t\t\tsession.put(\"MRKEYListMap\", GetterDAO.getMRKEYListMap());\n\t\t\t}\n\t\t\tif (null == session.get(\"MRNoListMap\")\n\t\t\t\t\t|| ((HashMap<String, String>) session.get(\"MRNoListMap\"))\n\t\t\t\t\t\t\t.isEmpty()) {\n\t\t\t\tif (null != selectedZone && !\"\".equals(selectedZone)) {\n\t\t\t\t\tsession.put(\"MRNoListMap\",\n\t\t\t\t\t\t\t(HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t\t\t\t.getMRNoListMap(selectedZone));\n\t\t\t\t} else {\n\t\t\t\t\tsession.put(\"MRNoListMap\", new HashMap<String, String>());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (null == session.get(\"AreaListMap\")\n\t\t\t\t\t|| ((HashMap<String, String>) session.get(\"AreaListMap\"))\n\t\t\t\t\t\t\t.isEmpty()) {\n\t\t\t\tif (null != selectedZone && !\"\".equals(selectedZone)\n\t\t\t\t\t\t&& null != selectedMRNo && !\"\".equals(selectedMRNo)) {\n\t\t\t\t\tsession.put(\"AreaListMap\",\n\t\t\t\t\t\t\t(HashMap<String, String>) GetterDAO.getAreaListMap(\n\t\t\t\t\t\t\t\t\tselectedZone, selectedMRNo));\n\t\t\t\t} else {\n\t\t\t\t\tsession.put(\"AreaListMap\", new HashMap<String, String>());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (null == session.get(\"ZROListMap\")\n\t\t\t\t\t|| ((HashMap<String, String>) session.get(\"ZROListMap\"))\n\t\t\t\t\t\t\t.isEmpty()\n\t\t\t\t\t|| ((HashMap<String, String>) session.get(\"ZROListMap\"))\n\t\t\t\t\t\t\t.size() == 1) {\n\t\t\t\tsession.put(\"ZROListMap\", (HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t.getAllZRO());\n\t\t\t}\n\t\t\t/* End: Added by Matiur Rahman on 30-09-2015 */\n\t\t} catch (Exception e) {\n\t\t\tAppLog.error(e);\n\t\t\tAppLog.end();\n\t\t}\n\t\tAppLog.end();\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doGet(request, response);\n HttpSession session = request.getSession(true);\n String name=\"User\";\n Usuario user= new Usuario(request.getParameter(\"name\"),request.getParameter(\"email\"),request.getParameter(\"password\"));\n session.setAttribute(name, user);\n Cookie idsession= new Cookie(\"idsession\",session.getId());\n response.addCookie(idsession);\n \n \n \n PrintWriter out=response.getWriter();\n \n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Registro</title>\");\n out.println(\"<meta charset='UTF-8'>\");\n out.println(\"<meta name='viewport' content='width=device-width, initial-scale=1.0'>\");\n out.println(\"<link href='css.css' rel='stylesheet' type='text/css'/>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<div>\");\n out.println(\"<a href='login.html'>Ir a login</a>\");\n out.println(\"</div>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n \n }",
"private void regOnlineUser(LfwSessionBean sb, HttpServletRequest request)\n/* */ throws BusinessException\n/* */ {\n/* 522 */ String clientIP = HttpUtil.getIp();\n/* 523 */ String sessionid = request.getSession().getId();\n/* 524 */ getUserBill().regOnlineUser(sb, sessionid, clientIP);\n/* */ }",
"@Override\r\n\tprotected void doGet(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t\t\t\t\tthrows ServletException, IOException\r\n\t\t\t\t\t{\n\t\tHttpSession session = request.getSession(true);\r\n\r\n\t\tServletContext context = getServletContext();\r\n\r\n\t\tsession.setMaxInactiveInterval(60); // in seconds\r\n\r\n\t\t// Get session creation time.\r\n\t\tDate createTime = new Date(session.getCreationTime());\r\n\t\t// Get last access time of this web page.\r\n\t\tDate lastAccessTime = \r\n\t\t\t\tnew Date(session.getLastAccessedTime());\r\n\r\n\t\tString title =\"\";\r\n\t\tInteger visitCount = new Integer(0);\r\n\t\tInteger requestCount = new Integer(0);\r\n\t\tString visitCountKey = new String(\"visitCount\");\r\n\t\tString userIDKey = new String(\"userID\");\r\n\t\tString userID = new String(\"ABCD\");\r\n\r\n\t\t// Check if this is new comer on your web page.\r\n\t\tif (session.isNew()){\r\n\r\n\t\t\ttitle = \"Welcome to my website\";\r\n\t\t\tsession.setAttribute(userIDKey, userID);\r\n\r\n\t\t\trequestCount = (Integer)context.getAttribute(\"totalRequestServed\");\r\n\t\t\trequestCount = (requestCount != null ? requestCount : 0) + 1;\r\n\t\t\t//RequestDispatcher\r\n\t\t} else {\r\n\t\t\ttitle = \"You are in the same Session !!!\";\r\n\t\t\tvisitCount = (Integer)session.getAttribute(visitCountKey);\r\n\t\t\tvisitCount = (visitCount != null ? visitCount : 0) + 1;\r\n\t\t\tuserID = (String)session.getAttribute(userIDKey);\r\n\r\n\t\t\trequestCount = (Integer)context.getAttribute(\"totalRequestServed\");\r\n\t\t\trequestCount = (requestCount != null ? requestCount : 0) + 1;\r\n\r\n\r\n\t\t}\r\n\t\tsession.setAttribute(visitCountKey, visitCount); // 1\r\n\t\tcontext.setAttribute(\"totalRequestServed\", requestCount);\r\n\r\n\t\tString logoutRequest = request.getParameter(\"logout\");\r\n\t\tSystem.out.println(\"SessionServlet.doGet() logoutRequest :: \"+ logoutRequest);\r\n\r\n\t\tif(\"logout\".equals(logoutRequest)){\r\n\t\t\ttitle = \"Good Bye\";\r\n\t\t\tSystem.out.println(\"Logging Out\");\r\n\t\t\tsession.invalidate();\r\n\t\t\t//\t\t\tsession.removeAttribute(arg0);\r\n\t\t\t//\t\t\tcontext.removeAttribute(\"totalRequestServed\");\r\n\r\n\t\t\t//\t\t\tsession.setAttribute(visitCountKey, new Integer(0));\r\n\t\t\tvisitCount = new Integer(0);\r\n\t\t}\r\n\r\n\r\n\t\t// Set response content type\r\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tPrintWriter out = response.getWriter();\r\n\r\n\t\tString docType =\r\n\t\t\t\t\"<!doctype html public \\\"-//w3c//dtd html 4.0 \" +\r\n\t\t\t\t\t\t\"transitional//en\\\">\\n\";\r\n\t\tString logout = \"<form action='SessionServlet' method='POST'> \" +\r\n\t\t\t\t\"<input type='submit' name ='logout' value='logout' /> \" +\r\n\t\t\t\t\"</form>\";\r\n\r\n\t\tout.println(docType +\r\n\t\t\t\t\"<html>\\n\" +\r\n\t\t\t\t\"<head><title>\" + title + \"</title></head>\\n\" +\r\n\t\t\t\t\"<body bgcolor=\\\"#f0f0f0\\\">\\n\" +\r\n\t\t\t\t\"<h1 align=\\\"center\\\">\" + title + \"</h1>\\n\" +\r\n\t\t\t\t\"<h2 align=\\\"center\\\">Session Infomation</h2>\\n\" +\r\n\t\t\t\t\"<table border=\\\"1\\\" align=\\\"center\\\">\\n\" +\r\n\t\t\t\t\"<tr bgcolor=\\\"#949494\\\">\\n\" +\r\n\t\t\t\t\" <th>Session info</th><th>value</th></tr>\\n\" +\r\n\t\t\t\t\"<tr>\\n\" +\r\n\t\t\t\t\" <td>id</td>\\n\" +\r\n\t\t\t\t\" <td>\" + session.getId() + \"</td></tr>\\n\" +\r\n\t\t\t\t\"<tr>\\n\" +\r\n\t\t\t\t\" <td>Creation Time</td>\\n\" +\r\n\t\t\t\t\" <td>\" + createTime + \r\n\t\t\t\t\" </td></tr>\\n\" +\r\n\t\t\t\t\"<tr>\\n\" +\r\n\t\t\t\t\" <td>Time of Last Access</td>\\n\" +\r\n\t\t\t\t\" <td>\" + lastAccessTime + \r\n\t\t\t\t\" </td></tr>\\n\" +\r\n\t\t\t\t\"<tr>\\n\" +\r\n\t\t\t\t\" <td>User ID</td>\\n\" +\r\n\t\t\t\t\" <td>\" + userID + \r\n\t\t\t\t\" </td></tr>\\n\" +\r\n\t\t\t\t\"<tr>\\n\" +\r\n\t\t\t\t\" <td>Number of visits</td>\\n\" +\r\n\t\t\t\t\" <td>\" + visitCount + \"</td></tr>\\n\" +\r\n\t\t\t\t\"<tr>\\n\" +\r\n\t\t\t\t\" <td>Total Request Served</td>\\n\" +\r\n\t\t\t\t\" <td>\" + requestCount + \"</td></tr>\\n\" +\r\n\t\t\t\t\"</table>\\n\" +\r\n\t\t\t\tlogout+\r\n\t\t\t\t\"</body></html>\");\r\n\t\t\t\t\t}",
"private void refreshSession() {\n\t\ttry {\n\t\t\tAuthenticationUtils.endSession();\n\t\t\tAuthenticationUtils.startSession(endpointUser, endpointPassword);\n\t\t} catch(Throwable e) {\n\t\t\tLOG.error(\"Error refreshing session\", e);\n\t\t}\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"pass\");\n ControladorEmpleados co = new ControladorEmpleados();\n if (co.verificarUserName(userName)) {\n Usuario usuario = co.obtenerUsuario(userName, password);\n HttpSession nuevoSession = request.getSession(true);\n nuevoSession.setAttribute(\"Usuario\", usuario);\n\n if (usuario != null) {\n request.setAttribute(\"Usuario\", usuario);\n\n switch (usuario.getArea().getCodigo()) {\n case Area.CONDIGO_CONTRATADOR:\n getServletContext().getRequestDispatcher(\"/Contratador/Home.jsp\").forward(request, response);\n\n break;\n case Area.CONDIGO_FARMACEUTICO:\n getServletContext().getRequestDispatcher(\"/Farmacia/HomeFarmacia.jsp\").forward(request, response);\n\n break;\n case Area.CONDIGO_CONSULTOR:\n getServletContext().getRequestDispatcher(\"/Recepcion/HomeRecepcion.jsp\").forward(request, response);\n\n break; \n \n default:\n throw new AssertionError();\n }\n\n } else {\n request.setAttribute(\"errorPassword\", userName);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/Inicio/Login.jsp\");\n dispatcher.forward(request, response);\n }\n } else {\n request.setAttribute(\"errorUserName\", userName);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/Inicio/Login.jsp\");\n dispatcher.forward(request, response);\n }\n }",
"@RequestMapping(value = \"/opsgis\", method = RequestMethod.GET)\r\n public String opsgis(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n return(\"redirect:/restricted/opsgis\"); \r\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n \n //----------------------------------------------------------------------------------------------------\n //CONTROL DE ACCESO\n //----------------------------------------------------------------------------------------------------\n String referer = request.getHeader(\"referer\");\n \n HttpSession session=request.getSession();\n String usuario = (String) session.getAttribute(NombreSesiones.USUARIO.getValor());\n Boolean esAdm = (Boolean) session.getAttribute(NombreSesiones.USUARIO_ADM.getValor());\n Boolean esAlu = (Boolean) session.getAttribute(NombreSesiones.USUARIO_ALU.getValor());\n Boolean esDoc = (Boolean) session.getAttribute(NombreSesiones.USUARIO_DOC.getValor());\n Retorno_MsgObj acceso = Seguridad.GetInstancia().ControlarAcceso(usuario, esAdm, esDoc, esAlu, utilidades.GetPaginaActual(referer));\n\n if (acceso.SurgioError() && !utilidades.GetPaginaActual(referer).isEmpty()) {\n Mensajes mensaje = new Mensajes(\"Acceso no autorizado - \" + this.getServletName(), TipoMensaje.ERROR);\n System.err.println(\"Acceso no autorizado - \" + this.getServletName() + \" - Desde: \" + utilidades.GetPaginaActual(referer));\n out.println(utilidades.ObjetoToJson(mensaje));\n }\n else\n {\n \n String action = request.getParameter(\"pAction\");\n String retorno = \"\";\n switch(action)\n {\n case \"NOTIFICAR\":\n retorno = this.Notificar(request);\n break;\n\n case \"DEPURAR_BITACORA\":\n retorno = this.DepurarBitacora(request);\n break;\n\n case \"ELIMINAR_MENSAJE\":\n retorno = this.EliminarBandeja(request);\n break;\n\n case \"MENSAJE_OBTENER\":\n retorno = this.VerBandeja(request);\n break;\n }\n\n out.print(retorno);\n }\n }\n }",
"private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }",
"@GetMapping(value = \"/\")\n public String indexLoginLogout(@RequestParam(value = \"error\", required = false) String error,\n @RequestParam(value = \"logout\", required = false) String logout,\n Model model, HttpServletRequest request) throws WebException{\n model.addAttribute(\"error\", error != null);\n model.addAttribute(\"logout\", logout != null);\n model.addAttribute(\"date\", new Date());\n String login = SecurityContextHolder.getContext().getAuthentication().getName();\n model.addAttribute(\"login\", login);\n String role = String.valueOf(model.asMap().get(\"role\"));\n if((role != null) && !(role.equals(\"null\"))) {\n try {\n //putting userId into to session!!!!!!\n long userId = userService.findByLogin(login).getId();\n request.getSession(true).setAttribute(\"user_id\", userId);\n if (role.matches(\"CLIENT\")) {\n return \"redirect:/market/user/usermain\";\n } else if (role.matches(\"ADMIN\")) {\n return \"redirect:/market/admin/adminmain\";\n }\n } catch (ServiceException e) {\n throw new WebException(e);\n }\n }\n return \"index\";\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n request.setCharacterEncoding(\"UTF-8\");\n Redirect rd = new Redirect();\n ManageSession_Parameter manageSession_Parameter = new ManageSession_Parameter(request);\n boolean session = manageSessions_actions.checkSession(manageSession_Parameter);\n Hilo_Parameter hiloParameter = new Hilo_Parameter(request);\n\n if (!session) { //si no hay sesión\n\n rd.redirect(request, response, \"/Boot\");\n\n } else { //si hay alguna sesión \n \n Usuario usuario = manageSessions_actions.getUser(manageSession_Parameter); \n asistir_actions.insertAsistir(hiloParameter, usuario);\n rd.redirect(request, response, \"ListaEventosServlet?idCiudad=\"+hiloParameter.getIdCiudad()+\"&idHilo=\"+hiloParameter.getIdHilo());\n \n }\n \n }",
"private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n HttpSession session = req.getSession();\r\n\r\n session.setAttribute(\"nombresDesLivres\", req.getParameter(\"nombres\"));\r\n \r\n /**\r\n * Recuperer de l'utilisateur en cours \r\n * et Mise en place de l'achat d'un livre\r\n */\r\n User user = userbean.allUsersList().get(0);\r\n Livre livreAchete = userbean.getUserLivres(user).get(Integer.parseInt(req.getParameter(\"item\")));\r\n session.setAttribute(\"livreAdd\", livreAchete);\r\n /**\r\n * renvoie de l'attribut message vers la page JSP DiscoveryJsp.jsp\r\n */\r\n req.setAttribute(\"message\", \"<a href=\\\"#\\\" class=\\\"btn btn-link\\\">\"\r\n + \"vous venez d'ajouter \" + req.getParameter(\"nombres\") + \" exemplaires du livre \" + livreAchete.getNom()\r\n \r\n + \" dans votre panier</a>\");\r\n this.getServletContext().getRequestDispatcher(\"/DiscoveryJsp.jsp\").forward(req, resp);\r\n\r\n }",
"@RequestMapping(method=RequestMethod.POST , value = \"/employeelogin\")\npublic ModelAndView openPageAfterCheck(@RequestParam String email, String employee_password, HttpSession session)\n{\n\tModelAndView mv = new ModelAndView();\n\t\n\tEmployeeRegmodel erm = ergserv.employeeLoginCheck(email, employee_password);\n\tif(erm != null)\n\t{\n\t\tsession.setAttribute(\"nm\",email);\n\t\tmv.setViewName(\"EmployeeButtons.jsp\");\n\t\t\n\t}else\n\t{\n\t\tmv.setViewName(\"index1.jsp\");\n\t}\n\treturn mv;\n}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model, HttpSession session,HttpServletRequest request) throws Exception {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\tObject obj = session.getAttribute(\"login\");\n\t\tif (obj != null) {\n\t\t\tUserVO vo = (UserVO) obj;\n\t\t\tString grade = userService.getUserGrade(vo.getU_id());\n\t\t\tmodel.addAttribute(\"grade\", grade);\n\t\t}\n\t\t\n\t\tList<Map<String,String>> categoryList = boardService.categoryList();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSimpleDateFormat now = new SimpleDateFormat(\"yyyy:MM:dd-hh:mm:ss\");\n\t\t\n\t\tString formattedDate = now.format(cal.getTime());\n\t\tint min = cal.get(Calendar.MINUTE);\n\t\t\n\t\tmodel.addAttribute(\"now\", min);\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\n\t\tmodel.addAttribute(\"serverTime\", formattedDate);\n\t\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value = \"/user_logout.htm\",method = RequestMethod.GET)\r\n\tpublic String userLogout(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\r\n\t\tsession.invalidate();\r\n\t\treturn \"index\";\r\n\t}",
"public static Result visitSkier() {\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else {\n String location = Form.form().bindFromRequest().get(\"setLocation\");\n if (location != null) {\n Skiarena ss = Skiarena.getByName(location);\n if (ss != null) {\n loggedInSkier.setCurrent_location(ss);\n loggedInSkier.save();\n List<Skier> inLocation = Skier.searchBySkiArena(location);\n int size = 0;\n for (Skier skier : inLocation) {\n if (!skier.equals(loggedInSkier)) size++;\n }\n return ok(toJson(size));\n } else return ok(toJson(0));\n } else {\n return ok(toJson(0));\n }\n }\n }",
"@GET\n @Path(\"/re\")\n public Response relogin() {\n return this.login();\n }",
"private void loggedInUser() {\n\t\t\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n webCtr=new ControladorWeb();\n response.setContentType(\"text/html;charset=UTF-8\");\n String comando = request.getParameter(\"comando\");\n if ((comando != null) && (comando.equals(\"login\"))) {\n //obtener parametros y autenticar\n String user = request.getParameter(\"user\");\n String pass = request.getParameter(\"pass\");\n Usuario usr = webCtr.getUsuario(user);\n //consultar a la logica\n if (pass.equals(usr.getContrasenia())) {\n \n if(user.getClass().getName().contains(\"Cliente\")){\n Cliente cli = webCtr.seleccionarCliente(usr.getNickname());\n request.getSession().setAttribute(\"user\", cli);\n request.getSession().setAttribute(\"tipo\", \"Cliente\");\n }else{\n Artista art = SeleccionarArtista(usr.getNickname());\n request.getSession().setAttribute(\"user\", art);\n request.getSession().setAttribute(\"tipo\", \"Artista\");\n }\n request.getRequestDispatcher(\"/index.jsp\").forward(request, response);\n } else {\n request.setAttribute(\"error\", \"Usuario o contraseña incorrecto.\");\n request.getRequestDispatcher(\"/login.jsp\").forward(request, response);\n }\n } else if ((comando != null) && (comando.equals(\"logout\"))) {\n request.getSession().invalidate();\n request.getRequestDispatcher(\"/\").forward(request, response);\n } else {\n request.getRequestDispatcher(\"/login.jsp\").forward(request, response);\n }\n }"
]
| [
"0.64792794",
"0.6364036",
"0.620438",
"0.6193929",
"0.61818844",
"0.61607736",
"0.61605275",
"0.6136351",
"0.61220354",
"0.60252154",
"0.6023794",
"0.59577507",
"0.5948328",
"0.5936745",
"0.5934751",
"0.59251195",
"0.59154487",
"0.5885868",
"0.5868298",
"0.5825246",
"0.58137935",
"0.57984996",
"0.5797826",
"0.57968515",
"0.5796092",
"0.57927686",
"0.57832587",
"0.57676715",
"0.57673687",
"0.5763263",
"0.57416296",
"0.5740905",
"0.57363003",
"0.5734548",
"0.57324016",
"0.5728942",
"0.57173675",
"0.5715954",
"0.5712585",
"0.5695127",
"0.5692571",
"0.5668187",
"0.56384873",
"0.5636534",
"0.562117",
"0.5619116",
"0.5616243",
"0.5608847",
"0.5608493",
"0.56062955",
"0.56031036",
"0.5592795",
"0.5589243",
"0.55834055",
"0.5577988",
"0.5576989",
"0.5575689",
"0.55699795",
"0.55699605",
"0.5562299",
"0.55575466",
"0.5554289",
"0.5549681",
"0.55364156",
"0.5533065",
"0.55266196",
"0.55227417",
"0.5522164",
"0.5515102",
"0.5509715",
"0.5508995",
"0.55056584",
"0.5500211",
"0.54970145",
"0.5488758",
"0.5488448",
"0.5487808",
"0.54841256",
"0.54750675",
"0.54734546",
"0.5471451",
"0.5466535",
"0.5464188",
"0.54609835",
"0.54553604",
"0.5440991",
"0.5440777",
"0.5438486",
"0.5437455",
"0.54265004",
"0.54241043",
"0.54083043",
"0.54076666",
"0.540719",
"0.5403027",
"0.54020727",
"0.5400794",
"0.5398169",
"0.5393589",
"0.5393306",
"0.5388083"
]
| 0.0 | -1 |
este metodo verifica la session | public boolean verificarSesion(){
boolean sesionValida = false;
if(FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("usuarioValidado")!=null){
sesionValida=true;
}
return sesionValida;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSession();",
"private Boolean isInSession(String token, String username) {\n \treturn true;\n }",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean hasSessionId();",
"boolean isSessionValid(Object session);",
"@Test\n\tpublic void testIsSession() {\n\t\t\n\t\tclub.CreerSession();\n\t\tassertNotNull(\"Aucune session n'a été pas créée\", club.getSession());\n\t\t\n\t}",
"private void checkSessionState() {\n // get logged in mUser\n mUser = getStoredUser();\n // check if valid\n mIsLoggedIn = (mUser != null && mUser.getId() != null);\n }",
"boolean hasClientSessionID();",
"private boolean isInSession()\n {\n return EngagementActivityManager.getInstance().getCurrentActivityAlias() != null;\n }",
"public boolean inicioSession(String usuario, String password, String aplicacion){\n Session session = obtenerConexion().authenticate( aplicacion, usuario, password);\n if(session != null){\n setSesion(session);\n return true;\n }else{\n return false;\n }\n }",
"boolean hasSessionTemplate();",
"public boolean canLogin(Session session);",
"@Test\r\n void checkSession() {\n }",
"public boolean CheckSession(String session) { return validSessions.containsKey(session); }",
"boolean isSetSessionID();",
"public boolean isSessionValid() {\n\t\treturn stateMachine.getCurrent() instanceof SessionValid;\n\t}",
"boolean hasLogin();",
"boolean hasLogin();",
"public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean inAnySession() {\n\t\treturn getSession(player).isPresent();\n\t}",
"protected boolean shouldValidateSession ()\n {\n return false;\n }",
"public boolean isSession() {\n\t\treturn config.getBoolean(QuestConfigurationField.SESSION.getKey(), \n\t\t\t\t(boolean) QuestConfigurationField.SESSION.getDefault());\n\t}",
"public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public void verifyLogin(){\n\n //Verifica que haya conexion de internet\n networkManager = (ConnectivityManager) this.getSystemService(\n Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = networkManager.getActiveNetworkInfo();\n boolean isConnected = networkInfo != null && networkInfo.isConnectedOrConnecting();\n\n if (PreferenceUtils.getEmail (this) != null) { //Verifica que hay una session abierta.\n showSplash ();\n if(isConnected){\n\n //Checa el tipo de session\n if(PreferenceUtils.getSession (this))\n //Facebook session\n new LoadDataLoginFacebook (this).execute(\n PreferenceUtils.getName (this),\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n else\n //Manual session\n new LoadDataLogin (this).execute (\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n }\n else{ //Si no hay internet pasa directo a la session abierta.\n Intent intent = new Intent (AccessActivity.this, MainActivity.class);\n startActivity (intent);\n }\n }\n }",
"boolean hasLoggedIn();",
"boolean hasLoginRequest();",
"protected final boolean isSessionOpen() {\n return sessionTracker.getOpenSession() != null;\n }",
"private void checkSession(final long sessionID, final long sessionVerID)\n {\n }",
"SessionStatus getStatus();",
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"synchronized public boolean getLoggedin()\n\t{\n\t\treturn userInfo.isSessionValid();\n\t}",
"boolean hasLoginapiavgrtt();",
"boolean hasLoginResponse();",
"public static boolean shouldLogin() {\n if (AppPreference.getInstance().getUserLoggedIn() == null ) {\n //|| deltaActive > Constant.SESSION_EXIPRED_TIME) {\n return true;\n }\n\n return false;\n }",
"public boolean startSession() {\n while(true){\n try{\n if (currentUser != null){\n return true;\n }\n\n String id = ui.readCard();\n String pin = ui.readPin();\n if(BankUser.getUser(id, pin) != null) {\n currentUser = BankUser.getUser(id, pin);\n ui.displayMessage(\"Hello \" + currentUser.getName());\n return true;\n } else {\n ui.displayError(\"User id or pin not found. Try again\");\n }\n } catch (Exception e){\n ui.displayError(\"Somethinng went wrong. Please try again.\");\n }\n\n }\n\n }",
"private boolean isSessionAuthenticated(Session userSession) {\n\t\treturn accountIdsByUserSession.containsKey(userSession);\n\t}",
"private boolean authenticate(HttpServletRequest request, RouteAction route) {\n\t\tHttpSession session = request.getSession(false);\n\t\tif (session == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\n\t}",
"private boolean loggedIn() {\n boolean exist = false;\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n if (u.getLoggedIn() != null) {\n exist = u.getLoggedIn().booleanValue();\n }\n return exist;\n }",
"@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }",
"@Override\n public boolean isLoggedin(HttpServletRequest request) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token)) {\n result = true;\n }\n }\n return result;\n }",
"private boolean validateFBLogin() {\n\t\tSession session = Session.getActiveSession();\n\t\tif (session != null && session.isOpened()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSession sessionNew = Session.openActiveSessionFromCache(this);\n\n\t\t\tif (sessionNew != null && sessionNew.isOpened()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"@Override\n public boolean isSessionAlive() {\n return sessionFactory.getCurrentSession() != null && sessionFactory.getCurrentSession().isOpen();\n }",
"public boolean exerciseInSession(String exercise){\n\t\t\tboolean inSide = false;\n\t\t\ttry {\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\tConnection con = DriverManager.getConnection(DB_URL, USER, PASS);\n\t\t\t\tPreparedStatement statement = (PreparedStatement) con.prepareStatement(\"SELECT name FROM EXECUTEDEXERCISE WHERE name = ?\");\n\t\t\t\tstatement.setString(1, exercise);\n\t\t\t\tResultSet result = statement.executeQuery();\n\t\t\t\tif(result.first()){\n\t\t\t\t\tinSide = true;\n\t\t\t\t\tSystem.out.println(\"In session\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Not in session\");\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn inSide;\n\t\t}",
"public boolean login() {\n\t\tview.setVisible(true);\r\n\t\treturn resultado;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"boolean isLoginAvailable();",
"public void sessionStarted() {\n\t\t\r\n\t}",
"private boolean AlreadyLogin() {\n\t\tString usn = uPreferences.getString(\"username\", null);\n\t\tString pwd = uPreferences.getString(\"password\", null);\n\t\tif((usn == null) || ((pwd == null))){\n\t\t\treturn false;\n\t\t}\n\t\telse \n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean check() {\n\t\tSystem.out.println(\"\\n---------登陆---------\");\n\t\tSystem.out.println(\"请输入ID\");\n\t\tString ID_C=console.next();\n\t\tSystem.out.println(\"请输入密码\");\n\t\tString code_c=console.next();\n\t\t if (!Tool.confirm(ID_C, \"log\")) {\n\t System.out.println(\"[此ID不存在] 重新输入#返回\");\n\t if((ID = Tool.back()) == null)\n\t return false;\n\t }\n\t\t Statement sta;\n\t ResultSet rs;\n\t try {\n\t sta = conn.createStatement();\n\t rs = sta.executeQuery(\"SELECT code FROM log WHERE ID=\"+ID_C);\n\t rs.next();\n\t if (rs.getString(1).equals(code_c))\n\t return true;\n\t \n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\t\treturn false;\n\t}",
"public boolean setupStartSession() { \n\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\ttry {\n\t\t\twhile (!this.requestSession()) {\n\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t}\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\ttextUI.showError(\"Something went wrong while starting the session: \" \n\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t}\n\t\t\n\t\treturn this.sessionActive;\n\t}",
"boolean hasAuth();",
"public boolean isLoggedin(){\n return STATE.equals(IN);\n }",
"@Test\r\n public void testGetSession() {\r\n System.out.println(\"getSession\");\r\n assertNotNull(sm);\r\n \r\n ISimulationSessionInfo result = sm.getSession(\"test1\");\r\n assertNotNull(result);\r\n assertEquals(result.getRequester(), \"junit\");\r\n }",
"private void checkAction(HttpServletRequest req, HttpServletResponse resp) throws SQLException, IOException {\n\t\tString account = req.getParameter(\"account\");\r\n\t\tString password = req.getParameter(\"password\");\r\n\t\tManage manage = this.service.checkLogin(account, password);\r\n\r\n\t\t// 如果User不是空,证明账号密码正确\r\n\t\tif (manage != null) {\r\n\t\t\tsession.setAttribute(\"MANAGEINSESSION\", manage);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/index.jsp\");\r\n\t\t\tpw.print(true);\r\n\t\t} else {\r\n\t\t\tpw.print(false);\r\n//\t\t\tresp.sendRedirect(path + \"/jsps/manage/login.jsp\");\r\n\t\t}\r\n\t\treturn;\r\n\t}",
"public abstract boolean isLoggedIn();",
"public boolean isUserLoggedIn();",
"public boolean startSession() {\n boolean success = true;\n if (sc == null) {\n sc = new Scanner(System.in);\n }\n if (sqlMngr == null) {\n sqlMngr = SQLController.getInstance();\n }\n try {\n success = sqlMngr.connect(this.getCredentials());\n } catch (ClassNotFoundException e) {\n success = false;\n System.err.println(\"Establishing connection triggered an exception!\");\n e.printStackTrace();\n sc = null;\n sqlMngr = null;\n }\n return success;\n }",
"Session getCurrentSession();",
"Session getCurrentSession();",
"private boolean isLoggedInUser(){\n return true;\n }",
"public boolean loginUser();",
"Boolean isLogIn();",
"boolean userInRedisSession(String token);",
"public Boolean isSuccess()\n\t{\n\t\treturn isSuccess( getSession().getSessionContext() );\n\t}",
"public boolean canRegister(Session session);",
"public boolean isCleanSession() {\n\t\tboolean enabled = true;\n\t\tString value = options.getProperty(\"Clean-Session\");\n\t\tif(value == null) {\n\t\t\tvalue = options.getProperty(\"clean-session\");\n\t\t}\n\t\tif(value != null) {\n\t\t\tenabled = Boolean.parseBoolean(trimedValue(value));\n\t\t} \n\t\treturn enabled;\n\t}",
"@Override\n\tpublic boolean isUserLoggedIn() {\n\t\treturn sessionService.getCurrentUserId() != null;\n\t}",
"@Override\r\n\tpublic boolean checkLogout() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogout() {\n\t\treturn false;\r\n\t}",
"com.weizhu.proto.WeizhuProtos.Session getSession();",
"@Override\n\tpublic boolean isLoggedIn() {\n\t\treturn false;\n\t}",
"public boolean checkIfLoggedIn() \n {\n if(this.getLoggedUser() != null)\n {\n return true;\n }\n return false;\n }",
"@Override\n public void run() {\n checkSession();\n\n }",
"public boolean isLoggedIn(){\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n if (sharedPreferences.getString(KEY_USERNAME, null) != null){\n return true;\n }\n return false;\n }",
"private void checkSessionAction(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.getRequestDispatcher(\"/jsps/manage/index.jsp\").forward(req, resp);\r\n\t}",
"@Override\r\n \t\t\tpublic boolean isValid(long sessionId) throws SSessionNotFoundException {\n \t\t\t\treturn false;\r\n \t\t\t}",
"Session getSession();",
"Session getSession();",
"private boolean delete() {\r\n\t\tboolean rtn = false;\r\n\t\ttry {\r\n\t\t\tif ( _where != null ) {\r\n\t\t\t\tif (_where.has(SESSIONID)) {\r\n\t\t\t\t\tString id = _where.getString(SESSIONID);\r\n\t\t\t\t\tif (id.equalsIgnoreCase(ALL)) {\r\n\t\t\t\t\t\trtn = SessionMgr.removeAllSessions();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\trtn = SessionMgr.removeSession(id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (_session != null) {\r\n\t\t\t\tSessionMgr.removeSession(_session.getKey());\r\n\t\t\t\t_session = null;\r\n\t\t\t\t_dbi.clearSession();\r\n\t\t\t}\r\n\t\t\trtn = true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetError(e);\r\n\t\t} finally {\r\n\t\t\tif (_transaction != null) {\r\n\t\t\t\t_transaction.setSession(_session);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rtn;\r\n\t}",
"public static boolean checkAuthorisation(HttpSession session) {\r\n\t\tif (session.getAttribute(CommandParameter.PARAM_NAME_ID) == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean requestSession() throws IOException, PacketException, UtilDatagramException {\n\t\ttry {\n\t\t\tString sessionRequest = FileTransferProtocol.INIT_SESSION \n\t\t\t\t\t+ FileTransferProtocol.DELIMITER \n\t\t\t\t\t+ this.name;\n\t\t\t\n\t\t\tPacket responsePacket = this.requestServer(sessionRequest);\n\t\t\tString[] responseSplit = this.getArguments(responsePacket.getPayloadString());\n\n\t\t\tif (responseSplit[0].equals(FileTransferProtocol.INIT_SESSION)) {\n\t\t\t\tthis.sessionActive = true;\n\t\t\t\tthis.serverPort = Integer.parseInt(responseSplit[1]); // update to clientHandler\n\t\t\t\tthis.showNamedMessage(\"Session started with server port = \" + this.serverPort);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tthis.sessionActive = false;\n\t\t\t\tthis.showNamedError(\"Invalid response to session init\");\n\t\t\t\tthis.sessionActive = false;\n\t\t\t}\n\t\t} catch (EmptyResponseException e) {\n\t\t\tthis.showNamedError(\"Response from server was empty: \" + e.getLocalizedMessage());\n\t\t} catch (ServerFailureException e) {\n\t\t\tthis.showNamedError(\"FAILURE> \" + e.getLocalizedMessage());\n\t\t}\n\n\t\treturn this.sessionActive;\n\t}",
"Session begin();",
"public boolean isConnected (HttpServletRequest request) {\n // Check if the HTTP session exists\n String consumerSession = getConsumerSession(request);\n if (consumerSession == null) {\n return false;\n }\n \n // Check if the HTTP session refers to a valid entry\n SecureEntry entry = secureMap.get(consumerSession);\n if (entry == null) {\n return false;\n }\n \n // Update the timer if the entry is not outdated\n if (entry.timestamp < Calendar.getInstance().getTimeInMillis() + sessionTimeOut) {\n entry.updateTimer();\n return true;\n } else {\n return false;\n }\n \n }",
"@Override\n\t\tpublic boolean isRequestedSessionIdFromCookie() {\n\t\t\treturn false;\n\t\t}",
"public boolean authenticateUser() {\r\n try {\r\n \r\n firstServerMessage();\r\n sendKeys();\r\n sessionKeyMsg();\r\n \r\n \r\n \r\n \treturn true;\r\n }\r\n \r\n catch(Exception ioe){\r\n System.out.println(\"Terminating session with Acct#: \" + currAcct.getNumber());\r\n //ioe.printStackTrace();\r\n return false;\r\n }\r\n \r\n }",
"private boolean checkSession(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException {\n\t\tString token = httpRequest.getHeader(HEADER_TOKEN);\n\t\tif (HttpMethod.OPTIONS.matches(httpRequest.getMethod())) {\n\t\t\treturn true;\n\n\t\t}\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (authenticationService.checkToken(token)) {\n\t\t\tlog.info(\" *** \" + HEADER_TOKEN + \" valid for: \"\n\t\t\t\t\t+ SecurityContextHolder.getContext().getAuthentication().getName());\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlog.info(\" *** Invalid \" + HEADER_TOKEN + ' ' + token);\n\t\t\tSecurityContextHolder.clearContext();\n\t\t\thttpResponse = HttpCommunicationHandler.AddCORSHeadertoResponse(httpRequest, httpResponse);\n\t\t\thttpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED);\n\t\t}\n\t\treturn false;\n\t}",
"private boolean update() {\r\n\t\ttry {\r\n\t\t\tif (_session != null) {\r\n\t\t\t\tlong usrid = _session.getUsrID();\r\n\t\t\t\tJSONObject result = new JSONObject();\r\n\t\t\t\tresult.put(\"usrid\", usrid);\r\n\t\t\t\taddData(result);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetError(e);\r\n\t\t}\r\n\t\tsetError(Transaction.NO_SESSION_ERROR);\r\n\t\treturn false;\r\n\t}",
"@Override\n\t\tpublic boolean isRequestedSessionIdValid() {\n\t\t\treturn false;\n\t\t}",
"private void tryLogin() {\n AsyncTask<String, Void, Boolean> task = new AsyncTask<String, Void, Boolean>(){\n @Override\n protected Boolean doInBackground(String... ci_session) {\n boolean isValid = PwcatsRequester.isValidCiSession(ci_session[0]);\n return isValid;\n }\n @Override\n protected void onPostExecute(Boolean isValid) {\n isLogined = isValid;\n showOrHideLogInOut(isLogined);\n if (!isValid)\n authLogout();\n TextView mNavAuthLogin = (TextView) findViewById(R.id.nav_auth_login);\n TextView mNavAuthLogout = (TextView) findViewById(R.id.nav_auth_logout);\n }\n };\n String ci_session = prefs.getString(getString(R.string.ci_session), null);\n task.execute(ci_session);\n }",
"public boolean obtenerPermisosSession(String key){\n obtenerPermisosSession(); //los obtiene del ws\n //cargarRecursos(); //obtiene los recursos locales DUMMY\n return recursos.containsKey(key);\n }",
"private boolean isValidLoginResponse(Response response) {\n\t\treturn response.header(\"Location\").toLowerCase().contains(\"testsession\");\r\n\t}",
"void sessionExpired();",
"@GET\n @Path(\"LoggedIn\")\n public boolean isLoggedIn() {\n return SecurityUtils.getSubject().isRemembered() || SecurityUtils.getSubject().isAuthenticated();\n }",
"public static boolean createSession(String username) {\n\t\tUser user = null;\n\t\tif (Global.Variables.session != null) {\n\t\t\tif (Global.Variables.session.getCurrentUser().getName().equals(username)) {\n\t\t\t\tConsolePrinter.warning(Global.Warnings.ALREADY_CONNECTED);\n\t\t\t} else {\n\t\t\t\tConsolePrinter.warning(Global.Warnings.CANNOT_CONNECT);\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tuser = signIn(username);\n\t\t\tif (user == null) {\n\t\t\t\tuser = signUp(username);\n\t\t\t\tGlobal.Variables.session = new Session(user);\n\t\t\t\tGlobal.Variables.registeredUsers.add(user);\n\t\t\t\tUtils.FileUtils.createBlankFile(\n\t\t\t\t\t\tGlobal.Constants.DIRECTORY_LOCATION\n\t\t\t\t\t\t+ username\n\t\t\t\t\t\t);\n\t\t\t\tConsolePrinter.info(Global.Warnings.USER_SIGNED_UP + username);\n\t\t\t} else {\n\t\t\t\tGlobal.Variables.session = new Session(user);\n\t\t\t\tConsolePrinter.info(Global.Warnings.USER_SIGNED_IN + username);\n\t\t\t}\n\t\t\tConsolePrinter.info(Global.Warnings.SESSION_ESTABLISHED);\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }"
]
| [
"0.8402216",
"0.7585987",
"0.74695605",
"0.74695605",
"0.74695605",
"0.74695605",
"0.74695605",
"0.74695605",
"0.7314409",
"0.7185278",
"0.71251196",
"0.7116231",
"0.7053856",
"0.7034971",
"0.6949495",
"0.69245607",
"0.6917317",
"0.6900772",
"0.6889213",
"0.67781556",
"0.6740979",
"0.6740979",
"0.6727281",
"0.67006874",
"0.6672879",
"0.66695684",
"0.6659044",
"0.66134673",
"0.65591824",
"0.6558905",
"0.6557009",
"0.6535119",
"0.65321296",
"0.652117",
"0.6518005",
"0.65096027",
"0.64791036",
"0.6468948",
"0.6460266",
"0.64545953",
"0.6450326",
"0.6442827",
"0.6423977",
"0.6416552",
"0.6412539",
"0.63338304",
"0.63335824",
"0.6286361",
"0.6278386",
"0.6278386",
"0.62755555",
"0.6263805",
"0.62611693",
"0.62510014",
"0.62281746",
"0.62164634",
"0.6208531",
"0.6204545",
"0.6186709",
"0.61836725",
"0.6177472",
"0.61766344",
"0.6174416",
"0.6174416",
"0.61729646",
"0.617294",
"0.6151869",
"0.61468714",
"0.6139083",
"0.6136411",
"0.6134234",
"0.613307",
"0.6129951",
"0.6129951",
"0.6117469",
"0.61106724",
"0.6108014",
"0.60983795",
"0.60948324",
"0.6092825",
"0.6079006",
"0.6077106",
"0.6077106",
"0.6072933",
"0.6058042",
"0.60568875",
"0.6053428",
"0.6053103",
"0.60494167",
"0.6046455",
"0.6034716",
"0.60324544",
"0.60256296",
"0.6024105",
"0.6022102",
"0.60202473",
"0.6011734",
"0.6011114",
"0.60035336",
"0.60013926"
]
| 0.6757575 | 20 |
Creates a new instance of LoginBean | public LoginFormBean() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LoginBean() {\r\n }",
"public loginBean() {\n }",
"public LoginBean() {\r\n \r\n \r\n }",
"public LoginActionBean() {\n\t\tthis(new ByNameHibernateRecordFetcherFactory(null).newInstance(new ReaderConstraint(\n\t\t\tUser.class)));\n\t}",
"public ExternalLoginManagedBean() {\n login = false;\n }",
"public ChangePasswordBean() {\n }",
"public UIUserLogginMangementBean() {\n }",
"@Override\r\n\tpublic UserBean createUserBean()\r\n\t{\r\n\t\treturn new UserManagedBean();\r\n\t}",
"public UserBean() {\n }",
"public UserBean() {\n }",
"public Login() {\n\n }",
"public Login() {\n }",
"public UsuariosBean() {\n }",
"public LoginPOJO() {\n\n\t\tPageFactory.initElements(driver, this);\t\n\t}",
"public Login() {\n usuario = new Usuario2();\n }",
"public static Login getInstance(){\n if (login==null){\n login=new Login();\n }\n return login;\n }",
"public LoginController() {\r\n }",
"public userBean() {\r\n }",
"public LoginController() {\r\n\r\n }",
"public Login() {\n inicializarUsuarios();\n }",
"public Login() {\n socio = new Socio();\n empleado = new Personal();\n }",
"public ControladorLogin() { }",
"public RegisterUserBean() {\n this.account.setGender(Boolean.TRUE);\n this.roleID = 5;\n }",
"public CrudBean() {\n }",
"public MainSessionBean() {\r\n init();\r\n }",
"public AccountManagerBean() {\n account = new Account();\n staff = new Staff();\n student = new Student();\n role = new Role();\n }",
"public UsuarioBean Login(String email_usuario, String pwd_usuario){\n UsuarioBean bean = null;\n MiConexion con = new MiConexion(contexto, null, null, 1);\n SQLiteDatabase sql = con.getReadableDatabase();\n Cursor cur = sql.rawQuery(\"SELECT * FROM Tb_Usuario where email_usuario=? and pwd_usuario=?\",\n new String[]{email_usuario, pwd_usuario});\n\n if(cur.moveToNext()){\n bean = new UsuarioBean();\n bean.setId_cargo(cur.getString(0));\n bean.setNom_usuario(cur.getString(1));\n bean.setApe_usuario(cur.getString(2));\n bean.setTip_usuario(cur.getString(3));\n bean.setEmail_usuario( cur.getString(4));\n bean.setPwd_usuario(cur.getString(5));\n bean.setId_cargo(cur.getString(6));\n\n }\n return bean;\n }",
"private UserBean buildUserBean(HttpServletRequest request) {\n\t\tAccount account = UserManager.getCurrentUser(request.getSession());\n \t\n \tUserBean userBean = new UserBean();\n \tuserBean.setFirstName(account.getGivenName());\n \tuserBean.setLastName(account.getSurname());\n \tString phoneNumber = \"\";\n \tif (account.getCustomData().get(\"phoneNumber\") != null) {\n \t\tphoneNumber = account.getCustomData().get(\"phoneNumber\").toString();\n \t}\n \tuserBean.setPhoneNumber(phoneNumber);\n \tString phoneCarrier = \"\";\n \tif (account.getCustomData().get(\"phoneCarrier\") != null) {\n \t\tphoneCarrier = account.getCustomData().get(\"phoneCarrier\").toString();\n \t}\n \tuserBean.setPhoneCarrier(phoneCarrier);\n \tString uniqueId = \"\";\n \tif (account.getCustomData().get(\"uniqueId\") != null) {\n \t\tuniqueId = account.getCustomData().get(\"uniqueId\").toString();\n \t}\n \tuserBean.setUniqueId(uniqueId);\n \t\n \treturn userBean;\n\t}",
"@Override\r\n\tpublic LoginBean verifyUserLogin(String uname, String pass) {\r\n\t\tLoginBean loginBean= new LoginBean();\r\n\t\tString sql = \"select userId,userName,password from Login where userName = ? and password=? \";\r\n\t\t loginBean= template.queryForObject(sql,\r\n\t\t\t\t\tnew Object[] { uname, pass },\r\n\t\t\t\t\tnew BeanPropertyRowMapper<LoginBean>(LoginBean.class));\r\n\t\t return loginBean;\r\n\t\t\r\n\t}",
"public LoginManager() {\r\n }",
"public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}",
"public Login() {\r\n\t\tinitialize();\r\n\t}",
"public editarUsuarioBean() {\r\n }",
"public ListUserBean(){\n \n }",
"public LoginController(LoginForm form) {this.loginForm = form;}",
"public Login() {\n\t\tsuper();\n\t}",
"public RegistroBean() {\r\n }",
"public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }",
"public interface LoginDao {\n\n int login(LoginBean loginBean);\n}",
"public Login() {\n initComponents();\n \n }",
"public ProfiledApplicationBean() {}",
"public EmployeeLoginController() {\n }",
"public TestManageBean() {\n }",
"public ServiciosLogin() {\r\n }",
"@Override\n protected ShowbaseUserBean createUserBean(Member userEntity) {\n return new ShowbaseUserBean(userEntity);\n }",
"public void login( UserLoginBean loginBean ) {\n UserDAO userDao = UserDAO.getInstance();\n UserBean bean = userDao.findByLoginPassword(loginBean.getLogin(), loginBean.getPassword());\n System.out.println(bean);\n if (bean != null) {\n SessionUtil.setUserBean(bean);\n userCounter.addUserConnected();\n ControllerUtils.redirectTo(\"activities\");\n }\n else {\n SessionUtil.clearSession();\n ControllerUtils.addMessage(FacesMessage.SEVERITY_WARN, \"Connexion échouée\");\n }\n }",
"public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }",
"public CustomerLogin() {\n super();\n }",
"public static LoginFragment newInstance() {\n LoginFragment fragment = new LoginFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public void createUtilisateur(UtilisateurBean u) {\n\t}",
"public LoginPageController() {\n\t}",
"public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }",
"public LoginModel() {\n }",
"public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }",
"public ChatBean() {\r\n }",
"public static LoginFragment getInstance() {\n LoginFragment fragment = new LoginFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public LogIn() {\n \n }",
"private Widget createLoginPanel(final IViewContext<ICommonClientServiceAsync> viewContext)\n {\n DockPanel loginPanel = new DockPanel();\n // WORKAROUND The mechanism behind the autofill support does not work in testing\n if (!GWTUtils.isTesting())\n {\n final LoginPanelAutofill loginWidget = LoginPanelAutofill.get(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n } else\n {\n final LoginWidget loginWidget = new LoginWidget(viewContext);\n loginPanel.add(loginWidget, DockPanel.CENTER);\n }\n return loginPanel;\n }",
"public PersonLoginController() {\n }",
"public PeopleBean() {\n\n }",
"public LoginPage() {\n }",
"public NewJSFManagedBean() {\n }",
"public static LoginFragment newInstance() {\n return new LoginFragment();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public LoginPanel(Controller theController) {\n\t\tsuper();\n\t\tmyController = theController;\n\t\tusername = new JTextField();\n\t\tpassword = new JPasswordField();\n\t\tsubmit = new JButton(\"Login\");\n\t\tcreate();\n\t}",
"public UserLoginDAOImpl() {\r\n\r\n }",
"public Login() {\n initComponents();\n \n }",
"public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }",
"public login() {\r\n\t\tsuper();\r\n\t}",
"Login() { \n }",
"public Bean() {\n\t}",
"public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }",
"@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}",
"public User(String login) {\n this.login = login;\n }",
"public SampleBean() {\n }",
"private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }",
"public void setBeanLogin(BeanLogin beanLogin) {\n\t\tthis.beanLogin = beanLogin;\n\t}",
"public User logInUser(final String login, final String password);",
"public ClasseBean() {\r\n }",
"public ClasseBean() {\r\n }",
"public AdminLogin() {\n initComponents();\n }",
"public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}",
"public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }",
"private LoginRepository(LoginDataSource dataSource) {\r\n this.dataSource = dataSource;\r\n }",
"public ClienteBean() {\n }"
]
| [
"0.80461526",
"0.79463995",
"0.78893423",
"0.67654103",
"0.65356725",
"0.6477261",
"0.6362951",
"0.63498324",
"0.6270335",
"0.6270335",
"0.6254965",
"0.62027246",
"0.6183065",
"0.61760646",
"0.6149468",
"0.6116354",
"0.60935503",
"0.60899353",
"0.60864687",
"0.6080295",
"0.5972035",
"0.59394336",
"0.59364235",
"0.5908724",
"0.588677",
"0.58744854",
"0.5855258",
"0.58232677",
"0.5822542",
"0.58113736",
"0.580718",
"0.58039397",
"0.57991207",
"0.5794492",
"0.57762444",
"0.5754276",
"0.57298",
"0.5719957",
"0.57179046",
"0.56864274",
"0.56796026",
"0.5678197",
"0.56517476",
"0.56450725",
"0.5635887",
"0.5631811",
"0.56303996",
"0.56261533",
"0.56239974",
"0.5621492",
"0.56046146",
"0.56043273",
"0.5583139",
"0.5577434",
"0.5573396",
"0.55721736",
"0.5570011",
"0.55662286",
"0.5557382",
"0.5544419",
"0.5533864",
"0.5527672",
"0.5503453",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.5497059",
"0.54935503",
"0.5483652",
"0.54597354",
"0.54524803",
"0.54511195",
"0.54347485",
"0.5422969",
"0.54157126",
"0.5393843",
"0.53772694",
"0.5372447",
"0.5364848",
"0.5361399",
"0.53593844",
"0.53461105",
"0.53461105",
"0.53417903",
"0.53330165",
"0.53100085",
"0.5308241",
"0.53077626"
]
| 0.73518366 | 3 |
=========================================================== Getter & Setter =========================================================== | public void setParallaxValue(final float pParallaxValueX, final float pParallaxValueY) {
this.mParallaxValueX = pParallaxValueX;
this.mParallaxValueY = pParallaxValueY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"private void assignment() {\n\n\t\t\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\npublic void setAttributes() {\n\t\n}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void setData() {\n\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"public void setdat()\n {\n }",
"@Override\n String get();",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private Value() {\n\t}",
"String setValue();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public String getName () { return this.name; }",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n public void init() {\n }",
"@Override\n protected void updateProperties() {\n }",
"@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"@Override\n public Object getValue()\n {\n return value;\n }",
"@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}",
"@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}",
"@Override\r\n public Object getValue() {\r\n return value;\r\n }",
"public int getValue() {\n/* 450 */ return this.value;\n/* */ }",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"public Object getValue() { return _value; }",
"public int\t\tget() { return value; }",
"@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 inizializza() {\n\n super.inizializza();\n }",
"public Change() {\n // Required for WebServices to work. Comment added to please Sonar.\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n public void onSetSuccess() {\n }",
"public Object get()\n {\n return m_internalValue;\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public int getValue() {\n return super.getValue();\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"@Override\n\tpublic String get() {\n\t\treturn null;\n\t}",
"public contrustor(){\r\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"@Override\n public String getName(){\n return Name; \n }",
"@Override\n\tprotected void initialize() {\n\n\t}"
]
| [
"0.6530707",
"0.6429242",
"0.6401354",
"0.638821",
"0.63802034",
"0.62655497",
"0.62175053",
"0.61730605",
"0.61435974",
"0.61435974",
"0.6134486",
"0.6133773",
"0.61026585",
"0.60648656",
"0.6047741",
"0.60232216",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.60173035",
"0.6016523",
"0.60161823",
"0.6005834",
"0.59986705",
"0.59904236",
"0.59794915",
"0.5975069",
"0.5975069",
"0.5975069",
"0.5975069",
"0.5975069",
"0.5975069",
"0.59746593",
"0.59694827",
"0.5964324",
"0.59561515",
"0.59543073",
"0.59543073",
"0.59543073",
"0.5935449",
"0.5935449",
"0.5929956",
"0.5925435",
"0.5925435",
"0.59245694",
"0.5923251",
"0.5918898",
"0.5917767",
"0.5917767",
"0.5914409",
"0.5912342",
"0.590722",
"0.590667",
"0.59035397",
"0.5893126",
"0.58885497",
"0.58780086",
"0.5866932",
"0.5859323",
"0.585784",
"0.5856032",
"0.5854469",
"0.5852022",
"0.5845922",
"0.5833384",
"0.58246213",
"0.5821681",
"0.5821681",
"0.581357",
"0.58111197",
"0.5810749",
"0.5805641",
"0.58025366",
"0.5793448",
"0.5793448",
"0.5793448",
"0.5793448",
"0.5793448",
"0.5792494",
"0.5780561",
"0.5776149",
"0.5776149",
"0.5776149",
"0.5770453",
"0.5770453",
"0.57643485",
"0.57628244",
"0.57601833",
"0.57568115",
"0.57568115",
"0.57568115",
"0.57547075",
"0.5754456",
"0.57512623",
"0.57452893",
"0.57431996",
"0.5736605",
"0.57356787",
"0.57232004"
]
| 0.0 | -1 |
=========================================================== Methods for/from SuperClass/Interfaces =========================================================== | @Override
public void onDraw(final GL10 pGL, final Camera pCamera) {
super.onDraw(pGL, pCamera);
final float parallaxValueX = this.mParallaxValueX;
final float parallaxValueY = this.mParallaxValueY;
final ArrayList<ParallaxBackground2dEntity> parallaxEntities = this.mParallaxEntities;
for(int i = 0; i < this.mParallaxEntityCount; i++) {
parallaxEntities.get(i).onDraw(pGL, parallaxValueX, parallaxValueY, pCamera);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"@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\tprotected void interr() {\n\t}",
"@Override\n\tpublic void anular() {\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 dosomething() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public boolean isInterface() { return false; }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public void Interior() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public interface PhrasingContent extends ContentInterface {\r\n\r\n}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public interface BaseObject {\n}",
"public interface AbstractC1953c50 {\n}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n void init() {\n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void interfaceMethod() {\n\t\tSystem.out.println(\"childClass - interfaceMethod\");\r\n\t\tSystem.out.println(\"Val of variable from interface: \" + DemoInterface.val );\r\n\t}",
"@Override\n public void init() {\n }",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}",
"@Override // opcional\n public void init(){\n\n }",
"public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public interface BaseItem {\n}",
"public interface AbstractC03680oI {\n}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"public interface AbstractC2502fH1 extends IInterface {\n}",
"@Override\n public String toString() {\n return (super.toString());\n\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"public InterfaceAbout() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\n public String toString () {\n return super.toString();\n }",
"@Override\n public void init() {}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void accept(Visitor visitor) {\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 }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"public interface Position {}",
"private interface Base {\n\t\tString getId();\n\t\tvoid setId(String identifier);\n\t\tboolean isValid();\n\t\tvoid setValid(boolean valid);\n\t}",
"public void buildSuperInterfacesInfo() {\n\t\twriter.writeSuperInterfacesInfo();\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"@Override\n\t\tpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces) \n\t\t{\n\t\t\tsuper.visit(version, Constants.ACC_PUBLIC, className, (String)null, this.superType.getInternalName(), interfaces);\n\t\t}",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\n public void init() {\n\n super.init();\n\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}"
]
| [
"0.66493845",
"0.6629024",
"0.6452968",
"0.642971",
"0.63373286",
"0.63248324",
"0.63248324",
"0.62520915",
"0.62315",
"0.6216611",
"0.61964023",
"0.61958927",
"0.6175072",
"0.6166632",
"0.61429137",
"0.61355686",
"0.6113214",
"0.61115307",
"0.61108357",
"0.6107379",
"0.6069922",
"0.60681385",
"0.6065376",
"0.6065376",
"0.6059947",
"0.6057818",
"0.60497934",
"0.6041445",
"0.6036967",
"0.6026836",
"0.6023866",
"0.6013921",
"0.6004279",
"0.6000575",
"0.5985361",
"0.5984514",
"0.5981644",
"0.59810567",
"0.5980259",
"0.59587705",
"0.5947474",
"0.5942499",
"0.59375465",
"0.5935501",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.59342206",
"0.592891",
"0.5926192",
"0.5923708",
"0.59022397",
"0.59022397",
"0.59022397",
"0.5895244",
"0.5890791",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5889728",
"0.5882323",
"0.5879652",
"0.5872507",
"0.58546823",
"0.5853801",
"0.5851837",
"0.5850127",
"0.5850127",
"0.5850127",
"0.58495927",
"0.584615",
"0.5841367",
"0.5839545",
"0.5839471",
"0.58363384",
"0.5836092",
"0.5830751",
"0.58264405"
]
| 0.0 | -1 |
The Update interface provides the public APIs to execute the spatial type update operations. | public interface Update extends SpatialQuery {
/**
* Add a restriction to filter the update operation.
*
* @param type
* The {@link RestrictionType}.
* @param value
* The property value for the restriction type.
*/
public abstract void addRestriction(RestrictionType type, String value);
/**
* Returns a list with restrictions of this update query.
*
* @return Returns a list with {@link RestrictionImpl}.
*/
public abstract RestrictionMap getRestrictions();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update(int updateType);",
"void update(Type type);",
"UpdateType updateType();",
"interface Update {}",
"interface Update {\n\n }",
"protected abstract void update();",
"protected abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"abstract public void update();",
"public void onUpdate(Statement update, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"public void executeUpdate();",
"public void update(){}",
"public void update(){}",
"public abstract void updateLocations();",
"void executeUpdate();",
"protected abstract void update();",
"public abstract void update ();",
"@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}",
"public abstract void Update();",
"public abstract void Update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update() {}",
"public abstract void update(Input input);",
"void update(T objectToUpdate);",
"public void update() ;",
"@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}",
"UpdateType createUpdateType();",
"public void update(K id, Update<P> update);",
"public void update() {\n }",
"public void update() {\n\n }",
"public void update() {\n\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}",
"public interface Updateable {\n public void update();\n}",
"void update(Location location);",
"public void updateLocation();",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithCancelRequested,\n UpdateStages.WithState,\n UpdateStages.WithReturnAddress,\n UpdateStages.WithReturnShipping,\n UpdateStages.WithDeliveryPackage,\n UpdateStages.WithLogLevel,\n UpdateStages.WithBackupDriveManifest,\n UpdateStages.WithDriveList {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n JobResponse apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n JobResponse apply(Context context);\n }",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithSku,\n UpdateStages.WithOsType,\n UpdateStages.WithDiskSizeGB,\n UpdateStages.WithEncryptionSettingsCollection,\n UpdateStages.WithEncryption {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Snapshot apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Snapshot apply(Context context);\n }",
"void update(T t);",
"public interface Updatable {\n\n\tpublic void update(Simulation simulation);\n\tpublic void update(double x, double y);\n\n}",
"Update createUpdate();",
"public Weather update(Weather weather);",
"public abstract void update(Object obj) ;",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"void update(Information info);",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"@Override\n\tpublic void update() { }",
"public abstract int execUpdate(String query) ;",
"@Override\n public void updateGeneric() {\n if (getRange() <= 0)\n DistanceSensorNonOpIssue.reportIssue(this, getSubsystemName());\n else\n DistanceSensorNonOpIssue.resolveIssue(this);\n }",
"interface Update\n extends UpdateStages.WithBranch,\n UpdateStages.WithFolderPath,\n UpdateStages.WithAutoSync,\n UpdateStages.WithPublishRunbook,\n UpdateStages.WithSecurityToken,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n SourceControl apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n SourceControl apply(Context context);\n }",
"public void update() {\n\t\t\n\t}",
"public void updateEntity();",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"void update();",
"void update();",
"void update();",
"void update();",
"void update();",
"void update();",
"void update();",
"void update();",
"interface Update\n extends UpdateStages.WithSource,\n UpdateStages.WithDestination,\n UpdateStages.WithExpirationTimeIfNotActivatedUtc,\n UpdateStages.WithFilter,\n UpdateStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n EventChannel apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n EventChannel apply(Context context);\n }",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithAutoShutdownProfile,\n UpdateStages.WithConnectionProfile,\n UpdateStages.WithVirtualMachineProfile,\n UpdateStages.WithSecurityProfile,\n UpdateStages.WithRosterProfile,\n UpdateStages.WithLabPlanId,\n UpdateStages.WithTitle,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Lab apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Lab apply(Context context);\n }",
"abstract void updateStructure();",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"public void update(){\r\n }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"public interface UpdateListener {\n public void updateLocation(Location location);\n}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}"
]
| [
"0.6993633",
"0.68149644",
"0.6771781",
"0.64584756",
"0.639047",
"0.6341483",
"0.6341483",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.63276136",
"0.6305101",
"0.62685394",
"0.6264549",
"0.62370205",
"0.62370205",
"0.62135965",
"0.62129",
"0.6169961",
"0.6134611",
"0.61020136",
"0.6067314",
"0.6067314",
"0.60435146",
"0.60435146",
"0.60435146",
"0.60435146",
"0.60435146",
"0.60435146",
"0.60435146",
"0.6004567",
"0.5987973",
"0.59202826",
"0.5916516",
"0.587693",
"0.58723336",
"0.5857228",
"0.58441746",
"0.5798112",
"0.5798112",
"0.5795498",
"0.5795498",
"0.5795498",
"0.5783053",
"0.5777433",
"0.5770459",
"0.5769558",
"0.5766932",
"0.576183",
"0.5760127",
"0.5744845",
"0.57406694",
"0.57382154",
"0.57381076",
"0.57381076",
"0.5730908",
"0.572992",
"0.572992",
"0.572992",
"0.572992",
"0.57167566",
"0.5707784",
"0.57039684",
"0.5678038",
"0.56704956",
"0.5669171",
"0.5663481",
"0.5663481",
"0.5663481",
"0.5663481",
"0.5663481",
"0.5663481",
"0.5643973",
"0.5643973",
"0.5643973",
"0.5643973",
"0.5643973",
"0.5643973",
"0.5643973",
"0.5643973",
"0.5642959",
"0.56299704",
"0.5615433",
"0.5604684",
"0.5604684",
"0.5604684",
"0.5601642",
"0.560106",
"0.560106",
"0.55860585",
"0.55836767",
"0.5581623"
]
| 0.7340919 | 0 |
This method is called before the controller | @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
List<String> driver_urls = new ArrayList<String>();
List<String> officer_urls = new ArrayList<String>();
// TODO add url for driver can access
driver_urls.add("/api/notice/uuid/[^\\/]*$");
driver_urls.add("/api/notice/uuid/[^\\/]*/validate");
driver_urls.add("/api/notice/uuid/[^\\/]*/manual_validate");
driver_urls.add("/api/notice/uuid/[^\\/]*/manual_extend");
driver_urls.add("/api/notice/uuid/[^\\/]*/not_extend");
driver_urls.add("/api/notice/uuid/[^\\/]*/archive");
driver_urls.add("/api/payment/uuid/[^\\/]*$");
driver_urls.add("/api/payment/\\d+/paid$");
officer_urls = driver_urls;
// TODO add url for officer can access
officer_urls.add("/api/notice/initiate");
officer_urls.add("/api/license/\\d+");
officer_urls.add("/api/payment");
officer_urls.add("/api/payment/[^\\/]*$");
officer_urls.add("/api/notice");
officer_urls.add("/api/notice/[^\\/]*$");
officer_urls.add("/api/notice/status/manual_validate");
officer_urls.add("/api/notice/status/manual_extend");
officer_urls.add("/api/notice/uuid/[^\\/]*/officer/\\d+$");
officer_urls.add("/api/notice/officer/\\d+/claimed");
officer_urls.add("/api/notice/uuid/[^\\/]*/officer/\\d+/approve/amount/\\d+$");
officer_urls.add("/api/notice/uuid/[^\\/]*/officer/\\d+/reject$");
officer_urls.add("/api/license/Renewable");
String authorization_token = null;
authorization_token = request.getHeader("Authorization");
System.out.println("authorization_token: " + authorization_token);
String requestPath = request.getRequestURI();
System.out.println("requestPath: " + requestPath);
System.out.println(request.getRequestURL());
if (authorization_token == null) {
response.setStatus(401);
response.getWriter().append("authorization required");
return false;
} else if (authorization_token.equals(Constant.DRIVER_AUTHORIZATION_TOKEN)) {
for (String driver_url : driver_urls) {
if (requestPath.matches(driver_url)) {
System.out.println(driver_url);
return true;
}
}
response.setStatus(401);
response.getWriter().append("failure of authorization of driver");
return false;
} else if (authorization_token.equals(Constant.OFFICER_AUTHORIZATION_TOKEN)) {
for (String officer_url : officer_urls) {
if (requestPath.matches(officer_url)) {
System.out.println(officer_url);
return true;
}
}
response.setStatus(401);
response.getWriter().append("failure of authorization of officer");
return false;
} else {
response.setStatus(401);
response.getWriter().append("authorization required");
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void beforeStart() {\n \n }",
"@Override\n public void beforeFirstLogic() {\n }",
"private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }",
"@Before\r\n\tpublic void before() {\r\n\t}",
"@Override\n @Before\n public void before() throws Exception {\n\n super.before();\n }",
"@Override\n public void beforeRender()\n {\n\n }",
"@Before\n public void before() {\n }",
"@Before\n public void before() {\n }",
"public void before() {\n }",
"public void before() {\n }",
"@Override\n\tpublic void beforeAction(String method, HttpServletRequest request, HttpServletResponse response) {\n\t\t// Default behavior : nothing to do \n\t}",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"@Override\n public void preRun() {\n super.preRun();\n }",
"public void before()\n {\n adapter = context.getBean(HandlerAdapter.class);\n }",
"@Before\n\tpublic static void beforeCRUDActions() throws Throwable\n\t{\n\t\tSmartController.beforeActions();\n\t}",
"@Before\r\n public void before() throws Exception {\r\n }",
"@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}",
"@Before\r\n\tpublic void init() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tmockMvc = MockMvcBuilders.standaloneSetup(tokenController).build();\r\n\r\n\t\t// mockMvc = MockMvcBuilders.webAppContextSetup(context).build();\r\n\t}",
"@Before\r\n\tpublic void setup() {\r\n\t\tthis.mockMvc = MockMvcBuilders.standaloneSetup(brickController).build();\r\n\t}",
"public void beforeInit(){\n System.out.println(\"## beforeInit() - Before Init - Called by Bean Post Processor\");\n }",
"protected void beforeParentInit() {\n // by default do nothing\n }",
"@Override\n public void onPre() {\n }",
"@Before\n\tpublic void initial() {\n\t\tmodele = new FractaleModele();\n\t\tcontroleur = new FractaleControler(modele);\n\t}",
"@Before\n public void init(){\n }",
"protected CityController() {\r\n\t}",
"@Override\n @Before\n public void before() {\n super.before();\n usersSearchByLastNameUrl = rootUrl + \"/users/search/findByLastName\";\n }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"protected abstract void before();",
"@Before\n @Override\n public void init() {\n }",
"@Before\n public void init() {\n }",
"default void beforeUse() {\n\t}",
"protected void onBeginRequest()\n\t{\n\t}",
"@Before\n\tpublic void init() {\n\t}",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void onStart() {\n \n }",
"ControllerContext() {\n\t\t// do nothing\n\t}",
"@Before\n public void setup(){\n MockitoAnnotations.initMocks(this);\n\n // create a standalone MVC Context to mocking\n mockMvc = MockMvcBuilders.standaloneSetup(customerController).build();\n }",
"@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}",
"protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }",
"@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}",
"public abstract void initController();",
"boolean InitController();",
"@BeforeMethod\n\tpublic void beforeMethod() {\n\t}",
"protected void onFirstUse() {}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Before\n public void SetUp()\n {\n Mockito.reset(userServiceMock);\n Mockito.clearInvocations(userServiceMock);\n mockMvc = MockMvcBuilders.webAppContextSetup(webConfiguration).build();\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"public void onStart() {\n /* do nothing - stub */\n }",
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"@Override\n\tpublic void pre()\n\t{\n\n\t}",
"@Override\n\t\t\tpublic void onStart()\n\t\t\t{\n\t\t\t\tsuper.onStart();\n\t\t\t}",
"protected void onPreCreateApplication() {\n\n\t}",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"@Override\n\t\tprotected void onStart() {\n\t\t\tsuper.onStart();\n\t\t}",
"@Override\r\n\tprotected void preInit() throws PageAuthException {\n\r\n\t}",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n public void onStart() {\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }",
"@Before\n public void setUp() {\n mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();\n }",
"public void onStart() {\n super.onStart();\n getStockVerification();\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"protected void runBeforeStep() {}",
"@Override\n protected void init(PageDto page, HttpServletRequest request, HttpServletResponse response, Model model) {\n\n }",
"void before();",
"void beforeRun();",
"@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}",
"@Override\r\n public void onStart() {\n super.onStart();\r\n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t}",
"@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}",
"protected void onStart ()\n\t{\n\t\tsuper.onStart ();\n\t}",
"@Override\n protected void before() throws Throwable {\n ClassLoader oldClassLoader = ClassLoaders.setContextClassLoader(STANDALONE.getClass().getClassLoader());\n try {\n Method before = STANDALONE.getClass().getDeclaredMethod(\"before\");\n before.setAccessible(true);\n before.invoke(STANDALONE);\n } finally {\n ClassLoaders.setContextClassLoader(oldClassLoader);\n }\n }",
"public void onStart() {\n }",
"@Before\n public void setUp()\n {\n Mockito.reset(memberServiceMock);\n\n mockMvc = MockMvcBuilders\n .webAppContextSetup(webApplicationContext)\n .apply(springSecurity())\n .build();\n }",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Before\n\tpublic void setup() throws Exception {\n\t\tthis.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();\n\t}",
"@Override\n\tpublic void preServe() {\n\n\t}",
"@Before\r\n\t public void setUp(){\n\t }",
"public void beforeInput() {\n }",
"public void beforeInput() {\n }"
]
| [
"0.7227185",
"0.71276283",
"0.7123808",
"0.7067083",
"0.6868699",
"0.67719805",
"0.67431223",
"0.67431223",
"0.66526616",
"0.66526616",
"0.6600267",
"0.6568491",
"0.6564925",
"0.64818317",
"0.6447012",
"0.6418965",
"0.6393057",
"0.6387394",
"0.63631415",
"0.6361623",
"0.6351304",
"0.63279074",
"0.6313584",
"0.6281046",
"0.6261741",
"0.6253041",
"0.62495714",
"0.624041",
"0.6231684",
"0.6229288",
"0.62258124",
"0.6225714",
"0.6201424",
"0.6200118",
"0.6200118",
"0.61904657",
"0.61880964",
"0.6171673",
"0.61703223",
"0.61534667",
"0.61516804",
"0.61465603",
"0.6140123",
"0.6138019",
"0.6135373",
"0.6122028",
"0.6122028",
"0.6109294",
"0.6087921",
"0.60818166",
"0.6065309",
"0.60632944",
"0.6061546",
"0.6057772",
"0.6056803",
"0.6052406",
"0.603515",
"0.6034911",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6034064",
"0.6033851",
"0.60307354",
"0.6023588",
"0.60222125",
"0.59946114",
"0.598998",
"0.5985832",
"0.59575063",
"0.594089",
"0.5940071",
"0.5929403",
"0.59232867",
"0.59232867",
"0.5922345",
"0.5922345",
"0.5922345",
"0.5922345",
"0.5922345",
"0.5920447",
"0.59161323",
"0.5915919",
"0.5913135",
"0.59111184",
"0.5910798",
"0.5910798",
"0.5910798",
"0.5910798",
"0.5910798",
"0.5908942",
"0.5889082",
"0.5886832",
"0.5875476",
"0.5871002",
"0.5871002"
]
| 0.0 | -1 |
adjust factory for generation gap pattern | private void adjustFactory(IFile iFile, ResourceSet resourceSet) {
IJavaProject javaProject = JavaCore.create(iFile.getProject());
try {
for (IClasspathEntry cpEntry : javaProject.getRawClasspath()) {
if (cpEntry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
//to register newly generated code;
updateClaspath(new File(iFile.getWorkspace().getRoot().getLocation().toString() +
cpEntry.getPath().toString()), "", resourceSet);
}
}
} catch (JavaModelException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void generate();",
"public abstract Animal[] createGeneration (int count, Animal[] lastGeneration);",
"protected abstract Object makeNew(final String prefix, final int seqno);",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 13:04:41.591 -0500\", hash_original_method = \"FA063F91D44E7D4042E286E05194EEE9\", hash_generated_method = \"669017D820CEDFE100C3C214E1FCE2C7\")\n \nstatic Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String label) {\n float[] pts;\n Instance instance;\n if (sequenceType == GestureStore.SEQUENCE_SENSITIVE) {\n pts = temporalSampler(orientationType, gesture);\n instance = new Instance(gesture.getID(), pts, label);\n instance.normalize();\n } else {\n pts = spatialSampler(gesture);\n instance = new Instance(gesture.getID(), pts, label);\n }\n return instance;\n }",
"public GseqFactoryImpl() {\n\t\tsuper();\n\t}",
"For createFor();",
"public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }",
"Between createBetween();",
"TGGRule createTGGRule();",
"void generate() {\n rouletteSelection();\n do {\n updateParents();\n crossover();\n mutation();\n } while (!isValidOffset());\n insertOffspring();\n }",
"public abstract void generate();",
"public interface Generator\n{\n /**\n * Returns a new Shape instance according to this generator's \n * strategy.\n * @param width\n * the width the game grid\n * @return \n * a new Shape \n */\n Shape getNext(int width);\n}",
"protected void create() {\n\t\t_segments = _geneticCode.getNGenes() * _geneticCode.getSymmetry();\n\t\t_segColor = new Color[_segments];\n\t\tfor (int i = 0; i < _segments; i++)\n\t\t\t_segColor[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getColor();\n\t\t_segBranch = new int[_segments];\n\t\tfor (int j = 0; j < _segments; j++)\n\t\t\t_segBranch[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getBranch();\n\t\t_segredReaction = new int[_segments];\n\t\tfor (int a = 0; a < _segments; a++)\n\t\t\t_segredReaction[a] = _geneticCode.getGene(a%_geneticCode.getNGenes()).getredReaction();\n\t\t_seggreenReaction = new int[_segments];\n\t\tfor (int b = 0; b < _segments; b++)\n\t\t\t_seggreenReaction[b] = _geneticCode.getGene(b%_geneticCode.getNGenes()).getgreenReaction();\n\t\t_segblueReaction = new int[_segments];\n\t\tfor (int c = 0; c < _segments; c++)\n\t\t\t_segblueReaction[c] = _geneticCode.getGene(c%_geneticCode.getNGenes()).getblueReaction();\n\t\t_segplagueReaction = new int[_segments];\n\t\tfor (int d = 0; d < _segments; d++)\n\t\t\t_segplagueReaction[d] = _geneticCode.getGene(d%_geneticCode.getNGenes()).getplagueReaction();\n\t\t_segwhiteReaction = new int[_segments];\n\t\tfor (int e = 0; e < _segments; e++)\n\t\t\t_segwhiteReaction[e] = _geneticCode.getGene(e%_geneticCode.getNGenes()).getwhiteReaction();\n\t\t_seggrayReaction = new int[_segments];\n\t\tfor (int f = 0; f < _segments; f++)\n\t\t\t_seggrayReaction[f] = _geneticCode.getGene(f%_geneticCode.getNGenes()).getgrayReaction();\n\t\t_segdefaultReaction = new int[_segments];\n\t\tfor (int g = 0; g < _segments; g++)\n\t\t\t_segdefaultReaction[g] = _geneticCode.getGene(g%_geneticCode.getNGenes()).getdefaultReaction();\n\t\t_segmagentaReaction = new int[_segments];\n\t\tfor (int h = 0; h < _segments; h++)\n\t\t\t_segmagentaReaction[h] = _geneticCode.getGene(h%_geneticCode.getNGenes()).getmagentaReaction();\n\t\t_segpinkReaction = new int[_segments];\n\t\tfor (int i = 0; i < _segments; i++)\n\t\t\t_segpinkReaction[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getpinkReaction();\n\t\t_segcoralReaction = new int[_segments];\n\t\tfor (int j = 0; j < _segments; j++)\n\t\t\t_segcoralReaction[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getcoralReaction();\n\t\t_segorangeReaction = new int[_segments];\n\t\tfor (int k = 0; k < _segments; k++)\n\t\t\t_segorangeReaction[k] = _geneticCode.getGene(k%_geneticCode.getNGenes()).getorangeReaction();\n\t\t_segbarkReaction = new int[_segments];\n\t\tfor (int l = 0; l < _segments; l++)\n\t\t\t_segbarkReaction[l] = _geneticCode.getGene(l%_geneticCode.getNGenes()).getbarkReaction();\n\t\t_segvioletReaction = new int[_segments];\n\t\tfor (int m = 0; m < _segments; m++)\n\t\t\t_segvioletReaction[m] = _geneticCode.getGene(m%_geneticCode.getNGenes()).getvioletReaction();\n\t\t_segvirusReaction = new int[_segments];\n\t\tfor (int n = 0; n < _segments; n++)\n\t\t\t_segvirusReaction[n] = _geneticCode.getGene(n%_geneticCode.getNGenes()).getvirusReaction();\n\t\t_segmaroonReaction = new int[_segments];\n\t\tfor (int o = 0; o < _segments; o++)\n\t\t\t_segmaroonReaction[o] = _geneticCode.getGene(o%_geneticCode.getNGenes()).getmaroonReaction();\n\t\t_segoliveReaction = new int[_segments];\n\t\tfor (int p = 0; p < _segments; p++)\n\t\t\t_segoliveReaction[p] = _geneticCode.getGene(p%_geneticCode.getNGenes()).getoliveReaction();\n\t\t_segmintReaction = new int[_segments];\n\t\tfor (int q = 0; q < _segments; q++)\n\t\t\t_segmintReaction[q] = _geneticCode.getGene(q%_geneticCode.getNGenes()).getmintReaction();\n\t\t_segcreamReaction = new int[_segments];\n\t\tfor (int r = 0; r < _segments; r++)\n\t\t\t_segcreamReaction[r] = _geneticCode.getGene(r%_geneticCode.getNGenes()).getcreamReaction();\n\t\t_segspikeReaction = new int[_segments];\n\t\tfor (int s = 0; s < _segments; s++)\n\t\t\t_segspikeReaction[s] = _geneticCode.getGene(s%_geneticCode.getNGenes()).getspikeReaction();\n\t\t_seglightblueReaction = new int[_segments];\n\t\tfor (int t = 0; t < _segments; t++)\n\t\t\t_seglightblueReaction[t] = _geneticCode.getGene(t%_geneticCode.getNGenes()).getlightblueReaction();\n\t\t_segochreReaction = new int[_segments];\n\t\tfor (int u = 0; u < _segments; u++)\n\t\t\t_segochreReaction[u] = _geneticCode.getGene(u%_geneticCode.getNGenes()).getochreReaction();\n\t\t_seglightbrownReaction = new int[_segments];\n\t\tfor (int v = 0; v < _segments; v++)\n\t\t\t_seglightbrownReaction[v] = _geneticCode.getGene(v%_geneticCode.getNGenes()).getlightbrownReaction();\n\t\t_segbrownReaction = new int[_segments];\n\t\tfor (int w = 0; w < _segments; w++)\n\t\t\t_segbrownReaction[w] = _geneticCode.getGene(w%_geneticCode.getNGenes()).getbrownReaction();\n\t\t_segsickReaction = new int[_segments];\n\t\tfor (int x = 0; x < _segments; x++)\n\t\t\t_segsickReaction[x] = _geneticCode.getGene(x%_geneticCode.getNGenes()).getsickReaction();\n\t\t_segskyReaction = new int[_segments];\n\t\tfor (int y = 0; y < _segments; y++)\n\t\t\t_segskyReaction[y] = _geneticCode.getGene(y%_geneticCode.getNGenes()).getskyReaction();\n\t\t_seglilacReaction = new int[_segments];\n\t\tfor (int z = 0; z < _segments; z++)\n\t\t\t_seglilacReaction[z] = _geneticCode.getGene(z%_geneticCode.getNGenes()).getlilacReaction();\n\t\t_segiceReaction = new int[_segments];\n\t\tfor (int a = 0; a < _segments; a++)\n\t\t\t_segiceReaction[a] = _geneticCode.getGene(a%_geneticCode.getNGenes()).geticeReaction();\n\t\t_segsilverReaction = new int[_segments];\n\t\tfor (int b = 0; b < _segments; b++)\n\t\t\t_segsilverReaction[b] = _geneticCode.getGene(b%_geneticCode.getNGenes()).getsilverReaction();\n\t\t_segfireReaction = new int[_segments];\n\t\tfor (int c = 0; c < _segments; c++)\n\t\t\t_segfireReaction[c] = _geneticCode.getGene(c%_geneticCode.getNGenes()).getfireReaction();\n\t\t_segfriendReaction = new int[_segments];\n\t\tfor (int d = 0; d < _segments; d++)\n\t\t\t_segfriendReaction[d] = _geneticCode.getGene(d%_geneticCode.getNGenes()).getfriendReaction();\n\t\t_seggreenbrownReaction = new int[_segments];\n\t\tfor (int e = 0; e < _segments; e++)\n\t\t\t_seggreenbrownReaction[e] = _geneticCode.getGene(e%_geneticCode.getNGenes()).getgreenbrownReaction();\n\t\t_segspikepointReaction = new int[_segments];\n\t\tfor (int f = 0; f < _segments; f++)\n\t\t\t_segspikepointReaction[f] = _geneticCode.getGene(f%_geneticCode.getNGenes()).getspikepointReaction();\n\t\t_startPointX = new int[_segments];\n\t\t_startPointY = new int[_segments];\n\t\t_endPointX = new int[_segments];\n\t\t_endPointY = new int[_segments];\n\t\t_m1 = new double[_segments];\n\t\t_m2 = new double[_segments];\n\t\t_m = new double[_segments];\n\t\t_mphoto = new double[_segments];\n\t\tx1 = new int[_segments];\n\t\ty1 = new int[_segments];\n\t\tx2 = new int[_segments];\n\t\ty2 = new int[_segments];\n\t}",
"LengthSmaller createLengthSmaller();",
"private BoatBean createBoatAtThisPointWithThisSize(PointBean point, int newBoatSize) {\n\t\t// Trouver une direction random et tester dans cette direction\n\t\tDirection direction = Direction.values()[Util.getRandomInt(0, 3)];\n\t\tBoatBean newBoat = null;\n\t\tint durectionTriedNumber = 0;\n\t\twhile ((durectionTriedNumber < 4) && (newBoat == null)) {\n\t\t\tBoatFactory boatFactory = new BoatFactory(newBoatSize, point, direction);\n\t\t\tnewBoat = boatFactory.CreateBoat();\n\t\t\tif (!(isBoatGetValidPosition(newBoat))) {\n\t\t\t\tnewBoat = null;\n\t\t\t\tdirection.nexDirection();\n\t\t\t\tdurectionTriedNumber++;\n\t\t\t}\n\n\t\t}\n\t\treturn newBoat;\n\t}",
"private void generateBreaks() {\n cexService.checkOrCreateBreakPoint();\n //Todos los dias menos el miercoles que es con el que va a compartir semana.\n List<DayOfWeek> dayRandomList = Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.TUESDAY, DayOfWeek.THURSDAY,\n DayOfWeek.FRIDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY);\n TouristPointDTO randomBreakShift = new TouristPointDTO(touristPointRepository.findAll().stream()\n .filter(touristPoint -> touristPoint.getName().equals(\"Descanso Aleatorio\")).findFirst().get());\n //No deberiamos dar mas de x dias de bonus, porque podemos crear tantos descansos que no haya nadie para\n // trabajar en algun momento dado.\n if (lastWeekDatabase != null) {\n for (Day dayLastWeek : lastWeekDatabase.getDays()) {\n for (ShiftDTO shiftLastWeek : dayLastWeek.getShifts()\n .stream()\n .filter(shift -> shift.getPoint().getName().equals(\"Descanso\"))\n .map(ShiftDTO::new)\n .collect(Collectors.toList())) {\n ShiftDTO breakShift = new ShiftDTO();\n breakShift.setWorker(shiftLastWeek.getWorker());\n breakShift.setPoint(shiftLastWeek.getPoint());\n ShiftDTO breakShift2 = new ShiftDTO();\n breakShift2.setWorker(shiftLastWeek.getWorker());\n breakShift2.setPoint(shiftLastWeek.getPoint());\n ShiftDTO breakShift3 = new ShiftDTO();\n breakShift3.setWorker(shiftLastWeek.getWorker());\n breakShift3.setPoint(shiftLastWeek.getPoint());\n switch (dayLastWeek.getDayOfWeek()) {\n case MONDAY:\n addBreakDay(breakShift, DayOfWeek.WEDNESDAY);\n break;\n case TUESDAY:\n breakShift.setPoint(randomBreakShift);\n addBreakDay(breakShift, dayRandomList.stream()\n .skip((int) (dayRandomList.size() * Math.random()))\n .findFirst().get());\n break;\n case WEDNESDAY:\n addBreakDay(breakShift, DayOfWeek.THURSDAY);\n addBreakDay(breakShift3, DayOfWeek.FRIDAY);\n break;\n case THURSDAY:\n addBreakDay(breakShift, DayOfWeek.SATURDAY);\n break;\n case FRIDAY:\n addBreakDay(breakShift, DayOfWeek.SUNDAY);\n break;\n case SATURDAY:\n addBreakDay(breakShift, DayOfWeek.MONDAY);\n break;\n case SUNDAY:\n addBreakDay(breakShift, DayOfWeek.TUESDAY);\n break;\n }\n }\n }\n } else {\n List<TouristInformer> touristInformers = touristInformerRepository.findAll().stream()\n .filter(touristInformer -> touristInformer.getDismissDate() == null).collect(Collectors.toList());\n List<Team> teams = teamRepository.findAll();\n TouristPointDTO breakPoint = new TouristPointDTO(touristPointRepository.findAll().stream()\n .filter(touristPoint -> touristPoint.getName().equals(\"Descanso\")).findFirst().get());\n for (Team team : teams) {\n DayOfWeek lastStartBreak = DayOfWeek.MONDAY;\n for (TouristInformerDTO touristInformer : touristInformers.stream()\n .filter(touristInformer -> touristInformer.getTeam().equals(team))\n .map(TouristInformerDTO::new)\n .collect(Collectors.toList())) {\n ShiftDTO shift1 = new ShiftDTO();\n shift1.setWorker(touristInformer);\n shift1.setPoint(breakPoint);\n ShiftDTO shift2 = new ShiftDTO();\n shift2.setWorker(touristInformer);\n shift2.setPoint(breakPoint);\n switch (lastStartBreak) {\n case MONDAY:\n addBreakDay(shift1, DayOfWeek.WEDNESDAY);\n shift2.setPoint(randomBreakShift);\n addBreakDay(shift2, dayRandomList.stream()\n .skip((int) (dayRandomList.size() * Math.random()))\n .findFirst().get());\n lastStartBreak = DayOfWeek.WEDNESDAY;\n break;\n case WEDNESDAY:\n addBreakDay(shift1, DayOfWeek.THURSDAY);\n addBreakDay(shift2, DayOfWeek.FRIDAY);\n lastStartBreak = DayOfWeek.THURSDAY;\n break;\n case THURSDAY:\n addBreakDay(shift1, DayOfWeek.SATURDAY);\n addBreakDay(shift2, DayOfWeek.SUNDAY);\n lastStartBreak = DayOfWeek.SATURDAY;\n break;\n case SATURDAY:\n addBreakDay(shift1, DayOfWeek.MONDAY);\n addBreakDay(shift2, DayOfWeek.TUESDAY);\n lastStartBreak = DayOfWeek.MONDAY;\n break;\n }\n }\n }\n }\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"Sequence createSequence();",
"Reproducible newInstance();",
"@Override\n\tprotected void createInitial()\n\t{\n\t\tLoop<Bar> loop = new Loop();\n\t\tedges.add( loop );\n\n\t\tfor ( Pair<Point2d, Point2d> pair : new ConsecutivePairs<Point2d>( Arrays.asList(\n\t\t\t\tnew Point2d( 250, 100 ),\n\t\t\t\tnew Point2d( 350, 100 ),\n\t\t\t\tnew Point2d( 350, 250 ),\n\t\t\t\tnew Point2d( 500, 250 ),\n\t\t\t\tnew Point2d( 500, 350 ),\n\t\t\t\tnew Point2d( 350, 350 ),\n\t\t\t\tnew Point2d( 350, 500 ),\n\t\t\t\tnew Point2d( 250, 500 ),\n\t\t\t\tnew Point2d( 250, 350 ),\n\t\t\t\tnew Point2d( 100, 350 ),\n\t\t\t\tnew Point2d( 100, 250 ),\n\t\t\t\tnew Point2d( 250, 250 ) ), true ) )\n\t\t{\n\t\t\tBar b = new Bar( pair.first(), pair.second() );\n\t\t\tloop.append( b );\n\t\t\tsetup(b, 0.7);\n\t\t}\n\n\t\tLoop<Bar> loop2 = new Loop();\n\t\tedges.add( loop2 );\n\n\t\tfor ( Pair<Point2d, Point2d> pair : new ConsecutivePairs<Point2d>( Arrays.asList(\n\t\t\t\tnew Point2d( 330, 330),\n\t\t\t\tnew Point2d( 330, 270 ),\n\t\t\t\tnew Point2d( 270, 270 ),\n\t\t\t\tnew Point2d( 270, 330 )\n\t\t), true ) )\n\t\t{\n\t\t\tBar b = new Bar( pair.first(), pair.second() );\n\t\t\tloop2.append( b );\n\t\t\tsetup(b, 0.7);\n\t\t}\n\t}",
"protected a generateDefaultLayoutParams() {\n return new a();\n }",
"@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"@Override\n\tpublic void create() {\n\n\t}",
"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}",
"Padding createPadding();",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"Offset createOffset();",
"Multiplication createRandomMultiplication();",
"Multiplication createRandomMultiplication();",
"Margin createMargin();",
"private GlobeAccessPointRecord getRandomGAP()\n {\n int n = _random.nextInt();\n\n if (n < 0) {\n n *= -1;\n }\n\n return _gapList.get(n % _gapList.size());\n }",
"int getNextGap(int gap)\n {\n gap = (gap*10)/13;\n if (gap < 1)\n return 1;\n return gap;\n }",
"protected void createDslfactoryAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/dsl/2007/dslfactory\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"trackResourceModification\", \"true\",\n\t\t\t \"useUUIDs\", \"false\",\n\t\t\t \"useIDAttributes\", \"true\",\n\t\t\t \"extensibleProviderFactory\", \"true\",\n\t\t\t \"childCreationExtenders\", \"true\"\n\t\t });\n\t}",
"public void generate() {\n\t\tMirror m = new Mirror();\n\t\tpoints.addAll(m.fish());\n\t\twhile (remainingPoints > 0) {\n\t\t\titerate();\n\t\t\tremainingPoints--;\n\t\t}\n\n\t}",
"public void generate() {\n\t}",
"private StickFactory() {\n\t}",
"abstract public Range createRange();",
"AngleSmaller createAngleSmaller();",
"public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }",
"private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }",
"public void create() {\n\t\t\n\t}",
"private T generateShifted(Vector2 origin, int quantity) {\n Vector2 direction = new Vector2(random(), random());\n float r = getSize(quantity);\n return generate(origin, direction, quantity, r);\n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"private RandomLocationGen() {}",
"public ScribbleFactoryImpl()\n {\n\t\tsuper();\n\t}",
"public void createSpaceClasses(){\n\t//add the number of classe demand in a list of superchannel\n\t\tspaceSC_List = new ArrayList<OpticalSuperChannel>();\n\t\tfor ( int i = 1 ; i < this.spatialDimension+1 ; i++ ) {\n\t\t\tspaceSC_List.add(new OpticalSuperChannel( i , this.signalBw, this.channelSpacing, this.bandGuard,\n\t\t\t\t\tthis.slotBw, this.modulationFormat));\n\t\t}\n\n\n\t}",
"public PageGeneratorLanguareFactoryImpl()\n {\n super();\n }",
"public interface DaifuWayFactory {\n TwoStepDaifu createTwoStepDaifu();\n}",
"public List<PuzzleInstance> generateInstance() {\n\n final String[] POSITION = {\"Up\", \"Down\", \"Left\", \"Right\"};// In this order\n List<PuzzleInstance> puzzleInstances = new ArrayList<>();\n\n for (String traverse : POSITION) {\n int tempI=-1, tempJ=-1;\n switch (traverse) {\n case \"Up\":\n tempI = row - 1; \n tempJ = coloum;\n break;\n case \"Down\":\n tempI = row + 1; \n tempJ = coloum;\n break;\n case \"Left\":\n tempI = row; \n tempJ = coloum - 1;\n break;\n case \"Right\":\n tempI = row; \n tempJ = coloum + 1;\n break;\n }\n \n if((tempI < 0 || tempJ <0)|| (tempI >= rowColoumSize || tempJ >=rowColoumSize )){\n System.out.println(\"Out of bound\");\n // skip it nothing to add in the list\n }else{\n final Integer[][] puzzleGenerator = cloneArray(puzzle); \n int temp = puzzleGenerator [tempI][tempJ];\n puzzleGenerator[tempI][tempJ] = 0;\n puzzleGenerator[row][coloum] = temp;\n \n PuzzleInstance puzzleInstance = new PuzzleInstance(cloneArray(puzzleGenerator),rowColoumSize,cost_of_path+1,traverse, this);\n puzzleInstances.add(puzzleInstance); \n }\n }\n\n return puzzleInstances;\n \n \n }",
"@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }",
"public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"public Scenario generate() {\n\n //generate random number of Passenger(all human)\n ArrayList liPsg = new ArrayList();\n int totalNumOfPsg = (int) (rd.nextDouble() * PassengerCountMax + PassengerCountMin); //at least one Psg\n for (int i = 0; i < totalNumOfPsg; i++) {\n liPsg.add(getRandomPerson());\n }\n //System.out.println(\"PassengerNum= \"+totalNumOfPsg);\n\n\n //generate random number of Pedestrians(with Max 5) & allocate person+animal randomly(human+animal)\n ArrayList liPdt = new ArrayList();\n int totalNumOfPdst = (int) (rd.nextDouble() * PedestrianCountMax + PedestrianCountMin);//at least one Pdg\n int NumOfPerson = (int) Math.round(rd.nextDouble() * totalNumOfPdst);//if only 1 pdt,along with randomDouble<0.5 , 0.4x*1 rounded=0, will only an animal\n //so if you are random being in pdt but pdt only an animal, you neither wont be in scenario, so your negative probability in scenario is higher.\n int NumOfAnimal = totalNumOfPdst - NumOfPerson;\n for (int i = 0; i < NumOfPerson; i++) {\n liPdt.add(getRandomPerson());\n }\n for (int i = 0; i < NumOfAnimal; i++) {\n liPdt.add(getRandomAnimal());\n }\n //System.out.println(\"PedestrianNum= \"+totalNumOfPdst+\" with \"+NumOfPerson+\" human and \"+NumOfAnimal+\" animals\");\n\n\n //allocating where you are, 0=you absence & do nothing, 1=you in car, 2=you on road !!!!yeah happy solving\n int allocate_of_user = (int) Math.round(rd.nextDouble() * 2);\n if (allocate_of_user == 1) {\n ((Person) liPsg.get(0)).setAsYou(true); //set the first psg is you. !!!!!important Cast Obj into Person!!!!\n } else if (allocate_of_user == 2) {\n for (int i = 0; i < liPdt.size(); i++) {\n if (liPdt.get(i) instanceof Person) {//check whether a person\n ((Person) liPdt.get(i)).setAsYou(true);\n break; // only set once than break rather than set all of people of pdt is you\n }\n }\n }\n\n //Scenario(ArrayList<Character> passengers, ArrayList<Character> pedestrians, boolean isLegalCrossing)\n S = new Scenario(liPsg, liPdt, rd.nextBoolean()); //isLegalCrossing = red or green light;\n return S;\n }",
"public Graph1 pad () { return new Graph1Pad (C,this); }",
"public GPHolder createDBBasedGP(Node seed){\r\n\r\n\t\t//Setup allNodes and nodesPool\r\n\t\tif (seed == null){\r\n\t\t\t//Randomly pick the very first node if the input nodes list is blank\r\n\t\t\tNode node = pickRandomNode();\r\n\t\t\tallNodes.add(node);\r\n\t\t} else {\r\n\t\t\t//If the input nodes list is not blank, then add the input nodes list \r\n\t\t\t//to nodePool and allNodes\r\n\t\t\tallNodes.add(seed);\r\n\t\t}\r\n\r\n\t\t//Gather the nodesfor the patterns\r\n\t\tphaseOne();\r\n\r\n\t\t//For all pairs of nodes in allNodes, if a relationship exists between them\r\n\t\t//in the database, then ensure that relationship also exists in rels.\r\n\t\tphaseTwo();\r\n\r\n\t\t//Make sure that gp passes the minimum number of relationships requirement. \r\n\t\tint minRels = (int)Math.floor((allNodes.size()-1)*complete);\r\n\r\n\t\tif (rels.size() < minRels){\r\n\t\t\tSystem.out.println(\"failed here: \" + complete + \", \" + minRels + \" \" + rels.size() + \" \" + allNodes.size());\r\n\t\t\treturn null; \r\n\t\t}\r\n\r\n\r\n\t\t//Translate the allNodes and rels lists to GraphPattern\r\n\t\tGraphPattern gp = translateToGP(); \r\n\r\n\t\t//Generate the mutual exclusion constraints\r\n\t\tList<Pair<MyNode, MyNode>> mex = generateMex(gp.getNodes());\r\n\r\n\t\t//Generate the GPHolder\r\n\t\tthis.gpHolder = new GPHolder(gp, mex, new HashMap<String, MyNode>());\r\n\t\t\r\n\t\t//Check if result schema size is greater than the number of nodes\r\n\t\tif (resSize > gp.getNodes().size()){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t//Set the result schema\r\n\t\tList<MyNode> resultSchema = new ArrayList<MyNode>();\r\n\t\tresultSchema.addAll(gp.getNodes());\r\n\t\twhile(resultSchema.size() > resSize){\r\n\t\t\tresultSchema.remove(random.nextInt(resultSchema.size()));\r\n\t\t}\r\n\t\tthis.gpHolder.setResultSchema(resultSchema);\r\n\r\n\t\treturn this.gpHolder;\r\n\t}",
"Hazard createHazard();",
"PlanningFactory getFactory();",
"@Override\n\tpublic AbstractReine createReine() {\n\t\treturn new ReineSN();\n\t}",
"public abstract void create();",
"private void createBurgdorfPopulation(Scenario scenario, Random random, int numOrigins, Counts counts) {\n\t\tPopulationFactory populationFactory = scenario.getPopulation().getFactory();\n\t\t\n\t\tCount toBurgdorf023 = counts.getCount(Id.create(Astra023ToBurgdorf, Link.class));\n\t\tCount toBurgdorf182 = counts.getCount(Id.create(Astra182ToBurgdorf, Link.class));\n\t\tCount fromBurgdorf023 = counts.getCount(Id.create(Astra023FromBurgdorf, Link.class));\n\t\tCount fromBurgdorf182 = counts.getCount(Id.create(Astra182FromBurgdorf, Link.class));\n\n\t\tdouble[] toNorth = new double[24];\n\t\tdouble[] fromNorth = new double[24];\n\t\tdouble[] toSouth = new double[24];\n\t\tdouble[] fromSouth = new double[24];\n\t\t\n\t\t// from North to South\n\t\tlog.info(\"North to South\");\n\t\tfor (int i = 1; i <= 24; i++) {\n\t\t\tdouble delta = toBurgdorf182.getVolume(i).getValue() - fromBurgdorf023.getVolume(i).getValue();\n\t\t\tlog.info(\"\\thour \" + i + \" \" + delta);\n\t\t\t\n\t\t\t// delta > 0.0: less vehicles on count station after Burgdorf. Therefore, some stop at Burgdorf.\n\t\t\tif (delta > 0.0) {\n\t\t\t\tfromNorth[i - 1] = delta;\n\t\t\t\ttoSouth[i - 1] = 0.0;\n\t\t\t} else {\n\t\t\t\tfromNorth[i - 1] = 0.0;\n\t\t\t\ttoSouth[i - 1] = -delta;\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tlog.info(\"\");\n\t\t\n\t\t// from South to North\n\t\tlog.info(\"South to North\");\n\t\tfor (int i = 1; i <= 24; i++) {\n\t\t\tdouble delta = toBurgdorf023.getVolume(i).getValue() - fromBurgdorf182.getVolume(i).getValue();\n\t\t\tlog.info(\"\\thour \" + i + \" \" + delta);\n\t\t\t\n\t\t\tif (delta > 0.0) {\n\t\t\t\tfromSouth[i - 1] = delta;\n\t\t\t\ttoNorth[i - 1] = 0.0;\n\t\t\t} else {\n\t\t\t\tfromSouth[i - 1] = 0.0;\n\t\t\t\ttoNorth[i - 1] = -delta;\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tlog.info(\"\");\n\t\t\t\t\n\t\t// create to Burgdorf population\n\t\t// from north to Burgdorf\n\t\tfor (int t = 0; t < 24; t++) {\n\t\t\tfor (int pers = 0; pers < Math.round(fromNorth[t] * scaleFactor); pers++) {\n\t\t\t\t\n\t\t\t\tPerson person = populationFactory.createPerson(Id.create(\"NorthToBurgdorf_\" + t + \"_\" + pers, Person.class));\n\t\t\t\tdouble departureTime = t * 3600 + Math.round(random.nextDouble() * 3600.0);\n\t\t\t\t\n\t\t\t\t// only origins 0 and 1 are located north of Burgdorf\n\t\t\t\tId<Link> toLinkId = Id.create(endLinkIdBurgdorf, Link.class);\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tPlan plan = populationFactory.createPlan();\n\t\t\t\t\tId<Link> fromLinkId = Id.create(startLinkIds[i], Link.class);\n\t\t\t\t\t\n\t\t\t\t\tActivity fromActivity = populationFactory.createActivityFromLinkId(\"tta\", fromLinkId);\n\t\t\t\t\tfromActivity.setEndTime(departureTime);\n\t\t\t\t\t\n\t\t\t\t\tLeg leg = populationFactory.createLeg(TransportMode.car);\n\t\t\t\t\tleg.setDepartureTime(departureTime);\n\t\t\t\t\tleg.setRoute(routes.get(startLinkIds[i] + \"_\" + endLinkIdBurgdorf));\n\t\t\t\t\t\n\t\t\t\t\tActivity toActivity = populationFactory.createActivityFromLinkId(\"tta\", toLinkId);\n\t\t\t\t\t\n\t\t\t\t\tplan.addActivity(fromActivity);\n\t\t\t\t\tplan.addLeg(leg);\n\t\t\t\t\tplan.addActivity(toActivity);\n\t\t\t\t\t\n\t\t\t\t\tperson.addPlan(plan);\n\t\t\t\t}\n\t\t\t\tscenario.getPopulation().addPerson(person);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// from south to Burgdorf\n\t\tfor (int t = 0; t < 24; t++) {\n\t\t\tfor (int pers = 0; pers < Math.round(fromSouth[t] * scaleFactor); pers++) {\n\t\t\t\t\n\t\t\t\tPerson person = populationFactory.createPerson(Id.create(\"SouthToBurgdorf_\" + t + \"_\" + pers, Person.class));\n\t\t\t\tdouble departureTime = t * 3600 + Math.round(random.nextDouble() * 3600.0);\n\t\t\t\t\n\t\t\t\t// only origins 2, 3 and 4 are located south of Burgdorf\n\t\t\t\tId<Link> toLinkId = Id.create(endLinkIdBurgdorf, Link.class);\n\t\t\t\tfor (int i = 2; i < 5; i++) {\n\t\t\t\t\tPlan plan = populationFactory.createPlan();\n\t\t\t\t\tId<Link> fromLinkId = Id.create(startLinkIds[i], Link.class);\n\t\t\t\t\t\n\t\t\t\t\tActivity fromActivity = populationFactory.createActivityFromLinkId(\"tta\", fromLinkId);\n\t\t\t\t\tfromActivity.setEndTime(departureTime);\n\t\t\t\t\t\n\t\t\t\t\tLeg leg = populationFactory.createLeg(TransportMode.car);\n\t\t\t\t\tleg.setDepartureTime(departureTime);\n\t\t\t\t\tleg.setRoute(routes.get(startLinkIds[i] + \"_\" + endLinkIdBurgdorf));\n\t\t\t\t\t\n\t\t\t\t\tActivity toActivity = populationFactory.createActivityFromLinkId(\"tta\", toLinkId);\n\t\t\t\t\t\n\t\t\t\t\tplan.addActivity(fromActivity);\n\t\t\t\t\tplan.addLeg(leg);\n\t\t\t\t\tplan.addActivity(toActivity);\n\t\t\t\t\t\n\t\t\t\t\tperson.addPlan(plan);\n\t\t\t\t}\n\t\t\t\tscenario.getPopulation().addPerson(person);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// create from Burgdorf population\n\t\t// from Burgdorf to north\n\t\tfor (int t = 0; t < 24; t++) {\n\t\t\tfor (int pers = 0; pers < Math.round(toNorth[t] * scaleFactor); pers++) {\n\t\t\t\t\n\t\t\t\tPerson person = populationFactory.createPerson(Id.create(\"BurgdorfToNorth_\" + t + \"_\" + pers, Person.class));\n\t\t\t\tdouble departureTime = t * 3600 + Math.round(random.nextDouble() * 3600.0);\n\t\t\t\t\n\t\t\t\t// only origins 0 and 1 are located north of Burgdorf\n\t\t\t\tId<Link> fromLinkId = Id.create(startLinkIdBurgdorf, Link.class);\n\t\t\t\tfor (int i = 0; i < 2; i++) {\n\t\t\t\t\tPlan plan = populationFactory.createPlan();\n\t\t\t\t\tId<Link> toLinkId = Id.create(endLinkIds[i], Link.class);\n\t\t\t\t\t\n\t\t\t\t\tActivity fromActivity = populationFactory.createActivityFromLinkId(\"tta\", fromLinkId);\n\t\t\t\t\tfromActivity.setEndTime(departureTime);\n\t\t\t\t\t\n\t\t\t\t\tLeg leg = populationFactory.createLeg(TransportMode.car);\n\t\t\t\t\tleg.setDepartureTime(departureTime);\n\t\t\t\t\tleg.setRoute(routes.get(startLinkIdBurgdorf + \"_\" + endLinkIds[i]));\n\t\t\t\t\t\n\t\t\t\t\tActivity toActivity = populationFactory.createActivityFromLinkId(\"tta\", toLinkId);\n\t\t\t\t\t\n\t\t\t\t\tplan.addActivity(fromActivity);\n\t\t\t\t\tplan.addLeg(leg);\n\t\t\t\t\tplan.addActivity(toActivity);\n\t\t\t\t\t\n\t\t\t\t\tperson.addPlan(plan);\n\t\t\t\t}\n\t\t\t\tscenario.getPopulation().addPerson(person);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// from Burgdorf to south\n\t\tfor (int t = 0; t < 24; t++) {\n\t\t\tfor (int pers = 0; pers < Math.round(toSouth[t] * scaleFactor); pers++) {\n\t\t\t\t\n\t\t\t\tPerson person = populationFactory.createPerson(Id.create(\"BurgdorfToSouth_\" + t + \"_\" + pers, Person.class));\n\t\t\t\tdouble departureTime = t * 3600 + Math.round(random.nextDouble() * 3600.0);\n\t\t\t\t\n\t\t\t\t// only origins 2, 3 and 4 are located south of Burgdorf\n\t\t\t\tId<Link> fromLinkId = Id.create(startLinkIdBurgdorf, Link.class);\n\t\t\t\tfor (int i = 2; i < 5; i++) {\n\t\t\t\t\tPlan plan = populationFactory.createPlan();\n\t\t\t\t\tId<Link> toLinkId = Id.create(endLinkIds[i], Link.class);\n\t\t\t\t\t\n\t\t\t\t\tActivity fromActivity = populationFactory.createActivityFromLinkId(\"tta\", fromLinkId);\n\t\t\t\t\tfromActivity.setEndTime(departureTime);\n\t\t\t\t\t\n\t\t\t\t\tLeg leg = populationFactory.createLeg(TransportMode.car);\n\t\t\t\t\tleg.setDepartureTime(departureTime);\n\t\t\t\t\tleg.setRoute(routes.get(startLinkIdBurgdorf + \"_\" + endLinkIds[i]));\n\t\t\t\t\t\n\t\t\t\t\tActivity toActivity = populationFactory.createActivityFromLinkId(\"tta\", toLinkId);\n\t\t\t\t\t\n\t\t\t\t\tplan.addActivity(fromActivity);\n\t\t\t\t\tplan.addLeg(leg);\n\t\t\t\t\tplan.addActivity(toActivity);\n\t\t\t\t\t\n\t\t\t\t\tperson.addPlan(plan);\n\t\t\t\t}\n\t\t\t\tscenario.getPopulation().addPerson(person);\n\t\t\t}\n\t\t}\n\t}",
"ShipmentPackageRouteSeg createShipmentPackageRouteSeg();",
"Gtr createGtr();",
"abstract T generate();",
"Generalization createGeneralization();",
"private List<Individual> createBadIndividuals(int generationSize) {\n\t\tIndividualFactory factory = new ArcherFactory();\n\t\tList<Individual> list = new ArrayList<Individual>();\n\t\tfor (int i = 0; i < generationSize; i++) {\n\t\t\tlist.add(factory.createIndividual(getBadCombination()));\n\t\t}\n\t\treturn list;\n\t}",
"FlowSequence createFlowSequence();",
"private RectIterFactory() {}",
"Range createRange();",
"public Workload getNewInstanceOfThisWorkload() {\n\t\t\n\t\tWorkload workload = new Workload(numOfSlotsNeededToSendPacket);\n Random rand = new Random(randomSeed);\n\t\t\n List<Vertex> vertices = topology.getVerticesWithOneNeighbor();\n Vertex gateway = topology.getGateway();\n \tfor(Vertex vertex : vertices) {\n \t\tif(vertex != gateway) {\n \t\t\tif(flowClasses.length == 1) {\n \t\t\tif(randomFlowPhase) {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, rand.nextInt(flowClasses[0]), flowClasses[0], flowClasses[0]);\n \t\t\t} else {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, 0, flowClasses[0], flowClasses[0]);\n \t\t\t}\n \t\t} else {\n \t\t\tint pickedFlowClass = rand.nextInt(flowClasses.length);\n \t\t\tif(randomFlowPhase) {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, rand.nextInt(flowClasses[pickedFlowClass]), flowClasses[pickedFlowClass], flowClasses[pickedFlowClass]);\n \t\t\t} else {\n \t\t\t\tworkload.newPeriodicFlow(vertex, gateway, 0, flowClasses[pickedFlowClass], flowClasses[pickedFlowClass]);\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n \tworkload.assignPriorities();\n \t\n \treturn workload;\n\t}",
"public XSSFPatternFormatting createPatternFormatting(){\n CTDxf dxf = getDxf(true);\n CTFill fill;\n if(!dxf.isSetFill()) {\n fill = dxf.addNewFill();\n } else {\n fill = dxf.getFill();\n }\n\n return new XSSFPatternFormatting(fill, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }",
"public void createGrid() {\r\n generator.generate();\r\n }",
"public void generateNextGeneration() {\n int neighbours;\n int minimum = Integer.parseInt(PreferencesActivity\n .getMinimumVariable(this._context));\n int maximum = Integer.parseInt(PreferencesActivity\n .getMaximumVariable(this._context));\n int spawn = Integer.parseInt(PreferencesActivity\n .getSpawnVariable(this._context));\n\n minimum = 2;\n maximum = 3;\n spawn = 3;\n\n int[][] nextGenerationLifeGrid = new int[HEIGHT][WIDTH];\n\n\n\n for (int h = 0; h < HEIGHT; h++) {\n for (int w = 0; w < WIDTH; w++) {\n neighbours = calculateNeighbours(h, w);\n\n\n if (_lifeGrid[h][w] != 0) {\n if ((neighbours >= minimum) && (neighbours <= maximum)) {\n nextGenerationLifeGrid[h][w] = neighbours;\n }\n\n } else {\n if (neighbours == spawn) {\n nextGenerationLifeGrid[h][w] = spawn;\n\n }\n }\n\n }\n\n }\n\n copyGrid(nextGenerationLifeGrid, _lifeGrid);\n\n }",
"Elevage createElevage();",
"public BaseGearPiece generateGearPiece();",
"interface Generator {\n int[] generate(int size);\n }",
"void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }",
"public Order generateAt(int time);",
"private ElementoDettaglioVariazioneCodificaCapitoloFactory() {\n\t}",
"public InputFewStepsFactoryImpl() {\n\t\tsuper();\n\t}",
"public IntegerGenotype create() \r\n\t{\n\t\tIntegerGenotype genotype = new IntegerGenotype(1,3);\r\n\t\tgenotype.init(new Random(), Data.numeroCuardillas); \r\n\t\t\r\n\t\treturn genotype;\r\n\t}",
"private PerksFactory() {\n\n\t}",
"protected void generate() {\n\t\tcpGenerator( nx, ny, nz, ClosePackedLattice.HCP);\n\t}",
"protected Drawing createDrawing() {\n return new StandardDrawing();\n }",
"ObjectFactoryGenerator objectFactoryGenerator();",
"@Override\n\tpublic void createGerant(Gerant g) {\n\t\t\n\t}",
"IntStrategyFactory() {\n }",
"private void genRandomPattern(float ratioInh, float ratioAct) {\n layoutPanel.inhNList = getRandomPointsIndex(ratioInh, null);\n layoutPanel.activeNList = getRandomPointsIndex(ratioAct,\n layoutPanel.inhNList);\n }",
"public CalcLayout(int gap) {\n\t\tconstrains = new ArrayList<>();\n\t\tthis.gap = gap;\n\t}",
"private void CreateOriginClass(String[] p) {\n String classname = p[2];\n int count = Integer.parseInt(p[1]);\n classt.maxid++;\n int classid = classt.maxid;\n for (int i = 0; i < count; i++) {\n classt.classTable.add(new ClassTableItem(classname, classid, count,i,p[2 * i + 3], p[2 * i + 4],\"ori\"));\n }\n }",
"public TimeInterval create(TimeInterval ti) {\r\n\t\tDefaultTimeInterval nti = new DefaultTimeInterval();\r\n\t\tfor (int i = 0; i < _numberOfIntervals.length; i++)\r\n\t\t\tnti._numberOfIntervals[i] = this._numberOfIntervals[i];\r\n\t\treturn nti;\r\n\t}",
"@Test\r\n public void Test028generateNextPatternBlock()\r\n {\r\n\r\n gol.makeLiveCell(4, 4);\r\n gol.makeLiveCell(4, 5);\r\n gol.makeLiveCell(5, 4);\r\n gol.makeLiveCell(5, 5);\r\n gol.generateNextPattern();\r\n\r\n assertEquals(4, gol.getTotalAliveCells());\r\n }",
"ShipmentGatewayUps createShipmentGatewayUps();",
"private Brick generateBricks() {\n\t\tBrick randomBrick = null;\n\t\tRandom rand = new Random();\n\t\tint a = rand.nextInt(7);\n\t\tswitch (a) {\n\t\tcase 1:\n\t\t\trandomBrick = new LineBrick();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\trandomBrick = new LBrick();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trandomBrick = new RLBrick();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\trandomBrick = new TBrick();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\trandomBrick = new SBrick();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\trandomBrick = new RSBrick();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\trandomBrick = new Square();\n\t\t\tbreak;\n\t\t}\n\t\tbrickgc.setFill(randomBrick.getColor());\n\t\treturn randomBrick;\n\t}",
"public AggregatorFactoryImpl() {\n \t\tsuper();\n \t}",
"ComponentAllocationFactory getComponentAllocationFactory();",
"public Cop generateCop(){\r\n\r\n\t\t\tPatch currentPatch = randPatch();\r\n\r\n\t\t\tCop cop= new Cop(currentPatch);\r\n\r\n\t\t\tcurrentPatch.setPerson(cop);\r\n\r\n\t\t\treturn cop;\r\n\t\t}",
"@Override\n\tpublic void patternGenAdded(PatternGen patternGen) {\n\t}",
"ShipmentGatewayDhl createShipmentGatewayDhl();",
"private void genRegularPattern(float ratioInh, float ratioAct) {\n layoutPanel.inhNList.clear();\n layoutPanel.activeNList.clear();\n float ratio = ratioInh + ratioAct;\n if (ratio == 0) {\n return;\n }\n\n if (ratioInh == 0) {\n layoutPanel.activeNList = getRegularPointsIndex(ratioAct);\n return;\n } else if (ratioAct == 0) {\n layoutPanel.inhNList = getRegularPointsIndex(ratioInh);\n return;\n }\n\n // ratioInh != 0 && ratioAct != 0\n layoutPanel.activeNList = getRegularPointsIndex(ratioAct);\n layoutPanel.inhNList = getRegularPointsIndex(ratioInh);\n\n findLargestNNIPointsIndexPair(ratioInh, ratioAct);\n }"
]
| [
"0.56957114",
"0.5691054",
"0.56696934",
"0.56060636",
"0.5442751",
"0.5440081",
"0.5398881",
"0.5397892",
"0.5395986",
"0.5383673",
"0.5380599",
"0.53742194",
"0.536334",
"0.5315196",
"0.5277843",
"0.52677625",
"0.52514523",
"0.52442706",
"0.52056223",
"0.5189518",
"0.517965",
"0.5178931",
"0.5176381",
"0.51763284",
"0.5173509",
"0.5154146",
"0.513669",
"0.5134778",
"0.51316905",
"0.5126733",
"0.5126733",
"0.51263255",
"0.5125665",
"0.5105175",
"0.5102948",
"0.5102328",
"0.50906324",
"0.5089284",
"0.5086212",
"0.5080582",
"0.50757444",
"0.50736773",
"0.50667053",
"0.50646335",
"0.50627345",
"0.5057125",
"0.5057094",
"0.50232947",
"0.50168085",
"0.50143343",
"0.50106835",
"0.500955",
"0.5002396",
"0.49983436",
"0.49965227",
"0.49925843",
"0.4991447",
"0.49874005",
"0.49868912",
"0.49833456",
"0.49826777",
"0.49766585",
"0.49755928",
"0.49685785",
"0.49684748",
"0.49677944",
"0.49630976",
"0.4957344",
"0.49541962",
"0.49479553",
"0.4947641",
"0.49437356",
"0.49429032",
"0.49416745",
"0.49362937",
"0.49354586",
"0.4934022",
"0.49336386",
"0.4917788",
"0.49170142",
"0.49041447",
"0.49007142",
"0.48993105",
"0.48972273",
"0.48959205",
"0.48925662",
"0.48886114",
"0.48882538",
"0.48793498",
"0.48774028",
"0.48710892",
"0.48657557",
"0.48631895",
"0.48551178",
"0.48539296",
"0.48462018",
"0.4845469",
"0.48453844",
"0.48453218",
"0.48450533",
"0.4845034"
]
| 0.0 | -1 |
1.4 Write a Java program that takes two numbers as input from console and display the product of two numbers. | public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Input first number: ");
int inputNumber1 = scanner.nextInt();
System.out.println("Input second number: ");
int inputNumber2 = scanner.nextInt();
System.out.println(inputNumber1 + " x " + inputNumber2 + " = " + inputNumber1 * inputNumber2);
// 1.5 Write a Java program that takes a number as input and prints its multiplication table upto 10.
System.out.println("Input a number: ");
int number1 = scanner.nextInt();
for (int i = 0; i < 10; i++) {
System.out.println(number1 + " x " + (i + 1) + " = " + (number1 * (i + 1)));
}
// 1.6 print the area and perimeter of a circle.
double radius = 7.5;
double perimeter = 2 * Math.PI * radius;
double area = Math.PI * radius * radius;
System.out.println("Perimeter is = " + perimeter);
System.out.println("Area is = " + area);
// 1.7 Write a Java program to convert temperature from Fahrenheit to Celsius degree.
System.out.println("Input a degree in Fahrenheit:");
double fahrenheit = scanner.nextDouble();
double celsius = ((fahrenheit - 32) * 5 / 9);
System.out.println(fahrenheit + " degree Fahrenheit is equal to " + celsius + " in Celsius");
// 1.8 Write a Java program that reads a number in inches, converts it to meters.
System.out.println("Input a value for inch: ");
double inch = scanner.nextDouble();
double meters = inch * 0.0254;
System.out.println(inch + " inch is " + meters + " meters");
// 1.9 Write a Java program to get a number from the user and print whether it is positive or negative.
System.out.print("Input a number: ");
int num = scanner.nextInt();
if (num > 0) {
System.out.println("Number is positive");
} else if (num < 0) {
System.out.println("Number is negative");
} else {
System.out.println("Number is zero");
}
// 1.10 Take three numbers from the user and print the greatest number.
System.out.print("Input the 1st number: ");
int num1 = scanner.nextInt();
System.out.println("Input the 2nd number: ");
int num2 = scanner.nextInt();
System.out.println("Input the 3rd number: ");
int num3 = scanner.nextInt();
if ((num1 > num2) && (num1 > num3))
System.out.println("The greatest: " + num1);
if ((num2 > num1) && (num2 > num3))
System.out.println("The greatest: " + num2);
if ((num3 > num1) && (num3 > num2))
System.out.println("The greatest: " + num3);
// 1.11 Write a program in Java to input 5 numbers from the keyboard and find their sum and average.
System.out.println("Input the 5 numbers : ");
int num5, sum = 0;
for (int i = 0; i < 5; i++) {
num5 = scanner.nextInt();
sum = sum + num5;
}
int average = sum / 5;
System.out.println("The sum of 5 no is : " + sum + "\nThe Average is : " + average);
// 1.12 Write a program Check Whether Number is Even or Odd
System.out.println("Input: ");
int num6 = scanner.nextInt();
System.out.println("Input: ");
int num7 = scanner.nextInt();
if (num6 % 2 == 0) {
System.out.println("Even");
}
if (num7 % 2 == 0) {
System.out.println("Even");
} else {
System.out.println("Odd");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main (String[] args) {\n Scanner scan=new Scanner(System.in);\n int num1=scan.nextInt();\n int num2=scan.nextInt();\n int result=num1*num2;\n System.out.println(result);\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = Integer.parseInt(br.readLine());\n\t\tint b = Integer.parseInt(br.readLine());\n\t\t\n\t\tint answer = a * b;\n\t\tint one = b % 10;\n\t\tb /= 10;\n\t\tint ten = b % 10;\n\t\tb /= 10;\n\t\tint hun = b;\n\t\t\n\t\tSystem.out.println(a * one);\n\t\tSystem.out.println(a * ten);\n\t\tSystem.out.println(a * hun);\n\t\tSystem.out.println(answer);\n\t}",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Input first number: \");\n\t\tint num1 = in.nextInt();\n\t\t\n\t\tSystem.out.println(\"Input second number: \");\n\t\tint num2 = in.nextInt();\n\t\t\t\n\t\tSystem.out.println( num1 + \" x \" + num2 + \" = \" + num1*num2);\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);//sc is a point of contact for console\n\t\t\n\t\tSystem.out.println(\"enter num1:\");\n\t\tint n1 = sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"enter num2:\");\n\t\tint n2 = sc.nextInt();\n\t\t\n\t\t//perform operations\n\t\tint sum = n1 + n2;\n\t\tint sub = n1 - n2;\n\t\tint mul = n1 * n2;\n\t\tint div = n1 / n2;\n\t\t\n\t\tSystem.out.println(\"sum =\" +sum);\n\t\tSystem.out.println(\"sub =\" +sub);\n\t\tSystem.out.println(\"mul =\" +mul);\n\t\tSystem.out.println(\"div =\" +div);\n\t\t\n}",
"public static void main(String[] args) {\n DecimalFormat decimalFormat = new DecimalFormat(\"#.####\");\n Scanner scanner = new Scanner(System.in);\n int a = 0;\n int b = 0;\n int c = 0;\n\n System.out.println(\" Enter a \");\n a = scanner.nextInt();\n\n System.out.println(\" Enter b\");\n b = scanner.nextInt();\n\n System.out.println(\" Enter c \");\n c = scanner.nextInt();\n\n System.out.println(\"Result 2: \"+product(a,b));\n System.out.println(\"Result 3: \"+product(a,b,c));\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner firstNumber = new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter the first number: \");\n\t\tint x = firstNumber.nextInt();\n\t\t//System.out.println(\"The first number is: \"+ x);\n\t\t\n\t\t\n\t\tScanner secondNumber = new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter the second number: \");\n\t\tint y = secondNumber.nextInt();\n\t\t//System.out.println(\"The second number is: \"+ y);\n\t\t\n\t\tint z = (x+y);\n\t\tSystem.out.println(\"The sum of two numbers:\" + z);\n\t\t\n\t\tint a = (x*y);\n\t\tSystem.out.println(\"The product of two numbers: \" + a);\n\t\t\t\t\n\t\t\t\t\n\t}",
"public static void main(String[] args)\n {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Introduceti primul numar: \");\n int number1 = scanner.nextInt();\n System.out.print(\"Introduceti al doilea numar: \");\n int number2 = scanner.nextInt();\n int productNumber = number1 * number2;\n\n if (productNumber % 2 == 0)\n {\n int curentNumber = productNumber;\n while (curentNumber > 0)\n {\n if (curentNumber % 2 == 0)\n {\n System.out.println(\"Numere divizibile cu 2, \" + curentNumber + \" mai mici decat: \" + productNumber + \" produsul celor doua numere.\");\n\n System.out.println(\"Produsul numerelor nu este divizibil: \");\n }\n curentNumber--;\n }\n } else\n {\n System.out.println(\"Numarul nu este divizibil!\");\n }\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(multiply(\"2\", \"3\"));\r\n\t}",
"public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n System.out.print(\"What is the first number? \");\n String num1Str = input.nextLine();\n System.out.print(\"What is the second number? \");\n String num2Str = input.nextLine();\n int num1Int = Integer.parseInt(num1Str);\n int num2Int = Integer.parseInt(num2Str);\n int sum = num1Int + num2Int;\n int difference = num1Int - num2Int;\n int product = num1Int * num2Int;\n double quotient = (double)num1Int / num2Int;\n System.out.printf(\"%d + %d = %d\\n%d - %d = %d\\n%d * %d = %d\\n%d / %d = %.2f\\n\", num1Int, num2Int, sum, num1Int, num2Int, difference, num1Int, num2Int, product, num1Int, num2Int, quotient );\n }",
"public static void main(String[] args) {\n\t\tint x=4; \n\t\tint y=6; \n\t\tint z=x*y;\n\t\tSystem.out.println(\"product of 2 is:\"+ z);\n\t\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint num = sc.nextInt();\r\n\t\tProblem3 pObj = new Problem3();\r\n\t\tint result = pObj.productDigits(num);\r\n\t\tSystem.out.println((result>-1)?result:\"Invalid Input\");\r\n\t}",
"public void multiplyTwoNumbers(int num1, int num2) {\n\t\t\n\t\tint product = num1*num2; //A\n\t\tSystem.out.println(\"**************************************************************\");\n\t\tSystem.out.println(\"Product of these 2 numbers is: \"+product);\n\t\tint remainder = getRemainder(num1, num2); //C\n\t\tint finalResult = product+remainder; //B\n\t\tSystem.out.println(\"Final Result of these 2 numbers is: \"+ finalResult);\n\t\n\t\t\n\t}",
"public static void main(String[] args){\n Scanner n = new Scanner(System.in);\r\n System.out.println(\"Escriba dos numeros par saber la suma y la multiplicacion de estos:\");\r\n double num1 = n.nextDouble();\r\n double num2 = n.nextDouble();\r\n double suma = num1+num2;\r\n double multi = num1*num2;\r\n System.out.println(\"La suma de los dos numeros es: \"+suma);\r\n System.out.println(\"La multiplicacion de los dos numeros es: \"+multi);\r\n }",
"public static void main (String[] args){\n\tScanner in = new Scanner(System.in);\n\t\n\tSystem.out.print(\"Enter the first number: \");\n\tint n1 = in.nextInt();\n\t\n\tSystem.out.print(\"Enter the second numer: \");\n\tint n2 = in.nextInt();\n\t\n\tint ans = n1 + n2;\n\tSystem.out.printf(\"%d + %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 - n2;\n\tSystem.out.printf(\"%d - %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 * n2;\n\tSystem.out.printf(\"%d * %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 / n2;\n\tSystem.out.printf(\"%d / %d = %d\\n\", n1, n2, ans);\n\t\n\tin.close();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(multiply(\"4352468985455786\",\"23\"));\n\t}",
"public static void main(String[] args) {\n\t\tScanner input1 = new Scanner (System.in);\n\n\t\tSystem.out.println (\"Enter a number\");\n\n\t\tint a = input1.nextInt();\n\t\t\n\t\t// variável para ser utilizada no ciclo\n\t\tint b = a;\n\t\t\n\t\tint factorialDigit = 0;\n\t\tint factorialValue = 1;\n\t\t\n\t\t// ciclo para retirar um digito de cada vez e multiplica-lo pelo próximo\n\t\twhile (b > 0){\n\t\t\tfactorialDigit = b;\n\t\t\tfactorialValue = factorialDigit * factorialValue;\n\t\t\tb-=1;\n\t\t}\n\t\t\n\t\tSystem.out.println (a + \"!\" + \" = \" + factorialValue);\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tScanner console = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter first number\");\n\t\tint x = console.nextInt();\n\t\tSystem.out.println(\"Please enter second number\");\n\t\tint y = console.nextInt();\n\t\tint total = x * y;\n\t\tSystem.out.println (total);\n\t\tif (total > 0) {\n\t\t\tSystem.out.println(\"True\");\n\t\t} else {\n\t\t\tSystem.out.println(\"False\");\n\t\t}}",
"public String multiply(String num1, String num2) {\n int len1 = num1.length();\n int len2 = num2.length();\n int[] products = new int[len1 + len2];\n //1. compute products from each pair of digits from num1 and num2.\n for (int i = len1 - 1; i >= 0; i -- ) {\n for (int j = len2 - 1; j >= 0; j--) {\n int digit1 = num1.charAt(i) - '0';\n int digit2 = num2.charAt(j) - '0';\n products[i+j+1] += digit1 * digit2;\n }\n }\n //2.carry each element over\n int carry = 0;\n for (int i =products.length - 1; i >= 0; i--){\n int tmp = (products[i] + carry) % 10;\n carry = (products[i] + carry) / 10;\n products[i] = tmp;\n }\n //3.output the solution\n StringBuilder sb = new StringBuilder();\n for (int num : products) sb.append(num);\n // eliminate the leading 0\n while (sb.length() != 0 && sb.charAt(0) == '0') sb.deleteCharAt(0);\n return sb.length() == 0 ? \"0\" : sb.toString();\n }",
"public static void main (String[] args)\n {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int k;\n k=mul(n);\n System.out.println(k);\n }",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num = scanner.nextInt();\n\t\tint i;\n\t\tint result = 1;\n\n\t\tfor (i = 1; i <= num; i++) {\n\t\t\tresult = result * i;\n\t\t\tif (i == num) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t}\n\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner (System.in);\n\t\t\n\t\t\n\t\tint a = 1;\n\t\tint b = 1;\n\t\tint num;\n\t\t\n\t\t\n System.out.println(\"Digite el numero del que desea obtener el factorial: \");\n\t\t\n\t\tnum = sc.nextInt();\n\t\t\n\t\twhile (b <= num) {\n\t\t\t\n\t\t\tif (b <= num) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(b + \" * \");\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tSystem.out.println(num);\n\t\t\t}\n\t\t\t\n\t\t\ta = b * a;\n\t\t\t\n\t\t\tif (b == num ) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" = \" + a);\n\t\t\t}\n\t\t\t\n\t\t\tb ++;\n\t\t\t\n\t\t\tsc.close();\n\t\t\t \n\t\t}\n\n\t\t\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner( System.in );\n\n System.out.println( \"Provide number please: \" );\n double num = scan.nextDouble();\n\n // 1. way\n double square = num*num;\n System.out.println( \"Square of \" + num + \" is: \" + square );\n double cube = square*num;\n System.out.println( \"Cube of \" + num + \" is: \" + cube );\n\n// // 2. way\n// int result = num;\n// result*=num;\n// System.out.println( \"Square of \" + num + \" is: \" + result );\n//\n// result*=num;\n// System.out.println( \"Cube of \" + num + \" is: \" + result );\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Input 3 Numbers\");\n\t\tint a = input.nextInt();\n\t\tint b = input.nextInt();\n\t\tint c = input.nextInt();\n\n\t\tint method;\n\n\t\tmethod = Product(a,b,c);\n\t\tSystem.out.println(\"The product is: \" + method);\n\n\t\tSystem.out.println(\"\\nInclude two more numbers\");\n\t\tint o = input.nextInt();\n\t\tint p = input.nextInt();\n\n\t\tint method2;\n\t\tmethod2 = SumTwo(a,b);\n\t\tSystem.out.println(\"\\nThe Sum of these numbers are: \" + method2);\n\n\t\tint method3;\n\t\tSystem.out.println(\"\\nEnter one more number:\");\n\t\tmethod3 = input.nextInt();\n\t\tdouble avg = AverageInt(method3);\n\t\tSystem.out.println(\"The average between number\" + method3 + \" and avg is: \" + avg);\n\n\t}",
"public static void main(String[] args) {\n\t\tListNode a = new ListNode(3);\n\t\ta.setNext(new ListNode(2));\n\t\t\n\t\tListNode b = new ListNode(2);\n\t\t\n\t\tListNode res = multiply(a, b);\n\t\tres.printList(res);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a = sc.nextInt();\n\t\tlong b = sc.nextInt();\n\t\tlong mul = a*b;\n\t System.out.println(mul/GC(a,b));\n\t\t\n\n\t}",
"public static void main(String[] args) \n\t{\n\t\ttry\n\t\t{\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Input a number: \");\n\t\t\tint firstNum = scan.nextInt();\n\t\t\tSystem.out.println(\"\\nOUTPUT: \");\n\t\t\t\n\t\t\tfor(int i=1; i<=10; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(firstNum+\" x \"+i+\" = \"+(firstNum*i));\n\t\t\t}\n\t\t\tscan.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[Error] #\"+e);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint no = sc.nextInt();\n\t\t\n\t\tSystem.out.println(maxproduct(no));\n\n\t}",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(multiplication(5,2));\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Interduce an integer n and I will compute n!\");\r\n\t\tint n = sc.nextInt();\r\n\r\n\t\tint result = 1;\r\n\t\tfor (int currentNumber=1; currentNumber <= n; currentNumber++)\r\n\t\t\tresult = result * currentNumber;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"n!= \" + result);\r\n\r\n\t}",
"public static void main(String[] args)\n {\n // 2. System.out.print(Please enter two numbers:)\n System.out.print(\"Please enter two numbers: \");\n Scanner in = new Scanner(System.in);\n // 3. x = in.readDouble;\n double x = in.nextDouble();\n // 4. y = in.readDouble;\n double y = in.nextDouble();\n // 5. System.out.printline(\"The sum is \" + x + y);\n System.out.println(\"The sum is \" + (x + y));\n }",
"public static void main(String[] args) {\n Scanner scanner= new Scanner(System.in);\n int N = scanner.nextInt();\n scanner.close();\n\n for (int i=1; i<11; i++)\n {\n int product = N*i;\n System.out.println(N+\" x \"+i+\" = \"+product);\n }\n }",
"public static void main(String[] args) throws IOException {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint num1 = sc.nextInt();\r\n\t\tint num2 = sc.nextInt();\r\n\t\tint num3 = sc.nextInt();\r\n\t\tint result = num1 * num2 * num3;\r\n\r\n\t\tint[] number = new int[10];\r\n\t\twhile (result > 0) {\r\n\t\t\tnumber[result % 10]++;\r\n\t\t\tresult /= 10;\r\n\t\t}\r\n\r\n\t\tfor (int a : number) {// 각 숫자 갯수 출력\r\n\t\t\tSystem.out.println(a);\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tScanner s=new Scanner (System.in);\n\n\tSystem.out.println(\"Ingrese un numero:\");\n\tScanner mi_scanner1= new Scanner (System.in);\n\tint num=mi_scanner1.nextInt();\n\t\n\tfor (int i=1;i<11;i++)\n\t{\n\tSystem.out.println(num*i);\n\t}\n\t}",
"public static void main(String[] args) {\nint a,b,c;\r\nScanner input=new Scanner(System.in);\r\nSystem.out.println(\"Enter value for num1\");\r\na = input.nextInt();\r\nSystem.out.println(\"Enter value for num2\");\r\nb = input.nextInt();\r\nSystem.out.println(\"Enter value for num3\");\r\nc = input.nextInt();\r\n\r\nSystem.out.println(a*b+c);\r\n\t}",
"public static void main(String[] args) {\n\n\t\n\n\t\tint num1;\n\t\tint cont;\n\t\tfinal int TOPE=10;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Ingresa un numero: \");\n\t\tnum1=scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"Ingrese un contador \");\n\t\tcont=scan.nextInt();\n\t\t\n\t\twhile (cont <=TOPE) {\n\t\t\tSystem.out.println(\"el valor de la multiplicación es: \" + cont*num1);\n\t\t\tcont++; \n\t\t\n\t}\n\t}",
"public static void main(String[] args) {\n SPIM.printInt(Formals.sum(1, 2, 3, 4, 5, 6));\n SPIM.printChar('\\n');\n SPIM.printInt(Formals.product(1, 2, 3, 4, 5, 6));\n SPIM.printChar('\\n');\n }",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner (System.in);\n\t\tint n1, n2,result;\n\t\tchar operator;\n\t\t\t\t\t\n\t\t\t\n\t\tSystem.out.println(\"Please enter first numbers:\");\n\t\t\n\t\tn1=input.nextInt();\n\t\t\n\n\t\tSystem.out.println(\"Please enter first number: \");\t\t\n\t\tn2=input.nextInt();\n\t\t\n\t\tSystem.out.println(\"Please enter one of the operators that you want to do with these two numbers: +,-,* or /: \");\n\t\t\n\t\toperator=input.next().charAt(0);\n\t\t\n\t\tresult=0;\n\t\t\n\t\tswitch (operator) {\n\t\tcase '+':\n\t\t\tresult=n1+n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '-':\n\t\t\tresult=n1-n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '*':\n\t\t\tresult=n1*n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '/':\n\t\t result=n1/n2;\n\t\t break;\n\t\tdefault:\n\t\t System.out.println(\"You have enetered the wrong operator\");\n\t\t \n\t\t}\n\t\t// if the result was not calculated I do not want to see below message\n\t\tif (result!=0) {\n\t\t\tSystem.out.println(\"The result of your operation is \"+result);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter two numbers:\");\r\n\t\tint s1=input.nextInt();\r\n\t\tint s2=input.nextInt();\r\n\t\tSystem.out.println(\"sum of two numbers is: \"+(s1+s2));\r\n\t\tSystem.out.println(\"multiplication of two numbers is: \"+(s1*s2));\r\n\t\tSystem.out.println(\"Average of two numbers is: \"+(s1+s2)/2);\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter a: \");\n\t\tint a = scanner.nextInt();\n\t\t\n\t\tSystem.out.println(\"Enter b: \");\n\t\tint b = scanner.nextInt();\n\t\t\n\t\tint result = a * b;\n\t\t\n\t\tSystem.out.print(\"The area is: \");\n\t\tSystem.out.println(result);\n\t}",
"public static void main(String[] args) {\n\t\tint i=17;\n\t\tfor (int j = 1; j < 11; j++) {\n\t\t\tint result = (j * i);\n\t\t\tSystem.out.println(i+\"*\" + j + \"=\" + result);\n\n\t\t}\n//Based on user Input number\n\n\t\tSystem.out.println(\"Enter the number **** : \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor (int mul = 1; mul <= 10; mul++) {\n\t\t\tint result = (mul * a);\n\t\t\tSystem.out.println(a + \"*\" + mul + \"=\" + result);\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n Scanner n = new Scanner(System.in);\r\n\t\t\r\n\t//assign value to BigInterger instance\r\n\t//next() function returns the next token/word in the input as a string\r\n BigInteger b1 = new BigInteger(n.next());\r\n BigInteger b2 = new BigInteger(n.next());\r\n \r\n\t//The java.math.BigInteger.add(BigInteger val) returns a BigInteger object whose value is (this + val).\r\n System.out.println(b1.add(b2));\r\n\t//The java.math.BigInteger.multiply(BigInteger val) returns a BigInteger whose value is (this * val).\r\n System.out.println(b1.multiply(b2));\r\n }",
"void mult(int a, int b) {\n\t\tSystem.out.println(\"Addition \"+(a*b));\n}",
"public static void main(String[] args) {\n\t\tCalculatorScanner calculatorScanner = new CalculatorScanner();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter 2 numbers:- \");\n\t\tint num1 = scanner.nextInt();\n\t\tint num2 = scanner.nextInt();\n\t\tint add = calculatorScanner.addition(num1, num2);\n\t\tint subtraction = calculatorScanner.subtraction(num1, num2);\n\t\tint multiplication = calculatorScanner.multiplication(num1, num2);\n\t\tint division = calculatorScanner.division(num1, num2);\n\t\tcalculatorScanner.printTotalAnswer(add, subtraction, multiplication, division);\n\t\tscanner.close();\n\t}",
"public static void main(String[] args) {\n\t\tSolution soln = new Solution();\r\n\t\t\r\n\t\tSystem.out.println(soln.multiply(\"123\", \"0\"));\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint num1 = 7;\r\n\t\tint num2 = 6;\r\n\t\t\r\n\t\tmathOps ops1 = new mathOps();\r\n\t\tSystem.out.println(\"sum = \" +ops1.addition(num1, num2));\r\n\t\tSystem.out.println(\"sub = \" +ops1.substraction(num1, num2));\r\n\t\tSystem.out.println(\"mul = \" +ops1.multiply(num1, num2));\r\n\t\tSystem.out.println(\"div = \" +ops1.divide(num1, num2));\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tSystem.out.println(\"enter a number\");\n\t\tint n1=s.nextInt();\n\t\tSystem.out.println(\"enter another number\");\n\t\tint n2=s.nextInt();\n\t\tint i=2,temp,res;\n\t\tif(n1>n2)\n\t\t\tres=n1;\n\t\telse\n\t\t\tres=n2;\n\t\ttemp=res;\n\t\twhile(res%n1!=0||res%n2!=0) {\n\t\t\tres=temp*i;\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"LCM is :\"+res);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner src = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the number of digits\");\r\n\t\tint numberOfDigit = src.nextInt();\r\n\t\tOperations o = new Operations();\r\n\t\t\r\n\t\tint upperLimit = o.upperLimit(numberOfDigit);\r\n\t\tint lowerLimit = o.lowerLimit(numberOfDigit);\r\n\t\t\r\n\t\tSystem.out.println(\"Largest \" +numberOfDigit+\"-digit number : \" +upperLimit);\r\n\t\tSystem.out.println(\"Smallest \" +numberOfDigit+\"-digit-number : \" +lowerLimit);\r\n\t\t\r\n\t\tlong result = o.product(lowerLimit, upperLimit);\r\n\t\tSystem.out.println(\"The largest palindrome made from the product of two \"+ numberOfDigit +\"-digit number is \"+result);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\tdouble a,b,result;\n\t\tchar operation;\n\t\tSystem.out.println(\"PLease enter a first number\");\n\t\ta=input.nextDouble();\n\t\tSystem.out.println(\"Please enter a second number\");\n\t\tb=input.nextDouble();\n\t\tSystem.out.println(\"PLease tell us what kind of operation you want to use (+,-,*,/)\");\n\t\toperation=input.next().charAt(0);\n\t\t\n\t\tswitch(operation) {\n\t\t case '+':\n\t\t \tresult=a+b;\n\t\t \tbreak;\n\t\t case '-':\n\t\t \tresult=a-b;\n\t\t \tbreak;\n\t\t case'*':\n\t\t \tresult=a*b;\n\t\t \tbreak;\n\t\t case '/':\n\t\t \tresult=a/b;\n\t\t \tbreak;\n\t\t \tdefault:\n\t\t \t\tresult=0;\n\t\t \t\tSystem.out.println(\"Invalid input\");\n\t\t}System.out.println(\"The result is \"+ a+ operation+b+\"=\"+ result);\n \n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\tMethodCalling_Multiply mul = new MethodCalling_Multiply();\r\n\t\tint result = mul.multiply(10, 20);\r\n\t\tSystem.out.println(result);\t\t\t//OR\r\n\t\t\r\n\t\tSystem.out.println(mul.multiply(5, 6));\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tProduct2 product1 = buildProduct(in);\n\t\t// new Scanner(System.in).nextLine();\n\t\tProduct2 product2 = buildProduct(in);\n\t\tSystem.out.println(\"Product Details :\");\n\t\tdisplayProduct(product1);\n\n\t\tdisplayProduct(product2);\n\n\t\tSystem.out.println(\"\\n\" + product1.checkPrice(product2));\n\t\tin.close();\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a =2;\n\t\tint b =1;\n\t\t\n\t\twhile(a<=9) {\n\t\twhile(b<=9) {\n\t\t\tSystem.out.printf(\"%d X %d = %d\\n\",a,b,a*b);\n\t\t\tb++;\n\t\t}\n\t\tb=1;\n\t\ta++;\n\t}\n\n\t/*\tint a = 1;\n\t\tint sum = 0;\n\t\twhile(a<10) {\n\t\t\t\n\t\t\tsum= sum+a;\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(\"sum =\"+sum);\n\t\t*/\n}",
"static void multiplier() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 * nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" * \" + nb2 + \" = \" + resultat);\n\t}",
"public static void main(String[] args) {\n\n System.out.print(\n \"a b pow(a, b)\\n\"+\n \"1 2 1\\n\"+\n \"2 3 8\\n\"+\n \"3 4 81\\n\"+\n \"4 5 1024\\n\"+\n \"5 6 15625\\n\"\n );\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\r\n\r\n \tScanner teclado=new Scanner(System.in);\r\n \tint suma,resta,division,multiplicacion;\r\n \tString num1=JOptionPane.showInputDialog(null,\"Ingrese el primer numero: \");\r\n\t\tint n1= new Integer(num1);\r\n \tString num2=JOptionPane.showInputDialog(null,\"Ingrese el segundo numero: \");\r\n\t\tint n2= new Integer(num2);\r\n \t\r\n \tsuma=n1+n2;\r\n \tresta=n1-n2;\r\n \tmultiplicacion=n1*n2;\r\n \t\r\n \tJOptionPane.showMessageDialog(null,\"el resultado es \");\r\n \tJOptionPane.showMessageDialog(null,\"suma es \"+suma);\r\n \tJOptionPane.showMessageDialog(null,\"resta es \"+resta);\r\n \tJOptionPane.showMessageDialog(null,\"multiplicacion es \"+multiplicacion);\r\n\r\n}",
"public static void main(String[] args) {\n\n\n Scanner scanner = new Scanner(System.in);\n // V skobite mu kazvame OT KUDE DA CHETE, v sluchaq da chete ot standarniq\n // vhod, t.e. OT KONZOLATA ! NO MOJE I DA CHETE OT DRUGI MESTA !!!\n // SKENERA VAJI SAMO ZA METODA V KOITO E SUZDADEN, MOJEM DA GO KRUSTIM KAKTO SI ISKAME !\n\n // V Java Integer.parseInt() e ekvivalentno na int.Parse() v C# !!!!!\n //Double.parseDouble() E KATO double.Prse() !!!!\n //scanner.nextLine() e kato console.ReadLine() v C# !!!\n double firstNum = Double.parseDouble(scanner.nextLine());\n double secondNum = Double.parseDouble(scanner.nextLine());\n\n double sum = firstNum + secondNum;\n\n\n // S Place holdera mojem da formatirame kakto si poiskame\n //Trqbva da e .printf() za da raboti.\n System.out.printf(\"Sum = %.2f\", sum);\n\n //VAJNO !!! :\n // V Java nqma decimal, Ima BigInteger, BigDecimal i dr\n // BigInteger e Cqlo chislo koeto e golqmo kolkoto ni subira pametta !\n // BigDecimal e DROBNO CHISLO koeto e golqmo kolkoto ni subira pametta !\n }",
"public static void Program()\n\t{\n\t\t\n\t\tSystem.out.print(\"\\n\\n\\nEnter the first number: \");\n\t\tinput_string_1 = console.next();\n\t\t\n\t\tSystem.out.print(\"Enter the second number: \");\n\t\tinput_string_2 = console.next();\n\t\t\n\t\t// initializing the quantity of slots in the arrays~lists:\n\t\t\n\t\tinput_integerlist_1 = new int[input_string_1.length()];\n\t\tinput_integerlist_2 = new int[input_string_2.length()];\n\t\t\n\t\t// copying the strings into integer arrays, in reverse order\n\t\t// \t\t(1's digit first, to, Nth digit):\n\t\t\n\t\tfor (int count = 0; count < input_string_1.length(); count++)\n\t\t{\n\t\t\tinput_integerlist_1[count] = Character.getNumericValue(\n\t\t\t\tinput_string_1.charAt(input_string_1.length() - 1 - count));\n\t\t}\n\t\t\n\t\tfor (int count = 0; count < input_string_2.length(); count++)\n\t\t{\n\t\t\tinput_integerlist_2[count] = Character.getNumericValue(\n\t\t\t\tinput_string_2.charAt(input_string_2.length() - 1 - count));\n\t\t}\n\t\t\n\t\t// calculating and returning string of the sum of the two integer\n\t\t//\t\tarrays, and displayment:\n\t\t\n\t\tSystem.out.println(\"\\n\\n \" + input_string_1);\n\t\tSystem.out.println(\"+ \" + input_string_2);\n\t\tSystem.out.println(\"= \" + Calculate(input_integerlist_1,\n\t\t\tinput_integerlist_2) + \"\\n\");\n\t}",
"public static void main(String[] args) {\n\t\t\t\tScanner scanner = new Scanner(System.in); \r\n\t\t\t\tSystem.out.print(\"Enter first number \");\r\n\t\t\t\t\r\n\t\t\t\t//Scans the next token of the input as an int and pass to firstValue \r\n\t\t\t\tint firstValue = scanner.nextInt();\r\n\t\t\t\tSystem.out.print(\"Enter second number \");\r\n\t\t\t\t\r\n\t\t\t\t//Scans the next token of the input as an int and pass to secondValue \r\n\t\t\t\tint secondValue = scanner.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"First number is: \"+ firstValue);\r\n\t\t\t\tSystem.out.println(\"Second number is: \"+ secondValue);\r\n\t\t\t\t\r\n\t\t\t\t//Calling method sum which prints the sum of two numbers\r\n\t\t\t\tsum(firstValue , secondValue);\r\n\r\n\t\t\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n System.out.print(\"a= \");\n int a= new Scanner(System.in).nextInt();\n System.out.print(\"b= \");\n int b = new Scanner(System.in).nextInt();\n int c=a*b;\n while (a!=b){\n if (a>b) a=a-b;\n else b=b-a;\n }\n System.out.println(\"UCLN= \"+a);\n System.out.println(\"BCNN= \"+(c/a));\n\n }",
"public static void main(String[] args) {\n\t\tMyCalc cal = new MyCalc();\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"두 정수를 입력하세요.\");\n\t\tSystem.out.print(\"a > \");\n\t\tint a = Integer.parseInt(scan.nextLine());\n\t\tSystem.out.print(\"b > \");\n\t\tint b = Integer.parseInt(scan.nextLine());\n\n\t\tSystem.out.println(a + \" + \" + b + \" = \" + cal.add(a, b));\n\t\tSystem.out.println(a + \" - \" + b + \" = \" + cal.sub(a, b));\n\t\tSystem.out.println(a + \" * \" + b + \" = \" + cal.mul(a, b));\n\t}",
"public static void main(String[] args) {\n\t\tint a;\r\n\t\tint b;\r\n\t\tint c;\r\n\t\tint d;\r\n\t\tint e;\r\n\t\t\r\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the value of n :\");\r\n\t\tint n=s.nextInt();\r\n\t\t\r\n\t\ta=n%10;\r\n\t\tb=a*a;\r\n\t\tc=n/100;\r\n\t\td=c*a;\r\n\t\te=b*d;\r\n\t\tSystem.out.println(b+\"\"+d);\r\n\t\tSystem.out.println(e);\r\n\t}",
"public static void main(String args[]) throws IOException {\n Scanner in = new Scanner(System.in);\n int t = in.nextInt();\n while(t-->0){\n int n = in.nextInt();\n maxProduct(n);\n }\n }",
"public static void main (String [] args) {\n\t\tint num1, num2; //int num1; int num2;\n\t\t\n\t\t//initialize - give a value\n\t\tnum1 = 25;\n\t\tnum2 = 4;\n\t\t\n\t\tint sum = 0;\n\t\tint mult = 0;\n\t\tint div = 0;\n\t\t\n\t\tsum = num1 + num2;\n\t\tmult = num1*num2;\n\t\tdiv = num1/num2;\n\t\t\n\t\tSystem.out.println(\"The sum of the numbers is: \"+ sum);\n\t\tSystem.out.println(\"The product of the numbers is: \"+ mult);\n\t\tSystem.out.println(\"The division of the numbers is: \"+ div);\n\t\t\n\t\t\n\t\tdouble d1, d2;\t\n\t\t\n\t\td1 = 6.99;\n\t\td2 = 3.5;\n\t\t\n\t\t\n\t\t//double will keep all the number but division will only hold the whole number\n\t\tdouble div_d = 0;\n\t\tdouble div_i = 0;\n\n\t\t\n\t\tdiv_d = d1/d2;\n\t\tSystem.out.println(\"The division of the double numbers is: \" + div_d);\n\t\t\n\t\t//not deciding on the right data types, you might loose information\n\t\tdiv_i = num1/num2;\n\t\tSystem.out.println(\"The division of the numbers is: \" + div_i);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tSystem.out.print(\"請輸入A值\");\n\t\tint a = scn.nextInt();\n\t\tSystem.out.print(\"請輸入B值\");\n\t\tint b = scn.nextInt();\n\t\tSystem.out.print(\"請輸入+、-、*、/\");\n\t\tString c = scn.next();\n\t\tif(c.equals(\"+\")){\n\t\t\tSystem.out.print(\"相加=\"+(a+b));\n\t\t}else{\n\t\t\tif(c.equals(\"-\")){\n\t\t\t\tSystem.out.print(\"相減=\"+(a-b));\n\t\t\t}else{\n\t\t\t\tif(c.equals(\"*\")){\n\t\t\t\t\tSystem.out.print(\"相乘=\"+(a*b));\n\t\t\t\t}else{\n\t\t\t\t\tif(c.equals(\"/\")){\n\t\t\t\t\t\tSystem.out.print(\"相除=\"+(a/b));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter the first no:\");\n\t\tint m = sc.nextInt();\n\t\tSystem.out.print(\"Enter the second no:\");\n\t\t\n\t\tint n = sc.nextInt();\n\t\n\t\tSystem.out.println(\"LCM of \" + m + \" and \" + n + \" is: \" + lcmCalculator(m, n) );\n\t\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int start = sc.nextInt();\n int end = sc.nextInt();\n long res = 1;\n for (; start < end; start++) {\n res *= start;\n }\n System.out.println(res);\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringTokenizer tok;\n\n\t\ttok = new StringTokenizer(reader.readLine());\n\t\t\n\t\tint a = Integer.parseInt(tok.nextToken());\n\t\tint b = Integer.parseInt(tok.nextToken());\n\t\tint steps = 0;\n\t\t\n\t\twhile(a%2 != 0 && b%2 != 0) {\n\t\t\tsteps++;\n\t\t\ta >>= 1;\n\t\t\tb >>= 1;\n\t\t}\n\t\t\n\t\tlong multiplier = 1;\n\t\tfor (int i = 1; i <= steps; i++) {\n\t\t\tmultiplier *= 4;\n\t\t}\n\t\t\n\t\tSystem.out.println((multiplier - 1) / 3);\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n BufferedOutputStream out = new BufferedOutputStream(System.out);\n StringBuilder res = new StringBuilder();\n\n while (true) {\n // skip blank lines and end when no more input\n String line = in.readLine();\n if (line == null)\n break;\n else if (line.equals(\"\"))\n continue;\n\n int b = Integer.valueOf(line);\n int p = Integer.valueOf(in.readLine());\n int m = Integer.valueOf(in.readLine());\n\n res.append(modPow(b, p, m));\n res.append('\\n');\n }\n\n out.write(res.toString().getBytes());\n\n out.close();\n in.close();\n }",
"public static void main(String[] args) {\n\t\tint numAdd;\n\t\tnumAdd=125+24;\n\t\tSystem.out.println(numAdd+ \"=125+24\");\n\t\tint numSubstract=125-24;\n\t\tSystem.out.println(numSubstract+ \"=125-24\");\n\t\tint num1 =125;\n\t\tint num2= 24;\n\t\tSystem.out.println(num1+\"x\"+num2+\"=\"+(num1*num2));\n\t\t\n\t\t\n\t\t\n\t\t\t\t\n\t}",
"public static void main(String[] args) {\n \n /**\n * Creates scanner object.\n */\n Scanner scan = new Scanner(System.in);\n \n /**\n * Prompts for first input.\n */\n System.out.println(\"Enter your first number\");\n \n /**\n * Reads and stores user's first input.\n */\n double input1 = scan.nextDouble();\n \n /**\n * Prompts for user's second input.\n */\n System.out.println(\"Enter your second number\");\n \n /**\n * Reads and stores user's second input.\n */\n double input2 = scan.nextDouble();\n \n /**\n * Prints sum of inputs.\n */\n System.out.println(\"The sum of your numbers is: \" \n + (input1 + input2));\n \n /**\n * Prints difference of inputs.\n */\n System.out.println(\"The difference of your numbers is: \" \n + (input1 - input2));\n \n /**\n * Prints quotient of inputs.\n */\n System.out.println(\"The quotient of your numbers is: \" \n + (input1 / input2));\n \n /**\n * Prints product of inputs.\n */\n System.out.println(\"The product of your number is: \" \n + (input1 * input2));\n \n /**\n * Indicates that the program ran correctly.\n */\n System.out.println(\"Question three was called and ran sucessfully.\");\n \n /**\n * Closes Scanner.\n */\n scan.close();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tdouble a, b, c, r, s, d; \n\t\t\n\t\tScanner ler = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Escreva o numero A: \");\n\t\ta = ler.nextDouble();\n\t\tSystem.out.println(\"Escreva o numero B: \");\n\t\tb = ler.nextDouble();\n\t\tSystem.out.println(\"Escreva o numero C: \");\n\t\tc = ler.nextDouble();\n\t\t\n\t\tr = Math.pow(a + b, 2);\n\t\ts = Math.pow(b + c, 2);\t\n\t\td = (r + s) / 2;\n\t\t\n\t\tSystem.out.println(\"O Resultado é: \" + d);\n\t\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the n value:\");\n\t\tint n = sc.nextInt();\n\t\tSystem.out.println(\"Enter the p value:\");\n\t\tint p = sc.nextInt();\n\t\tSystem.out.println(power(n,p));\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\ta= a*b;//36\r\n\t\tb=a/b;//9\r\n\t\ta=a/b;//4\r\n\t\t\r\n\t\tSystem.out.println(\"a=\"+a);\r\n\t\t\r\n\t\tSystem.out.println(\"b=\"+b);\r\n\t}",
"public static void main(String[] args) {\n\t\tint y;\r\n\t\tdouble x,quotient; // use meaningful names\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to my math program\");\r\n\t\tSystem.out.println(\"I hope you like it\");\r\n\t\t\r\n\t\t// give them initial values ( visualize them )\r\n\t\tx=45;\r\n\t\ty=9;\r\n\t\tquotient=x/y;\r\n\t\t\t\t\r\n\t\t//print their product and quotient\r\n\t\tSystem.out.println(\"The quotient is \" + x + \" / \"+y + \" = \" +quotient );\r\n\t\t\r\n\t\t// end main\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter first Value: \");\n\t\tdouble a = scan.nextDouble();\n\t\tSystem.out.println(\"Enter second Value: \");\n\t\tdouble b = scan.nextDouble();\n\t\tSystem.out.println(\"Enter operation you would like to perform (Example +, - , *, /): \");\n\t\tString s = scan.next();\n\t\tscan.close();\n\t\tdouble ans;\n\t\t\n\t\tif(s.equals(\"+\")){\n\t\t\tans = a+b;\n\t\t}\n\t\telse if(s.equals(\"-\")){\n\t\t\tans = a-b;\n\t\t}\n\t\telse if(s.equals(\"*\")){\n\t\t\tans = a*b;\n\t\t}\n\t\telse if(s.equals(\"/\")){\n\t\t\tans = a/b;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Operation\");\n\t\t\tans = 0;\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tSystem.out.printf(\"%.3f %s %.3f = %.3f\",a,s,b,ans);\n\n\n\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\tScanner scan = new Scanner(System.in);\n\tSystem.out.println(\"Please enter an integer\");\t\n\tint a = scan.nextInt();\n\tSystem.out.println(\"Please enter second integer\");\n\tint b = scan.nextInt();\n\t\n\t\ta=a+b; \n\t\tb=a-b;\n\t\ta=a-b;\n\t\t\n\t\tSystem.out.println(\"a is \" + a);\n\t\tSystem.out.println(\"b is \" + b);\n\t\t\n\t\n\t\t\n\t}",
"public static void main(String[] args) {\n NumberFact a, b;\n a = new NumberFact(1_000);\n b = new NumberFact(999);\n\n ArithmeticOperator x, y;\n x = new ArithmeticOperator('*', a, b);\n y = new ArithmeticOperator('+', x, b);\n\n System.out.println(y);\n System.out.println(y.eval());\n }",
"public static void main(String[] args)\n {\n double start = System.currentTimeMillis();\n int sum = 0;\n BigInteger product = new BigInteger(\"1\");\n BigInteger one = new BigInteger(\"1\");\n BigInteger number = new BigInteger(\"100\");\n while (number.compareTo(one) == 1)\n {\n product = product.multiply(number);\n number = number.subtract(new BigInteger(\"1\"));\n }\n String pString = product.toString();\n for (int i = 0; i < pString.length(); i++)\n {\n int n = Character.getNumericValue(pString.charAt(i));\n sum += n;\n }\n System.out.println(sum);\n System.out.printf(\"\\nRunning Time: %fms\\n\", System.currentTimeMillis() - \n start);\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(maxProduct(new int[]{3,4,5,2}));\r\n\t\tSystem.out.println(maxProduct(new int[]{1,5,4,5}));\r\n\t\tSystem.out.println(maxProduct(new int[]{3,7}));\r\n\t\tSystem.out.println(maxProduct(new int[]{2,1,4,3,5}));\r\n\t}",
"public String multiply(String num1, String num2) {\n\t int[] result=new int[num1.length()+num2.length()];\n\t int[] temp1=new int[num1.length()];\n\t int[] temp2=new int[num2.length()];\n\t for(int i=0;i<temp1.length;i++) {\n\t \ttemp1[i]=num1.charAt(i)-'0';\n\t }\n\t for(int i=0;i<temp2.length;i++){\n\t \ttemp2[i]=num2.charAt(i)-'0';\n\t }\n\t \n\t for(int j=temp1.length-1;j>=0;j--) {\n\t \tfor(int k=temp2.length-1;k>=0;k--) {\n\t \t\t result[j+k+1]+=temp1[j]*temp2[k];\n\t \t}\n\t }\n\t int carry=0;\n\t for(int i=result.length-1;i>=0;i--) {\n\t \t int temp=(result[i]+carry)%10;\n\t \t carry=(result[i]+carry)/10;\n\t \t result[i]=temp;\n\t }\n\t StringBuilder b1=new StringBuilder();\n\t for(int num:result) b1.append(num);\n\t while (b1.length() != 0 && b1.charAt(0) == '0') b1.deleteCharAt(0);\n return b1.length() == 0 ? \"0\" : b1.toString();\n\t \n }",
"public static int Num1() {\n\t\t Scanner s=new Scanner(System.in);\r\n\t\t System.out.println(\"Enter Num1 & Num2\");\r\n\t\t int num1=s.nextInt();\r\n\t\t int num2=s.nextInt();\r\n //System.out.println(num1*num2);\r\n\t\t int res=num1*num2;\r\n\t\t return res;\r\n\t}",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Quotient and remainder Problem\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter number 1\");\n\t\tint a = sc.nextInt();\n\t\tSystem.out.println(\"Enter number 2\");\n\t\tint b = sc.nextInt();\n\t\tint quotient = a/b;\n\t\tint remainder = a%b;\n\t\t\n\t System.out.println(\"Quotient is: \" + quotient);\n\t\tSystem.out.println(\"Remainder is: \" + remainder);\n\t\t \n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint a = 23;\r\n\t\tint b = 2;\r\n\t\tint sum = a+ b;\r\n\t\tSystem.out.println(\"Suma a+b wynosi: \"+sum);\r\n\t\tint roz = a-b;\r\n\t\tSystem.out.println(\"Różnica a-b wynosi: \"+roz);\r\n\t\tint iloczyn = a*b;\r\n\t\tSystem.out.print(\"Iloczyn wynosi: \"+iloczyn);\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner inp= new Scanner(System.in);\n\t\tBigInteger n,m,z;\n\t\tBigInteger x=inp.nextBigInteger();\n\t\tn= x.subtract(new BigInteger(\"1\"));\n\t\tz=x.subtract(new BigInteger(\"3\"));\n\t\tm=n.multiply(z);\n\t\tm=m.add(new BigInteger(\"1\"));\n\t\tSystem.out.println(m);\n\t\t\n\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\tdouble num1;\r\n\t\tdouble num2;\r\n\t\t\r\n\t\t// Define a new variable that holds the character that represents the operator\r\n\t\tchar operator;\r\n\t\t\r\n\t\tdouble answer = 0.0;\r\n\t\t\r\n\t\t// Declare a new Scanner object called eval and set it to take in to the console input\r\n\t\tScanner eval = new Scanner(System.in);\r\n\t\t\r\n\t\t// Prompt the user for the 1st number\r\n\t\tSystem.out.println(\"Enter the 1st number: \");\r\n\t\t// Set num1 to the next double value the user enters\r\n\t\tnum1 = eval.nextDouble();\r\n\t\t\r\n\t\t// Prompt the user for the operator\r\n\t\tSystem.out.println(\"Enter the operator: \");\r\n\t\t// Set operator to the character the user wants\r\n\t\toperator = eval.next().charAt(0);\r\n\t\t\t\t\r\n\t\t// Prompt the user for the 2nd number\r\n\t\tSystem.out.println(\"Enter the 2nd number: \");\r\n\t\t// Set num2 to the next double value the user enters\r\n\t\tnum2 = eval.nextDouble();\r\n\t\t\r\n\t\t\t\t\r\n\t\t// Close the eval to prevent memory leakage\r\n\t\teval.close();\r\n\t\t\r\n\t\t// Take different actions depending on the operator passed to the function\r\n\t\tswitch(operator)\r\n\t\t{\r\n\t\t\t// If the operator is a +\r\n\t\t\tcase '+':\r\n\t\t\t\tanswer = num1 + num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// If the operator is a -\r\n\t\t\tcase '-':\r\n\t\t\t\tanswer = num1 - num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// If the operator is a *\r\n\t\t\tcase '*':\r\n\t\t\t\tanswer = num1 * num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// If the operator is a /\r\n\t\t\tcase '/':\r\n\t\t\t\tanswer = num1 / num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Output the 2 values, the operator and result to the user\r\n\t\tSystem.out.println(\"Answer: \" + num1 + \" \" + operator + \" \" + num2 + \" = \" + answer);\r\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome, here you can calculate the factorial of a number.\");\n\t\tnb = userInputInt(\"What is your number ?\");\n\t\tSystem.out.println(\"the factorial of \" + nb + \" is : \" + calculFactorial(nb) + \".\");\n\t}",
"public static void main(String[] args) {\n\t\tm_threePlaces.setRoundingMode(RoundingMode.HALF_UP);\n\t\tm_onePlace.setRoundingMode(RoundingMode.HALF_UP);\n\t\tm_noPlaces.setRoundingMode(RoundingMode.HALF_UP);\n\t\t\n\t\t/*\n\t\t * Integer Math Portion\n\t\t * Takes two integers in, outputs various operations performed on those inputs\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Please Enter 2 Numbers For Integer Mathematics:\");\n\t\t\n\t\t//gets first integer value\n\t\tSystem.out.print(\"Integer Number 1: \");\n\t\tm_int1 = ScannerUtils.readInt(m_input);\t\n\t\t\n\t\t//gets second integer value\n\t\tSystem.out.print(\"Integer Number 2: \");\n\t\tm_int2= ScannerUtils.readInt(m_input); \t\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints result of addition\n\t\tSystem.out.println(\"Addition: \" + m_int1 + \" + \" + m_int2 + \" = \" + (m_int1 + m_int2) + \"\"); \t\t\t\n\t\t//prints result of subtraction\n\t\tSystem.out.println(\"Subtraction: \" + m_int1 + \" - \" + m_int2 + \" = \" + (m_int1 - m_int2) + \"\");\t\t\t\n\t\t//prints result of multiplication\n\t\tSystem.out.println(\"Multiplication: \" + m_int1 + \" * \" + m_int2 + \" = \" + (m_int1 * m_int2) + \"\");\t\t\n\t\t\n\t\t//finds the result and remainder when the two numbers when divided\n\t\tif (m_int2 != 0) {\n\t\t\tm_div = m_int1 / m_int2; \t\n\t\t\tm_rem = m_int1 % m_int2;\t\n\t\t}\n\t\t\n\t\t//prints result of integer division\n\t\tSystem.out.println(\"Integer Division (No Remainder): \" + m_int1 + \" / \" + m_int2 + \" = \" + m_div + \"\");\t\n\t\t//prints remainder after integer division\n\t\tSystem.out.println(\"Remainder After Integer Division: \" + m_rem + \"\");\t\t\t\t\t\t\t\t\t\n\t\t//prints as a mixed number in reduced form\n\t\tSystem.out.println(\"As A Fraction: \" + m_int1 + \" / \" + m_int2 + \" = \" + m_div + \" and \" + m_rem/findGCD(m_rem, m_int2) + \" / \" + m_int2/findGCD(m_rem, m_int2) + \"\");\t\n\t\t//prints the absolute value of m_int1\n\t\tSystem.out.println(\"The Absolute Value Of Integer Number 1 Is: \" + Math.abs(m_int1) + \"\");\n\t\t//prints the square of int2\n\t\tSystem.out.println(\"Integer Number 2 Raised To The Exponent 2 Is: \" + (int) Math.pow(m_int2, 2) + \"\");\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t/*\n\t\t * Decimal Math Portion\n\t\t * Takes two doubles in and outputs the results of various operations performed on those inputs\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Please Enter 2 Numbers For Decimal Mathematics:\");\n\t\t\n\t\t//gets first integer value\n\t\tSystem.out.print(\"Decimal Number 1: \");\n\t\tm_d1 = ScannerUtils.readDouble(m_input);\t\n\t\t\n\t\t//gets second integer value\n\t\tSystem.out.print(\"Decimal Number 2: \");\n\t\tm_d2= ScannerUtils.readDouble(m_input); \t\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints result of addition\n\t\tSystem.out.println(\"Addition: \" + m_d1 + \" + \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 + m_d2) + \"\"); \t\t\t\n\t\t//prints result of subtraction\n\t\tSystem.out.println(\"Subtraction: \" + m_d1 + \" - \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 - m_d2) + \"\");\t\t\t\n\t\t//prints result of multiplication\n\t\tSystem.out.println(\"Multiplication: \" + m_d1 + \" * \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 * m_d2) + \"\");\t\t\n\t\t//prints result of division\n\t\tSystem.out.println(\"Division: \" + m_d1 + \" / \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 / m_d2) + \"\");\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints square root of first double, can handle negative numbers too by outputting imaginary numbers\n\t\tSystem.out.println(\"The Square Root Of \" + m_d1 + \" (Three Decimal Places) = \" + m_threePlaces.format(Math.sqrt(Math.abs(m_d1))) + (m_d1 >= 0 ? \"\" : \" i\") + \"\");\n\t\t//prints square root of second double, can handle negative numbers too by outputting imaginary numbers\n\t\tSystem.out.println(\"The Square Root Of \" + m_d2 + \" (One Decimal Place) = \" + m_onePlace.format(Math.sqrt(Math.abs(m_d2))) + (m_d2 >= 0 ? \"\" : \" i\") + \"\");\n\t\t//prints the first double rounded\n\t\tSystem.out.println(\"The Value \" + m_d1 + \" Rounded Is \" + m_noPlaces.format(m_d1) + \"\");\n\t\tSystem.out.println(\"The Value \" + m_d2 + \" Rounded Is \" + m_noPlaces.format(m_d2) + \"\");\n\t}",
"public static void main(String[] args) {\n\nScanner s = new Scanner(System.in);\nSystem.out.print(\"Enter number:\"); \nint n=s.nextInt();\n for(int i=2; i < 10; i++)\n {\n System.out.println(n+\" * \"+i+\" = \"+n*i);\n\n\t}\nint num=111;\nfor(int j=2;j<10;j++)\n{\n\tSystem.out.println(num*j);\n}\n}",
"public static void main(String[] args) {\n\t\tint number1=10,number2=20;\r\n\t\tSystem.out.println(\"Addition of two numbers is\"+(number1+number2));\r\n\t\tSystem.out.println(\"Subtraction of two numbers is\"+(number1-number2));\r\n\t\tSystem.out.println(\"Multiplication of two numbers is\"+(number1*number2));\r\n\t\tSystem.out.println(\"Division of two numbers is\"+(number1/number2));\r\n\t\tSystem.out.println(\"modulo of two numbers is\"+(number1%number2));\r\n\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner entrada = new Scanner(System.in);\n\t\tint n1, n2;\n\t\tdouble n3;\n\t\t\n\t\tn1 = entrada.nextInt();\n\t\tn2 = entrada.nextInt();\n\t\tn3 = entrada.nextDouble();\n\t\t\n\t\tSystem.out.println(\"a: \"+((n1*2)/(n2/2)));\n\t\tSystem.out.println(\"b: \"+(n1*3+n3));\n\t\tSystem.out.println(\"c: \"+(Math.pow(n3, 3)));\n\t\t\n\t\tentrada.close();\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Enter Base number and the power \");\r\n\t\t\r\n\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tint number = s.nextInt();\r\n\t\tint pow = s.nextInt();\r\n\t\tint i = 1,res=1;\r\n\t\t\r\n\t\twhile(i<=pow)\r\n\t\t{\r\n\t\t\tres=res*number;\r\n\t\t\ti++;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"The result of \"+number+\"to the power \"+ pow+\"is\"+res);\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\r\n\t\t// Prompts the user to enter two integers\r\n\t\tSystem.out.print(\"Enter two integers: \");\r\n\t\tint m = input.nextInt();\r\n\t\tint n = input.nextInt();\r\n\r\n\t\t// Calls a method and prints GCD\r\n\t\tSystem.out.println(\"The greatest common divisor for number \" + m + \" and \" + n + \" is: \" + gcd(m, n));\r\n\t\t\r\n\t\t//Scanner object closed\r\n\t\tinput.close();\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = 0;\n\t\twhile (num < 1 || num > 9) {\n\t\t\tSystem.out.println(\"enter a number between 1 and 9\");\n\t\t\tnum = sc.nextInt();\n\t\t}\n\t\tfor (int i = 1; i <= num; i++) {\n\t\t\tfor (int j = 1; j <= num; j++) {\n\t\t\t\tSystem.out.print(i + \"*\" + j + \"=\" + (i * j));\n\t\t\t\tSystem.out.println(\" \");\n\t\t\t}\n\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Please enter value1: \");\r\n\t\tSystem.out.println(\"Please enter value2: \");\r\n\t\tint value1 = scanning();\r\n\t\tint value2 = scanning();\r\n\t\tint sum = calcsum(value1, value2, \"+\");\r\n\t\tSystem.out.print(sum);\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tint a;\r\n\t\tint b;\r\n\t\t\r\n\t\ta=20;\r\n\t\tb=10;\r\n\t\t\t\t\r\n\t\tint quotient;\r\n\t\t\r\n\t\tquotient = a/b;\r\n\t\t\r\n\t\tSystem.out.println(\"the quotient of the 2 numbers is:\" + quotient);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tint m=0;\r\n\t\tSystem.out.println(\"Enter 2 numbers\");\r\n\t\tint a=s.nextInt();\r\n\t\tint b=s.nextInt();\r\n\t\tm=a>b?a:b;\r\n\t\tint lcm=0;\r\n\t\twhile(a!=0)\r\n\t\t{\r\n\t\tif(m%a==0 && m%b==0)\r\n\t\t{\r\n\t\t\tlcm=m;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tm++;\r\n\t\t}\r\n\t\tSystem.out.println(\"LCM is \"+lcm);\r\n\t\t\t\r\n\t\t}",
"public static void main(String[] args) {\n int a = 2;\n int b = 3;\n int c = 4;\n int d = 5;\n System.out.println(\"Result: \"+a*b*c*d);\n\n// Part 2: Use scanner to provide numbers\n Scanner s1 = new Scanner (System.in);\n System.out.println(\"Enter one integer to e: \" );\n int e = s1.nextInt();\n System.out.println(\"Enter one integer to f: \" );\n int f = s1.nextInt();\n System.out.println(\"Enter one integer to g: \" );\n int g = s1.nextInt();\n System.out.println(\"Enter one integer to h: \" );\n int h = s1.nextInt();\n System.out.println(\"Result: \" +e*f*g*h);\n\n// 3. way\n int result = 2; // 2\n result = result * 3; // 2 * 3 = 6\n result = result * 4; // 6 * 4 = 24\n result = result * 5; // 24 * 5 = 120\n System.out.println( \"3. way: \" + result );\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(Calculator.powerInt(2, 5));\r\n\t\tSystem.out.println(Calculator.powerDouble(5.5, 2));\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"enter the input:\");\n\t\tint num = scan.nextInt();\n\t\tSystem.out.println(\"factorial of a given number is :\" + Factorial(num));\n\t\tscan.close();\n\t}",
"@When(\"^User multiplies two integers and selects Enter$\")\r\n public void user_multiplies_two_integers_and_selects_enter() throws Throwable {\n \tmultiplyClass multiplyInts = new multiplyClass(); // declaring the object\r\n \tmultiplyInts.main(new String[]{\"multiplySum\"});// calling the method. {\r\n \t}",
"public static void main(String args[]) {\n\t\tBigDecimal start = new BigDecimal(\"2658455991569831744654692615953842176\");\n//\t\tBigDecimal start = new BigDecimal(\"8128\");\n//\t\tBigDecimal dd = start.divide(next, 0);\n//\t\tSystem.out.println(dd);\n\t\t\n\t\tList<BigDecimal> fs = new PerfectNumber().factor2(start, 10, null);\n\t\tBigDecimal multiply = new BigDecimal(1);\n\t\tBigDecimal sum = new BigDecimal(0);\n\t\tfor (BigDecimal d : fs) {\n\t\t\tSystem.out.println(d);\n\t\t\tmultiply = multiply.multiply(d);\n\t\t\tsum = sum.add(d);\n\t\t}\n\t\tSystem.out.println(\"sum = \" + sum);\n\t\tSystem.out.println(\"multiply = \" + multiply);\n\t}"
]
| [
"0.7658321",
"0.76477253",
"0.7535666",
"0.7443598",
"0.74310845",
"0.7390062",
"0.7369261",
"0.7318208",
"0.73055637",
"0.72929394",
"0.7173909",
"0.71736073",
"0.71290934",
"0.71253556",
"0.70716166",
"0.70657974",
"0.70645887",
"0.70388293",
"0.7014276",
"0.70017684",
"0.69933456",
"0.69892776",
"0.6975924",
"0.69484335",
"0.69427526",
"0.6909037",
"0.69039375",
"0.68732905",
"0.6846684",
"0.6823407",
"0.68231404",
"0.68028355",
"0.6796922",
"0.67803526",
"0.6779836",
"0.6779082",
"0.6748563",
"0.6741663",
"0.6729834",
"0.67286056",
"0.67229176",
"0.6711676",
"0.67099833",
"0.669932",
"0.6688944",
"0.6687559",
"0.6686404",
"0.6656214",
"0.66375285",
"0.66169417",
"0.66067547",
"0.66041386",
"0.6603141",
"0.6600693",
"0.6600271",
"0.6593884",
"0.65715826",
"0.6571411",
"0.657097",
"0.6555073",
"0.6551439",
"0.65464693",
"0.6541672",
"0.65320593",
"0.65300953",
"0.6515667",
"0.6502798",
"0.64969593",
"0.64946973",
"0.6494021",
"0.6492418",
"0.64892185",
"0.646625",
"0.64550996",
"0.6439313",
"0.64370203",
"0.64331555",
"0.64222544",
"0.6411224",
"0.6404796",
"0.6402753",
"0.6398577",
"0.63958627",
"0.6393823",
"0.638968",
"0.63879967",
"0.63795793",
"0.63792026",
"0.63786775",
"0.6375201",
"0.63738406",
"0.6367346",
"0.6364804",
"0.6361295",
"0.6357564",
"0.6356878",
"0.63437116",
"0.63271356",
"0.63234985",
"0.63220024"
]
| 0.65856147 | 56 |
Created by James on 7/31/2017. | public interface ItemObjectService {
ItemObject findByItemId(Long itemId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\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}",
"private void m50366E() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"private Rekenhulp()\n\t{\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public final void mo91715d() {\n }",
"private TMCourse() {\n\t}",
"public void mo12930a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"@Override\n protected void getExras() {\n }",
"public void mo1531a() {\n }",
"public void mo21779D() {\n }",
"@Override\n\tpublic void create () {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"public void mo21792Q() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"Petunia() {\r\n\t\t}",
"public void mo21785J() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo21878t() {\n }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"public void mo21793R() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void interr() {\n\t}",
"public void mo55254a() {\n }",
"public void mo9848a() {\n }",
"private UsineJoueur() {}",
"private CreateDateUtils()\r\n\t{\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public void mo12628c() {\n }",
"Consumable() {\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"public void mo21795T() {\n }",
"@Override\n void init() {\n }",
"public void mo3376r() {\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n public void init() {}",
"public void mo21794S() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override public int describeContents() { return 0; }",
"@Override\n\tpublic void create() {\n\n\t}",
"public abstract void mo56925d();",
"public void mo115190b() {\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public void create() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public String toString() {\n return \"\";\n }",
"public void mo3749d() {\n }",
"public void mo21791P() {\n }"
]
| [
"0.60685027",
"0.5952009",
"0.58868015",
"0.572864",
"0.57191515",
"0.5690576",
"0.5653858",
"0.5652206",
"0.5646825",
"0.5604596",
"0.5604454",
"0.56020594",
"0.56020594",
"0.5596573",
"0.55881184",
"0.5573437",
"0.5567117",
"0.55622375",
"0.5560544",
"0.55290323",
"0.55195403",
"0.55004144",
"0.5495213",
"0.5495213",
"0.5495213",
"0.5495213",
"0.5495213",
"0.5495213",
"0.5495213",
"0.5495072",
"0.54865146",
"0.54770505",
"0.54612076",
"0.54483086",
"0.5434462",
"0.54202443",
"0.54186314",
"0.5409237",
"0.5407755",
"0.5406289",
"0.5402531",
"0.5401811",
"0.53977895",
"0.5396212",
"0.5393399",
"0.5389509",
"0.53869593",
"0.53869575",
"0.53860396",
"0.5378933",
"0.53722405",
"0.5364287",
"0.5361534",
"0.5361275",
"0.53590447",
"0.5357718",
"0.5354153",
"0.5351163",
"0.534532",
"0.534532",
"0.534532",
"0.534532",
"0.534532",
"0.534532",
"0.534394",
"0.53358173",
"0.5335037",
"0.5334275",
"0.5333122",
"0.533053",
"0.5317467",
"0.531345",
"0.53089225",
"0.53089225",
"0.53070515",
"0.5306553",
"0.53062415",
"0.5299728",
"0.529932",
"0.529932",
"0.529932",
"0.529932",
"0.529932",
"0.52987766",
"0.52918875",
"0.52869993",
"0.5284396",
"0.52801293",
"0.5278498",
"0.527533",
"0.52747977",
"0.5270202",
"0.52700335",
"0.52697885",
"0.5268169",
"0.5264401",
"0.52640814",
"0.5259582",
"0.5258084",
"0.5252163",
"0.52492255"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object object, Exception e)
throws Exception {
} | {
"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 postHandle(HttpServletRequest request, HttpServletResponse response, Object object, ModelAndView modelAndView)
throws Exception {
} | {
"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 url | @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) throws Exception {
logger.info(request.getRequestURI());
//method
logger.info(request.getMethod());
//ip
logger.info(request.getRemoteAddr());
Enumeration enu=request.getParameterNames();
while(enu.hasMoreElements()){
String paraName=(String)enu.nextElement();
logger.info(paraName+": "+request.getParameter(paraName));
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void getUrl() {\n\r\n\t}",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}",
"@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"@Override\r\n public String getUrl()\r\n {\n return null;\r\n }",
"@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ActualizarCompromiso\";\r\n\t}",
"protected abstract String getUrl();",
"public abstract String getUrl();",
"public String getUrl();",
"public String getUrl();",
"public String getUrl();",
"public String getUrl();",
"@Override\n\tprotected String url() {\n\t\treturn \"user\";\n\t}",
"public String getUrl(){\n \treturn url;\n }",
"@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}",
"@Nullable\n public abstract String url();",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}",
"public String getURL();",
"@Override\r\n public String getURL() {\n return url;\r\n }",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"public abstract String getURL();",
"@Override\npublic void get(String url) {\n\t\n}",
"String url();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"public void changeUrl() {\n url();\n }",
"public String getUrl() { return url; }",
"@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn \"http://apis.skplanetx.com/melon/genres\";\r\n\t}",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"private String methodUrl(String method) {\n return apiUrl + token + \"/\" + method;\n }",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}",
"public String getApiUrl();",
"Uri mo1686a();",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/actualizarCliente\";\r\n\t}",
"String getSpecUrl();",
"public void setUrl(String url){\n\t\t_url=url;\n\t}",
"URL getUrl();",
"public String getURL() { return url; }",
"String getServiceUrl();",
"public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}",
"public abstract RestURL getURL();",
"Uri getUrl();",
"public static URL getUrlForAddCar()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/vehicle\";\r\n return str2url( strUrl );\r\n }",
"public void setUrl( String url )\n {\n this.url = url;\n }",
"public void setUrl( String url )\n {\n this.url = url;\n }",
"WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }",
"public void setURL(String _url) { url = _url; }",
"@Override\n\tpublic String generateUrl(String keyName) {\n\t\treturn null;\n\t}",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"public String url() {\n return this.url;\n }",
"public java.lang.String getUrl(){\r\n return this.url;\r\n }",
"String makePlanCommunityUrl();",
"URL getRepositoryWebUrl(ProgrammingExerciseParticipation participation);",
"java.lang.String getApiUrl();",
"String getUri();",
"public void setUrl(String url) {\n this.url = url;\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://developer.zohoapis.eu\";\n\t\t}",
"java.lang.String getBookingURL();",
"public void setUrl(String url);",
"public void setUrl(String url);",
"public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}",
"@Test\n public void getUrl() {\n Locale locale = new Locale(\"en\", \"US\");\n FinancialMarketsBalanceOfPaymentsClient client = new FinancialMarketsBalanceOfPaymentsClient(locale);\n\n assertEquals(URLEndpoint.getRootUrl(locale).append(\"FM/FM0001/\"), client.getUrl());\n }",
"private String getUrlPlanet() {\n return this.url + this.resource;\n }",
"@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}",
"String getLink();",
"private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }",
"@Test\n public void urlTest() {\n // TODO: test url\n }",
"public String getUri();",
"private URL createURLaddUser() {\n try {\n String urlString;\n\n urlString = \"http://cs262.cs.calvin.edu:8081/fitness/users\";\n\n return new URL(urlString);\n\n } catch (Exception e) {\n Toast.makeText(this, \"Failed to make URL\", Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }",
"@BusMethod(replySignature=\"s\")\n public String GetUrl() throws BusException;",
"public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}",
"public void setUrl(String url) {\r\n this.url = url;\r\n }",
"public void setUrl(String url) {\r\n this.url = url;\r\n }",
"public void setUrl(String url) {\r\n this.url = url;\r\n }",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"private void buildTimeChartUrl() {\n url = \"http://q.lizone.net/index/index/fenshi/label/\" + dataItem.label + \"/\";//api 2.0\n }",
"public String setUrl() throws JSONException {\n url = baseUrl + searchName;\n for(int i = 0; i < typesCheckList.size(); i++) {\n if(typesObj.has(typesCheckList.get(i))){\n url += typesObj.getString(typesCheckList.get(i));\n }\n }\n if(V)System.out.println(url);\n return url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public void setUrl(String url) {\n this.url = url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }"
]
| [
"0.729175",
"0.6948634",
"0.6933808",
"0.6847099",
"0.6792132",
"0.67684436",
"0.6722376",
"0.65799576",
"0.6576047",
"0.65728277",
"0.65728277",
"0.65728277",
"0.65728277",
"0.6568225",
"0.6531455",
"0.6515306",
"0.6493764",
"0.6489214",
"0.6453453",
"0.64211994",
"0.63883936",
"0.63883936",
"0.63883936",
"0.63883936",
"0.63883936",
"0.6381554",
"0.63584375",
"0.63104844",
"0.63009167",
"0.63009167",
"0.63009167",
"0.63009167",
"0.63009167",
"0.63009167",
"0.62705755",
"0.6265734",
"0.6247575",
"0.6199456",
"0.6189817",
"0.6189817",
"0.6185989",
"0.6172059",
"0.6152418",
"0.6131491",
"0.6127786",
"0.612371",
"0.6106367",
"0.60933906",
"0.6083009",
"0.60800844",
"0.6078188",
"0.6067878",
"0.604411",
"0.6042277",
"0.60213",
"0.60213",
"0.60141486",
"0.6014041",
"0.60093504",
"0.6007102",
"0.6007102",
"0.60056007",
"0.59915847",
"0.5991514",
"0.59854347",
"0.59844667",
"0.5975124",
"0.59651893",
"0.5963413",
"0.5962838",
"0.5960978",
"0.5960978",
"0.5959762",
"0.5956291",
"0.5952088",
"0.59280986",
"0.59170014",
"0.59128696",
"0.5904695",
"0.5903659",
"0.590211",
"0.589786",
"0.58958524",
"0.58896387",
"0.58896387",
"0.58896387",
"0.58875424",
"0.58875424",
"0.58791184",
"0.58769137",
"0.5872388",
"0.5872388",
"0.5872388",
"0.5872388",
"0.5872388",
"0.5872388",
"0.5872388",
"0.5872388",
"0.58676",
"0.58647794",
"0.58647794"
]
| 0.0 | -1 |
returns the smallest value in the array | public static int getMin(int[] array) {
//TODO: write code here
int min = array[0];
for(int a : array) {
min = a < min ? a : min;
}
return min;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }",
"int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}",
"public static int findMin(){\n int min = array[0];\n for(int x = 1; x<array.length; x++ ){\n if(array[x]<min){\n min=array[x];\n }\n }\n return min;\n}",
"public static int getMin(int[] inputArray){\n int minValue = inputArray[0];\n for(int i=1; i<inputArray.length;i++){\n if(inputArray[i] < minValue){\n minValue=inputArray[i];\n }\n }\n return minValue;\n }",
"public static double min(double[] array) { \r\n \r\n double minNum = array[0];\r\n for(int i = 0; i < array.length; i++) {\r\n if(minNum > array[i]) {\r\n minNum = array[i];\r\n }\r\n }\r\n return minNum;\r\n }",
"public static double getMin(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i])\r\n\t\t\t\tmin = array[i];\r\n\t\treturn min;\r\n\t}",
"public int min(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int min = array[0];\n for(int i = 0; i < array.length; i++){\n if (array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static int Min(int[] array) {\r\n\t\tint minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++) {\r\n\t\t\tif (array[i] < minValue) {\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minValue;\r\n\t}",
"public static int min(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n if( m > a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"public static float min(float [] array)\r\n\t{\r\n\t\tfloat minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValue)\r\n\t\t\t{\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValue;\r\n\t}",
"public static double min(double[] array) {\n\t\tif (array.length==0) return Double.POSITIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.min(re, array[i]);\n\t\treturn re;\n\t}",
"public long min() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] < result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find min of empty array\");\n\t\t}\n\t}",
"public static int min(int[] theArray) {\n\n //sets a starting value is used if use the alternative code.\n int smallest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n Collections.min(values);\n\n //get the smallest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the smallest values\n smallest = values.stream().min(Integer::compare).get();\n\n ////Alternative code does the same thing.\n// for (int number : theArray) {\n//\n// if (smallest > number) {\n// smallest = number;\n// }\n// }\n\n return smallest;\n\n }",
"public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}",
"public static int min(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n \n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"private static int getMin(int[] original) {\n int min =original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] < min) min = original[i];\n }\n return min;\n }",
"public int min()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint minNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] < minNumber)\n\t\t\t\t{\n\t\t\t\t\tminNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn minNumber;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\n\t}",
"private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }",
"int findMin(int[] arr){\n\t\tint minimum=1000;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]<minimum) {\n\t\t\t\tminimum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public static int findMinimum(int[] array) {\n\n int min;\n\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n } else {\n min = array[0];\n for (int i= 0; i<array.length; i++) {\n if (min > array[i]) {\n min = array[i];\n }\n }\n return min;\n }\n \n }",
"public static int minValue(int[] numArr) {\r\n\t\tint temp = numArr[0] < numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp < numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}",
"public static int findMinimum(int[] array) {\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n }\n int left = 0;\n int right = array.length -1;\n int element = findPivot(array, left, right);\n return element;\n }",
"public static int getMinIndex(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tint minIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i]) {\r\n\t\t\t\tmin = array[i];\r\n\t\t\t\tminIndex = i;\r\n\t\t\t}\r\n\t\treturn minIndex;\r\n\t}",
"public static int minArray(int[] arr) {\n int min_value = Integer.MAX_VALUE;\n for (int i = 0; i < arr.length; i++) {\n if (min_value > arr[i]) {\n min_value = arr[i];\n }\n }\n return min_value;\n }",
"public Integer findSmallestNumber() {\r\n\t\t// take base index element as smallest number\r\n\t\tInteger smallestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] < smallestNumber) {\r\n\t\t\t\tsmallestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn smallestNumber;\r\n\t}",
"public static int argmin(double[] array) {\n\t\tdouble min = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]<min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}",
"private static double min(Double[] darray){\n\t\tdouble min = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmin = Math.min(min,dd);\n\t\t}\n\t\treturn min;\n\t}",
"public static double min(double[] array, double min) {\n for (int i = 1; i < array.length; i++) {\n if (array[i] <= min) {\n min = array[i];\n }\n }\n return min;\n }",
"private static int findMinInArr(int[] arr) {\n\t\tint min = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem < min) {\n\t\t\t\tmin = elem;\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }",
"private static void min(int[] a) {\n int min = a[0];\n for(int i=1; i<a.length; i++){\n if(min > a[i]){\n min = a[i];\n }\n }\n System.out.println(\"Min\" + min);\n\n }",
"public static double min(double[]array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n double min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Double.isNaN(array[i])){\n return Double.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static float min(float[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n float min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Float.isNaN(array[i])){\n return Float.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public int findMin(int[] num) {\n \t\n \tif (num.length == 1) {\n \t return num[0];\n \t}\n \t\n \tint up = num.length - 1,\n \t low = 0,\n \t mid = (up + low) / 2;\n \twhile (up > low) {\n \t if (mid + 1 < num.length && mid - 1 >= 0 && num[mid] < num[mid - 1] && num[mid] < num[mid + 1]) {\n \t return num[mid];\n \t }\n \t if (num[mid] > num[up]) {\n \t low = mid + 1;\n \t } else {\n \t up = mid - 1;\n \t }\n \t \n \t mid = (up + low) / 2;\n \t}\n \treturn num[mid];\n\t}",
"private void regularMinDemo() {\n int min = numbers[0];\n for(int i = 1; i < numbers.length; i++) {\n if (numbers[i] < min) min = numbers[i];\n }\n System.out.println(min);\n }",
"private int getMin(int[] times) {\n\n\t\t//Initially set min to the first value\n\t\tint min = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Set the minimum\n\t\t\tif (times[i]<min) {\n\n\t\t\t\tmin = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }",
"public static int getMin(int arr[][]) {\n\t\tint minNum;\n\t\t\n\t\tminNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] < minNum) {\n\t\t\t\t\tminNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn minNum;\n\t}",
"static int findMin0(int[] nums) {\r\n \r\n // **** sanity check ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[nums.length - 1] > nums[0])\r\n return nums[0];\r\n\r\n // **** loop looking for the next smallest value ****\r\n for (int i = 0; i < nums.length - 1; i++) {\r\n if (nums[i] > nums[i + 1])\r\n return nums[i + 1];\r\n }\r\n\r\n // **** min not found ****\r\n return -1;\r\n }",
"public static int min(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int min = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] < min) {\n min = a[i];\n }\n }\n }\n return min;\n }",
"public static int findMin(int[] A) {\n\t\tint ans = 0;\n\t\tfor(int i=1; i<A.length; i++) {\n\t\t\tif(ans > A[i]) {\n\t\t\t\tans = A[i];\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}",
"public static int indexOfSmallestElement(int[] array) {\n\t\tint min = array[0];\n\t\tint minIndex = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] < min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tminIndex = i;\n\t\t\t}\n\t\t}\n\t\treturn minIndex;\t\n\t}",
"public void minimum(int[] arr){\n int min = arr[0];\n for(int i = 1; i< arr.length-1; i++){ //why i = 1 means because we have already taken the arr[0] as minimum\n if(arr[i] < min){\n min = arr[i];\n }\n } \n System.out.println(\"The minimum Element in the array is : \"+min);\n }",
"public static int findMinElement(int[] array) {\n if(array.length < 1) {\n throw new IllegalArgumentException(\"array is empty\");\n }\n int left = 0;\n int right = array.length - 1;\n int mid = (left + right) / 2;\n while(left < right) {\n if(array[(mid - 1) % array.length] > array[mid]) {\n return array[mid];\n } else if (array[mid] < array[right]) {\n right = mid - 1;\n } else {\n left = mid + 1;\n }\n mid = (left + right) / 2;\n }\n return array[mid];\n }",
"private Double getMin(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.min(d, ret);\n }\n return ret;\n }",
"public int extractMinimum() {\n if (size == 0) {\n return Integer.MIN_VALUE;\n }\n if (size == 1) {\n size--;\n return arr[0];\n }\n\n MathUtil.swap(arr, 0, size - 1);\n size--;\n minHeapify(0);\n return arr[size];\n }",
"public int getMin() {\n\t\t\treturn harr[0];\n\t\t}",
"static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}",
"public static float min(final float[] data) {\r\n float min = Float.MAX_VALUE;\r\n for (final float element : data) {\r\n if (min > element) {\r\n min = element;\r\n }\r\n }\r\n return min;\r\n }",
"public DHeap_Item Get_Min()\n {\n\treturn array[0];\n }",
"public static int CalculateLowest(int[] LowestArray){\n LowestInArray l1 = new LowestInArray();\n l1.LowestNumber = LowestArray[0];\n if (LowestArray.length>1){\n System.out.println(\"Many Elements in Array\");\n for (int i=0; i<LowestArray.length;i++){\n if (LowestArray[i]< l1.LowestNumber){\n l1.LowestNumber = LowestArray[i];\n }\n }\n }\n return l1.LowestNumber;\n }",
"public static int min(int[] mainArray) {\r\n\t\tint min1 = 0;\r\n\t\tfor(int lessThan = 1; lessThan < mainArray.length; lessThan ++) {\r\n\r\n\t\t\tif(mainArray[lessThan]<mainArray[min1]) {\r\n\t\t\t\tmin1 = lessThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn min1;\r\n\t}",
"public T getMin()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn array[0];\n\t}",
"public static int getIndexOfMin(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double min = Double.MAX_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] < min) {\n min = x[i];\n index = i;\n }\n }\n return (index);\n }",
"int min();",
"public int heapMin() {\n return array[0];\n }",
"public int getMinimumScore(){\n\n /*\n * creating variable of type int name it lowestScore go in to index 0 and sub 0\n * and lowestScore is refering to instance variable scores\n */\n int lowestScore = scores[0][0]; // assume this value is the smallest score value\n\n /* enhanced for loop with array of type int named gameScores and it will go trough scores array*/\n for (int[] gameScores : scores){\n\n /*\n * and another enhanced for loop inside first for loop\n * int variable, name score and it will iterate(go/repeat) through array gameScores\n *\n */\n for (int score : gameScores){\n if (score < lowestScore){\n lowestScore = score;\n }\n }\n }\n return lowestScore;\n }",
"static int minValues(int[] x) {\n\t\tint min = 0;\n\n\t\tfor (int y : x) {\n\t\t\tif (y < min) {\n\t\t\t\tmin = y;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"int getMin() {\n\t\tif (stack.size() > 0) {\n\t\t\treturn minEle;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}",
"public double minXp(){\n\t\tmin = xp[0];\n\t\tfor(int i=1;i<xp.length;i++){\n\t\t\tif(xp[i]<min){\n\t\t\t\tmin=xp[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }",
"public static double findMin(double[] da) {\n\n\t\t// fjern = \"0.0\" når metoden implementeres for ikke få forkert minimum\n\t\tdouble min = da[0];\n\t\t\n\t\t// TODO\n\t\t// OPPGAVE - START\n\t\tfor(double d : da) {\n\t\t\tif(d < min) {\n\t\t\t\tmin = d;\n\t\t\t}\n\t\t}\n\t\t// OPPGAVE - SLUT\n\t\treturn min;\n\t}",
"public T findMin();",
"public static int min(int[] values) throws MathsException {\r\n\t\tif(values.length < Integer.MIN_VALUE || values.length > Integer.MAX_VALUE)\r\n\t\t\tthrow new MathsException(\"Not ok\");\r\n\t\tint minimum = values[0];\r\n\t\tfor(int i=1;i<values.length;i++)\r\n\t\t\tif(minimum > values[i])\r\n\t\t\t\tminimum = values[i];\r\n\t\treturn minimum;\r\n\t}",
"private double min(double[] vector){\n if (vector.length == 0)\n throw new IllegalStateException();\n double min = Double.MAX_VALUE;\n for(double e : vector){\n if(!Double.isNaN(e) && e < min)\n min = e;\n }\n return min;\n }",
"public int findMinimum(int[] numbers, int length)\n {\n }",
"E minVal();",
"private double getMin() {\n return Collections.min(values.values());\n }",
"public int findMin()\n {\n if(isEmpty())\n {\n throw new NoSuchElementException(\"Underflow Exeption\");\n }\n return heap[0];\n }",
"public static double min(double... values) {\n/* 86 */ Objects.requireNonNull(values, \"The specified value array must not be null.\");\n/* 87 */ if (values.length == 0) {\n/* 88 */ throw new IllegalArgumentException(\"The specified value array must contain at least one element.\");\n/* */ }\n/* 90 */ double min = Double.MAX_VALUE;\n/* 91 */ for (double value : values)\n/* 92 */ min = Math.min(value, min); \n/* 93 */ return min;\n/* */ }",
"public static int getMin(int[] scores) {\r\n\t\t\r\n\t\tint temp = 100;\r\n\t\tfor(int i = 0; i < scores.length; ++i) {\r\n\t\t\t\r\n\t\t\tif (scores[i] < temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}",
"int getMin( int min );",
"public int findLowestTemp() {\n\t\t\n\t\tint min = 0;\n\t\tint indexLow = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][1] < min) {\n\t\t\t\tmin = temps[i][1];\n\t\t\t\tindexLow = 0;\n\t\t\t}\n\t\t\n\t\treturn indexLow;\n\t\t\n\t}",
"static int findMin(int[] nums) {\r\n \r\n // **** sanity check(s) ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** initialization ****\r\n int left = 0;\r\n int right = nums.length - 1;\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[right] > nums[left])\r\n return nums[left];\r\n\r\n // **** binary search approach ****\r\n while (left < right) {\r\n\r\n // **** compute mid point ****\r\n int mid = left + (right - left) / 2;\r\n\r\n // **** check if we found min ****\r\n if (nums[mid] > nums[mid + 1])\r\n return nums[mid + 1];\r\n\r\n if (nums[mid - 1] > nums[mid])\r\n return nums[mid];\r\n\r\n // **** decide which way to go ****\r\n if (nums[mid] > nums[0])\r\n left = mid + 1; // go right\r\n else\r\n right = mid - 1; // go left\r\n }\r\n\r\n // **** min not found (needed to keep the compiler happy) ****\r\n return 69696969;\r\n }",
"private static int indexOfSmallest(int[] a, int start) {\n int minNum = a[start];\n int minIndex = start;\n for(int i=start; i<a.length; i++){\n if(a[i]<minNum){\n minNum = a[i];\n minIndex = i;\n }\n\n }\n return minIndex;\n }",
"public int cariMinimum(int[] min) {\n\t\tint minimum = min[0];\n\t\tint jumlah = min.length;\n\t\tfor (int i = 0; i < jumlah; i++) {\n\t\t\tif (min[i] < minimum) {\n\t\t\t\tminimum = min[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public int findMin(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n if (nums.length == 1) {\n return nums[0];\n }\n int l = 0;\n int r = nums.length - 1;\n while (l < r) {\n int m = (l + r) / 2;\n if (m > 0 && nums[m] < nums[m - 1]) {\n return nums[m];\n }\n if (nums[l] <= nums[m] && nums[m] > nums[r]) {\n l = m + 1;\n } else {\n r = m - 1;\n }\n }\n return nums[l];\n }",
"public int eightMin(int[] array) {\n\t\tcountMin++;\n\t\tif (array.length != 8)\n\t\t\treturn -1;\n\t\telse {\n\t\t\tint min = array[0];\n\t\t\tint pos = 0;\n\n\t\t\tfor (int i = 1; i < array.length; i++) {\n\t\t\t\tif (array[i] < min) {\n\t\t\t\t\tpos = i;\n\t\t\t\t\tmin = array[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn pos;\n\t\t}\n\t}",
"public int findMin() {\r\n\t\treturn this.min.value;\r\n\t}",
"Double getMinimumValue();",
"private double[] getMin(double[][] res) {\r\n\t\tdouble min[] = new double [3];\r\n\t\t\tmin[0] = res[0][0];\r\n\t\tfor(int i = 0 ; i < res.length ; i ++){\r\n\t\t\tfor(int j = 0 ; j < res.length ; j++)\r\n\t\tif(res[i][j] < min[0] && res[i][j] != -1){\r\n\t\t\tmin[0] = res[i][j];\r\n\t\t\tmin[1] = i;\r\n\t\t\tmin[2] = j;\r\n\t\tSystem.out.println(\"test\" + res[i][j]);\r\n\t\t}\r\n\t\t}\r\n\t\treturn min;\r\n\t}",
"public Score lowestScore()\n {\n Score lowest = new Score();\n int smallSoFar = 201;\n if(scores[0] == null)\n {\n return null;\n }\n else\n {\n for(int i = 0; i < scores.length; i++)\n {\n lowest = scores[0];\n if(scores[i] == null)\n {\n break;\n }\n if(scores[i].getScore() < lowest.getScore())\n {\n lowest = scores[i];\n }\n \n }\n return lowest;\n } \n }",
"public double min() {\n\t\tif (count() > 0) {\n\t\t\treturn _min.get();\n\t\t}\n\t\treturn 0.0;\n\t}",
"public E returnMinElement(){\r\n if (theData.size() <= 0) return null;\r\n\r\n E min = theData.get(0).getData();\r\n\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n }\r\n }\r\n return min;\r\n }",
"@Override\n\tpublic T findMin(T[] ob) {\n\t\treturn null;\n\t}",
"public static int min(int[] values) {\n return min(values, 0, values.length);\n }",
"public double[] getMin(){\n double[] min = new double[3];\n for (Triangle i : triangles) {\n double[] tempmin = i.minCor();\n min[0] = Math.min( min[0], tempmin[0]);\n min[1] = Math.min( min[1], tempmin[1]);\n min[2] = Math.min( min[2], tempmin[2]);\n }\n return min;\n }",
"public Integer getMin() { \n\t\treturn getMinElement().getValue();\n\t}",
"private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }",
"int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}",
"public T min();",
"public int findMin(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n \n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }",
"long smallestpositive(long[] arr, int n){\n\nArrays.sort(arr);\n\nlong res =1;\n\nfor (int i = 0; i < n && arr[i] <= res; i++)\nres = res + arr[i];\n\nreturn res;\n}",
"double getMin();",
"double getMin();",
"private int findMin(int[] nums) {\n if (nums == null || nums.length == 0) return -1;\n int left = 0;\n int right = nums.length - 1;\n while (left < right) {\n int mid = left + (right - left) / 2;\n if (nums[mid] >= nums[left] && nums[mid] > nums[right]) {\n left = mid + 1;\n } else if (nums[mid] == nums[right]) {\n while (mid < right && nums[mid] == nums[right]) {\n right--;\n }\n } else {\n right = mid;\n }\n }\n return nums[left];\n }",
"public static float min(float [] array, boolean [] isValid)\r\n\t{\r\n\t\tfloat minValude = Float.MAX_VALUE;\r\n\t\tfor (int i = 0; i < isValid.length; i++)\r\n\t\t{\r\n\t\t\tif (isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValude && isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValude;\r\n\t}",
"public int getMin() {\n\t\treturn getMin(0.0f);\n\t}",
"public static float waveDataGetLowestValue(ArrayList<Float> wave){\r\n float lowestWaveValue = Collections.min(wave);\r\n return lowestWaveValue;\r\n\r\n }"
]
| [
"0.8551976",
"0.8471965",
"0.8342927",
"0.82102877",
"0.8155213",
"0.8070565",
"0.80420333",
"0.8041514",
"0.80367297",
"0.80025494",
"0.80002344",
"0.7990012",
"0.79363936",
"0.7839812",
"0.7832663",
"0.7826853",
"0.7819017",
"0.778978",
"0.77553165",
"0.77294993",
"0.76852196",
"0.7682916",
"0.7600046",
"0.75647366",
"0.7549621",
"0.75488925",
"0.75395226",
"0.7516628",
"0.7516106",
"0.751222",
"0.75010484",
"0.74764824",
"0.74735856",
"0.7471335",
"0.7434844",
"0.74144745",
"0.73931056",
"0.7392165",
"0.7376466",
"0.7374592",
"0.73338556",
"0.7331197",
"0.7282744",
"0.72732973",
"0.72680753",
"0.72628826",
"0.7239007",
"0.72360367",
"0.72293407",
"0.72182363",
"0.7216592",
"0.72144264",
"0.72111577",
"0.7196569",
"0.7182483",
"0.71696204",
"0.71679777",
"0.71664613",
"0.712959",
"0.7123672",
"0.70586926",
"0.7053474",
"0.7048195",
"0.7044134",
"0.7043648",
"0.70426536",
"0.702579",
"0.7023046",
"0.698802",
"0.6982678",
"0.6975157",
"0.6966426",
"0.6954198",
"0.6941284",
"0.6938988",
"0.6929645",
"0.692688",
"0.6915536",
"0.691523",
"0.6904643",
"0.69036704",
"0.6901052",
"0.6892362",
"0.6890699",
"0.68768096",
"0.68751264",
"0.6870529",
"0.68577915",
"0.6841565",
"0.6833093",
"0.6824548",
"0.68244815",
"0.6820636",
"0.6813809",
"0.68012446",
"0.68012446",
"0.67965275",
"0.67510575",
"0.67466456",
"0.6744243"
]
| 0.8171514 | 4 |
returns the largest value in the array | public static int getMax(int[] array) {
//TODO: write code here
int max = array[0];
for(int a : array) {
max = a > max ? a : max;
}
return max;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}",
"public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }",
"int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }",
"public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }",
"public static int getMaximum(int[] array) {\n int length = array.length;\n int max = array[0];\n for (int i = 1; i < length; i++) {\n if(max < array[i]) {\n max = array[i];\n }\n }\n\n Arrays.sort(array);\n// return array[length - 1];\n return max;\n }",
"double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}",
"public long max() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] > result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find max of empty array\");\n\t\t}\n\t}",
"static double getMax(double[] array) {\n\t\tif (array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Arrays start from index 0\");\n\t\t}\n\t\tdouble max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static double getMax(double[] arr) \n { \n double max = arr[0]; \n for(int i=1;i<arr.length;i++) \n { \n if(arr[i]>max) \n max = arr[i]; \n } \n return max; \n }",
"public static int maximo (int[] array) {\n\t\tint max = array[0], i;\n\t\t\n\t\tfor (i = 1; i < array.length; i++) {\n\t\t\tif (array[i] > max) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}",
"public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}",
"public static int maxValue(int [] array){\n int hold = array[0];\n for(int i = 1; i < array.length; i++){\n if(array[i] > hold){\n hold = array[i];\n }\n }\n return hold;\n }",
"public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }",
"public static int max(int[] theArray) {\n\n int biggest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //get the biggest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the biggest values\n biggest= values.stream().max(Integer::compare).get();\n\n// //Alternative code does the samething\n// for (int number : theArray) {\n//\n// if (biggest < number) {\n// biggest = number;\n// }\n// }\n\n return biggest;\n\n }",
"private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }",
"public int max()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint maxNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] > maxNumber)\n\t\t\t\t{\n\t\t\t\t\tmaxNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn maxNumber;\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }",
"public T getMax()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse if(size == 1)\n\t\t{\n\t\t\treturn array[0];\n\t\t}\n\t\telse if(size == 2)\n\t\t{\n\t\t\treturn array[1];\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tif(object.compare(array[1], array[2]) < 0)\n\t\t\t{\n\t\t\t\treturn array[2];\n\t\t\t}\n\t\t\telse if(object.compare(array[1], array[2]) > 0)\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\n\t\t}\n\t}",
"public static int max(int[] a) {\n\t\tint b=a[0];\r\n\t\tfor(int i=0;i<a.length;i++) {\r\n\t\t\tif(a[i]>b) {\r\n\t\t\t\tb=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t}",
"public static int max(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n\t\t\tif( m < a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"public static double max(double[] array) {\n\t\tif (array.length==0) return Double.NEGATIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.max(re, array[i]);\n\t\treturn re;\n\t}",
"public int findMax(int[] arr) {\n return 0;\n }",
"public static double getMax(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i])\r\n\t\t\t\tmax = array[i];\r\n\t\treturn max;\r\n\t}",
"public static int argmax(double[] array) {\n\t\tdouble max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"static public long max(long[] valarray) {\r\n long max = 0;\r\n for (long i : valarray) {\r\n if (i > max)\r\n max = i;\r\n }\r\n return max;\r\n }",
"public static int max(int[] arr){\n return maxInRange(arr, 0, arr.length-1);\n }",
"public static void main(String[] args) {\n int[] arr={24,34,56,98,2,59};\r\n int val =arr [0];\r\n for(int i=0;i<arr.length;i++){\r\n \t if(arr[i]>val){\r\n \t\t val=arr[i];\r\n \t }\r\n }\r\n System.out.println(\"largest value\"+ val);\r\n\t}",
"public static int argmax(float[] array) {\n\t\tfloat max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"public static int getMaxIndex(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tint maxIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i]) {\r\n\t\t\t\tmax = array[i];\r\n\t\t\t\tmaxIndex = i;\r\n\t\t\t}\r\n\t\treturn maxIndex;\r\n\t}",
"public static int maxValue(int[] numArr) {\r\n\t\tint temp = numArr[0] > numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp > numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}",
"static int getMax(int[] array) {\n\n\t\tif (array.length > 6 && array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"There is no that index in this array.\");\n\t\t}\n\t\tint max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\n\t}",
"static int findHighestNumber(int [] array){\n int highestNumber = array [0];\n for (int x=0; x< array.length; x++){\n if (highestNumber<array[x]){\n highestNumber=array[x];\n }\n }\nreturn highestNumber;\n}",
"public Integer findLargestNumber() {\r\n\t\t// take base index element as largest number\r\n\t\tInteger largestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] > largestNumber) {\r\n\t\t\t\tlargestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn largestNumber;\r\n\t}",
"public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}",
"public void findMax(int[] arr){\n int max = arr[0];\n for(int val : arr){\n if(max < val){\n max = val;\n }\n }\n System.out.println( \"Maximum values: \" + max );\n }",
"public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}",
"public static float max(float [] array)\r\n\t{\r\n\t\tfloat maxValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] > maxValue)\r\n\t\t\t{\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn maxValue;\r\n\t}",
"public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }",
"public static void main(String[] args) {\nint arr[]=new int[] {10,20,36,50,30};\nint max=0,i;\nfor(i=0;i<arr.length;i++)\n{\n\tif(arr[i]>max)\n\t{\n\t\tmax=arr[i];\n\t}\n}\nSystem.out.println(max);\n\t}",
"public static int getMaxValue(int[] numberArray)\n\t{\n\t\tint maxValue = numberArray[0];\n\t\tfor (int i = 1; i < numberArray.length; i++)\n\t\t{\n\t\t\tif (numberArray[i] > maxValue)\n\t\t\t\tmaxValue = numberArray[i];\n\t\t}\n\t\treturn maxValue;\n\t}",
"private static Pair<Double, Integer> findMaxEntry(double[] array) {\n int index = 0;\n double max = array[0];\n for (int i = 1; i < array.length; i++) {\n if ( array[i] > max ) {\n max = array[i];\n index = i;\n }\n }\n return new Pair<Double, Integer>(max, index);\n }",
"public static int getMax(float[][] storage) {\n float []arr=new float[WINDOW];\n for (int i = 0;i<WINDOW;i++){\n arr[i]=storage[i][1];\n }\n\n if(arr==null||arr.length==0){\n return 0;//如果数组为空 或者是长度为0 就返回null\n }\n int maxIndex=0;//假设第一个元素为最小值 那么下标设为0\n int[] arrnew=new int[2];//设置一个 长度为2的数组 用作记录 规定第一个元素存储最小值 第二个元素存储下标\n for(int i =0;i<arr.length-1;i++){\n if(arr[maxIndex]<arr[i+1]){\n maxIndex=i+1;\n }\n }\n arrnew[0]=(int)arr[maxIndex];\n arrnew[1]=maxIndex;\n\n return arrnew[0];\n }",
"int findMax(int[] arr){\n\t\tint maximum=0;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]>maximum) {\n\t\t\t\tmaximum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn maximum;\n\t}",
"public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }",
"private static double max(Double[] darray){\n\t\tdouble max = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmax = Math.max(max,dd);\n\t\t}\n\t\treturn max;\n\t}",
"private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}",
"public static double max(double[] v) {\n double max = v[0];\n for (int ktr = 0; ktr < v.length; ktr++) {\n if (v[ktr] > max) {\n max = v[ktr];\n }\n }\n return max;\n}",
"public static <T extends Comparable<T>> T findMax(T[] arr) {\n if (arr.length == 0 || arr == null) {\n throw new IllegalArgumentException(\"Array null or empty.\");\n }\n\n T max = arr[0];\n for (int i = 1; i < arr.length; i++) {\n max = MathUtils.max(arr[i], max);\n }\n return max;\n }",
"private static int getMax(int[] original) {\n int max = original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] > max) max = original[i];\n }\n return max;\n }",
"public static int findMax(int arr[]){\n int max =Integer.MIN_VALUE;\n\n //find max\n for(int i =0;i<arr.length;i++){\n if (arr[i]>max){\n max=arr[i];\n }\n }\n return max;\n }",
"public static int max(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }",
"private static int maxValue(int[] a) {\n\t\tint max_value =0;\r\n\t\tint current_max=0;\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tcurrent_max += a[i];\r\n\t\t\tmax_value= Math.max(max_value, current_max);\r\n\t\t\tif(a[i]<0)\r\n\t\t\t\tcurrent_max=0;\r\n\t\t}\r\n\t\t\r\n\t\treturn max_value;\r\n\t}",
"E maxVal();",
"public int maxValue( int[ ] n ) {\n int max = Integer.MIN_VALUE;\n for(int each: n){\n if(each > max){\n max = each;\n }\n }\n return max;\n }",
"public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}",
"public static void main(String[] args) {\n int[] nums = {24, 32, 1, 0, -57, 982, 446, 11, 177, 390, 2923, 7648, 242, 234, 1123, 875};\n int maxValue = nums[0];\n\n for(int i = 0; i < nums.length; i++) {\n if (nums[i] > maxValue) {\n maxValue = nums[i];\n }\n }\n System.out.println(\"Max Value in Array: \" + maxValue);\n }",
"public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\n\t}",
"public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }",
"private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }",
"public int getLargestInteger(int[] arr) {\r\n\t\tint ret = arr[0];\r\n\t\tfor (int i = 1; i < arr.length; i++) {\r\n\t\t\tif (arr[i] > ret) {\r\n\t\t\t\tret = arr[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public static <E extends Comparable<E>> E compare(E[] element){\n Arrays.sort(element);\n int length = element.length;\n E max = element[length -1];\n System.out.println(\"max\"+max); //std to give the max value\n return max;\n\n }",
"int max();",
"public double max()\n\n {\n double max=xyValueArray.get(0).getY();\n\n for (int i = 0; i < xyValueArray.size(); i++) {\n if (xyValueArray.get(i).getY() > max) {\n max = xyValueArray.get(i).getY();\n }\n }\n return max;\n }",
"private static int findMaxInArr(int[] arr) {\n\n\t\tint max = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem > max) {\n\t\t\t\tmax = elem;\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static int getMax(int[] arr) {\r\n\r\n\t\tint max = arr[0];\r\n\r\n\t\tfor (int x = 1; x < arr.length; x++) {\r\n\t\t\tif (arr[x] > max)\r\n\t\t\t\tmax = arr[x];\r\n\r\n\t\t}\r\n\t\treturn max;\r\n\r\n\t}",
"public static int max(int[] m) {\n int x = 1;\n int ret = m[0];\n while (x < m.length) {\n if (m[x] > ret) {\n ret = m[x];\n }\n x = x + 1;\n }\n return ret;\n }",
"private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"public static int getMax(int arr[][]) {\n\t\tint maxNum;\n\t\t\n\t\tmaxNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] > maxNum) {\n\t\t\t\t\tmaxNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn maxNum;\n\t}",
"int getMaximum();",
"public static double max(double[]array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n double max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Double.isNaN(array[i])){\n return Double.NaN;\n }\n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }",
"public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}",
"@Override\n public int iamax(INDArray x) {\n return NativeBlas.isamax(x.length(), x.data(), x.offset(), x.stride()[0]) - 1;\n }",
"public int getIndexOfMaxNumber(int[] array) {\n\t\tint left = 0, right = array.length - 1;\n\t\twhile (left < right - 1) {\n\t\t\tint mid = left + (right - left) / 2;\n\t\t\tif (array[mid - 1] > array[mid]) {\n\t\t\t\treturn mid - 1;\n\t\t\t}\n\t\t\tif (array[mid] > array[mid + 1]) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\t// up to this point,\n\t\t\t// mid == right || array[mid] < array[mid + 1] ||\n\t\t\t// mid == left || array[mid - 1] < array[mid]\n\t\t\tif (array[mid] <= array[left]) {\n\t\t\t\tright = mid;\n\t\t\t} else {\n\t\t\t\tleft = mid;\n\t\t\t}\n\t\t}\n\t\t// up to this point, left == right - 1;\n\t\treturn array[left] >= array[right] ? left : right;\n\t}",
"public static int max(int[] mainArray) {\r\n\t\tint max1 = 0;\r\n\t\tfor(int greaterThan = 1; greaterThan < mainArray.length; greaterThan ++) {\r\n\r\n\t\t\tif(mainArray[greaterThan]>mainArray[max1]) {\r\n\t\t\t\tmax1 = greaterThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max1;\r\n\t}",
"public int findHighestTemp() {\n\t\t\n\t\tint max = 0;\n\t\tint indexHigh = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][0] > max) {\n\t\t\t\tmax = temps[i][0];\n\t\t\t\tindexHigh = i;\n\t\t\t}\n\t\t\n\t\treturn indexHigh;\n\t\t\n\t}",
"public E findMax() {\r\n\t\treturn heap.get(0);\r\n\t}",
"private int largestCard(Card[] cards) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < cards.length; i++)\n if (cards[i].getDenomination() > cards[max].getDenomination())\n max = i;\n\n return max;\n }",
"public static int max() {\r\n\r\n\t\tint[] arr1 = ArrayMethods.get5();\r\n\t\tint[] arr2 = ArrayMethods.get5();\r\n\r\n\t\tint sum1 = 0;\r\n\t\tint sum2 = 0;\r\n\r\n\t\tint max = 0;\r\n\r\n\t\tfor (int num : arr1) {\r\n\t\t\tsum1 += num;\r\n\t\t}\r\n\t\tfor (int num : arr2) {\r\n\t\t\tsum2 += num;\r\n\t\t}\r\n\r\n\t\tif (sum1 > sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else if (sum1 == sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tmax = sum2;\r\n\t\t}\r\n\t\treturn max;\r\n\t}",
"public static double max(double[] prices) {\n\t\tdouble biggest = 0;\n\n\t\tfor (int i = 0; i < prices.length; i++) {\n\t\t\tif (prices[i] > biggest) {\n\t\t\t\tbiggest = prices[i];\n\t\t\t}\n\t\t}\n\n\t\treturn biggest\n\t}",
"public static void arrayMax(){\n int [] array={12,3,4,5,6,1,0,3};\n //using the for loop to iterate through the numbers in the array\n int max=array[0];\n int size=array.length;\n\n for(int i = 0; i<size; i++){\n if(array[i]>max){\n max=array[i];\n }\n }\n System.out.println(new StringBuilder().append(max).append(\": is the maximum number in the given array.\").toString());\n\n }",
"public static int getIndexOfMax(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double max = Double.MIN_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] > max) {\n max = x[i];\n index = i;\n }\n }\n return (index);\n }",
"static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}",
"public long findMax(long[] incomes) {\n long current_max_index = 0;\n long current_max = incomes[0];\n for (long income : incomes)\n if (current_max < income)\n current_max = income;\n return current_max;\n }",
"private Double getMax(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.max(d, ret);\n }\n return ret;\n }",
"public static int findLargest(int[] data){\n\t\tint lo=0, hi=data.length-1;\n\t\tint mid = (lo+hi)/2;\n\t\tint N = data.length-1;\n\t\twhile (lo <= hi){\n\t\t\tint val = data[mid];\n\t\t\tif(mid == 0 ) return (val > data[mid+1]) ? mid : -1;\n\t\t\telse if(mid == N) return (val > data[mid-1]) ? mid : -1;\n\t\t\telse{\n\t\t\t\tint prev = data[mid-1];\n\t\t\t\tint next = data[mid+1];\n\t\t\t\tif(prev < val && val < next) lo=mid+1;\n\t\t\t\telse if(prev > val && val > next) hi = mid-1;\n\t\t\t\telse return mid; // prev > val && val > next // is the only other case\n\t\t\t\tmid = (lo+hi)/2;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public static int getMax(int arr[], int n)\n {\n int mx = arr[0];\n for (int i = 1; i < n; i++)\n {\n if (arr[i] > mx)\n {\n mx = arr[i];\n }\n }\n return mx;\n }",
"int getMax();",
"@Override\n public int iamax(IComplexNDArray x) {\n return NativeBlas.icamax(x.length(), x.data(), x.offset(), 1) - 1;\n }",
"double getMax();",
"double getMax();",
"public static int secondaryArgmax(double[] a) {\n\t\tint mi = argmax(a);\n\t\t// scan left until increasing\n\t\tint i;\n\t\tfor (i=mi-1; i>=0 && a[i]<=a[i+1]; i--);\n\t\tint l = argmax(a,0,i+1);\n\t\tfor (i=mi+1; i<a.length && a[i]<=a[i-1]; i++);\n\t\tint r = argmax(a,i,a.length);\n\t\tif (l==-1) return r;\n\t\tif (r==-1) return l;\n\t\treturn a[l]>=a[r]?l:r;\n\t}",
"private double getMax() {\n return Collections.max(values.values());\n }",
"public static Object max(Object[] object) {\n // Find max of array object\n Object maxOfA = object[0];\n for(int i = 1; i < object.length; i++) {\n if ((((Comparable) maxOfA).compareTo(object[i])) == -1) {\n maxOfA = object[i];\n }\n }\n\n // Return results.\n return maxOfA;\n }",
"private int getMax(int[] times) {\n\n\t\t//Initially set max to the first value\n\t\tint max = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Find max\n\t\t\tif (times[i]>max) {\n\n\t\t\t\t//Update max\n\t\t\t\tmax = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t\t//Print the max time to the console\n\n\t}",
"public int getMax()\n {\n int max = data.get(0).getX();\n\n for(int i = 0; i < data.size(); i++)\n {\n if (data.get(i).getX() > max)\n {\n max = data.get(i).getX();\n }\n }\n\n\n return max;\n }",
"private static int getMax(int[] arr, int i) {\n\t\tif (i == 0) {\n\t\t\treturn arr[0];\n\t\t}\n\t\treturn Math.max(getMax(arr,i-1),arr[i]);\n\t}",
"public static int max(int[] numbers) {\n\t\tint max = numbers[0];\n\t\tfor(int i = 0; i < numbers.length; i++) {\n\t\t\t// 7 < 4\n\t\t\tif(max < numbers[i]) {\n\t\t\t// 7\n\t\t\t\tmax = numbers[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}",
"public int findMaxValue() {\n\t\treturn findMaxValue( this );\n\t}",
"public int getMaxNum(int[] arr) {\n int left = 0, right = arr.length - 1, mid;\n while (left < right) {\n mid = left + (right - left) / 2;\n if (arr[mid] > arr[mid + 1]) right = mid; // in the right half\n else if (arr[mid] < arr[mid + 1]) left = mid + 1; // in the left half\n }\n return arr[left]; // left == right\n }"
]
| [
"0.8403651",
"0.8363459",
"0.8114533",
"0.80929464",
"0.80053246",
"0.79357046",
"0.78916615",
"0.788896",
"0.78745097",
"0.7867348",
"0.7855423",
"0.7842901",
"0.7830833",
"0.7823235",
"0.78146946",
"0.7795426",
"0.77745324",
"0.77671987",
"0.7764427",
"0.7745338",
"0.763967",
"0.76273423",
"0.7618302",
"0.76151896",
"0.7588868",
"0.7583432",
"0.7575894",
"0.7567428",
"0.7534231",
"0.75272477",
"0.7489826",
"0.74647886",
"0.7463265",
"0.74626803",
"0.74563",
"0.7440308",
"0.74381506",
"0.74106556",
"0.7396121",
"0.739327",
"0.73887706",
"0.7386172",
"0.7382547",
"0.73726434",
"0.73481756",
"0.7330507",
"0.7296516",
"0.72694707",
"0.72533596",
"0.7252313",
"0.72306263",
"0.7214367",
"0.7191127",
"0.7190819",
"0.71793073",
"0.71601343",
"0.7154698",
"0.71454394",
"0.713587",
"0.7125461",
"0.7123508",
"0.71182424",
"0.71160424",
"0.7111066",
"0.7110566",
"0.71063954",
"0.7103509",
"0.71015084",
"0.70794505",
"0.7073557",
"0.7067093",
"0.7066518",
"0.7063933",
"0.70526356",
"0.70310307",
"0.7030757",
"0.70254576",
"0.70230985",
"0.7021543",
"0.7016421",
"0.70163727",
"0.70137316",
"0.7010327",
"0.7005527",
"0.6989387",
"0.6975124",
"0.69680506",
"0.6966579",
"0.6959716",
"0.6955043",
"0.6955043",
"0.6936836",
"0.6931314",
"0.6914233",
"0.6909829",
"0.6900869",
"0.69003314",
"0.6893384",
"0.6883803",
"0.6878863"
]
| 0.76404047 | 20 |
Returns Top fragment from fragment back stack. | public String getTopFragmentName() {
BackStackEntry backStackEntry = this.getSupportFragmentManager()
.getBackStackEntryAt(getBackStackCount() - 1);
if (backStackEntry != null) {
return backStackEntry.getName();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Fragment getLatestFragmentFromBackStack() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n if (entryCount > 0) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(entryCount - 1);\n return mFragmentManager.findFragmentByTag(entry.getName());\n } else {\n return null;\n }\n }",
"public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }",
"public T top() {\n \treturn stack.get(stack.size() - 1);\n }",
"public int top() {\n\t\treturn stack.peek();\n \n }",
"@VisibleForTesting\n public TaskStack getTopStack() {\n if (DisplayContent.this.mTaskStackContainers.getChildCount() > 0) {\n return (TaskStack) DisplayContent.this.mTaskStackContainers.getChildAt(DisplayContent.this.mTaskStackContainers.getChildCount() - 1);\n }\n return null;\n }",
"public int top() {\r\n int value = this.pop();\r\n this.stack.offer(value);\r\n return value;\r\n }",
"public int getTop() {\n return position[0] - (size - 1) / 2;\n }",
"public int top() {\n if (data.size() != 0) {\n return data.get(data.size() - 1);\n }\n throw new RuntimeException(\"top: 栈为空,非法操作\");\n }",
"public int top() {\n return stack1.peek();\n }",
"public E top()\n {\n E topVal = stack.peekFirst();\n return topVal;\n }",
"public E top() {\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\treturn this.top.data;\n\t\t\t\n\t}",
"public int top() {\n move();\n return reverseQueue.peek();\n }",
"@VisibleForTesting\n public TaskStack getTopStack() {\n return this.mTaskStackContainers.getTopStack();\n }",
"public int stackTop() {\r\n\t return array[top];\r\n\t }",
"public E top()\n\tthrows EmptyStackException;",
"public int top() { return 0; }",
"public E popTop() {\n // FILL IN\n }",
"Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }",
"public final Symbol top() {\n\t\ttry {\n\t\t\treturn opstack.top().getSymbol();\n\t\t} catch (BadTypeException | EmptyStackException e) {\n\t\t\tSystem.out.println(\"An exception has occurred, \"\n\t\t\t\t\t+ \"Maybe the stack has gone empty\");\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public E top()throws EmptyStackException{\n E c = null;\n if(!isEmpty()){\n c = stackArray[count-1];\n return c;\n }\n \n else \n throw new EmptyStackException();\n }",
"public int getTop() {\n\t\treturn this.top;\n\t}",
"private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }",
"private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"private int indexOfTop(int stackNum) {\n\t\tint offset = stackNum * stackCapacity;\r\n\t\tint size = sizes[stackNum];\r\n\t\treturn offset+size-1;\r\n\t}",
"public int top() {\n\t return q.peek();\n\t }",
"public GenericStack peek(){\n // checks if stack is empty\n if(top == null){\n System.out.println(\"Stack is empty.\");\n return null;\n //System.exit(0);\n }\n return top;\n }",
"public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }",
"E top();",
"public int top() {\n if (!forReverse.isEmpty()) {\n return forReverse.peek();\n }\n \n while (queue.size() > 1) {\n forReverse.add(queue.poll());\n }\n\n int val = queue.peek();\n \n Queue<Integer> temp = queue;\n queue = forReverse;\n forReverse = temp;\n\n return val;\n }",
"@Override\r\n\tpublic T top() throws StackUnderflowException{\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}",
"public int top() {\n if(!stack2.isEmpty()) {\n Integer k = stack2.pop();\n stack2.push(k);\n return k;\n }\n else {\n while(!stack1.isEmpty()) {\n stack2.push(stack1.pop());\n }\n Integer k = stack2.pop();\n stack2.push(k);\n return k;\n }\n }",
"public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }",
"public T peek(){\n if (this.top == null) {\n throw new EmptyStackException();\n }\n return this.top.data;\n }",
"public int viewTop(){\r\n\t\treturn queue[0];\r\n\t}",
"int top() {\n if (data.size() > 0) {\r\n if (data.peek() < min)\r\n return min;\r\n return data.peek();\r\n }\r\n else {\r\n System.out.println(\"Stack underflow\");\r\n return -1;\r\n }\r\n }",
"public int top() {\n return q.peek();\n }",
"public int top() {\r\n return top;\r\n }",
"public int top() {\r\n return top;\r\n }",
"public int top() {\n\t\treturn count == 0? -1 : st[count-1];\r\n\t}",
"@Override\n\tpublic E top() throws EmptyStackException {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException(\"Empty Stack\");\n\t\t}\n\t\treturn arr[top];\n\t}",
"public E peek(){\n return this.stack.get(stack.size() -1);\n }",
"public E top() {\n return head.prev.data;\n }",
"@Override\n\tpublic T top()\n\t{\n if(list.size()==0)\n {\n throw new IllegalStateException(\"Stack is empty\");\n }\n return list.get(getSize()-1);\n\t}",
"public int top() {\n if(!q1.isEmpty())return q1.peek();\n else return -1;\n }",
"public Node top() {\r\n\t\treturn start;\r\n\t}",
"public int queue_top() {\n\t\tif (isEmpty()) error(\"Queue is Empty!\");\n\t\treturn data[(front + 1) % MAX_QUEUE_SIZE];\n\t}",
"public int top() {\n return One.peek();\n }",
"public Object peek() {\n if (top >= 0) {\n return stack[top];\n }\n else {\n return null;\n }\n }",
"public int top() {\n return top;\n }",
"@Override\n\tpublic T peek() {\n\n\t\tT result = stack[top-1];\n\t\treturn result;\n\t}",
"public T pop() {\r\n\r\n\t\tT top = peek(); // Throws exception if stack is empty.\r\n\t\t\r\n\t\t// Sets top of stack to next link. \r\n\t\ttopNode = topNode.getNext();\r\n\t\t\r\n\t\treturn top;\r\n\t\t\r\n\t}",
"public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }",
"@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}",
"public T getTop( );",
"public String top() {\n return queue.size() == 0 ? null : queue.get(0);\n }",
"public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }",
"int pop() {\r\n\t\ttop--;\r\n\t\treturn stack[top];\r\n\t}",
"public int top() {\n return q1.peek();\n }",
"int peek() {\r\n\t\treturn stack[top-1];\r\n\t}",
"public int getTop() {\n\treturn top;\n }",
"public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }",
"public View getTopView() {\n\t\tint topViewIndex = getChildCount() - 1;\n\t\treturn getChildAt(topViewIndex);\n\t}",
"public T top() throws StackUnderflowException;",
"public String top(){\n if(!(pilha.size() == 0)){\n return pilha.get(pilha.size()-1);\n }else{\n return null;\n }\n }",
"public E peek() {\n if(isEmpty()) throw new EmptyStackException();\n\n return this.stack[top-1];\n }",
"public int getTop() {\n return top;\n }",
"private T pop(Node topNode)\n {\n if (isEmpty())\n {\n return null;\n }\n else // not empty\n {\n T result = (T) topNode.getData();\n first = topNode.getNextNode();\n return result;\n }\n }",
"@Override\n\tpublic int pop() {\n\t\tint topValue;\n\t\tif (top != -1) {\n\t\t\ttopValue = intContainer[top];\n\t\t\ttop = top - 1;\n\t\t\treturn topValue;\n\t\t} else {\n\t\t\tSystem.out.println(\"Stack Undeflow\");\n\t\t\treturn -1;\n\t\t}\n\t}",
"public int popFrame() {\n int result = runStack.remove(runStack.size()-1);\n int top = framePointers.pop();\n while(runStack.size() > top) {\n runStack.remove(runStack.size()-1);\n }\n runStack.add(result);\n return result;\n }",
"public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}",
"public T peek() throws EmptyStackException\r\n {\r\n if(isEmpty())\r\n throw new EmptyStackException();\r\n\r\n return stack[top-1];\r\n }",
"public int top();",
"public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }",
"public O popBack()\r\n {\r\n if (!isEmpty())\r\n {\r\n VectorItem<O> l = last;\r\n last = last.getPrevious();\r\n\r\n count--;\r\n if (isEmpty()) first = null;\r\n else last.setNext(null);\r\n return l.getObject();\r\n } else\r\n return null;\r\n \r\n }",
"public int top() {\r\n Queue<Integer> temp=new LinkedList<Integer>();\r\n int counter=0;\r\n while(!stack.isEmpty()){\r\n temp.add((Integer) stack.poll());\r\n counter++;\r\n \r\n }\r\n while(counter>1)\r\n {\r\n \r\n stack.add(temp.poll());\r\n counter--;\r\n }\r\n int topInteger=temp.poll();\r\n stack.add(topInteger);\r\n return topInteger;\r\n \r\n }",
"public T peek() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//returns the top element.\n\t\treturn elements.get(elements.size()-1);\n\t}",
"public String getBack() {\n index--;\n return (String) history.get(index);\n }",
"public T peek() {\n if(isEmpty())\n throw new EmptyStackException();\n else\n return stack[topIndex];\n }",
"public int top() {\n return (int) one.peek();\n \n }",
"public Integer getTop() {\n return top;\n }",
"public int top() {\n return queue.peekLast();\n }",
"int absTopOfStack(int stackNum){\n\treturn stackNum * stackSize + stackPointer[stackNum];\n}",
"@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}",
"int top();",
"public T popViewState() {\n if (backstack.empty()) {\n return null;\n }\n\n backstack.pop();\n\n if (backstack.empty()) {\n return null;\n } else {\n return getCurrentViewState();\n }\n }",
"public float getTop() {\n return internalGroup.getTop();\n }",
"public E pop()\n {\n E topVal = stack.removeFirst();\n return topVal;\n }",
"public T back();",
"public E top() {\n return !isEmpty() ? head.item : null;\n }",
"public int top() {\n return queue.peek();\n }",
"public int top() {\n return queue.peek();\n }",
"public E top() throws StackUnderflowException {\r\n E item = null;\r\n if(!isEmpty()) item = items.get(0);\r\n else throw new StackUnderflowException(\"Stack Empty\");\r\n \r\n return item;\r\n }",
"public int top(int stackNo){\n\t\tif(!isEmpty(stackNo)){\n\t\t\tint value = stacks[stackStarts[stackNo-1]+stackTops[stackNo-1] -1];\n\t\t\tstackTops[stackNo-1] = stackTops[stackNo-1]-1;\n\t\t\treturn value;\n\t\t}\n\t\treturn -1;\n\t}",
"public int pop() {\n\n if (top > 0) {\n top --;\n }\n else {\n System.out.println(\"Stack Underflow\");\n return -100;\n }\n return stack[top];\n }",
"public T pop() {\r\n if ( top == null )\r\n throw new IllegalStateException(\"Can't pop from an empty stack.\");\r\n T topItem = top.item; // The item that is being popped.\r\n top = top.next; // The previous second item is now on top.\r\n return topItem;\r\n }",
"public int top() {\n return topElem;\n }",
"public int top() {\n return top.value;\n }",
"public T peek() {\r\n\t\t\r\n\t\tif (isEmpty()) { // Throws exception if empty.\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t} else {\r\n\t\t\t// Returns the data in top Link of stack.\r\n\t\t\treturn topNode.getData();\r\n\t\t} // end if else\r\n\t\t\r\n\t}",
"public int top() {\n return queue.peek();\n }"
]
| [
"0.7505258",
"0.6997444",
"0.69295406",
"0.6798674",
"0.6786015",
"0.6759328",
"0.6674205",
"0.66107726",
"0.6522151",
"0.6517174",
"0.64908224",
"0.64839214",
"0.6450891",
"0.64099324",
"0.63800496",
"0.6368911",
"0.6321689",
"0.6305109",
"0.6299207",
"0.62943786",
"0.6281616",
"0.62792665",
"0.627807",
"0.6276757",
"0.6272533",
"0.6240073",
"0.6238885",
"0.6226944",
"0.62201804",
"0.621107",
"0.6208442",
"0.6206184",
"0.6184488",
"0.6170166",
"0.61679137",
"0.61666274",
"0.6161647",
"0.61460537",
"0.61460537",
"0.61446476",
"0.613314",
"0.613077",
"0.6126875",
"0.6124848",
"0.61081344",
"0.6096333",
"0.6092017",
"0.6083048",
"0.6079316",
"0.607834",
"0.6078301",
"0.60775584",
"0.60469747",
"0.60418445",
"0.6032908",
"0.60310745",
"0.6029473",
"0.60135317",
"0.60103995",
"0.60086054",
"0.60030395",
"0.5988031",
"0.5986934",
"0.59832984",
"0.59776276",
"0.5974209",
"0.59640425",
"0.59573936",
"0.595538",
"0.59427935",
"0.5927734",
"0.5926402",
"0.59248614",
"0.5924079",
"0.5921333",
"0.5915754",
"0.5907588",
"0.59037",
"0.5892714",
"0.5890161",
"0.58897364",
"0.58753127",
"0.5874347",
"0.5862292",
"0.58602303",
"0.5850795",
"0.5848313",
"0.5846781",
"0.5839779",
"0.58334345",
"0.58243114",
"0.58243114",
"0.58233136",
"0.58232576",
"0.58179003",
"0.5815235",
"0.58131176",
"0.58100545",
"0.5809653",
"0.5805895"
]
| 0.73848766 | 1 |
Return the fragment back stack entry count. | public int getBackStackCount() {
try {
return this.getSupportFragmentManager().getBackStackEntryCount();
} catch (Exception e) {
e.printStackTrace();
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int stackCount() {\r\n\t\t return count;\r\n\t }",
"public int getSize() {\r\n\t\treturn stack.size();\r\n\t}",
"public int size() {\n \treturn stack.size();\n }",
"public int getBacktrackedTransitionCount() {\n return ttb.getBacksteppedTransitions();\n }",
"@Override\r\n\tpublic int size() {\r\n\t\treturn stack.size();\r\n\t}",
"@Override\r\n\tpublic int size() {\r\n\t\treturn stack.length;\r\n\t}",
"public int howManyCardsUp() {\r\n return undoStack.size();\r\n }",
"public int getSize(){\n return this.stack.size();\n }",
"public int howManyUnitsUp(){\n return undoStack.size();\n }",
"int size() {\n return stackSize;\n }",
"public int getStackSize() {\n\t\treturn stackSize;\n\t}",
"public int getUndoStackCount() {\n\t\treturn undoStack.size();\n\t}",
"public int getSize(){\r\n return topOfStack;\r\n }",
"public final int size() {\n\t\treturn opstack.size();\n\t}",
"public int getNumExits() {\n return mySize.getNumExits();\n }",
"int getEntryCount();",
"public Integer getTotalStackInstancesCount() {\n return this.totalStackInstancesCount;\n }",
"public int getEntryCount() {\n if (entryBuilder_ == null) {\n return entry_.size();\n } else {\n return entryBuilder_.getCount();\n }\n }",
"public int getSizeOfHistory() {\n return this.history.size();\n }",
"public int getEntryCount() {\n return entry_.size();\n }",
"public int size() \n {\n return stack1.size() + stack2.size(); \n }",
"protected int getCellCount() {\n return this.cellCountStack.getLast();\n }",
"@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}",
"public int getDepth()\n {\n return traversalStack.size();\n }",
"static final int countStackFrames(Thread thread)\n {\n VMThread vt = thread.vmThread;\n if (vt == null)\n throw new IllegalThreadStateException();\n return vt.countStackFrames();\n }",
"public Integer getFailedStackInstancesCount() {\n return this.failedStackInstancesCount;\n }",
"public int getCallStack() {\n\t\treturn this.callStack;\n\t}",
"public int getEntryCount() {\n return mem.getChar(34);\n }",
"public int size() {\n return this.top;\n }",
"public int getSnapshotSize()throws DataSnapshotException{\r\n \tint backedupCount=0; \r\n \t try {\r\n \t\t// Enumeration names = ss.names();\r\n\t\t\tfor (Enumeration names = ss.names(); names.hasMoreElements();) {\r\n\t\t\t\tnames.nextElement();\r\n\t\t\t\tbackedupCount++;\r\n\t\t\t }\r\n\t\t}catch (SettingsStorageException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t throw new DataSnapshotException(\"settings store failure\", e);\r\n\t\t}\r\n\t\treturn backedupCount;\r\n }",
"public int numHunks() {\n return jniNumHunks(getRawPointer());\n }",
"public int getTabCount() {\n\t\treturn tabMap.size();\n\t}",
"public int maxStack();",
"int getMapEntrySize() {\n if (frameType >= Const.SAME_FRAME && frameType <= Const.SAME_FRAME_MAX) {\n return 1;\n }\n if (frameType >= Const.SAME_LOCALS_1_STACK_ITEM_FRAME && frameType <= Const.SAME_LOCALS_1_STACK_ITEM_FRAME_MAX) {\n return 1 + (typesOfStackItems[0].hasIndex() ? 3 : 1);\n }\n if (frameType == Const.SAME_LOCALS_1_STACK_ITEM_FRAME_EXTENDED) {\n return 3 + (typesOfStackItems[0].hasIndex() ? 3 : 1);\n }\n if (frameType >= Const.CHOP_FRAME && frameType <= Const.CHOP_FRAME_MAX || frameType == Const.SAME_FRAME_EXTENDED) {\n return 3;\n }\n if (frameType >= Const.APPEND_FRAME && frameType <= Const.APPEND_FRAME_MAX) {\n int len = 3;\n for (final StackMapType typesOfLocal : typesOfLocals) {\n len += typesOfLocal.hasIndex() ? 3 : 1;\n }\n return len;\n }\n if (frameType != Const.FULL_FRAME) {\n throw new IllegalStateException(\"Invalid StackMap frameType: \" + frameType);\n }\n int len = 7;\n for (final StackMapType typesOfLocal : typesOfLocals) {\n len += typesOfLocal.hasIndex() ? 3 : 1;\n }\n for (final StackMapType typesOfStackItem : typesOfStackItems) {\n len += typesOfStackItem.hasIndex() ? 3 : 1;\n }\n return len;\n }",
"public int getNumEntries ()\n\t{\n\t\treturn entries.size ();\n\t}",
"public int pop(){\n return runStack.pop();\n }",
"public int getHistoryCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int count = cursor.getCount();\n cursor.close();\n\n // return count\n return count;\n }",
"public int getBackupsCount() {\n if (backupsBuilder_ == null) {\n return backups_.size();\n } else {\n return backupsBuilder_.getCount();\n }\n }",
"public List<String> getBackStackList() {\n\t\tList<String> backStackList = new LinkedList<String>();\n\t\tint backstackEntryCount = this.getBackStackCount() - 1;\n\t\tfor (int entryPosition = backstackEntryCount; entryPosition >= 0; entryPosition--) {\n\t\t\tbackStackList.add(this.getSupportFragmentManager()\n\t\t\t\t\t.getBackStackEntryAt(entryPosition).getName());\n\t\t}\n\t\treturn backStackList;\n\n\t}",
"public int getNumEntries() {\n return entries.size();\n }",
"public int getExchangeHistoryListCount() {\n if (exchangeHistoryListBuilder_ == null) {\n return exchangeHistoryList_.size();\n } else {\n return exchangeHistoryListBuilder_.getCount();\n }\n }",
"public String getBackNeckDepth() {\r\n\t\treturn backNeckDepth;\r\n\t}",
"public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}",
"@Override\n\tpublic int size() {\n\t\treturn top + 1;\n\t}",
"int getBackupsCount();",
"int entryCount() {\n return settings.size();\n }",
"int entryCount() {\n return settings.size();\n }",
"int getReceivingMinorFragmentIdCount();",
"public int getNumEntries() {\n return numEntries;\n }",
"public int peekBack() {\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n return tail.val;\n }",
"public Integer getInProgressStackInstancesCount() {\n return this.inProgressStackInstancesCount;\n }",
"int size() {\r\n\t\treturn top; \r\n\t}",
"public static int getNumberOfCrashes() {\r\n\t\treturn errors.size();\r\n\t}",
"public int getNumCacheMiss() {\n return cacheHandler.getCountCacheMiss();\n }",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"@Override\n public int countOut() {\n if (callCheck())\n return EMPTY_INDEX;\n int ret = last.getValue();\n last = last.getPrev();\n return ret;\n }",
"public int backCapacity() {\n\t\treturn this.flow;\n\t}",
"public int size()\r\n {\r\n return top;\r\n }",
"public int size() {\n return this.treeSize - this.unusedTreeIndices.size();\n }",
"final int threadLocalSize()\r\n/* 154: */ {\r\n/* 155:182 */ return ((Stack)this.threadLocal.get()).size;\r\n/* 156: */ }",
"public int GetPushIndex() {\n\t\treturn mEnd;\n\t}",
"public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }",
"public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }",
"public int maxLocals();",
"public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }",
"public int getBlockNumbersCount() {\n return blockNumbers_.size();\n }",
"public int pop() {\n return popStack.pop();\n }",
"public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}",
"default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }",
"public int size() {\n\t\treturn real-front+1; //x\r\n\t}",
"private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}",
"public int size() {\n\t\treturn numEntries;\n\t}",
"public int getReceivingMinorFragmentIdCount() {\n return receivingMinorFragmentId_.size();\n }",
"public static int getTabViewCount() {\n return tabViews.size();\n }",
"public int getReceivingMinorFragmentIdCount() {\n return receivingMinorFragmentId_.size();\n }",
"@Override\n public int getChildrenCount() {\n return 1 + mRecentTabsManager.getRecentlyClosedEntries().size();\n }",
"public abstract int getStackSizeWishInKb();",
"public int getNumberOfEntries();",
"public int getFaceCount() {\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < getSegmentCount(); i++) {\n\t\t\tcount += getIndexCountInSegment(i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public int getExchangeHistoryListCount() {\n return exchangeHistoryList_.size();\n }",
"public static int count() {\n return segmentList.size();\n }",
"public int getItemCount() {\n return itemCount(root);\n }",
"public long getBackPageFileSize() {\n long totalSize = 0L;\n final File[] pageFiles = this.pageDirFile.listFiles();\n if (pageFiles != null && pageFiles.length > 0)\n for (final File pageFile : pageFiles) {\n final String fileName = pageFile.getName();\n if (fileName.endsWith(PAGE_FILE_SUFFIX))\n totalSize += pageFile.length();\n }\n return totalSize;\n }",
"public int getFaceCount() {\n \tif (indicesBuf == null)\n \t\treturn 0;\n \tif(STRIPFLAG){\n \t\treturn indicesBuf.asShortBuffer().limit();\n \t}else{\n \t\treturn indicesBuf.asShortBuffer().limit()/3;\n \t}\n }",
"public int getSeenInfoCount() {\n return instance.getSeenInfoCount();\n }",
"public Integer getDriftedStackInstancesCount() {\n return this.driftedStackInstancesCount;\n }",
"public int getNumCacheHit() {\n return cacheHandler.getCountCacheHit();\n }",
"public int size() {\n processQueue();\n return weakCache.size();\n }",
"public int getEdgeCount() {\n if (edgeBuilder_ == null) {\n return edge_.size();\n } else {\n return edgeBuilder_.getCount();\n }\n }",
"public int getBottomNavigationNbItems() {\n\t\treturn bottomNavigation.getItemsCount();\n\t}",
"public int getNumUnpinnedBuffers() {\n\t\treturn replace.size();\n\t}",
"public int GetPopIndex() {\n\t\treturn mStart;\n\t}",
"public int pop() {\n return stack.pop();\n }",
"public Integer getInSyncStackInstancesCount() {\n return this.inSyncStackInstancesCount;\n }",
"public long numPostingEntries();",
"public int peek(){\n return runStack.peek();\n }",
"public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}",
"public int top() {\n if (data.size() != 0) {\n return data.get(data.size() - 1);\n }\n throw new RuntimeException(\"top: 栈为空,非法操作\");\n }",
"public int size() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->size() unimplemented!\\n\");\n }",
"public int getRemainingState() {\r\n\t\tfor (Entry<Integer, State> states : states.entrySet()) {\r\n\t\t\tif(states.getValue().getCurrentState() == global_state.State.states.REC)\r\n\t\t\t\tremainingStates++;\r\n\t\t}\r\n\t\t\r\n\t\treturn remainingStates;\r\n\t}"
]
| [
"0.70325917",
"0.67099816",
"0.6639755",
"0.6536169",
"0.65123785",
"0.64935553",
"0.6483906",
"0.6384278",
"0.63761574",
"0.6371865",
"0.62621355",
"0.6257306",
"0.6214793",
"0.61670196",
"0.6123647",
"0.6029793",
"0.59672266",
"0.593053",
"0.5891167",
"0.5889283",
"0.58557636",
"0.5845849",
"0.5843768",
"0.5839981",
"0.5839577",
"0.58352065",
"0.58112943",
"0.58009714",
"0.5792636",
"0.578284",
"0.57785046",
"0.57769066",
"0.57720995",
"0.57693046",
"0.57401454",
"0.57189435",
"0.5713595",
"0.5706265",
"0.56982815",
"0.5675924",
"0.56712943",
"0.56641567",
"0.566045",
"0.5638975",
"0.56377125",
"0.56371963",
"0.56371963",
"0.56356674",
"0.5621005",
"0.56089735",
"0.5608222",
"0.56013757",
"0.5594433",
"0.55854034",
"0.5585159",
"0.5581791",
"0.55797106",
"0.5575428",
"0.5567453",
"0.5562662",
"0.5559055",
"0.5557426",
"0.5556028",
"0.5547853",
"0.55474967",
"0.55420566",
"0.5541515",
"0.5541062",
"0.5539825",
"0.553281",
"0.552004",
"0.55184954",
"0.5517997",
"0.5513724",
"0.55122244",
"0.55015785",
"0.5500546",
"0.5487147",
"0.5485508",
"0.54854894",
"0.54854345",
"0.5480741",
"0.54722506",
"0.5470135",
"0.54694027",
"0.54632825",
"0.54619277",
"0.54592294",
"0.54586846",
"0.5452906",
"0.54523975",
"0.5451884",
"0.54511136",
"0.5448661",
"0.5448241",
"0.54479957",
"0.5446775",
"0.54444844",
"0.54422355",
"0.5428436"
]
| 0.81063586 | 0 |
Returns Fragment name at a particular position in the back stack. | public String getFragmentNameAtPosition(int position) {
if (position <= getBackStackCount()) {
return this.getSupportFragmentManager()
.getBackStackEntryAt(position - 1).getName();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTopFragmentName() {\n\t\tBackStackEntry backStackEntry = this.getSupportFragmentManager()\n\t\t\t\t.getBackStackEntryAt(getBackStackCount() - 1);\n\t\tif (backStackEntry != null) {\n\t\t\treturn backStackEntry.getName();\n\t\t}\n\t\treturn null;\n\t}",
"public abstract String getFragmentName();",
"public String fragmentAt(int index) {\n\t\treturn pathFragments.get(index);\n\t}",
"private Fragment getLatestFragmentFromBackStack() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n if (entryCount > 0) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(entryCount - 1);\n return mFragmentManager.findFragmentByTag(entry.getName());\n } else {\n return null;\n }\n }",
"@Override\n\tpublic String getCurrentFragmentName() {\n\t\treturn \"IncomeFragment\";\n\t}",
"public String getFragmentTag() {\n return this.getClass().getSimpleName();\n }",
"@Override\n public String getPageTitle(int position) {\n switch (position) {\n case 0:\n return mContext.getString(R.string.current_fragment);\n case 1:\n return mContext.getString(R.string.past_fragment);\n default:\n return null;\n }\n }",
"public ProgramFragment getFragment(String treeName, String name);",
"public String getFragment() {\n\t\treturn fragment;\n\t}",
"public Fragment findFragment(int position) {\n return fragments[position];\n }",
"protected abstract Fragment getFragmentByPosition(int position);",
"public List<String> getBackStackList() {\n\t\tList<String> backStackList = new LinkedList<String>();\n\t\tint backstackEntryCount = this.getBackStackCount() - 1;\n\t\tfor (int entryPosition = backstackEntryCount; entryPosition >= 0; entryPosition--) {\n\t\t\tbackStackList.add(this.getSupportFragmentManager()\n\t\t\t\t\t.getBackStackEntryAt(entryPosition).getName());\n\t\t}\n\t\treturn backStackList;\n\n\t}",
"private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }",
"public String getSqlFragment(String sqlFragmentName) {\r\n checkArgument(\r\n !StringUtils.isNullOrWhitespaceOnly(sqlFragmentName),\r\n \"sql fragmentName name cannot be null or empty.\");\r\n\r\n if (sqlFragments.containsKey(sqlFragmentName)) {\r\n return sqlFragments.get(sqlFragmentName);\r\n } else {\r\n throw new CatalogException(\r\n format(\"The fragment of sql %s does not exist.\", sqlFragmentName));\r\n }\r\n }",
"public String name(int pos) {\n if (0 <= pos && pos < parts.length) {\n return parts[pos];\n } else {\n return null;\n }\n }",
"@Override\n public void onBackPressed(){\n\n int count = prevFragments.size();\n if(drawerLayout.isDrawerOpen(drawerListLeft)){\n\n drawerLayout.closeDrawer(drawerListLeft);\n\n } else if(drawerLayout.isDrawerOpen(drawerListRight)){\n\n drawerLayout.closeDrawer(drawerListRight);\n\n }else if (count > 1) {\n //super.onBackPressed();\n //additional code\n int last = fragmentsVisitedName.size() - 2;\n prevFragments.pop();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Fragment fragment = prevFragments.peek();\n getSupportActionBar().setTitle(fragmentsVisitedName.get(last));\n fragmentTransaction.replace(R.id.container, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n //fragment.onResume();\n\n\n fragmentsVisitedName.remove(last + 1);\n\n }\n }",
"String getLastNavFragment(Context context) {\n\t\treturn null;\n\t}",
"public String getFragment() {\n return m_fragment;\n }",
"public ProgramFragment getFragment(String treeName, Address addr);",
"@Override\n public CharSequence getPageTitle(int position) {\n //Fragment frag = getItem(position);\n // return ((HomeScreenFragment) frag).getTitle();\n //String arrNavItems[] = ;\n assert(navItems!=null && navItems.length >= position);\n\n return navItems[position].toString();\n //return \"Tab \"+(position+1);\n //return super.getPageTitle(position);\n }",
"public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }",
"String fragment();",
"public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }",
"public String getBack() {\n index--;\n return (String) history.get(index);\n }",
"public String getStack();",
"@Override\n public CharSequence getPageTitle(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return getResources().getString(R.string.mine);\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return getResources().getString(R.string.all);\n default:\n return \"\";\n }\n }",
"private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }",
"public String name() {\n return (parts.length > 0) ? parts[parts.length - 1] : null;\n }",
"public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}",
"@Override\n public Fragment getItem(int position) {\n if (position < frags.size()) {\n return frags.get(position);\n } else {\n return lastFrag;\n }\n }",
"private void switchFragment(int pos) {\n Fragment fragment=bottomBarList.get(pos);\n String backStateName = fragment.getClass().getName();\n String fragmentTag = backStateName;\n\n FragmentManager manager = getSupportFragmentManager();\n boolean fragmentPopped = manager.popBackStackImmediate (backStateName, 0);\n\n if (!fragmentPopped && manager.findFragmentByTag(fragmentTag) == null){ //fragment not in back stack, create it.\n FragmentTransaction ft = manager.beginTransaction();\n ft.replace(R.id.bottomNavFrameLayout, fragment, fragmentTag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.addToBackStack(backStateName);\n ft.commit();\n }\n\n\n }",
"private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }",
"public static Fragment getFragmentWithName(Fragment rootFragment,\n String name) {\n if (rootFragment.getName() != null\n && rootFragment.getName().equals(name)) {\n return rootFragment;\n }\n for (Fragment child : rootFragment.getChilds()) {\n Fragment correctFragment = RosebudHelper.getFragmentWithName(child,\n name);\n if (correctFragment != null) {\n return correctFragment;\n }\n }\n throw new RuntimeException(\"Fragment with name \" + name + \" not found\");\n }",
"@Override\n\tpublic void onBackStackChanged() {\n\t\t// the root fragment is the first one\n\t\tfinal int entryCount = getSupportFragmentManager().getBackStackEntryCount();\n\t\tif(entryCount == 1){\n\t\t\tmActionBar.setTitle(R.string.app_name);\n\t\t\tmActionBar.setDisplayHomeAsUpEnabled(false);\n\t\t}else if(entryCount == 0){\n\t\t\t// no fragment in stack, so destroy the activity\n\t\t\tfinish();\n\t\t}\n\t}",
"@Override\n public CharSequence getPageTitle(int position) {\n\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return \"List View\";\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return \"Grid View\";\n// case 2: // Fragment # 1 - This will show SecondFragment\n// return ThirdFragment.newInstance(2, \"Page # 3\");\n default:\n return null;\n }\n\n }",
"@Override\n public void onBackStackChanged() {\n int index = getChildFragmentManager().getBackStackEntryCount() - 1;\n if (index < 0) return;\n\n //noinspection WrongConstant\n changeLayoutFromTag(getChildFragmentManager().getBackStackEntryAt(index).getName());\n }",
"public String lastAsSlot();",
"public String getName() {\n return getActivityInfo().name;\n }",
"public String getNameAtHighscorePosition(int position) {\r\n\t\t//TODO\r\n\t\tif(position < 0 || position > getHighscoreCount() -1) return null;\r\n\t\t//TODO\r\n\t\treturn null;\r\n\t}",
"private String titleForTag(String fragmentTag) {\n if (fragmentTag == null) {\n return getString(R.string.app_name);\n }\n DrawerIndex tagIndex = DrawerIndex.fromTag(fragmentTag);\n int tagValue = DrawerIndex.valueOf(tagIndex);\n\n String title = getResources().getStringArray(R.array.examples_array)[tagValue];\n return title;\n }",
"@NonNull\n @Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n return FragmentA.newInstance(\"This is First Fragment\");\n case 1:\n return FragmentB.newInstance(\"This is second Fragment\");\n case 2:\n return FragmentC.newInstance(\"This is Third Fragment\");\n }\n return FragmentA.newInstance(\"This is Default Fragment\");\n }",
"int getReceivingMinorFragmentId(int index);",
"public String getName(int position){\n Item current = getItem(position);\n return current.Name();\n }",
"public void replaceFragmentWithBackStack(FragmentManager fragmentManager, @IdRes Integer containerViewId, Fragment fragment, @Nullable String tag, @Nullable String name) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(containerViewId, fragment, tag).addToBackStack(name).commit();\n }",
"private String getActiveFragmentTag() {\n List<Fragment> fragments = getSupportFragmentManager().getFragments();\n\n if (fragments == null) {\n return null;\n }\n\n for (Fragment fragment : fragments) {\n if (fragment.isVisible()) {\n return fragment.getTag();\n }\n }\n\n return null;\n }",
"public String getPosition()\r\n\t{\r\n\t\tObject[] result = pParent.status.requestOne(TuxAPIConst.ST_NAME_FLIPPERS_POSITION);\r\n\t\tif (result[0] == null)\r\n\t\t{\r\n\t\t\treturn TuxAPIConst.SSV_NDEF;\r\n\t\t}\r\n\t\tif (!TuxAPIMisc.stringInStringArray(TuxAPIConst.SSV_FLIPPERS_POSITIONS,\r\n\t\t\t\t(String)result[0]))\r\n\t\t{\r\n\t\t\treturn TuxAPIConst.SSV_NDEF;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn (String)result[0];\r\n\t\t}\r\n\t}",
"public String getNameFromIndex(int index) {\n for (Map.Entry<String, Integer> entry : this.vertexNames.entrySet()) {\n if (entry.getValue().equals(index)) {\n return entry.getKey();\n }\n }\n return null;\n }",
"@Override\n public CharSequence getPageTitle(int position) {\n if(position == 0)\n return getString(R.string.app_name);\n else\n return mPickFragments.get(position - 1).getResultCounterStr();\n }",
"public String getUnlocalizedName(ItemStack stack) {\n/* 59 */ return String.valueOf(getUnlocalizedName()) + \".\" + (String)this.nameFunction.apply(stack);\n/* */ }",
"public String getCallingName() throws FrameException {\n try {\n byte data[] = (byte[])infoElements.get(new Integer(InfoElement.CALLING_NAME));\n return new String(data);\n } catch (Exception e) {\n throw new FrameException(e);\n }\n }",
"@Override\n protected String getTag(int position) {\n List<String> tagList = new ArrayList<String>();\n tagList.add(SingleChanelListFragment.class.getName() + 0);\n tagList.add(SingleChanelListFragment.class.getName() + 1);\n tagList.add(SingleChanelListFragment.class.getName() + 2);\n tagList.add(SingleChanelListFragment.class.getName() + 3);\n return tagList.get(position);\n }",
"public String getTitle(int position) {\n return getString(Browser.HISTORY_PROJECTION_TITLE_INDEX, position);\n }",
"public String getName() {\n int index = getSplitIndex();\n return path.substring(index + 1);\n }",
"@NonNull\n public abstract Fragment getItem(int position);",
"public abstract @NonNull\n Fragment getItem(int position);",
"@Override\r\n\t\tpublic Fragment getItem(int arg0) {\n\t\t\treturn fragments[arg0];\r\n\t\t}",
"protected abstract int getFirstFrag();",
"public Name getNameAt(int arg0) {\n\t\treturn null;\n\t}",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return FootprintMineFragment.newInstance();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return FootprintAllFragment.newInstance();\n default:\n return null;\n }\n }",
"int getMinorFragmentId();",
"@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tswitch (position) {\n\t\t\t\t//case 0:return PlaceholderFragment.newInstance(position + 1);//defaultFragment();\n\t\t\t\tcase MANAGE_RECORDINGS:\n\t\t\t\t\treturn ManageRecordingsFrame.newInstance(position);\n\t\t\t\tcase SEARCH_FOR_STATIONS:\n\t\t\t\t\treturn SearchForStationsFrame.newInstance(position);\n\t\t\t\tcase MANAGE_STATIONS:\n\t\t\t\t\treturn ManageFavoriteStationsFrame.newInstance(position);\n\t\t\t\tcase FAVORITE_STATIONS:\n\t\t\t\tdefault:\n\t\t\t\t\treturn FavoriteStationsFrame.newInstance(0);//\n\t\t\t}\n\t\t}",
"public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }",
"public String customFragment() {\n return this.customFragment;\n }",
"public String getItem(int position) {\n return listName[position];\n }",
"private String before(Stack<String> stack, AtomicInteger index) {\n\t\tint next = index.get() - 1;\n\t\tif (next > 0)\n\t\t\treturn stack.get(next);\n\t\telse\n\t\t\treturn null;\n\t}",
"@Override\n public Fragment getItem(int position) {\n\n switch (position) {\n case 0:\n\n return MainFragment.newInstance(position + 1);\n\n case 1:\n\n return NewContactFragment.newInstance(\"\", \"\");\n\n case 2:\n\n return CallLogFragment.newInstance(1);\n }\n return null;\n }",
"public abstract Fragment getFragment();",
"private String getItem(int position) {\n return data[position - 1];\n }",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\n\n\t\tif ((keyCode == KeyEvent.KEYCODE_BACK)) {\n\t\t\t\n\t\t\tint backStackEntryCount = PlayupLiveApplication.getFragmentManager().getBackStackEntryCount();\n\n\t\t\tif ( backStackEntryCount <= 1 ) {\n\t\t\t\tfinish();\n\t\t\t\tConstants.isCurrent = false;\n\t\t\t\treturn true;\n\t\t\t} else {\n\n\t\t\t\tif ( backStackEntryCount == 2 ) {\n\t\t\t\t\tif ( PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( 0 ).getName().equalsIgnoreCase( \"TopBarFragment\") || \n\t\t\t\t\t\t\tPlayupLiveApplication.getFragmentManager().getBackStackEntryAt( 1 ).getName().equalsIgnoreCase( \"TopBarFragment\") ) {\n\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tConstants.isCurrent = false;\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString topFragmentName = PlayupLiveApplication.getFragmentManagerUtil().getTopFragmentName();\n\n\t\t\t\t\n\t\t\t\tString[] fragmentName = topFragmentName.split(\"%\", 2);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(fragmentName != null && fragmentName.length > 0)\n\t\t\t\t\ttopFragmentName = fragmentName[0];\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tif (topFragmentName != null\n\n\t\t\t\t\t\t&& ( topFragmentName.equalsIgnoreCase(\"LeagueSelectionFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"MatchHomeFragment\"))\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"LiveSportsFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"MatchRoomFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"InviteFriendFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PrivateLobbyInviteFriendFragment\")\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PlayupFriendsFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"DirectConversationFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"DirectMessageFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"WebViewFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"LeagueLobbyFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"AllSportsFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PostMessageFragment\")) {\n\n\n\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.obj = \"handleBackButton\";\n\n\t\t\t\t\tPlayupLiveApplication.callUpdateOnFragments(msg);\n\n\t\t\t\t\ttopFragmentName = null;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (topFragmentName != null\n\t\t\t\t\t\t&& topFragmentName.equalsIgnoreCase(\"FriendsFragment\")) {\n\n\t\t\t\t\tint backStackCount = PlayupLiveApplication.getFragmentManager().getBackStackEntryCount();\n\t\t\t\t\tBackStackEntry entry = null;\n\t\t\t\t\tBackStackEntry entry2 = null;\n\t\t\t\t\tif ( backStackCount - 2 > -1 ) {\n\t\t\t\t\t\tentry = PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( backStackCount - 2 );\n\t\t\t\t\t}\n\t\t\t\t\tif ( entry != null && entry.getName().contains( \"PlayupFriendsFragment\" ) ) {\n\t\t\t\t\t\tentry = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( backStackCount - 3 > -1 ) {\n\t\t\t\t\t\t\tentry2 = PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( backStackCount - 3 );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( entry2 != null && entry2.getName().contains( \"DirectConversationFragment\" ) ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPlayupLiveApplication.getFragmentManagerUtil().popBackStackTill( entry2.getName() );\n\t\t\t\t\t\t\tentry2 = null;\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} else {\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.obj = \"handleBackButton\";\n\n\t\t\t\t\t\tPlayupLiveApplication.callUpdateOnFragments(msg);\n\n\t\t\t\t\t\ttopFragmentName = null;\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn super.onKeyDown(keyCode, event);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\treturn super.onKeyDown(keyCode, event);\n\t}",
"public String getPositionName() {\n\t\treturn positionName;\n\t}",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n WalletHistory tab1 = new WalletHistory();\n return tab1;\n case 1:\n BankHistory tab2 = new BankHistory();\n return tab2;\n case 2:\n PointsHistory tab3 = new PointsHistory();\n return tab3;\n\n default:\n return null;\n }\n }",
"@NonNull\n\t\t@Override\n\t\tpublic androidx.fragment.app.Fragment getItem(int position) {\n\t\t\treturn PlaceholderFragment.newInstance(position + 1);\n\t\t}",
"public String getUnlocalizedName(ItemStack itemStack) \n\t{\n\t\tint i = itemStack.getItemDamage();\n\t\t\n\t\tif (i < 0 || i >= subBlocks.length) \n\t\t{\n\t\t\ti = 0;\n\t\t}\n\n\t\treturn super.getUnlocalizedName() + \".\" + subBlocks[i];\n\t}",
"@Override\n\tpublic java.lang.String getPositionName() {\n\t\treturn _dmGTShipPosition.getPositionName();\n\t}",
"@Override\n public Fragment getItem(int arg0) {\n return listfragment.get(arg0); //返回第几个fragment\n }",
"@Override\n public Fragment getItem(int position) {\n Intent intent = getIntent();\n mPlayerString = intent.getStringExtra(\"playerString\");\n\n // Store in bundle\n Bundle bundle = new Bundle();\n bundle.putString(\"playerString\", mPlayerString);\n\n switch (position) {\n case 0:\n PlayerScoresFragment playerfrag = new PlayerScoresFragment();\n\n // Send bundle to player scores fragment\n playerfrag.setArguments(bundle);\n return playerfrag;\n case 1:\n HighscoresFragment highscorefrag = new HighscoresFragment();\n // Send bundle to player scores fragment\n highscorefrag.setArguments(bundle);\n return highscorefrag;\n }\n\n return null;\n }",
"public String getToolTipText() {\n\t\t\treturn fragname.toString();\n\t\t}",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return Alarm_Fragment_1.newInstance(0, \"Page #1\");\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return Alarm_Fragment_2.newInstance(1, \"Page # 2\");\n case 2: // Fragment # 1 - This will show SecondFragment\n return Alarm_Fragment_3.newInstance(2, \"Page # 3\");\n case 3 : return Alarm_Fragment_4.newInstance(3, \"Page # 4\");\n case 4 : return Alarm_Fragment_5.newInstance(5, \"Page # 5\");\n //return Frag5.newInstance(4, \"Page # 5\");\n case 5 : return Alarm_Fragment_6.newInstance(6, \"Page # 6\");\n default:\n return null;\n }\n }",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0: // Fragment # 0 - This will show FirstFragment\n return new ListFragment();\n case 1: // Fragment # 0 - This will show FirstFragment different title\n return new GridFragment();\n\n default:\n return null;\n }\n }",
"public Fragment getCurrentFragment()\n {\n return getFragmentInContainer(R.id.fragmentFrameContainer);\n }",
"public String getFragmentPath() {\n return fragmentPath;\n }",
"private void hideBackStackFragments() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n for (int i = 0; i < entryCount; i++) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(i);\n Fragment frag = mFragmentManager.findFragmentByTag(entry.getName());\n ft.hide(frag);\n }\n ft.commit();\n }",
"@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n CommonFragment tab1 = CommonFragment.newInstance(\"cube\");\n return tab1;\n case 1:\n CommonFragment tab2 = CommonFragment.newInstance(\"juggling\");\n return tab2;\n case 2:\n CommonFragment tab3 =CommonFragment.newInstance(\"grapho\");\n return tab3;\n case 3:\n CommonFragment tab4 =CommonFragment.newInstance(\"stack\");\n return tab4;\n case 4:\n CommonFragment tab5 = CommonFragment.newInstance(\"calligraphy\");\n return tab5;\n case 5:\n CommonFragment tab6=CommonFragment.newInstance(\"analysis\");\n return tab6;\n default:\n return null;\n }\n }",
"@Override\n public void onSwap(String FragmentName, Bundle bundle) {\n\n Fragment fragmentToSwap = null;\n FragmentTransaction fragmentTransaction = FM.beginTransaction();\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n\n getSupportActionBar().setTitle(\"\");\n try {\n switch (FragmentName) {\n case \"Popular\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"TopRated\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Upcoming\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Detail\":\n fragmentToSwap = new DetailMovieFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n fragmentTransaction.addToBackStack(\"MoviesListFragment\");\n\n break;\n }\n fragmentTransaction.commit();\n }catch(Exception e){\n e.printStackTrace();\n }\n }",
"public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }",
"public static String bName(int index) {\n\t\treturn ((IdentifierResolver) bIdents.get(index)).getBName();\n\t}",
"public abstract int getFragmentView();",
"protected String getPreviousActivityName() {\n try {\n Bundle bundle = getIntent().getExtras();\n if (bundle.getString(\"classFrom\") == null) {\n return \"\";\n } else {\n return bundle.getString(\"classFrom\");\n }\n } catch (Exception e) {\n // TODO: handle exception\n return \"\";\n }\n }",
"String getPageName();",
"@Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return mContext.getResources().getString(tabNamesIndex[position]);\n }",
"@Override\r\n\t\tpublic Fragment getItem(int position) {\r\n\t\t\tTabInfo info = getTabs().get(position);\r\n\t\t\treturn Fragment.instantiate(getContext(), info.clss.getName(), info.args);\r\n\t\t}",
"@NonNull\n @Override\n public Fragment getItem(int position) {\n switch (position){\n case 0:\n return new MoviesListFragment(tabNames[position]);\n case 1:\n return new MoviesListFragment(tabNames[position]);\n case 2:\n return new MoviesListFragment(tabNames[position]);\n case 3:\n return new MoviesListFragment(tabNames[position]);\n case 4:\n return new MoviesListFragment(tabNames[position]);\n default:\n return new MoviesListFragment(\"General\");\n }\n }",
"public java.lang.String getSubElementName(int index) { throw new RuntimeException(\"Stub!\"); }",
"public static String methodSimpleNameCaller(int callsBack) {\n if (callsBack < 0) {\n throw new IllegalArgumentException(\"only positive values are allowed\");\n }\n\n int modifycall = callsBack + 2;\n\n try {\n StackTraceElement[] stack = Thread.currentThread().getStackTrace();\n return stack[modifycall].getMethodName();\n } catch (Exception e) {\n log.error(\"failed to call stacktrace\", e);\n }\n\n return UNKNOWN;\n }",
"@Override\n\tpublic Fragment getItem(int idx) {\n\t\treturn fragmentList.get(idx);\n\t}",
"private int backwardPosition() {\n\t\tif(getPosition() > 0) {\n\t\t\treturn getPosition() - 1;\n\t\t} else {\n\t\t\treturn getMaxPosition();\n\t\t}\n\t}",
"String getSegmentName();",
"public String findBackward() {\n\t\t\tString result=\"\";\n\t\t\treturn result ;\n\t\t}",
"@Override\n public Fragment getItem(int position) {\n if(position == 0) {\n UserProfileTimeFragment userProfileTimeFragment = UserProfileTimeFragment.newInstance(screenName, false);\n return userProfileTimeFragment;\n\n } else if(position == 1){\n FollowersProfileFragment followersProfileFragment = FollowersProfileFragment.newInstance(screenName, false);\n return followersProfileFragment;\n\n } else if(position == 2){\n FollowingProfileFragment followingProfileFragment = FollowingProfileFragment.newInstance(screenName, false);\n return followingProfileFragment;\n\n } else {\n UserProfileTimeFragment userProfileTimeFragment = UserProfileTimeFragment.newInstance(screenName, false);\n return userProfileTimeFragment;\n }\n }",
"@Override\n public Fragment getItem(int position)\n {\n \t\n \tBundle args = new Bundle();\n\n \tswitch (position) \n \t{\n\t\t\t\tcase PLAYER_TAB:\t\t\t\t\n\t\t // Return a PlayersFragment\n\t\t Fragment players = new PlayersFragment();\n\t\t players.setArguments(args);\n\t\t return players;\n\t\t\t\tcase GAME_TAB:\n\t\t // Return a GamesFragment\n\t\t Fragment games = new GamesFragment();\n\t\t games.setArguments(args);\n\t\t return games;\n\t\t\t\tcase PLAYER_STATS_TAB:\n\t\t\t\t\t// Return a PlayerStatistics Fragment\n\t\t\t\t\tFragment stats = new PlayerStatistics();\n\t\t\t\t\tstats.setArguments(args);\n\t\t return stats;\n\t\t\t\tcase GAME_STATS_TAB:\n\t\t\t\t\t// Return a GameStatistics Fragment\n\t\t\t\t\tFragment game_stats = new GameStatistics();\n\t\t\t\t\tgame_stats.setArguments(args);\n\t\t return game_stats;\n\t\t\t\tdefault:\n\t\t // Return a PlayersFragment\n\t\t Fragment fragment = new PlayersFragment();\n\t\t fragment.setArguments(args);\n\t\t return fragment;\n\t\t \n \t}\n }"
]
| [
"0.7104149",
"0.6973643",
"0.64039063",
"0.6111205",
"0.59791",
"0.593658",
"0.58756363",
"0.5849217",
"0.5829562",
"0.5794181",
"0.5773602",
"0.5763698",
"0.574612",
"0.5711875",
"0.57008904",
"0.5675299",
"0.5660509",
"0.56502104",
"0.5643927",
"0.5641135",
"0.56070673",
"0.558566",
"0.55851156",
"0.55762726",
"0.55625135",
"0.5540074",
"0.55332583",
"0.55249614",
"0.54853237",
"0.54750407",
"0.5469181",
"0.54033816",
"0.53785247",
"0.53697616",
"0.5364318",
"0.5351118",
"0.53378785",
"0.53257537",
"0.53250647",
"0.5325045",
"0.5314693",
"0.53039676",
"0.52700883",
"0.5245642",
"0.5224089",
"0.52124435",
"0.52016276",
"0.51968926",
"0.5195446",
"0.51942676",
"0.51918983",
"0.5174081",
"0.517347",
"0.51540124",
"0.5134517",
"0.5131208",
"0.5114642",
"0.5105775",
"0.5099119",
"0.50918984",
"0.50729",
"0.5071601",
"0.5068282",
"0.5065564",
"0.50514275",
"0.5040015",
"0.50351024",
"0.5008538",
"0.5003589",
"0.5000377",
"0.49922216",
"0.49920207",
"0.49883842",
"0.49840173",
"0.49808994",
"0.49791694",
"0.49786335",
"0.4966337",
"0.49642777",
"0.49532068",
"0.49478462",
"0.49451134",
"0.49450082",
"0.49402478",
"0.4939089",
"0.49364895",
"0.49341562",
"0.4931612",
"0.49244624",
"0.49208406",
"0.49173948",
"0.49158472",
"0.4914995",
"0.4913747",
"0.49093348",
"0.49093202",
"0.49084908",
"0.49076796",
"0.49010244",
"0.48989096"
]
| 0.7796329 | 0 |
Returns list of fragment back stack entries. | public List<String> getBackStackList() {
List<String> backStackList = new LinkedList<String>();
int backstackEntryCount = this.getBackStackCount() - 1;
for (int entryPosition = backstackEntryCount; entryPosition >= 0; entryPosition--) {
backStackList.add(this.getSupportFragmentManager()
.getBackStackEntryAt(entryPosition).getName());
}
return backStackList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }",
"public String getStack();",
"public List<Instruction> popInstructions() {\n return instructionsStack.pop();\n }",
"public CallStackFrame[] getCallStack () {\n return getThread ().getCallStack ();\n }",
"public String getBack() {\n index--;\n return (String) history.get(index);\n }",
"public int getBackStackCount() {\n\t\ttry {\n\t\t\treturn this.getSupportFragmentManager().getBackStackEntryCount();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}",
"public Vector getStackTrace() {\r\n final Vector result = new Vector();\r\n\r\n for (int s = ((this.sp + 1) & 0xff) | 0x100; s > 0x100 && s < 0x1ff; s += 2) {\r\n final int adr = (this.memory[s] & 0xff) + (this.memory[s + 1] & 0xff) * 256;\r\n\r\n if (adr == 0) {\r\n break;\r\n }\r\n\r\n result.addElement(new Integer((adr - 2) & 0xffff));\r\n }\r\n\r\n return result;\r\n }",
"public Variable[] getStackVariables();",
"public Node getBack(){\n return this.back;\n }",
"public String setBack(){\n\t\tif(back.empty())\n\t\t\treturn null;\n\t\treturn back.pop();\n\t}",
"private void printHistoryReverse()\r\n\t{\r\n\t\tStack temp = new Stack(SIZE);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Most Recent to Oldest):\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(chronological.peek());\t\t//print out value currently at the top of stack\r\n\t\t\ttemp.push(chronological.pop());\t\t\t\t\t//pop the top of stack and push to another stack\r\n\t\t}\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tchronological.push(temp.pop());\t\t\t\t\t//push all elements of temp back to the original stack\r\n\t}",
"private Fragment getLatestFragmentFromBackStack() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n if (entryCount > 0) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(entryCount - 1);\n return mFragmentManager.findFragmentByTag(entry.getName());\n } else {\n return null;\n }\n }",
"public E peekBack();",
"public String back()\n {\n\treturn tail.value;\n }",
"public List<Object> getTraversalStack()\n {\n return Collections.unmodifiableList(traversalStack);\n }",
"public GMap<Integer, Stack> getStacks();",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"public List<BackupInfo> getBackupHistory() throws IOException {\n return systemTable.getBackupHistory();\n }",
"private void hideBackStackFragments() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n for (int i = 0; i < entryCount; i++) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(i);\n Fragment frag = mFragmentManager.findFragmentByTag(entry.getName());\n ft.hide(frag);\n }\n ft.commit();\n }",
"public T back();",
"public String dump() {\n String result = \"\";\n Iterator stackIt = framePointers.iterator();\n int frameEnd;\n int old;\n int pos = 0;\n frameEnd = (int)stackIt.next();\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n while(pos < runStack.size()) {\n result += \"[\";\n if(frameEnd == -1) {\n while(pos < runStack.size()-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n result += runStack.get(pos)+\"] \";\n pos++;\n }\n else {\n while(pos < frameEnd-1) {\n result += runStack.get(pos) + \",\";\n pos++;\n }\n if(pos < frameEnd){\n result += runStack.get(pos);\n pos++;\n }\n result += \"]\";\n }\n if(stackIt.hasNext()) {\n frameEnd = (int)stackIt.next();\n }\n else {\n frameEnd = -1;\n }\n }\n return result;\n }",
"protected List getFragmentsWithoutBorder() {\n List fragments = getFragments();\n if (getBorder() != null)\n fragments = fragments.subList(1, fragments.size() - 1);\n return fragments;\n }",
"@Override\r\n\tpublic List<BackStone> findAllBackStone() {\n\t\tLOGGER.info(\"查找所有的退石记录:>>\" );\r\n\t\treturn backStoneDao.findAllBackStone();\r\n\t}",
"public List<String> getStatesHistory() {\n return statesHistory;\n }",
"public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }",
"@VisibleForTesting\n public WindowList<TaskStack> getStacks() {\n return this.mTaskStackContainers.mChildren;\n }",
"@Override\n public Item getBack() {\n int lastActualItemIndex = size - 1;\n return items[lastActualItemIndex];\n }",
"public Vector<Command> getStack() {\r\n\t\treturn stack;\r\n\t}",
"public boolean hasBack() {\n if (index > 0) {\n return true;\n } else {\n return false;\n }\n }",
"private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}",
"public NSArray<Object> callStackReturnAddresses() {\n\t\tNSArray<Object> nsArray = new NSArray<Object>();\n\t\tnsArray.getWrappedList().add(exception.getStackTrace());\n\t\treturn nsArray;\n\t}",
"public IClause back() {\n if (back==front)\n throw new BufferUnderflowException();\n\n return tab[back];\n }",
"public GImage getBack(){\r\n \t\t return back;\r\n\t }",
"public List<String> restoreIpAddressesBacktrack1(String s) {\n List<String> res = new ArrayList<>();\n if (s == null || s.length() < 4 || s.length() > 12) return res;\n List<String> aList = new ArrayList<>();\n StringBuilder current = new StringBuilder();\n backTrack(res, s, aList, current, 0);\n return res;\n }",
"public int getFragmentBundles();",
"public boolean onPopBackStack() {\n\t\treturn false;\n\t}",
"public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }",
"@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }",
"public String getRingback();",
"public String findBackward() {\n\t\t\tString result=\"\";\n\t\t\treturn result ;\n\t\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}",
"public float[] getByteHistory() {\n return byteMonitor.getHistory();\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder(\"(\");\r\n\t\tfor (int j = t; j >= 0; j--) {\r\n\t\t\tsb.append(stack[j]);\r\n\t\t\tif (j > 0)\r\n\t\t\t\tsb.append(\", \");\r\n\t\t}\r\n\t\tsb.append(\")\");\r\n\t\treturn sb.toString();\r\n\t}",
"protected void sPopBack() {\n if (head == tail)\n return;\n mMyArray[tail] = null;\n tail--;\n }",
"public E pop(){\n return this.stack.remove(stack.size()-1);\n }",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"Object back()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call back() on empty List\");\n\t\t}\n\t\treturn back.data;\n\t}",
"public void pop();",
"public Stmt getBackJumpStmt() {\r\n\t\treturn backJump;\r\n\t}",
"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}",
"public String backwards()\n\t{\n\t\tString answer = \"\";\n\t\tDLLNode cursor = tail;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = \"<--\" + cursor.data + answer;\n\t\t\tcursor = cursor.prev;\n\t\t}\n\n\t\tanswer = \"(null)\" + answer;\n\t\treturn answer;\n\t}",
"public E getBack() throws IllegalArgumentException {\r\n\t\tE result = null;\r\n\t\tresult = get(size - 1);\r\n\t\treturn result;\r\n\t}",
"public int getCallStack() {\n\t\treturn this.callStack;\n\t}",
"static List<String> getStackFrameList(final Throwable t) {\n final String stackTrace = getStackTrace(t);\n final String linebreak = LINE_SEPARATOR;\n final StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);\n final List<String> list = new ArrayList<String>();\n boolean traceStarted = false;\n while (frames.hasMoreTokens()) {\n final String token = frames.nextToken();\n // Determine if the line starts with <whitespace>at\n final int at = token.indexOf(\"at\");\n if (at != -1 && token.substring(0, at).trim().isEmpty()) {\n traceStarted = true;\n list.add(token);\n } else if (traceStarted) {\n break;\n }\n }\n return list;\n }",
"public List<Location> getPreviousLocations();",
"public void jumpBack() {\n this.instructionList = this.stack.pop();\n }",
"public Object pop() {\n return fStack.pop();\n }",
"public boolean onPopBackStack() {\n return false;\n }",
"public void popFrame(){\n runStack.popFrame();\n }",
"void writeStackToRecentsBlocking() {\n final ContentResolver resolver = getContentResolver();\n final ContentValues values = new ContentValues();\n\n final byte[] rawStack = DurableUtils.writeToArrayOrNull(mState.stack);\n\n // Remember location for next app launch\n final String packageName = getCallingPackageMaybeExtra();\n values.clear();\n values.put(ResumeColumns.STACK, rawStack);\n values.put(ResumeColumns.EXTERNAL, 0);\n resolver.insert(RecentsProvider.buildResume(packageName), values);\n }",
"public int popFrame() {\n int result = runStack.remove(runStack.size()-1);\n int top = framePointers.pop();\n while(runStack.size() > top) {\n runStack.remove(runStack.size()-1);\n }\n runStack.add(result);\n return result;\n }",
"public int pop(){\n return runStack.pop();\n }",
"@Override\n public void onBackPressed() {\n if(inRestaurantMenu||inDropDetail||inOtherFragment||inPastOrder||inProcessOrder) {\n FragmentManager fm = getSupportFragmentManager();\n for(int i = 0; i < fm.getBackStackEntryCount(); ++i) {\n fm.popBackStack();\n }\n loadHomeFragment();\n }\n else if(inPickDetail||inCompleteDetail) {\n getSupportFragmentManager().popBackStack();\n }else {\n super.onBackPressed();\n }\n\n }",
"private void clearBackstack() {\n FragmentManager manager = getSupportFragmentManager();\n if (manager.getBackStackEntryCount() > 0) {\n FragmentManager.BackStackEntry first = manager.getBackStackEntryAt(0);\n manager.popBackStack(first.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n }",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public int pop() {\n int result;\n while(!stack.isEmpty()){\n cache.add(stack.removeLast());\n }\n result = cache.removeLast();\n while(!cache.isEmpty()){\n stack.add(cache.removeLast());\n }\n System.out.println(result);\n return result;\n }",
"@Override\n public void onBackPressed() {\n /*if(!BaseViewHolder.getInstance().onBackPressed()) {\n super.onBackPressed();\n }*/\n FragmentManager fragmentManager = getSupportFragmentManager();\n /*FragmentManager.BackStackEntry backEntry=fragmentManager.getBackStackEntryAt(fragmentManager.getBackStackEntryCount()-1);\n Logger.i(TAG+\"onBackPressed\", backEntry.toString());*/\n //Logger.i(TAG+\"onBackPressed\", Integer.toString(BaseViewHolder.getInstance().onBackPressed()));\n fragmentManager.popBackStack();\n fragmentManager.executePendingTransactions();\n if(fragmentManager.getBackStackEntryCount()==0){\n super.onBackPressed();\n }else {\n BaseViewHolder.getInstance().onBackPressed();\n }\n }",
"public Set<String> getBackPageFileSet() {\n final Set<String> fileSet = new HashSet<String>();\n final File[] pageFiles = this.pageDirFile.listFiles();\n if (pageFiles != null && pageFiles.length > 0)\n for (final File pageFile : pageFiles) {\n final String fileName = pageFile.getName();\n if (fileName.endsWith(PAGE_FILE_SUFFIX))\n fileSet.add(fileName);\n }\n return fileSet;\n }",
"protected abstract List breakOutOfStateStack();",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public IClause popBack() {\n if (back==front)\n throw new BufferUnderflowException();\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }",
"@JSProperty(\"reversedStacks\")\n boolean getReversedStacks();",
"void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}",
"void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}",
"void dump_stacks(int count)\n{\nint i;\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\n for (i=0;i<count;i++)\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\n System.out.println(\"======================\");\n}",
"void dump_stacks(int count)\r\n{\r\nint i;\r\n System.out.println(\"=index==state====value= s:\"+stateptr+\" v:\"+valptr);\r\n for (i=0;i<count;i++)\r\n System.out.println(\" \"+i+\" \"+statestk[i]+\" \"+valstk[i]);\r\n System.out.println(\"======================\");\r\n}",
"public TaskStack getPinnedStack() {\n return this.mTaskStackContainers.getPinnedStack();\n }",
"public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}",
"@Override\n\tpublic BackManager getBackManager() {\n\t\treturn mBackManager;\n\t}",
"public Room back()\n {\n\n //Checks if the has player visited a room, excludes the starting room.\n if(!(visits.isEmpty())){\n\n // If the room currently in, is in the stack then remove it.\n if(currentRoom == visits.peek() && visits.size() !=1){\n visits.pop();\n currentRoom = visits.pop(); // Sets the player to move to the previous room.\n }\n else {\n currentRoom = visits.pop();\n }\n setUserLocation(currentRoom); // Sets the location of the player.\n moves++;\n printStatus(); // Displays the \n }\n else {\n System.out.println();\n System.out.println(\"Please choose a different command.\\nYou have travelled back to the start.\");\n }\n System.out.println();\n return currentRoom;\n }",
"private void pushBack() {\n\t\tbufferLocal.insertarEnCabeza(listaTokens.get(listaTokens.size()-1));\n\t}",
"List<LookupResultItem> getResult() {\n int size = this.size();\n LookupResultItem[] res = new LookupResultItem[size];\n\n for (int i = size - 1; i >= 0; i--) { // iterate from top so results are ordered in descending order\n res[i] = this.pop();\n }\n\n return Arrays.asList(res);\n }",
"public Stack<Position> getReturnPath() {\n\t\treturn returnPath;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tfor(int i = 0; i < top; i++) {\n\t\t\tresult = result + stack[i].toString() + \"\\n\";\t//shouldn't it start at max --> 0 since its a stack\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n switch (event.getAction()) {\n case KeyEvent.ACTION_DOWN:\n\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n if (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n //Log.d(\"picher\", \"stackCount:\" + getSupportFragmentManager().getBackStackEntryCount() + \"fragments:\" + getSupportFragmentManager().getFragments().size());\n\n for (int i = 0; i < getSupportFragmentManager().getBackStackEntryCount(); i++) {\n // Log.d(\"picher\", \"backStackName:\" + getSupportFragmentManager().getBackStackEntryAt(i).getName());\n }\n getSupportFragmentManager().popBackStackImmediate();\n for (int i = 0; i < getSupportFragmentManager().getBackStackEntryCount(); i++) {\n //Log.d(\"picher\", \"弹栈之后backStackName:\" + getSupportFragmentManager().getBackStackEntryAt(i).getName());\n }\n return true;\n }\n\n }\n break;\n }\n return super.onKeyDown(keyCode, event);\n }",
"static void dump(Stack stack) {\n String temp = \" stack = \";\n for (int i = stack.size() - 1; i >= 0; i--) {\n temp = temp + ((TreeNode) (stack.elementAt(i))).data + \" \";\n }\n System.out.println(temp);\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tMapViewerFragment mapViewerFragment = (MapViewerFragment) getFragmentManager()\n\t\t\t\t.findFragmentByTag(\"map\");\n\t\tif (mapViewerFragment != null && mapViewerFragment.isVisible() && mapViewerFragment.onBackPressed()) {\n\t\t\treturn;\n\t\t}\n\n\t\tint backStackEntries = getFragmentManager().getBackStackEntryCount();\n\t\tif (backStackEntries == 0) {\n\t\t\tif (getLeftDrawerList().getCheckedItemPosition() == 0) {\n\t\t\t\tif (mExitToast != null && mExitToast.getView().isShown()) {\n\t\t\t\t\tfinish();\n\t\t\t\t} else {\n\t\t\t\t\tmExitToast = Toast.makeText(this, \"Press back again to exit\", Toast.LENGTH_SHORT);\n\t\t\t\t\tmExitToast.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdisplayHome();\n\t\t\t}\n\t\t} else {\n\t\t\tsuper.onBackPressed();\n\t\t}\n\t}",
"public List<State> getFinalStates() {\n\t\tif (cachedFinalStates == null) {\n\t\t\tcachedFinalStates = new LinkedList<>(finalStates);\n\t\t}\n\t\treturn cachedFinalStates;\n\t}",
"private List<Point> toList(){\n List<Point> pointsList = new ArrayList<Point>();\n int n = pointsStack.size();\n for (int i = 0; i < n; i++){\n pointsList.add(pointsStack.pop());\n }\n return pointsList;\n }",
"private List<GeographicPoint> backTrack(HashMap<GeographicPoint, List<GeographicPoint>> prev, GeographicPoint goal) {\n\t\tList<GeographicPoint> ans = new ArrayList<GeographicPoint>();\n\t\tList<GeographicPoint> temp = prev.get(goal);\n\t\tif (temp.size() != 0) {\n\t\t\tans.add(goal);\n\t\t\twhile (temp.size() != 0) {\n//\t\t\t\tSystem.out.print(\"Neighbours: \");\n\t\t\t\t// lastNeighbour will be the neighbour node we visited right before moving to the current node\n\t\t\t\tGeographicPoint lastNeighbour = temp.get(temp.size() - 1);\n\t\t\t\tans.add(lastNeighbour);\n\t\t\t\ttemp = prev.get(lastNeighbour);\n\t\t\t}\n\t\t\tCollections.reverse(ans);\n\t\t}\n\t\tif (ans.isEmpty())\n\t\t\treturn null;\n\t\treturn ans;\n\t}",
"public org.sirius.client.win32.core.types.Hbrush getHbrBack() {\n return hbrBack;\n }",
"@Override\n public void onBackPressed(){\n\n int count = prevFragments.size();\n if(drawerLayout.isDrawerOpen(drawerListLeft)){\n\n drawerLayout.closeDrawer(drawerListLeft);\n\n } else if(drawerLayout.isDrawerOpen(drawerListRight)){\n\n drawerLayout.closeDrawer(drawerListRight);\n\n }else if (count > 1) {\n //super.onBackPressed();\n //additional code\n int last = fragmentsVisitedName.size() - 2;\n prevFragments.pop();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Fragment fragment = prevFragments.peek();\n getSupportActionBar().setTitle(fragmentsVisitedName.get(last));\n fragmentTransaction.replace(R.id.container, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n //fragment.onResume();\n\n\n fragmentsVisitedName.remove(last + 1);\n\n }\n }",
"public static void main(String[] args) {\n Stack testStack = new Stack();\n testStack.add(\"a\");\n testStack.add(\"b\");\n testStack.add(\"c\");\n System.out.println(testStack.values());\n System.out.println(testStack.take());\n System.out.println(testStack.values());\n System.out.println(testStack.take());\n System.out.println(testStack.values());\n \n\n }",
"public Stack getStack() {\r\n\t\treturn stack;\r\n\t}",
"public TaskStack getHomeStack() {\n return this.mTaskStackContainers.getHomeStack();\n }",
"private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}",
"public String toString()\r\n {\r\n String result = \"\";\r\n \r\n for (int index=0; index < top; index++) \r\n result = result + stack[index].toString() + \"\\n\";\r\n \r\n return result;\r\n }",
"public String getBack(){\n String str = \"\";\n if( !this.isEmpty() ){\n MyDoubleNode<Type> aux = this.end;\n while(aux != null){\n str += aux.value.toString() + \" \";\n aux = aux.prev;\n }\n }\n return str;\n }"
]
| [
"0.6455325",
"0.6257406",
"0.59059024",
"0.5897633",
"0.5852553",
"0.5788514",
"0.57605994",
"0.5749001",
"0.57131565",
"0.5666584",
"0.5661002",
"0.5636977",
"0.5629895",
"0.55928326",
"0.5584296",
"0.5555112",
"0.55548376",
"0.5550706",
"0.54645735",
"0.5444322",
"0.54386896",
"0.5431372",
"0.5425025",
"0.5424703",
"0.5416468",
"0.54089475",
"0.5368541",
"0.53456175",
"0.5343104",
"0.5338017",
"0.5333978",
"0.5328638",
"0.53172535",
"0.5314388",
"0.5297766",
"0.52767366",
"0.52725583",
"0.52583194",
"0.5246356",
"0.52453446",
"0.5217967",
"0.5213094",
"0.5211317",
"0.5205975",
"0.5204729",
"0.52034974",
"0.51999265",
"0.519845",
"0.51820105",
"0.517962",
"0.517547",
"0.51675355",
"0.5160049",
"0.5156258",
"0.5156253",
"0.51466656",
"0.5139095",
"0.5120725",
"0.51028687",
"0.5100922",
"0.50986296",
"0.50973",
"0.5096447",
"0.50957626",
"0.50932",
"0.5092342",
"0.5092342",
"0.5088707",
"0.50880903",
"0.5078124",
"0.5076491",
"0.5071568",
"0.50691086",
"0.506819",
"0.50545764",
"0.50545764",
"0.50545764",
"0.5053188",
"0.50494665",
"0.50437886",
"0.5039829",
"0.50384915",
"0.50242513",
"0.5015521",
"0.5011713",
"0.5009107",
"0.50046873",
"0.5003969",
"0.500214",
"0.49906862",
"0.49838084",
"0.49830174",
"0.49827683",
"0.49706036",
"0.49628752",
"0.4962825",
"0.4961292",
"0.49603462",
"0.49599385",
"0.4959762"
]
| 0.8046782 | 0 |
Goes one step in the fragment back stack. | @Override
public boolean popBackStack() {
return this.getSupportFragmentManager().popBackStackImmediate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stepBackward() {\n\t\tposition = backwardPosition();\n\t}",
"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}",
"public void jumpBack() {\n this.instructionList = this.stack.pop();\n }",
"public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }",
"public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }",
"public void back() {\n\t\tstate.back();\n\t}",
"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 stepForward() {\n\t\tposition = forwardPosition();\n\t}",
"@Override\n public void goBack() {\n\n }",
"protected void goBack() {\r\n\t\tfinish();\r\n\t}",
"public void back() {\n Views.goBack();\n }",
"public void backStep() {\r\n\t\tif (engaged && !backSteps.empty()) {\r\n\t\t\tProgramStatement statement = ((BackStep) backSteps.peek()).ps;\r\n\t\t\tengaged = false; // GOTTA DO THIS SO METHOD CALL IN SWITCH WILL NOT\r\n\t\t\t\t\t\t\t\t// RESULT IN NEW ACTION ON STACK!\r\n\t\t\tdo {\r\n\t\t\t\tBackStep step = (BackStep) backSteps.pop();\r\n\t\t\t\t/*\r\n\t\t\t\t * System.out.println(\"backstep POP: action \"+step.action+\" pc \"\r\n\t\t\t\t * +mars.util.Binary.intToHexString(step.pc)+\r\n\t\t\t\t * \" source \"+((step.ps==null)? \"none\":step.ps.getSource())+\r\n\t\t\t\t * \" parm1 \"+step.param1+\" parm2 \"+step.param2);\r\n\t\t\t\t */\r\n\t\t\t\tif (step.pc != NOT_PC_VALUE) {\r\n\t\t\t\t\tRegisterFile.setProgramCounter(step.pc);\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tswitch (step.action) {\r\n\t\t\t\t\tcase MEMORY_RESTORE_RAW_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setRawWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_WORD:\r\n\t\t\t\t\t\tGlobals.memory.setWord(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_HALF:\r\n\t\t\t\t\t\tGlobals.memory.setHalf(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase MEMORY_RESTORE_BYTE:\r\n\t\t\t\t\t\tGlobals.memory.setByte(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase REGISTER_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase PC_RESTORE:\r\n\t\t\t\t\t\tRegisterFile.setProgramCounter(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC0_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor0.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_REGISTER_RESTORE:\r\n\t\t\t\t\t\tCoprocessor1.updateRegister(step.param1, step.param2);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_CLEAR:\r\n\t\t\t\t\t\tCoprocessor1.clearConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase COPROC1_CONDITION_SET:\r\n\t\t\t\t\t\tCoprocessor1.setConditionFlag(step.param1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase DO_NOTHING:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// if the original action did not cause an exception this\r\n\t\t\t\t\t// will not either.\r\n\t\t\t\t\tSystem.out.println(\"Internal MARS error: address exception while back-stepping.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} while (!backSteps.empty() && statement == ((BackStep) backSteps.peek()).ps);\r\n\t\t\tengaged = true; // RESET IT (was disabled at top of loop -- see\r\n\t\t\t\t\t\t\t// comment)\r\n\t\t}\r\n\t}",
"public void back() throws JSONException {\n if(usePrevious || this.index <= 0) {\n throw new JSONException(\"Stepping back two steps is not supported\");\n }\n this.index -= 1;\n this.character -= 1;\n this.usePrevious = true;\n this.eof = false;\n }",
"@Override\n public void backward() {\n }",
"private void backObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToBack();\n }\n\t}",
"private void backPressHandling() {\r\n FragmentManager manager = getSupportFragmentManager();\r\n if (manager.getBackStackEntryCount() <= 1) {\r\n finish();\r\n } else {\r\n manager.popBackStack();\r\n }\r\n }",
"private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }",
"void moveBack()\n\t{\n\t\tif (length != 0) \n\t\t{\n\t\t\tcursor = back; \n\t\t\tindex = length - 1; //cursor will be at the back\n\t\t\t\n\t\t}\n\t}",
"@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}",
"private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}",
"@Override\n public void onBackPressed() {\n if (mViewPager.getCurrentItem() == 0) {\n // If the user is currently looking at the first step, allow the system to handle the\n // Back button. This calls finish() on this activity and pops the back stack.\n moveTaskToBack(true);\n } else {\n // Otherwise, select the previous step.\n mViewPager.setCurrentItem(mViewPager.getCurrentItem() - 1);\n }\n }",
"@Override\n public final void switchBack() {\n }",
"@Override\r\n public void onBackPressed() {\n if(TripPlannerFragment.mCanGoNextState)\r\n {\r\n TripPlannerFragment.mCanGoNextState = false;\r\n finish();\r\n }\r\n }",
"public void stepBackward(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\n\t\t//check to see if we are back to the first frame\n\t\tif(frameIndex == 0){ frameIndex = frames.length-1; }\n\t\telse{ frameIndex--; }\n\t\n\t\tframes[frameIndex].display();\n frames[frameIndex].clearDisplay();\n\t}",
"@Override\n public void onBackPressed() {\n if (getFragmentManager().getBackStackEntryCount() == 0) {\n finish();\n } else {\n getFragmentManager().popBackStack();\n }\n }",
"public boolean goBack() {\n if(index > 0) {\n index--;\n return true;\n } else {\n return false;\n }\n }",
"public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }",
"public void back() {\n callFunction(\"back\");\n }",
"public final void finishFragmentByStep(int step) {\n android.support.v4.app.FragmentActivity activity = getActivity();\n\n if (activity == null) {\n throw new IllegalStateException(\"Fragment \" + this\n + \" not attached to Activity\");\n }\n\n List<android.support.v4.app.Fragment> list = getFragmentManager().getFragments();\n if (list == null || list.size() < step) {\n throw new IllegalStateException(\"There is not enough Fragment to finish.\");\n }\n\n for (int i = 0; i < step; i++) {\n activity.onBackPressed();\n }\n }",
"public void goBack(View view) {\n end();\n }",
"@Override\n public void onBackPressed() {\n pageStack.pop();\n //Will go back to Start page if on first page\n if (pageStack.isEmpty()) {\n super.onBackPressed();\n }\n else {\n loadPage(pageStack.pop());\n }\n }",
"private void backPage()\n {\n page--;\n open();\n }",
"private void returnBack()\n {\n getActivity().onBackPressed();\n }",
"public void past(int back);",
"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}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tgame.getController().undoLastMove();\r\n\t}",
"@Override\r\n public void onBackPressed() {\n moveTaskToBack(true);\r\n }",
"public boolean goBack() {\n if (historyStack.size() > 0) {\n switchToScreen(historyStack.pop(), true, lastTransition != null ? lastTransition : TransitionAnimation.getTransition(TransitionAnimationType.RIGHT_TO_LEFT));\n return true;\n }\n return false;\n }",
"public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(RECIPE_STEPS_DETAILS_FRAGMENT_TAG);\n if (fragment instanceof RecipeStepDetailsFragment) {\n int stepIndex = ((RecipeStepDetailsFragment) fragment).getCurrentRecipeIndex();\n setSelectedRecipeStepIndex(stepIndex);\n }\n }",
"void actionBack();",
"public void onBackPressed() {\n moveTaskToBack(true);\n }",
"public void popFrame(){\n runStack.popFrame();\n }",
"@Override\n public boolean onSupportNavigateUp() {\n getSupportFragmentManager().popBackStack();\n return true;\n }",
"@Override\n public void onBackPressed() {\n if (curFragment != PAGE_SHOP_CART) {\n backFragment(preFragment);\n } else {\n this.getParent().onBackPressed();\n }\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}",
"@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n }",
"@Override\n public void onClick(View v) {\n getFragmentManager().popBackStack();\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"@Override\n public void onBackPressed() {\n moveTaskToBack(true);\n }",
"public void back()\n {\n if(!moveRooms.empty()){\n currentRoom = moveRooms.pop();\n look();\n } \n }",
"protected void navigateBack() {\n getActivity().finish();\n ActivityTransition transition = ActivityTransition.BACK;\n getActivity().overridePendingTransition(transition.getEnter(), transition.getExit());\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\r\n\t\t\t\tgetFragmentManager().popBackStack();\r\n\t\t\t}",
"public static void navigateBack() {\n\t\tLOG.info(\"Navigate to back page from current page.\");\n\t\tConstants.driver.navigate().back();\n\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}",
"public BackStepper() {\r\n\t\tengaged = true;\r\n\t\tbackSteps = new BackstepStack(Globals.maximumBacksteps);\r\n\t}",
"@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}",
"@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}",
"@Override\n public void onBackPressed() {\n new goBack().execute(0);\n }",
"@Override\n protected boolean canGoBack() {\n return false;\n }",
"public void navigate_back() throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().navigate().back();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(true);\r\n\t\tsuper.onBackPressed();\r\n\t}",
"public void popToPointer() {\n while (this.size() > undoPointer + 1) {\n super.pop();\n }\n }",
"public void goBack() {\n goBackBtn();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tString log_msg = \"Back pressed...\";\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\tthis.finish();\n\t\t\n\t\tthis.overridePendingTransition(0, 0);\n\t\t\n\t}",
"@Override\n public void onBackPressed() {\n \n BaseFragment contentFragment = getContentFragment();\n if (contentFragment == null) {\n finish();\n return;\n }\n FragmentType contentFragmentType = FragmentType.getFragmentFor(contentFragment.getClass());\n while (true) {\n if (! getSupportFragmentManager().popBackStackImmediate()) {\n finish();\n return;\n }\n \n BaseFragment current = getContentFragment();\n if (current == null) {\n finish();\n return;\n }\n \n FragmentType currentFragmentType = FragmentType.getFragmentFor(current.getClass());\n if (currentFragmentType != contentFragmentType) {\n break;\n }\n }\n \n updateNavigationVisibility();\n }",
"@Override\r\n\tpublic void back() {\nPizzaHut.main(null);\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}",
"private void pushBack() {\n\t\tbufferLocal.insertarEnCabeza(listaTokens.get(listaTokens.size()-1));\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}",
"public Room back()\n {\n\n //Checks if the has player visited a room, excludes the starting room.\n if(!(visits.isEmpty())){\n\n // If the room currently in, is in the stack then remove it.\n if(currentRoom == visits.peek() && visits.size() !=1){\n visits.pop();\n currentRoom = visits.pop(); // Sets the player to move to the previous room.\n }\n else {\n currentRoom = visits.pop();\n }\n setUserLocation(currentRoom); // Sets the location of the player.\n moves++;\n printStatus(); // Displays the \n }\n else {\n System.out.println();\n System.out.println(\"Please choose a different command.\\nYou have travelled back to the start.\");\n }\n System.out.println();\n return currentRoom;\n }",
"@Override\n\tpublic boolean popBackStackTill(String tagName, int flag) {\n\t\tgetSupportFragmentManager();\n\t\tif (flag != 0 && flag != FragmentManager.POP_BACK_STACK_INCLUSIVE) {\n\t\t\tflag = 0;\n\t\t}\n\t\tif (tagName != null && tagName.trim().length() > 0) {\n\t\t\treturn this.getSupportFragmentManager().popBackStackImmediate(\n\t\t\t\t\ttagName, flag);\n\t\t}\n\t\treturn false;\n\n\t}",
"@Override\n public void onBackPressed() {\n if(inRestaurantMenu||inDropDetail||inOtherFragment||inPastOrder||inProcessOrder) {\n FragmentManager fm = getSupportFragmentManager();\n for(int i = 0; i < fm.getBackStackEntryCount(); ++i) {\n fm.popBackStack();\n }\n loadHomeFragment();\n }\n else if(inPickDetail||inCompleteDetail) {\n getSupportFragmentManager().popBackStack();\n }else {\n super.onBackPressed();\n }\n\n }",
"default public void clickBack() {\n\t\tclickMenu();\n\t}",
"public /* synthetic */ void m107502a(View view) {\n popBack();\n }",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"public void onBackPressed() {\n\t\tLog.d(USER_TAG, \"onBackPressed\");\n\t\tmoveTaskToBack(true);\n\t}",
"public int moveStepDown(final int index) {\r\n\t\tif ( index >= ( numberOfSteps() - 1 ) ) {\r\n\t\t\treturn index;\t\r\n\t\t}\r\n\t\tfinal int newIndex = index + 1;\r\n\t\tCollections.swap( getSteps(), index, newIndex );\r\n\t\treturn newIndex;\r\n\t}",
"int goBackSlide(){\n if (this.currentSlide>slides.size()){\n this.currentSlide--;\n }\n return this.currentSlide;\n }",
"public String back(int steps) {\n while (steps != 0 && current.previous != null) {\n steps--;\n current = current.previous;\n }\n return current.url;\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tgetSupportFragmentManager().popBackStack(\"Homefrag\",\n\t\t\t\tFragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n\t}",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }"
]
| [
"0.76476836",
"0.7248937",
"0.7204492",
"0.716078",
"0.71527934",
"0.7093841",
"0.69705933",
"0.6959153",
"0.6956713",
"0.6936603",
"0.6876618",
"0.6862536",
"0.68574107",
"0.6849431",
"0.6782601",
"0.67582434",
"0.6738275",
"0.670984",
"0.67084706",
"0.66893303",
"0.6689206",
"0.6681346",
"0.65966153",
"0.65350294",
"0.65271986",
"0.6526472",
"0.6506306",
"0.6489803",
"0.6466995",
"0.6456517",
"0.6436348",
"0.64340854",
"0.64319694",
"0.6402636",
"0.63985914",
"0.6397705",
"0.63860744",
"0.6385666",
"0.6381802",
"0.63701546",
"0.63688177",
"0.636849",
"0.6367661",
"0.6366225",
"0.6362793",
"0.634635",
"0.6345803",
"0.63434356",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.6342959",
"0.63363755",
"0.6324777",
"0.6321131",
"0.6320937",
"0.6297989",
"0.62730503",
"0.6263083",
"0.6260283",
"0.62577474",
"0.6249076",
"0.6241265",
"0.6227081",
"0.6202122",
"0.61970794",
"0.6181761",
"0.6174421",
"0.6171083",
"0.61623675",
"0.6152063",
"0.61261123",
"0.61199546",
"0.6118461",
"0.61030287",
"0.6102928",
"0.60867643",
"0.6071098",
"0.6050101",
"0.60498387",
"0.60498387",
"0.60483825",
"0.60483027",
"0.6046215",
"0.6045135",
"0.60382044",
"0.6029754",
"0.6029754",
"0.6029754",
"0.6029754"
]
| 0.0 | -1 |
Pop back stack till tag name. if flag is POP_BACK_STACK_INCLUSIVE pop the fragment including the fragment with tagName. else pop just before the fragment with tag tagName. | @Override
public boolean popBackStackTill(String tagName, int flag) {
getSupportFragmentManager();
if (flag != 0 && flag != FragmentManager.POP_BACK_STACK_INCLUSIVE) {
flag = 0;
}
if (tagName != null && tagName.trim().length() > 0) {
return this.getSupportFragmentManager().popBackStackImmediate(
tagName, flag);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pop() {\r\n pop( false );\r\n }",
"void pop()\n\t\t{\n\t\t\tsp--;\n\t\t\tfor(int i = 0; i < sp; i++)\n\t\t\t\tXMLStream.print(\" \");\n\t\t\tif(sp < 0)\n\t\t\t\tDebug.e(\"RFO: XMLOut stack underflow.\");\n\t\t\tXMLStream.println(\"</\" + stack[sp] + \">\");\n\t\t}",
"public void pop() {\n if(!empty()){\n \tstack.pop();\n }\n }",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"public void pop() {\n\t\tif(stackTmp.isEmpty()){\n\t\t\twhile(!stack.isEmpty()){\n\t\t\t\tint tmp = stack.peek();\n\t\t\t\tstackTmp.push(tmp);\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tstackTmp.pop();\n\t\t}\n\t}",
"public void popFrame(){\n runStack.popFrame();\n }",
"public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}",
"public void pop();",
"public void pop()\n {\n\tsetIndentLevel(indentLevel - 1);\n }",
"public void pop() {\r\n readyForPop();\r\n outStack.pop();\r\n }",
"public void pop() {\n // if the element happen to be minimal, pop it from minStack\n if (stack.peek().equals(minStack.peek())){\n \tminStack.pop();\n }\n stack.pop();\n\n }",
"public void pop() {\n\t\tif (top == -1) {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t} else {\n\t\t\tSystem.out.println(stacks[top] + \" is popped\");\n\t\t\ttop--;\n\t\t}\n\t\tsize--;\n\t}",
"public void popScope() {\n this.stack.removeFirst();\n }",
"public void popFragment(boolean animate) {\n popFragment(animate, 1);\n }",
"public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }",
"@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}",
"@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}",
"public void pop() {\n while(!stack.isEmpty()) container.push(stack.pop());\n container.pop();\n while(!container.isEmpty()) stack.push(container.pop());\n }",
"public boolean stackPop() {\r\n\t\t if(stackEmpty())\r\n\t\t {\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t if(top == 0)\r\n\t\t {\r\n\t\t \ttop = -1;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tarray[top] = array[top-1];\r\n\t\t \ttop--;\r\n\t\t \tcount--;\r\n\t\t }\r\n\t\t\t return true;\r\n\t\t } \t\r\n\t }",
"public AscriptionVisitor pop() {\n return outer;\n }",
"public void pop() {\n s.pop();\n }",
"public boolean onPopBackStack() {\n\t\treturn false;\n\t}",
"public AnyType pop() throws StackException;",
"public TokenStatement pop() {\r\n\t\tif (this.size == 0) {\r\n\t\t\tthrow new EmptyStackException();\r\n\t\t}\r\n\t\tfinal TokenStatement obj = this.elementData[this.size - 1];\r\n\t\tthis.elementData[--this.size] = null;\r\n\t\treturn obj;\r\n\t}",
"@Override\n\tpublic boolean popBackStack() {\n\t\treturn this.getSupportFragmentManager().popBackStackImmediate();\n\t}",
"@Override\n public void onBackPressed(){\n\n int count = prevFragments.size();\n if(drawerLayout.isDrawerOpen(drawerListLeft)){\n\n drawerLayout.closeDrawer(drawerListLeft);\n\n } else if(drawerLayout.isDrawerOpen(drawerListRight)){\n\n drawerLayout.closeDrawer(drawerListRight);\n\n }else if (count > 1) {\n //super.onBackPressed();\n //additional code\n int last = fragmentsVisitedName.size() - 2;\n prevFragments.pop();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Fragment fragment = prevFragments.peek();\n getSupportActionBar().setTitle(fragmentsVisitedName.get(last));\n fragmentTransaction.replace(R.id.container, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n //fragment.onResume();\n\n\n fragmentsVisitedName.remove(last + 1);\n\n }\n }",
"private Fragment getLatestFragmentFromBackStack() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n if (entryCount > 0) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(entryCount - 1);\n return mFragmentManager.findFragmentByTag(entry.getName());\n } else {\n return null;\n }\n }",
"public void pop() throws StackUnderflowException;",
"public ParsedToken pop(){\n if(!empty()){\n return this.parsedTokenStack[top--];\n }else{\n return null;\n }\n }",
"public String pop(){\n //base case for empty stack\n if(N==0)return null;\n\n String str = stackArray[--N];\n stackArray[N]=null;\n\n //resize the array\n if(N==stackArray.length/4 && N>0) resizeArray(stackArray.length/2);\n\n return str;\n }",
"public String pop() {\n String temp = stack[--N];\n stack[N] = null;\n if (N > 0 && N == stack.length / 4) resize(stack.length / 2);\n return temp;\n }",
"public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}",
"public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }",
"public String pop() {\n String removed = NOTHING;\n // Is there anything in the stack to remove?\n if (usage > 0) {\n // Obtain the topmost value from the stack\n removed = this.foundation[this.foundation.length - this.usage];\n // Clean up the array location\n this.foundation[this.foundation.length - this.usage] = null;\n // Decrease usage counter\n usage--;\n }\n return removed;\n }",
"@Override\n public void onClick(View view) {\n\n FragmentManager fm = getActivity().getSupportFragmentManager();\n if(fm.getBackStackEntryCount()>0){\n fm.popBackStack();\n }else{\n Toast.makeText(getActivity().getApplicationContext(),\"Nothing to POP\",Toast.LENGTH_LONG).show();\n }\n\n\n }",
"public void popFragments(boolean animation) {\n try {\n Fragment fragment;\n fragment = mStacks.get(mCurrentTab).elementAt(mStacks.get(mCurrentTab).size() - 2);\n\n\n /*pop current fragment from stack.. */\n mStacks.get(mCurrentTab).pop();\n\n /* We have the target fragment in hand.. Just show it.. Show a standard navigation animation*/\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction ft = manager.beginTransaction();\n\n\n if (animation) {\n if (StaticFunction.INSTANCE.getLanguage(MainActivity.this) == 15) {\n ft.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left);\n } else {\n ft.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_right);\n }\n }\n ft.replace(R.id.flContainer, fragment);\n\n if (fragment.isVisible())\n fragment.onResume();\n\n ft.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void pop() {\n peek();\n s2.pop();\n }",
"public E pop(){\n return this.stack.remove(stack.size()-1);\n }",
"public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}",
"@Override\n public void onClick(View view) {\n FragmentManager fm = getActivity().getSupportFragmentManager();\n if(fm.getBackStackEntryCount()>0){\n fm.popBackStack();\n }else{\n Toast.makeText(getActivity().getApplicationContext(),\"Nothing to POP\",Toast.LENGTH_LONG).show();\n }\n\n }",
"public TYPE pop();",
"public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }",
"public IClause uncheckedPopBack() {\n \t\tassert back!=front : \"Deque is empty\";\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }",
"public void popParent();",
"E pop() throws EmptyStackException;",
"private void backPressHandling() {\r\n FragmentManager manager = getSupportFragmentManager();\r\n if (manager.getBackStackEntryCount() <= 1) {\r\n finish();\r\n } else {\r\n manager.popBackStack();\r\n }\r\n }",
"public void pop() {\n\t\tif(size == 1) {\r\n\t\t\tfirst = null;\r\n\t\t\tlast = null;\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\telse if(size > 1) {\r\n\t\t\tlast = last.getPrev();\r\n\t\t\tlast.setNext(null);\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Nothing to pop.\");\r\n\t}",
"@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}",
"public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }",
"public ValueWrapper pop(String keyName) {\n\t\tif(isEmpty(keyName)) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tvar value = multistack.get(keyName);\n\t\tif(value.next != null) {\n\t\t\tmultistack.put(keyName, value.next);\n\t\t}\n\t\telse {\n\t\t\tmultistack.remove(keyName);\n\t\t}\n\t\treturn value.value;\n\t}",
"public int pop() {\n //出栈为空,将进栈导入\n if (outSt.isEmpty()){\n while (!inSt.isEmpty()){\n outSt.push(inSt.pop());\n }\n }\n\n //弹出\n return outSt.pop();\n }",
"@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}",
"@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }",
"public boolean onPopBackStack() {\n return false;\n }",
"public String pop();",
"public Object pop() {\n return fStack.pop();\n }",
"public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }",
"abstract void pop();",
"public int popFrame() {\n int result = runStack.remove(runStack.size()-1);\n int top = framePointers.pop();\n while(runStack.size() > top) {\n runStack.remove(runStack.size()-1);\n }\n runStack.add(result);\n return result;\n }",
"@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }",
"public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }",
"public T pop(){ \r\n \t--this.size;\r\n \treturn stack1.pop();\r\n }",
"@Override\r\n\tpublic void pop() {\n\t\tSystem.out.println(\"Pop logic for Fixed Stack\");\r\n\t}",
"public IClause popBack() {\n if (back==front)\n throw new BufferUnderflowException();\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }",
"public void pop()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n stack.remove(top - 1);\n top--;\n }\n }",
"public void pop() {\n System.out.print(stack1.pop());\n }",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\n\n\t\tif ((keyCode == KeyEvent.KEYCODE_BACK)) {\n\t\t\t\n\t\t\tint backStackEntryCount = PlayupLiveApplication.getFragmentManager().getBackStackEntryCount();\n\n\t\t\tif ( backStackEntryCount <= 1 ) {\n\t\t\t\tfinish();\n\t\t\t\tConstants.isCurrent = false;\n\t\t\t\treturn true;\n\t\t\t} else {\n\n\t\t\t\tif ( backStackEntryCount == 2 ) {\n\t\t\t\t\tif ( PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( 0 ).getName().equalsIgnoreCase( \"TopBarFragment\") || \n\t\t\t\t\t\t\tPlayupLiveApplication.getFragmentManager().getBackStackEntryAt( 1 ).getName().equalsIgnoreCase( \"TopBarFragment\") ) {\n\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tConstants.isCurrent = false;\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tString topFragmentName = PlayupLiveApplication.getFragmentManagerUtil().getTopFragmentName();\n\n\t\t\t\t\n\t\t\t\tString[] fragmentName = topFragmentName.split(\"%\", 2);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(fragmentName != null && fragmentName.length > 0)\n\t\t\t\t\ttopFragmentName = fragmentName[0];\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tif (topFragmentName != null\n\n\t\t\t\t\t\t&& ( topFragmentName.equalsIgnoreCase(\"LeagueSelectionFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"MatchHomeFragment\"))\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"LiveSportsFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"MatchRoomFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"InviteFriendFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PrivateLobbyInviteFriendFragment\")\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PlayupFriendsFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"DirectConversationFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"DirectMessageFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"WebViewFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"LeagueLobbyFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"AllSportsFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PostMessageFragment\")) {\n\n\n\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.obj = \"handleBackButton\";\n\n\t\t\t\t\tPlayupLiveApplication.callUpdateOnFragments(msg);\n\n\t\t\t\t\ttopFragmentName = null;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (topFragmentName != null\n\t\t\t\t\t\t&& topFragmentName.equalsIgnoreCase(\"FriendsFragment\")) {\n\n\t\t\t\t\tint backStackCount = PlayupLiveApplication.getFragmentManager().getBackStackEntryCount();\n\t\t\t\t\tBackStackEntry entry = null;\n\t\t\t\t\tBackStackEntry entry2 = null;\n\t\t\t\t\tif ( backStackCount - 2 > -1 ) {\n\t\t\t\t\t\tentry = PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( backStackCount - 2 );\n\t\t\t\t\t}\n\t\t\t\t\tif ( entry != null && entry.getName().contains( \"PlayupFriendsFragment\" ) ) {\n\t\t\t\t\t\tentry = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( backStackCount - 3 > -1 ) {\n\t\t\t\t\t\t\tentry2 = PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( backStackCount - 3 );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( entry2 != null && entry2.getName().contains( \"DirectConversationFragment\" ) ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPlayupLiveApplication.getFragmentManagerUtil().popBackStackTill( entry2.getName() );\n\t\t\t\t\t\t\tentry2 = null;\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} else {\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.obj = \"handleBackButton\";\n\n\t\t\t\t\t\tPlayupLiveApplication.callUpdateOnFragments(msg);\n\n\t\t\t\t\t\ttopFragmentName = null;\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn super.onKeyDown(keyCode, event);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\treturn super.onKeyDown(keyCode, event);\n\t}",
"public int pop(){\n return runStack.pop();\n }",
"@Override\n\tpublic int pop() {\n\t\treturn 0;\n\t}",
"static void perform_pop(String passed){\n\t\tint type = type_of_pop(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpop_from_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public String pop() throws EmptyStackException {\n\t\t\tif(isEmpty()) {\n\t\t\t\tthrow new EmptyStackException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString result=top.getData();\n\t\t\t\ttop=top.getNext();\n\t\t\t\tlength--;\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}",
"private void hideBackStackFragments() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n for (int i = 0; i < entryCount; i++) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(i);\n Fragment frag = mFragmentManager.findFragmentByTag(entry.getName());\n ft.hide(frag);\n }\n ft.commit();\n }",
"private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }",
"public void navigateAfterPop(String lastRootFragmentName, Fragment dest) {\n //注意,rootFragment 并不在栈中(因为没有添加到回退栈),所以此处的出栈,出的是 root 之上的其他 frgament\n //所以 replace 不好用的话,那这里我就用 remove\n mFragmentManager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n FragmentTransaction t = mFragmentManager.beginTransaction();\n Fragment from = mFragmentManager.findFragmentByTag(lastRootFragmentName);\n if (from != null) {\n t.remove(from);\n }\n t.add(mFragmentContainerResId, dest, dest.getClass().getSimpleName());\n t.commit();\n }",
"public void popToPointer() {\n while (this.size() > undoPointer + 1) {\n super.pop();\n }\n }",
"@Override\n\tpublic E pop() {\n\t\treturn null;\n\t}",
"public Object pop() {\n return stack.pop();\n }",
"public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}",
"@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic E pop() {\n\t\treturn null;\r\n\t}",
"public void pop() {\n \tint size = s.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts2.push(s.pop());\n \t}\n s2.pop();\n }",
"public Object pop();",
"public String pop()\n\t{\n\t\tString s;\n\t\tif(isEmpty())\n\t\t\tthrow new EmptyStackException(\"The stack is empty\");\n\t\ts = top.getData();\n\t\ttop = top.getLink();\n\t\treturn s;\n\t}",
"public void pop() {\n if (top==-1) {\n System.out.println(\"Stack is empty\");\n return;\n\n\n } else {\n System.out.println(\"item popde is:-\"+ stack[top]);\n top--;\n }\n }",
"public T popViewState() {\n if (backstack.empty()) {\n return null;\n }\n\n backstack.pop();\n\n if (backstack.empty()) {\n return null;\n } else {\n return getCurrentViewState();\n }\n }",
"public int pop() { return 0; }",
"T pop() {\n if (stackSize == 0) {\n throw new EmptyStackException();\n }\n return stackArray[--stackSize];\n }",
"@Override\n public T pop(){\n\n if (arrayAsList.isEmpty()){\n throw new IllegalStateException(\"Stack is empty. Nothing to pop!\");\n }\n\n T tempElement = arrayAsList.get(stackPointer - 1);\n arrayAsList.remove(--stackPointer);\n\n return tempElement;\n }",
"@Override\n public void onBackPressed() {\n \n BaseFragment contentFragment = getContentFragment();\n if (contentFragment == null) {\n finish();\n return;\n }\n FragmentType contentFragmentType = FragmentType.getFragmentFor(contentFragment.getClass());\n while (true) {\n if (! getSupportFragmentManager().popBackStackImmediate()) {\n finish();\n return;\n }\n \n BaseFragment current = getContentFragment();\n if (current == null) {\n finish();\n return;\n }\n \n FragmentType currentFragmentType = FragmentType.getFragmentFor(current.getClass());\n if (currentFragmentType != contentFragmentType) {\n break;\n }\n }\n \n updateNavigationVisibility();\n }",
"public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }",
"Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public int pop() { //第二个栈为空 , 就将第一个栈的数据往第二个里面加\n if(empty()){\n throw new UnsupportedOperationException(\"栈为空\");\n }\n if(temp2.empty()){\n while(!temp1.empty()){\n temp2.push(temp1.pop());\n }\n }\n return temp2.pop(); //不管是否为空,直接pop第二个栈\n }",
"private RFCMessageStructure popPartsStack (RFCMessageStructure curPart, long dataEndOffset) throws UnsupportedEncodingException\n {\n if ((null == _topParts) || _topParts.isEmpty())\n return null;\n\n final RFCMessageStructure parent=_topParts.pop();\n if (null == parent)\n return null;\n\n parent.addSubPart(curPart, true);\n parent.setDataEndOffset(dataEndOffset);\n if (!parent.isRootPart())\n {\n // the MIME boundary to look for is of the parent's parent - except for the root\n final RFCMessageStructure mimeParent=_topParts.peek();\n if (null == mimeParent)\n return null;\n _mmDelimiter.setBoundary(mimeParent.getMIMEBoundary());\n }\n else\n _mmDelimiter.setBoundary(parent.getMIMEBoundary());\n\n return parent;\n }",
"public IClause uncheckedPopFront() {\n assert back!=front : \"Deque is empty\";\n\n front++;\n if (front >= tab.length)\n front = 0;\n return tab[front];\n }",
"public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }",
"public T pop() {\n StackNode tempNode = peekNode();\n\n if(length > 1) {\n lastNode = peekNode().getParent();\n tempNode.setParent(null);\n length--;\n return (T) tempNode.getTData();\n }\n else if(length == 1) {\n lastNode = new StackNode();\n length--;\n return (T) tempNode.getTData();\n }\n else {\n throw new IndexOutOfBoundsException(\"Your stack is empty!\");\n }\n }",
"private synchronized BackStep peek() {\r\n\t\t\treturn stack[top];\r\n\t\t}",
"void pop() {\n // -\n top = top.getNextNode();\n }",
"public void discard() {\r\n\t\tif(this.markedStack.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.markedStack.removeLast();\r\n\t}",
"public void pop()\n {\n this.top = this.top.getNext();\n }"
]
| [
"0.6342964",
"0.6136371",
"0.6126563",
"0.6070888",
"0.6031327",
"0.6016433",
"0.59601146",
"0.5916782",
"0.58993715",
"0.5848218",
"0.5840405",
"0.5783784",
"0.5755844",
"0.5755212",
"0.573268",
"0.57118064",
"0.5711277",
"0.5710644",
"0.56954443",
"0.56633973",
"0.56511015",
"0.5629887",
"0.5623862",
"0.5622359",
"0.56202525",
"0.5614111",
"0.56131387",
"0.56062335",
"0.5574948",
"0.5568263",
"0.55679035",
"0.5563273",
"0.55546606",
"0.5552498",
"0.5550033",
"0.5547182",
"0.55452496",
"0.5543351",
"0.55396724",
"0.5527119",
"0.5518583",
"0.5514992",
"0.5504159",
"0.54975617",
"0.5491144",
"0.5485524",
"0.54850614",
"0.54734874",
"0.54705876",
"0.54612756",
"0.5452196",
"0.54490733",
"0.5446323",
"0.54352355",
"0.54327494",
"0.5428421",
"0.54226303",
"0.5421562",
"0.5403643",
"0.538222",
"0.53807545",
"0.5380636",
"0.537103",
"0.536922",
"0.5366805",
"0.53655905",
"0.53628814",
"0.5360977",
"0.5359919",
"0.5358366",
"0.53498477",
"0.5348128",
"0.53463954",
"0.5344479",
"0.53380364",
"0.53354293",
"0.53318614",
"0.53224087",
"0.53194875",
"0.530894",
"0.530589",
"0.53029084",
"0.52990675",
"0.52978516",
"0.5292239",
"0.52843046",
"0.5284023",
"0.5279019",
"0.5278118",
"0.52705073",
"0.52697355",
"0.5265462",
"0.525097",
"0.52477",
"0.52465475",
"0.5241058",
"0.52395725",
"0.52316415",
"0.52308935",
"0.5228187"
]
| 0.7820478 | 0 |
Prints a table displaying specified columns, and checks the expected number of rows. | private void printTable(String table, String cols, String where,
int expected) throws SQLException {
int rows = 0;
ResultSet rs = stmt.executeQuery("SELECT " + cols + " FROM " + table + " " + where);
ResultSetMetaData rsmd = rs.getMetaData();
String result = "Table " + table + ", expecting " + expected
+ " rows total:\n";
while (rs.next()) {
for (int i = 0; i < rsmd.getColumnCount(); i++) {
result += rsmd.getColumnLabel(i + 1) + ":"
+ rs.getString(i + 1) + ":";
}
result += "\n";
rows++;
}
rs.close();
System.out.println(result);
assertEquals(expected, rows);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayTimesTable() {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n System.out.println(table + \" times table:\");\n for (int i=1; i <= TABLE_MAX; ++i) {\n System.out.printf(\"%2d X %2d = %3d\\n\",\n i, table, timesTables[table][i]);\n } // close for\n }\n else\n System.out.println(table + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n }",
"private void printTable(String[][] table) {\n // Find out what the maximum number of columns is in any row\n int maxColumns = 0;\n for (String[] element : table) {\n maxColumns = Math.max(element.length, maxColumns);\n }\n\n // Find the maximum length of a string in each column\n int[] lengths = new int[maxColumns];\n for (String[] element : table) {\n for (int j = 0; j < element.length; j++) {\n lengths[j] = Math.max(element[j].length(), lengths[j]);\n }\n }\n\n // Generate a format string for each column\n String[] formats = new String[lengths.length];\n for (int i = 0; i < lengths.length; i++) {\n formats[i] = \"%1$\" + lengths[i] + \"s\"\n + ((i + 1) == lengths.length ? \"\\n\" : \" \");\n }\n\n // Print 'em out\n StringBuilder sb = new StringBuilder();\n for (String[] element : table) {\n for (int j = 0; j < element.length; j++) {\n sb.append(String.format(formats[j], element[j]));\n }\n }\n this.guiCore.getConsoleController().appendToDisplay(sb.toString());\n }",
"public void printTable() {\r\n \tif (table.size() == 0)\r\n Logger.error(\"Table \" + table.getType() + \" is empty!\");\r\n else {\r\n table.forEachRow(new EachRowListenerPrint());\r\n }\r\n }",
"public void print(){\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tSystem.out.print(table[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void printTable() {\n System.out.print(\"\\033[H\\033[2J\"); // Clear the text in console\n System.out.println(getCell(0, 0) + \"|\" + getCell(0, 1) + \"|\" + getCell(0, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(1, 0) + \"|\" + getCell(1, 1) + \"|\" + getCell(1, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(2, 0) + \"|\" + getCell(2, 1) + \"|\" + getCell(2, 2));\n }",
"public String print() {\n StringBuilder sb = new StringBuilder();\n sb.append(tableName).append(System.lineSeparator());\n\n if (columnsDefinedOrder.size() <= 0) {\n columnsDefinedOrder = rows.stream()\n .findFirst()\n .map(x -> new ArrayList<>(x.keySet()))\n .orElse(columnsDefinedOrder);\n }\n\n Map<String, Integer> widthEachColumn = new HashMap<>();\n for (String columnName : columnsDefinedOrder) {\n widthEachColumn.put(columnName, 0);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n int length = row.get(columnName).length();\n if (length > widthEachColumn.get(columnName)) {\n widthEachColumn.put(columnName, length);\n }\n }\n }\n\n for (String columnName : columnsDefinedOrder) {\n int width = widthEachColumn.get(columnName) + 5;\n widthEachColumn.put(columnName, width);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", row.get(columnName)));\n }\n sb.append(System.lineSeparator());\n }\n\n return sb.toString();\n }",
"public void displayTimesTable(int table) {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n System.out.println(table + \" times table:\");\n for (int i=1; i<=TABLE_MAX; ++i) {\n System.out.printf(\"%2d X %2d = %3d\\n\",\n i, table, timesTables[table][i]);\n } // close for\n } else\n System.out.println(table + \" is not between 1 and 12\");\n }",
"private void printTable() {\n System.out.println(\"COMPLETED SLR PARSE TABLE\");\n System.out.println(\"_________________________\");\n System.out.print(\"\\t|\");\n // print header\n for(int i = 0; i < pHeader.size(); i++) {\n pHeader.get(i);\n System.out.print(\"\\t\" + i + \"\\t|\");\n }\n System.out.println();\n // print body\n for(int i = 0; i < parseTable.size(); i++) {\n System.out.print(i + \"\\t|\");\n for(int j = 0; j < parseTable.get(i).size(); j++) {\n System.out.print(\"\\t\" + parseTable.get(i).get(j) + \"\\t|\");\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"END OF SLR PARSE TABLE\");\n System.out.println();\n }",
"public static void printTimesTable(int tableSize) {\n System.out.format(\" \");\n for(int i = 1; i<=tableSize;i++ ) {\n System.out.format(\"%4d\",i);\n }\n System.out.println();\n System.out.println(\"--------------------------------------------------------\");\n\n for (int row = 1; row<=tableSize; row++){\n \n System.out.format(\"%4d\",row);\n System.out.print(\" |\");\n \n for (int column = 1; column<=tableSize; column++){\n System.out.format(\"%4d\",column*row);\n }\n System.out.print(\"\\n\");\n }\n\n }",
"public void printTable() {\r\n System.out.println(frame+\") \");\r\n for (int y = 0; y < table.length; y++) {\r\n System.out.println(Arrays.toString(table[y]));\r\n }\r\n frame++;\r\n }",
"public void show() {\n if(heading.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in heading, nothing to show\");\r\n return;\r\n }\r\n if(rows.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in rows, nothing to show\");\r\n return;\r\n }\r\n for(String h : heading) {\r\n System.out.print(h + \" | \");\r\n }\r\n System.out.println(\"\");\r\n Set<String> keys = rows.keySet();\r\n for(String k : keys) {\r\n rows.get(k).show();\r\n System.out.println(\"\");\r\n }\r\n System.out.println(\"\");\r\n }",
"@SafeVarargs\n public static void appendTable(PrintStream out, Col... cols) {\n try {\n appendTable((Appendable) out, cols);\n } catch (IOException ex) {\n Throwables.propagate(ex);\n }\n }",
"public static void printAndValidate(Object[] headers, Collection<?> rows) throws IOException {\n\n\t\tif (headers != null) {\n\t\t\tSystem.out.println(Arrays.toString(headers));\n\t\t\tSystem.out.println(\"=======================\");\n\t\t}\n\n\t\tint rowCount = 1;\n\t\tBufferedWriter bw=null;\n//\t\tFileWriter fw=null;\n\t\tboolean append=false;\n\t\tFile outfile=new File(\"D:/javatest/PCSV/bin/out001.txt\");\n\t\t//按默认编码写出\n//\t\tfw = new FileWriter(outfile,append);\n//\t\tbw = new BufferedWriter(fw,50000);\n\t\tFileOutputStream fw=null;\n\t\tfw = new FileOutputStream(outfile,append);\n\t\t//按指定编码写出\n\t\tbw = new BufferedWriter(new OutputStreamWriter(fw, \"GBk\"),50000);\n\t\tfor (Object row : rows) {\n\t\t\tSystem.out.println((rowCount++) + \" \" + Arrays.toString((Object[]) row));\t\n\t\t\t//打印第9列\n//\t\t\tString[] srow=(String[])row;\n//\t\t\tSystem.out.println((rowCount++) + \" \" + srow[8]);\n\t\t\tbw.write(Arrays.toString((Object[]) row)+\"\\r\\n\");\n\t\t\tbw.flush();\t\t\t\n\t\t\tSystem.out.println(\"-----------------------\");\n\t\t}\n\t\tbw.close();\n\n\t}",
"public static void appendTable(Appendable out, List<? extends Col> cols)\n throws IOException {\n final int tableWidth;\n if (out == System.out || out == System.err) {\n tableWidth = jline.TerminalFactory.get().getWidth();\n } else {\n tableWidth = 120;\n }\n\n int nc = cols.size();\n String[][] table = new String[nc][];\n int columnWidthLimit = nc != 0 ? tableWidth / nc : tableWidth;\n for (int i = 0; i < nc; ++i) {\n Col col = cols.get(i);\n ImmutableList<Visualizable> vizList = ImmutableList.copyOf(col.rows);\n int nr = vizList.size();\n String[] rows = new String[nr + 1];\n rows[0] = col.name;\n table[i] = rows;\n for (int j = 0; j < nr; ++j) {\n String cellText = col.decorator.apply(vizList.get(j));\n if (cellText.length() > columnWidthLimit) {\n cellText = new StringBuilder(columnWidthLimit)\n // TODO: might split code-point\n .append(cellText, 0, columnWidthLimit - 1)\n .append(\"\\u2026\").toString();\n }\n rows[j + 1] = cellText\n // HACK: Pause sign breaks alignment in Eclipse console.\n .replace(\"\\u2759\\u2759\", \"#\");\n }\n }\n // Pad the table if there seems to be a reason to bottom-justify.\n {\n int maxNRows = 0;\n Set<String> lastValues = new HashSet<>();\n for (String[] column : table) {\n int nr = column.length;\n maxNRows = Math.max(maxNRows, nr);\n if (nr != 0) { lastValues.add(column[nr - 1]); }\n }\n // Bottom justify if the number of unique last values is small.\n if (lastValues.size() <= table.length / 2) {\n for (int i = 0; i < table.length; ++i) {\n String[] column = table[i];\n int nr = column.length;\n if (nr == 0 || nr == maxNRows) { continue; }\n String[] justifiedColumn = new String[maxNRows];\n Arrays.fill(justifiedColumn, \"\");\n justifiedColumn[0] = column[0];\n System.arraycopy(\n column, 1, justifiedColumn, maxNRows - (nr - 1), nr - 1);\n table[i] = justifiedColumn;\n }\n }\n }\n appendTable(table, out);\n }",
"public void printTableStatus() {\n\t\tInteger playersLeft = 0;\n\t\tfor (int i = 0; i < tablePlayers.length; i++) {\n\t\t\tif (!tablePlayers[i].hasFolded()) playersLeft++;\n\t\t}\n//\t\tSystem.out.println(\"current bet: \" + currBet);\n//\t\tSystem.out.println(\"players left: \" + playersLeft);\n\t}",
"private static void printTable(Game game) {\r\n\t\tint[][] table = game.getTable();\r\n\t\tint length = table.length;\r\n\t\tSystem.out.println(\"Current table:\");\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\tfor (int j = 0; j < length - 1; j++)\r\n\t\t\t\tSystem.out.print(table[i][j] + \" \\t\");\r\n\t\t\tSystem.out.println(table[i][length - 1]);\r\n\t\t}\r\n\t}",
"public static void appendTable(PrintStream out, List<? extends Col> cols) {\n try {\n appendTable((Appendable) out, cols);\n } catch (IOException ex) {\n Throwables.propagate(ex);\n }\n }",
"private void printTable(String type){\n\t\tSystem.out.println(\"\\n\\t\\t\\t\\t \" + type + \" Probing Analysis (Table size = \" + tableSize + \")\");\n\t\tSystem.out.println(\"\\t\\t ----- Inserts ------ ----------- Probes ---------- --------- Clusters ---------\");\n\t\tSystem.out.printf(\"%5s %10s %10s %10s %10s %10s %10s %10s %10s %10s\\n\", \n\t\t\t\t\"N\", \"lambda\", \"success\", \"failed\", \"total\", \"avg\", \"max\", \"number\", \"avg\", \"max\");\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(tableName).append(System.lineSeparator());\n\n if (columnsDefinedOrder.size() <= 0) {\n columnsDefinedOrder = rows.stream()\n .findFirst()\n .map(x -> new ArrayList<>(x.keySet()))\n .orElse(columnsDefinedOrder);\n }\n\n Map<String, Integer> widthEachColumn = new HashMap<>();\n for (String columnName : columnsDefinedOrder) {\n widthEachColumn.put(columnName, 0);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n int length = row.get(columnName).length();\n if (length > widthEachColumn.get(columnName)) {\n widthEachColumn.put(columnName, length);\n }\n }\n }\n\n int tableWidth = 0;\n for (String columnName : columnsDefinedOrder) {\n int width = widthEachColumn.get(columnName) + 5;\n widthEachColumn.put(columnName, width);\n tableWidth += width;\n }\n\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", columnName));\n }\n sb.append(System.lineSeparator());\n\n for (int i = 0; i < tableWidth; i++) {\n sb.append(\"-\");\n }\n sb.append(System.lineSeparator());\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", row.get(columnName)));\n }\n sb.append(System.lineSeparator());\n }\n\n return sb.toString();\n }",
"private void verifyStatistics()\n throws SQLException {\n IndexStatsUtil stats = new IndexStatsUtil(getConnection(), 5000);\n IdxStats[] myStats = stats.getStatsTable(TAB, 2);\n for (int i=0; i < myStats.length; i++) {\n IdxStats s = myStats[i];\n assertEquals(_100K, s.rows);\n switch (s.lcols) {\n case 1:\n assertEquals(10, s.card);\n break;\n case 2:\n assertEquals(_100K, s.card);\n break;\n default:\n fail(\"unexpected number of leading columns: \" + s.lcols);\n }\n }\n }",
"public static void Tables() {\n Scanner scanner = new Scanner(System.in);\n String userResponse;\n do {\n System.out.print(\"Enter an integer here:\");\n int userInteger = scanner.nextInt();\n System.out.println(\"Here is your table!\\n\" +\n \"number | squared | cubed\\n\" +\n \"------ | ------- | -----\");\n for (int i = 1; i <= userInteger; i++) {\n System.out.printf(\"%-6d | %-7d | %-5d%n\", i, i * i, i * i * i);\n }\n System.out.println(\"\\n\\nWould you like to continue (y/n): \");\n userResponse = scanner.next();\n } while (userResponse.equals(\"y\"));\n }",
"public void printTable(){\n \tfor (int i = 0; i < Table.size(); i++) {\n \t\tList<T> data = Table.get(i);\n \t\ttry {\n \t\t\tSystem.out.println(\"Bucket: \" + i);\n \t\t\tSystem.out.println(data.getFirst());\n \t\t\tSystem.out.println(\"+ \" + (data.getLength() - 1) + \" more at this bucket\\n\\n\");\n \t\t} catch (NoSuchElementException e) {\n \t\t\tSystem.out.println(\"This bucket is empty.\\n\\n\");\n \t\t}\n \t}\n }",
"public void print() {\r\n this.table.printTable();\r\n }",
"@Test\n\tpublic void assertColumnCount()\n\t{\n\t\tint expectedColumnCount = 2;\n\t\tint actualColumnCount = dashboardPage.getHeaderColumns().size();\n\t\terrorMessage = \"The table column count is incorrect\";\n\t\tAssert.assertEquals(actualColumnCount, expectedColumnCount, errorMessage);\n\t}",
"void displayColumnHeaders() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"|col \" + j);\n\t\tSystem.out.println();\n\t}",
"private void verifyReportColumns() {\n for (final String element : REPORT_COLUMNS) {\n Log.altVerify(true, lblReportColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"private void printColSchema() {\n System.out.print(\"Table Name: \");\n String tableName = sc.nextLine();\n ArrayList<String> result = sqlMngr.colSchema(tableName);\n System.out.println(\"\");\n System.out.println(\"------------\");\n System.out.println(\"Total number of fields: \" + result.size() / 2);\n for (int i = 0; i < result.size(); i += 2) {\n System.out.println(\"-\");\n System.out.println(\"Field Name: \" + result.get(i));\n System.out.println(\"Field Type: \" + result.get(i + 1));\n }\n System.out.println(\"------------\");\n System.out.println(\"\");\n }",
"public void print(Table t) {\n\t\t\tCursor current = t.rows();\n\t\t\twhile (current.advance()) {\n\t\t\t\tfor (Iterator columns = current.columns(); columns.hasNext();)\n\t\t\t\t\tSystem.out.print((String) columns.next() + \" \");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}",
"public final void printAndValidate(Map<String, List<String[]>> allRows) {\n\t\tfor (Map.Entry<String, List<String[]>> e : allRows.entrySet()) {\n\t\t\tprintln(\"Rows of '\" + e.getKey() + \"'\\n-----------------------\");\n\t\t\tfor (String[] row : e.getValue()) {\n\t\t\t\tprintln(Arrays.toString(row));\n\t\t\t}\n\t\t}\n\t\t//printAndValidate();\n\t}",
"public void displayTable() {\n System.out.print(\"\\nSpreadsheet Table Details :\\nRows : \" + rowHeaders + \"\\nColumns:\" + colHeaders);\n new SheetParser(tableData).displaySheet();\n }",
"public void displayValidityReport() {\r\n\t\tif (this.tuple == null)\r\n\t\t\treturn;\r\n\t\tsetMessage(\"\");\r\n\t\tint row = this.tableView.getSelectedRow();\r\n\t\tif (row < this.tuple.getNumberOfEntries() && row >= 0)\r\n\t\t\tdisplayValidityReport(row);\r\n\t}",
"public void displaySum(int table, int index) {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n if (index >= TABLE_MIN && index <= TABLE_MAX) {\n System.out.printf(\"%2d X %2d = \",\n index, table, timesTables[table][index]);\n }\n else\n System.out.println(index + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n }\n else\n System.out.println(table + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n }",
"public void verifyDisbursementReportColumns() {\n Log.logBanner(\"Verifying Disbursement Report columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyReportColumns();\n }",
"public static void main(String[] args)\n {\n \n final String HEADER_FORMAT = \"|%8s|%11s|%11s|\\n\";\n \n //Header\n System.out.println(\"\\n|========|===========|===========|\");\n System.out.printf(HEADER_FORMAT, \"\", center(\"Divisible\", 11), center(\"Divisible\", 11));\n System.out.printf(HEADER_FORMAT, center(\"Number\", 8), center(\"by 5\", 11), center(\"by 6\", 11));\n System.out.println(\"|========|===========|===========|\");\n \n //Create table body\n for(int i = 10; i <= 100; i++)\n {\n System.out.printf(\"|%8s|\", center(String.valueOf(i), 8));\n System.out.printf(\"%11s|%11s|\\n\", \n center((i % 5 == 0) ? \"Yes\" : \"No\", 11),\n center((i % 6 == 0) ? \"Yes\" : \"No\", 11));\n if(i < 100)\n System.out.println(\"|--------|-----------|-----------|\");\n else \n System.out.println(\"|========|===========|===========|\");\n }\n }",
"public static String makeTable(List<String> items, int columnLength, int columns) {\n String ret = \"```xl\" + BotConfig.EOL;\n int counter = 0;\n for (String item : items) {\n counter++;\n ret += String.format(\"%-\" + columnLength + \"s\", item);\n if (counter % columns == 0) {\n ret += BotConfig.EOL;\n }\n }\n if (counter % columns != 0) {\n ret += BotConfig.EOL;\n }\n return ret + \"```\" + BotConfig.EOL;\n }",
"static public void printTable(int list[][])\r\n\t{\r\n\t\tfor(int i = 0; i < h; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < w; j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(list[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t}",
"public static void main(String[] args){\n final Object[][] table = new String[6][];\n //each line has 5 items\n table[0] = new String[] { \"Kilograms\", \"Pounds\", \"|\", \"Pounds\", \"Kilograms\" };\n table[1] = new String[] { \"1\", \"2.2 \", \"|\", \"20\", \"9.09\" };\n table[2] = new String[] { \"3\", \"6.6 \", \"|\", \"25\", \"11.36\" };\n table[3] = new String[] { \"...\", \" \", \" \", \" \", \" \" };\n table[4] = new String[] { \"197\", \"433.4 \", \"|\", \"510\", \"231.82\" };\n table[5] = new String[] { \"199\", \"437.8 \", \"|\", \"515\", \"234.09\" };\n \n for (final Object[] row : table) {\n //print out each row with proper spacing\n System.out.format(\"%15s%15s%15s%15s%15s\\n\", row);\n }\n }",
"public static void printTable(StringBuffer out, String[] header,\n\t\t\tList<?> rows, String left, String sep) {\n\t\tint[] colWidths = colWidths(header, rows);\n\n\t\tprintLine(out, colWidths, left, sep);\n\t\tprintHeader(out, header, colWidths, left, sep);\n\t\tprintLine(out, colWidths, left, sep);\n\n\t\tfor (Iterator<?> iter = rows.iterator(); iter.hasNext();) {\n\t\t\tList<?> row = (List<?>) iter.next();\n\t\t\tStringBuffer bf = new StringBuffer(120);\n\n\t\t\tbf.append(left);\n\n\t\t\tfor (int i = 0; i < row.size(); i++) {\n\t\t\t\tString s = (String) row.get(i);\n\n\t\t\t\tbf.append(s);\n\n\t\t\t\tfor (int j = 0; j < colWidths[i] - s.length(); j++)\n\t\t\t\t\tbf.append(' ');\n\n\t\t\t\tbf.append(sep);\n\t\t\t}\n\n\t\t\tout.append(bf + \"\\n\");\n\t\t}\n\n\t\tprintLine(out, colWidths, left, sep);\n\t}",
"private void printCodeTable() {\n System.out.println(\"\\nPrinting the code table:\");\n for(int i = 0; i < codeTable.length; i++) {\n if(codeTable[i] != null) {\n if(i == 10) {\n System.out.println(\"\\\\n \" + codeTable[i]);\n } else {\n System.out.println(((char) i) + \" \" + codeTable[i]);\n }\n }\n }\n }",
"@Test\r\n public void test()\r\n {\r\n Assert.assertEquals(\"<table>\\n\" +\r\n \"<tr>\\n\" +\r\n \"\\t<th></th>\\n\" +\r\n \"\\t<th>Sunny</th>\\n\" +\r\n \"\\t<th>Rainy</th>\\n\" +\r\n \"</tr>\\n\" +\r\n \"<tr>\\n\" +\r\n \"\\t<td>week1</td>\\n\" +\r\n \"\\t<td>5</td>\\n\" +\r\n \"\\t<td>2</td>\\n\" +\r\n \"</tr>\\n\" +\r\n \"<tr>\\n\" +\r\n \"\\t<td>week2</td>\\n\" +\r\n \"\\t<td>3</td>\\n\" +\r\n \"\\t<td>4</td>\\n\" +\r\n \"</tr>\\n\" +\r\n \"</table>\", new HtmlReportPrinter().print(report));\r\n }",
"public static void printTables(ArrayList<Table> tables) {\n writeMessage(\"TABLE,NUM RECORDS\");\n for (Table table : tables) {\n writeMessage(\" \" + table.getSourceFullTableName() + \",\"\n + table.getNumberOfRecords());\n }\n }",
"@Test\n public void testB_TtableInfo() {\n int rowCount = menuTable.getColumns().size();\n assertNotNull(rowCount);\n //Click on row 0\n Node row = lookup(\".table-row-cell\").nth(0).query();\n assertNotNull(\"Row is null: table has not that row. \", row);\n clickOn(row);\n //verifyThat(nodeQuery, nodeMatcher);\n }",
"public int getColumnCount() { return tableWidth;}",
"public void displaySum(int index) {\n if (index >= TABLE_MIN && index <= TABLE_MAX)\n System.out.printf(\"%2d X %2d = \",\n index, table, timesTables[table][index]);\n else\n System.out.println(table + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n }",
"public boolean ut()\n {\n //definir dados\n int lin, col;\n int i, j;\n boolean answer = true;\n \n //obter dimensoes \n lin = lines();\n col = columns();\n \n //verificar se tabela e' valida\n if(table == null)\n {\n System.out.println(\"ERRO: Tabela invalida. \");\n } //end\n else\n {\n //verificar se quantidade e' valida\n if(lin <= 0 || col <= 0)\n {\n System.out.println(\"ERRO: Quantidade invalida. \");\n } //end\n else\n {\n //verificar se e' quadrada\n if( lin == col )\n {\n for(i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n if(i > j)\n {\n answer = answer && (IO.getString(table[i][j]).equals((\"0\")));\n } //end\n } //end repetir\n } //end repetir\n } //end se\n } //end \n } //end se\n //retornar resposta\n return( answer );\n }",
"public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }",
"static void outputComparisonTable(double [][]satisfactionRate) {\n \tSystem.out.print(\"\\t\");\n \tfor (int i = 0; i < satisfactionRate[0].length; i++) {\n\t\t\tSystem.out.print(\"run \" + (i+1) + \"\\t \");\n\t\t}\n \tSystem.out.println();\n \tfor (int i = 0; i < satisfactionRate.length; i++) {\n \t\tSystem.out.print((i+1) + \" vans\\t \");\n\t\t\tfor (int j = 0; j < satisfactionRate[i].length; j++) {\n\t\t\t\tSystem.out.print(((int)satisfactionRate[i][j]) + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n }",
"@Test\r\n\tpublic void testAll() throws Exception {\r\n\t\tTemplateReportTableModel tableModel = new TemplateReportTableModel();\r\n\t\tString[] colNames = tableModel.getColumnNames();\r\n\t\tassertNotNull(colNames);\r\n\t\tassertTrue(colNames.length > 0);\r\n\t\tassertTrue(Arrays.asList(colNames).contains(ClientUtil.getInstance().getLabel(\"label.row\")));\r\n\t}",
"public static void main(String[] args) {\n int modulus = 9;\n for(int a = 0; a < modulus; a++ ) {\n if(a!=modulus-1) {\n tableRow(a, modulus, false);\n } else{\n tableRow(a,modulus,true);\n }\n }\n }",
"public static void printTable() {\n System.out.println(\"\\nMenu:\");\n System.out.println(\"(LR) - List All Recipients\");\n System.out.println(\"(LO) - List All Donors\");\n System.out.println(\"(AO) - Add New Donor\");\n System.out.println(\"(AR) - Add New Recipient\");\n System.out.println(\"(RO) - Remove Donor\");\n System.out.println(\"(RR) - Remove Recipient\");\n System.out.println(\"(SR) - Sort Recipients\");\n System.out.println(\"(SO) - Sort Donors\");\n System.out.println(\"(Q) - Quit\");\n }",
"@Test\n public void testGetColumnCount() {\n System.out.println(\"getColumnCount\");\n int expResult = 2;\n int result = testLibraryLibraryTableModel.getColumnCount();\n assertEquals(expResult, result);\n }",
"public void printTable(){ \r\n System.out.println( \"Auction ID | Bid | Seller | Buyer \"\r\n + \" | Time | Item Info\");\r\n System.out.println(\"===========================================\"\r\n + \"========================================================================\"\r\n + \"========================\");\r\n for(Auction auctions : values()){\r\n System.out.println(auctions.toString());\r\n } \r\n }",
"public void outDisTable()\n\t{\n\t\tfor(int i = 0; i < sqNum; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < sqNum; j++)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%-18s\", \"[\" + i + \",\" + j + \"]:\" + String.format(\" %.8f\", dm[i][j]));\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\t}",
"public void print() {\n if (this.tuples == null || this.tuples.isEmpty()) return; \n\n // Initialize number of attributes.\n int attributesNumber = attributes.size();\n\n // An array storing the max length of Strings per column.\n // The Strings per column are tuple Values and attributes.\n int[] maxColumnLengthOfStrings = new int[attributesNumber];\n\n // Loop all the attributes and fill the max length array\n for (int index = 0; index < attributesNumber; index++) {\n\n // Initialize the array with the attributes name length.\n maxColumnLengthOfStrings[index] = attributes.get(index).getName().length();\n\n // Loop the values and find the longest value toString().\n for (int rowIndex = 0; rowIndex < this.tuples.size(); rowIndex++) { // Loop the rows\n String value = this.tuples.get(rowIndex).getValues().get(index).toString();\n if (value.length() > maxColumnLengthOfStrings[index]){\n maxColumnLengthOfStrings[index] = value.length();\n }\n }\n }\n\n // A set of tables whose columns are in the attributes list.\n Set<SQLTable> tablesSet = new HashSet<>();\n // The list of attributes to String format.\n String attributesList = new String();\n // A line used to separate the attributes from the data.\n String separationLine = new String();\n // Create the separation line and the attributes line.\n for (int index = 0; index < attributesNumber; index++) {\n\n // The score column has a null table. Dont search it.\n if (!this.attributes.get(index).getName().equals(\"score\"))\n tablesSet.add((this.attributes.get(index).getTable()) );\n\n\n attributesList += \"|\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index],\n this.attributes.get(index).getName(), \" \");\n separationLine += \"+\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index], \"\", \"-\");\n }\n attributesList += \"|\"; // Add the last \"|\".\n separationLine += \"+\"; // Add the last \"+\".\n\n // Print the tables which contain this tuples (HACK WAY). \n String tablesInString = new String (\"Tables joined : \");\n for (SQLTable table: tablesSet) {\n tablesInString += table.toAbbreviation() + \" |><| \";\n }\n System.out.println(tablesInString.substring(0, tablesInString.length()-5));\n\n // Print the attributes between separation lines.\n System.out.println(separationLine);\n System.out.println(attributesList);\n System.out.println(separationLine);\n\n // Print all the rows of Tuple Values.\n for (OverloadedTuple tuple: this.tuples) {\n String rowOfValues = new String();\n for (int index = 0; index < attributesNumber; index++) {\n rowOfValues += \"|\" + PrintingUtils.addStringWithLeadingChars( maxColumnLengthOfStrings[index],\n tuple.getValues().get(index).toString(), \" \");\n }\n rowOfValues += \"|\";\n System.out.println(rowOfValues);\n }\n\n // Print a separation line.\n System.out.println(separationLine);\n }",
"public static void main(String[] args) {\n System.out.print(\"\\t\\t\");\r\n for (int i = 0; i <= COLUMN; i++) {\r\n System.out.print(i + \"\\t\");\r\n }\r\n System.out.println();\r\n\r\n // handle printing horizontal border\r\n System.out.print(\"\\t-----\");\r\n for (int i = 0; i <= COLUMN; i++) {\r\n System.out.print(\"----\");\r\n }\r\n System.out.println();\r\n\r\n // handle printing row numbers and vertical border\r\n for (int i = 0; i <= ROW; i++) {\r\n System.out.print(i + \"\\t|\\t\");\r\n // nested loop, creating the multiplication table\r\n for (int j = 0 ; j <= COLUMN; j++) {\r\n System.out.print((i * j) + \"\\t\");\r\n }\r\n System.out.println();\r\n }\r\n }",
"public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}",
"@Test\r\n public void Test006TakeUserInputInValidColumn()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"2 1 2 20 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][1] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"public static void printColumnDetails(ColumnMetadata columns)\n {\n writeMessage(\"**** COLUMN:\");\n writeMessage(\" TABLE_CAT: \" + columns.getTableCat());\n writeMessage(\" TABLE_SCHEM: \"\n + columns.getTableSchema());\n writeMessage(\" TABLE_NAME: \" + columns.getTableName());\n writeMessage(\" COLUMN_NAME: \"\n + columns.getColumnName());\n writeMessage(\" DATA_TYPE: \" + columns.getDataType());\n writeMessage(\" TYPE_NAME: \" + columns.getTypeName());\n writeMessage(\" COLUMN_SIZE: \" + columns.getColumnSize());\n writeMessage(\" BUFFER_LENGTH: \"\n + columns.getBufferLength());\n writeMessage(\" DECIMAL_DIGITS: \"\n + columns.getDecimalDigits());\n writeMessage(\" NUM_PREC_RADIX: \"\n + columns.getNumPrecRadix() );\n writeMessage(\" NULLABLE: \" + columns.getNullable());\n writeMessage(\" REMARKS: \" + columns.getRemarks());\n writeMessage(\" COLUMN_DEF: \" + columns.getColumnDefault());\n writeMessage(\" SQL_DATA_TYPE: \"\n + columns.getSqlDataType());\n writeMessage(\" SQL_DATETIME_SUB: \"\n + columns.getSqlDateTimeSub());\n writeMessage(\" CHAR_OCTET_LENGTH: \"\n + columns.getCharOctetLength());\n writeMessage(\" ORDINAL_POSITION: \"\n + columns.getOrdinalPosition());\n writeMessage(\" IS_NULLABLE: \"\n + columns.getIsNullable());\n /*\n writeMessage(\" SCOPE_CATALOG: \"\n + columns.getString(\"SCOPE_CATALOG\"));\n writeMessage(\" SCOPE_SCHEMA: \"\n + columns.getString(\"SCOPE_SCHEMA\"));\n writeMessage(\" SCOPE_TABLE: \"\n + columns.getString(\"SCOPE_TABLE\"));\n writeMessage(\" SOURCE_DATA_TYPE: \"\n + columns.getString(\"SOURCE_DATA_TYPE\"));\n */\n writeMessage(\" IS_AUTOINCREMENT: \"\n + columns.getIsAutoIncrement());\n }",
"boolean hasCol();",
"public static void print(List<Pawn> pawns) {\r\n\t\tint table = Integer.parseInt(PropertyManager.getProperty(\"table\"));\r\n\t\tCharacter[][] check = new Character[table][table];\r\n\t\tfor (int i = 0; i < table; i++)\r\n\t\t\tfor (int j = 0; j < table; j++)\r\n\t\t\t\tcheck[i][j] = '_';\r\n\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t\tfor (Pawn p : pawns) {\r\n\t\t\tcheck[p.getPosition().getX()][table-1-p.getPosition().getY()] = 'O';\r\n\t\t}\r\n\r\n\t\tfor (int y = 0; y < table; y++) {\r\n\t\t\tfor (int x = 0; x < table; x++)\r\n\t\t\t\tSystem.out.print(check[x][y]);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"=====================================\");\r\n\t}",
"public void displayHuffCodesTable() {\n\t\tStringBuffer toPrint = new StringBuffer();\n\t\t\n\t\tfor (int i = 0; i < this.huffCodeVals.length; i++) {\n\t\t\t\n\t\t\tif (this.huffCodeVals[i] != null) {\n\t\t\t\tif (i == 9) {\n\t\t\t\t\ttoPrint.append(\"\\\\t\");\n\t\t\t\t\t\n\t\t\t\t} else if (i == 10) {\n\t\t\t\t\ttoPrint.append(\"\\\\n\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ttoPrint.append((char) i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttoPrint.append(\":\" + this.huffCodeVals[i] + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(toPrint.toString());\n\t}",
"public String getResultSetToPrint(ResultSetCollector resultSetCollector) {\n this.table.append(System.getProperty(\"line.separator\"));\n if(resultSetCollector != null && resultSetCollector.getRows() != null){\n this.table.append(\"rows : \"+resultSetCollector.getRows().size());\n }\n\n this.table.append(System.getProperty(\"line.separator\"));\n\n int columnCount = resultSetCollector.getColumnCount();\n int maxLength[] = new int[columnCount];\n //칼럼의 최대 길기 구하기\n //칼럼 헤더와 값을 모두 열어서 길이를 확인한다.\n //한글인 경우 2자리로 계산한다.\n List<List<Object>> rows = resultSetCollector.getRows();\n if(rows != null){\n adjustStr(rows);\n for (int column = 1; column <= columnCount; column++) {\n int maxCharCnt = countLength(resultSetCollector.getColumnName(column));\n for(int i = 0; i < rows.size() && i < MAX_ROWS_PRINTABLE;i++){\n List<Object> row = rows.get(i);\n int length = countLength(row.get(column -1).toString());\n// System.out.println(\" row.get(\" +(column -1)+\").toString() :\" +row.get(column -1).toString() +\" / length : \"+length);\n maxCharCnt = Math.max(maxCharCnt, length);\n }\n maxLength[column - 1] = maxCharCnt;\n }\n if (resultSetCollector.getRows() != null) {\n for (List<Object> printRow : resultSetCollector.getRows()) {\n int colIndex = 0;\n for (Object v : printRow) {\n if (v != null) {\n int length = v.toString().length();\n if (length > maxLength[colIndex]) {\n maxLength[colIndex] = length;\n }\n }\n colIndex++;\n }\n }\n }\n for (int column = 1; column <= columnCount; column++) {\n maxLength[column - 1] = maxLength[column - 1] + 1;\n }\n //첫줄 출력 : +----------+-----------+\n this.table.append(\"+\");\n\n for (int column = 1; column <= columnCount; column++) {\n this.table.append(padRight(\"-\", maxLength[column - 1]).replaceAll(\" \", \"-\") + \"+\");\n }\n this.table.append(System.getProperty(\"line.separator\"));\n this.table.append(\"|\");//column 헤더 출력 : |column1 |column2 |\n for (int column = 1; column <= columnCount; column++) {\n this.table.append(padRight(resultSetCollector.getColumnName(column), maxLength[column - 1]) + \"|\");\n }\n this.table.append(System.getProperty(\"line.separator\"));\n this.table.append(\"+\");//column 헤더 아랫줄 출력 : +----------+-----------+\n for (int column = 1; column <= columnCount; column++) {\n this.table.append(padRight(\"-\", maxLength[column - 1]).replaceAll(\" \", \"-\") + \"+\");\n }\n this.table.append(System.getProperty(\"line.separator\"));\n if (resultSetCollector.getRows() != null) {//row 별 데이터 출력\n int cnt = 0;\n for (List<Object> printRow : resultSetCollector.getRows()) {\n int colIndex = 0;\n this.table.append(\"|\");\n for (Object v : printRow) {\n this.table.append(padRight(v == null ? \"(null)\" : v.toString(), maxLength[colIndex]) + \"|\");\n colIndex++;\n }\n this.table.append(System.getProperty(\"line.separator\"));\n if(++cnt >= MAX_ROWS_PRINTABLE) //최대 출력치를 벗어나면 더 이상 출력하지 않는다.\n break;\n }\n }\n this.table.append(\"+\");\n for (int column = 1; column <= columnCount; column++) {\n this.table.append(padRight(\"-\", maxLength[column - 1]).replaceAll(\" \", \"-\") + \"+\");\n }\n }\n\n this.table.append(System.getProperty(\"line.separator\"));\n\n resultSetCollector.reset();\n\n return this.table.toString() ;\n\n }",
"private void printAsTable(String command, String description){\r\n\t\tSystem.out.printf(\"%-30.30s %-60.60s%n\", command, description);\r\n\t}",
"@Test\r\n public void Test007TakeUserInputInValidRowColumn()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"2 1 20 20 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][1] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"@Before\n public void setUp() {\n table = new Table();\n ArrayList<Column> col = new ArrayList<Column>();\n col.add(new NumberColumn(\"numbers\"));\n\n table.add(new Record(col, new Value[] {new NumberValue(11)}));\n table.add(new Record(col, new Value[] {new NumberValue(13)}));\n table.add(new Record(col, new Value[] {new NumberValue(22)}));\n table.add(new Record(col, new Value[] {new NumberValue(28)}));\n table.add(new Record(col, new Value[] {new NumberValue(44)}));\n table.add(new Record(col, new Value[] {new NumberValue(23)}));\n table.add(new Record(col, new Value[] {new NumberValue(46)}));\n table.add(new Record(col, new Value[] {new NumberValue(56)}));\n table.add(new Record(col, new Value[] {new NumberValue(45)}));\n table.add(new Record(col, new Value[] {new NumberValue(45)}));\n table.add(new Record(col, new Value[] {new NullValue()}));\n table.add(new Record(col, new Value[] {new NumberValue(45)}));\n table.add(new Record(col, new Value[] {new NumberValue(34)}));\n table.add(new Record(col, new Value[] {new NumberValue(5)}));\n table.add(new Record(col, new Value[] {new NumberValue(123)}));\n table.add(new Record(col, new Value[] {new NumberValue(48)}));\n table.add(new Record(col, new Value[] {new NumberValue(50)}));\n table.add(new Record(col, new Value[] {new NumberValue(13)}));\n }",
"@Test\r\n\t\t\tpublic void testDosFilasDespuesDeQuinta() {\n\t\t\t\tList<WebElement> tabla= driver.findElement(By.xpath(\"//table[@id='customers']\")).findElements(By.xpath(\".//tr[position() >5]\"));\r\n\t\t\t\tSystem.out.println(tabla.size());\t\r\n\t\t\t\tassertEquals(tabla.size(),2);\r\n\t\t\t}",
"public void assertOnTableElements()\n {\n\t open();\n\t inTable(table).shouldHaveRowElementsWhere(the(\"First name\" , equalTo(\"Frank\")));\n }",
"public void printAll() {\n \tfor (int i = 0; i < Table.size(); i++) {\n \t\tList<T> data = Table.get(i);\n \t\tdata.placeIterator();\n \t\twhile (!data.offEnd()) {\n \t\t\tSystem.out.print(data.getIterator() + \"\\n\");\n \t\t\tdata.advanceIterator();\n \t\t}\n \t\t\n \t}\n }",
"public void printMultiplicationTable() {\n for(int i = 1;i <= 12;i++) {\n for(int j = 1;j <= 12;j++) {\n //prints out the result each time\n //use %4 to create the columns\n System.out.printf(\"%5d\", multiplicationFunction(i, j));\n }\n //uses %n once the inner loop completes once\n System.out.printf(\"%n\");\n }\n }",
"public void display() {\n\t\tdisplayColumnHeaders();\n\t\taddHyphens();\n\t\tfor (int row = 0; row < 3; row++) {\n\t\t\taddSpaces();\n\t\t\tSystem.out.print(\" row \" + row + ' ');\n\t\t\tfor (int col = 0; col < 3; col++)\n\t\t\t\tSystem.out.print(\"| \" + getMark(row, col) + \" \");\n\t\t\tSystem.out.println(\"|\");\n\t\t\taddSpaces();\n\t\t\taddHyphens();\n\t\t}\n\t}",
"public void print() {\r\n\r\n\t\tfor (int row=0; row<10; row++) \r\n\t\t{\r\n\t\t\tfor (int col=0; col<10; col++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"\\t\"+nums[row][col]); //separated by tabs\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public TaskPage checkTypColumn() throws InterruptedException, IOException {\n\n List<WebElement> totalRows = driver.findElements(By.xpath(\"//*[@id='grid']//table//tr[*]/td[9]\"));\n waitUntilListIsLoaded(totalRows);\n\n for (int row = 1; row <= totalRows.size(); row++) {\n // Fetch the text of 'typ' column\n String typ = driver.findElement(By.xpath(\"//*[@id='grid']//table//tr[\"+row+\"]/td[9]\")).getText();\n Assert.assertEquals(typ,\"Bug\");\n System.out.println(\"Row \"+row+\" data is \"+typ);\n }\n\n return this;\n }",
"private void validateRows(List<? extends Row> rows, int line) {\n if (rows.size() == 1) {\n throw new IllegalArgumentException(\"DataTable section in feature \"\n + testedFeature.getFeatureMetadata().getModule()\n + \"/\"\n + testedFeature.getFeatureMetadata().getFilename()\n + \" starting at line \"\n + line\n + \" contains only headers??\");\n }\n }",
"public void verTablero(){\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" 1 2 3 4 5 6 \\n\");\n\t\tfor(int i = 0; i < tablero.length; i++){\n\t\t\t\n\t\t\tfor(int j = 0; j < tablero[1].length; j++){\n\t\t\t\t\n\t\t\t\tif(tablero[i][j] == 0){\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" - \");\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" \" + tablero[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"@Test\n public void test030() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, (String) null);\n TableBlock tableBlock0 = table0.tfoot();\n TableBlock tableBlock1 = tableBlock0.renderHint((CharSequence) null);\n TableBlock tableBlock2 = (TableBlock)tableBlock1.renderHint((CharSequence) null);\n }",
"@Test(timeout = 4000)\n public void test143() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setEnumerateColNames(false);\n resultMatrixHTML0.getDisplayName();\n int int0 = resultMatrixHTML0.getStdDevWidth();\n assertFalse(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(0, int0);\n }",
"public void PrintResult() {\n try {\n res.beforeFirst();\n int columnsNumber = res.getMetaData().getColumnCount();\n while (res.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n Object columnValue = res.getObject(i);\n System.out.print(res.getMetaData().getColumnName(i) + \" \" + columnValue);\n }\n System.out.println();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void printTable() {\n\t\tString s = String.format(\"Routing table (%.3f)\\n\"\n\t\t\t\t+ \"%10s %10s %8s %5s %10s \\t path\\n\", now, \"prefix\", \n\t\t\t\t\"timestamp\", \"cost\",\"link\", \"VLD/INVLD\");\n\t\tfor (Route rte : rteTbl) {\n\t\t\ts += String.format(\"%10s %10.3f %8.3f\",\n\t\t\t\t\trte.pfx.toString(), rte.timestamp, rte.cost);\n\n\t\t\ts += String.format(\" %5d\", rte.outLink);\n\n\t\t\tif (rte.valid == true)\n\t\t\t\ts+= String.format(\" %10s\", \"valid\");\n\t\t\telse\n\t\t\t\ts+= String.format(\" %10s \\t\", \"invalid\");\n\n\t\t\tfor (int r :rte.path)\n\t\t\t\ts += String.format (\" %s\",Util.ip2string(r));\n\n\t\t\tif (lnkVec.get(rte.outLink).helloState == 0)\n\t\t\t\ts += String.format(\"\\t ** disabled link\");\n\t\t\ts += \"\\n\";\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"int getColumnCount();",
"int getColumnCount();",
"private void displayColumn(BoardMap map){\n System.out.print(\" \");\n for (int i = 0 ; i < map.getWidth() ; i++){\n if(i < 10){\n System.out.print(i + \" \");\n\n } else {\n System.out.print(i + \" \");\n }\n }\n System.out.println();\n }",
"public void startTable(ColumnInfo[] colInfo) throws IOException;",
"public static String printSelectCol1() {\n return \"Choose card 1 and write the corresponding col (Only choose Ints between 1 - 5 or 0 to quit) : \";\n }",
"public void printMatriz( )\n {\n //definir dados\n int lin;\n int col;\n int i;\n int j;\n\n //verificar se matriz e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n //obter dimensoes da matriz\n lin = lines();\n col = columns();\n IO.println(\"Matriz com \"+lin+\"x\"+col+\" posicoes.\");\n //pecorrer e mostrar posicoes da matriz\n for(i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n IO.print(\"\\t\"+table[ i ][ j ]);\n } //end repetir\n IO.println( );\n } //end repetir\n } //end se\n }",
"public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }",
"protected void _printTableRow(int index, Vector v) {\n System.out.print(index + \") \");\n for (int i = 0; i < v.size(); ++i) {\n System.out.print(\"\\t\\\"\" + v.elementAt(i) + \"\\\"\");\n }\n System.out.println();\n }",
"public void sanityCheck() {\n\t\tif (DEBUG) {\n\t\t\tint curMaxColumnHeight = 0;\n\t\t\tint [] curWidths = new int [height];\n\t\t\tint [] curHeights = new int [width];\n\n\t\t\tfor(int i = 0; i < width; i++){\n\t\t\t\tfor(int j =0; j < height; j++){\n\t\t\t\t\tif(grid[i][j]){\n\t\t\t\t\t\tcurWidths[j]++;\n\t\t\t\t\t\tif(curHeights[i]<=j){\n\t\t\t\t\t\t\tcurHeights[i] = j + 1;\n\t\t\t\t\t\t\tif(curHeights[i] > curMaxColumnHeight){\n\t\t\t\t\t\t\t\tcurMaxColumnHeight = curHeights[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!Arrays.equals(curWidths,widths)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect width array\");\n\t\t\t}\n\t\t\tif(!Arrays.equals(curHeights,heights)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect height array\");\n\t\t\t}\n\t\t\tif(curMaxColumnHeight != maxColumnHeight){\n\t\t\t\tSystem.out.println(curMaxColumnHeight+ \" \"+maxColumnHeight);\n\t\t\t\tthrow new RuntimeException(\"Incorrect maxColumnHeight\");\n\t\t\t}\n\t\t}\n\t}",
"public static void printTableStatusHeader() {\n\t\tSystem.out.println(\"Table availability status:\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}",
"public static void multTable(int n) {\n int row, col;\n\n for (row = 1; row <= n; row += 1) {\n for (col = 1; col <= n; col += 1) {\n System.out.print(row * col + \" \");\n }\n System.out.println();\n }\n }",
"private static void printRow(int[] row) {\r\n for (int i : row) {\r\n System.out.print(i);\r\n System.out.print(\"\\t\");\r\n }\r\n System.out.println();\r\n }",
"public static String createTable(String[] columns)\r\n\t{\r\n\t\tString table=\"<table>\";\r\n\t\tfor (int i=0;i<columns.length;i++)\r\n\t\t{\r\n\t\t\ttable+=\"<th>\"+columns[i]+\"</th>\";\r\n\t\t}\r\n\t\treturn table;\r\n\t}",
"private static void printLine(StringBuffer out, int[] colWidths,\n\t\t\tString left, String sep) {\n\t\tStringBuffer bf = new StringBuffer(120);\n\t\tint tableLength = left.length();\n\n\t\tfor (int i = 0; i < colWidths.length; i++)\n\t\t\ttableLength += colWidths[i] + sep.length();\n\n\t\t// -1 correction for the last sep of length 3, ' | '\n\t\tfor (int i = 0; i < tableLength - 1; i++)\n\t\t\tbf.append('-');\n\n\t\tout.append(bf + \"\\n\");\n\t}",
"private void boardPrint(){\t\t\n\t\tfor (int i=0;i<size;i++) {\n\t for (int j=0;j<size;j++) {\n\t System.out.print(\" ---- \");\n\t }\n\t System.out.println();\n\t for (int j=0;j<size;j++) {\n\t \tint value = (i*size) + j + 1;\n\t \tif(board[i][j] == '\\u0000'){\n\t \t\tif(value < 10)\n\t \t\t\tSystem.out.print(\"| \"+ value + \" |\");\n\t \t\telse\n\t \t\t\tSystem.out.print(\"| \"+ value + \" |\");\n\t \t}\n\t \telse\n\t \t\tSystem.out.print(\"| \"+ board[i][j] + \" |\");\n\t }\n\t System.out.println();\n\t }\n\n\t for (int i=0;i<size;i++){\n\t \tSystem.out.print(\" ---- \");\n\t }\n\t System.out.println();\n\t}",
"private boolean checkHasColumns( TableMeta tmeta ) {\n boolean hasColumns = tmeta.getColumns().length > 0;\n if ( ! hasColumns ) {\n reporter_.report( ReportType.FAILURE, \"ZCOL\",\n \"No columns known for table \"\n + tmeta.getName() );\n \n }\n return hasColumns;\n }",
"protected void checkColumnCount(int column)\n {\n if (column >= COLUMN_COUNT)\n throw new BasicException\n (\"The column number in the table is not right\");\n }",
"public boolean validateColumns()\n {\n return this.validateColumns(DBAdmin.VALIDATE_DISPLAY_ERRORS | DBAdmin.VALIDATE_DISPLAY_WARNINGS);\n }",
"@Test\n public void whenCreateTableWithSize4ThenTableSize4x4Elements() {\n int[][] table = Matrix.multiple(4);\n int[][] expect = {\n {1, 2, 3, 4},\n {2, 4, 6, 8},\n {3, 6, 9, 12},\n {4, 8, 12, 16}};\n assertArrayEquals(expect, table);\n\n }",
"public void finalDisplay2()\n\t{\n\t\tString s1=null;\n\t\tint sum=0;\n\t\tint j;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tj=rowLabel[i];\t\t\t\n\t\t\tsum+=temp[i][j];\t\n\t\t}\n\t\ts1=\"There are multiple solutions with the cost of \"+sum;\n\t\tJTable t = new JTable();\n testTableMultiple(t,(2*noOfPeople)+2);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}",
"int colCount();",
"private void writeTableContents(BufferedWriter writer, ISuite suite,\r\n\t\t\tResultTable table) throws IOException {\r\n\r\n\t\tMap<String, ResultVo> dataMap = table.getResultData();\r\n\t\tString closer = \"</tbody></table></div>\";\r\n\t\tdataMap.forEach((key, value) -> {\r\n\t\t\tString datagenerator = \"\";\r\n\t\t\tString message = value.getExpectionMessage() != null ? value\r\n\t\t\t\t\t.getExpectionMessage() : \"\";\r\n\t\t\tSystem.out.println(message);\r\n\t\t\tdatagenerator = \"<tr><td>\" + value.getTestCaeId() + \"</td><td>\"\r\n\t\t\t\t\t+ value.getMethodName() + \"</td><td>\" + value.getPrioirty()\r\n\t\t\t\t\t+ \"</td><td>\" + value.getTotalTime() + \"</td>\";\r\n\r\n\t\t\tswitch (value.getResult().toString()) {\r\n\t\t\tcase \"pass\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4CAF50;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"fail\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#EF5350;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ \"<i class='material-icons' style='font-size: 16px;'></i><span>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</span></td>\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"skip\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4FC3F7;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\twriter.write(datagenerator);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t});\r\n\t\twriter.write(closer);\r\n\t}"
]
| [
"0.64996284",
"0.6494324",
"0.6449089",
"0.63772136",
"0.6291327",
"0.61225176",
"0.607195",
"0.6002153",
"0.60019875",
"0.596566",
"0.5872912",
"0.5872832",
"0.58564734",
"0.58491874",
"0.58114016",
"0.5791349",
"0.57701665",
"0.5743562",
"0.5737722",
"0.57215667",
"0.57144934",
"0.5703305",
"0.5672011",
"0.5663271",
"0.5661985",
"0.56614184",
"0.5654487",
"0.56536835",
"0.5636496",
"0.5629836",
"0.5577231",
"0.5560176",
"0.5557379",
"0.5551053",
"0.5534243",
"0.54979086",
"0.5479251",
"0.54676116",
"0.54475844",
"0.54377866",
"0.54232615",
"0.540971",
"0.5400025",
"0.53704727",
"0.53686374",
"0.5367756",
"0.53659683",
"0.53623134",
"0.53563344",
"0.53540874",
"0.5353018",
"0.5333486",
"0.5319944",
"0.530845",
"0.5303362",
"0.53012455",
"0.5300922",
"0.5299871",
"0.5290988",
"0.52876043",
"0.5274311",
"0.52605736",
"0.5258522",
"0.5232984",
"0.52170825",
"0.521356",
"0.5204932",
"0.5201408",
"0.519691",
"0.5193603",
"0.5193317",
"0.51894265",
"0.51689994",
"0.51525027",
"0.51514035",
"0.51445633",
"0.5142353",
"0.5137324",
"0.51296824",
"0.51296824",
"0.5120279",
"0.5115655",
"0.511433",
"0.5109041",
"0.5100422",
"0.50975335",
"0.509713",
"0.5093962",
"0.5093881",
"0.50922704",
"0.5091788",
"0.509042",
"0.50897145",
"0.5085384",
"0.507661",
"0.5073943",
"0.50720507",
"0.50688183",
"0.50547075",
"0.5052638"
]
| 0.7559467 | 0 |
Indicates whether the item can be restored from a prior revision or not. | public boolean isRestorable() {
return isRestorable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasRestore();",
"public boolean canRevert(IBlockState state) {\n\t\t\treturn canRevert(state.getBlock(), state.getBlock().getMetaFromState(state));\n\t\t}",
"public boolean mayRestore() {\n return Objects.nonNull(serverToken) && Objects.nonNull(clientToken);\n }",
"public boolean canUndo()\n {\n if (undoableChanges == null || undoableChanges.size() > 0)\n return true;\n else\n return false;\n }",
"public boolean hasREVENUESEQUENCE() {\n return fieldSetFlags()[8];\n }",
"public boolean hasREVENUEREPORTIND() {\n return fieldSetFlags()[6];\n }",
"public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }",
"public boolean canUndo() {\n return statePointer > 0;\n }",
"private boolean canUndo() {\n return !frozen && !past.isEmpty();\n }",
"public boolean hasPrevious() \n\t{\n\t\tboolean res = false;\n\t\tif(actual != null) {\n\n\t\t\tif(esUltimo && actual != null)\n\t\t\t\tres=true;\n\t\t\telse {\n\t\t\t\tres = actual.darAnterior() != null;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"public boolean isUndoAvailable() throws ProvisioningException {\n return StateHistoryUtils.isUndoAvailable(home, log);\n }",
"public Boolean isRollback() {\n return this.rollback;\n }",
"public boolean canUndo() {\n/* 834 */ return !Utils.isNullOrEmpty(getNextUndoAction());\n/* */ }",
"public boolean isUndoAvailable() {\n\t\treturn lastCommand != null;\n\t}",
"public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}",
"public boolean canUndo() {\n return this.isUndoable;\n }",
"private boolean isCanReorder() {\n return getIntent().getBooleanExtra(ConstantValue.IS_CAN_REORDER, true);\n }",
"@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}",
"public boolean canRevert(IBlockState state) {\n\t\tfor (IBiStateMapping i : this) {\n\t\t\tif (i.canRevert(state)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }",
"public boolean hasOldVersionNumber() {\n return (getVersionNumber() < CURRENT_VERSION_NO);\n }",
"boolean isMarkedRollback() throws Exception;",
"public boolean canUndo();",
"public boolean canUndo();",
"public boolean hasPrevious() {\n return position > 0;\n }",
"public boolean hasPrevious() {\n\t\tif(prevIndex > -1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean wasRedeployed(long modelOid, int revision)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"@Override\r\n public boolean hasPrevious() {\r\n if (previous.data == null) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@CheckReturnValue\n public boolean hasPrevious() {\n return offset > 0;\n }",
"public boolean hasPrevious() {\n return getPage() > 0;\n }",
"boolean hasPrevious();",
"boolean hasPrevious();",
"boolean hasPrevious();",
"boolean hasPrevious();",
"protected boolean isTransactionRollback()\n {\n try\n {\n UMOTransaction tx = TransactionCoordination.getInstance().getTransaction();\n if (tx != null && tx.isRollbackOnly())\n {\n return true;\n }\n }\n catch (TransactionException e)\n {\n // TODO MULE-863: What should we really do?\n logger.warn(e.getMessage());\n }\n return false;\n }",
"public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean canRedo() {\n return statePointer < (mementos.size() - 1);\n }",
"public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }",
"@Override\n public boolean hasPrevious()\n {\n if(left == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }",
"public boolean rollbackMoves() {\n if (snapshots.size() < 2) return false;\n\n removeAllCards(true);\n snapshots.pop();\n CardSet lastSnapshot = snapshots.peek();\n\n for (Card card : lastSnapshot.getCards()) {\n addCard(card, true);\n }\n sort();\n return true;\n }",
"public boolean hasPrevious() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"hasPrevious() Not implemented.\" );\n\t\t}",
"public Boolean getRollback() {\n return this.rollback;\n }",
"public static boolean canUndo() {\r\n\t\treturn undoCommands.isEmpty();\r\n\t}",
"public boolean hasPrev() {\n return cursor != null && ((Entry<T>) cursor).prev!= null && ((Entry) cursor).prev.prev != null;\n }",
"public boolean hasPrevious() {\n\t\t\treturn previousPosition < vector.size();\n\t\t}",
"public boolean isRemastered() {\r\n\t\treturn this.remastered;\r\n\t}",
"@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}",
"public boolean requiresImmediateRetry() {\n return currentItemState == ItemProcessingState.IMMEDIATE_RETRY;\n }",
"@SuppressWarnings(\"unused\")\n private static boolean buildingToPreviousVersion(DdlVersionBean ddlVersionBean) {\n int buildingToVersion = ddlVersionBean.getBuildingToVersion();\n \n boolean buildingToPreviousVersion = GrouperDdl.V44.getVersion() > buildingToVersion;\n\n return buildingToPreviousVersion;\n }",
"@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}",
"private boolean restoreStateFromArguments() {\n Bundle b = getArguments();\n if (b != null) {\n savedState = b.getBundle(\"internalSavedViewState8954201239547\");\n if (savedState != null) {\n restoreState();\n return true;\n }\n }\n return false;\n }",
"public boolean reverseAccrualIt() {\n log.info(toString());\n\n if (!isReceipt()) {\n CQChangeStateVP(MVALORPAGO.EMITIDO, MVALORPAGO.REVERTIDO);\n CQChangeStateVP(MVALORPAGO.IMPRESO, MVALORPAGO.REVERTIDO);\n\n }\n\n return false;\n }",
"public boolean isPreviousPage() {\n return previousPage;\n }",
"public boolean isSetBefore() {\n return this.before != null;\n }",
"boolean hasIsRevanche();",
"public boolean hasPrevious() {\r\n \treturn index > 0; \r\n }",
"public boolean isPreviousVersionOf(YSpecificationID other) {\n return hasMatchingIdentifier(other) && (version.compareTo(other.getVersion()) < 0);\n }",
"public boolean isAutoRollback () {\n return autoRollback;\n }",
"public final boolean can_retreat_modstate (int new_modstate) throws GUIEDTException {\n\t\treturn new_modstate <= modstate;\n\t}",
"private boolean restorePrefData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n Boolean isIntroActivityOpnendBefore = pref.getBoolean(\"isIntroOpnend\", false);\n return isIntroActivityOpnendBefore;\n }",
"public boolean isLastVersion();",
"protected boolean showCantUndo ()\n {\n return showConfirm(\"m.cant_undo\", \"t.cant_undo\");\n }",
"boolean isPreviousButtonDisabled() {\r\n\t\treturn prevPage.isDisabled();\r\n\t}",
"public boolean isPreparer() {\n\t\treturn getStatut().equals(StatusBonPreparation.PREPARER);\n\t}",
"public boolean canBeLeft();",
"protected boolean beforeDelete() {\n if (DOCSTATUS_Drafted.equals(getDocStatus())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n }",
"protected boolean isTransactionAllowedToRollback() throws SystemException\n {\n return this.getTransactionStatus() != Status.STATUS_COMMITTED &&\n this.getTransactionStatus() != Status.STATUS_NO_TRANSACTION &&\n this.getTransactionStatus() != Status.STATUS_UNKNOWN;\n }",
"@Override\n public boolean isCorrectMachinePart(ItemStack itemStack) {\n return true;\n }",
"public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }",
"public boolean getNotUndoablePurgesUndoHistory() {\n\t\treturn false;\n\t}",
"public boolean isReversible() {\n\t\treturn false;\r\n\t}",
"public boolean previous() throws SQLException {\n\n try {\n debugCodeCall(\"previous\");\n checkClosed();\n return relative(-1);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"private boolean checkiforiginal(int copynum) {\n boolean isAvailable = false;\n if (copynum == 0) {\n isAvailable = true;\n }\n return isAvailable;\n }",
"public boolean syncRollbackPhase() {\n return syncRollbackPhase;\n }",
"public boolean hasReinitializeFile() {\n return ((bitField0_ & 0x00800000) == 0x00800000);\n }",
"public boolean getMoveRemainingStartsBack()\r\n {\r\n return (m_moveRemainingStartsBack);\r\n }",
"public boolean prevPageNumber() {\n if (pageNumber == 1) {\n this.errorMessage = \"Error: already at start. \";\n return false;\n }\n this.errorMessage = \"\";\n this.pageNumber--;\n return true;\n }",
"boolean isRollbackOnConstraintViolation();",
"public boolean hasReinitializeFile() {\n return ((bitField0_ & 0x00800000) == 0x00800000);\n }",
"@Override\n\tpublic boolean canBeLeft() {\n\t\treturn true;\n\t}",
"public boolean previous() {\n boolean result = true;\n try {\n element = iterator.previous();\n } catch(NoSuchElementException ex) {\n result = false;\n }\n return result;\n }",
"private boolean canDoLeftTransfer(TFNode node) throws TFNodeException {\r\n TFNode parent = node.getParent();\r\n if (parent == null) {\r\n throw new TFNodeException(\"Node has no parent and therefore no sibling\");\r\n }\r\n\r\n // Must have a left sibling\r\n if (WCIT(node) > 0) {\r\n // That sibling must have two or more items in it\r\n TFNode leftSibling = parent.getChild(WCIT(node) - 1);\r\n if (leftSibling.getNumItems() > 1) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Test\n public void testRecentlyCommittedRollbackPersistence() throws Exception {\n try {\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES,\n Manifest.permission.TEST_MANAGE_ROLLBACKS);\n\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n\n RollbackTestUtils.uninstall(TEST_APP_A);\n RollbackTestUtils.install(\"RollbackTestAppAv1.apk\", false);\n RollbackTestUtils.install(\"RollbackTestAppAv2.apk\", true);\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n // The app should now be available for rollback.\n RollbackInfo rollback = getUniqueRollbackInfoForPackage(\n rm.getAvailableRollbacks(), TEST_APP_A);\n\n // Roll back the app.\n VersionedPackage cause = new VersionedPackage(\n \"com.android.tests.rollback.testapp.Foo\", 42);\n RollbackTestUtils.rollback(rollback.getRollbackId(), cause);\n assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n // Verify the recent rollback has been recorded.\n rollback = getUniqueRollbackInfoForPackage(\n rm.getRecentlyCommittedRollbacks(), TEST_APP_A);\n assertRollbackInfoEquals(TEST_APP_A, 2, 1, rollback, cause);\n\n // Reload the persisted data.\n rm.reloadPersistedData();\n\n // Verify the recent rollback is still recorded.\n rollback = getUniqueRollbackInfoForPackage(\n rm.getRecentlyCommittedRollbacks(), TEST_APP_A);\n assertRollbackInfoEquals(TEST_APP_A, 2, 1, rollback, cause);\n } finally {\n RollbackTestUtils.dropShellPermissionIdentity();\n }\n }",
"public boolean hasPreviousInSet() {\n return (hasPrevious() &&\n (indexOfCurrentElement - 1 >= firstIndexOfCurrentSet) &&\n (indexOfCurrentElement - 1 < firstIndexOfCurrentSet + quantity));\n }",
"boolean hasRetainFlag();",
"public boolean RestorePoint() {\n\t\treturn true; \n\t}",
"boolean hasKeyRevocationActionType();",
"boolean canUndoExpenseTracker() throws NoUserSelectedException;",
"@Override\r\n public boolean hasPrevious() {\n return returned.prev != header;\r\n }",
"@Override\n\tpublic boolean isDraft() {\n\t\treturn model.isDraft();\n\t}",
"public boolean validateVersion(TradeModel tradeModel)\n {\n Integer version = tradeRepository.findMaxVersion(tradeModel.getTradeId());\n if (version == null)\n return true;\n else {\n if (tradeModel.getVersion() >= version)\n return true;\n else\n return false;\n }\n }",
"boolean hasModelDelta();",
"private boolean isChangeToQueenOnPromotionRow(Key currentKey) {\n\t\treturn KeyPad.isLastRow(currentKey);\n\n\t}",
"public boolean hasPreviousViewInSameRow(int position) {\n return mLayoutManager.hasPreviousViewInSameRow(position);\n }",
"public boolean hasREVENUEDEFAULTIND() {\n return fieldSetFlags()[7];\n }",
"boolean hasPreviousPage();",
"public Long getIsRevisable() {\n return isRevisable;\n }",
"boolean hasDeleteBackUp();",
"private boolean canRedo() {\n return !frozen && !future.isEmpty();\n }",
"boolean supportsRollbackAfterDDL();",
"public boolean rollback() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.rollback();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }"
]
| [
"0.65154165",
"0.6199774",
"0.6183922",
"0.5962424",
"0.5906601",
"0.5898389",
"0.5897607",
"0.58674145",
"0.5853892",
"0.58044076",
"0.5783673",
"0.5742452",
"0.56881684",
"0.56044847",
"0.5576335",
"0.5571307",
"0.5553699",
"0.55536366",
"0.5550825",
"0.55436504",
"0.5538613",
"0.5524174",
"0.5517939",
"0.5517939",
"0.5478553",
"0.54734004",
"0.5466585",
"0.54200727",
"0.53857905",
"0.53838027",
"0.53718835",
"0.53718835",
"0.53718835",
"0.53718835",
"0.5365173",
"0.53637797",
"0.53537834",
"0.53506595",
"0.5350164",
"0.53476876",
"0.53417295",
"0.5330408",
"0.5288847",
"0.5288553",
"0.52664936",
"0.5265073",
"0.52460366",
"0.5241721",
"0.52318925",
"0.52281463",
"0.52270955",
"0.52186584",
"0.52115285",
"0.52046865",
"0.51936555",
"0.5185074",
"0.5181897",
"0.51713073",
"0.51665443",
"0.5163974",
"0.51467973",
"0.51131016",
"0.51096946",
"0.5099138",
"0.5086789",
"0.50625926",
"0.50608903",
"0.50576663",
"0.50566906",
"0.5053002",
"0.5050713",
"0.5049252",
"0.5044728",
"0.50439817",
"0.504275",
"0.50405276",
"0.50402665",
"0.5021565",
"0.500547",
"0.50032526",
"0.49964482",
"0.49930006",
"0.49821493",
"0.49784645",
"0.49732032",
"0.49721846",
"0.49692103",
"0.49617222",
"0.49495155",
"0.49484172",
"0.49469718",
"0.49449438",
"0.4944487",
"0.49374455",
"0.49360585",
"0.49350655",
"0.49311167",
"0.49204347",
"0.49159086",
"0.49143168",
"0.4911835"
]
| 0.0 | -1 |
Sets whether the item can be restored from a prior revision or not. | public void setRestorable(boolean isRestorable) {
this.isRestorable = isRestorable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canRevert(IBlockState state) {\n\t\t\treturn canRevert(state.getBlock(), state.getBlock().getMetaFromState(state));\n\t\t}",
"public boolean mayRestore() {\n return Objects.nonNull(serverToken) && Objects.nonNull(clientToken);\n }",
"boolean hasRestore();",
"public void setClipPreserved(boolean shouldRestoreState)\n/* */ {\n/* 183 */ boolean oldShouldRestoreState = isClipPreserved();\n/* 184 */ this.clipPreserved = shouldRestoreState;\n/* 185 */ setDirty(true);\n/* 186 */ firePropertyChange(\"clipPreserved\", Boolean.valueOf(oldShouldRestoreState), Boolean.valueOf(shouldRestoreState));\n/* */ }",
"private boolean canUndo() {\n return !frozen && !past.isEmpty();\n }",
"public boolean hasREVENUEREPORTIND() {\n return fieldSetFlags()[6];\n }",
"public void setNotUndoablePurgesUndoHistory(boolean arg0) {\n\t\t\n\t}",
"private void fixEnabled(){\n setEnabled(graph.getUndoManager().canRedo());\n }",
"public boolean resetToPreviousPosition()\n {\n return setPosition( previousPosition);\n }",
"public boolean canRevert(IBlockState state) {\n\t\tfor (IBiStateMapping i : this) {\n\t\t\tif (i.canRevert(state)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean RestorePoint() {\n\t\treturn true; \n\t}",
"public boolean canUndo() {\n return statePointer > 0;\n }",
"public boolean shouldRevertToOriginalAuthorizationOnCopy() {\n return false;\n }",
"public boolean canUndo()\n {\n if (undoableChanges == null || undoableChanges.size() > 0)\n return true;\n else\n return false;\n }",
"public boolean canUndo();",
"public boolean canUndo();",
"@Override\n public boolean canUndo() {\n return false;\n }",
"public void setRollback(Boolean rollback) {\n this.rollback = rollback;\n }",
"private void setReadyPre() {\n\t\tint preIndex=getPreIndex();\r\n\t\tLog.d(TAG, \"setReadyPre: \"+preIndex);\r\n\t\tmApplications.get(preIndex).resetToFrontPlace();\r\n\t\tif(mApplications.get(preIndex).getReady() ==-1)\r\n\t\t\tsetTexId(preIndex);\r\n\t}",
"public boolean restore(final String title) {\n\t\treturn restore(title, null);\n\t}",
"void setNewerRevisionSeen() {\n\n // If we have previously written something, then we've detected a write conflict; fail early.\n if ( !this.versionedItemsWritten.isEmpty() ) {\n throw new WriteConflictException();\n }\n\n // Track the newer revision number to fail early if we subsequently write something.\n this.newerRevisionSeen = true;\n\n }",
"@Override\n\tpublic void setCheckOlderVersion(boolean paramBoolean)\n\t{\n\n\t}",
"public boolean canUndo() {\n return this.isUndoable;\n }",
"@Override\n\tpublic void undoAction() {\n\t\tfield.setValue(oldValue);\n\n\t\tif (checkBox != null)\n\t\t\tcheckBox.setSelected(oldValue);\n\t}",
"public void undoerEnable() { Undoer u = getUndoer(); if(u!=null) u.enable(); }",
"public void testSetBackButtonEnabled() {\n System.out.println(\"setBackButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setBackButtonEnabled(newValue);\n }",
"public void setPreviousPage(boolean value) {\n this.previousPage = value;\n }",
"public void cmdRevert(User teller) {\n exit(6, \"Reverting to prior release at the request of {0}. I''ll be right back!\", teller);\n }",
"public void setReverse(Boolean newValue);",
"public void setReverse(Boolean newValue);",
"@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }",
"public final boolean can_retreat_modstate (int new_modstate) throws GUIEDTException {\n\t\treturn new_modstate <= modstate;\n\t}",
"@Override\n void undo() {\n assert false;\n }",
"public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean rollbackMoves() {\n if (snapshots.size() < 2) return false;\n\n removeAllCards(true);\n snapshots.pop();\n CardSet lastSnapshot = snapshots.peek();\n\n for (Card card : lastSnapshot.getCards()) {\n addCard(card, true);\n }\n sort();\n return true;\n }",
"private void setUpDownEnabledState(GSelection<Variant> sel) {\n assert !sel.isEmpty();\n\n // Up and down depend on whether we have selected the first or last variant.\n // Remember that the viewer is not sorting or filtering any of the variants; we\n // are viewing the full model list in the model-specified order. So we can just\n // look at the model to figure this out.\n final Schedule schedule = viewer.getModel();\n if (schedule == null) {\n up.setEnabled(false);\n down.setEnabled(false);\n } else {\n final Variant v = sel.first();\n final List<Variant> all = schedule.getVariants();\n up.setEnabled(v != all.get(0));\n down.setEnabled(v != all.get(all.size() - 1));\n }\n\n }",
"public void enteredFromLeft(Map dataMap)\r\n {\r\n wizardContext.previousEnabled(false);\r\n \r\n }",
"private boolean isCanReorder() {\n return getIntent().getBooleanExtra(ConstantValue.IS_CAN_REORDER, true);\n }",
"public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }",
"public Boolean isRollback() {\n return this.rollback;\n }",
"void setLeftToRight(boolean ltor);",
"public synchronized void setRollbackOnly() {\n rollbackOnly = true;\n if (transacted == Transacted.Xa) {\n try {\n transactionManager.setRollbackOnly();\n } catch (Exception e) {\n throw new TransactionException(e);\n }\n }\n }",
"public boolean isReversible() {\n\t\treturn false;\r\n\t}",
"@Test\n public void testNonModuleEnableRollback() throws Exception {\n try {\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES,\n Manifest.permission.MANAGE_ROLLBACKS);\n\n RollbackTestUtils.uninstall(TEST_APP_A);\n RollbackTestUtils.install(\"RollbackTestAppAv1.apk\", /* enableRollback */ false);\n assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n RollbackTestUtils.install(\"RollbackTestAppAv2.apk\", /* enableRollback */ true);\n\n // We expect v2 of the app was installed, but rollback has not\n // been enabled because the test app is not a module.\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n assertNull(getUniqueRollbackInfoForPackage(rm.getAvailableRollbacks(), TEST_APP_A));\n } finally {\n RollbackTestUtils.dropShellPermissionIdentity();\n }\n }",
"public boolean reverseAccrualIt() {\n log.info(toString());\n\n if (!isReceipt()) {\n CQChangeStateVP(MVALORPAGO.EMITIDO, MVALORPAGO.REVERTIDO);\n CQChangeStateVP(MVALORPAGO.IMPRESO, MVALORPAGO.REVERTIDO);\n\n }\n\n return false;\n }",
"private boolean tryDropAndResetBlock(World world, BlockPos pos, IProperty<Integer> property, Block block, int fortune)\r\n\t{\r\n\t\tIBlockState blockState = world.getBlockState(pos);\r\n\r\n\t\tif (blockState == null) { return false; }\r\n\r\n\t\tint maxAge = Collections.max(property.getAllowedValues());\r\n\t\tint age = blockState.getValue(property);\r\n\r\n\t\tif (age < maxAge) { return false; } // Not yet.\r\n\r\n\t\tblock.dropBlockAsItem(world, pos, blockState, fortune);\r\n\r\n\t\t// Step 2, reset the crop's age\r\n\t\tworld.setBlockState(pos, blockState.withProperty(property, 0)); // Should set the block it back to default, modifying only that particular property\r\n\r\n\t\treturn true;\r\n\t}",
"public boolean hasREVENUESEQUENCE() {\n return fieldSetFlags()[8];\n }",
"@Override\n\tpublic boolean canBeLeft() {\n\t\treturn true;\n\t}",
"@Test\n public void testEnableRollbackPermission() throws Exception {\n try {\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.INSTALL_PACKAGES,\n Manifest.permission.DELETE_PACKAGES);\n\n RollbackTestUtils.uninstall(TEST_APP_A);\n RollbackTestUtils.install(\"RollbackTestAppAv1.apk\", /* enableRollback */ false);\n assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n RollbackTestUtils.install(\"RollbackTestAppAv2.apk\", /* enableRollback */ true);\n\n // We expect v2 of the app was installed, but rollback has not\n // been enabled.\n assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A));\n\n RollbackTestUtils.adoptShellPermissionIdentity(\n Manifest.permission.TEST_MANAGE_ROLLBACKS);\n RollbackManager rm = RollbackTestUtils.getRollbackManager();\n assertNull(getUniqueRollbackInfoForPackage(rm.getAvailableRollbacks(), TEST_APP_A));\n } finally {\n RollbackTestUtils.dropShellPermissionIdentity();\n }\n }",
"@Test\n\t@Transactional\n\t@DirtiesContext\n\tpublic void testInvalidRestore() throws Exception {\n\n\t\tgetAsItemStream(reader).open(executionContext);\n\t\t\n\t\tFoo foo1 = reader.read();\n\t\tassertEquals(1, foo1.getValue());\n\n\t\tFoo foo2 = reader.read();\n\t\tassertEquals(2, foo2.getValue());\n\n\t\tgetAsItemStream(reader).update(executionContext);\n\t\n\t\tgetAsItemStream(reader).close();\n\n\t\t// create new input source\n\t\treader = createItemReader();\n\t\tgetAsItemStream(reader).open(new ExecutionContext());\n\n\t\tFoo foo = reader.read();\n\t\tassertEquals(1, foo.getValue());\n\n\t\ttry {\n\t\t\tgetAsItemStream(reader).open(executionContext);\n\t\t\tfail();\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t// expected\n\t\t}\n\t}",
"public void changeCanThrowFlag()\r\n\t{\r\n\t\tcanThrowFlag = !canThrowFlag;\r\n\t}",
"@Override\n public boolean isReversible() {\n return true;\n }",
"public Boolean getRollback() {\n return this.rollback;\n }",
"@Override\r\n\tprotected boolean isNeedInitBack() {\n\t\treturn true;\r\n\t}",
"public void onRestorePendingState() {\n }",
"@VTID(40)\n void setRequireManualUpdate(\n boolean rhs);",
"public void changeisReversed()\r\n\t{\r\n\t\tisReversed = !isReversed;\r\n\t}",
"private boolean restoreStateFromArguments() {\n Bundle b = getArguments();\n if (b != null) {\n savedState = b.getBundle(\"internalSavedViewState8954201239547\");\n if (savedState != null) {\n restoreState();\n return true;\n }\n }\n return false;\n }",
"public boolean requiresImmediateRetry() {\n return currentItemState == ItemProcessingState.IMMEDIATE_RETRY;\n }",
"public boolean canUndo() {\n/* 834 */ return !Utils.isNullOrEmpty(getNextUndoAction());\n/* */ }",
"@Override\n public Boolean supportsRepositioning() {\n return new Boolean(true);\n }",
"protected void undoSuccess() {\n this.isRedoable = true;\n this.isUndoable = false;\n }",
"private void trueRevertBlock() {\r\n\t\tthis.reverted = true;\r\n\t\tif (instances_.containsKey(this.block)) {\r\n\t\t\tPaperLib.getChunkAtAsync(this.block.getLocation()).thenAccept(result -> {\r\n\t\t\t\tTempBlock last = instances_.get(this.block).getLast();\r\n\t\t\t\tthis.block.setBlockData(last.newData); //Set the block to the next in line TempBlock\r\n\t\t\t});\r\n\t\t} else { //Set to the original blockstate\r\n\t\t\tPaperLib.getChunkAtAsync(this.block.getLocation()).thenAccept(result -> revertState());\r\n\t\t}\r\n\r\n\t\tREVERT_QUEUE.remove(this);\r\n\t\tif (this.revertTask != null) {\r\n\t\t\tthis.revertTask.run();\r\n\t\t}\r\n\r\n\t\tfor (TempBlock attached : attachedTempBlocks) {\r\n\t\t\tattached.revertBlock();\r\n\t\t}\r\n\t}",
"private void restorePreviousState() {\n\n\t\tif (StoreAnalysisStateApplication.question1Answered) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question2Answered) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question3Answered) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreDesignStateApplication.stageCleared) {\n\t\t\tsecondImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.voicereadingenabled);\n\t\t}\n\n\t\tif (StoreImplementationStateApplication.stageCleared) {\n\t\t\tthirdImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.microphonenabled);\n\t\t}\n\n\t}",
"@Override\n public void validateRestoreSnapshot(BlockSnapshot snapshot, Volume parent) {\n // RecoverPoint snapshots (bookmarks) will be automatically activated\n // before restore.\n if (snapshot.getEmName() == null) {\n super.validateRestoreSnapshot(snapshot, parent);\n }\n }",
"public void setLeft(boolean b){ left = b; }",
"public void setLeft(boolean b){ left = b; }",
"public boolean setPreviousPosition( Position2D pos)\n {\n if( pos == null)\n {\n return false;\n }\n else\n {\n previousPosition = pos;\n\n return true;\n }\n }",
"public void setValid(boolean value)\r\n {\r\n //Override this method in MediaItem object\r\n getSemanticObject().setBooleanProperty(swb_valid, value,false);\r\n }",
"private boolean restorePrefData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n Boolean isIntroActivityOpnendBefore = pref.getBoolean(\"isIntroOpnend\", false);\n return isIntroActivityOpnendBefore;\n }",
"boolean canUndoExpenseTracker() throws NoUserSelectedException;",
"public void setMoveRemainingStartsBack(boolean moveRemainingStartsBack)\r\n {\r\n m_moveRemainingStartsBack = moveRemainingStartsBack;\r\n }",
"public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }",
"@Override\n public boolean isUndo() {\n return false;\n }",
"public boolean isAutoRollback () {\n return autoRollback;\n }",
"private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }",
"public boolean wasRedeployed(long modelOid, int revision)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"void setDraft(boolean d);",
"@RestrictedApi(explanation = \"Should only be called in tests\", link = \"\",\n allowedOnPath = \".*/src/test/.*\")\n public boolean getRestoreAcl() {\n return restoreAcl;\n }",
"boolean removAble(InputItem item);",
"@Override\n public boolean onBackPreseed() {\n return false;\n }",
"@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}",
"@Override\r\n\t\tpublic boolean editItem() {\n\t\t\treturn false;\r\n\t\t}",
"boolean isMarkedRollback() throws Exception;",
"@Override\r\n\tpublic void setRollbackOnly() throws IllegalStateException, SystemException {\r\n\t\trequireTransaction(\"set rollback\");\r\n\t\tgetTransaction().setRollbackOnly();\r\n\t}",
"public void setRestricted(boolean restricted) {\n _restricted = (restricted && _dropType == DropType.ITEM);\n }",
"@Override\n\tpublic boolean isBackable() {\n\t\treturn false;\n\t}",
"@Override\n public void restore() {\n }",
"@Override\n public void syncExistingProductState(boolean isExistingProductRestored) {\n //Saving the state\n mIsExistingProductRestored = isExistingProductRestored;\n }",
"@Override\n public boolean isCorrectMachinePart(ItemStack itemStack) {\n return true;\n }",
"protected void markUnstable() {\n if (this.step == null || this.step.markUnstable) {\n if (this.run != null) {\n this.run.setResult(Result.UNSTABLE);\n }\n }\n }",
"@Override\n public void setWrongRangeItem() { wrongLightMagicBook = new LightMagicBook(\"Wrong lightMagicBook\",0,-1,-2);}",
"public boolean isSetBefore() {\n return this.before != null;\n }",
"private void setDeltaValid(boolean deltaValid) {\n\t\tthis.deltaValid = deltaValid;\n\t}",
"public boolean restore(final String title, final String text) {\n\t\treturn setState(title, text, WinSetState.RESTORE);\n\t}",
"private void restoreBooleanValue(final Variable key) {\n // do nothing if not available yet\n if (Conf.getString(Const.CONF_PREPARE_PARTY + key) == null) {\n return;\n }\n data.put(key, Conf.getBoolean(Const.CONF_PREPARE_PARTY + key));\n }",
"@Override\n\tpublic boolean erTom() {\n\t\treturn (bak == null);\n\t}",
"public void setPrev(Version prev){\n\t\tif (prev == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'setPrev' method!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.prev = prev;\n\t}",
"private void onAgendaItemsPreparationSelectionChange(AgendaItem newValue) {\n boolean disabledBecauseOfSelection = newValue == null;\n buttonAgendaItemEdit.setDisable(disabledBecauseOfSelection);\n buttonAgendaItemRemove.setDisable(disabledBecauseOfSelection);\n buttonAgendaItemMoveUp.setDisable(disabledBecauseOfSelection);\n buttonAgendaItemMoveDown.setDisable(disabledBecauseOfSelection);\n }",
"public boolean canBeLeft();",
"boolean undoLastCommand() throws Exception;"
]
| [
"0.55959636",
"0.55880064",
"0.5511251",
"0.53828245",
"0.531401",
"0.51974493",
"0.5181812",
"0.5162265",
"0.513808",
"0.5137613",
"0.5136483",
"0.511874",
"0.51030004",
"0.50573015",
"0.50544834",
"0.50544834",
"0.50505704",
"0.5048176",
"0.5042796",
"0.50178945",
"0.5015451",
"0.5011297",
"0.5000116",
"0.499609",
"0.4995569",
"0.49778432",
"0.49378005",
"0.4936687",
"0.49358",
"0.49358",
"0.49203548",
"0.49164748",
"0.49112737",
"0.4909072",
"0.49068242",
"0.4893717",
"0.48860934",
"0.4872889",
"0.48716965",
"0.4862921",
"0.48592576",
"0.48406693",
"0.48380572",
"0.48338893",
"0.48330542",
"0.48256552",
"0.48141477",
"0.4760909",
"0.4760358",
"0.47599933",
"0.47597274",
"0.47358507",
"0.47332504",
"0.47286984",
"0.47211057",
"0.47142",
"0.4710272",
"0.4706751",
"0.46955186",
"0.4684036",
"0.46824986",
"0.46820563",
"0.46816236",
"0.46741083",
"0.46685186",
"0.46653792",
"0.46653792",
"0.46601003",
"0.46385795",
"0.46379563",
"0.46366096",
"0.46301016",
"0.46254307",
"0.46244222",
"0.4616515",
"0.46121672",
"0.4609962",
"0.46080655",
"0.4606048",
"0.4603367",
"0.46000016",
"0.45982572",
"0.45931286",
"0.4592705",
"0.45915538",
"0.45904765",
"0.45888478",
"0.4584451",
"0.45788687",
"0.45749032",
"0.4561703",
"0.45615497",
"0.4559868",
"0.45535207",
"0.45441043",
"0.45428166",
"0.45415285",
"0.45397335",
"0.45359817",
"0.4534525",
"0.45282418"
]
| 0.0 | -1 |
Functional interface to enable processing via lambda expression | @FunctionalInterface
private interface Consumer<T> {
void accept(T t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FunctionalInterface\npublic interface MyFunc {\n\n public String getValue(String str);\n}",
"@FunctionalInterface\npublic interface Act<E> {\n\n void forEach(E pill,ITree ctx,ILime consumer);\n\n}",
"@FunctionalInterface\npublic interface FoldImplementation {\n void main(String[] args);\n}",
"public static void main(String[] args) {\n assert(sum((a -> a + 4), 5) == 9); // a is inferred to be an int\n assert(sum((int a) -> a + 5, 9) == 14); //a is explicit\n\n //Some other lambdas with one method interfaces\n Runnable r = () -> System.out.println(\"Run in a separate thread\");\n ActionListener al = (evt) -> evt.getActionCommand();\n\n //Multistatement lambda\n SampleInterface si2 = a -> {\n int total = 3 + 4;\n return total + 19;\n };\n }",
"@FunctionalInterface\npublic interface BytecodeConsumer {\n\n\t/** Performs this operation on the given argument.\n\t * @param opcode the opcode of the instruction at the specified location\n\t * @param code the array of code instructions\n\t * @param location the location in the array at which the current instruction is location\n\t */\n\tvoid accept(Opcodes opcode, byte[] code, int location);\n\n}",
"@FunctionalInterface\npublic interface BufferedReaderProcessor {\n String process(BufferedReader b) throws IOException;\n \n}",
"public static void main(String[] args) {\n Foo fooByIC= new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string);\n }\n };\n Foo fooByIc2=new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string+\" \"+string);\n }\n };\n fooByIC.method(\"test\");\n fooByIc2.method(\"test\");\n\n //TODO call testFunctional with fooByIC\n testFunctional(\"test2\",fooByIc2);\n //TODO call testFunctional with a lambda\n testFunctional(\"test3\",s-> System.out.println(s.toUpperCase()+\"lambda\"));\n //TODO call testFunctional with a different lambda\n testFunctional(\"4\",s-> {\n try {\n\n\n Integer number = Integer.parseInt(s);\n System.out.println(number*number);\n }\n catch (NumberFormatException ex)\n {\n System.out.println(\"Not a number\");\n }\n\n });\n testFunctional(2,3,(a,b)->a+b);\n\n\n }",
"@FunctionalInterface\npublic interface IntPredicate {\n boolean test(int t);\n}",
"void apply(FnIntFloatToFloat lambda);",
"public void performLambdaOperations(){\n functionalInterfaceLambdaService.printFunctionalInterfaceWithAndWithoutLambda();\n runnableLambdaService.printRunnableInterfaceWithAndWithoutLambda();\n comparatorLambdaService.printComparatorInterfaceWithAndWithoutLambda();\n }",
"childLambda func();",
"@Test\n public void test2() {\n Consumer<String> consumer = System.out::println;\n consumer.accept(\"lambda V5!\");\n }",
"public static void main(String[] args) {\n Consumer<Integer> consumer = x ->{\n System.out.println(\"Number is :\"+x);\n };\n consumer.accept(55);\n //Supplier\n Supplier<String> str = () -> \"Implementation of Supplier \";\n System.out.println(str.get());\n //Predicate\n int a=37;\n Predicate<Integer> isOddPredicate = x -> x%2 != 0;\n System.out.println(\"Is \"+a+\" Odd Number :\"+isOddPredicate.test(a));\n //Function\n int b=7;\n Function<Integer,Integer> squareFunction = x -> x*x;\n System.out.println(\"Square of \"+b+\" is \"+squareFunction.apply(b));\n\n //Example\n List<Integer> list = List.of(12,9,13,4,6,2,4);\n Consumer<Integer> con = System.out::println;\n System.out.println(\"Example(Square of odd no.) : \");\n list.stream()\n .filter(isOddPredicate)\n .map(squareFunction)\n .forEach(con);\n\n\n\n }",
"OUT apply(IN argument);",
"@FunctionalInterface\npublic interface Convert<S,T> {\n T convert(S arg);\n}",
"private Expression transform(Expression exp)\n {\n return UseContracts.execute(exp, fun, callers);\n }",
"@FunctionalInterface\npublic interface ResultSetRowMapper<Output> {\n Output map(ResultSetInspector rsi) throws SQLException;\n\n default <NewOutput> ResultSetRowMapper<NewOutput> andThen(Function<Output, NewOutput> after) {\n return rsi -> after.apply(map(rsi));\n }\n}",
"public interface LambdaVisitor<T> {\n T visit(ASTAbstraction node);\n T visit(ASTApplication node);\n T visit(ASTConstant node);\n T visit(ASTVariable node);\n}",
"public abstract <O> Optional<O> map(Predicate<? super O> isPresent, Fn<? super V, O> mapper);",
"public interface LambdaInterface {\n\n @LambdaFunction\n byte[] HelloFunction(LambdaRequest request);\n\n @LambdaFunction\n LambdaRespMenues GetFullAndFilteredMenuForRestaurant(LambdaRequest2 input);\n}",
"@FunctionalInterface\ninterface ConverterInterface<F, T> {\n T convert(F from);\n}",
"default <V> Parser<S, T, V> reduce(Supplier<V> start,BiFunction<V, U, V> f) {\n return s-> {\n return reduceBase(s, start.get(),f);\n };\n }",
"@FunctionalInterface\ninterface Payment{\n\tvoid pay(int amount);\n}",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public static void main(String[] args) {\r\n\t// challenge #1: anonymous to lambda expression\r\n\r\n Runnable runnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n String myString = \"Let's split this up into an string\";\r\n String[] parts = myString.split(\" \");\r\n for (String part : parts) {\r\n System.out.println(part);\r\n }\r\n }\r\n };\r\n\r\n Runnable runable = () -> {\r\n String myString = \"Let's split this up into an string\";\r\n String[] parts = myString.split(\" \");\r\n for (String part : parts) {\r\n System.out.println(part);\r\n }\r\n };\r\n\r\n /*challenge #2: write the following method as a lambda expression*/\r\n Function<String,String> lambdaFunction = s -> {\r\n StringBuilder returnVal = new StringBuilder();\r\n for (int i=0; i<s.length(); i++) {\r\n if (i % 2 == 1) {\r\n returnVal.append(s.charAt(i));\r\n }\r\n }\r\n return returnVal.toString();\r\n };\r\n\r\n /* challenge #3: execute the function with the argument of \"123456789\"*/\r\n\r\n// System.out.println(lambdaFunction.apply(\"123456789\"));\r\n\r\n // challenge #5\r\n String result = everySecondCharacter(lambdaFunction,\"123456789\");\r\n System.out.println(result);\r\n\r\n // challenge #6\r\n// Supplier<String> iLoveJava = () -> \"i love java\";\r\n Supplier<String> iLoveJava = () -> {return \"i love java\";};\r\n\r\n // challenge #7\r\n String supplierResult = iLoveJava.get();\r\n System.out.println(supplierResult);\r\n\r\n\r\n List<String> topNames2015 = Arrays.asList(\r\n \"Amelia\",\r\n \"Olivia\",\r\n \"emily\",\r\n \"Isla\",\r\n \"Ava\",\r\n \"oliver\",\r\n \"Jack\",\r\n \"Charlie\",\r\n \"harry\",\r\n \"Jacob\"\r\n );\r\n\r\n List<String> firstUpperCaseList = new ArrayList<>();\r\n topNames2015.forEach(name -> {\r\n firstUpperCaseList.add(name.substring(0,1).toUpperCase() + name.substring(1));\r\n });\r\n firstUpperCaseList.sort(String::compareTo);\r\n firstUpperCaseList.forEach(System.out::println);\r\n\r\n System.out.println(\"-----------\");\r\n topNames2015.stream()\r\n .map(name -> name.substring(0,1).toUpperCase() + name.substring(1))\r\n .sorted()\r\n .forEach(System.out::println);\r\n\r\n long namesBeginningWithA = topNames2015.stream()\r\n .map(name -> name.substring(0,1).toUpperCase() + name.substring(1))\r\n .filter(name ->name.startsWith(\"A\"))\r\n .count();\r\n\r\n System.out.println(\"Numbers of name begining with A\" + namesBeginningWithA);\r\n\r\n // Stream chain is lazy evaluated\r\n topNames2015\r\n .stream()\r\n .map(name -> name.substring(0,1).toUpperCase() + name.substring(1))\r\n .peek(System.out::println)\r\n .sorted(String::compareTo)\r\n .collect(Collectors.toList());\r\n\r\n\r\n\r\n\r\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tFunInterf fi=()->System.out.println(\"Functional Interface\");\r\n\t\tfi.print();\r\n\t\t\r\n\t\tISquare is=i->i*i;\r\n\t\tSystem.out.println(is.square(10));\r\n\t\t\r\n\t\tIMultiply im=(a,b)->a*b;\r\n\t\tSystem.out.println(im.multiply(10,20));\r\n\t\t\r\n\t\t/*** Create Thread using Lamda expression****/\r\n\t\t\r\n\t\tRunnable r=()->{\r\n\t\t\tfor(int i=0;i<10;i++)\r\n\t\t\t\tSystem.out.println(\"Child Thread\");\r\n\t\t};\r\n\t\tnew Thread(r).start();\r\n\t\t\r\n\t\t/*** Sort using Lamda expression****/\r\n\t\t\r\n\t\tList<Integer> lst = new ArrayList<Integer> ();\r\n\t\tlst.add(10);\r\n\t\tlst.add(50);\r\n\t\tlst.add(3);\r\n\t\tComparator <Integer> c=(a,b)->(a<b)?-1:(a>b)?1:0;\r\n\t\tCollections.sort(lst,c);\r\n\t\tSystem.out.println(lst);\r\n\t\t\r\n\t\t/*** Filter even number using Lamda expression****/\r\n\t\tList l2=lst.stream().filter(i->i%2==0).collect(Collectors.toList());\r\n\t\tSystem.out.println(l2);\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t/***Function Interface ****/\r\n\t\t\r\n\t\tFunction<Integer,Integer> f=i->i*i;\r\n\t\tSystem.out.println(\"Using Funtion Interface \"+f.apply(2));\r\n\t\t\r\n\t\t\t\t\r\n\t\t/****Predicate Interface ****/\r\n\t\t\r\n\t\tPredicate<Integer> p=i->i%2==0;\r\n\t\tSystem.out.println(\"Using Perdicate Interface \"+p.test(100));\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t/**** Using Filter method ***/\r\n\t\tList<String> names = Arrays.asList(\"Melisandre\", \"Sansa\", \"Jon\", \"Daenerys\", \"Joffery\");\r\n\r\n\t\tList<String> longnames = names.stream() // converting the list to stream\r\n\t\t\t\t.filter(str -> str.length() > 6) // filter the stream to create\r\n\t\t\t\t.collect(Collectors.toList()); // collect the final stream and convert it to a List\r\n\r\n\t\tSystem.out.println(longnames);\r\n\t\t\r\n\t\t/**** Using Map method ***/\r\n\r\n\t\tList<Integer> num = Arrays.asList(1, 2, 3, 4, 5, 6);\r\n\t\tList<Integer> sqrList = num.stream().map(n -> n * n).collect(Collectors.toList());\r\n\t\tSystem.out.println(sqrList);\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public interface Transformer<T, R> extends Function<Observable<T>, Publisher<? extends R>> {\n \n }",
"public interface Lambda<T> {\n\n\t\t/** Apply the lambda.\n\t\t *\n\t\t * @param object - the object on whic hthe lambda must be applied.\n\t\t */\n\t\tvoid apply(T object);\n\n\t}",
"public interface TransformFunc<FROM, TO>\r\n{\r\n TO transform(FROM source);\r\n}",
"public interface Predicate<I> extends Function<I,Boolean> {}",
"@FunctionalInterface\n\tinterface RequestHandler {\n\t public Request handle(Request req);\n\n\t // !!! write a method handle that accept request and returns new request here\n\t // it allows to use lambda expressions for creating handlers below\n\n\t // !!! write a default method for combining this and other handler single one\n\t // the order of execution may be any but you need to consider it when composing handlers\n\t // the method may has any name\n\t \n\t default RequestHandler combine(RequestHandler h) {\n\t \t\n\t \treturn req -> h.handle(this.handle(req));\n\t }\n\t \n\t \n\t}",
"interface MyNumberType {\n Integer transform(Integer n1);\n\n default MyNumberType andThen(MyNumberType after) {\n Objects.requireNonNull(after);\n return (nt) -> after.transform(transform(nt));\n }\n}",
"@FunctionalInterface\npublic interface PentaFunction<T, U, V, W, X, R> {\n\tR apply(T t, U u, V v, W w, X x);\n}",
"@FunctionalInterface\npublic interface DogQuerier {\n public boolean test(Dog dog);\n}",
"@Override\n\tpublic void visit(Function arg0) {\n\n\t}",
"private interface FilterFunction\n\t{\n\t\tpublic Boolean filter(Review review);\n\t}",
"public static void main(String[] args){\n SomeFunc<String> reverse = (str) -> new StringBuilder(str).reverse().toString();\n// System.out.println(reverse.func(\"Hello World\"));\n\n // passing lambda expressions as arguments\n// System.out.println(makeHappy((s -> s + \" :)\"), \"Hello Jeff\"));\n\n MyNumberType doubleNum = (nt) -> nt * 2;\n MyNumberType addOneToNum = (nt)-> nt + 1;\n System.out.printf(\"2 doubled is %d, 2 + 1 is %d\", doubleNum.transform(2), addOneToNum.transform(2));\n System.out.printf(\"\\n2 doubled + 1 is %d\", doubleNum.andThen(addOneToNum).transform(2));\n\n// consumerDemo();\n// predicateDemo();\n functionDemo();\n// supplierDemo();\n\n }",
"@FunctionalInterface\npublic interface EventHook<T> {\n\n /**\n * Invokes this Listener with the event\n *\n * @param event The Event being Invoked\n */\n void invoke(T event);\n}",
"@FunctionalInterface\npublic interface Line {\n\n int line(int m, int x, int c);\n\n default void eq() {\n\n }\n}",
"@FunctionalInterface\npublic interface Observer {\n void notify(Event event);\n}",
"default <V> Fn<V, U> compose(Fn<V, T> before){\n Objects.requireNonNull(before);\n return (V v)-> apply(before.apply(v));\n }",
"@FunctionalInterface\npublic interface Advancer<T> {\n boolean tryAdvance(Consumer<T> action);\n}",
"public static void main(String[] args) {\n int num = 10;\n\n // The following line would also cause an error\n // because it would remove the effectively final status from num.\n //num = 5;\n\n MyFunc myLambda = (n) -> {\n // This use of num is OK. It does nto modify num.\n int v = num + n;\n\n // However, the following is illegal because it attempts to modify the value of num.\n //num++;\n\n return v;\n };\n\n\n System.out.println(myLambda.func(5));\n }",
"public interface Transformers {\n\n /**\n * Returns a function which takes a Result and, if it's a success, applies the mapping value to that\n * success, otherwise returning the original failure.\n */\n static <IS, OS, F> Function<Result<IS, F>, Result<OS, F>> onSuccess(Function<IS, OS> mappingFunction) {\n return attempt(mappingFunction.andThen(Result::success));\n }\n\n /**\n * Returns a Consumer which takes a Result and, if it's a Success, passes it to the provided consumer.\n */\n static <S, F> ConsumableFunction<Result<S, F>> onSuccessDo(Consumer<S> consumer) {\n return r -> r.then(onSuccess(peek(consumer)));\n }\n\n /**\n * Returns a function which takes a Result with an Exception failure type and, if it's a success, applies\n * the mapping value to that success, returning a new success unless an exception is thrown, when it\n * returns a failure of that exception. If the input was a failure, it returns that failure.\n */\n static <IS, OS, X extends Exception> Function<Result<IS, Exception>, Result<OS, Exception>> onSuccessTry(\n ThrowingLambdas.ThrowingFunction<IS, OS, X> throwingFunction\n ) {\n return attempt(tryTo(throwingFunction));\n }\n\n\n /**\n * Returns a function which takes a Result and, if it's a success, applies the mapping value\n * to that success, returning a new success unless an exception is thrown, when it\n * returns a failure of the exception-mapper applied to the exception.\n * If the input was a failure, it returns that failure.\n */\n static <IS, OS, F, X extends Exception> Function<Result<IS, F>, Result<OS, F>> onSuccessTry(\n ThrowingLambdas.ThrowingFunction<IS, OS, X> throwingFunction,\n Function<Exception, F> exceptionMapper\n ) {\n return attempt(tryTo(throwingFunction).andThen(onFailure(exceptionMapper)));\n }\n\n /**\n * Returns a function which takes a Result and, if it's a success, applies the provided function\n * to that success - generating a new Result - and returns that Result. Otherwise, returns the\n * original failure.\n */\n static <IS, OS, F, OF extends F> Function<Result<IS, F>, Result<OS, F>> attempt(Function<IS, Result<OS, OF>> mappingFunction) {\n return r -> r.either(mappingFunction.andThen(onFailure((Function<OF, F>) (fv) -> HigherOrderFunctions.upcast(fv))), Result::failure);\n }\n\n /**\n * Returns a function which takes a Result and, if it's a failure, applies the provided function\n * to that failure. Otherwise, returns the original success.\n */\n static <S, IF, OF> Function<Result<S, IF>, Result<S, OF>> onFailure(Function<IF, OF> mappingFunction) {\n return recover(mappingFunction.andThen(Result::failure));\n }\n\n /**\n * Returns a consumer which takes a Result and, if it's a failure, passes it to the provided consumer\n */\n static <S, F> ConsumableFunction<Result<S, F>> onFailureDo(Consumer<F> consumer) {\n return r -> r.then(onFailure(peek(consumer)));\n }\n\n /**\n * Takes a Result of a Stream as a success or a single failure, and returns a Stream of Results\n * containing all the successes, or the single failure.\n *\n * The main use-case for this is to follow mapping over tryTo() on a function which was designed to\n * be flat-mapped over.\n */\n static <S, F> Function<Result<Stream<S>, F>, Stream<Result<S, F>>> unwrapSuccesses() {\n return r -> r.either(\n successes -> successes.map(Result::success),\n failure -> Stream.of(Result.failure(failure))\n );\n }\n\n /**\n * Returns a function which takes a Result and, if it's a failure, applies the provided function to\n * that failure - generating a new Result - and returns that Result. Otherwise, return the original\n * success.\n */\n static <S, IF, OF, OS extends S> Function<Result<S, IF>, Result<S, OF>> recover(Function<IF, Result<OS, OF>> recoveryFunction) {\n return r -> r.either(Result::success, recoveryFunction.andThen(onSuccess((Function<OS, S>) (fv) -> HigherOrderFunctions.upcast(fv))));\n }\n\n /**\n * Returns a function which takes a Result, and converts failures to successes and vice versa.\n */\n static <S, F> Function<Result<S, F>, Result<F, S>> invert() {\n return r -> r.either(Result::failure, Result::success);\n }\n\n /**\n * Returns a function which takes a Result whose success type is itself a Result, and merges the failure cases\n * so we have a flat Result.\n *\n * Note that *most of the time* this shouldn't be required, and indicates using onSuccess() when attempt() would\n * be more appropriate.\n *\n * There are some situations though where we do end up with constructs like this: one example\n * is when a function which returns a Result can throw exceptions (eg, when a Result-returning handler is passed\n * into a database context). Passing that call into a tryTo() will yield a success type of the inner Result, wrapped\n * in an outer Result for the tryTo().\n *\n * If the failure types of the inner and outer failure types do not match, you'll need to either first convert the\n * failures of the outer Result or use the overload which maps the failures of the inner Result.\n */\n static <S, F> Function<Result<Result<S, F>, F>, Result<S, F>> mergeFailures() {\n return attempt(i -> i);\n }\n\n /**\n * Returns a function which takes a Result whose success type is itself a Result, and merges the failure cases\n * so we have a flat Result.\n *\n * Note that *most of the time* this shouldn't be required, and indicates using onSuccess() when attempt() would\n * be more appropriate.\n *\n * There are some situations though where we do end up with constructs like this: one example\n * is when a function which returns a Result can throw exceptions (eg, when a Result-returning handler is passed\n * into a database context). Passing that call into a tryTo() will yield a success type of the inner Result, wrapped\n * in an outer Result for the tryTo().\n *\n * In these cases, it's more likely the inner failure type is domain-specific, so the default approach is to map the\n * outer failure to the inner failure and then merge.\n */\n static <S, F1, F2> Function<Result<Result<S, F1>, F2>, Result<S, F1>> mergeFailures(Function<F2, F1> failureMapper) {\n return r -> r.then(onFailure(failureMapper)).then(mergeFailures());\n }\n}",
"private Function createLambdaFunction()\n {\n return lambdaFunctionBuilder().build();\n }",
"public interface Func<T, R> {\n R call(T t);\n}",
"public Object\n call() throws Exception { \n final ConstArray<?> argv;\n try {\n argv = deserialize(m,\n ConstArray.array(lambda.getGenericParameterTypes()));\n } catch (final BadSyntax e) {\n /*\n * strip out the parsing information to avoid leaking\n * information to the application layer\n */ \n throw (Exception)e.getCause();\n }\n \n // AUDIT: call to untrusted application code\n final Object r = Reflection.invoke(bubble(lambda), target,\n argv.toArray(new Object[argv.length()]));\n return Fulfilled.isInstance(r) ? ((Promise<?>)r).call() : r;\n }",
"public Object lambda23() {\n return this.staticLink.lambda7loupOr(lists.cdr.apply1(this.res));\n }",
"@FunctionalInterface\r\npublic interface ListenerRecognizer {\r\n /**\r\n * Tests whether the given listener can be processed.\r\n * \r\n * @param state an instance of {@link WatchableState} which corresponds to \r\n * a {@code Path} object which is registered with a {@code WatchService}.\r\n * @param event An event for an object that is registered with a WatchService.\r\n * @param listener an object of type EventListener to be tested\r\n * \r\n * @return true if the given listener can be processed by this function\r\n */\r\n boolean test(WatchableState state, WatchEvent event, EventListener listener );\r\n}",
"public interface FunctionalFilterCustomer<T> {\n boolean verify(T t);\n}",
"public interface Filter {\n\n /**\n * do invoke filter.\n * <p>\n * <code>\n * // before filter\n * Result result = invoker.invoke(invocation);\n * // after filter\n * return result;\n * </code>\n *\n * @param invoker service\n * @param invocation invocation.\n * @return invoke result.\n */\n Result invoke(Invoker<?> invoker, Invocation invocation);\n\n}",
"public abstract Out apply(In value);",
"public static void main(String[] args) {\n\n Function<String, String> function1 = (string) -> string +string;\n System.out.println(function1.apply(\"aaa\"));\n\n Function<String,String> function2 =s -> new String(s);\n System.out.println(function2.apply(function2.apply(\"sss\")));\n\n// Function<String, Emp> function = s -> new Emp(s);\n// System.out.println(function.apply(\"yy\"));\n\n Function<String, Emp> function3 = Emp::new;\n System.out.println(function3.apply(\"yy\"));\n }",
"public Object lambda4(Object a, Object b) {\n Object[] objArr = new Object[2];\n objArr[0] = C1259lists.cons(C1259lists.car.apply1(this.elt), a);\n Object[] objArr2 = objArr;\n objArr2[1] = C1259lists.cons(C1259lists.cadr.apply1(this.elt), b);\n return misc.values(objArr2);\n }",
"@FunctionalInterface\n\tpublic interface Expression<V> {\n\t\tV getExpressionResult(Program p);\n\t}",
"@FunctionalInterface\r\npublic interface Command {\r\n\tpublic void execute();\r\n}",
"public interface Func<T> {\n\t\tvoid accept(T a) throws Throwable;\n\t}",
"public Object lambda22(Object i1) {\n Object x = Scheme.applyToArgs.apply2(this.staticLink.sk, i1);\n return x != Boolean.FALSE ? x : this.staticLink.lambda7loupOr(lists.cdr.apply1(this.res));\n }",
"@FunctionalInterface\npublic interface BiIntFunction {\n int apply(int var1, int var2);\n}",
"@FunctionalInterface\npublic interface FunctionalListPage {\n\n List<PageData> getListPage(Page p) throws Exception;\n}",
"private static void ThreadCreationLambdaWay() {\r\n\t\tThread t2 = new Thread(() -> {\r\n\t\t\tSystem.out.println(\"This is a runnable method done in Lambda Expressions > 1.8\");\r\n\t\t});\r\n\t\tt2.start();\r\n\t\t\r\n\t\t// Other way\r\n\t\t\r\n\t\tThread t3 = new Thread(() -> System.out.println(\"This is runnable method done in single line Lambda expressions > 1.8\"));\r\n\t\tt3.start();\r\n\t}",
"public Consumer<String> _1parameterNoReturn() {\n\t\treturn s -> { System.out.println(s); };\n\t\t\t\t// OR\n\t\t// return s -> System.out.println(s); \n\t}",
"default EagerFutureStream<U> doOnEach(final Function<U, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.doOnEach(fn);\n\t}",
"@FunctionalInterface\ninterface Functional {\n String goodbye(String arg);\n}",
"@Test\n public void test1() {\n final Car car = Car.create(Car::new);\n final List<Car> cars = Collections.singletonList(car);\n final Car police = Car.create(Car::new);\n cars.forEach(police::follow);\n cars.forEach(c -> police.follow(c)); // 等价于写成lambda表达式的形式\n }",
"OUT apply( IN in );",
"public void implementFunctionalInterface1() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 1**********\");\n\t\tMyFunctionalInterface lambda = () -> System.out.println(\"Executing...\");\n\t\tlambda.execute();\n\t}",
"static <T> Function<T,SibillaValue> apply(UnaryOperator<SibillaValue> op, Function<T,SibillaValue> f1) {\n return arg -> op.apply(f1.apply(arg));\n }",
"public static interface ChangeListener extends Lambda<Object, Object> {\n public abstract Object apply(Object c);\n }",
"@FunctionalInterface\npublic interface ProgressLogger extends Consumer<Supplier<String>> {\n\n @Override\n void accept(Supplier<String> info);\n\n /**\n * @param info Something that happened\n */\n default void println(Supplier<String> info) {\n accept(info);\n }\n}",
"private Handler wrap (BiFunction<Request, Response, Object> h) {\n return request -> h.apply (request, request.response);\n }",
"interface MyFirstVoidFunctionalInterface {\n\n public void methodOne();\n\n}",
"public <RESULT> OptionalThing<RESULT> map(OptionalThingFunction<? super THING, ? extends RESULT> oneArgLambda) {\n assertOneArgLambdaNotNull(oneArgLambda);\n return (OptionalThing<RESULT>) callbackMapping(oneArgLambda); // downcast allowed because factory is overridden\n }",
"@FunctionalInterface\npublic interface TwoElementPredicate<T> {\n\t\n\t/**\n\t * Defines a functional interface which can be implemented using a lamda function.\n\t * Returns true if the first element t1 of type T is better than the second element t2 of type T,\n * false otherwise.\n * Lambdas that implement this interface need to define what \"better\" means.\n\t * @param <T> t1\n\t * @param <T> t2\n\t * @return the 'better' String, with the lambda defining what \"better\" means.\n\t */\n\tpublic boolean isBetter(T t1, T t2);\n\n}",
"@FunctionalInterface\npublic interface FISample {\n\n void toLowerCase(String v);\n\n default String toUpperCase(String value) {\n return value.toUpperCase();\n }\n}",
"@FunctionalInterface\r\npublic interface RequestListener {\r\n\t/**\r\n\t * Called after a request has been handled.\r\n\t * May change the output.\r\n\t * \r\n\t * @param member The user who made the request\r\n\t * @param input The variables that make up the request\r\n\t * @param output The reply to be sent to the user (can be null)\r\n\t */\r\n\tvoid onRequest(Member member, Map<String, ?> input, JSONObject output);\r\n}",
"@FunctionalInterface\npublic interface ParamsHandlerFunc extends BaseHandlerFunc{\n\n default String handleRequest(Request request, Response response) {\n String check = checkSign(request);\n if (StringUtils.isNotBlank(check)) {\n return check;\n }\n Map<String, String> id = request.params();\n Answer processed = process(id);\n response.status(processed.getCode());\n return dataToJson(processed);\n }\n\n Answer process(Map<String, String> data);\n}",
"public interface PartialApplication {\n\n /**\n * Binds the provided argument to the function, and returns a Supplier with that argument applied.\n *\n * bind(f, a) is equivalent to () -> f.apply(a)\n */\n static <I, O> Supplier<O> bind(Function<I, O> f, I input) {\n return () -> f.apply(input);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new Function with that argument already applied.\n *\n * bind(f, a) is equivalent to b -> f.apply(a, b)\n */\n static <A, B, R> Function<B, R> bind(BiFunction<A, B, R> f, A firstParam) {\n return secondParam -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Supplier with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to () -> f.apply(a, b)\n */\n static <A, B, R> Supplier<R> bind(BiFunction<A, B, R> f, A firstParam, B secondParam) {\n return () -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new BiFunction with that argument already applied.\n *\n * bind(f, a) is equivalent to (b, c) -> f.apply(a, b, c)\n */\n static <A, B, C, R> BiFunction<B, C, R> bind(TriFunction<A, B, C, R> f, A firstParam) {\n return (secondParam, thirdParam) -> f.apply(firstParam, secondParam, thirdParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Function with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to c -> f.apply(a, b, c)\n */\n static <A, B, C, R> Function<C, R> bind(TriFunction<A, B, C, R> f, A firstParam, B secondParam) {\n return thirdParam -> f.apply(firstParam, secondParam, thirdParam);\n }\n}",
"public interface FilterOperation {\n\n boolean check(Map<String, String> values);\n}",
"default <V> Fn<T, V> andThen(Fn<U, V> after){\n Objects.requireNonNull(after);\n return (T t)-> after.apply(apply(t));\n }",
"@FunctionalInterface\npublic interface Func<In, Out> extends Function<In, Out>{\n\n\tdefault Out apply(In in) {\n\t\treturn tryApply(in).get();\n\t}\n\n\tOut checkedApply(In in) throws Exception;\n\n\tdefault int arity(){\n\t\treturn 1;\n\t}\n\n\t@Override\n\tdefault <Last> Func<In, Last> andThen(Function<? super Out, ? extends Last> other) {\n\t\treturn in -> other.apply(apply(in));\n\t}\n\n\t@Override\n\tdefault <First> Func<First, Out> compose(Function<? super First, ? extends In> other) {\n\t\treturn first -> apply(other.apply(first));\n\t}\n\n\tdefault Try<Out> tryApply(In in) {\n\t\treturn Try.of(() -> checkedApply(in));\n\t}\n\n\n\tstatic <Out> Func0<Out> lift(Func0<Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In, Out> Func1<In, Out> lift(Func1<In, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, Out> Func2<In1, In2, Out> lift(Func2<In1, In2, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, In3, Out> Func3<In1, In2, In3, Out> lift(Func3<In1, In2, In3, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, In3, In4, Out> Func4<In1, In2, In3, In4, Out> lift(Func4<In1, In2, In3, In4, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, In3, In4, In5, Out> Func5<In1, In2, In3, In4, In5, Out> lift(Func5<In1, In2, In3, In4, In5, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In> Consumer1<In> lift(Consumer1<In> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2> Consumer2<In1, In2> lift(Consumer2<In1, In2> func) {\n\t\treturn func;\n\t}\n}",
"public void builtInFunctionalInterfaces() {\n\t\tSystem.out.println(\"\\n\\n************Built In Functional Interfaces**********\");\n\t\tList<String> names = Arrays.asList(\"bob\", \"josh\", \"megan\");\n\n\t\tPredicate<String> predicate = s -> s.length() < 5;\n\t\tSystem.out.println(predicate.test(\"Predicate Test\"));\n\t\t// filter uses predicate functional interface\n\t\tList<String> namesWithM = names.stream().filter(name -> name.startsWith(\"m\")).collect(Collectors.toList());\n\n\t\tConsumer<Integer> consumer = a -> System.out.println(\"Print: \" + (a + 10));\n\t\tconsumer.accept(15);\n\t\t// ForEach uses consumer functional interface\n\t\tnames.forEach(name -> System.out.println(\"Hello, \" + name));\n\n\t\tSupplier<String> supplier = () -> \"Print Supplier\";\n\t\tSystem.out.println(supplier.get());\n\n\t\tFunction<String, Integer> function = (s) -> s.length();\n\t\tSystem.out.println(\"String Length: \" + function.apply(\"Function Test\"));\n\n\t\tBinaryOperator<Integer> binaryOperator = (a, b) -> a + b;\n\t\tSystem.out.println(\"Addition: \" + binaryOperator.apply(8, 9));\n\n\t\tUnaryOperator<String> unaryOperator = s -> s.toUpperCase();\n\t\t// ReplaceAll uses unary operator functional interface\n\t\tnames.replaceAll(unaryOperator); // or names.replaceAll(name -> name.toUpperCase());\n\t\tnames.forEach(i -> System.out.print(i + \" \"));\n\n\t\tRunnable runnable = () -> System.out.println(\"Execute Run Method\");\n\t\trunnable.run();\n\n\t\tComparator<Integer> comparator = (a, b) -> b - a;\n\t\tList<Integer> list = Arrays.asList(5, 3, 7, 2, 4);\n\t\tCollections.sort(list, comparator);\n\t\tlist.forEach(i -> System.out.print(i + \" \"));\n\t}",
"private static void useSupplier(Supplier<Integer> expression){}",
"public Object lambda101(Object x) {\n Throwable th;\n Object obj = x;\n Object obj2 = this.lis2;\n Object obj3 = this.$Eq;\n Object obj4 = obj3;\n try {\n return C1259lists.member(obj, obj2, (Procedure) obj3);\n } catch (ClassCastException e) {\n ClassCastException classCastException = e;\n Throwable th2 = th;\n new WrongType(classCastException, \"member\", 3, obj4);\n throw th2;\n }\n }",
"void foo(java.util.function.Consumer<T> c) {}",
"public interface ReadFunctor {\n\n /**\n * Read the output from an eval()\n * \n * @param reader\n * Reader to read from\n * @throws IOException\n * on IO error from reader\n */\n public void doReads(Reader reader) throws IOException;\n\n}",
"@FunctionalInterface\npublic interface ViewProcess {\n public static final ViewProcess EMPTY = (config , req , resp , view) -> {\n };\n\n void process(ServletConfig config , HttpServletRequest request , HttpServletResponse response , View view) throws ServletException , IOException;\n}",
"@FunctionalInterface\ninterface CircleMeasurement {\n /**\n *\n * @param radius circle radius\n * @return the value of circle measure\n */\n double value(double radius);\n}",
"static void consumerDemo() {\n Consumer<Integer> printAgeConsumer = new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.println(\"Age is \" + integer);\n }\n };\n // call the method\n printAgeConsumer.andThen(age -> System.out.println(\"Again age is \" + age)).accept(25);\n\n // using lambda\n Consumer<Integer> printAgeWithLambda = (age) -> System.out.println(\"Age with lambda is \" + age);\n printAgeWithLambda.andThen(age -> System.out.println(\"Again age with lambda us \" + age))\n .accept(23); // this value will be given to each consumer\n }",
"@FunctionalInterface\npublic interface ConnectionCallback<T> {\n T apply(Connection connection);\n}",
"private static void createThreadUsingLambdaExpressions() {\n\t\tRunnable r = () -> {System.out.println(\"Lambda Expression thread is executed.\");};\n\t\tThread t = new Thread(r);\n\t\tt.start();\n\t}",
"static <T, U, V> Fn<Fn<T, U>, Fn<Fn<U, V>, Fn<T, V>>> higherOrderAndThen(){\n return tuFn -> uvFn -> (T t) -> uvFn.apply(tuFn.apply(t));\n }",
"void apply(T input);",
"public interface Function<IN, OUT> {\n\n /**\n * Compute the result of applying the function to the input argument\n *\n * @param in the input object\n * @return the function result\n */\n OUT apply( IN in );\n\n}",
"@FunctionalInterface\npublic interface FailableRunnable {\n\n /**\n * Executes a side-effectful computation.\n *\n * @throws Exception\n * if it fails\n */\n public void run() throws Exception;\n}",
"@FunctionalInterface\npublic interface PersonComparator <T, R extends Comparable> {\n Function<T, R> getValue(PersonSearchParameters parameters);\n}",
"void visitOperatorFunction(OperatorFunction operator);",
"public interface ReduceFunction {\n String reduce(String hash);\n}",
"<R> ProcessOperation<R> map(RowMapper<R> rowMapper);",
"public static <U, R> Function<MonoT<U>, MonoT<R>> lift(Function<? super U, ? extends R> fn) {\n return optTu -> optTu.map(input -> fn.apply(input));\n }"
]
| [
"0.63568896",
"0.61694294",
"0.5994413",
"0.5986484",
"0.59506065",
"0.59279644",
"0.5824255",
"0.58230114",
"0.5800921",
"0.5762137",
"0.5753535",
"0.57387745",
"0.57084334",
"0.5676255",
"0.5666692",
"0.56590605",
"0.56433666",
"0.563977",
"0.5595666",
"0.5593145",
"0.5573902",
"0.5572051",
"0.55616885",
"0.5546879",
"0.5546676",
"0.5546479",
"0.5536743",
"0.5536133",
"0.55338675",
"0.55201864",
"0.55131197",
"0.55099076",
"0.55076355",
"0.55068266",
"0.550422",
"0.55000865",
"0.546629",
"0.5460682",
"0.5446757",
"0.54438496",
"0.5442858",
"0.5429072",
"0.53969324",
"0.53946614",
"0.53938496",
"0.53938437",
"0.5391566",
"0.53887355",
"0.53861487",
"0.53846425",
"0.53799224",
"0.53640985",
"0.53385484",
"0.5338096",
"0.53314185",
"0.53291744",
"0.5324889",
"0.5322027",
"0.5319146",
"0.5306001",
"0.5303266",
"0.5302053",
"0.53001136",
"0.52946603",
"0.52873695",
"0.5287057",
"0.5286857",
"0.5283531",
"0.52768695",
"0.5272635",
"0.5268256",
"0.5252063",
"0.5241732",
"0.5233653",
"0.52324957",
"0.52323776",
"0.5228379",
"0.52182394",
"0.5217297",
"0.5217083",
"0.52167296",
"0.52045906",
"0.5204253",
"0.5201216",
"0.5190165",
"0.51890004",
"0.5188011",
"0.5183675",
"0.51809907",
"0.5176129",
"0.5175756",
"0.51725036",
"0.51675975",
"0.51637894",
"0.5160877",
"0.51268446",
"0.51247644",
"0.51231796",
"0.5117814",
"0.5115545"
]
| 0.5534359 | 28 |
Finds all maximal sets of n > 4 collinear points | public FastCollinearPoints(final Point[] inPoints) {
if (inPoints == null) {
// an argument to the constructor is null
throw new IllegalArgumentException();
}
// check for null points
for (final Point inPoint : inPoints) {
if (inPoint == null) {
throw new IllegalArgumentException("null point");
}
}
final Point[] points = inPoints.clone();
Arrays.sort(points); // sort the points in ascending order
// check for repeated points
if (points.length != Stream.of(points).distinct().count()) {
throw new IllegalArgumentException("repeated point(s)");
}
// find all sets of >= 4 collinear points by sorting relative slopes
this.segments = (
Stream.of(points)
// for each collinear segment
.map(
// map each "refPoint" to a list of points (as an array)
refPoint -> (
// stream a copy of points
Stream.of(points.clone())
// sorted by (segment) slope, relative to "refPoint"
.sorted(refPoint.slopeOrder())
// group points by slope relative to "refPoint"
.collect(
Collectors.groupingBy(
refPoint::slopeTo,
Collectors.mapping(identity(), toList())
)
)
.entrySet()
// stream each grouped slope/points entry
.stream()
// filter out groups smaller than size 3
.filter(e -> e.getValue().size() >= 3)
// construct sorted point list for each group
.map(
e -> {
final List<Point> v = e.getValue();
final List<Point> l = new ArrayList<>(v.size() + 1);
l.add(refPoint);
l.addAll(v);
l.sort(naturalOrder());
return l;
}
)
)
)
// concatenate all streams of grouped slope/points entries
.flatMap(s -> s)
// collect into a "super-list" of grouped slope/points entries
.collect(Collectors.toList())
// convert to a stream of grouped slope/points entries
.stream()
// remove duplicates
.distinct()
// map each into an instance of the target "LineSegment" type
.map(lp -> new LineSegment(lp.get(0), lp.get(lp.size() - 1)))
// return an array containing all streamed entries
.toArray(LineSegment[]::new)
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Set<V> findMaximalConnectedSubset(Graph<V, E> g, Set<V> X, V v1, V v2, V v5)\n {\n Set<V> FPrime = new ConnectivityInspector<>(g).connectedSetOf(v5);\n FPrime.removeIf(\n t -> t != v5 && isYXComplete(g, t, X) || v1 == t || v2 == t || g.containsEdge(v1, t)\n || g.containsEdge(v2, t));\n return FPrime;\n }",
"private static int[][] removeCollinear(int[][] pointSet)\n {\n int numCollinear = 0;\n for (int i = 1; i<= pointSet[0].length-2; i++)\n {\n if (((pointSet[0][i]-pointSet[0][0])*(pointSet[1][i+1]-pointSet[1][0]))-\n ((pointSet[0][i+1]-pointSet[0][0])*(pointSet[1][i]-pointSet[1][0])) == 0)\n numCollinear++;\n }\n if (numCollinear == 0)\n return pointSet;\n\n int[][] pointSetTemp = new int[2][pointSet[0].length-numCollinear];\n pointSetTemp[0][0] = pointSet[0][0]; pointSetTemp[1][0] = pointSet[1][0];\n int j=1;\n for (int i = 1; i<= pointSet[0].length-2; i++)\n {\n if (((pointSet[0][i]-pointSet[0][0])*(pointSet[1][i+1]-pointSet[1][0]))-\n ((pointSet[0][i+1]-pointSet[0][0])*(pointSet[1][i]-pointSet[1][0])) == 0)\n {\n int d1 = Math.abs((pointSet[0][i]-pointSet[0][0])^2 + (pointSet[1][i]-pointSet[1][0])^2);\n int d2 = Math.abs((pointSet[0][i+1]-pointSet[0][0])^2 + (pointSet[1][i+1]-pointSet[1][0])^2);\n if (d1 > d2)\n {\n pointSetTemp[0][j] = pointSet[0][i]; pointSetTemp[1][j] = pointSet[1][i];\n i++; j++;\n }\n else\n {\n pointSetTemp[0][j] = pointSet[0][i+1]; pointSetTemp[1][j] = pointSet[1][i+1];\n i++; j++;\n }\n }\n else\n {\n pointSetTemp[0][j] = pointSet[0][i]; pointSetTemp[1][j] = pointSet[1][i];\n j++;\n }\n }\n if (j < pointSetTemp[0].length)\n {\n pointSetTemp[0][j] = pointSet[0][pointSet[0].length-1];\n pointSetTemp[1][j] = pointSet[1][pointSet[0].length-1];\n }\n return pointSetTemp;\n }",
"public int getMaxCombinationsInRegion();",
"private ArrayList<ArrayList<Vector2i>> identifyClustersByGreedy(LinkedList<ArrayList<PositionAndColor>> cluster, int numOfColors, int ignoreSize) {\n\t\tArrayList<ArrayList<Vector2i>> bestMapping = new ArrayList<ArrayList<Vector2i>>();\n\t\tint activeClu = 0;\n\t\tfor (ArrayList<PositionAndColor> c : cluster) {\n\t\t\tboolean[] added = new boolean[cluster.size() + 1];\n\t\t\tArrayList<Vector2i> tempMapped = new ArrayList<Vector2i>();\n\t\t\tfor (int idx = 0; idx < numOfColors; idx++) {\n\t\t\t\tint posBest = -1;\n\t\t\t\tint diffBest = Integer.MAX_VALUE;\n\t\t\t\tint sizeBest = 0;\n\t\t\t\tint position = 0;\n\t\t\t\tfor (int innerIdx = 0; innerIdx < cluster.size(); innerIdx++) {\n\t\t\t\t\tif (innerIdx != activeClu && cluster.get(innerIdx).size() > ignoreSize)\n\t\t\t\t\t\tif (Math.abs(cluster.get(innerIdx).size() - c.size()) < diffBest && added[position] == false) {\n\t\t\t\t\t\t\tposBest = position;\n\t\t\t\t\t\t\tdiffBest = Math.abs(cluster.get(innerIdx).size() - c.size());\n\t\t\t\t\t\t\tsizeBest = cluster.get(innerIdx).size();\n\t\t\t\t\t\t}\n\t\t\t\t\tposition++;\n\t\t\t\t}\n\t\t\t\tif (posBest != -1) {\n\t\t\t\t\ttempMapped.add(new Vector2i(posBest, sizeBest));\n\t\t\t\t\tadded[posBest] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbestMapping.add(tempMapped);\n\t\t\tactiveClu++;\n\t\t}\n\t\treturn bestMapping;\n\t}",
"static long gridlandMetro(long n, int m, int k, int[][] track) {\n Map<Integer, Stack<int[]>> map = new HashMap<>();\n for (int i = 0; i < k; i++) {\n int r = track[i][0];\n int c1 = track[i][1];\n int c2 = track[i][2];\n Stack<int[]> stack = map.get(r);\n if (stack == null) {\n stack = new Stack<>();\n stack.push(new int[] { c1, c2 });\n map.put(r, stack);\n } else {\n int[] c = stack.peek();\n if (c[1] >= c1)\n c[1] = Math.max(c[1], c2);\n else\n stack.push(new int[] { c1, c2 });\n }\n }\n return (long) n * m - map.values().stream().flatMap(Collection::stream).mapToLong(c -> c[1] - c[0] + 1).sum();\n}",
"private static int[][] findConvexHull(int[][] pointSet)\n {\n Stack<Integer> convexHullStack = new Stack<Integer>();\n if (pointSet[0].length > 3)\n {\n convexHullStack.push(0); convexHullStack.push(1); convexHullStack.push(2);\n for (int i = 3; i<= pointSet[0].length-1; i++)\n {\n Integer top = convexHullStack.pop();\n Integer nextToTop = convexHullStack.pop();\n while (((pointSet[0][top]-pointSet[0][nextToTop])*(pointSet[1][i]-pointSet[1][nextToTop]))-\n ((pointSet[0][i]-pointSet[0][nextToTop])*(pointSet[1][top]-pointSet[1][nextToTop])) <= 0)\n {\n top = nextToTop;\n nextToTop = convexHullStack.pop();\n }\n convexHullStack.push(nextToTop);\n convexHullStack.push(top);\n convexHullStack.push(i);\n }\n\n int[][] convexHull = new int[2][convexHullStack.size()];\n for (int i = convexHull[0].length-1; i>=0; i--)\n {\n int temp = convexHullStack.pop();\n convexHull[0][i] = pointSet[0][temp];\n convexHull[1][i] = pointSet[1][temp];\n }\n return convexHull;\n }\n else\n {\n return pointSet;\n }\n }",
"private void obtainRefiningPoints(ArrayList<double[]> points2d_in, Matrix P, double gridSize_in, int gridCount_in[], ArrayList<double[]> points2d_out, ArrayList<double[]> points3d_out) {\n\t\tdouble fuzziness = 25;\n\t\tfor (int x = (gridCount_in[0] > 1 ? 1 : 0); x < gridCount_in[0]; x += 2) {\n\t\t\tfor (int y = (gridCount_in[1] > 1 ? 1 : 0); y < gridCount_in[1]; y += 2) {\n\t\t\t\tfor (int z = 1; z < gridCount_in[2]; z += 2) {\n\t\t\t\t\tMatrix x3D = new Matrix(4, 1);\n\t\t\t\t\tx3D.set(0, 0, x * gridSize_in);\n\t\t\t\t\tx3D.set(1, 0, y * gridSize_in);\n\t\t\t\t\tx3D.set(2, 0, z * gridSize_in);\n\t\t\t\t\tx3D.set(3, 0, 1.0);\n\t\t\t\t\tMatrix x2D = P.mul(x3D);\n\t\t\t\t\tx2D = x2D.div(x2D.get(2));\n\t\t\t\t\tdouble minDistance = 100000;\n\t\t\t\t\tint minDistanceIndex = 0;\n\t\t\t\t\tfor (int j=0;j<points2d_in.size();j++) {\n\t\t\t\t\t\tdouble distance = Math.pow(x2D.get(0) - points2d_in.get(j)[0], 2) + Math.pow(x2D.get(1) - points2d_in.get(j)[1], 2);\n\t\t\t\t\t\tif (distance < minDistance) {\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t\tminDistanceIndex = j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (minDistance < fuzziness) {\n\t\t\t\t\t\tpoints2d_out.add(points2d_in.get(minDistanceIndex));\n\t\t\t\t\t\tpoints3d_out.add(new Matrix(x3D).data);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void convexHull(int n) {\n // There must be at least 3 points\n if (n < 3) return;\n\n // Initialize Result\n Vector<Marker> hull = new Vector<>();\n\n // Find the leftmost point\n int l = 0;\n for (int i = 1; i < n; i++)\n if (markers.get(i).getPosition().longitude < markers.get(l).getPosition().longitude)\n l = i;\n\n // Start from leftmost point, keep moving\n // counterclockwise until reach the start point\n // again. This loop runs O(h) times where h is\n // number of points in result or output.\n int p = l, q;\n do {\n // Add current point to result\n hull.add(markers.get(p));\n\n // Search for a point 'q' such that\n // orientation(p, x, q) is counterclockwise\n // for all points 'x'. The idea is to keep\n // track of last visited most counterclock-\n // wise point in q. If any point 'i' is more\n // counterclock-wise than q, then update q.\n q = (p + 1) % n;\n\n for (int i = 0; i < n; i++) {\n // If i is more counterclockwise than\n // current q, then update q\n if (orientation(p, i, q)\n == 2)\n q = i;\n }\n\n // Now q is the most counterclockwise with\n // respect to p. Set p as q for next iteration,\n // so that q is added to result 'hull'\n p = q;\n\n } while (p != l); // While we don't come to first\n\n drawer = new ArrayList<>(hull);\n }",
"public BruteCollinearPoints(Point[] points){\n int count_temp = 0;\n int length = points.length;\n LineSegment[] Segment_temp = new LineSegment[50 * length];\n // sort the points array;\n Arrays.sort(points);\n // find collinear points using brute force method;\n for(int n = 0; n < length - 1; n++){\n if(points[n].slopeTo(points[n + 1]) == Double.NEGATIVE_INFINITY)\n throw new java.lang.IllegalArgumentException();\n }\n for(int i = 0; i < length - 3; i++){\n for(int j = i + 1; j < length - 2; j++) {\n for (int k = j + 1; k < length - 1; k++) {\n for (int l = k + 1; l < length; l++) {\n double slope_1 = points[i].slopeTo(points[j]);\n double slope_2 = points[i].slopeTo(points[k]);\n double slope_3 = points[i].slopeTo(points[l]);\n if (slope_1 == slope_2 && slope_2 == slope_3\n && points[i].compareTo(points[j]) < 1\n && points[j].compareTo(points[k]) < 1\n && points[k].compareTo(points[l]) < 1) {\n Segment_temp[count_temp] = new LineSegment(points[i], points[l]);\n count_temp++;\n }\n }\n }\n }\n }\n // resize the Segment array;\n Segment = new LineSegment[count_temp];\n for(int k = 0; k < count_temp; k++){\n Segment[k] = Segment_temp[k];\n }\n count = count_temp;\n }",
"public int[] findAnyPairIndexesWhileLCMMaximized() {\n if (seq.length < 2) {\n return null;\n }\n int size = 0;\n for (int i = 1; i <= m; i++) {\n size += m / i;\n }\n\n IntegerMultiWayDeque deque = new IntegerMultiWayDeque(m + 1, size);\n for (int i = 1; i <= m; i++) {\n for (int j = i; j <= m; j += i) {\n if (!indexesOfSeq.isEmpty(j)) {\n deque.addLast(i, j / i);\n }\n }\n }\n\n long lcm = -1;\n int v1 = 0;\n int v2 = 0;\n\n for (int i = m; i >= 1; i--) {\n if (!indexesOfSeq.isEmpty(i) && indexesOfSeq.peekFirst(i) != indexesOfSeq.peekLast(i)) {\n lcm = v1 = v2 = i;\n break;\n }\n }\n\n IntegerVersionArray iva = new IntegerVersionArray(m + 1);\n IntegerDequeImpl stack = new IntegerDequeImpl(m);\n for (int i = 1; i <= m; i++) {\n iva.clear();\n stack.clear();\n while (!deque.isEmpty(i)) {\n int last = deque.removeLast(i);\n factorize(last);\n int total = ie(iva, allFactors.size() - 1, 1, 0);\n if (total > 0) {\n int pop = 0;\n while (total > 0) {\n pop = stack.removeLast();\n if (GCDs.gcd(pop, last) == 1) {\n total--;\n }\n add(iva, pop, -1);\n }\n long l = LCMs.lcm(last, pop) * i;\n if (l > lcm) {\n lcm = l;\n v1 = last * i;\n v2 = pop * i;\n }\n }\n add(iva, last, 1);\n stack.addLast(last);\n }\n }\n\n return new int[]{indexesOfSeq.peekFirst(v1), indexesOfSeq.peekLast(v2)};\n }",
"public int[] findAnyPairIndexesWhileLCMMinimized() {\n if (seq.length < 2) {\n return null;\n }\n int size = 0;\n for (int i = 1; i <= m; i++) {\n size += m / i;\n }\n\n IntegerMultiWayDeque deque = new IntegerMultiWayDeque(m + 1, size);\n for (int i = 1; i <= m; i++) {\n for (int j = i; j <= m; j += i) {\n if (!indexesOfSeq.isEmpty(j)) {\n deque.addLast(i, j / i);\n }\n }\n }\n\n long lcm = INF;\n int v1 = 0;\n int v2 = 0;\n\n for (int i = 1; i <= m; i++) {\n if (!indexesOfSeq.isEmpty(i) && indexesOfSeq.peekFirst(i) != indexesOfSeq.peekLast(i)) {\n lcm = v1 = v2 = i;\n break;\n }\n }\n\n IntegerVersionArray iva = new IntegerVersionArray(m + 1);\n IntegerDequeImpl stack = new IntegerDequeImpl(m);\n for (int i = 1; i <= m; i++) {\n iva.clear();\n stack.clear();\n while (!deque.isEmpty(i)) {\n int last = deque.removeFirst(i);\n factorize(last);\n int total = ie(iva, allFactors.size() - 1, 1, 0);\n if (total > 0) {\n int pop = 0;\n while (total > 0) {\n pop = stack.removeLast();\n if (GCDs.gcd(pop, last) == 1) {\n total--;\n }\n add(iva, pop, -1);\n }\n long l = LCMs.lcm(last, pop) * i;\n if (l < lcm) {\n lcm = l;\n v1 = last * i;\n v2 = pop * i;\n }\n }\n add(iva, last, 1);\n stack.addLast(last);\n }\n }\n\n return new int[]{indexesOfSeq.peekFirst(v1), indexesOfSeq.peekLast(v2)};\n }",
"static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }",
"public int[] mostConstrained()\n\t{\n\t\tint lowest = 123456; //initialized with very high number\n\t\tint[] mostConstrained = new int[2];\n\t\tfor(int r = 0; r < board.length; r++)\n\t\t{\n\t\t\tfor(int c = 0; c < board.length; c++)\n\t\t\t{\n\t\t\t\tif(board[r][c] == 0) //only checks spots on board that are 0\n\t\t\t\t{\n\t\t\t\t\tint count = 0; //counts the number of numbers that can be placed at s spot\n\t\t\t\t\tfor(int i = 1; i < 10; i++) //goes through numbers 1-9 and checks if the numbers can be placed at the spot\n\t\t\t\t\t{\n\t\t\t\t\t\tif(canPlace(r,c,i))\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tif(count < lowest) \n\t\t\t\t\t{\n\t\t\t\t\t\tlowest = count;\n\t\t\t\t\t\tmostConstrained[0] = r; \n\t\t\t\t\t\tmostConstrained[1] = c;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mostConstrained;\n\t}",
"public BruteCollinearPoints(Point[] points) {\n // Throw an IllegalArgumentException if the argument to the constructor is null.\n if (points == null)\n throw new IllegalArgumentException(\"the argument to the constructor is null\");\n // Throw an IllegalArgumentException if any point in the array is null.\n for (Point point : points)\n if (point == null)\n throw new IllegalArgumentException(\"any point in the array is null\");\n\n Point[] pointsCopy = points.clone();\n Arrays.sort(pointsCopy);\n int n = pointsCopy.length;\n\n // Throw an IllegalArgumentException if array contains a repeated points.\n for (int i = 0; i < n - 1; i++)\n if (pointsCopy[i].compareTo(pointsCopy[i + 1]) == 0)\n throw new IllegalArgumentException(\"array contains a repeated points\");\n\n Point[] fourPoints = new Point[4];\n for (int ip = 0; ip < n - 3; ip++) {\n fourPoints[0] = pointsCopy[ip];\n for (int iq = ip + 1; iq < n - 2; iq++) {\n fourPoints[1] = pointsCopy[iq];\n for (int ir = iq + 1; ir < n - 1; ir++) {\n fourPoints[2] = pointsCopy[ir];\n for (int is = ir + 1; is < n; is++) {\n fourPoints[3] = pointsCopy[is];\n if (areCollinear(fourPoints)) {\n addSegment(fourPoints[0], fourPoints[3]);\n }\n }\n }\n }\n }\n }",
"@Test void selectBestRegionsFern_largerN() {\n\t\tTldDetection<GrayU8> alg = new TldDetection<>();\n\t\talg.config = new ConfigTld();\n\t\talg.config.maximumCascadeConsider = 20;\n\n\t\t// check eliminate ones which are more N than P\n\t\tfor( int i = 0; i < 10; i++ ) {\n\t\t\talg.fernInfo.grow();\n\t\t\talg.fernInfo.get(i).sumP = 6;\n\t\t\talg.fernInfo.get(i).sumN = 6;\n\t\t}\n\n\t\t// larger max N will make its likelihood smaller\n\t\talg.selectBestRegionsFern(300,200);\n\n\t\tassertEquals(0,alg.fernRegions.size());\n\t}",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) {\n throw new java.lang.IllegalArgumentException();\n }\n for (Point p: points) {\n if (p == null) {\n throw new java.lang.IllegalArgumentException();\n }\n }\n\n Point[] copyPoints = points.clone();\n Arrays.sort(copyPoints); //now copyPoints sorted by y-coordinate\n for (int i = 1; i < copyPoints.length; i++) {\n if (copyPoints[i-1].compareTo(copyPoints[i]) == 0) {\n throw new java.lang.IllegalArgumentException();\n }\n }\n\n for (int p = 0; p < copyPoints.length - 3; p++) {\n for (int q = p + 1; q < copyPoints.length - 2; q++) {\n for (int r = q + 1; r < copyPoints.length - 1; r++) {\n for (int s = r + 1; s < copyPoints.length; s++) {\n if (isCollinear(copyPoints[p], copyPoints[q], copyPoints[r], copyPoints[s])) {\n segments.add(new LineSegment(copyPoints[p], copyPoints[s]));\n }\n }\n }\n }\n }\n }",
"private void findLargestNNIPointsIndexPair(float ratioInh, float ratioAct) {\n ArrayList<Point> pts0 = new ArrayList<Point>();\n ArrayList<Point> pts1 = new ArrayList<Point>();\n Dimension dim = layoutPanel.getLayoutSize();\n int height = dim.height;\n int width = dim.width;\n int size = height * width;\n int newNListSize;\n if (ratioInh > ratioAct) {\n newNListSize = (int) (size * ratioInh);\n pts0 = cnvIndexList2Points(layoutPanel.activeNList);\n pts1 = cnvIndexList2Points(layoutPanel.inhNList);\n } else {\n newNListSize = (int) (size * ratioAct);\n pts0 = cnvIndexList2Points(layoutPanel.inhNList);\n pts1 = cnvIndexList2Points(layoutPanel.activeNList);\n }\n double len = Math.sqrt((double) size / (double) newNListSize);\n\n ArrayList<Point> union = new ArrayList<Point>(pts0);\n union.addAll(pts1);\n double maxNNI = calcNearestNeighborIndex(union);\n ArrayList<Point> maxPts0 = pts0;\n ArrayList<Point> maxPts1 = pts1;\n for (int xShift = (int) Math.floor(-len / 2); xShift <= Math\n .ceil(len / 2); xShift++) {\n for (int yShift = (int) Math.floor(-len / 2); yShift <= Math\n .ceil(len / 2); yShift++) {\n if (xShift == 0 && yShift == 0) {\n continue;\n }\n int xShift0 = (int) Math.ceil((double) xShift / 2);\n int xShift1 = (int) Math.ceil((double) -xShift / 2);\n int yShift0 = (int) Math.ceil((double) yShift / 2);\n int yShift1 = (int) Math.ceil((double) -yShift / 2);\n // System.out.println(\"xShift = \" + xShift + \", xShift0 = \" +\n // xShift0 + \", xShift1 = \" + xShift1);\n ArrayList<Point> sftPts0 = getShiftedPoints(pts0, xShift0,\n yShift0);\n ArrayList<Point> sftPts1 = getShiftedPoints(pts1, xShift1,\n yShift1);\n union = new ArrayList<Point>(sftPts0);\n union.addAll(sftPts1);\n double nni = calcNearestNeighborIndex(union);\n if (nni > maxNNI) {\n maxNNI = nni;\n maxPts0 = sftPts0;\n maxPts1 = sftPts1;\n }\n }\n }\n\n if (ratioInh > ratioAct) {\n layoutPanel.activeNList = cnvPoints2IndexList(maxPts0);\n layoutPanel.inhNList = cnvPoints2IndexList(maxPts1);\n } else {\n layoutPanel.inhNList = cnvPoints2IndexList(maxPts0);\n layoutPanel.activeNList = cnvPoints2IndexList(maxPts1);\n }\n }",
"int[][] Naive(int m, Pointd[] points){\n int[][] tours = new int[m][];\n for(int i=0; i<m; i++){\n if(i<points.length%m) tours[i] = new int[points.length/m+1];\n else tours[i] = new int[points.length/m];\n }\n\n //Select the first point, find the next closest point, find the next closest point to that etc\n boolean[] alreadyInTour = new boolean[points.length];\n double minDistance;\n double distance;\n Pointd pointA;\n Pointd pointB;\n int index = 0;\n int n;\n\n for(int k=0; k<m; k++){\n //Each row of tours, first find a node that isn't in a tour\n n = 0;\n while(alreadyInTour[n]) n++;\n pointA = points[n];\n tours[k][0] = n;\n alreadyInTour[n] = true;\n\n int iterate = 0;\n int j=1;\n while(j<tours[k].length){\n if(!alreadyInTour[iterate]){\n minDistance = Double.MAX_VALUE;\n //Find next closest point to pointA\n for(int i=0; i<points.length; i++){\n pointB = points[i];\n if(!alreadyInTour[i]){\n distance = Math.sqrt( Math.pow(pointA.x - pointB.x, 2) + Math.pow(pointA.y - pointB.y, 2) );\n if(distance < minDistance){\n minDistance = distance;\n index = i;\n }\n }\n }\n //System.out.println(index);\n tours[k][j] = index;\n alreadyInTour[index] = true;\n j++;\n }\n iterate++;\n if(iterate >= points.length) iterate = 0;\n }\n }\n for(int i=0; i<tours.length; i++){\n //System.out.println(Arrays.toString(tours[i]));\n }\n return tours;\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }",
"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\n\t\tint a = 10000;\n\t\tint num = 325489;\n\t\tint [][] lst = new int[a][a];\n\t\tint x = a/4, y = a/4;\n\t\tfinal int x0 = x,y0 = y;\n\t\tint layer = 0,cnt =1;\n\t\twhile (cnt <= num)\n\t\t{\n\t\t\tif (cnt == (2*layer+1)*(2*layer+1))\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty++;\n\t\t\t\tlayer++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer*2-1;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\tx++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty--;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\tx--;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tfor (int j = 0 ; j < layer * 2;j++)\n\t\t\t{\n\t\t\t\tlst[x][y] = cnt;\n\t\t\t\ty++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tint finalX = findx(lst,num);\n\t\tint finalY = findy(lst,num);\n\t\tSystem.out.println(Math.abs(finalY - y) + (finalX - x));\n\t}",
"int removeObstacle(int numRows, int numColumns, List<List<Integer>> lot)\r\n {\r\n \tint m = 0;\r\n \tint n = 0;\r\n \tfor(List<Integer> rowList: lot) {\r\n \t\tfor(Integer num: rowList) {\r\n \t\t\tif(num == 9 ) {\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t\tn++;\r\n \t\t}\r\n \t\tm++;\r\n \t}\r\n \t// to store min cells required to be \r\n // covered to reach a particular cell \r\n int dp[][] = new int[numRows][numColumns]; \r\n \r\n // initially no cells can be reached \r\n for (int i = 0; i < numRows; i++) \r\n for (int j = 0; j < numColumns; j++) \r\n dp[i][j] = Integer.MAX_VALUE; \r\n \r\n // base case \r\n dp[0][0] = 1; \r\n \r\n for (int i = 0; i < lot.size(); i++) {\r\n \tList<Integer> columnList = lot.get(i);\r\n for (int j = 0; j < columnList.size(); j++) { \r\n \r\n // dp[i][j] != INT_MAX denotes that cell \r\n // (i, j) can be reached from cell (0, 0) \r\n // and the other half of the condition \r\n // finds the cell on the right that can \r\n // be reached from (i, j) \r\n if (dp[i][j] != Integer.MAX_VALUE && \r\n (j + columnList.get(j)) < numColumns && (dp[i][j] + 1) \r\n < dp[i][j + columnList.get(j)]\r\n \t\t && columnList.get(j) != 0) \r\n dp[i][j + columnList.get(j)] = dp[i][j] + 1; \r\n \r\n if (dp[i][j] != Integer.MAX_VALUE && \r\n (i + columnList.get(j)) < numRows && (dp[i][j] + 1) \r\n < dp[i + columnList.get(j)][j] && columnList.get(j) != 0) \r\n dp[i + columnList.get(j)][j] = dp[i][j] + 1; \r\n } \r\n } \r\n \r\n if (dp[m - 1][n - 1] != Integer.MAX_VALUE) \r\n return dp[m - 1][n - 1]; \r\n \r\n return -1; \r\n }",
"static long maximumPeople(long[] p, long[] x, long[] y, long[] r) {\n city[] allCity = new city[n];\n for(int i = 0; i < n; i++)\n allCity[i] = new city(p[i], x[i]);\n Arrays.sort(allCity);\n for(int i = 0; i < m; i++){\n long start = y[i] - r[i];\n long end = y[i] + r[i];\n int startindex = Arrays.binarySearch(allCity, new city(0, start));\n if(startindex < 0)\n startindex = - startindex - 1;\n else{\n long value = allCity[startindex].loc;\n while(true){\n startindex--;\n if(startindex < 0)\n break;\n if(allCity[startindex].loc != value)\n break;\n }\n startindex++;\n }\n int endindex = Arrays.binarySearch(allCity, new city(0, end));\n if(endindex < 0)\n endindex = -endindex - 2;\n else{\n long value = allCity[endindex].loc;\n while(true){\n endindex++;\n if(endindex >= n)\n break;\n if(allCity[endindex].loc != value)\n break;\n }\n endindex--;\n }\n for(int j = startindex; j <= endindex; j++){\n if(j >= n)\n break;\n allCity[j].clouds.add(i);\n }\n }\n int prev = -1;\n long sunny = 0;\n long max = 0;\n long accu = 0;\n for(int i = 0; i < n; i++){\n if(allCity[i].clouds.size() == 0)\n sunny += allCity[i].population;\n if(allCity[i].clouds.size() == 1){\n if(allCity[i].clouds.get(0) == prev){\n accu += allCity[i].population;\n if(accu > max)\n max = accu;\n }\n else {\n accu = allCity[i].population;\n prev = allCity[i].clouds.get(0);\n if(accu > max)\n max = accu;\n }\n }\n }\n return max + sunny;\n }",
"static int findIslands(ArrayList<ArrayList<Integer>> a, int N, int M)\n {\n \n // Your code here\n int island_count = 0;\n for(int i=0;i<N;i++){\n for(int j=0;j<M;j++){\n if(a.get(i).get(j) == 1){\n island_count++;\n explore_island(a, i, j);\n }\n }\n }\n \n return island_count;\n \n }",
"public static int maxPoints(Point[] points) {\n\n if (points.length < 2) {\n return points.length;\n }\n Map<LineEquation, Set<Integer>> linesCounter = new HashMap<>();\n int maxNumber = 0;\n\n for (int firstIndex = 0; firstIndex < points.length; firstIndex++) {\n for (int secondIndex = firstIndex + 1; secondIndex < points.length; secondIndex++) {\n Point firstPoint = points[firstIndex];\n Point secondPoint = points[secondIndex];\n\n double slope = (firstPoint.y - secondPoint.y);\n if (slope != 0){\n int XDiff = firstPoint.x - secondPoint.x;\n slope = XDiff == 0 ? Double.MAX_VALUE : (double)slope/(double)XDiff;\n }\n double x = slope == Double.MAX_VALUE ? firstPoint.x : Double.MAX_VALUE;\n double yIntercept = slope == Double.MAX_VALUE ? Double.MAX_VALUE : firstPoint.y -(slope* firstPoint.x);\n\n Set<Integer> integers = linesCounter.computeIfAbsent(new LineEquation(slope, yIntercept, x), k -> new HashSet<>());\n integers.add(firstIndex);\n integers.add(secondIndex);\n\n\n maxNumber = Math.max( maxNumber, integers.size());\n }\n }\n\n return maxNumber;\n\n }",
"int[] MinSubUnion(int x, ArrayList<Integer> vn, ArrayList<Integer> vnComp){\n\tint[] ret = new int[x];\n\t\n\t/*\n\t * Build the set for legitimate users\n\t */\n\t//ArrayList<String> L = new ArrayList<String>();\n\tArrayList<String> LComp = new ArrayList<String>();\n\t//for (int v : vn)\n\t//\tL.addAll(this.LiSet[v]);\n\tfor (int v : vnComp){\n\t\tLComp.removeAll(this.LiSet[v]);\n\t\tLComp.addAll(this.LiSet[v]);\n\t}\n\t\n\tfor(int i = 0; i < x; i ++){\n\t\tint gain = 1000000000;\n\t\tint v_min = -1;\n\t\t\n\t\tfor(int v : vn){\n\t\t\tArrayList<String> temp = this.LiSet[v];\n\t\t\ttemp.removeAll(LComp);\n\t\t\tif(gain > temp.size()){\n\t\t\t\tgain = temp.size();\n\t\t\t\tv_min = v;\n\t\t\t}\n\t\t}\n\t\tif(v_min == -1)\n\t\t\tcontinue;\n\n\t\t//L.removeAll(this.LiSet[v_max]);\n\t\tLComp.removeAll(this.LiSet[v_min]);\n\t\tLComp.addAll(this.LiSet[v_min]);\n\t\tvn.remove(vn.indexOf(v_min));\n\t\tvnComp.add(v_min);\n\t\tret[i] = v_min;\n\t}\n\treturn ret;\n}",
"public void findMaxComb() {\n\t\tHashMap<Integer, HashSet<Integer>> adj = new HashMap<Integer, HashSet<Integer>>();\n\t\tfor (int row=0; row< w; row++) {\n\t\t\tfor (int col=0; col<l; col++) {\n\t\t\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\t\t\t//go left\n\t\t\t\tif (inBoard(row, col-1) && visited[row][col-1] != visited[row][col]) //in board and not equal\n\t\t\t\t\ths.add(visited[row][col-1]);\n\n\t\t\t\t//go up\n\t\t\t\tif (inBoard(row-1, col) && visited[row-1][col] != visited[row][col])\n\t\t\t\t\ths.add(visited[row-1][col]);\n\n\t\t\t\t//go right\n\t\t\t\tif (inBoard(row, col+1) && visited[row][col+1] != visited[row][col])\n\t\t\t\t\ths.add(visited[row][col+1]);\n\n\t\t\t\t//go down\n\t\t\t\tif (inBoard(row+1, col) && visited[row+1][col] != visited[row][col])\n\t\t\t\t\ths.add(visited[row+1][col]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (adj.containsKey(visited[row][col])) {\n\t\t\t\t\tHashSet<Integer> tt = adj.get(visited[row][col]);\n\t\t\t\t\ttt.addAll(hs);//union, return boolen\n\t\t\t\t\tadj.put(visited[row][col], tt); \n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tadj.put(visited[row][col], hs);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tint tempMax = 0;\n\t\tfor (Integer key : adj.keySet()) {\n\t\t\tfor (Integer ele : adj.get(key)) {\n\t\t\t\ttempMax = Math.max(tempMax, map.get(key) + map.get(ele));\n\t\t\t}\n\t\t}\n\t\tmaxComb = tempMax;\n\t}",
"public static List<Point> ParetoOptimal(List<Point> listofPts)\n {\n \n if(listofPts.size() == 1 || listofPts.size() == 0)\n return listofPts;\n \n \n \n \n int pos = listofPts.size() /2 ;\n \n /*\n * quickSelect time complexity (n)\n */\n \n Point median = quickSelect(listofPts, pos, 0, listofPts.size() - 1); \n \n \n \n List<Point> points1 = new ArrayList<Point>();\n List<Point> points2 = new ArrayList<Point>();\n List<Point> points3 = new ArrayList<Point>();\n List<Point> points4 = new ArrayList<Point>();\n \n //O(n)\n if(oldMedian == median)\n {\n \t\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() <= median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n else\n {\n for(int x= 0; x < listofPts.size(); x++)\n {\n if(listofPts.get(x).getX() < median.getX())\n {\n points1.add(listofPts.get(x));\n \n }\n else\n {\n points2.add(listofPts.get(x));\n \n }\n }\n \n \n }\n //O(n)\n int yRightMax = -100000;\n for(int x= 0; x < points2.size(); x++)\n {\n if(points2.get(x).getY() > yRightMax)\n yRightMax = (int) points2.get(x).getY();\n \n }\n \n \n for(int x= 0; x < points1.size() ; x++)\n {\n if(points1.get(x).getY()> yRightMax)\n { \n points3.add(points1.get(x));\n \n } \n }\n \n for(int x= 0; x < points2.size() ; x++)\n {\n if(points2.get(x).getY() < yRightMax)\n {\n points4.add(points2.get(x));\n \n }\n \n }\n //System.out.println(\"points2: \" + points2);\n /*\n * Below bounded by T(n/c) + T(n/2) where c is ratio by which left side is shortened \n */\n oldMedian = median;\n return addTo \n ( ParetoOptimal(points3), \n ParetoOptimal(points2)) ;\n }",
"static int getMaxCoinValMine(int vals[], int n) {\n int[][] maxVals = new int[n][n];\n for(int wind = 0; wind < n; wind++) {\n // start is always less than or equal to end\n for(int start=0, end = start+wind; end<n; start++,end++ ) {\n // no elements element\n if(wind==0) {\n maxVals[start][end] = 0;\n }\n else if(start == end) {\n // only single element\n maxVals[start][end] = vals[start];\n }\n else {\n // start >=0\n // calculate wind[start][end]\n // chose end, then value is val[end] for P1, val[start][end-1] for P2 and val[start][end-2] for P1\n int valEnd = vals[end] + (( start < end-2)? maxVals[start][end-2]:0);\n // chose start, then value is val[start] for P1, val[start+1][end] for P2 and val[start+2][end] for P1\n int valStart = vals[start] + ((start+2 < end)? maxVals[start+2][end]:0);\n maxVals[start][end] = max(valEnd, valStart);\n }\n }\n }\n return maxVals[0][n-1];\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 m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}",
"public List<Integer> findMinHeightTrees(int n, int[][] edges) {\n if (n == 1)\n return Collections.singletonList(0);\n List<Set<Integer>> graph = new ArrayList<>(n);\n for (int i = 0; i < n; i++)\n graph.add(new HashSet<>());\n for (int[] edge : edges) {\n graph.get(edge[0]).add(edge[1]);\n graph.get(edge[1]).add(edge[0]);\n }\n\n List<Integer> oneDegreeNodes = new LinkedList<>();\n for (int i = 0; i < n; i++)\n if (graph.get(i).size() == 1)\n oneDegreeNodes.add(i);\n\n while (n > 2) {\n n -= oneDegreeNodes.size();\n List<Integer> oneDegreeNodes0 = new LinkedList<>();\n for (Integer oneDegreeNode : oneDegreeNodes) {\n Integer neighbor = graph.get(oneDegreeNode).iterator().next();\n graph.get(neighbor).remove(oneDegreeNode);\n if (graph.get(neighbor).size() == 1)\n oneDegreeNodes0.add(neighbor);\n }\n oneDegreeNodes = oneDegreeNodes0;\n }\n return oneDegreeNodes;\n }",
"public int minimumSizeOfSubsetWhoseGCDDivisibleBy(int x) {\n if (dp == null) {\n dp = new int[m + 1];\n Arrays.fill(dp, INF);\n for (int e : seq) {\n dp[e] = 1;\n }\n for (int i = m; i >= 1; i--) {\n for (int j = i + i; j <= m; j += i) {\n if (coprime(j / i) > 0) {\n dp[i] = Math.min(dp[i], dp[j] + 1);\n }\n }\n }\n }\n return dp[x];\n }",
"public int getMaximumPoints();",
"public List<Integer> findMinHeightTrees(int n, int[][] edges) {\n List<Integer> res = new ArrayList<Integer>();\n if (n == 1) {\n res.add(0);\n return res;\n }\n\n List<List<Integer>> adjList = new ArrayList<List<Integer>>();\n for (int i=0; i<n; i++) {\n adjList.add(new ArrayList<Integer>());\n }\n int[] degree = new int[n];\n for (int i=0; i<edges.length; i++) {\n adjList.get(edges[i][0]).add(edges[i][1]);\n adjList.get(edges[i][1]).add(edges[i][0]);\n degree[edges[i][0]]++;\n degree[edges[i][1]]++;\n }\n\n Queue<Integer> queue = new ArrayDeque<Integer>();\n for (int i = 0; i < n; i++) {\n if (degree[i] == 1) {\n queue.offer(i);\n }\n }\n\n while (!queue.isEmpty()) {\n List leaves = new ArrayList<Integer>();\n int size = queue.size();\n for (int i = 0; i < size; i++){\n int curr = queue.poll();\n leaves.add(curr);\n for(int next : adjList.get(curr)) {\n degree[next]--;\n if (degree[next]==1) {\n queue.offer(next);\n }\n }\n }\n res = leaves;\n }\n return res;\n }",
"public int numSolutions(int N, int M) {\n HashMap<Integer, Integer> dp = new HashMap<Integer, Integer>();\n dp.put(0, 1);\n for (int i = 0; i < N; ++i) {\n for (int j = 0; j < M; ++j) {\n HashMap<Integer, Integer> nDp = new HashMap<Integer, Integer>();\n for (Integer key : dp.keySet()) {\n int leftCell = getCell(key, j - 1);\n int upCell = getCell(key, j);\n int count = dp.get(key);\n if (upCell != 0) {\n // This is the last chance to fulfill upCell.\n if (upCell == 1 || upCell == 3) {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n } else {\n // Paint this cell.\n int current = 2 + (leftCell == 0 ? 0 : 1);\n int newKey = setCell(key, j, current);\n if (leftCell != 0) {\n newKey = setCell(newKey, j - 1, leftCell + 1);\n }\n addValue(nDp, newKey, count);\n }\n } else {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n // Paint this cell.\n if (leftCell == 0) {\n newKey = setCell(key, j, 1);\n } else {\n newKey = setCell(key, j - 1, leftCell + 1);\n newKey = setCell(newKey, j, 2);\n }\n addValue(nDp, newKey, count);\n }\n }\n dp = nDp;\n }\n }\n int result = 0;\n for (Integer key : dp.keySet()) {\n boolean valid = true;\n for (int i = 0; i < M; ++i) {\n int current = getCell(key, i);\n if (current == 2 || current == 4) {\n valid = false;\n break;\n }\n }\n if (valid) {\n result = (result + dp.get(key)) % MOD;\n }\n }\n return result;\n }",
"private static Stack<Point> grahamScan(Set<Point> points){\n List<Point> sortedPoints = new ArrayList<>(sortedPointsSet(points));\n\n if(sortedPoints.size() < 3)\n throw new IllegalArgumentException(\"At least three unique points must be provided\");\n if(pointsAreCollinear(sortedPoints))\n throw new IllegalArgumentException(\"Points must not be collinear\");\n\n Stack<Point> stack = new Stack<>();\n stack.push(sortedPoints.get(0));\n stack.push(sortedPoints.get(1));\n stack.push(sortedPoints.get(2));\n\n for (int i = 3; i < sortedPoints.size(); i++) {\n Point top = stack.pop();\n Point nextToTop = stack.peek();\n Point pi = sortedPoints.get(i);\n\n AngleDirection direction = getAngleDirection(nextToTop, top, pi);\n\n switch (direction){\n case COUNTERCLOCKWISE: {\n stack.push(top);\n stack.push(pi);\n break;\n }\n case CLOCKWISE: {\n i--;\n break;\n }\n case COLLINEAR:{\n stack.push(pi);\n break;\n }\n }\n }\n return stack;\n }",
"public static int distinctPaths4(int n) {\n\t\tint[][] mem = new int[n+1][n+1];\n\t\tfor(int j = 1; j <= n; ++j) {\n\t\t\tmem[1][j] = 1;\n\t\t\tmem[j][1] = 1;\n\t\t}\n\t\tfor(int i = 2; i <= n; ++i) {\n\t\t\tfor(int j = 2; j <= n; ++j) {\n\t\t\t\tmem[i][j] = mem[i-1][j] + mem[i][j-1];\n\t\t\t}\n\t\t}\n\t\treturn mem[n][n];\n\t}",
"public float getMaxCY5();",
"public List<Configuration> solve(){\n int group = 0;\n for(List<Configuration> set : input){\n minimize(set);\n\n for(Configuration root : set) {\n root.setGroup(group);\n }\n group++;\n\n }\n\n // Step 2: Preprocess\n sortBySize(input);\n\n // Step 5: Initialize set of partial solutions\n List<Configuration> partialSolutions;\n if(input.size()==0){\n return null;\n }\n else {\n partialSolutions = input.get(0);\n input.remove(partialSolutions);\n }\n\n // Step 6: The compositional computations\n for(List<Configuration> set : input) {\n filter(partialSolutions, setCutoff);\n filter(set, setCutoff);\n partialSolutions = combine(partialSolutions, set, constraints);\n }\n\n // Step 7: Postprocessing\n //greedyPostProcessing(partialSolutions);\n\n return partialSolutions;\n }",
"private static Set<List<Integer>> createNtuples(Dataset dataset) {\r\n\t\tList<Set<Integer>> ntupleList = new ArrayList<>();\r\n\r\n\t\tfor (Integer dimensionSize : dataset.getSize()) {\r\n\t\t\tSet<Integer> set = new TreeSet<>();\r\n\t\t\tfor (Integer i = 0; i < dimensionSize; i++) {\r\n\t\t\t\tset.add(i);\r\n\t\t\t}\r\n\t\t\tntupleList.add(set);\r\n\t\t}\r\n\r\n\t\treturn Sets.cartesianProduct(ntupleList);\r\n\t}",
"private int[] constructCandidates1(int n) {\n int cands[] = new int[subsetCount];\n for (int i = 0; i < subsetCount; i++) {\n cands[i] = i;\n }\n for (int i = 0; i < n; i++) { // Remove currently used sets in partialSol.\n cands[partialSol[i]] = DNU;\n }\n for (int i = 0; i < n; i++) {\n if (getDiff(cands, i, n) == 0) {\n cands[i] = DNU;\n }\n }\n int dnuCount = 0;\n for (int i = 0; i < cands.length; i++) {\n if (cands[i] == DNU) {\n dnuCount++;\n }\n }\n int[] ret = new int[cands.length - dnuCount];\n int retIndex = 0;\n for (int i = 0; i < cands.length; i++) {\n if (cands[i] != DNU) {\n ret[retIndex] = i;\n retIndex++;\n }\n }\n return sortCandidates(ret, n);\n// return ret;\n }",
"static int[] connectedCities(int n, int g, int[] originCities, int[] destinationCities) {\n Map<Integer, TreeSet<Integer>> m1 = new HashMap<>();\n\n Map<Integer, TreeSet<Integer>> m2 = new HashMap<>();\n\n for (int i = 0; i <originCities.length ; i++) {\n TreeSet<Integer> s1 = new TreeSet<>();\n int c=originCities[i];\n for (int j = c; j>=1 ; j--) {\n if(c%j==0)\n s1.add(j);\n }\n m1.put(c,s1);\n }\n\n\n for (int i = 0; i <destinationCities.length ; i++) {\n TreeSet<Integer> s1 = new TreeSet<>();\n int c=destinationCities[i];\n for (int j = c/2; j>=1 ; j--) {\n if(c%j==0)\n s1.add(j);\n }\n m2.put(c,s1);\n }\n\n\n int result [] = new int[originCities.length];\n for (int i = 0; i <originCities.length ; i++) {\n\n int max1 =m1.get(originCities[i]).last();\n\n int max2 =m2.get(destinationCities[i]).last();\n if(max1 <=g)\n result[i]=0;\n else if(max2 <=g)\n result[i]=0;\n else{\n TreeSet<Integer> s1 =m1.get(originCities[i]);\n TreeSet<Integer> s2 =m2.get(destinationCities[i]);\n for (Integer x: s1) {\n if(s2.contains(x)) {\n result[i] = 1;\n break;\n }\n\n }\n }\n\n }\n\n return result;\n\n }",
"public static List<Partition> partition(PointSet points, int m) {\n\t\tPartition A = new Partition();\n\t\tint nFeatures = points.dimension();\n\t\tif(m > points.size())\n\t\t\tthrow new RuntimeException(\"Not enough points to make \" + m + \" partitions\");\n\t\tfor(Point p : points) {\n\t\t\tA.add(p);\n\t\t}\n\t\t\n\t\tList<Partition> S = new ArrayList<>();\n\t\tS.add(A);\n\t\tcalculateDissimilarity(A, nFeatures);\n\t\tint i = 1;\n\t\twhile(i < m) {\n\t\t\tint j = 0;\n\t\t\tfor(int k = 1; k < S.size(); k++)\n\t\t\t\tif(S.get(k).dissimilarity > S.get(j).dissimilarity)\n\t\t\t\t\tj = k;\n\t\t\tPartition Aj = S.get(j);\n\t\t\tPartition Aj1 = new Partition();\n\t\t\tPartition Aj2 = new Partition();\n\t\t\t//partition\n\t\t\tfor(Point p : Aj) {\n\t\t\t\tif(p.feature(Aj.pj) <= Aj.apj + Aj.dissimilarity/2)\n\t\t\t\t\tAj1.add(p);\n\t\t\t\telse\n\t\t\t\t\tAj2.add(p);\n\t\t\t}\n\t\t\tcalculateDissimilarity(Aj1, nFeatures);\n\t\t\tcalculateDissimilarity(Aj2, nFeatures);\n\t\t\tS.remove(Aj);\n\t\t\tS.add(Aj1);\n\t\t\tS.add(Aj2);\n\t\t\ti++;\n\t\t}\n\t\treturn S;\n\t}",
"public static AlgebraicVector[] buildHull(Set<AlgebraicVector> points) throws Failure {\n if (points.size() < 3) {\n fail(\"At least three input points are required for a 2d convex hull.\\n\\n\" + points.size() + \" specified.\");\n }\n AlgebraicVector normal = AlgebraicVectors.getNormal(points); \n if(normal.isOrigin()) {\n fail(\"Cannot generate a 2d convex hull from collinear points\");\n }\n if(!AlgebraicVectors.areOrthogonalTo(normal, points)) {\n fail(\"Cannot generate a 2d convex hull from non-coplanar points\");\n }\n\n // JSweet hates maps keyed by objects, so we'll construct this collection\n // separately, and let the xyTo3dMap use strings as keys.\n Collection<AlgebraicVector> keySet = new ArrayList<>();\n \n // Map each 3d point to a 2d projection and rotate it to the XY plane if necessary.\n // Since the 3d points are coplanar, it will be a 1:1 mapping\n // Later, we'll need to map 2d back to 3d so the 2d vector will be the key\n Map<String, AlgebraicVector> xyTo3dMap = map3dToXY( points, normal, keySet );\n \n // calculate the 2d convex hull\n Deque<AlgebraicVector> stack2d = getHull2d( keySet );\n\n // map the 2d convex hull back to the original 3d points\n AlgebraicVector[] vertices3d = new AlgebraicVector[stack2d.size()];\n \n int i = 0;\n for(AlgebraicVector point2d : stack2d) {\n AlgebraicVector point3d = xyTo3dMap.get( point2d.toString( AlgebraicField.VEF_FORMAT ) );\n // order vertices3d so the normal will point away from the origin \n // to make it consistent with the 3d convex hull algorithm\n vertices3d[i++] = point3d;\n }\n return vertices3d;\n }",
"public Collection<IntPair> findEmptyNeighbors(int x, int y);",
"public List<Integer> largestDivisibleSubset(int[] nums) {\n //1,2,6,18\n if(nums.length == 0){\n return new ArrayList<>();\n }\n Arrays.sort(nums);\n List<Integer>[] cache = new ArrayList[nums.length];\n for(int i=0; i<cache.length; i++){\n List<Integer> list = new ArrayList<>();\n list.add(nums[i]);\n cache[i] = list;\n }\n\n for(int i=nums.length-2; i>=0; i--){\n for(int j=i+1; j<nums.length; j++){\n if(nums[j]%nums[i] == 0 && cache[j].size()+1 > cache[i].size()){\n List<Integer> list = new ArrayList<>();\n list.add(nums[i]);\n list.addAll(cache[j]);\n cache[i] = list;\n }\n }\n }\n\n int maxCnt = 0;\n int pos = 0;\n for(int i=0; i<cache.length; i++){\n if(cache[i].size() > maxCnt){\n maxCnt = cache[i].size();\n pos = i;\n }\n }\n return cache[pos];\n }",
"public static void main(String[] args)throws Exception{\n BufferedReader bf = new BufferedReader(new FileReader(new File(\"data.txt\")));\n\n int t = Integer.parseInt(bf.readLine());\n map = new int[t][t];\n group = new int[t][t];\n for( int i = 0 ; i < t; i ++){\n String[] strArr = bf.readLine().split(\" \");\n for(int j = 0 ; j < t; j ++){\n map[i][j] = Integer.parseInt(strArr[j]);\n }\n }\n int g = 2;\n LinkedList<Point> gQueue = new LinkedList<>();\n for(int i = 0 ; i < t ; i ++){\n for(int j = 0 ; j < t ; j ++){\n if(map[i][j] == 1 && group[i][j] == 0){\n gQueue.add(new Point(i,j));\n while(!gQueue.isEmpty()){\n Point p = gQueue.remove();\n int startI = p.i;\n int startJ = p.j;\n group[startI][startJ] = g;\n for(int k = 0 ; k < 4; k ++){\n int tmpI = startI+mI[k];\n int tmpJ = startJ+mJ[k];\n if(tmpI >=0 && tmpJ >=0 && tmpI < t && tmpJ < t){\n if(group[tmpI][tmpJ] == 0 && map[tmpI][tmpJ] == 1){\n gQueue.add(new Point(tmpI,tmpJ));\n group[tmpI][tmpJ] = g;\n }\n }\n }\n }\n g++;\n }\n }\n }\n LinkedList<Point> queue = new LinkedList<>();\n int cnt = 0;\n while(true) {\n boolean flag = false;\n boolean match = false;\n cnt++;\n for (int i = 0; i < t; i++) {\n for (int j = 0; j < t; j++) {\n if (map[i][j] == cnt) {\n flag = true;\n int sI = i;\n int sJ = j;\n for (int k = 0; k < 4; k++) {\n int tmpI = sI + mI[k];\n int tmpJ = sJ + mJ[k];\n if (tmpI >= 0 && tmpJ >= 0 && tmpI < t && tmpJ < t) {\n if (map[tmpI][tmpJ] == 0) {\n map[tmpI][tmpJ] = map[sI][sJ] + 1;\n group[tmpI][tmpJ] = group[sI][sJ];\n }\n }\n }\n }\n }\n }\n if(!flag){\n break;\n }\n }\n for(int i = 0 ; i < t ; i ++){\n for(int j = 0 ; j < t ; j ++){\n for(int k = 0 ; k < 4 ; k ++){\n int tmpI = i + mI[k];\n int tmpJ = j + mJ[k];\n if (tmpI >= 0 && tmpJ >= 0 && tmpI < t && tmpJ < t) {\n if(group[i][j] != group[tmpI][tmpJ]){\n answer = Math.min(answer,map[i][j]+map[tmpI][tmpJ]);\n }\n }\n }\n }\n }\n System.out.println(answer-2);\n }",
"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 boolean checkPath(int[][] bs, int i) {\n ArrayList<Integer> temp_cP = new ArrayList<Integer>();\r\n Set<Integer> temp_setcP = new HashSet<Integer>();\r\n boolean denoter = true;\r\n while (i == 3) {\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n while (i == 6) {\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n return denoter;\r\n }",
"public int[][] getPlotNumbers(int[][] point, int numberOfMines, int numberOfColumns,\n int numberOfRows) {\n int mineNumber = 1;\n while (mineNumber <= numberOfMines) {\n int columnNumber = mine[mineNumber][1];\n int rowNumber = mine[mineNumber][2];\n\n if (columnNumber == 1 && rowNumber == 1) { // top left corner\n if (point[columnNumber + 1][rowNumber] != 9) {\n point[columnNumber + 1][rowNumber]++;\n }\n if (point[columnNumber + 1][rowNumber + 1] != 9) {\n point[columnNumber + 1][rowNumber + 1]++;\n }\n if (point[columnNumber][rowNumber + 1] != 9) {\n point[columnNumber][rowNumber + 1]++;\n }\n } else if (columnNumber == 1 && (rowNumber != 1 && rowNumber != numberOfRows)) { // left edge\n if (point[columnNumber][rowNumber - 1] != 9) {\n point[columnNumber][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber - 1] != 9) {\n point[columnNumber + 1][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber] != 9) {\n point[columnNumber + 1][rowNumber]++;\n }\n if (point[columnNumber + 1][rowNumber + 1] != 9) {\n point[columnNumber + 1][rowNumber + 1]++;\n }\n if (point[columnNumber][rowNumber + 1] != 9) {\n point[columnNumber][rowNumber + 1]++;\n }\n } else if (columnNumber == 1 && rowNumber == numberOfRows) { // bottom left corner\n if (point[columnNumber][rowNumber - 1] != 9) {\n point[columnNumber][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber - 1] != 9) {\n point[columnNumber + 1][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber] != 9) {\n point[columnNumber + 1][rowNumber]++;\n }\n } else if ((columnNumber != 1 && columnNumber != numberOfColumns) && rowNumber == 1) {\n // top edge\n if (point[columnNumber + 1][rowNumber] != 9) {\n point[columnNumber + 1][rowNumber]++;\n }\n if (point[columnNumber + 1][rowNumber + 1] != 9) {\n point[columnNumber + 1][rowNumber + 1]++;\n }\n if (point[columnNumber][rowNumber + 1] != 9) {\n point[columnNumber][rowNumber + 1]++;\n }\n if (point[columnNumber - 1][rowNumber + 1] != 9) {\n point[columnNumber - 1][rowNumber + 1]++;\n }\n if (point[columnNumber - 1][rowNumber] != 9) {\n point[columnNumber - 1][rowNumber]++;\n }\n } else if (columnNumber == numberOfColumns && rowNumber == 1) { // top right corner\n if (point[columnNumber - 1][rowNumber] != 9) {\n point[columnNumber - 1][rowNumber]++;\n }\n if (point[columnNumber - 1][rowNumber + 1] != 9) {\n point[columnNumber - 1][rowNumber + 1]++;\n }\n if (point[columnNumber][rowNumber + 1] != 9) {\n point[columnNumber][rowNumber + 1]++;\n }\n } else if (columnNumber == numberOfColumns && (rowNumber != 1 && rowNumber != numberOfRows)) {\n // right edge\n if (point[columnNumber][rowNumber - 1] != 9) {\n point[columnNumber][rowNumber - 1]++;\n }\n if (point[columnNumber - 1][rowNumber - 1] != 9) {\n point[columnNumber - 1][rowNumber - 1]++;\n }\n if (point[columnNumber - 1][rowNumber] != 9) {\n point[columnNumber - 1][rowNumber]++;\n }\n if (point[columnNumber - 1][rowNumber + 1] != 9) {\n point[columnNumber - 1][rowNumber + 1]++;\n }\n if (point[columnNumber][rowNumber + 1] != 9) {\n point[columnNumber][rowNumber + 1]++;\n }\n } else if (columnNumber == numberOfColumns && rowNumber == numberOfRows) {\n // bottom right corner\n if (point[columnNumber - 1][rowNumber] != 9) {\n point[columnNumber - 1][rowNumber]++;\n }\n if (point[columnNumber - 1][rowNumber - 1] != 9) {\n point[columnNumber - 1][rowNumber - 1]++;\n }\n if (point[columnNumber][rowNumber - 1] != 9) {\n point[columnNumber][rowNumber - 1]++;\n }\n } else if ((columnNumber != 1 && columnNumber != numberOfColumns)\n && rowNumber == numberOfRows) {\n // bottom edge\n if (point[columnNumber - 1][rowNumber] != 9) {\n point[columnNumber - 1][rowNumber]++;\n }\n if (point[columnNumber - 1][rowNumber - 1] != 9) {\n point[columnNumber - 1][rowNumber - 1]++;\n }\n if (point[columnNumber][rowNumber - 1] != 9) {\n point[columnNumber][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber - 1] != 9) {\n point[columnNumber + 1][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber] != 9) {\n point[columnNumber + 1][rowNumber]++;\n }\n } else if ((columnNumber != 1 && columnNumber != numberOfColumns)\n && (rowNumber != 1 && rowNumber != numberOfRows)) { // not on the edge or corner\n if (point[columnNumber - 1][rowNumber - 1] != 9) {\n point[columnNumber - 1][rowNumber - 1]++;\n }\n if (point[columnNumber][rowNumber - 1] != 9) {\n point[columnNumber][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber - 1] != 9) {\n point[columnNumber + 1][rowNumber - 1]++;\n }\n if (point[columnNumber + 1][rowNumber] != 9) {\n point[columnNumber + 1][rowNumber]++;\n }\n if (point[columnNumber + 1][rowNumber + 1] != 9) {\n point[columnNumber + 1][rowNumber + 1]++;\n }\n if (point[columnNumber][rowNumber + 1] != 9) {\n point[columnNumber][rowNumber + 1]++;\n }\n if (point[columnNumber - 1][rowNumber + 1] != 9) {\n point[columnNumber - 1][rowNumber + 1]++;\n }\n if (point[columnNumber - 1][rowNumber] != 9) {\n point[columnNumber - 1][rowNumber]++;\n }\n }\n mineNumber++;\n }\n return point;\n }",
"public FastCollinearPoints(Point[] points) {\n checkFormNullInput(points);\n\n Point[] clonedInput = points.clone();\n // Sort points to facilitate search of duplicated point and duplicated segments\n Arrays.sort(clonedInput);\n\n ArrayList<LineSegment> arLSPoints = new ArrayList<>();\n\n Point previousI = null;\n for (int i = 0; i < clonedInput.length; i++) {\n Point pointP = clonedInput[i];\n\n // Look for duplicates\n if (previousI != null && pointP.compareTo(previousI) == 0)\n throw new IllegalArgumentException();\n previousI = pointP;\n\n // Copy array (point i excluded)\n Point[] arPointsToProcess = clonedInput.clone();\n\n Comparator<Point> comparatorWithP = pointP.slopeOrder();\n // Sort values by slopeOrder with Point p\n Arrays.sort(arPointsToProcess, comparatorWithP);\n\n // Create LinkedList of collinear points, inited with the first element\n LinkedList<Point> collinearPointsList = new LinkedList<>();\n collinearPointsList.add(arPointsToProcess[0]);\n // First slope between P and first element\n double previousSlope = pointP.slopeTo(arPointsToProcess[0]);\n\n // If collinearCount is not 1, we might be over the loop but with an ongoing collinear computation\n for (int j = 1; j < arPointsToProcess.length || collinearPointsList.size() > 1; j++) {\n // If subsequent elements have same slope with i, then they are part of a segment\n // And they are aded to the collinear LinkedList\n if (j < arPointsToProcess.length && Double.compare(previousSlope, pointP\n .slopeTo(arPointsToProcess[j])) == 0) {\n collinearPointsList.add(arPointsToProcess[j]);\n }\n else {\n // If we have 4 or more collinear connections and the head of the list is the smallest point,\n // then we are sure that this is not a subsegment and we can add the LineSegment\n if (collinearPointsList.size() >= 3\n && pointP.compareTo(collinearPointsList.peek()) < 0) {\n arLSPoints.add(new LineSegment(pointP, arPointsToProcess[j - 1]));\n }\n // Reset LinkedList for attempting other LineSegments\n collinearPointsList.clear();\n if (j < arPointsToProcess.length) {\n // If loop is not over, add point j as initial element\n collinearPointsList.add(arPointsToProcess[j]);\n }\n }\n\n if (j < arPointsToProcess.length)\n previousSlope = pointP.slopeTo(arPointsToProcess[j]);\n }\n }\n\n this.lineSegments = arLSPoints.toArray(new LineSegment[0]);\n }",
"public static Integer[][] operationMaxPooling(Integer[][] matrix, int w, int h, int s) {\n if (s < 1) s = 1;\n int fSizeY = matrix.length;\n int kSizeY = h;\n int fSizeX = matrix[0].length;\n int kSizeX = w;\n int p = 0;\n int i, j;\n Integer[][] output = new Integer[i = ((matrix.length - h) / s) + 1][j = ((matrix[0].length - w) / s) + 1];\n\n //(F x F) * (K x K) = F - K + 1\n //(6 x 6) * (3 x 3) = 4 x 4\n for (int y = 0; y < i; y = y + 1) {\n for (int x = 0; x < j; x = x + 1) {\n //preform convoltion as follows:\n //start at (0, 0) look (kSize, kSize) on img\n //(x, y) ----> (x + kSize, y + kSize) on img\n //add to sum: for each (x, y) multiply by filter[y][x]\n //output[y][x] = sum\n int largest = 0;\n for (int yy = 0; yy < h; yy++) {\n for (int xx = 0; xx < w; xx++) {\n int l = matrix[y + yy][x + xx];\n if (l > largest) largest = l;\n }\n }\n output[y][x] = largest;\n }\n }\n return output;\n }",
"int getMaximalReplaceDistance(int usedColors);",
"static int paintersPartition(int a[], int n, int k)\r\n\t {\r\n\t int start = a[0], end = a[0], minOfMax = -1;\r\n\t \r\n\t //this is to initialise start as max of all array elements and end as sum of all array elements\r\n\t for(int i = 1; i < n; i++)\r\n\t {\r\n\t end += a[i];\r\n\t \r\n\t if(a[i] > start)\r\n\t start = a[i];\r\n\t }\r\n\t \r\n\t while(start <= end)\r\n\t {\r\n\t int mid = start + ((end - start) / 2);\r\n\t \r\n\t if(isValid(a, n, k, mid))\r\n\t {\r\n\t minOfMax = mid; //this will hold one of the valid solution but then to get the most optimal one, we need check further on left side of search space\r\n\t end = mid - 1;\r\n\t }\r\n\t else\r\n\t start = mid + 1;\r\n\t }\r\n\t \r\n\t return minOfMax;\r\n\t }",
"public static void main(String[] args) {\n\t\tList<Long> collatzNumbers = new ArrayList<Long>();\n\t\t// Fill list\n\t\tcollatzNumbers.add(null);\n\t\tfor (int n = 1; n < BOUND; n++)\t{\n\t\t\tcollatzNumbers.add(getNextCollatz(n));\n\t\t}\n\t\t// Follow sequence for all n under BOUND\n\t\tint maxLength = -1;\n\t\tint maxStart = -1;\n\t\tfor (int n = 1; n < BOUND; n++)\t{\n\t\t\tlong current = n;\n\t\t\tint length = 1;\n\t\t\twhile (current != END)\t{\n\t\t\t\tif (collatzNumbers.size() > current)\t{\n\t\t\t\t\tcurrent = collatzNumbers.get((int) current);\n\t\t\t\t} else\t{\n\t\t\t\t\tcurrent = getNextCollatz(current);\n\t\t\t\t}\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\tif (length > maxLength)\t{\n\t\t\t\tmaxLength = length;\n\t\t\t\tmaxStart = n;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Max length: \" + maxLength);\n\t\tSystem.out.println(\"Start nr: \" + maxStart);\n\t}",
"private TreeSet<Integer> getNeightborSets(DisjointSets<Pixel> ds, int root)\n {\n return null; //TODO: remove and replace this line\n }",
"int getMaximalIterationCount();",
"public FastCollinearPoints(Point[] points) {\r\n if(points == null) throw new java.lang.IllegalArgumentException();\r\n\r\n Point[] slopeOrderPoints = points.clone();\r\n int countOfSegments = 0;\r\n LineSegment[] temp_segments = new LineSegment[points.length*points.length];\r\n\r\n for (int i = 0; i < points.length; i++) {\r\n\r\n if(points[i] == null) throw new java.lang.IllegalArgumentException();\r\n\r\n Arrays.sort(slopeOrderPoints, points[i].slopeOrder());\r\n\r\n for (int j = 0; j < slopeOrderPoints.length-1; ++j) {\r\n\r\n Point[] temp_segment = new Point[points.length]; // initiate a temp segment contains all the points at most\r\n temp_segment[0] = points[i]; // one point of the temp segment must be points[i]\r\n int count = 1; // count records how many points the temp segment contains now\r\n\r\n if (points[i].slopeTo(slopeOrderPoints[j]) == points[i].slopeTo(slopeOrderPoints[j+1])) {\r\n while (j < slopeOrderPoints.length - 1) {\r\n temp_segment[count++] = slopeOrderPoints[j];\r\n if (points[i].slopeTo(slopeOrderPoints[j]) == points[i].slopeTo(slopeOrderPoints[j+1])) {\r\n ++j;\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n if (j == slopeOrderPoints.length - 1) {\r\n temp_segment[count++] = slopeOrderPoints[j];\r\n }\r\n\r\n if (count >= 4) {\r\n Point[] segment = new Point[count];\r\n for (int k = 0; k < count; k++) {\r\n segment[k] = temp_segment[k];\r\n }\r\n Arrays.sort(segment);\r\n LineSegment line = new LineSegment(segment[0], segment[count - 1]);\r\n boolean isIn = false;\r\n for (int k = 0; k < countOfSegments; k++) {\r\n if (temp_segments[k].toString().compareTo(line.toString()) == 0) {\r\n isIn = true;\r\n break;\r\n }\r\n }\r\n if (!isIn) {\r\n temp_segments[countOfSegments++] = line;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n numberOfSegments = countOfSegments;\r\n segments = new LineSegment[countOfSegments];\r\n for (int i = 0; i < countOfSegments; i++) {\r\n segments[i] = temp_segments[i];\r\n }\r\n }",
"public int[] findAnyPairIndexesWhileGCDMaximized() {\n if (seq.length < 2) {\n return null;\n }\n\n int g = -1;\n for (int i = m; i >= 1; i--) {\n if (cntOfMultiple[i] >= 2) {\n g = i;\n break;\n }\n }\n\n IntegerArrayList ans = new IntegerArrayList(2);\n for (int i = 0; i < seq.length && ans.size() < 2; i++) {\n if (seq[i] % g == 0) {\n ans.add(i);\n }\n }\n return ans.toArray();\n }",
"private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }",
"public static Integer[] findP4SObs (Graph<Integer,String> g){\n\t\tfor (Integer a : g.getVertices()) {\r\n\t\t\tfor (Integer b: g.getNeighbors(a)) {\r\n\t\t\t\tfor (Integer c: g.getNeighbors(b)) {\r\n\t\t\t\t\tif (c == a || g.isNeighbor(a, c)) continue;\r\n\t\t\t\t\tfor (Integer d : g.getNeighbors(c)) {\r\n\t\t\t\t\t\tif (d == b || g.isNeighbor(b, d) || g.isNeighbor(a, d)) continue;\r\n\t\t\t\t\t\t// now a-b-c-d induce a P4. Find a 5th vertex\r\n\t\t\t\t\t\tfor (Integer x : g.getNeighbors(d)) {\r\n\t\t\t\t\t\t\tif (x == c) continue;\r\n\t\t\t\t\t\t\tif (g.isNeighbor(x,a)) {\r\n\t\t\t\t\t\t\t\tif (!g.isNeighbor(x, b) && !g.isNeighbor(x,c)) {\r\n\t\t\t\t\t\t\t\t\t// have a C5 = abcdx\r\n\t\t\t\t\t\t\t\t\tInteger[] cycle = {a,b,c,d,x};\r\n\t\t\t\t\t\t\t\t\treturn cycle;\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\telse {\r\n\t\t\t\t\t\t\t\t// here, abcd = P4 and x is adj to d and non-adj to a\r\n\t\t\t\t\t\t\t\t// and combination of adjacencies of x to b,c gives obstruction\r\n\t\t\t\t\t\t\t\tInteger[] obstruction = {a,b,c,d,x};\r\n\t\t\t\t\t\t\t\treturn obstruction;\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\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\t\r\n\t\treturn null;\r\n\t}",
"public List<Integer> findMinHeightTrees(int n, int[][] edges) {\n List<Integer> ans = new ArrayList<>();\n if (n == 0) return ans;\n if (n == 1) {\n ans.add(0);\n return ans;\n }\n if (n == 2) {\n ans.add(0);\n ans.add(1);\n return ans;\n }\n\n //build graph\n List<Integer>[] graph = new ArrayList[n];\n for (int i = 0; i < n; i++) {\n graph[i] = new ArrayList<>();\n }\n for (int i = 0; i < edges.length; i++) {\n int v1 = edges[i][0];\n int v2 = edges[i][1];\n\n graph[v1].add(v2);\n graph[v2].add(v1);\n }\n\n //initial leaves\n List<Integer> leaves = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n if (graph[i].size() == 1) {\n leaves.add(i);\n }\n }\n\n int count = n;\n\n while (count > 2) {\n int leasize = leaves.size();\n count -= leasize;\n List<Integer> newleaves = new ArrayList<Integer>();\n for (int i = 0; i < leasize; i++) {\n int leavenode = leaves.get(i);\n int verToleave = graph[leavenode].get(0);\n graph[verToleave].remove(Integer.valueOf(leavenode));\n if (graph[verToleave].size() == 1) {\n newleaves.add(verToleave);\n }\n }\n\n leaves = newleaves;\n }\n return leaves;\n\n\n }",
"List<Long> getBestSolIntersection();",
"private static List<Point2d> createConvexHull(Point2d[] points) {\n List<Point2d> hull = new ArrayList<>();\n // Find the leftmost point\n int leftmost = 0;\n for (int i = 1; i < points.length; i++) {\n if (points[i].x < points[leftmost].x) {\n leftmost = i;\n }\n }\n int p = leftmost;\n do {\n hull.add(points[p]);\n int q = p + 1;\n if (q >= points.length) q -= points.length;\n for (int i = 0; i < points.length; i++) {\n double o = orientation(points[p], points[i], points[q]);\n if (o < 0) {\n q = i;\n }\n }\n p = q;\n } while (p != leftmost);\n return hull;\n }",
"public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }",
"private int findMaxPt(ArrayList<Point> s, Point p1, Point p2) {\n double maxPt = 0;\n int maxIndex = 0;\n for(int i = 1; i < s.size()-2; i++){\n if(p1.x*p2.y + s.get(i).x*p1.y + p2.x*s.get(i).y - s.get(i).x*p2.y - p2.x*p1.y - p1.x*s.get(i).y > maxPt) {\n maxPt = p1.x*p2.y + s.get(i).x*p1.y + p2.x*s.get(i).y - s.get(i).x*p2.y - p2.x*p1.y - p1.x*s.get(i).y;\n maxIndex = i;\n }\n }\n return maxIndex;\n }",
"public final float[][] reconstructedExactLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tint max=0;\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t\tmax++;\n \t\t\t}\n \t\t\tif (max==nmgdm) levelsets[n][xyz] = UNKNOWN;\n \t\t}\n \t}\n \treturn levelsets;\n }",
"protected static boolean areAllCollinear(List<Point2D.Float> points) {\n\n\t\tif (points.size() < 2) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal Point2D.Float a = points.get(0);\n\t\tfinal Point2D.Float b = points.get(1);\n\n\t\tfor (int i = 2; i < points.size(); i++) {\n\n\t\t\tPoint2D.Float c = points.get(i);\n\n\t\t\tif (getTurn(a, b, c) != Turn.COLLINEAR) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public static void threeSumForFourSum(int[] nums, int target, int low, int high, ArrayList<List<Integer>> fourSumList,\n int z1) {\n if (low + 1 >= high)\n return;\n\n int max = nums[high];\n if (3 * nums[low] > target || 3 * max < target)\n return;\n\n int i, z;\n for (i = low; i < high - 1; i++) {\n z = nums[i];\n if (i > low && z == nums[i - 1]) // avoid duplicate\n continue;\n if (z + 2 * max < target) // z is too small\n continue;\n\n if (3 * z > target) // z is too large\n break;\n\n if (3 * z == target) { // z is the boundary\n if (i + 1 < high && nums[i + 2] == z)\n fourSumList.add(Arrays.asList(z1, z, z, z));\n break;\n }\n\n twoSumForFourSum(nums, target - z, i + 1, high, fourSumList, z1, z);\n }\n\n}",
"public int findRemoval_c(double[][] matrix, int psize) {\n\t\tdouble max_interference = 0;\n\t\tint link=0;\n\t\tfor (int i = psize; i<matrix.length-1; i++) {\n\t\t\tdouble interference = matrix[matrix.length-1][i];\n\t\t\tif (interference>max_interference) {\n\t\t\t\tmax_interference=interference;\n\t\t\t\tlink=i;\n\t\t\t}\n\t\t}\n\t\treturn link;\n\t}",
"static int[][] packD(int n, int[] from, int[] to, int max) {\n /* This part of code is picked up from \"uwi\" previous submission */\n int[][] g = new int[n][];\n int[] p = new int[n];\n for (int i = 0; i < max; i++) p[from[i]]++;\n for (int i = 0; i < n; i++)\n g[i] = new int[p[i]];\n for (int i = 0; i < max; i++) {\n g[from[i]][--p[from[i]]] = to[i];\n }\n return g;\n }",
"@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }",
"public BruteCollinearPoints(Point[] points) {\n if (points == null) throw new IllegalArgumentException();\n points = points.clone();\n validate(points);\n Arrays.sort(points);\n validateDuplicate(points);\n List<List<Double>> slopes = new ArrayList<>(points.length);\n for (int i = 0; i < points.length; i++) slopes.add(new LinkedList<>());\n lines = new LinkedList<>();\n for (int i = 0; i < points.length; i++) {\n for (int j = i+1; j < points.length; j++) {\n for (int m = j + 1; m < points.length; m++) {\n for (int n = points.length - 1; n > m; n--) {\n if (isCollinear(points[i], points[j], points[m], points[n])) {\n boolean exist = false;\n for (double slope : slopes.get(i)) {\n if (Double.compare(slope, points[i].slopeTo(points[n])) == 0) exist = true;\n }\n if (!exist) {\n lines.add(new LineSegment(points[i], points[n]));\n double s = points[i].slopeTo(points[n]);\n slopes.get(i).add(s);\n slopes.get(j).add(s);\n slopes.get(m).add(s);\n slopes.get(n).add(s);\n }\n }\n }\n }\n }\n }\n }",
"public int[] findAnyPairIndexesWhileGCDMinimized() {\n if (seq.length < 2) {\n return null;\n }\n int g = -1;\n for (int i = 1; i <= m; i++) {\n if (minimumSizeOfSubsetWhoseGCDDivisibleBy(i) <= 2) {\n g = i;\n break;\n }\n }\n\n IntegerArrayList list = new IntegerArrayList(seq.length);\n for (int i = 0; i < seq.length; i++) {\n if (seq[i] % g == 0) {\n list.add(seq[i]);\n }\n }\n\n int[] pair = findAnyPairIndexesCoprime(list.toArray());\n return new int[]{indexesOfSeq.peekFirst(list.get(pair[0]) * g), indexesOfSeq.peekLast(list.get(pair[1]) * g)};\n }",
"public Collection<N> neighbors();",
"public int largestIsland(int[][] grid) {\n // First of all calculate the area of all of the islands. Assign unique id to every island.\n // Island ids start from 2 because our grid already has numbers 0 and 1\n // Replace the 1's of the island with the id of the island. Create a map of the island id and the area\n // Then again iterate over every element in the grid. Now, everytime we get zero (0), replace the zero \n // with one (1) and look at all four sides of the replace one. If we have island at any side of the \n // replaced one the add the area of that island to the max area and count the replaced one in it.\n if (grid == null || grid.length == 0) {\n return 0;\n }\n \n int max = 0;\n int islandId = 2;\n int row = grid.length;\n int col = grid[0].length;\n Map<Integer, Integer> islandArea = new HashMap<Integer, Integer>();\n int[][] directions = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};\n \n // Finding the area of every island\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n if (grid[i][j] == 1) {\n int sizeOfCurrentIsland = getIslandSize(grid, i, j, islandId);\n max = Math.max(max, sizeOfCurrentIsland);\n islandArea.put(islandId++, sizeOfCurrentIsland);\n }\n }\n }\n \n // Iterating over the grid again and see if we change the value of zero (0) then what would be the max\n // area of the island.\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n if (grid[i][j] == 0) {\n Set<Integer> setOfIslands = new HashSet<Integer>();\n for (int[] direction : directions) {\n int x = direction[0] + i;\n int y = direction[1] + j;\n if (x > -1 && y > -1 && x < row && y < col && grid[x][y] != 0) {\n setOfIslands.add(grid[x][y]);\n }\n }\n // Count current zero as well. So, sum is initialized to 1\n int sum = 1;\n \n for (int num : setOfIslands) {\n int value = islandArea.get(num);\n sum += value;\n }\n \n max = Math.max(max, sum);\n }\n }\n }\n \n return max;\n }",
"private static WeightedUndirectedGraph getLargestCC(WeightedUndirectedGraph g) throws InterruptedException {\n int[] all = new int[g.size];\n for (int i = 0; i < g.size; i++) {\n all[i] = i;\n }\n System.out.println(\"CC\");\n Set<Set<Integer>> comps = ConnectedComponents.rootedConnectedComponents(g, all, runner);\n\n Set<Integer> max_set = getMaxSet(comps);\n int[] subnodes = new int[max_set.size()];\n Iterator<Integer> iterator = max_set.iterator();\n for (int j = 0; j < subnodes.length; j++) {\n subnodes[j] = iterator.next();\n }\n\n WeightedUndirectedGraph s = SubGraph.extract(g, subnodes, runner);\n return s;\n }",
"private List<Point> neighboursFiltering(List<Point> points) {\n Point nearest = points.get(0);\n HeartDistance calculator = new HeartDistance();\n return points.stream().filter(p -> calculator.calculate(p,nearest) < NEIGHBOURS_THRESHOLD).collect(Collectors.toList());\n }",
"public static Double[][] operationMaxPooling(Double[][] matrix, int w, int h, int s) {\n if (s < 1) s = 1;\n double i, j;\n Double[][] output = new Double[i = ((matrix.length - h) / s) + 1][j = ((matrix[0].length - w) / s) + 1];\n\n //(F x F) * (K x K) = F - K + 1\n //(6 x 6) * (3 x 3) = 4 x 4\n for (int y = 0; y < i; y = y + 1) {\n for (int x = 0; x < j; x = x + 1) {\n //preform convoltion as follows:\n //start at (0, 0) look (kSize, kSize) on img\n //(x, y) ----> (x + kSize, y + kSize) on img\n //add to sum: for each (x, y) multiply by filter[y][x]\n //output[y][x] = sum\n double largest = 0;\n for (int yy = 0; yy < h; yy++) {\n for (int xx = 0; xx < w; xx++) {\n double l = matrix[y + yy][x + xx];\n if (l > largest) largest = l;\n }\n }\n output[y][x] = largest;\n }\n }\n return output;\n }",
"public static void main(String[] args) {\n\t\tLargest_Divisible_Subset largestSubset = new Largest_Divisible_Subset();\n\t\t//int[] nums = { 2, 3, 8, 9, 27 };\n\t\tint[] nums = { 1, 3, 9, 18, 90, 180, 360, 720, 54, 108, 540 }; // [1,3,9,18,90,180,360,720]\n\t\t//List<Integer> ans = largestSubset.largestDivisibleSubset(nums);\n\t\tList<Integer> ans = largestSubset.largestDivisibleSubset_DFS(nums);\n\t\tfor (Integer i : ans) {\n\t\t\tSystem.out.print(i + \" \");\n\t\t}\n\n\t}",
"private static int maxSubSumN3(int[] a) {\n int maxSum = 0;\n\n for (int first = 0; first < a.length; first++) {\n for (int last = first; last < a.length; last++) {\n int thisSum = 0;\n\n for (int i = first; i <= last; i++)\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }",
"@Override\n public long[ ][ ] count() {\n // precompute common nodes\n for (int x = 0; x < n; x++) {\n for (int n1 = 0; n1 < deg[x]; n1++) {\n int a = adj[x][n1];\n for (int n2 = n1 + 1; n2 < deg[x]; n2++) {\n int b = adj[x][n2];\n Tuple ab = createTuple(a, b);\n common2.put(ab, common2.getOrDefault(ab, 0) + 1);\n for (int n3 = n2 + 1; n3 < deg[x]; n3++) {\n int c = adj[x][n3];\n boolean st = adjacent(adj[a], b) ? (adjacent(adj[a], c) || adjacent(adj[b], c)) :\n (adjacent(adj[a], c) && adjacent(adj[b], c));\n if (!st) continue;\n Tuple abc = createTuple(a, b, c);\n common3.put(abc, common3.getOrDefault(abc, 0) + 1);\n }\n }\n }\n }\n\n // precompute triangles that span over edges\n int[ ] tri = countTriangles();\n\n // count full graphlets\n long[ ] C5 = new long[n];\n int[ ] neigh = new int[n];\n int[ ] neigh2 = new int[n];\n int nn, nn2;\n for (int x = 0; x < n; x++) {\n for (int nx = 0; nx < deg[x]; nx++) {\n int y = adj[x][nx];\n if (y >= x) break;\n nn = 0;\n for (int ny = 0; ny < deg[y]; ny++) {\n int z = adj[y][ny];\n if (z >= y) break;\n if (adjacent(adj[x], z)) {\n neigh[nn++] = z;\n }\n }\n for (int i = 0; i < nn; i++) {\n int z = neigh[i];\n nn2 = 0;\n for (int j = i + 1; j < nn; j++) {\n int zz = neigh[j];\n if (adjacent(adj[z], zz)) {\n neigh2[nn2++] = zz;\n }\n }\n for (int i2 = 0; i2 < nn2; i2++) {\n int zz = neigh2[i2];\n for (int j2 = i2 + 1; j2 < nn2; j2++) {\n int zzz = neigh2[j2];\n if (adjacent(adj[zz], zzz)) {\n C5[x]++;\n C5[y]++;\n C5[z]++;\n C5[zz]++;\n C5[zzz]++;\n }\n }\n }\n }\n }\n }\n\n int[ ] common_x = new int[n];\n int[ ] common_x_list = new int[n];\n int ncx = 0;\n int[ ] common_a = new int[n];\n int[ ] common_a_list = new int[n];\n int nca = 0;\n\n // set up a system of equations relating orbit counts\n for (int x = 0; x < n; x++) {\n for (int i = 0; i < ncx; i++) common_x[common_x_list[i]] = 0;\n ncx = 0;\n\n // smaller graphlets\n orbit[x][0] = deg[x];\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = adj[x][nx1];\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = adj[x][nx2];\n if (adjacent(adj[a], b)) orbit[x][3]++;\n else orbit[x][2]++;\n }\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n if (b != x && !adjacent(adj[x], b)) {\n orbit[x][1]++;\n if (common_x[b] == 0) common_x_list[ncx++] = b;\n common_x[b]++;\n }\n }\n }\n\n long f_71 = 0, f_70 = 0, f_67 = 0, f_66 = 0, f_58 = 0, f_57 = 0; // 14\n long f_69 = 0, f_68 = 0, f_64 = 0, f_61 = 0, f_60 = 0, f_55 = 0, f_48 = 0, f_42 = 0, f_41 = 0; // 13\n long f_65 = 0, f_63 = 0, f_59 = 0, f_54 = 0, f_47 = 0, f_46 = 0, f_40 = 0; // 12\n long f_62 = 0, f_53 = 0, f_51 = 0, f_50 = 0, f_49 = 0, f_38 = 0, f_37 = 0, f_36 = 0; // 8\n long f_44 = 0, f_33 = 0, f_30 = 0, f_26 = 0; // 11\n long f_52 = 0, f_43 = 0, f_32 = 0, f_29 = 0, f_25 = 0; // 10\n long f_56 = 0, f_45 = 0, f_39 = 0, f_31 = 0, f_28 = 0, f_24 = 0; // 9\n long f_35 = 0, f_34 = 0, f_27 = 0, f_18 = 0, f_16 = 0, f_15 = 0; // 4\n long f_17 = 0; // 5\n long f_22 = 0, f_20 = 0, f_19 = 0; // 6\n long f_23 = 0, f_21 = 0; // 7\n\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = inc[x][nx1]._1, xa = inc[x][nx1]._2;\n\n for (int i = 0; i < nca; i++) common_a[common_a_list[i]] = 0;\n nca = 0;\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = adj[b][nb];\n if (c == a || adjacent(adj[a], c)) continue;\n if (common_a[c] == 0) common_a_list[nca++] = c;\n common_a[c]++;\n }\n }\n\n // x = orbit-14 (tetrahedron)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || !adjacent(adj[b], c)) continue;\n orbit[x][14]++;\n f_70 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_71 += (tri[xa] > 2 && tri[xb] > 2) ? (common3.getOrDefault(createTuple(x, a, b), 0) - 1) : 0;\n f_71 += (tri[xa] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, a, c), 0) - 1) : 0;\n f_71 += (tri[xb] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_67 += tri[xa] - 2 + tri[xb] - 2 + tri[xc] - 2;\n f_66 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(a, c), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_58 += deg[x] - 3;\n f_57 += deg[a] - 3 + deg[b] - 3 + deg[c] - 3;\n }\n }\n\n // x = orbit-13 (diamond)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][13]++;\n f_69 += (tri[xb] > 1 && tri[xc] > 1) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_68 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_64 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_61 += tri[xb] - 1 + tri[xc] - 1;\n f_60 += common2.getOrDefault(createTuple(a, b), 0) - 1;\n f_60 += common2.getOrDefault(createTuple(a, c), 0) - 1;\n f_55 += tri[xa] - 2;\n f_48 += deg[b] - 2 + deg[c] - 2;\n f_42 += deg[x] - 3;\n f_41 += deg[a] - 3;\n }\n }\n\n // x = orbit-12 (diamond)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][12]++;\n f_65 += (tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_63 += common_x[c] - 2;\n f_59 += tri[ac] - 1 + common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_54 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_47 += deg[x] - 2;\n f_46 += deg[c] - 2;\n f_40 += deg[a] - 3 + deg[b] - 3;\n }\n }\n\n // x = orbit-8 (cycle)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][8]++;\n f_62 += (tri[ac] > 0) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_53 += tri[xa] + tri[xb];\n f_51 += tri[ac] + common2.getOrDefault(createTuple(c, b), 0);\n f_50 += common_x[c] - 2;\n f_49 += common_a[b] - 2;\n f_38 += deg[x] - 2;\n f_37 += deg[a] - 2 + deg[b] - 2;\n f_36 += deg[c] - 2;\n }\n }\n\n // x = orbit-11 (paw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = 0; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (c == a || c == b || adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][11]++;\n f_44 += tri[xc];\n f_33 += deg[x] - 3;\n f_30 += deg[c] - 1;\n f_26 += deg[a] - 2 + deg[b] - 2;\n }\n }\n\n // x = orbit-10 (paw)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][10]++;\n f_52 += common_a[c] - 1;\n f_43 += tri[bc];\n f_32 += deg[b] - 3;\n f_29 += deg[c] - 1;\n f_25 += deg[a] - 2;\n }\n }\n\n // x = orbit-9 (paw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || !adjacent(adj[b], c) || adjacent(adj[x], c)) continue;\n orbit[x][9]++;\n f_56 += (tri[ab] > 1 && tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_45 += common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_39 += tri[ab] - 1 + tri[ac] - 1;\n f_31 += deg[a] - 3;\n f_28 += deg[x] - 1;\n f_24 += deg[b] - 2 + deg[c] - 2;\n }\n }\n\n // x = orbit-4 (path)\n for (int na = 0; na < deg[a]; na++) {\n int b = inc[a][na]._1, ab = inc[a][na]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][4]++;\n f_35 += common_a[c] - 1;\n f_34 += common_x[c];\n f_27 += tri[bc];\n f_18 += deg[b] - 2;\n f_16 += deg[x] - 1;\n f_15 += deg[c] - 1;\n }\n }\n\n // x = orbit-5 (path)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (b == a || adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][5]++;\n f_17 += deg[a] - 1;\n }\n }\n\n // x = orbit-6 (claw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || adjacent(adj[x], c) || adjacent(adj[b], c)) continue;\n orbit[x][6]++;\n f_22 += deg[a] - 3;\n f_20 += deg[x] - 1;\n f_19 += deg[b] - 1 + deg[c] - 1;\n }\n }\n\n // x = orbit-7 (claw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][7]++;\n f_23 += deg[x] - 3;\n f_21 += deg[a] - 1 + deg[b] - 1 + deg[c] - 1;\n }\n }\n }\n\n // solve equations\n orbit[x][72] = C5[x];\n orbit[x][71] = (f_71 - 12 * orbit[x][72]) / 2;\n orbit[x][70] = (f_70 - 4 * orbit[x][72]);\n orbit[x][69] = (f_69 - 2 * orbit[x][71]) / 4;\n orbit[x][68] = (f_68 - 2 * orbit[x][71]);\n orbit[x][67] = (f_67 - 12 * orbit[x][72] - 4 * orbit[x][71]);\n orbit[x][66] = (f_66 - 12 * orbit[x][72] - 2 * orbit[x][71] - 3 * orbit[x][70]);\n orbit[x][65] = (f_65 - 3 * orbit[x][70]) / 2;\n orbit[x][64] = (f_64 - 2 * orbit[x][71] - 4 * orbit[x][69] - 1 * orbit[x][68]);\n orbit[x][63] = (f_63 - 3 * orbit[x][70] - 2 * orbit[x][68]);\n orbit[x][62] = (f_62 - 1 * orbit[x][68]) / 2;\n orbit[x][61] = (f_61 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][67]) / 2;\n orbit[x][60] = (f_60 - 4 * orbit[x][71] - 2 * orbit[x][68] - 2 * orbit[x][67]);\n orbit[x][59] = (f_59 - 6 * orbit[x][70] - 2 * orbit[x][68] - 4 * orbit[x][65]);\n orbit[x][58] = (f_58 - 4 * orbit[x][72] - 2 * orbit[x][71] - 1 * orbit[x][67]);\n orbit[x][57] = (f_57 - 12 * orbit[x][72] - 4 * orbit[x][71] - 3 * orbit[x][70] - 1 * orbit[x][67] - 2 * orbit[x][66]);\n orbit[x][56] = (f_56 - 2 * orbit[x][65]) / 3;\n orbit[x][55] = (f_55 - 2 * orbit[x][71] - 2 * orbit[x][67]) / 3;\n orbit[x][54] = (f_54 - 3 * orbit[x][70] - 1 * orbit[x][66] - 2 * orbit[x][65]) / 2;\n orbit[x][53] = (f_53 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63]);\n orbit[x][52] = (f_52 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59]) / 2;\n orbit[x][51] = (f_51 - 2 * orbit[x][68] - 2 * orbit[x][63] - 4 * orbit[x][62]);\n orbit[x][50] = (f_50 - 1 * orbit[x][68] - 2 * orbit[x][63]) / 3;\n orbit[x][49] = (f_49 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][62]) / 2;\n orbit[x][48] = (f_48 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][68] - 2 * orbit[x][67] - 2 * orbit[x][64] - 2 * orbit[x][61] - 1 * orbit[x][60]);\n orbit[x][47] = (f_47 - 3 * orbit[x][70] - 2 * orbit[x][68] - 1 * orbit[x][66] - 1 * orbit[x][63] - 1 * orbit[x][60]);\n orbit[x][46] = (f_46 - 3 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][65] - 1 * orbit[x][63] - 1 * orbit[x][59]);\n orbit[x][45] = (f_45 - 2 * orbit[x][65] - 2 * orbit[x][62] - 3 * orbit[x][56]);\n orbit[x][44] = (f_44 - 1 * orbit[x][67] - 2 * orbit[x][61]) / 4;\n orbit[x][43] = (f_43 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59]) / 2;\n orbit[x][42] = (f_42 - 2 * orbit[x][71] - 4 * orbit[x][69] - 2 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][55]);\n orbit[x][41] = (f_41 - 2 * orbit[x][71] - 1 * orbit[x][68] - 2 * orbit[x][67] - 1 * orbit[x][60] - 3 * orbit[x][55]);\n orbit[x][40] = (f_40 - 6 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][66] - 4 * orbit[x][65] - 1 * orbit[x][60] - 1 * orbit[x][59] - 4 * orbit[x][54]);\n orbit[x][39] = (f_39 - 4 * orbit[x][65] - 1 * orbit[x][59] - 6 * orbit[x][56]) / 2;\n orbit[x][38] = (f_38 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][63] - 1 * orbit[x][53] - 3 * orbit[x][50]);\n orbit[x][37] = (f_37 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63] - 4 * orbit[x][62] - 1 * orbit[x][53] - 1 * orbit[x][51] - 4 * orbit[x][49]);\n orbit[x][36] = (f_36 - 1 * orbit[x][68] - 2 * orbit[x][63] - 2 * orbit[x][62] - 1 * orbit[x][51] - 3 * orbit[x][50]);\n orbit[x][35] = (f_35 - 1 * orbit[x][59] - 2 * orbit[x][52] - 2 * orbit[x][45]) / 2;\n orbit[x][34] = (f_34 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51]) / 2;\n orbit[x][33] = (f_33 - 1 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][58] - 4 * orbit[x][44] - 2 * orbit[x][42]) / 2;\n orbit[x][32] = (f_32 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][43] - 2 * orbit[x][41] - 1 * orbit[x][40]) / 2;\n orbit[x][31] = (f_31 - 2 * orbit[x][65] - 1 * orbit[x][59] - 3 * orbit[x][56] - 1 * orbit[x][43] - 2 * orbit[x][39]);\n orbit[x][30] = (f_30 - 1 * orbit[x][67] - 1 * orbit[x][63] - 2 * orbit[x][61] - 1 * orbit[x][53] - 4 * orbit[x][44]);\n orbit[x][29] = (f_29 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][60] - 1 * orbit[x][59] - 1 * orbit[x][53] - 2 * orbit[x][52] - 2 * orbit[x][43]);\n orbit[x][28] = (f_28 - 2 * orbit[x][65] - 2 * orbit[x][62] - 1 * orbit[x][59] - 1 * orbit[x][51] - 1 * orbit[x][43]);\n orbit[x][27] = (f_27 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][45]) / 2;\n orbit[x][26] = (f_26 - 2 * orbit[x][67] - 2 * orbit[x][63] - 2 * orbit[x][61] - 6 * orbit[x][58] - 1 * orbit[x][53] - 2 * orbit[x][47] - 2 * orbit[x][42]);\n orbit[x][25] = (f_25 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][52] - 1 * orbit[x][48] - 1 * orbit[x][40]) / 2;\n orbit[x][24] = (f_24 - 4 * orbit[x][65] - 4 * orbit[x][62] - 1 * orbit[x][59] - 6 * orbit[x][56] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][39]);\n orbit[x][23] = (f_23 - 1 * orbit[x][55] - 1 * orbit[x][42] - 2 * orbit[x][33]) / 4;\n orbit[x][22] = (f_22 - 2 * orbit[x][54] - 1 * orbit[x][40] - 1 * orbit[x][39] - 1 * orbit[x][32] - 2 * orbit[x][31]) / 3;\n orbit[x][21] = (f_21 - 3 * orbit[x][55] - 3 * orbit[x][50] - 2 * orbit[x][42] - 2 * orbit[x][38] - 2 * orbit[x][33]);\n orbit[x][20] = (f_20 - 2 * orbit[x][54] - 2 * orbit[x][49] - 1 * orbit[x][40] - 1 * orbit[x][37] - 1 * orbit[x][32]);\n orbit[x][19] = (f_19 - 4 * orbit[x][54] - 4 * orbit[x][49] - 1 * orbit[x][40] - 2 * orbit[x][39] - 1 * orbit[x][37] - 2 * orbit[x][35] - 2 * orbit[x][31]);\n orbit[x][18] = (f_18 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][45] - 2 * orbit[x][36] - 2 * orbit[x][27] - 1 * orbit[x][24]) / 2;\n orbit[x][17] = (f_17 - 1 * orbit[x][60] - 1 * orbit[x][53] - 1 * orbit[x][51] - 1 * orbit[x][48] - 1 * orbit[x][37] - 2 * orbit[x][34] - 2 * orbit[x][30]) / 2;\n orbit[x][16] = (f_16 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][36] - 2 * orbit[x][34] - 1 * orbit[x][29]);\n orbit[x][15] = (f_15 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][35] - 2 * orbit[x][34] - 2 * orbit[x][27]);\n }\n\n return orbit;\n }",
"public static void main(String[] args) {\n\t\tMaximum_Length_of_Pair_Chain_646 m=new Maximum_Length_of_Pair_Chain_646();\n\t\tint[][] pairs=new int[][]{\n\t\t\t{-7, -1}, {0, 10}, {2, 3}, {3, 6}, {3, 10}, {4, 5}, {7, 9}, {7, 9}\n\t\t};\n\t\tSystem.out.println(m.findLongestChain(pairs));\n\t}",
"public static ArrayList<Integer>[] checkthresholdBiggest(int numberlocations, ArrayList<Integer>[] allocPolys, ArrayList<Double>[] polys, ArrayList<String>[] polysGeometry,List<Integer> neighbourPolyIds, ArrayList<Integer>[] neighbourNeighbours) throws SQLException{\n\t\tboolean satisfied=false;\n\t\tList<Integer> tempbufferlist = new ArrayList<Integer>();\n\t\t\n\t\tint lastPolyID=-1;\n\t\tint lastArea=-1;\n\t\tList<Integer> changedIds = new ArrayList<Integer>();\n\t\t\n\t\t//rearrange while no balance is achieved\n\t\twhile (!satisfied){\n\t\t\tint threshold = 30;\n\t\t\tint[] compCriterias = new int[numberlocations];\n\t\t\tfor (int i=0; i<numberlocations; i++) compCriterias[i]=0;\n\t\t\t\n\t\t\t//check balance\n\t\t\tfor (int i=0; i<numberlocations;i++){\n\t\t\t\tfor (int j=0;j<numberlocations;j++){\n\t\t\t\t\tif (j!=i){\n\t\t\t\t\t\tif (criteriaf[i]<criteriaf[j]){\n\t\t\t\t\t\t\tif (100-(criteriaf[j]*100/criteriaf[i])>-threshold)\n\t\t\t\t\t\t\t\tcompCriterias[i]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif ((criteriaf[j]*100/criteriaf[i])-100< threshold)\n\t\t\t\t\t\t\t\tcompCriterias[i]++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint no=0;\n\t\t\t\n\t\t\t//rearrange if balance is not reached, check every territory centre\n\t\t\tfor (int i=0; i<numberlocations;i++){\t\t\t\n\t\t\t\tif (compCriterias[i]!=(numberlocations-1)){\n\t\t\t\t\tdouble[] criteriaBuffer = new double[numberlocations];\n\t\t\t\t\t\n\t\t\t\t\tfor (int j=0; j<criteriaBuffer.length;j++){\n\t\t\t\t\t\tcriteriaBuffer[j]=criteriaf[j];\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\t//sort activity measures from highest to smallest\n\t\t\t\t\t//criteriaBuffer[0] territory with highest activity measure\n\t\t\t\t\tfor (int j = 0; j < criteriaBuffer.length - 1; j++)\n\t\t\t {\n\t\t\t int index = j;\n\t\t\t for (int k = j + 1; k < criteriaBuffer.length; k++)\n\t\t\t if (criteriaBuffer[k] > criteriaBuffer[index])\n\t\t\t index = k;\n\t\t\t double greaterNumber = criteriaBuffer[index]; \n\t\t\t criteriaBuffer[index] = criteriaBuffer[j];\n\t\t\t criteriaBuffer[j] = greaterNumber;\n\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\tint locBiggest=-1;\n\t\t\t\t\t\n\t\t\t\t\tfor (int j=0;j<numberlocations;j++){\n\t\t\t\t\t\tif (criteriaf[j]==criteriaBuffer[0]){\n\t\t\t\t\t\t\tlocBiggest=j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//determine neighbours of territory with highest activity measure\n\t\t\t\t\tList<Integer> actNeighbours = new ArrayList<Integer>();\n\t\t\t\t\t\n\t\t\t\t\tfor (int j=0;j<numberlocations;j++){\n\t\t\t\t\t\tif (j!=locBiggest){\n\t\t\t\t\t\t\tboolean neighbour=false;\n\t\t\t\t\t\t\tint pos=0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (pos<allocPolys[locBiggest].size() && neighbour==false){\n\t\t\t\t\t\t\t\t//check every allocated basic area whether it is a neighbour of one of the basic areas of another territory\n\t\t\t\t\t\t\t\t//take basic area of locBiggest and check to every basic area of centre\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tint actPoly = allocPolys[locBiggest].get(pos);\n\t\t\t\t\t\t\t\tint posActPoly = neighbourPolyIds.indexOf(actPoly);\n\t\t\t\t\t\t\t\tboolean neighbourfound=false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(int k=0;k<allocPolys[j].size();k++){\n\t\t\t\t\t\t\t\t\tint comparePoly = allocPolys[j].get(k);\n\t\t\t\t\t\t\t\t\tfor (int l=0;l<neighbourNeighbours[posActPoly].size();l++){\n\t\t\t\t\t\t\t\t\t\tif (neighbourNeighbours[posActPoly].get(l).equals(comparePoly) && !neighbourfound){\n\t\t\t\t\t\t\t\t\t\t\tneighbour=true;\n\t\t\t\t\t\t\t\t\t\t\tactNeighbours.add(j);\n\t\t\t\t\t\t\t\t\t\t\tneighbourfound=true;\n\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\t\n\t\t\t\t\t\t\t\tpos++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//determine that territory of neighboured territories with smallest activity measure\n\t\t\t\t\tdouble minsum=-1;\n\t\t\t\t\tboolean first=true;\n\t\t\t\t\tint locMinsum=-1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<numberlocations;j++){\n\t\t\t\t\t\tboolean found=false;\n\t\t\t\t\t\tint posLoc=0;\n\t\t\t\t\t\twhile (!found){\n\t\t\t\t\t\t\tif (actNeighbours.get(posLoc)==j){\n\t\t\t\t\t\t\t\tif (first){\n\t\t\t\t\t\t\t\t\tfirst=false;\n\t\t\t\t\t\t\t\t\tminsum=criteriaf[j];\n\t\t\t\t\t\t\t\t\tlocMinsum=j;\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\tif (criteriaf[j]<minsum){\n\t\t\t\t\t\t\t\t\t\tlocMinsum=j;\n\t\t\t\t\t\t\t\t\t\tminsum=criteriaf[j];\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\t\n\t\t\t\t\t\t\t\tfound=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ((posLoc+1)<actNeighbours.size()){\n\t\t\t\t\t\t\t\tposLoc++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tfound=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//give locMinSum 1 basic area of locbiggest\n\t\t\t\t\tint polyID = allocPolys[locBiggest].get(0).intValue();\n\t\t\t\t\tSystem.out.println(polyID);\n\t\t\t\t\tdouble minDist = polys[locMinsum+1].get(polys[0].indexOf(Double.valueOf(polyID)));\n\t\t\t\t\t\n\t\t\t\t\tfor (int l=1;l<allocPolys[locBiggest].size();l++){\n\t\t\t\t\t\tdouble actDist = polys[locMinsum+1].get(polys[0].indexOf(Double.valueOf(allocPolys[locBiggest].get(l))));\n\t\t\t\t\t\tif (locBiggest==2){\n\t\t\t\t\t\t\tSystem.out.println(\"here\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (actDist<minDist && !changedIds.contains(allocPolys[locBiggest].get(l).intValue())){\n\t\t\t\t\t\t\tminDist=actDist;\n\t\t\t\t\t\t\tpolyID=allocPolys[locBiggest].get(l).intValue();\n\t\t\t\t\t\t\tchangedIds.add(polyID);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//add polyID of basic area to locMinsum and remove from locbiggest\n\t\t\t\t\tSystem.out.println(\"Set to \"+(locMinsum+1)+\" remove \"+polyID+\" from \"+(locBiggest+1));\n\t\t\t\t\tallocPolys[locBiggest].remove(Integer.valueOf(polyID));\n\t\t\t\t\tallocPolys[locMinsum].add(polyID);\n\t\t\t\t\tcriteriaf=addToCriteria(polyID, locMinsum+1, locBiggest+1, criteriaf, true,polysGeometry);\n\t\t\t\t}\n\t\t\t\telse no++;\n\t\t\t}\n\t\t\t\n\t\t\tif (no==numberlocations){\n\t\t\t\tsatisfied=true;\n\t\t\t}\n\t\t}\n\t\treturn allocPolys;\n\t\n}",
"public static int maxCuts(int n,int a,int b,int c){\n\n int DP[] =new int[n+1];\n\n DP[0] = 0;\n\n for (int i=1;i<n;i++){\n DP[i] = -1;\n if (i - a >= 0)\n DP[i] = Math.max(DP[i],DP[i-a]);\n if (i - b >= 0)\n DP[i] = Math.max(DP[i],DP[i-b]);\n if (i - c >= 0)\n DP[i] = Math.max(DP[i],DP[i-c]);\n\n\n if (DP[i]!=-1)\n DP[i] = DP[i] + 1;\n\n }\n\n\n return DP[n];\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 double minAreaFreeRect(int[][] points) {\n if (points.length < 4) {\n return 0;\n }\n\n //key: info of distance, x,y center positions\n double minVal = Double.MAX_VALUE;\n Map<String, List<int[]>> map = new HashMap<>();\n for (int i = 0; i < points.length - 1; i++) {\n for (int j = i + 1; j < points.length; j++) {\n long dis = (points[i][0] - points[j][0]) * (points[i][0] - points[j][0]) +\n (points[i][1] - points[j][1]) * (points[i][1] - points[j][1]);\n double centerX = (double)(points[i][0] + points[j][0]) / 2;\n double centerY = (double)(points[i][1] + points[j][1]) / 2;\n String key = dis + \" \" + centerX + \" \" + centerY;\n if (!map.containsKey(key)) {\n map.put(key, new ArrayList<int[]>());\n }\n map.get(key).add(new int[]{i,j});\n }\n }\n\n //therefore all vals stored in same key can form rectangles\n //just try all of them to find the one with smallest area\n for (String key: map.keySet()) {\n if (map.get(key).size() < 2) {\n continue;\n }\n List<int[]> values = map.get(key);\n for (int i = 0; i < values.size() - 1; i++) {\n for (int j = i + 1; j < values.size(); j++) {\n int p1 = values.get(i)[0];\n int p2 = values.get(i)[1];\n int p3 = values.get(j)[0];\n\n double len1 = Math.sqrt((points[p1][0] - points[p3][0]) * (points[p1][0] - points[p3][0]) + (points[p1][1] - points[p3][1]) * (points[p1][1] - points[p3][1]));\n double len2 = Math.sqrt((points[p2][0] - points[p3][0]) * (points[p2][0] - points[p3][0]) + (points[p2][1] - points[p3][1]) * (points[p2][1] - points[p3][1]));\n\n minVal = Math.min(minVal, len1 * len2);\n }\n }\n }\n return minVal == Double.MAX_VALUE? 0: minVal;\n\n }",
"public List<List<Integer>> combinationSum3(int k, int n) {\n List<List<Integer>> res = new ArrayList<>();\n int min = 0, max = 0;\n for (int i = 1; i <= k; i++) {\n min += i;\n max += (10 - i);\n }\n if (n > max || n < min) return res;\n List<Integer> list = new ArrayList<>();\n dfs(k, n, res, list, 1);\n return res;\n }",
"private void downsample(int nsize, ArrayList<Float> points) {\n cellsize = cellsize * nsize;\n int newrows = nrows / nsize;\n int newcols = ncols / nsize;\n data = new float[newrows][newcols];\n for (int row = 0; row < newrows; row++) {\n for (int col = 0; col < newcols; col++) {\n float total = 0;\n // Sum neighbourhood\n for (int trow = 0; trow < nsize; trow++) {\n // Base for this row.\n int brow = (((row * nsize) + trow) * ncols) + (col * nsize);\n for (int tcol = 0; tcol < nsize; tcol++) {\n total += points.get(brow + tcol);\n }\n }\n total *= 3.0;\n data[newrows - row - 1][col] = total / (nsize * nsize);\n }\n }\n nrows = newrows;\n ncols = newcols;\n }",
"public List<Integer> largestDivisibleSubset(int[] nums) {\n longest = new ArrayList<>();\n if (nums == null) {\n return longest;\n }\n Arrays.sort(nums);\n sorted = nums;\n System.out.println(\"Sorted = \" + Arrays.toString(sorted));\n int[] beDividor = new int[nums.length]; // 统计一个数被整除的次数\n Map<Integer, List<Integer>> edges = new HashMap<>();\n for (int i = 0; i < sorted.length - 1; i++) {\n for (int j = i + 1; j < sorted.length; j++) {\n if (sorted[j] % sorted[i] == 0) {\n beDividor[j]++;\n if (!edges.containsKey(i)) {\n edges.put(i, new ArrayList<Integer>());\n }\n edges.get(i).add(j);\n }\n }\n }\n System.out.println(\"Map =\\t\" + edges);\n max = 0;\n List<Integer> chain = new ArrayList<>();\n for (int i = 0; i < beDividor.length; i++) {\n if (beDividor[i] == 0) { // 无法整除任何其他元素的数\n chain.add(sorted[i]);\n if (max < 1) {\n max = 1;\n longest = new ArrayList<Integer>(chain);\n } \n backtracking(i, 1, chain, edges);\n chain.remove(chain.size() - 1);\n }\n }\n return longest;\n }",
"public static void main(String[] args) {\n\t\tint[] a = { -2, -3, 4, -1, -2, 1, 5, -3 }; \n\t\t int size = a.length; \n\t int max_so_far = Integer.MIN_VALUE, max_ending_here=0;\n\t for (int i = 0; i < size; i++) { \n\t max_ending_here = max_ending_here + a[i]; \n\t if (max_so_far < max_ending_here) \n\t max_so_far = max_ending_here; \n\t if (max_ending_here < 0) \n\t max_ending_here = 0; \n\t } \n\t // System.out.println(max_so_far);\n\t int product=1,max=0;\n\t for (int i = 0; i < size; i++) {\n\t \t\n\t \tproduct=product*a[i];\n\t \tif(product>max)\n\t \t\tmax=product;\n\t \t if (product < 0) \n\t \t\t product = 1; \n\t \t\n\t }\n\t // System.out.println(max);\n\t \n\t Arrays.sort(a);\n\t int i=0,j=a.length-1;\n\t while(i<a.length &&j<a.length)\n\t {\n\t \t if(a[i]+a[j]==3)\n\t \t {\n\t \t\t System.out.println(a[i]+\" \"+a[j]);\n\t \t\t i++;j--;\n\t \t }\n\t \t else if(a[i]+a[j]>3)\n\t \t\t j--;\n\t \t else if(a[i]+a[j]<3)\n\t \t\t i++;\n\t }\n\t \n\t \n\t }",
"public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }",
"public static int getMaxSizeSubMatrix(int[][] indices) {\n int maxSq = 0;\n for(int row=0; row< indices.length; row++) {\n for(int col=0; col< indices[row].length; col++) {\n // found a potential candidate\n if(indices[row][col]!=0) {\n if((row-1>=0)&&(col-1>=0)) {\n int prevSqrSize = indices[row-1][col-1];\n if(prevSqrSize> 0) {\n // go back up\n boolean newSq = true;\n for (int up = row; up >= row - prevSqrSize; up--) {\n if (indices[up][col] < 1) {\n newSq = false;\n break;\n }\n }\n if (newSq) {\n // go back left\n for (int left = col; left >= col - prevSqrSize; left--) {\n if (indices[row][left] < 1) {\n newSq = false;\n break;\n }\n }\n\n }\n if(newSq) {\n indices[row][col] = indices[row-1][col-1]+1;\n if(indices[row][col]> maxSq) {\n maxSq = indices[row][col];\n }\n }\n }\n\n }\n }\n }\n }\n return maxSq;\n\n }",
"int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}",
"void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }",
"public abstract List<List<Integer>> subsets(int[] S);",
"MaxIDs getMaxIds();",
"public int getOptimalNumNearest();",
"@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\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 }"
]
| [
"0.624428",
"0.60233164",
"0.6021816",
"0.5734112",
"0.57088965",
"0.5649384",
"0.55986834",
"0.55236346",
"0.5514365",
"0.5497594",
"0.5412246",
"0.539165",
"0.5353453",
"0.5352218",
"0.53407955",
"0.5331257",
"0.53286225",
"0.53124905",
"0.5294412",
"0.52810264",
"0.525555",
"0.52545476",
"0.525334",
"0.52264124",
"0.5210938",
"0.52107835",
"0.519061",
"0.5177453",
"0.5177352",
"0.51762414",
"0.5163317",
"0.51489407",
"0.5142471",
"0.51062316",
"0.5092354",
"0.50824803",
"0.50802565",
"0.50779533",
"0.50719064",
"0.5055824",
"0.5054111",
"0.50457376",
"0.5041107",
"0.50013703",
"0.49923944",
"0.49857122",
"0.49765554",
"0.49760425",
"0.49674246",
"0.496453",
"0.4957551",
"0.4942851",
"0.49172917",
"0.49148285",
"0.491414",
"0.4910034",
"0.49091467",
"0.49086773",
"0.49051732",
"0.49027854",
"0.49012795",
"0.48949146",
"0.4894894",
"0.4894131",
"0.48870867",
"0.4884253",
"0.48835236",
"0.48807833",
"0.4873995",
"0.48670766",
"0.48642358",
"0.48605826",
"0.48580343",
"0.48544246",
"0.48488733",
"0.48430637",
"0.48392034",
"0.48325688",
"0.4828419",
"0.4821541",
"0.4819995",
"0.48195586",
"0.48192605",
"0.48180312",
"0.48134044",
"0.4804774",
"0.48034433",
"0.48020226",
"0.48007628",
"0.48001027",
"0.47938287",
"0.4792563",
"0.47913158",
"0.47906908",
"0.47867373",
"0.4784816",
"0.47830138",
"0.47813737",
"0.47732675",
"0.47692448"
]
| 0.50514466 | 41 |
Created by Rafal on 20160423. | public interface IDbProvider {
DaoSession getSession();
List<Category> getCategoryList();
List<Spending> getSpendingsList(Category category);
void addCategory(Category category) throws CategoryNameExistsException;
void addSpending(Spending spending);
void editSpending(Spending item, float value, String title, Date dateGiven);
void deleteSpending(Spending spending);
float getSum(Date dateFrom, Date dateThrough);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\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}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void init() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"private void init() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"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 nefesAl() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n protected void init() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private void strin() {\n\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"private void init() {\n\n\n\n }",
"@Override\n public void initialize() { \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}"
]
| [
"0.58610773",
"0.5678302",
"0.56768423",
"0.5633977",
"0.5624033",
"0.5602795",
"0.5602795",
"0.5572379",
"0.5569601",
"0.5548097",
"0.5540648",
"0.5530387",
"0.5529907",
"0.5518267",
"0.5514649",
"0.55142254",
"0.55142254",
"0.55142254",
"0.55142254",
"0.55142254",
"0.5492946",
"0.54882884",
"0.54831856",
"0.54751563",
"0.5473066",
"0.54510653",
"0.5450325",
"0.5443639",
"0.54328674",
"0.5419951",
"0.540985",
"0.54074675",
"0.5390093",
"0.53842336",
"0.5381054",
"0.53758985",
"0.5373859",
"0.5371036",
"0.5371036",
"0.5371036",
"0.53698707",
"0.53671086",
"0.53573143",
"0.53506225",
"0.53506225",
"0.53506225",
"0.53493685",
"0.53493685",
"0.53493685",
"0.5344775",
"0.53443533",
"0.53439105",
"0.5338872",
"0.5338872",
"0.533668",
"0.5325535",
"0.5324073",
"0.53224105",
"0.53224105",
"0.53224105",
"0.53224105",
"0.53224105",
"0.53224105",
"0.53224105",
"0.53207016",
"0.53193295",
"0.53193295",
"0.5314523",
"0.53051674",
"0.5290516",
"0.52783763",
"0.5276247",
"0.52727014",
"0.52723026",
"0.52681124",
"0.5260879",
"0.5256366",
"0.52560693",
"0.52484995",
"0.5247862",
"0.5231602",
"0.5230625",
"0.5230625",
"0.522382",
"0.522382",
"0.522382",
"0.522382",
"0.522382",
"0.522382",
"0.52018344",
"0.5192999",
"0.51774174",
"0.51769954",
"0.5170213",
"0.51652324",
"0.5162019",
"0.5155343",
"0.5154152",
"0.515006",
"0.5148234",
"0.5141208"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public void surfaceDestroyed(SurfaceHolder holder) {
if(mCamera != null)
mCamera.release();
} | {
"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 |
no data DLList's head and tail should be proteced! constructors | public DLListWithOutput()
{
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DLList() {\n head = null;\n tail = null;\n }",
"public DLList() {\r\n init();\r\n }",
"public SLList()\n {\n head = tail = null;\n }",
"public DoublyLinkedList() {\r\n\t\tinitializeDataFields();\r\n\t}",
"public DesignLinkedList() {\n head = null;\n tail = head;\n len = 0;\n }",
"public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }",
"public DoublyLinkedList(){\r\n\r\n\t\thead = null;\r\n\t\ttail = null;\r\n\t\tcount = 0;\r\n\t}",
"public DoubleLinkedList(){\n this.head = null;\n this.tail = null;\n this.size = 0;\n this.selec = null;\n }",
"public MyDoublyLinkedList() {\n head.data = null;\n head.next = tail;\n tail.data = null;\n tail.prev = head;\n }",
"public DoubleLinkedList() {\n head = null;\n tail = null;\n }",
"public LinkedList() {\n\t\titems = lastNode = new DblListnode<E>(null);\n\t\tnumItems=0;\n\t}",
"public ListADTImpl() {\r\n head = new GenericEmptyNode();\r\n }",
"public DoubleLinkedList() {\r\n header.next = header.previous = header;\r\n//INSTRUMENTATION BEGIN\r\n //initializates instrumentation fields for concrete objects\r\n _initialSize = this.size;\r\n _minSize = 0;\r\n//INSTRUMENTATION END\r\n }",
"private void init() {\r\n head = new DLList.Node<T>(null);\r\n head.setNext(tail);\r\n tail = new DLList.Node<T>(null);\r\n tail.setPrevious(head);\r\n size = 0;\r\n }",
"DListNode() {\n item[0] = 0;\n item[1] = 0;\n item[2] = 0;\n prev = null;\n next = null;\n }",
"public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }",
"public DLListIterator() {\r\n node = head;\r\n nextCalled = false;\r\n }",
"public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }",
"public LinkedList()\r\n {\r\n head = null;\r\n tail = null;\r\n }",
"public LinkedList(){\n\t\thead = null;\n\t\ttail = null;\n\t}",
"public LinkedList()\n {\n head = null;\n tail = null;\n }",
"public MyLinkedList() {\n size = 0;\n head = null;\n tail = null;\n }",
"public DoubleLinkedList()\n {\n \tfirst=last=null;\n }",
"public CustomSinglyLinkedList()\n {\n head = null;\n tail = head;\n size = 0;\n }",
"public linkedList() { // constructs an initially empty list\r\n\r\n }",
"public SingleLinkedList()\n {\n head = null;\n tail = null;\n size=0;\n }",
"public DoublyLinkedList() \r\n {\r\n sentinel = new Node<T>(null,null,null);\r\n sentinel.next = sentinel.prev = sentinel;\r\n size = 0;\r\n }",
"public LinkList() {\n this.head = null;\n this.tail = null;\n }",
"public LinkedList() \n\t{\n\t\thead = null;\n\t\ttail = head;\n\t}",
"public LinkedList () {\n\t\tMemoryBlock dummy;\n\t\tdummy = new MemoryBlock(0,0);\n\t\ttail = new Node(dummy);\n\t\tdummy = new MemoryBlock(0,0);\n\t\thead = new Node(dummy);\n\t\ttail.next = head;\n\t\thead.previous = tail;\n\t\tsize = 2;\n\t}",
"public LinkedList() {\n size = 0;\n head = new DoublyLinkedNode<E>(null);\n tail = new DoublyLinkedNode<E>(null);\n\n head.setNext(tail);\n tail.setPrevious(head);\n }",
"public DoubledList() {\r\n front = null;\r\n size = 0;\r\n }",
"public MyLinkedList() {\n \thead = null;\n \ttail = null;\n }",
"public CircularlyLinkedList() { }",
"public DoubleLinkedList() {\n\t\thead = null;\n\t\ttail = null;\n\t\telements = 0;\n\t}",
"public LL() {\n head = null;\n }",
"public DoubleLinkedList() {\n\t\thead = new DoubleLinkedListNode();\n\t\ttail = new DoubleLinkedListNode();\n\t\thead.setNext(tail);\n\t\ttail.setPrev(head);\n\t\tsize = 0;\n\t}",
"public DList()\r\n {\r\n startTag=\"DL\";\r\n endTag=\"/DL\"; \r\n }",
"public LinkedLists() {\n }",
"public LinkedList() {\n this.head = null;\n this.tail = null;\n }",
"public SinglyLinkedList()\n {\n first = null; \n last = null;\n }",
"private ListADTImpl(GenericListADTNode<T> head) {\r\n this.head = head;\r\n }",
"public LinkedList () {\n\t\thead = null;\n\t\tcount = 0;\n\t}",
"public SinglyLinkedList(){\n this.first = null;\n }",
"public DoubleLinkedSeq()\r\n {\r\n manyNodes = 0; \r\n head = null;\r\n tail = null;\r\n cursor = null;\r\n precursor = null; // Implemented by student.\r\n }",
"public WeirdList(int head, WeirdList tail) { /* FILL IN */ }",
"public EmptyList(int head, WeirdList tail) {\n super(head, tail);\n }",
"public DoubleLinked() {\n first = null;\n last = null;\n N = 0;\n }",
"public LinkedList() {\r\n front = new ListNode(null);\r\n back = new ListNode(null, front, null);\r\n front.next = back;\r\n size = 0;\r\n }",
"public LinkedList() {\n\t\tthis(\"list\");\n\t}",
"public LinkedList() {\n\t\tfirst = null;\n\t}",
"public LinkedList()\n\t{\n\t\thead = null;\n\t}",
"public CircularDoublyLinkedList() {\r\n\t\tnumItems = 0;\r\n\r\n\t\t// create a dummy head node\r\n\t\thead = new DoublyNode(null);\r\n\t\thead.setPrev(head);\r\n\t\thead.setNext(head);\r\n\t}",
"public SLL() {\n\t\tsuper();\n\t\tthis.head = null;\n\t\tthis.size = 0;\n\t}",
"public LinkedList(){\n this.head = null;\n this.numNodes = 0;\n }",
"public MySinglyLinkedList() { }",
"public LinkedList() {\n head = null;\n numElement = 0;\n }",
"public CLinkedList() {\n \tthis.sentinel = new Node();\n \tthis.sentinel.succ = sentinel;\n \tthis.sentinel.pred = sentinel;\n \tthis.size = 0;\n }",
"public LinkedList() {\n\t\thead = null;\n\t\ttail = null;\n\t\tsize = 0;\n\t}",
"public LinkedList(){\n count = 0;\n front = rear = null;\n }",
"public List() {\n\t\tthis.head = null; \n\t}",
"public SinglyLinkedList() {\n this.len = 0;\n }",
"public LinkedList() {\n\t\thead = null;\n\t\tsize = 0;\n\t}",
"public SinglyLinkedList() {\n this.head = null; \n }",
"public MyLinkedList() {\n this.size = 0;\n this.head = new ListNode(0);\n }",
"public LinkedListGeneric() {\n head = null;\n }",
"public LinkedListDemo() {\n\t\tlength = 0;\n\t\thead = new ListNode();\n\t\n\t}",
"public CS228LinkedList() {\r\n\t\thead = new Node();\r\n\t\ttail = new Node();\r\n\t\thead.next = tail;\r\n\t\ttail.prev = head;\r\n\r\n\t\t// TODO - any other initialization you need\r\n\t}",
"public LinkedList()\r\n {\r\n front = null;\r\n rear = null;\r\n numElements = 0;\r\n }",
"public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }",
"public SkipListNode() {\n\t// construct a dummy node\n\tdata = null;\n\tnext = new ArrayList<SkipListNode<K>>();\n\tnext.add(null);\n }",
"public MyLinkedList() {\n first = null;\n n = 0;\n }",
"public LinkedListStructureofaSinglyLinkedListClass() {\n\t\theadNode=null;\n\t\tsize=0;\n\t\t\n\t}",
"public Lista()\n {\n empty=true;\n next = null;\n }",
"public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }",
"public MyLinkedList() \n\t{\n\t\t\n\t}",
"public MyLinkedList() {\n length = 0;\n }",
"public DoublyLinkedList() {\n header = new Node<>(null,null,null);\n trailer = new Node<>(null,header,null);\n header.setNext(trailer);\n }",
"public LinkedList()\n\t{\n\t\tthis.head = new Node(null);\n\t\tsize = 0;\n\t}",
"public LinkedListDemo() {\r\n }",
"SkipList()\r\n {\r\n head = new Node<T>(1); //Create a new head of our skip list and give it height 1.\r\n }",
"public LinkedList()\n { \n first = null;\n \n }",
"public SingleLinkedList() {\r\n start = null;\r\n System.out.println(\"A List Object was created\");\r\n }",
"private static AbstractList construct(LinkedList arg) {\n if (arg.isEmpty())\n return new EmptyList();\n else {\n Object fst = arg.pollFirst();\n //FIXME: The stupid bug in Gson.\n if (fst instanceof Double) fst = ((Double) fst).intValue();\n return new Cons(fst, construct(arg));\n }\n }",
"public LinkedList(E data, Node<E> next) {\n size++;\n prev = null;\n head = new Node(data, next);\n cursor = head;\n tail = head;\n }",
"public SortedLinkedList() {\n\t\thead = null;\n\t}",
"public SinglyLinkedList() {\n this.head = null;\n this.tail = null;\n this.size = 0;\n }",
"public GenLinkedList() {\r\n\t\thead = curr = prev = null;\r\n\t}",
"DListNode2(Object vertex1) {\r\n vertex = vertex1;\r\n list = null;\r\n prev = null;\r\n next = null;\r\n }",
"public LinkedList(){\n size=0;\n }",
"public ListNode(Object d) {\n\t\tdata = d;\n\t\tnext = null;\n\t}",
"public InputLinkedList() \n\t{\n\t\thead = null;\n\t}",
"public LinkedList() {\n\t\thead = new Node(null, null);\n\t\tsize = 0;\n\t\titerator = null;\n\t}",
"public HLinkedList(HTreeNode head) {\r\n \r\n this.head = head;\r\n if (head != null) {\r\n //a list with a null head still has length zero\r\n length += 1;\r\n }\r\n }",
"public MyLinkedList() {\r\n // when the linked list is created head will refer to null\r\n head = null;\r\n }",
"public Linked_list() {\n pre = new Node();\n post = new Node();\n pre.next = post;\n post.prev = pre;\n }",
"PublicLinkedList() {\n\t\tfront = back = null;\n\t}",
"public CircularLinkedList()\n {\n current = null;\n size = 0;\n }",
"public ListNode(E d)\n {\n nextNode = null;\n data = d;\n }",
"public LinkList(String data){\n this.head = new Node(data, null);\n this.tail = this.head;\n }"
]
| [
"0.8534489",
"0.78366756",
"0.7754868",
"0.7642361",
"0.7557637",
"0.7493151",
"0.749141",
"0.7482522",
"0.7474095",
"0.7373746",
"0.7329266",
"0.73220026",
"0.73149407",
"0.73112863",
"0.72888523",
"0.7287067",
"0.72842854",
"0.7268813",
"0.722912",
"0.72198147",
"0.7218737",
"0.7216785",
"0.7216107",
"0.7171639",
"0.71698",
"0.7168051",
"0.71659553",
"0.71651816",
"0.71498567",
"0.7139056",
"0.71326125",
"0.7115659",
"0.711549",
"0.71055907",
"0.7083022",
"0.70360476",
"0.7035923",
"0.69881546",
"0.69841015",
"0.6982495",
"0.6937194",
"0.6920798",
"0.6902896",
"0.68977195",
"0.6897611",
"0.6895962",
"0.6893948",
"0.6881388",
"0.68738276",
"0.68702686",
"0.68702495",
"0.6859722",
"0.68563205",
"0.6855974",
"0.6851952",
"0.685073",
"0.6847084",
"0.6845901",
"0.68454164",
"0.68409586",
"0.68409204",
"0.6838549",
"0.6833488",
"0.68314946",
"0.68288696",
"0.6810063",
"0.6798156",
"0.6797669",
"0.6793133",
"0.677987",
"0.6773917",
"0.6768735",
"0.67668146",
"0.6760887",
"0.67458844",
"0.6742614",
"0.67352563",
"0.6717306",
"0.6707312",
"0.6701401",
"0.66964823",
"0.6693403",
"0.6682316",
"0.6675171",
"0.66618073",
"0.6657916",
"0.6655784",
"0.6652308",
"0.66493183",
"0.6643614",
"0.6637186",
"0.6627568",
"0.65935934",
"0.65805763",
"0.6577354",
"0.65723014",
"0.65591085",
"0.6555057",
"0.6541006",
"0.65343314"
]
| 0.66706467 | 84 |
methods toString returns its representation as a String | public String toString()
{
String answer;
//if the size not 0, indent 9 spaces to make room for the "(null)<--" that backwards will print
if (size() != 0)
answer = " ";
else
answer = "";
DLLNode cursor = head;
while (cursor != null)
{
answer = answer + cursor.data + "-->";
cursor = cursor.next;
}
answer = answer + "(null)";
return answer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"public String toString() ;",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString() {\n\t}",
"public String toString();",
"public String toString() { return stringify(this, true); }",
"@Override\n\tString toString();",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"public String toString() { return \"\"; }",
"public String toString() { return \"\"; }",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"@Override\r\n String toString();",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\r\n\tpublic String toString();",
"public String toString()\n\t{\n\t\tString output=\"\";\n\n\n\n\n\n\n\t\treturn output+\"\\n\\n\";\n\t}",
"@Override\n String toString();",
"@Override\n String toString();",
"@Override\n\tpublic String toString();",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"@Override public String toString();",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}",
"public String toString()\n\t{\n\t\treturn toString(0);\n\t}",
"public String toString()\n\t{\n\t\treturn toString(0);\n\t}",
"public String toString()\n\t{\n\t\treturn toString(0);\n\t}",
"abstract public String toString();",
"public String toString() {\r\n return \"\";\r\n }",
"@Override String toString();",
"@Override\r\n public String toString();",
"public String toString() {\n return \"\";\n }",
"public String toString() {\n return \"\";\n }",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"@Override\n\tpublic abstract String toString();",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}"
]
| [
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.9044196",
"0.8937809",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.8916715",
"0.872184",
"0.8627514",
"0.8473456",
"0.8421335",
"0.83978426",
"0.8393687",
"0.8393687",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.8382338",
"0.83561003",
"0.83169407",
"0.82978904",
"0.8288264",
"0.8247275",
"0.8236251",
"0.8236251",
"0.8218756",
"0.82065034",
"0.82016736",
"0.8200062",
"0.8193323",
"0.81863236",
"0.81837904",
"0.81835514",
"0.81835514",
"0.81835514",
"0.8176042",
"0.81676674",
"0.81612265",
"0.81490564",
"0.8141211",
"0.8141211",
"0.8133826",
"0.810578",
"0.8101301",
"0.8082583"
]
| 0.0 | -1 |
backwards this will traverse the list like toString, only "backwards". | public String backwards()
{
String answer = "";
DLLNode cursor = tail;
while (cursor != null)
{
answer = "<--" + cursor.data + answer;
cursor = cursor.prev;
}
answer = "(null)" + answer;
return answer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String toStringBackwards();",
"@Override\n\tpublic String toString() {\n\t\tString string = \"\";\n\t\tfor (int i = list.size() - 1; i >= 0; i--) {\n\t\t\tstring += list.get(i) + \" \";\n\t\t}\n\t\treturn string;\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\n\t\tStringBuffer sb = new StringBuffer(\"top->\");\n\t\tif (!isEmpty())\n\t\t{\n for(int i = getSize() - 1; i >= 0; i--)\n {\n if(i == getSize() - 1)\n {\n sb.append(list.get(i));\n }\n else \n {\n sb.append( \"->\" + list.get(i));\n }\n }\n //System.out.println(sb.toString());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String getBack(){\n String str = \"\";\n if( !this.isEmpty() ){\n MyDoubleNode<Type> aux = this.end;\n while(aux != null){\n str += aux.value.toString() + \" \";\n aux = aux.prev;\n }\n }\n return str;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString list = \"List Contents: \\n\";\r\n\t\tSNode<T> iterator = this.getHead().getPrev();\r\n\t\twhile (iterator != tail) {\r\n\t\t\tlist += iterator.toString() + \" \\n\";\r\n\t\t\titerator = iterator.getPrev();\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"public String toString(){\n String result = \"\";\n ListNode current = front;\n while(current != null){\n result = result + current.toString() + \"\\n\";\n current = current.getNext();\n }\n return result;\n }",
"@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 void revPrintList(){\n\t\tCollections.reverse(listStr); //reverse ArrayList\n\t\t//cast the array list to a linked list\n\t\tLinkedList<Object> linkedString = new LinkedList<Object>(listStr);\n\t\t//while there is something in the LinkedList, run following code\n\t\twhile (linkedString.size() > 0) {\n\t\t\t//print out the current first in \"queue\" word\n\t\t\tSystem.out.print(linkedString.get(0) + \" \");\n\t\t\t//remove the first item in the linked list\n\t\t\tlinkedString.removeFirst();\n\t\t}\n\t\t//print out a new blank line for better readability\n\t\tSystem.out.println(\"\\n\");\n\t}",
"public String toString()\n\t{\n\t\tString stringList = \"\";\n\t\tNode temp = front;\n\t\twhile(temp != null)\n\t\t{\n\t\t\tstringList += String.valueOf(temp.data) + \" \"; //places the data from the Node into the empty string\n\t\t\ttemp = temp.next; //moevs onto the next Node in the list\n\t\t}\n\t\treturn stringList;\n\t}",
"public String toString(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tTList<T> root = this.getRoot();\n\t\tif (root == this) \n\t\t\tsb.append(\"*\");\n\t\tif (root.visited())\n\t\t\tsb.append(\"-\");\n\t\tsb.append(root.getValue());\n\t\twhile (root.hasNext()) {\n\t\t\tsb.append(\" -> \");\n\t\t\troot = root.getNext();\n\t\t\tif (root == this) \n\t\t\t\tsb.append(\"*\");\n\t\t\tif (root.visited())\n\t\t\t\tsb.append(\"-\");\n\t\t\tsb.append(root.getValue());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public @Override String toString() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object before node n\n for (Node n = sentinel.succ; n != sentinel; n= n.succ) {\n if (n != sentinel.succ)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }",
"public String toString() {\n StringBuilder s = new StringBuilder();\n for (Item item : this) {\n s.append(item + \" \");\n }\n return s.toString().substring(0, s.length() - 1);\n }",
"public void reverse() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n newSeq.add(seq.get(seq.size() - 1 - i));\n }\n seq = newSeq;\n }",
"public String toStringRev() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object after node n\n for (Node n = sentinel.pred; n != sentinel; n= n.pred) {\n if (n != sentinel.pred)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }",
"@Override\n public String toString() {\n return list.toString().replace(\"[\",\"\").replace(\"]\",\"\");\n }",
"@Override\r\n public String toString() {\r\n String output = \"[ \";\r\n for (int i = 0; i < count; i++) {\r\n output += list[i] + \", \";\r\n }\r\n if (count > 0) {\r\n output = output.substring(0, output.length() - 2);\r\n } else {\r\n output = output.substring(0, output.length() - 1);\r\n }\r\n output += \" ]\";\r\n return output;\r\n }",
"private String listToString(StringLinkedList list) {\n\t\t\n\t\tString first = list.removeLast();\n\t\tif(first == null) return \"[]\";\n\t\tString output = first + \"]\";\n\t\twhile(true) {\n\t\t\tString current = list.removeLast();\n\t\t\tif(current == null) {\n\t\t\t\treturn \"[\" + output;\n\t\t\t} else {\n\t\t\t\toutput = current + \",\" + output;\n\t\t\t}\n\t\t}\n\t}",
"public String toString()\n { \t\n \t//initialize String variable to return \n \tString listString = \"\";\n \t//create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //concatenate String of all nodes in list\n while(localNode != null)\n {\n listString += localNode.toString();\n localNode = localNode.getNext();\n }\n \n //return the string to the method\n return listString;\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\t\tif (prev != null) {\n\t\t\t\tstringBuilder.append(prev.elementE);\n\t\t\t}else {\n\t\t\t\tstringBuilder.append(\"null\");\n\t\t\t}\n\t\t\tstringBuilder.append(\"_\").append(elementE).append(\"_\");\n\t\t\tif (next != null) {\n\t\t\t\tstringBuilder.append(next.elementE);\n\t\t\t}else {\n\t\t\t\tstringBuilder.append(\"null\");\n\t\t\t}\n\t\t\treturn stringBuilder.toString();\n\t\t}",
"public String toString () {\n return \"(\" + this.head() +\n this.tail().continueString();\n }",
"public static void main (String[] args)\r\n {\r\n List<String> list = Arrays.asList(\"C\", \"C++\", \"Java\");\r\n \r\n // use ListIterator to iterate List in reverse order\r\n ListIterator<String> itr = list.listIterator(list.size());\r\n \r\n // hasPrevious() returns true if the list has previous element\r\n while (itr.hasPrevious()) {\r\n System.out.println(itr.previous());\r\n }\r\n }",
"public String getForward(){\n String str = \"\";\n if( !this.isEmpty() ){\n MyDoubleNode<Type> aux = this.start;\n while(aux != null){\n str += aux.value.toString() + \" \";\n aux = aux.next;\n }\n }\n return str;\n }",
"public String toString()\n\t{\n\t\tString queueAsString = \"\";\n\t\tint index = front - 1;\n\t\tfor (int i = 0; i < counter; i++)\n\t\t{\n\t\t\tindex = next(index);\n\t\t\tqueueAsString += list[index] + \" \";\n\t\t}\n\t\treturn queueAsString;\n\t}",
"@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n for (Item item : this) {\n stringBuilder.append(item.toString()).append(\" \");\n }\n return stringBuilder.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\t//Invert the Stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size(); i++) {\n\t\t\treturnString += iteratorNode.data.toString();\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}",
"@Override\n\tpublic IDnaStrand reverse() {\n\t\tLinkStrand reversed = new LinkStrand();\n\t\tNode current = new Node(null);\n\t\tcurrent = myFirst;\n\t\t\n\t\twhile (current != null) {\n\t\t\t\n\t\t\tStringBuilder copy = new StringBuilder(current.info);\n\t\t\tcopy.reverse();\n\t\t\tNode first = new Node(copy.toString());\n\t\t\t\n\t\t\tfirst.next = reversed.myFirst;\n\t\t\tif (reversed.myLast == null) {\n\t\t\t\treversed.myLast = reversed.myFirst;\n\t\t\t\treversed.myLast.next = null;\n\t\t\t\t\n\t\t\t}\n\t\t\treversed.myFirst = first;\n\t\t\treversed.mySize += copy.length();\n\t\t\treversed.myAppends ++;\n\t\t\t\n\t\t\t\n\t\t\tcurrent = current.next;\n\t\t\t\n\t\t}\n\t\treturn reversed;\n\t}",
"public MyStringBuilder2 reverse()\n\t{\n\t\t\t\tCNode currNode = firstC;\n\t\t\t\tCNode nextNode = null;\n\t\t\t\tCNode prevNode = null;\n\t\t\t\trecursiveReverse(currNode, nextNode, prevNode);\n\t\t\t\treturn this;\n\t}",
"void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}",
"public String toListString() {\n\t\treturn head.toListString(); \n\t}",
"@NonNull\n ConsList<E> reverse();",
"@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }",
"public String toString(){\n String result = \"\";\n LinearNode<T> trav = front;\n while (trav != null){\n result += trav.getElement();\n trav = trav.getNext();\n }\n return result;\n }",
"private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}",
"public String toString()\r\n {\r\n String s = new String();\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n s += vi.getObject().toString()+ Static.defaultSeparator;\r\n vi = vi.getNext();\r\n }\r\n \r\n return s;\r\n }",
"@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}",
"public void reverse() {\n\t\tif (!this.isEmpty()) {\n\t\t\tT x = this.peek();\n\t\t\tthis.pop();\n\t\t\treverse();\n\t\t\tinsert_at_bottom(x);\n\t\t} else\n\t\t\treturn;\n\t}",
"@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}",
"@Override\r\n public String next() {\n if(current<m_list.size())\r\n {\r\n String str = m_list.get(current);\r\n current++;\r\n return str;\r\n }\r\n m_list = getNextLevel(m_list, m_chars);\r\n current = 1;\r\n return m_list.get(0);\r\n \r\n }",
"public String cyclify() {\n return toString();\n }",
"public /*@ non_null @*/ String toString() {\n String ret = \"[\";\n JMLListEqualsNode<E> thisLst = this;\n boolean firstTime = true;\n while (thisLst != null) {\n if (!firstTime) {\n ret += \", \";\n } else {\n firstTime = false;\n }\n if (thisLst.val == null) {\n ret += \"null\";\n } else {\n ret += thisLst.val.toString();\n }\n thisLst = thisLst.next;\n }\n ret += \"]\";\n return ret;\n }",
"public String toString(){\n\t\tString list=\"\";\n\t\tif(isEmpty()==false){\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp!=null){\n\t\t\tlist += temp.getC();\n\t\t\ttemp=temp.getNext();\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t\telse{\n\t\t\treturn list;\n\t\t}\n\t}",
"public void reversePrint()\n {\n reversePrint(size-1);\n }",
"public static void reverse(java.util.List arg0)\n { return; }",
"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 postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public static void displayReverse(ArrayList<String> list){\r\n //Loop through the list\r\n for(int i = list.size()-1; i >= 0; i--){\r\n System.out.print(list.get(i) + \" \"); \r\n }\r\n System.out.println();\r\n }",
"public static void main(String[] args) {\n List myList = new List();\n myList.append(3);\n myList.append(4);\n myList.append(5);\n myList.prepend(2);\n myList.prepend(1);\n System.out.println(\"Print the list forward:\");\n myList.printForward();\n System.out.println();\n System.out.println(\"Print the list backward:\");\n myList.printReverse();\n System.out.println();\n System.out.println(\"Remove and print the first element:\");\n System.out.println(myList.popFront());\n System.out.println(\"Remove and print the last element:\");\n System.out.println(myList.popBack());\n System.out.println();\n System.out.println(\"Print the list forward:\");\n myList.printForward();\n System.out.println();\n System.out.println(\"Print the list backward:\");\n myList.printReverse(); \n }",
"private static void listIteratorMovesInBothDirections(){\n\t ArrayList<String> list = new ArrayList<String>();\n\t \n\t list.add(\"ONE\");\n\t \n\t list.add(\"TWO\");\n\t \n\t list.add(\"THREE\");\n\t \n\t list.add(\"FOUR\");\n\t \n\t //RSN NOTE ListIterator\n\t ListIterator iterator = list.listIterator();\n\t \n\t System.out.println(\"Elements in forward direction\");\n\t \n\t while (iterator.hasNext())\n\t {\n\t System.out.println(iterator.next());\n\t }\n\t \n\t System.out.println(\"Elements in backward direction\");\n\t \n\t while (iterator.hasPrevious())\n\t {\n\t System.out.println(iterator.previous());\n\t }\n\t}",
"public String toString() {\n String result = \"\";\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n // add \\n (line down) for prev. item if it's not the first item\n if (i > 0)\n result += \"\\n\";\n // add it's toString result to the final result string\n result += this._stock[i].toString();\n }\n return result;\n }",
"public String toString() {\n // TODO: implement this method\n ListNode curr = nil.next();\n String retVal = \"[\";\n\n while(curr != nil){\n\n if(curr.isActive()){\n retVal += \" *\" + curr.value().toString() + \"*\" ;\n }else{\n retVal += \" \" + curr.value().toString() ;\n }\n\n curr = curr.next();\n }\n\n return retVal + \" ]\";\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString result = \"\";\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tfor (ListNode<E> iter = this.first(); iter != null; iter = iter.next) {\r\n\t\t\t\tresult += iter + \", \";\r\n\t\t\t}\r\n\t\t\tresult += \"\\n\";\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static void main(String [] args)\n {\n\tStringList sl = new StringList();\n\t\n\tsl.pushFront(\"hello\");\n\tfor (int ii = 0; ii < 3; ++ii) {\n\t sl.pushFront(\" \" + ii);\n\t}\n\tsl.pushFront(\"byebye!\");\n\tsl.print(\"after 5 pushFront\", \" * \", 10);\n\t\n\tsl.clear();\n\tsl.print(\"after clear\", \" * \", 10);\n\t\n\tsl.pushBack(\"one\");\n\tsl.pushBack(\"two\");\n\tsl.pushBack(\"three\");\n\tsl.print(\"after 3 pushBack\", \" * \", 10);\n\n\tSystem.out.print(\"using the iterator:\");\n\tfor (StringListIterator ii = sl.first(); ii.valid(); ii.next()) {\n\t System.out.print(\" \" + ii.get());\n\t}\n\tSystem.out.println();\n\t\n\twhile ( ! sl.empty()) {\n\t System.out.println(\"pop front (\" + sl.front() + \")\");\n\t sl.popFront();\n\t sl.print(\" result\", \" - \", 10);\n\t}\n\t\n\tsl.pushBack(\"a1\");\n\tsl.pushBack(\"a2\");\n\tsl.print(\"after 2 pushBack\", \" * \", 10);\n\n\tsl.insertAfter(\"B1\", sl.first());\n\tsl.print(\"inserted B1 after the head\", \" * \", 10);\n\t\n\tsl.insertAfter(\"B2\", sl.last());\n\tsl.print(\"inserted B2 after the tail\", \" * \", 10);\n\n\tsl.insertBefore(\"C1\", sl.first());\n\tsl.print(\"inserted C1 before the head\", \" * \", 10);\n\t\n\tsl.insertBefore(\"C2\", sl.last());\n\tsl.print(\"inserted C2 before the tail\", \" * \", 10);\n\t\n\tfor (StringListIterator ii = sl.first(); ii.valid(); ii.next()) {\n\t ii.next();\n\t if (ii.valid()) {\n\t\tsl.remove(ii);\n\t }\n\t}\n\tsl.print(\"after removing nodes number 2, 4, ...\", \" * \", 10);\n\t\n\tsl.remove(sl.first());\n\tsl.print(\"after removing first node\", \" * \", 10);\n\t\n\tsl.remove(sl.last());\n\tsl.print(\"after last node\", \" * \", 10);\n }",
"public static void printBackwards(String[] arr) {\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[arr.length-1 - i] + \" \");\n\t\t}\n\t}",
"private static void printList() {\n\tNode n=head;\n\tint size=0;\n\twhile(n!=null)\n\t{\n\t\tSystem.out.print(n.data+\" \");\n\t\tn=n.next;\n\t\tsize++;\n\t}\n\tn=head;\n\tfor(int i=0;i<size-1;i++)\n\t\tn=n.next;\n\tSystem.out.println(\"\\nreverse direction\");\n\twhile(n!=null)\n\t{\n\t\t\n\t\tSystem.out.print(n.data+\" \");\n\t\tn=n.prev;\n\t}\n\t\n}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return builder.toString();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n Stack<StackItem> stack = new Stack<>();\n List<MenuItem> items = this.items;\n Collections.reverse(items);\n for (MenuItem i : items) {\n stack.push(new StackItem(i, 0));\n }\n while (stack.size() != 0) {\n StackItem stackItem = stack.pop();\n sb.append(this.getMenuItemRepresentation(stackItem.getMenuItem().toString(), stackItem.getLevel()));\n List<MenuItem> childs = stackItem.getMenuItem().getChilds();\n Collections.reverse(childs);\n for (MenuItem child : childs) {\n stack.push(new StackItem(child, stackItem.getLevel() + 1));\n }\n }\n return sb.toString();\n }",
"public String toString()\r\n {\n \tString result = \"\";\r\n \tNode n = this.top;\r\n \twhile (n != null)\r\n \t{\r\n \t\tresult = result + \" \" + n.getItem().toString();\r\n \t\tn = n.getNext();\r\n \t}\r\n \treturn result.trim();\r\n }",
"public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }",
"public static void main(String args[]) {\n ArrayList al = new ArrayList();\n // add elements to the array list\n al.add(\"C\");\n al.add(\"A\");\n al.add(\"E\");\n al.add(\"B\");\n al.add(\"D\");\n al.add(\"F\");\n\n // Use iterator to display contents of al\n System.out.print(\"Original contents of al: \");\n Iterator itr = al.iterator();\n\n while (itr.hasNext()) {\n Object element = itr.next();\n System.out.print(element + \" \");\n }\n System.out.println();\n\n // Modify objects being iterated\n ListIterator litr = al.listIterator();\n while (litr.hasNext()) {\n Object element = litr.next();\n litr.set(element + \"+\");\n }\n System.out.print(\"Modified contents of al: \");\n itr = al.iterator();\n while (itr.hasNext()) {\n Object element = itr.next();\n System.out.print(element + \" \");\n }\n System.out.println();\n // Now, display the list backwards\n System.out.print(\"Modified list backwards: \");\n\n while (litr.hasPrevious()) {\n Object element = litr.previous();\n System.out.print(element + \" \");\n }\n System.out.println();\n }",
"@Test\n\tpublic void NotExamtestListToString() {\n\t\t\n\t\tassertEquals(\"[a,b,c]\",listToString(list));\n\t\tassertEquals(\"[a,b,c,aaa,a,a,d,a]\",listToString(list2));\n\t\tassertEquals(\"[]\",listToString(empty));\n\t\tassertEquals(\"[hello]\",listToString(onlyOne));\n\n\t}",
"public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }",
"public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }",
"private void printHistoryReverse()\r\n\t{\r\n\t\tStack temp = new Stack(SIZE);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Most Recent to Oldest):\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(chronological.peek());\t\t//print out value currently at the top of stack\r\n\t\t\ttemp.push(chronological.pop());\t\t\t\t\t//pop the top of stack and push to another stack\r\n\t\t}\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tchronological.push(temp.pop());\t\t\t\t\t//push all elements of temp back to the original stack\r\n\t}",
"public static void checkToString() {\r\n\t\tSystem.out.println(\"Beginning toString test (should be [-1, 2, 5, 17] and [3, 6, 8, 42])\");\r\n\t\tSortedIntList list = new SortedIntList(5);\r\n\t\tlist.add(5);\r\n\t\tlist.add(-1);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" \" + list.toString());\r\n\t\t\r\n\t\tSortedIntList list2 = new SortedIntList(true);\r\n\t\tlist2.add(6);\r\n\t\tlist2.add(3);\r\n\t\tlist2.add(6);\r\n\t\tlist2.add(42);\r\n\t\tlist2.add(8);\r\n\t\tSystem.out.println(\" \" + list2.toString());\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tIterator<HuffmanPair> temp;\r\n\t\tString result = \"\";\r\n\t\ttemp = super.iteratorPreOrder();\r\n\t\twhile (temp.hasNext()) {\r\n\t\t\tresult += temp.next().toString();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\r\n\tprotected String doBackward(List<Emotion> b) {\n\t\treturn null;\r\n\t}",
"public List<String> reverseList(List<String> stringList) {\n\t\tList<String> reversedList = new ArrayList<>(); //anytime we define List<String> on left we dont need String on right within <>\n\t\tStack<String> reversed = new Stack<>(); //FILO \n\t\t\n\t\tfor (String element: stringList) {\n\t\t\treversed.push(element);\n\t\t}\n\t\twhile(!reversed.empty()) { //if whole stack is not empty (not specific elements) (each element being removed until empty)\n\t\t\treversedList.add(reversed.pop()); //adding popped element \n\t\t\t/* or lines 92 & 93 same as line 90;\n\t\t\t * String element = reversed.pop();\n\t\t\t * reversedList.add(element); */\n\t\t}//for each loop shouldn't be used with manipulated lists especially remove functions \n\t\t\n\t\treturn reversedList; \n\t}",
"@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }",
"@Test\n public void testIterator_Backward() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n\n int i = 0;\n while (instance.hasNext()) {\n instance.next();\n }\n\n i = baseList.size() - 1;\n while (instance.hasPrevious()) {\n assertEquals(baseList.get(i--), instance.previous());\n }\n\n }",
"public String toString() { return new String(b,0,i_end); }",
"public String back()\n {\n\treturn tail.value;\n }",
"@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n }\r\n return output.toString();\r\n }",
"public String toString() {\r\n StringBuilder sb = new StringBuilder(\"(\");\r\n Node<E> walk = head;\r\n while (walk != null) {\r\n sb.append(walk.getItem());\r\n if (walk != tail)\r\n sb.append(\", \");\r\n walk = walk.getNext();\r\n }\r\n sb.append(\")\");\r\n return sb.toString();\r\n }",
"@Test\n\tpublic void testPopBack2() {\n\t\tcircularlist.pushBack(4);\n\t\tcircularlist.pushBack(12);\n\t\tcircularlist.pushBack(7);\n\t\tcircularlist.pushBack(9);\n\t\t\n\t\tcircularlist.popBack();\n\t\tcircularlist.popBack();\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : 4 12\\r\\n\", Actualout.toString());\n\t}",
"@Override\r\n public String toString() {\r\n String str = \"[\";\r\n if (!isEmpty()) {\r\n Node<T> current = head.next();\r\n while (current != tail) {\r\n str = str + current.getData();\r\n if (current.next != tail) {\r\n str = str + \", \";\r\n }\r\n current = current.next();\r\n }\r\n }\r\n return str + \"]\";\r\n }",
"public String toString()\n\t{\n\t\tString answer;\n\t\t//if the size not 0, indent 9 spaces to make room for the \"(null)<--\" that backwards will print\n\t\tif (size() != 0)\n\t\t\tanswer = \" \";\n\t\telse\n\t\t\tanswer = \"\";\n\n\t\tDLLNode cursor = head;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = answer + cursor.data + \"-->\";\n\t\t\tcursor = cursor.next;\n\t\t}\n\n\t\tanswer = answer + \"(null)\";\n\t\treturn answer;\n\t}",
"public String toStringAll() {\n\t\treturn toStringEx(-1);\n\t}",
"public String toString()\n\t{\n\n if ( !isEmpty() )\n\t\t{ \n Node tNode = head;\n String str = tNode.item;\n\t\t\twhile (tNode.next != null)\n\t\t\t{\n\t\t\t\ttNode = tNode.next;\n str = str + \" -> \" + tNode.item;\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn null;\n\t\t//return \"\";\n }",
"public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t }\r\n\t \r\n\t return rev; \r\n }",
"public String toString() {\n//\t\tif (isEmpty()) {\n//\t\t\treturn null;\n//\t\t}\n\t\t//create a string that holds the value of the list\n\t\t//held inside curly braces for my viewing pleasure\n\t\tString s = \"\";\n\t\t//if the list is not empty\n\t\tif (isEmpty()!= true) {\n\t\t\t//create a node and set it to the head\n\t\t\tLinkedListNode<T> curNode = head;\n\t\t\t\t//while the current node isn't null\n\t\t\t\twhile (curNode != null) {\n\t\t\t\t\t//add the data in the node to my string\n\t\t\t\t\ts += curNode.getData();\n\t\t\t\t\t//set current node to be the next node\n\t\t\t\t\tcurNode = curNode.getNext();\n\t\t\t\t}\n\t\t}\n\t\t//return the final string\n\t\treturn s;\n\t}",
"public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }",
"private Object asReversedIteration(final List<Object> list, final boolean recursive, final List<Object> disc) {\n Stack<Object> s = new Stack<>();\n disc.add(list);\n outerLoop:\n for (Object m : list) {\n s.push(m);\n\n for (Object e : disc) {\n {\n if (e == m) {\n continue outerLoop;\n }\n }\n }\n if (recursive) {\n if (m instanceof List<?>) {\n asReversedIteration((List<Object>) m, true, disc);\n }\n if (m instanceof Map<?, ?>) {\n asReversedIteration((Map<String, Object>) m, true, disc);\n }\n }\n\n }\n list.clear();\n int size = s.size();\n for (int i = 0; i < size; i++) {\n list.add(s.pop());\n }\n return list;\n }",
"@Override\n public String toString(){\n StringBuffer result = new StringBuffer();\n \n for (Movable m: things){\n result.append(m.toString()).append(\"\\n\");\n }\n return result.toString().trim();\n }",
"public String toString()\n {\n\tString result = \"<SkipList:\";\n\tfor (K x : this) {\n\t result += \" \" + (x == null ? \"null\" : x.toString());\n\t}\n\tresult += \">\";\n\treturn result;\n }",
"public void peekCopy() {\n\t\tString first = listStr.get(0);\n\t\t//print out first in ArrayList\n\t\tSystem.out.println(first);\n\t\t//print out a new blank line for better readability\n\t\tSystem.out.println(\"\\n\");\n\t\t}",
"public String toString() {\n\t\t// Anmerkung: StringBuffer wäre die bessere Lösung.\n\t\tString text = \"\";\n\t\tListNode<E> p = head;\n\t\twhile (p != null) {\n\t\t\ttext += p.toString() + \" \";\n\t\t\tp = p.getTail();\n\t\t}\n\t\treturn \"( \" + text + \") \";\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}",
"public void displayBckwrd() {\n\t\tSystem.out.print(\"Displaying in backward direction [last-->first] : \");\n\t\tNode tempDisplay = last; // start at the end of linkedList\n\t\twhile (tempDisplay != null) {// Executes until we don't find start of\n\t\t\t\t\t\t\t\t\t\t// list.\n\t\t\ttempDisplay.displayNode();\n\t\t\ttempDisplay = tempDisplay.previous; // move to previous Node\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"@Override\r\n public String toString() {\r\n String toReturn = \"\";\r\n for (ListNode n : wordList) {\r\n toReturn += n.toString();\r\n }\r\n return toReturn;\r\n }",
"@Override\n\tpublic String toString() {\n\t\tString res = \"\";\n\t\tArrayList<ComparableSimpleEntry> arr = new ArrayList<>();\n\t\t\n\t\tfor (ComparableSimpleEntry i : this) {\n\t\t\tarr.add(i);\n\t\t}\n\t\t\n\t\tfor (int i = arr.size() - 1; i >= 0; i--) {\n\t\t\tres += arr.get(i).getValue().toString();\n\t\t\tres += \"\\n\";\n\t\t}\n\t\t\n\t\treturn res;\n\t}",
"public String toString() {\n\t\tNode current = top;\n\t\tStringBuilder s = new StringBuilder();\n\t\twhile (current != null) {\n\t\t\ts.append(current.value + \" \");\n\t\t\tcurrent = current.next;\n\t\t}\n\n\t\treturn s.toString();\n\t}",
"Digraph reverse() {\n return null;\n }",
"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 }",
"@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 }",
"private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }",
"@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\t\t\n\t\tfor(int i = 0; i < top; i++) {\n\t\t\tresult = result + stack[i].toString() + \"\\n\";\t//shouldn't it start at max --> 0 since its a stack\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@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 }",
"@Override\n public String toString() {\n return list.toString();\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 }"
]
| [
"0.70166445",
"0.6817162",
"0.666916",
"0.6288936",
"0.6263906",
"0.6243507",
"0.6189375",
"0.6184403",
"0.61412853",
"0.6096291",
"0.6058051",
"0.60543746",
"0.60444707",
"0.603446",
"0.60086906",
"0.6002358",
"0.5965538",
"0.5953375",
"0.59505147",
"0.5938181",
"0.5933945",
"0.59305036",
"0.58981943",
"0.58864385",
"0.5873996",
"0.58718663",
"0.5868586",
"0.5863405",
"0.5853225",
"0.585135",
"0.5846482",
"0.58369523",
"0.5836361",
"0.5833721",
"0.58298784",
"0.58291954",
"0.5824461",
"0.5820211",
"0.581589",
"0.5812384",
"0.5805251",
"0.58000815",
"0.57871234",
"0.5784805",
"0.5782868",
"0.57748985",
"0.57718337",
"0.5769647",
"0.57664174",
"0.5751499",
"0.57424456",
"0.5732855",
"0.5725974",
"0.57134885",
"0.57116413",
"0.570935",
"0.57032156",
"0.56956154",
"0.5686866",
"0.5686336",
"0.5684714",
"0.5674259",
"0.5664154",
"0.5661679",
"0.56507236",
"0.56396496",
"0.56353724",
"0.5626066",
"0.5618671",
"0.5615861",
"0.5608761",
"0.5604553",
"0.56037885",
"0.5599794",
"0.55989623",
"0.55960447",
"0.55954224",
"0.5578753",
"0.5578024",
"0.5577083",
"0.5572917",
"0.55710566",
"0.55699897",
"0.5568866",
"0.5567297",
"0.5566394",
"0.55645347",
"0.5555622",
"0.55534697",
"0.5550141",
"0.5549481",
"0.55439186",
"0.5536054",
"0.5527197",
"0.55167395",
"0.5508368",
"0.55070364",
"0.55028063",
"0.55017626",
"0.5499721"
]
| 0.59522325 | 18 |
Java main for when running without JavaFX launcher | public static void main(String[] args) {
launch(args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }",
"public static void main( String[] args) {\n\t\t// this method start the javaFX application.\n\t\t// some IDEs are capable of starting JavaFX without this method.\n\t\tlaunch( args);\n\t}",
"public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }",
"public static void main(String[] args) {\n JFXPanel fxPanel = new JFXPanel();\n new Main().start();\n }",
"public static void main(String[] args) throws Exception {\n Path selfPath = Paths.get(TestBrowser.class.getProtectionDomain().getCodeSource().getLocation().toURI());\n ModuleFinder finder = ModuleFinder.of(\n Paths.get(System.getProperty(\"javafx.sdk.path\")),\n selfPath\n );\n\n // Load the application as a named module and invoke it\n ModuleLayer parent = ModuleLayer.boot();\n Configuration cf = parent.configuration().resolve(finder, ModuleFinder.of(), Set.of(\"ReproduceOpenjfxCrash2\"));\n ClassLoader scl = ClassLoader.getSystemClassLoader();\n ModuleLayer layer = parent.defineModulesWithOneLoader(cf, scl);\n Class appClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"javafx.application.Application\");\n Class testClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"eu.doppel_helix.dev.jdk.reproducecrash.TestBrowserImpl\");\n Method launchMethod = appClass.getMethod(\"launch\", Class.class, String[].class);\n launchMethod.invoke(null, new Object[]{testClass, args});\n }",
"public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }",
"public static void main(String[] args){\n try {\n //wait to initialize toolkit\n final CountDownLatch latch = new CountDownLatch(1);\n SwingUtilities.invokeLater(() -> {\n new JFXPanel(); // initializes JavaFX environment\n latch.countDown();\n });\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Consumer consumer = new Consumer();\n }",
"public static void main(String[] args)\n {\n EventQueue.invokeLater(() ->\n {\n try\n {\n App app = new App();\n app.frame.setVisible(true);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }",
"public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main(String[] args) {\n\n Application.launch(args);\n }",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}",
"@Override\n public void start(Stage primaryStage) {\n\n // The Stage is where we place GUI stuff, such as a GridPane (see later).\n // I'll look more at this after Easter, but please read the\n // following comments\n stage = primaryStage;\n\n // In this version of the app we will drive\n // the app using a command line menu.\n // YOU ARE REQUIRED TO IMPLEMENT THIS METHOD\n runMenu();\n\n // This is how we can handle a window close event. I will talk\n // about the strange syntax later (lambdas), but essentially it's a Java 8\n // was of providing a callback function: when someone clicks the\n // close window icon then this bit of code is run, passing in the event\n // object that represents the click event.\n primaryStage.setOnCloseRequest((event) -> {\n // Prevent window from closing. We only want quitting via\n // the command line menu.\n event.consume();\n\n System.out.println(\"Please quit the application via the menu\");\n });\n }",
"public static void main(String[] args) {\n Application.launch(args);\n }",
"public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }",
"public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}",
"public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }",
"public static void main(String[] args) {\n //launch it\n launch();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}",
"public void start(Stage mainStage) {\n\t\t\n\t}",
"void launch();",
"void launch();",
"void launch();",
"@Override\n public void start(Stage primaryStage) {\n AnchorPane root = new PowerOffWindow(null);\n \n Scene scene = new Scene(root);\n \n primaryStage.setTitle(\"JSonFX\");\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.getIcons().add(new Image(getClass().getResource(\"/res/JsonFX.png\").toString()));\n primaryStage.show();\n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(final String... args) {\n\n Application.launch();\n }",
"@Override\r\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"ui/main.fxml\")); //FXMLLoader.load(Utilities.getResourceURL(\"ui/main.fxml\"));\r\n primaryStage.setTitle(\"Custom Groovy Game Engine\");\r\n primaryStage.setScene(new Scene(root, 960, 480));\r\n primaryStage.show();\r\n }",
"public static void main(String[] args) {\n launch(args);\r\n \r\n }",
"public void start(Stage mainStage) {\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n launch(args);\r\n }",
"public static void main(String[] args) {\n launch(args);\r\n }",
"public static void main(String[] args) {\n launch(args);\r\n }",
"public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}",
"public static Object javafx$run$(Sequence<String> __ARGS__) {\n assertEquals(\"Test was not started on main thread\", \n \"main\", Thread.currentThread().getName());\n return null;\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"Main.fxml\"));\n primaryStage.setTitle(\"Faulkner Kiosk\");\n primaryStage.setScene(new Scene(root, 600, 400));\n primaryStage.show();\n\n }",
"public static void main(String[] args)\r\n {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String... args) {\n\t\tApplication.launch(View.class, args);\n\t}",
"void start(Stage primaryStage);",
"public static void main(String[] args)\r\n {\r\n launch(args);\r\n }",
"@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"sample.fxml\"));\n addExitOnEsc(primaryStage);\n primaryStage.setTitle(\"Hello World\");\n primaryStage.setScene(new Scene(root, 300, 275));\n primaryStage.show();\n\n }",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main (String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args)\r\n {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\n\t launch(args);\n\t }",
"public static void main(String[] args) {\n\t launch(args);\n\t }",
"public static void main(String[] args) {\n launch(args);\n\n }",
"public static void main(String[] args) {\r\n\t launch(args);\r\n\t}",
"public static void main(String[] args) {\r\n\t\tSwingUtilities.invokeLater(() -> { \r\n\t\t\tnew JNotepadApp().setVisible(true);\r\n\t\t});\r\n\t}",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args)\n {\n launch(args);\n }",
"void launchApp();",
"public static void main(String[] args) {\n Application.launch(App.class, args);\n }",
"@Override\n public void start(Stage primaryStage) throws Exception {\n console(\"start...\");\n\n Parent root = FXMLLoader.load(getClass().getResource(\"AutoGraderApp.fxml\"));\n\n primaryStage.setTitle(appName);\n primaryStage.setScene(new Scene(root, MIN_STAGE_WIDTH, MIN_STAGE_HEIGHT));\n primaryStage.setMinWidth(MIN_STAGE_WIDTH);\n primaryStage.setMinHeight(MIN_STAGE_HEIGHT);\n\n primaryStage.show();\n }",
"public static void main(String[] args) {\n\n launch(args);\n }"
]
| [
"0.8077454",
"0.80443865",
"0.7509493",
"0.73956877",
"0.71634597",
"0.7107129",
"0.7022877",
"0.6922237",
"0.6909071",
"0.68710625",
"0.68710625",
"0.6868263",
"0.6862412",
"0.6859862",
"0.68550265",
"0.6840091",
"0.68338895",
"0.68187845",
"0.6813592",
"0.6810895",
"0.68011326",
"0.6798378",
"0.6798378",
"0.6798378",
"0.67756146",
"0.67581964",
"0.67581964",
"0.67581964",
"0.67581964",
"0.67581964",
"0.6748729",
"0.6740967",
"0.6735643",
"0.6734517",
"0.6734332",
"0.6734332",
"0.6734332",
"0.6718165",
"0.6711217",
"0.6698285",
"0.66906667",
"0.66901886",
"0.667804",
"0.66738546",
"0.6664804",
"0.66632",
"0.66600394",
"0.66369575",
"0.6631839",
"0.66310316",
"0.66310316",
"0.66310316",
"0.66310316",
"0.66310316",
"0.66310316",
"0.66310316",
"0.66130733",
"0.6608072",
"0.6608072",
"0.6608072",
"0.6608072",
"0.6608072",
"0.6608072",
"0.6604437",
"0.6580281",
"0.6580281",
"0.6580062",
"0.657657",
"0.6575434",
"0.6570185",
"0.6570185",
"0.6570185",
"0.6539341",
"0.6533057",
"0.6527878",
"0.65168035"
]
| 0.6554159 | 92 |
call this method when the SAVE button is clicked | public void onSaveButtonClicked() {
String description = mEditText.getText().toString();
Date date = new Date();
final DiaryEntry entry = new DiaryEntry(description, date);
AppExecutors.getInstance().diskIO().execute(new Runnable() {
@Override
public void run() {
if (mEntryId == DEFAULT_ENTRY_ID) {
// insert new task
mDb.entryDao().insertEntry(entry);
} else {
//update task
entry.setId(mEntryId);
mDb.entryDao().updateEntry(entry);
}
finish();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onSaveClicked();",
"void handleSaveClicked(ActionEvent event);",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}",
"public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }",
"public void save() {\n }",
"private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to save data...\";\n if (flag){\n message = \"Success to save data...\";\n }\n JOptionPane.showMessageDialog(this, message, \"Allert / Notification\", \n JOptionPane.INFORMATION_MESSAGE);\n \n bindingTable();\n reset();\n }",
"public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}",
"private void saveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveActionPerformed\n toSave();\n }",
"public void save() {\t\n\t\n\t\n\t}",
"public void onSaveClicked(View view) {\n\n if (mInterest != 0.0f) {\n\n ContentValues values = new ContentValues();\n values.put(SavingsItemEntry.COLUMN_NAME_BANK_NAME, bankInput.getText().toString());\n values.put(SavingsItemEntry.COLUMN_NAME_AMOUNT, mAmount);\n values.put(SavingsItemEntry.COLUMN_NAME_YIELD, mYield);\n values.put(SavingsItemEntry.COLUMN_NAME_START_DATE, mStartDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_END_DATE, mEndDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_INTEREST, mInterest);\n\n if (mEditMode){\n //Update the data into database by ContentProvider\n getContentResolver().update(SavingsContentProvider.CONTENT_URI, values,\n SavingsItemEntry._ID + \"=\" + mSavingsBean.getId(), null);\n Log.d(Constants.LOG_TAG, \"Edit mode, updated existing savings item: \" + mSavingsBean.getId());\n }else {\n // Save the data into database by ContentProvider\n getContentResolver().insert(\n SavingsContentProvider.CONTENT_URI,\n values\n );\n }\n // Go back to dashboard\n //Intent intent = new Intent(this, DashboardActivity.class);\n //startActivity(intent);\n Utils.gotoDashBoard(this);\n finish();\n } else {\n Toast.makeText(this, R.string.missing_savings_information, Toast.LENGTH_LONG).show();\n }\n\n }",
"@Override\n public void Save() {\n\t \n }",
"private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }",
"public void saveAction() {\n\t\tresult.setValue(convertPairsToText());\n\t\tcloseDialog();\n\t}",
"@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}",
"void save();",
"void save();",
"void save();",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsaveChanges();\r\n\t\t\t\t\t\r\n\t\t\t\t}",
"public void saveClicked()\n {\n String name = nameText.getText().toString();\n if(name.length() == 0)\n {\n showMessage(\"Name cannot be empty!\");\n return;\n }\n // create a new record;\n Record r = new Record(name, timeUsed, shapeMissed);\n Intent intent = new Intent(this, RankScore.class);\n intent.putExtra(\"record\", r);\n startActivityForResult(intent, 1, null);\n }",
"@Override\n public void save()\n {\n \n }",
"@Override\n public void save() {\n \n }",
"private void onClickSaveButton() {\n // Validate and save form\n if (mDynamicForm.validate()) {\n triggerSubmitForm(mDynamicForm.getForm().getAction(), mDynamicForm.save());\n }\n }",
"@UiHandler(\"save\")\n\tvoid onSaveClicked(ClickEvent evt) {\n\t\tScheduler.get().scheduleDeferred(new ScheduledCommand() {\n\t\t\t@Override\n\t\t\tpublic void execute() {\n\t\t\t\tpresenter.save();\n\t\t\t}\n\t\t});\n\t}",
"HasClickHandlers getSaveButton();",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsave();\n\t\t\t}",
"protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }",
"public void saveButtonClicked() {\n clearInputFieldStyle();\n boolean minOneError = false;\n HashMap<JFXTextField, Boolean> errors = validateFields();\n\n for(Map.Entry<JFXTextField, Boolean> entry : errors.entrySet()) {\n JFXTextField textField = entry.getKey();\n Boolean value = entry.getValue();\n\n if(value){\n textField.styleProperty().setValue(\"-fx-text-fill: #e15f50;\");\n minOneError = true;\n }\n }\n\n if(!minOneError){\n saveRaceCar();\n updateRaceCarList();\n selectRaceCarInListView();\n setButtonsDisabled(true, false, false);\n setAllFieldsAndSliderDisabled(true);\n ViewHelper.updateCarData();\n }\n }",
"@Override\n public void save() {\n\n }",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tsaveFields();\r\n\t\t\t\t}",
"public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}",
"@OnClick(R.id.btn_save_event)\n public void saveChanges() {\n if (isNewEvent) {\n createEvent();\n } else {\n updateEvent();\n }\n }",
"private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void clickOnSave() {\r\n\t\telement(saveButton).waitUntilVisible();\r\n\t\tsaveButton.click();\r\n\t}",
"@FXML private void doSave(ActionEvent event) {\n\t\tmodel.save();\n\t}",
"public void onSaveClicked(View view) {\n if (isAllInputValid()) {\n saveValues();\n showToast(R.string.toast_changes_applied);\n finish();\n }\n else {\n new AlertDialog.Builder(this).\n setTitle(R.string.dialog_error_title).\n setMessage(R.string.dialog_error_msg).\n setPositiveButton(R.string.dialog_error_pos, (dialog, which) -> {}).\n create().show();\n }\n }",
"public void save() throws Exception {\n\t\tgetControl(\"saveButton\").click();\n\t\tVoodooUtils.pause(3000);\n\t}",
"private void savedDialog() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Changes to the current recipe have been saved.\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Success\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveFile();\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tSaveAction();\r\n\t\t\t\r\n\t\t}",
"private void saveForm() {\n\n if (reportWithCurrentDateExists()) {\n // Can't save this case\n return;\n }\n\n boolean isNewReport = (mRowId == null);\n\n // Get field values from the form elements\n\n // Date\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = df.format(mCalendar.getTime());\n\n // Value\n Double value;\n try {\n value = Double.valueOf(mValueText.getText().toString());\n } catch (NumberFormatException e) {\n value = 0.0;\n }\n\n // Create/update report\n boolean isSaved;\n if (isNewReport) {\n mRowId = mDbHelper.getReportPeer().createReport(mTaskId, date, value);\n isSaved = (mRowId != 0);\n } else {\n isSaved = mDbHelper.getReportPeer().updateReport(mRowId, date, value);\n }\n\n // Show toast notification\n if (isSaved) {\n int toastMessageId = isNewReport ?\n R.string.message_report_created :\n R.string.message_report_updated;\n Toast toast = Toast.makeText(getApplicationContext(), toastMessageId, Toast.LENGTH_SHORT);\n toast.show();\n }\n }",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}",
"public void onSaveClick() {\n Log.d(\"database\", \"onSaveClick invoked.\");\n Prediction p = new Prediction(0, resultStringToSave, byteArrayToSave);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + resultStringToSave + \" bytearr: \" + byteArrayToSave);\n PredictionDatabase.insert(p);\n // save to db\n }",
"@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}",
"private void saveData() {\n }",
"private void onClickButtonSaveAndCreateAnother() {\n if (onClickButtonSave()) {\n startActivity(getIntent());\n }\n }",
"private void onSaveButtonClicked() {\n final String date = dayValue + \".\" + monthValue + \".\" + yearValue;\n final String name = edtEventName.getText().toString();\n final String location = edtEventLocation.getText().toString();\n final String desc = edtEventDesc.getText().toString();\n final EventData eventData = new EventData(name,\n date, location, desc);\n\n // create a new thread to insert or update db\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // the condition when user click the one of the items in recyclerView (Update existing row)\n if (intent != null && intent.hasExtra(\"id\")) {\n eventData.setId(intent.getIntExtra(\"id\", 0));\n eventDatabase.eventDAO().updateEvent(eventData);\n }\n // the condition when user click plus button from MainActivity.java (Insert a new row)\n else {\n eventDatabase.eventDAO().insertNewEvent(eventData);\n\n }\n finish(); // destroy activity (when u press back key after clicking \"save btn\", this activity won't be called again)\n }\n });\n }",
"public void saveForm(ActionEvent event) throws SQLException, ParseException {\n actionItemClass obj = new actionItemClass();\n obj.saveForm(this);\n }",
"private void saveListener() {\n buttonPanel.getSave().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n toDoList.saveAll(fileLocation);\n }\n });\n }",
"private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }",
"public void clickOnSaveButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Save\"));\r\n\t}",
"private void saveAsButton(){\n SaveAsLabNameTextField.setText(\"\");\n SaveAsErrorLabel.setVisible(false);\n SaveAsDialog.setVisible(true);\n }",
"public void saveButtonPressed(ActionEvent actionEvent) throws IOException{\n validateInputs(actionEvent);\n\n if (isInputValid) {\n //creates a new Product object with identifier currentProduct\n currentProduct = new Product(productNameInput, productInventoryLevel, productPriceInput, maxInventoryLevelInput, minInventoryLevelInput);\n\n //passes currentProduct as the argument for the .addMethod.\n Inventory.getAllProducts().add(currentProduct);\n\n //utilizes the associatedPartsTableviewHolder wiht a for loop to pass each element as an argument\n //for the .addAssociatedPart method.\n for (Part part : associatedPartTableViewHolder) {\n currentProduct.addAssociatedPart(part);\n }\n\n //calls the returnToMainMen() method.\n mainMenuWindow.returnToMainMenu(actionEvent);\n }\n else {\n isInputValid = true;\n }\n\n }",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"public void saveData(){\n\n if(addFieldstoLift()) {\n Intent intent = new Intent(SetsPage.this, LiftsPage.class);\n intent.putExtra(\"lift\", lift);\n setResult(Activity.RESULT_OK, intent);\n finish();\n }else{\n AlertDialog.Builder builder = new AlertDialog.Builder(SetsPage.this);\n builder.setCancelable(true);\n builder.setTitle(\"Invalid Entry\");\n builder.setMessage(\"Entry is invalid. If you continue your changes will not be saved\");\n builder.setPositiveButton(\"Continue\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }",
"public void onSaveClicked(View v) {\n\n\t\tString mValue = (String) ((EditText) findViewById(R.id.editName))\n\t\t\t\t.getText().toString();\n\n\t\tif (mValue.equals(\"\")) {\n\t\t\tToast.makeText(getApplicationContext(), \"Please enter your name\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tGlobals.USER_COLOR = CalendarUtils.generateRandomColor();\n\t\t\tsaveUserData();\n\t\t\t// Make a Toast informing the user their information is saved.\n\t\t\tToast.makeText(getApplicationContext(), \"Saved\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\t\n\t\t\tint size = Globals.drawingMatrix.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tGlobals.drawingMatrix.get(i).clear();\n\t\t\t}\n\t\t\tGlobals.drawingMatrix.clear();\n\t\t\t\n\t\t\tfinish();\n\t\t}\n\n\t}",
"private void saveButtonActionPerformed(java.awt.event.ActionEvent evt)\n {\n if (validationIsOK()) {\n \tsaveSettings();\n autosave.saveSettings();\n if (this.autosaveListener != null\n ) {\n \tthis.autosaveListener.reloadSettings();\n }\n dispose();\n }\n }",
"private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}",
"private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {\n rom.save(obstacle, frog);\n isSaved = true;\n }",
"@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}",
"public boolean save();",
"public HasClickHandlers getSaveButton() {\n\t\treturn btnSave;\r\n\t}",
"private void saveFunction() {\n }",
"private void menuSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSaveActionPerformed\n saveDataToFile();\n }",
"@FXML\n public void save(ActionEvent event) throws SQLException {\n current.parseRole(roleTextBox.getText());\n \n current.setName(comboFkp.getValue());\n current.setTitle(comboFkm.getValue());\n \n if(inserting) {\n System.out.println(\"Inserting \" + current.getTitle() + \" \" + current.getName());\n // Precisa inserir dois booleanos no final, um para ator e um para diretor\n dh.insertPersonMidia(current.getTitle(), current.getName(), current.getActor(), current.getDirector());\n }\n\n closeWindow();\n }",
"private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }",
"@Override\n public void saveButtonListener() {\n // Resets Error Label for resubmit.\n productErrorLabel.setVisible(false);\n productErrorLabel.setText(\"\");\n // If super's error checks are true for any changes to text fields.\n // Then set new values and update product.\n if (getFieldValues()) {\n this.product.setName(this.productName);\n this.product.setPrice(this.productPrice);\n this.product.setStock(this.productInv);\n this.product.setMax(this.productMax);\n this.product.setMin(this.productMin);\n Inventory.updateProduct(productIndex, this.product);\n // Close window\n Stage stage = (Stage) productSaveButton.getScene().getWindow();\n stage.close();\n }\n }",
"public void onSaveFile(){\n\n\t\t\n\t\tFormUtil.dlg.setText(\"Saving...\");\n\t\tFormUtil.dlg.show();\n\t\tGWT.runAsync(new RunAsyncCallback() {\n\t public void onFailure(Throwable caught) {}\n\t public void onSuccess() {\t \n\t\t\t\t//DeferredCommand.addCommand(new Command() {\n\t \t Scheduler scheduler = Scheduler.get();\n\t \t scheduler.scheduleDeferred(new Command() {\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t FormDef form = controller.getSelectedForm();\t\t\t\t \t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(form != null){\n\t\t\t\t\t\t\t\tsaveFile(false);\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\n\t\t\t\t\t\t\t\tString fileName = \"filename\";\n\t\t\t\t\t\t\t\tfileName = form.getName();\n\t\t\t\t\t\t\t\tString xmlFormStr = FormHandler.writeToXML(form);\n\t\t\t\t\t\t\t\tSaveToFileDialog dlg = SaveToFileDialog.getInstnace(xmlFormStr, fileName);\n\t\t\t\t\t\t\t\tdlg.center();\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\t\t\tWindow.alert(\"No form to save\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception ex){\n\t\t\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t }\n\t\t});\n\t}",
"private void handleMenuSave() {\n String initialDirectory = getInitialDirectory();\n String initialFileName = getInitialFilename(Constants.APP_FILEEXTENSION_SPV);\n File file = FileChooserHelper.showSaveDialog(initialDirectory, initialFileName, this);\n\n if (file == null) {\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(file.getAbsolutePath()));\n }",
"protected abstract void doSave();",
"private void saveData() {\r\n\t\tif(mFirstname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmLastname.getText().toString().trim().length() > 0 &&\r\n\t\t\t\tmEmail.getText().toString().trim().length() > 0) {\r\n\t\t\tmPrefs.setFirstname(mFirstname.getText().toString().trim());\r\n\t\t\tmPrefs.setLastname(mLastname.getText().toString().trim());\r\n\t\t\tmPrefs.setEmail(mEmail.getText().toString().trim());\r\n\t\t\tif(mMaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(0);\r\n\t\t\telse if(mFemaleBtn.isChecked())\r\n\t\t\t\tmPrefs.setGender(1);\r\n\t\t\tif(!mCalendarSelected.after(mCalendarCurrent)) \r\n\t\t\t\tmPrefs.setDateOfBirth(mCalendarSelected.get(Calendar.YEAR), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.MONTH), \r\n\t\t\t\t\t\tmCalendarSelected.get(Calendar.DAY_OF_MONTH));\r\n\t\t\tToast.makeText(getActivity(), R.string.msg_changes_saved, Toast.LENGTH_LONG).show();\r\n\t\t} else \r\n\t\t\tToast.makeText(getActivity(), R.string.msg_registration_empty_field, Toast.LENGTH_LONG).show();\r\n\t}",
"void save(final Widget widget);",
"public void onMenuSave() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n onMenuSaveAs();\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(lastSavedPath));\n }",
"@FXML\n private void handleSaveButton(MouseEvent event) throws IOException {\n\n Date date = new Date(LocalDate.now(), false, absenceText.getText());\n appModel.toBeAttending(activeStudent.getId(), date);\n activeStudent.setDays(appModel.getStudentDays(activeStudent.getId()));\n dates.clear();\n dates.addAll(activeStudent.getDays());\n\n updateThread.start();\n\n Stage stage = (Stage) saveButton.getScene().getWindow();\n stage.close();\n }",
"public void save() {\n if (AppUtil.isEmpty(txtName.getText().toString())) {\n AppUtil.alertMessage(mainActivity,\"Please enter valid recipe name.\");\n txtName.requestFocus();\n } else if (AppUtil.isEmpty(txtDesc.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter recipe description.\");\n txtDesc.requestFocus();\n } else if (AppUtil.isEmpty(txtIng.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter ingredient/s.\");\n txtIng.requestFocus();\n } else if (AppUtil.isEmpty(txtSteps.getText().toString())) {\n AppUtil.alertMessage(mainActivity, \"Please enter preparation steps.\");\n txtSteps.requestFocus();\n } else {\n try {\n if (MainActivity.checkNetwork(mainActivity)) {\n SaveAsyncTask task = new SaveAsyncTask();\n task.execute();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"private void save(ActionEvent e){\r\n // Make sure all required fields are filled out before saving\r\n if (formIsValid()){\r\n // Check if client currently exists. If so, modify. Otherwise create new entry.\r\n if (existingClient){\r\n // Modify the existing currentClient holder -- Change the variable to global currentClient cache holder\r\n currClient.setName(NAME_FIELD.getText());\r\n currClient.setAddress1(ADDRESS_1_FIELD.getText());\r\n currClient.setAddress2(ADDRESS_2_FIELD.getText());\r\n currClient.setCity(CITY_FIELD.getText());\r\n currClient.setZip(ZIP_FIELD.getText());\r\n currClient.setCountry(COUNTRY_FIELD.getText());\r\n currClient.setPhone(PHONE_FIELD.getText());\r\n // Update client in database\r\n Client.modifyClient(currClient, currClient.getClientID());\r\n }\r\n // Create new client entry\r\n else { \r\n Client c = new Client (NAME_FIELD.getText(),ADDRESS_1_FIELD.getText(),\r\n ADDRESS_2_FIELD.getText(),CITY_FIELD.getText(),\r\n ZIP_FIELD.getText(),COUNTRY_FIELD.getText(),PHONE_FIELD.getText());\r\n Client.addNewClient(c);\r\n }\r\n\r\n existingClient = false; // reset existing client flag\r\n clearFields(); // remove data from fields\r\n // Return to Appt Mgmt Screen if we came from there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n }\r\n // If forms are not complete throw an alert\r\n else {\r\n AlertBox.display(\"Invalid Submission\", \"Form is missing required information or has invalid input.\"\r\n + \" The following information is required:\\n\"\r\n + \"Name\\nAddress 1\\nCity, State, Country, Zipcode\\nPhoneNumber\"\r\n + \"\\nPlease complete form with valid input and submit again.\");\r\n }\r\n }",
"@Override\r\n\tprotected void onBoSave() throws Exception {\n\t\t\r\n\t\t\r\n\t\tsuper.onBoSave();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}",
"public void saveButtonPushed(ActionEvent event)\r\n {\r\n try{\r\n user.logHours(datePicker.getValue(), (int) hoursWorkedSpinner.getValue());\r\n errMsgLabel .setText(\"Sales Logged\");\r\n updateLineChart();\r\n }\r\n catch(SQLException e)\r\n {\r\n System.err.println(e.getMessage());\r\n }\r\n catch(IllegalArgumentException e)\r\n {\r\n errMsgLabel.setText(e.getMessage());\r\n }\r\n }",
"public String Save()\n\t{\n\t\tif (this.actionString == \"Create\")\n\t\t{\n\t\t\tSystem.out.println(\"CREATE NEW CAR: \" + this.modifyCar.toString());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"UPDATE CAR: \" + this.modifyCar.toString());\n\t\t}\n\n\t\treturn \"home\";\n\t}",
"public void saveButtonClicked(View view) {\n if (selectedType.equals(\"\")) {\n Log.e(Globals.TAG, \"tried to save the dish without type (possibly also without quantity) entered\");\n Toast.makeText(getApplicationContext(), \"must enter pasta type\", Toast.LENGTH_SHORT).show();\n return;\n }\n if (enteredUnit.equals(\"\")) {\n Log.e(Globals.TAG, \"tried to save the dish without quantity entered\");\n Toast.makeText(getApplicationContext(), \"must enter pasta unit\", Toast.LENGTH_SHORT).show();\n return;\n }\n if (enteredAmount<0) {\n Log.e(Globals.TAG, \"tried to save the dish without amount entered\");\n Toast.makeText(getApplicationContext(), \"must enter nonzero pasta amount\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //pass data and return to MainActivity\n Intent intent = new Intent();\n intent.putExtra(\"selectedType\", selectedType);\n intent.putExtra(\"enteredAmount\", enteredAmount);\n intent.putExtra(\"enteredUnit\", enteredUnit);\n setResult(RESULT_OK, intent);\n\n finish();\n }",
"@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult) {\n save();\n }\n }",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"public void save(View view)\n {\n TextView tv_name = (TextView) findViewById(R.id.etInfopointName);\n TextView tv_file = (TextView) findViewById(R.id.etInfopointFile);\n TextView tv_qr = (TextView) findViewById(R.id.etInfopointQR);\n //Llamamos a la función de insercción en base de datos\n if(dataSource.InsertInfopoint(tv_name.getText().toString(), tv_file.getText().toString(), tv_qr.getText().toString()))\n {\n Intent resultado = new Intent();\n setResult(RESULT_OK, resultado);\n finish();\n }\n else\n {\n Intent resultado = new Intent();\n setResult(RESULT_CANCELED, resultado);\n finish();\n }\n\n }",
"protected void actionPerformedSave ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.syncSave ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.syncSave ();\n this.setVisible (false);\n this.dispose ();\n }",
"public void save(){\n\t\tlowresModelManager.save();\n\t}",
"private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"public void save(View view){\n\t\tIntent saveIntent = new Intent(this, SaveActivity.class);\n\t\t//First Name\n\t\tEditText firstName = (EditText) findViewById(R.id.first_name_edit);\n \tString sFirstName = firstName.getText().toString();\n \t\n \t//Last Name\n \tEditText lastName = (EditText) findViewById(R.id.last_name_edit);\n \tString sLastName = lastName.getText().toString();\n \t\n \t//Address\n \tEditText address = (EditText) findViewById(R.id.address_edit);\n \tString sAddress = address.getText().toString();\n \t\n \t//Credit Details\n \tEditText creditDetails = (EditText) findViewById(R.id.credit_details_edit);\n \tString sCreditDetails = creditDetails.getText().toString();\n \t\n \t//Attach Strings to Intent\n \tsaveIntent.putExtra(FIRST_NAME, sFirstName);\n \tsaveIntent.putExtra(LAST_NAME, sLastName);\n \tsaveIntent.putExtra(ADDRESS, sAddress);\n \tsaveIntent.putExtra(CREDIT_DETAILS, sCreditDetails);\n \t\n \t//Start Activity\n \tstartActivity(saveIntent);\n\t}"
]
| [
"0.81618446",
"0.7917367",
"0.7780674",
"0.76532906",
"0.76003",
"0.75927687",
"0.75441",
"0.7529731",
"0.74668294",
"0.74447006",
"0.7408867",
"0.73997915",
"0.73829997",
"0.73829997",
"0.73829997",
"0.73829997",
"0.73601556",
"0.7358118",
"0.7355918",
"0.7346887",
"0.7346887",
"0.7346887",
"0.72983253",
"0.7280909",
"0.7279668",
"0.72493637",
"0.7248303",
"0.7227545",
"0.7221387",
"0.71900123",
"0.7187174",
"0.717373",
"0.71567273",
"0.71539783",
"0.71539783",
"0.7150226",
"0.71493405",
"0.71493405",
"0.71386975",
"0.712542",
"0.71041524",
"0.70975375",
"0.70851827",
"0.70839155",
"0.70802355",
"0.7059016",
"0.7050502",
"0.70483327",
"0.70437014",
"0.70143",
"0.7005011",
"0.6994938",
"0.6994034",
"0.6993396",
"0.69851226",
"0.69822073",
"0.69778025",
"0.6971353",
"0.6957493",
"0.6956027",
"0.6950119",
"0.69488066",
"0.6940615",
"0.69349456",
"0.6928939",
"0.6927512",
"0.6918139",
"0.69171256",
"0.6904037",
"0.6902181",
"0.6901719",
"0.6900758",
"0.68862516",
"0.6881245",
"0.6874415",
"0.685471",
"0.6852253",
"0.6840406",
"0.68284595",
"0.680118",
"0.6785869",
"0.676724",
"0.6764026",
"0.6741172",
"0.674102",
"0.6733968",
"0.6720796",
"0.6714801",
"0.6714531",
"0.670994",
"0.6698484",
"0.66825676",
"0.6679597",
"0.66717243",
"0.66704357",
"0.6658013",
"0.6656494",
"0.66537195",
"0.6644627",
"0.66412425"
]
| 0.685633 | 75 |
Created by ly on 2017/3/2. | public interface ConsValues {
public String PATH = "/storage/extSdCard/Videos/Others/灵梦和幽幽子的弹幕.mp4";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n protected void getExras() {\n }",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void init() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\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 protected void initialize() \n {\n \n }",
"private void strin() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tpublic void init() {\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\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void m50366E() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n public void initialize() { \n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public void init() {\n }"
]
| [
"0.60470325",
"0.58859503",
"0.58551747",
"0.58485657",
"0.5779104",
"0.5779104",
"0.5723898",
"0.5719264",
"0.57016546",
"0.5650201",
"0.56474215",
"0.56335163",
"0.5623886",
"0.5619659",
"0.56173915",
"0.5606881",
"0.5567695",
"0.5567695",
"0.5567695",
"0.5567695",
"0.5567695",
"0.55655515",
"0.5564821",
"0.5558215",
"0.5551838",
"0.5547584",
"0.5538883",
"0.5529821",
"0.552807",
"0.5520194",
"0.55164254",
"0.5509155",
"0.5509076",
"0.5503605",
"0.5480194",
"0.54801095",
"0.54765403",
"0.5455423",
"0.5455423",
"0.5455423",
"0.5450684",
"0.5450684",
"0.54463714",
"0.5436796",
"0.54355067",
"0.5431448",
"0.5431448",
"0.5431448",
"0.5428103",
"0.5428103",
"0.5428103",
"0.542672",
"0.5425294",
"0.5424832",
"0.5419473",
"0.5419451",
"0.5419013",
"0.5419013",
"0.5419013",
"0.5419013",
"0.5419013",
"0.5419013",
"0.5411805",
"0.5410891",
"0.5410891",
"0.54041904",
"0.53872055",
"0.5383533",
"0.53797865",
"0.5378496",
"0.53765404",
"0.5364469",
"0.5357001",
"0.5356475",
"0.5356475",
"0.5352111",
"0.533997",
"0.53374636",
"0.533455",
"0.5334356",
"0.53229904",
"0.5297734",
"0.5297437",
"0.5286221",
"0.5285336",
"0.5282224",
"0.52714837",
"0.52714837",
"0.52714837",
"0.52714837",
"0.52714837",
"0.52714837",
"0.52714837",
"0.5266644",
"0.5252885",
"0.5250266",
"0.52470165",
"0.52458876",
"0.5244245",
"0.5242698",
"0.5242612"
]
| 0.0 | -1 |
Lists summaries of the operations. | public java.util.List<OperationSummary> getOperations() {
if (operations == null) {
operations = new com.amazonaws.internal.SdkInternalList<OperationSummary>();
}
return operations;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void applySummary(Operation operation, Method method);",
"void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}",
"public static java.util.Collection getOperationDescs() {\r\n return _myOperationsList;\r\n }",
"public String getSummary();",
"private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }",
"private static final void displayAttractionSummary()\r\n {\r\n System.out.println(\"Display Attraction Summary Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n // step through array of attractions with for loop\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n attractionList[i].printDetails();\r\n System.out.println();\r\n }\r\n }",
"@RequestMapping(method=RequestMethod.GET, value = \"/summary\")\n\tpublic List<ExpenseSummary> getSummaries() {\n\t\treturn service.getSummary();\n\t}",
"java.lang.String getSummary();",
"public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }",
"public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }",
"public void displayOperations() {\n\n System.out.println(\"\" +\n \"Select Operation for GasPump 2 : \\n\" +\n \"0.) Activate \\n\" +\n \"1.) Start \\n\" +\n \"2.) PayCredit \\n\" +\n \"3.) Reject \\n\" +\n \"4.) PayDebit \\n\" +\n \"5.) Pin \\n\" +\n \"6.) Cancel \\n\" +\n \"7.) Approved \\n\" +\n \"8.) Diesel \\n\" +\n \"9.) Regular \\n\" +\n \"10.) Super \\n\" +\n \"11.) StartPump\\n\" +\n \"12.) PumpGallon\\n\" +\n \"13.) StopPump \\n\" +\n \"14.) FullTank \\n\" +\n \"q.) Quit\\n\");\n }",
"public Item2Vector<Summary> getSummaries() { return summaries; }",
"Operations operations();",
"public List<FileSummary> getAllSummary() {\n \n LOGGER.debug(\"Found total of {} records\", fileStatusRepository.count());\n \n List<FileSummary> summaries = StreamSupport.stream(fileStatusRepository.findAll().spliterator(), false)\n .map(e -> convertToSummary(e)).collect(Collectors.toList());\n\n return summaries;\n }",
"public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"@Override\n public List<OrderSummary> summary() throws EmptyOrderListException {\n logger.info(\"Displaying Order Summary\");\n if(registeredOrders.size() > 0) {\n return registeredOrders.stream().\n collect(groupingBy(Bid::forOrder, mapping(Order::quantity, toList()))).\n entrySet().stream().\n map(toOrderSummary()).\n sorted(byTypeAndPrice).\n collect(toList());\n }\n else {\n throw new EmptyOrderListException(\"Empty Order List. Size: \" + registeredOrders.size());\n }\n }",
"public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }",
"public List<OperationStatusResultInner> operations() {\n return this.operations;\n }",
"@Override\n public String toString ()\n {\n return \"\\n SMD \" + this.name + \"\\n Nbr Operations \" + this.operations.size () + \"\\t\" + this.operations + \"\\n Nbr Progress \"\n + this.progress.size () + \"\\t\" + this.progress;\n }",
"public Collection getOperations()\n {\n return Collections.unmodifiableCollection(operations);\n }",
"public ListOperationsResult withOperations(java.util.Collection<OperationSummary> operations) {\n setOperations(operations);\n return this;\n }",
"public String printSummary(){\n String ans=\"\";\n for(Sentence sentence : contentSummary){\n //tv_output.setText(sentence.value);\n ans+=sentence.value + \".\";\n }\n return ans;\n }",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"OperationDisplay display();",
"public void getSummary() { \n int randomTableNumber = (int)(Math.random() * 7) + 1;\n System.out.println(\"============================\");\n\n if (blnTakeOut == true) {\n System.out.println(\"Takeout order: \");\n } else if (blnTakeOut == false) {\n System.out.println(\"Table #\" + randomTableNumber + \"'s order: \");\n }\n\n for (int i = 0; i < itemsInOrder.size(); i++) {\n itemsInOrder.get(i).getSummary();\n }\n\n System.out.println(\"============================\");\n }",
"public void printComputerSummary() {\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\tSystem.out.println(comp.getDescription());\n\t\t}\n\t}",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"@Override\n\tpublic String displayActions() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tfor(Action action: this.getTakeableActions()) {\n\t\t\tif(action.isDisplay())\n\t\t\t\tsb.append(\"\\n\"+i++ +\". \"+ action.getDescription());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}",
"public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }",
"public void displayAll() {\n\t\t\n\t\tbankop.display();\n\t\n\t}",
"public static void showStatistics(){\n\n }",
"void printResultSummary(ResultsSummary s, Consumer<String> messageWriter) {\n if ( s.getFeaturesPending() > 0) {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesPending(),\n s.getFeaturesFailed()));\n } else {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesFailed()));\n }\n\n //only show the pending count if there were pending steps, makes the summary more legible\n if ( s.getScenariosPending() > 0 ) {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosPending(),\n s.getScenariosFailed()));\n } else {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosFailed()));\n }\n\n //print steps summary\n messageWriter.accept(format(\"Steps (total:%d) (passed:%d) (failed:%d) (undefined:%d) (pending:%d) (skipped:%d)\",\n s.getStepsPassed() + s.getStepsFailed() + s.getStepsUndefined() + s.getStepsPending() + s.getStepsSkipped(),\n s.getStepsPassed(),\n s.getStepsFailed(),\n s.getStepsUndefined(),\n s.getStepsPending(),\n s.getStepsSkipped()));\n }",
"public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }",
"static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }",
"public PrimitiveMethodSummary getSummary() {\n PrimitiveMethodSummary s = new PrimitiveMethodSummary(this,\n method,\n param_nodes,\n my_global,\n methodCalls,\n callToRVN,\n callToTEN,\n castMap,\n castPredecessors,\n returned,\n thrown,\n passedAsParameter,\n sync_ops,\n string_nodes);\n return s;\n }",
"List<Consumption> listAll();",
"public void printList()\n {\n tasks.forEach(task -> System.out.println(task.getDetails()));\n }",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"Summary for \");\n sb.append(method.toString());\n sb.append(':');\n sb.append(Strings.lineSep);\n// for (Iterator i=nodes.keySet().iterator(); i.hasNext(); ) {\n// Node n = (Node)i.next();\n// sb.append(\"\\t\");\n// sb.append(n.toString_long());\n// sb.append(Strings.lineSep);\n// }\n if(params != null && params.length > 0) {\n sb.append(\"\\tParams: \");\n sb.append(Arrays.asList(params));\n sb.append(Strings.lineSep);\n }\n if (returned != null && !returned.isEmpty()) {\n sb.append(\"\\tReturned: \");\n sb.append(returned);\n sb.append(Strings.lineSep);\n }\n if (thrown != null && !thrown.isEmpty()) {\n sb.append(\"\\tThrown: \");\n sb.append(thrown);\n sb.append(Strings.lineSep);\n }\n if (calls != null && !calls.isEmpty()) {\n sb.append(\"\\tCalls: \");\n sb.append(calls);\n sb.append(Strings.lineSep);\n }\n return sb.toString();\n }",
"@ApiModelProperty(value = \"The operations that can be performed on the issue.\")\n public Operations getOperations() {\n return operations;\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"default void print() {\r\n\t\tGenerator.getInstance().getLogger().debug(\"Operation matrix:\\r\");\r\n\t\tString ans = \" operation \";\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans += element1 + \" \";\r\n\t\t}\r\n\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans = element1 + \" \";\r\n\t\t\tfor (double j = 0; j < this.getOperationMap().keySet().size(); j++) {\r\n\t\t\t\tfinal Element element2 = this.get(j);\r\n\t\t\t\tans += \" \" + this.getOperationMap().get(element1).get(element2) + \" \";\r\n\t\t\t}\r\n\t\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\t}\r\n\t}",
"public void printPaymentSummary() {\n System.out.print(\"+========================+\\n\");\n System.out.print(\"| Payment Summary |\\n\");\n System.out.print(\"+========================+\\n\");\n System.out.printf(\"Payment_ID: %s\\n\", payment_id);\n System.out.printf(\"STAFF_NAME: %s\\t\\t\\tSTAFF_ID : %s\\n\", order_staff.getName().toUpperCase(),\n order_staff.getId());\n System.out.printf(\"CUST_NAME : %s\\t\\tCurrent_Date: %s\\n\", order_member.getName().toUpperCase(),\n java.time.LocalDate.now());\n System.out.printf(\"CUST_ICNO : %s\\t\\tCurrent_Time: %s\\n\", order_member.getMemberIC(),\n java.time.LocalTime.now());\n System.out.print(\"----------------------------------------------------------------\\n\");\n System.out.printf(\"Total : %.2f\\n\", total_sales_of_transaction);\n System.out.printf(\"Payment Type Used : %s\\n\", payment_used);\n System.out.printf(\"Bike Brand : %s\\n\", order.getBike().getBrand());\n System.out.printf(\"Bike Price : %.2f\\n\", order.getBike().getPrice());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n }",
"public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }",
"public interface SummaryService {\n\n\tlong getOrphanCount(List<Exoplanet> exoplanets);\n\n\tString findPlanetWithHottestStar(List<Exoplanet> exoplanets);\n\n\tList<TimelineEntry> createTimeline(List<Exoplanet> exoplanets);\n}",
"public String getSummary() {\r\n return summary;\r\n }",
"public String getSummary() {\n return summary;\n }",
"public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }",
"private void doViewAllTasks() {\n ArrayList<Task> t1 = todoList.getListOfTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No tasks available.\");\n }\n }",
"@GetMapping(\"/operadoras\")\n\t@ApiOperation(value=\"Retorna uma lista de operadora em json\")\n\tpublic List<Operadoras> ListaOperadoras(){ \n\t\treturn operadorasRepository.findAll();\n\t\t\n\t}",
"public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }",
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }",
"public ArrayList <String> getOpDetails(){\r\n\t\tArrayList <String> ans = new ArrayList <String> ();\r\n\t\tans.add(cline);\r\n\t\treturn ans;\r\n\t}",
"@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();",
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }",
"public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }",
"List<CommandInfo> list();",
"public java.lang.String getSummary(){\r\n return this.summary;\r\n }",
"@Override\n public String toString() {\n return op.toString();\n }",
"@Override\n public String toString() {\n return \"<\"+getType()+\",\"+getOperation()+\">\";\n }",
"public String printfull(){\r\n\t\tString ans = this.toString() + \" \\n\";\r\n\t\t\r\n\t\tArrayList <String> details = getOpDetails();\r\n\t\tfor(String d: details){\r\n\t\t\tans = ans + d + \" \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tans = ans + \"Input Files:\\n\" ;\r\n\t\tFileInfo fileIndex = (FileInfo)input.getFirstChild();\r\n\t\twhile(fileIndex != null){\r\n\t\t\tans = ans + fileIndex.toString() + \"\\n\";\r\n\t\t\tfileIndex = (FileInfo)fileIndex.getNextSibling();\r\n\t\t}//end input while\r\n\t\t\r\n\t\t\r\n\t\tans = ans + \"Output Files:\\n\";\r\n\t\tfileIndex = (FileInfo)output.getFirstChild();\r\n\t\twhile(fileIndex != null){\r\n\t\t\tans = ans + fileIndex.toString() + \"\\n\";\r\n\t\t\tfileIndex = (FileInfo) fileIndex.getNextSibling();\r\n\t\t}//end output while\r\n\t\treturn ans;\r\n\t}",
"public List<String> description() {\n return Arrays.asList(new String[]{\"Default Description : Its a Performance Function\"});\n }",
"public static void show(){\r\n for(int i =0; i<loan.size(); i++){\r\n loan.get(i).calculate();\r\n }\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getOperations() != null)\n sb.append(\"Operations: \").append(getOperations()).append(\",\");\n if (getNextPageMarker() != null)\n sb.append(\"NextPageMarker: \").append(getNextPageMarker());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }",
"void applyDescription(Operation operation, Method method);",
"public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }",
"@Override\n protected void printAggregates() {\n printRetrieveStudyAggregates(queryInstancesAggregates, firstResponseAggregates,\n firstFrameAggregates, totalAggregates, transferRateAggregates, frameRateAggregates);\n }",
"@Override\n public String RolesStatistics() {\n List<Employee> allEmployees = payrollService.AllEmployees();\n int ceo=0,manager=0,project_manager=0,employee=0;\n\n StringBuilder sb = new StringBuilder(\"\");\n for(int i=0;i<allEmployees.size();i++) {\n Employee e = allEmployees.get(i);\n if(e.getRole().getTitle().equals(\"CEO\"))\n ceo++;\n else if(e.getRole().getTitle().equals(\"Manager\"))\n manager++;\n else if(e.getRole().getTitle().equals(\"Project Manager\"))\n project_manager++;\n else if(e.getRole().getTitle().equals(\"Employee\"))\n employee++;\n }\n sb.append(\"Employees: \"+employee+\"\\n\");\n sb.append(\"Project Managers: \"+project_manager+\"\\n\");\n sb.append(\"Managers: \"+manager+\"\\n\");\n sb.append(\"CEOs: \"+ceo+\"\\n\");\n\n return sb.toString();\n }",
"void statistics();",
"public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }",
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"public static void print(ICalculator calculator){\n System.out.println(calculator.addition\r\n (4.1, calculator.addition\r\n (calculator.multiplication(15,7), calculator.power((28/5),2))));\r\n if (calculator instanceof CalculatorWithCounterDecorator){\r\n System.out.println(((CalculatorWithCounterDecorator) calculator).getCountOperation());\r\n }\r\n }",
"String getOrderSummary(){\n String s = \"\";\n\n for (Pizza p : pizzas) {\n s += p.getInfo() + \"\\n\";\n }\n\n return s;\n }",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getOperation();",
"public ObservableList<Operation> getOperations() {\n\t\treturn operations;\n\t}",
"public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n }",
"public static java.util.List getOperationDescByName(java.lang.String methodName) {\r\n return (java.util.List)_myOperations.get(methodName);\r\n }",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn rootOperation.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + op1 + \" + \" + op2 + \" to \" + result;\n\t}",
"private void outputTotal(List<FileDifference> differences) {\n Map<String, Integer> countByType = new HashMap<>();\n int total = 0;\n for (FileDifference diff : differences) {\n String symbol;\n if (diff.getFolder1Element() == null) {\n symbol = \"+\";\n } else if (diff.getFolder2Element() == null) {\n symbol = \"-\";\n } else if (diff.wasModified()) {\n symbol = \"*\";\n } else {\n symbol = \">\";\n }\n countByType.merge(symbol, 1, Integer::sum);\n ++total;\n }\n\n if (total == 0) {\n logger.printLn(\"Did not find any differences! Both folders match perfectly.\");\n } else {\n List<String> descriptions = List.of(\n countByType.get(\"+\") + \" additions (+)\",\n countByType.get(\"-\") + \" removals (-)\",\n countByType.get(\"*\") + \" modifications (*)\",\n countByType.get(\">\") + \" renamings (>)\");\n\n logger.printLn(\"Found \" + total + \" changes: \" +\n descriptions.stream().filter(count -> !count.startsWith(\"null\")).collect(Collectors.joining(\", \")));\n }\n }",
"public String getTableSummary() {\n return \"A summary description of table data\";\n }",
"public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }",
"private List<ProjectModel> generateSummaryList() {\n return new LinkedList<>(projects.values());\n }",
"public void summary (java.io.PrintStream out) { throw new RuntimeException(); }",
"public List<String> getEoiSummaries() {\n List<String> eoiStrings = new ArrayList<String>();\n for ( ElementOfInformation eoi : getFlow().getEois() ) {\n eoiStrings.add( eoi.getLabel() + ( eoi.isTimeSensitive() ? \"*\" : \"\" ) );\n }\n if ( eoiStrings.isEmpty() ) {\n eoiStrings.add( \"(none)\" );\n }\n return eoiStrings;\n }",
"public List<OperationImplementation> getOperations() {\n List<?> operationsUnknown = (List<?>) properties.get(XPATH_OPERATIONS);\n List<OperationImplementation> operations = new ArrayList<OperationImplementation>();\n if (operationsUnknown != null) {\n \t for (Object operationUnknown : operationsUnknown) {\n \t Map<?, ?> operationMap = (Map<?, ?>) operationUnknown;\n \t operations.add(new OperationImplementation(\n \t (String) operationMap.get(OPERATION_NAME),\n \t (String) operationMap.get(OPERATION_PARAMETERS),\n \t (String) operationMap.get(OPERATION_DOCUMENTATION)));\n \t }\n }\n return operations;\n }",
"private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}",
"void printStats();",
"private void ShowRep(Integer[] op) {\n System.out.print(\" \" + this.opCodeStrings[op[0]]);\n for (int i = 1; i < 13; i++) {\n if ((i - 1) % 4 == 0)\n System.out.print(\" | \");\n if (op[i] != null)\n System.out.print(\" \" + op[i]);\n else\n System.out.print(\" - \");\n }\n System.out.println();\n }",
"public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }"
]
| [
"0.65709066",
"0.62518424",
"0.61830527",
"0.6161617",
"0.61217445",
"0.6119535",
"0.6038523",
"0.60012317",
"0.5973149",
"0.59602296",
"0.58915156",
"0.58418787",
"0.5795361",
"0.579171",
"0.5790565",
"0.57730544",
"0.57710856",
"0.5771065",
"0.57598054",
"0.57417136",
"0.57303536",
"0.5692325",
"0.5689989",
"0.5623412",
"0.56228554",
"0.5622251",
"0.5599407",
"0.55920345",
"0.5588695",
"0.5588695",
"0.55715305",
"0.5571113",
"0.5562917",
"0.5554142",
"0.5545719",
"0.5543455",
"0.55415595",
"0.5537209",
"0.5526685",
"0.552308",
"0.55192745",
"0.548351",
"0.54833126",
"0.5483246",
"0.54696834",
"0.54489386",
"0.5412418",
"0.54113334",
"0.54099905",
"0.5399583",
"0.53980356",
"0.53965086",
"0.53805256",
"0.5380281",
"0.5372817",
"0.53713846",
"0.53695333",
"0.5358211",
"0.53574264",
"0.53574264",
"0.53493345",
"0.53483075",
"0.53444195",
"0.5343997",
"0.53411084",
"0.5340212",
"0.5326403",
"0.5325436",
"0.5317125",
"0.53166735",
"0.5310044",
"0.5301994",
"0.5301024",
"0.5279456",
"0.5260361",
"0.52503145",
"0.5245368",
"0.52323765",
"0.5224927",
"0.5216863",
"0.52154726",
"0.52154726",
"0.52151704",
"0.52082354",
"0.52041876",
"0.5203965",
"0.52011985",
"0.5197401",
"0.5183687",
"0.5179414",
"0.5176894",
"0.51676446",
"0.51663864",
"0.51643807",
"0.5163607",
"0.5162856",
"0.51622754",
"0.5155355",
"0.515488",
"0.51547277"
]
| 0.6516253 | 1 |
Lists summaries of the operations. | public void setOperations(java.util.Collection<OperationSummary> operations) {
if (operations == null) {
this.operations = null;
return;
}
this.operations = new com.amazonaws.internal.SdkInternalList<OperationSummary>(operations);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void applySummary(Operation operation, Method method);",
"public java.util.List<OperationSummary> getOperations() {\n if (operations == null) {\n operations = new com.amazonaws.internal.SdkInternalList<OperationSummary>();\n }\n return operations;\n }",
"void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}",
"public static java.util.Collection getOperationDescs() {\r\n return _myOperationsList;\r\n }",
"public String getSummary();",
"private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }",
"private static final void displayAttractionSummary()\r\n {\r\n System.out.println(\"Display Attraction Summary Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n // step through array of attractions with for loop\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n attractionList[i].printDetails();\r\n System.out.println();\r\n }\r\n }",
"@RequestMapping(method=RequestMethod.GET, value = \"/summary\")\n\tpublic List<ExpenseSummary> getSummaries() {\n\t\treturn service.getSummary();\n\t}",
"java.lang.String getSummary();",
"public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }",
"public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }",
"public void displayOperations() {\n\n System.out.println(\"\" +\n \"Select Operation for GasPump 2 : \\n\" +\n \"0.) Activate \\n\" +\n \"1.) Start \\n\" +\n \"2.) PayCredit \\n\" +\n \"3.) Reject \\n\" +\n \"4.) PayDebit \\n\" +\n \"5.) Pin \\n\" +\n \"6.) Cancel \\n\" +\n \"7.) Approved \\n\" +\n \"8.) Diesel \\n\" +\n \"9.) Regular \\n\" +\n \"10.) Super \\n\" +\n \"11.) StartPump\\n\" +\n \"12.) PumpGallon\\n\" +\n \"13.) StopPump \\n\" +\n \"14.) FullTank \\n\" +\n \"q.) Quit\\n\");\n }",
"public Item2Vector<Summary> getSummaries() { return summaries; }",
"Operations operations();",
"public List<FileSummary> getAllSummary() {\n \n LOGGER.debug(\"Found total of {} records\", fileStatusRepository.count());\n \n List<FileSummary> summaries = StreamSupport.stream(fileStatusRepository.findAll().spliterator(), false)\n .map(e -> convertToSummary(e)).collect(Collectors.toList());\n\n return summaries;\n }",
"public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"@Override\n public List<OrderSummary> summary() throws EmptyOrderListException {\n logger.info(\"Displaying Order Summary\");\n if(registeredOrders.size() > 0) {\n return registeredOrders.stream().\n collect(groupingBy(Bid::forOrder, mapping(Order::quantity, toList()))).\n entrySet().stream().\n map(toOrderSummary()).\n sorted(byTypeAndPrice).\n collect(toList());\n }\n else {\n throw new EmptyOrderListException(\"Empty Order List. Size: \" + registeredOrders.size());\n }\n }",
"public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }",
"public List<OperationStatusResultInner> operations() {\n return this.operations;\n }",
"@Override\n public String toString ()\n {\n return \"\\n SMD \" + this.name + \"\\n Nbr Operations \" + this.operations.size () + \"\\t\" + this.operations + \"\\n Nbr Progress \"\n + this.progress.size () + \"\\t\" + this.progress;\n }",
"public Collection getOperations()\n {\n return Collections.unmodifiableCollection(operations);\n }",
"public ListOperationsResult withOperations(java.util.Collection<OperationSummary> operations) {\n setOperations(operations);\n return this;\n }",
"public String printSummary(){\n String ans=\"\";\n for(Sentence sentence : contentSummary){\n //tv_output.setText(sentence.value);\n ans+=sentence.value + \".\";\n }\n return ans;\n }",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"OperationDisplay display();",
"public void getSummary() { \n int randomTableNumber = (int)(Math.random() * 7) + 1;\n System.out.println(\"============================\");\n\n if (blnTakeOut == true) {\n System.out.println(\"Takeout order: \");\n } else if (blnTakeOut == false) {\n System.out.println(\"Table #\" + randomTableNumber + \"'s order: \");\n }\n\n for (int i = 0; i < itemsInOrder.size(); i++) {\n itemsInOrder.get(i).getSummary();\n }\n\n System.out.println(\"============================\");\n }",
"public void printComputerSummary() {\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\tSystem.out.println(comp.getDescription());\n\t\t}\n\t}",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"@Override\n\tpublic String displayActions() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tfor(Action action: this.getTakeableActions()) {\n\t\t\tif(action.isDisplay())\n\t\t\t\tsb.append(\"\\n\"+i++ +\". \"+ action.getDescription());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}",
"public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }",
"public void displayAll() {\n\t\t\n\t\tbankop.display();\n\t\n\t}",
"public static void showStatistics(){\n\n }",
"void printResultSummary(ResultsSummary s, Consumer<String> messageWriter) {\n if ( s.getFeaturesPending() > 0) {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesPending(),\n s.getFeaturesFailed()));\n } else {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesFailed()));\n }\n\n //only show the pending count if there were pending steps, makes the summary more legible\n if ( s.getScenariosPending() > 0 ) {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosPending(),\n s.getScenariosFailed()));\n } else {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosFailed()));\n }\n\n //print steps summary\n messageWriter.accept(format(\"Steps (total:%d) (passed:%d) (failed:%d) (undefined:%d) (pending:%d) (skipped:%d)\",\n s.getStepsPassed() + s.getStepsFailed() + s.getStepsUndefined() + s.getStepsPending() + s.getStepsSkipped(),\n s.getStepsPassed(),\n s.getStepsFailed(),\n s.getStepsUndefined(),\n s.getStepsPending(),\n s.getStepsSkipped()));\n }",
"public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }",
"static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }",
"public PrimitiveMethodSummary getSummary() {\n PrimitiveMethodSummary s = new PrimitiveMethodSummary(this,\n method,\n param_nodes,\n my_global,\n methodCalls,\n callToRVN,\n callToTEN,\n castMap,\n castPredecessors,\n returned,\n thrown,\n passedAsParameter,\n sync_ops,\n string_nodes);\n return s;\n }",
"List<Consumption> listAll();",
"public void printList()\n {\n tasks.forEach(task -> System.out.println(task.getDetails()));\n }",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"Summary for \");\n sb.append(method.toString());\n sb.append(':');\n sb.append(Strings.lineSep);\n// for (Iterator i=nodes.keySet().iterator(); i.hasNext(); ) {\n// Node n = (Node)i.next();\n// sb.append(\"\\t\");\n// sb.append(n.toString_long());\n// sb.append(Strings.lineSep);\n// }\n if(params != null && params.length > 0) {\n sb.append(\"\\tParams: \");\n sb.append(Arrays.asList(params));\n sb.append(Strings.lineSep);\n }\n if (returned != null && !returned.isEmpty()) {\n sb.append(\"\\tReturned: \");\n sb.append(returned);\n sb.append(Strings.lineSep);\n }\n if (thrown != null && !thrown.isEmpty()) {\n sb.append(\"\\tThrown: \");\n sb.append(thrown);\n sb.append(Strings.lineSep);\n }\n if (calls != null && !calls.isEmpty()) {\n sb.append(\"\\tCalls: \");\n sb.append(calls);\n sb.append(Strings.lineSep);\n }\n return sb.toString();\n }",
"@ApiModelProperty(value = \"The operations that can be performed on the issue.\")\n public Operations getOperations() {\n return operations;\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"default void print() {\r\n\t\tGenerator.getInstance().getLogger().debug(\"Operation matrix:\\r\");\r\n\t\tString ans = \" operation \";\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans += element1 + \" \";\r\n\t\t}\r\n\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans = element1 + \" \";\r\n\t\t\tfor (double j = 0; j < this.getOperationMap().keySet().size(); j++) {\r\n\t\t\t\tfinal Element element2 = this.get(j);\r\n\t\t\t\tans += \" \" + this.getOperationMap().get(element1).get(element2) + \" \";\r\n\t\t\t}\r\n\t\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\t}\r\n\t}",
"public void printPaymentSummary() {\n System.out.print(\"+========================+\\n\");\n System.out.print(\"| Payment Summary |\\n\");\n System.out.print(\"+========================+\\n\");\n System.out.printf(\"Payment_ID: %s\\n\", payment_id);\n System.out.printf(\"STAFF_NAME: %s\\t\\t\\tSTAFF_ID : %s\\n\", order_staff.getName().toUpperCase(),\n order_staff.getId());\n System.out.printf(\"CUST_NAME : %s\\t\\tCurrent_Date: %s\\n\", order_member.getName().toUpperCase(),\n java.time.LocalDate.now());\n System.out.printf(\"CUST_ICNO : %s\\t\\tCurrent_Time: %s\\n\", order_member.getMemberIC(),\n java.time.LocalTime.now());\n System.out.print(\"----------------------------------------------------------------\\n\");\n System.out.printf(\"Total : %.2f\\n\", total_sales_of_transaction);\n System.out.printf(\"Payment Type Used : %s\\n\", payment_used);\n System.out.printf(\"Bike Brand : %s\\n\", order.getBike().getBrand());\n System.out.printf(\"Bike Price : %.2f\\n\", order.getBike().getPrice());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n }",
"public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }",
"public interface SummaryService {\n\n\tlong getOrphanCount(List<Exoplanet> exoplanets);\n\n\tString findPlanetWithHottestStar(List<Exoplanet> exoplanets);\n\n\tList<TimelineEntry> createTimeline(List<Exoplanet> exoplanets);\n}",
"public String getSummary() {\r\n return summary;\r\n }",
"public String getSummary() {\n return summary;\n }",
"public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }",
"private void doViewAllTasks() {\n ArrayList<Task> t1 = todoList.getListOfTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No tasks available.\");\n }\n }",
"@GetMapping(\"/operadoras\")\n\t@ApiOperation(value=\"Retorna uma lista de operadora em json\")\n\tpublic List<Operadoras> ListaOperadoras(){ \n\t\treturn operadorasRepository.findAll();\n\t\t\n\t}",
"public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }",
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }",
"public ArrayList <String> getOpDetails(){\r\n\t\tArrayList <String> ans = new ArrayList <String> ();\r\n\t\tans.add(cline);\r\n\t\treturn ans;\r\n\t}",
"@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();",
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }",
"public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }",
"List<CommandInfo> list();",
"public java.lang.String getSummary(){\r\n return this.summary;\r\n }",
"@Override\n public String toString() {\n return op.toString();\n }",
"@Override\n public String toString() {\n return \"<\"+getType()+\",\"+getOperation()+\">\";\n }",
"public String printfull(){\r\n\t\tString ans = this.toString() + \" \\n\";\r\n\t\t\r\n\t\tArrayList <String> details = getOpDetails();\r\n\t\tfor(String d: details){\r\n\t\t\tans = ans + d + \" \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tans = ans + \"Input Files:\\n\" ;\r\n\t\tFileInfo fileIndex = (FileInfo)input.getFirstChild();\r\n\t\twhile(fileIndex != null){\r\n\t\t\tans = ans + fileIndex.toString() + \"\\n\";\r\n\t\t\tfileIndex = (FileInfo)fileIndex.getNextSibling();\r\n\t\t}//end input while\r\n\t\t\r\n\t\t\r\n\t\tans = ans + \"Output Files:\\n\";\r\n\t\tfileIndex = (FileInfo)output.getFirstChild();\r\n\t\twhile(fileIndex != null){\r\n\t\t\tans = ans + fileIndex.toString() + \"\\n\";\r\n\t\t\tfileIndex = (FileInfo) fileIndex.getNextSibling();\r\n\t\t}//end output while\r\n\t\treturn ans;\r\n\t}",
"public List<String> description() {\n return Arrays.asList(new String[]{\"Default Description : Its a Performance Function\"});\n }",
"public static void show(){\r\n for(int i =0; i<loan.size(); i++){\r\n loan.get(i).calculate();\r\n }\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getOperations() != null)\n sb.append(\"Operations: \").append(getOperations()).append(\",\");\n if (getNextPageMarker() != null)\n sb.append(\"NextPageMarker: \").append(getNextPageMarker());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }",
"void applyDescription(Operation operation, Method method);",
"public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }",
"@Override\n protected void printAggregates() {\n printRetrieveStudyAggregates(queryInstancesAggregates, firstResponseAggregates,\n firstFrameAggregates, totalAggregates, transferRateAggregates, frameRateAggregates);\n }",
"@Override\n public String RolesStatistics() {\n List<Employee> allEmployees = payrollService.AllEmployees();\n int ceo=0,manager=0,project_manager=0,employee=0;\n\n StringBuilder sb = new StringBuilder(\"\");\n for(int i=0;i<allEmployees.size();i++) {\n Employee e = allEmployees.get(i);\n if(e.getRole().getTitle().equals(\"CEO\"))\n ceo++;\n else if(e.getRole().getTitle().equals(\"Manager\"))\n manager++;\n else if(e.getRole().getTitle().equals(\"Project Manager\"))\n project_manager++;\n else if(e.getRole().getTitle().equals(\"Employee\"))\n employee++;\n }\n sb.append(\"Employees: \"+employee+\"\\n\");\n sb.append(\"Project Managers: \"+project_manager+\"\\n\");\n sb.append(\"Managers: \"+manager+\"\\n\");\n sb.append(\"CEOs: \"+ceo+\"\\n\");\n\n return sb.toString();\n }",
"void statistics();",
"public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }",
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"public static void print(ICalculator calculator){\n System.out.println(calculator.addition\r\n (4.1, calculator.addition\r\n (calculator.multiplication(15,7), calculator.power((28/5),2))));\r\n if (calculator instanceof CalculatorWithCounterDecorator){\r\n System.out.println(((CalculatorWithCounterDecorator) calculator).getCountOperation());\r\n }\r\n }",
"String getOrderSummary(){\n String s = \"\";\n\n for (Pizza p : pizzas) {\n s += p.getInfo() + \"\\n\";\n }\n\n return s;\n }",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getOperation();",
"public ObservableList<Operation> getOperations() {\n\t\treturn operations;\n\t}",
"public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n }",
"public static java.util.List getOperationDescByName(java.lang.String methodName) {\r\n return (java.util.List)_myOperations.get(methodName);\r\n }",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn rootOperation.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + op1 + \" + \" + op2 + \" to \" + result;\n\t}",
"private void outputTotal(List<FileDifference> differences) {\n Map<String, Integer> countByType = new HashMap<>();\n int total = 0;\n for (FileDifference diff : differences) {\n String symbol;\n if (diff.getFolder1Element() == null) {\n symbol = \"+\";\n } else if (diff.getFolder2Element() == null) {\n symbol = \"-\";\n } else if (diff.wasModified()) {\n symbol = \"*\";\n } else {\n symbol = \">\";\n }\n countByType.merge(symbol, 1, Integer::sum);\n ++total;\n }\n\n if (total == 0) {\n logger.printLn(\"Did not find any differences! Both folders match perfectly.\");\n } else {\n List<String> descriptions = List.of(\n countByType.get(\"+\") + \" additions (+)\",\n countByType.get(\"-\") + \" removals (-)\",\n countByType.get(\"*\") + \" modifications (*)\",\n countByType.get(\">\") + \" renamings (>)\");\n\n logger.printLn(\"Found \" + total + \" changes: \" +\n descriptions.stream().filter(count -> !count.startsWith(\"null\")).collect(Collectors.joining(\", \")));\n }\n }",
"public String getTableSummary() {\n return \"A summary description of table data\";\n }",
"public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }",
"private List<ProjectModel> generateSummaryList() {\n return new LinkedList<>(projects.values());\n }",
"public void summary (java.io.PrintStream out) { throw new RuntimeException(); }",
"public List<String> getEoiSummaries() {\n List<String> eoiStrings = new ArrayList<String>();\n for ( ElementOfInformation eoi : getFlow().getEois() ) {\n eoiStrings.add( eoi.getLabel() + ( eoi.isTimeSensitive() ? \"*\" : \"\" ) );\n }\n if ( eoiStrings.isEmpty() ) {\n eoiStrings.add( \"(none)\" );\n }\n return eoiStrings;\n }",
"public List<OperationImplementation> getOperations() {\n List<?> operationsUnknown = (List<?>) properties.get(XPATH_OPERATIONS);\n List<OperationImplementation> operations = new ArrayList<OperationImplementation>();\n if (operationsUnknown != null) {\n \t for (Object operationUnknown : operationsUnknown) {\n \t Map<?, ?> operationMap = (Map<?, ?>) operationUnknown;\n \t operations.add(new OperationImplementation(\n \t (String) operationMap.get(OPERATION_NAME),\n \t (String) operationMap.get(OPERATION_PARAMETERS),\n \t (String) operationMap.get(OPERATION_DOCUMENTATION)));\n \t }\n }\n return operations;\n }",
"private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}",
"void printStats();",
"private void ShowRep(Integer[] op) {\n System.out.print(\" \" + this.opCodeStrings[op[0]]);\n for (int i = 1; i < 13; i++) {\n if ((i - 1) % 4 == 0)\n System.out.print(\" | \");\n if (op[i] != null)\n System.out.print(\" \" + op[i]);\n else\n System.out.print(\" - \");\n }\n System.out.println();\n }",
"public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }"
]
| [
"0.65709066",
"0.6516253",
"0.62518424",
"0.61830527",
"0.6161617",
"0.61217445",
"0.6119535",
"0.6038523",
"0.60012317",
"0.5973149",
"0.59602296",
"0.58915156",
"0.58418787",
"0.5795361",
"0.579171",
"0.5790565",
"0.57730544",
"0.57710856",
"0.5771065",
"0.57598054",
"0.57417136",
"0.57303536",
"0.5692325",
"0.5689989",
"0.5623412",
"0.56228554",
"0.5622251",
"0.5599407",
"0.55920345",
"0.5588695",
"0.5588695",
"0.55715305",
"0.5571113",
"0.5562917",
"0.5554142",
"0.5545719",
"0.5543455",
"0.55415595",
"0.5537209",
"0.5526685",
"0.552308",
"0.55192745",
"0.548351",
"0.54833126",
"0.5483246",
"0.54696834",
"0.54489386",
"0.5412418",
"0.54113334",
"0.54099905",
"0.5399583",
"0.53980356",
"0.53965086",
"0.53805256",
"0.5380281",
"0.5372817",
"0.53713846",
"0.53695333",
"0.5358211",
"0.53574264",
"0.53574264",
"0.53493345",
"0.53483075",
"0.53444195",
"0.5343997",
"0.53411084",
"0.5340212",
"0.5326403",
"0.5325436",
"0.5317125",
"0.53166735",
"0.5310044",
"0.5301994",
"0.5301024",
"0.5279456",
"0.5260361",
"0.52503145",
"0.5245368",
"0.52323765",
"0.5224927",
"0.5216863",
"0.52154726",
"0.52154726",
"0.52151704",
"0.52082354",
"0.52041876",
"0.5203965",
"0.52011985",
"0.5197401",
"0.5183687",
"0.5179414",
"0.5176894",
"0.51676446",
"0.51663864",
"0.51643807",
"0.5163607",
"0.5162856",
"0.51622754",
"0.5155355",
"0.515488",
"0.51547277"
]
| 0.0 | -1 |
Lists summaries of the operations. | public ListOperationsResult withOperations(java.util.Collection<OperationSummary> operations) {
setOperations(operations);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void applySummary(Operation operation, Method method);",
"public java.util.List<OperationSummary> getOperations() {\n if (operations == null) {\n operations = new com.amazonaws.internal.SdkInternalList<OperationSummary>();\n }\n return operations;\n }",
"void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}",
"public static java.util.Collection getOperationDescs() {\r\n return _myOperationsList;\r\n }",
"public String getSummary();",
"private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }",
"private static final void displayAttractionSummary()\r\n {\r\n System.out.println(\"Display Attraction Summary Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n // step through array of attractions with for loop\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n attractionList[i].printDetails();\r\n System.out.println();\r\n }\r\n }",
"@RequestMapping(method=RequestMethod.GET, value = \"/summary\")\n\tpublic List<ExpenseSummary> getSummaries() {\n\t\treturn service.getSummary();\n\t}",
"java.lang.String getSummary();",
"public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }",
"public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }",
"public void displayOperations() {\n\n System.out.println(\"\" +\n \"Select Operation for GasPump 2 : \\n\" +\n \"0.) Activate \\n\" +\n \"1.) Start \\n\" +\n \"2.) PayCredit \\n\" +\n \"3.) Reject \\n\" +\n \"4.) PayDebit \\n\" +\n \"5.) Pin \\n\" +\n \"6.) Cancel \\n\" +\n \"7.) Approved \\n\" +\n \"8.) Diesel \\n\" +\n \"9.) Regular \\n\" +\n \"10.) Super \\n\" +\n \"11.) StartPump\\n\" +\n \"12.) PumpGallon\\n\" +\n \"13.) StopPump \\n\" +\n \"14.) FullTank \\n\" +\n \"q.) Quit\\n\");\n }",
"public Item2Vector<Summary> getSummaries() { return summaries; }",
"Operations operations();",
"public List<FileSummary> getAllSummary() {\n \n LOGGER.debug(\"Found total of {} records\", fileStatusRepository.count());\n \n List<FileSummary> summaries = StreamSupport.stream(fileStatusRepository.findAll().spliterator(), false)\n .map(e -> convertToSummary(e)).collect(Collectors.toList());\n\n return summaries;\n }",
"public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"@Override\n public List<OrderSummary> summary() throws EmptyOrderListException {\n logger.info(\"Displaying Order Summary\");\n if(registeredOrders.size() > 0) {\n return registeredOrders.stream().\n collect(groupingBy(Bid::forOrder, mapping(Order::quantity, toList()))).\n entrySet().stream().\n map(toOrderSummary()).\n sorted(byTypeAndPrice).\n collect(toList());\n }\n else {\n throw new EmptyOrderListException(\"Empty Order List. Size: \" + registeredOrders.size());\n }\n }",
"public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }",
"public List<OperationStatusResultInner> operations() {\n return this.operations;\n }",
"@Override\n public String toString ()\n {\n return \"\\n SMD \" + this.name + \"\\n Nbr Operations \" + this.operations.size () + \"\\t\" + this.operations + \"\\n Nbr Progress \"\n + this.progress.size () + \"\\t\" + this.progress;\n }",
"public Collection getOperations()\n {\n return Collections.unmodifiableCollection(operations);\n }",
"public String printSummary(){\n String ans=\"\";\n for(Sentence sentence : contentSummary){\n //tv_output.setText(sentence.value);\n ans+=sentence.value + \".\";\n }\n return ans;\n }",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"OperationDisplay display();",
"public void getSummary() { \n int randomTableNumber = (int)(Math.random() * 7) + 1;\n System.out.println(\"============================\");\n\n if (blnTakeOut == true) {\n System.out.println(\"Takeout order: \");\n } else if (blnTakeOut == false) {\n System.out.println(\"Table #\" + randomTableNumber + \"'s order: \");\n }\n\n for (int i = 0; i < itemsInOrder.size(); i++) {\n itemsInOrder.get(i).getSummary();\n }\n\n System.out.println(\"============================\");\n }",
"public void printComputerSummary() {\n\t\tfor (Component comp: configuration.values())\n\t\t{\n\t\t\tSystem.out.println(comp.getDescription());\n\t\t}\n\t}",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"@Override\n\tpublic String displayActions() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint i = 0;\n\t\tfor(Action action: this.getTakeableActions()) {\n\t\t\tif(action.isDisplay())\n\t\t\t\tsb.append(\"\\n\"+i++ +\". \"+ action.getDescription());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}",
"public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }",
"public void displayAll() {\n\t\t\n\t\tbankop.display();\n\t\n\t}",
"public static void showStatistics(){\n\n }",
"void printResultSummary(ResultsSummary s, Consumer<String> messageWriter) {\n if ( s.getFeaturesPending() > 0) {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesPending(),\n s.getFeaturesFailed()));\n } else {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesFailed()));\n }\n\n //only show the pending count if there were pending steps, makes the summary more legible\n if ( s.getScenariosPending() > 0 ) {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosPending(),\n s.getScenariosFailed()));\n } else {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosFailed()));\n }\n\n //print steps summary\n messageWriter.accept(format(\"Steps (total:%d) (passed:%d) (failed:%d) (undefined:%d) (pending:%d) (skipped:%d)\",\n s.getStepsPassed() + s.getStepsFailed() + s.getStepsUndefined() + s.getStepsPending() + s.getStepsSkipped(),\n s.getStepsPassed(),\n s.getStepsFailed(),\n s.getStepsUndefined(),\n s.getStepsPending(),\n s.getStepsSkipped()));\n }",
"public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }",
"static void writeOperations(){\n \ttry{\n \t\t\n\t\t\t// Create file \n\t\t\tFileWriter fstream = new FileWriter(FILE_FILEOP);\n\t\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t \tfor (int i=0; i < operations.size(); i++){\n\t \t\tout.write(operations.get(i).getDetails() );\n\t \t}\n\t\t\t\n\t\t\t//Close the output stream\n\t\t\tout.close();\n\t\t}\n \tcatch (Exception e){//Catch exception if any\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t}\n\t\tSystem.out.print(\"Operations file written.\\n\");\n\n \t\n }",
"public PrimitiveMethodSummary getSummary() {\n PrimitiveMethodSummary s = new PrimitiveMethodSummary(this,\n method,\n param_nodes,\n my_global,\n methodCalls,\n callToRVN,\n callToTEN,\n castMap,\n castPredecessors,\n returned,\n thrown,\n passedAsParameter,\n sync_ops,\n string_nodes);\n return s;\n }",
"List<Consumption> listAll();",
"public void printList()\n {\n tasks.forEach(task -> System.out.println(task.getDetails()));\n }",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"Summary for \");\n sb.append(method.toString());\n sb.append(':');\n sb.append(Strings.lineSep);\n// for (Iterator i=nodes.keySet().iterator(); i.hasNext(); ) {\n// Node n = (Node)i.next();\n// sb.append(\"\\t\");\n// sb.append(n.toString_long());\n// sb.append(Strings.lineSep);\n// }\n if(params != null && params.length > 0) {\n sb.append(\"\\tParams: \");\n sb.append(Arrays.asList(params));\n sb.append(Strings.lineSep);\n }\n if (returned != null && !returned.isEmpty()) {\n sb.append(\"\\tReturned: \");\n sb.append(returned);\n sb.append(Strings.lineSep);\n }\n if (thrown != null && !thrown.isEmpty()) {\n sb.append(\"\\tThrown: \");\n sb.append(thrown);\n sb.append(Strings.lineSep);\n }\n if (calls != null && !calls.isEmpty()) {\n sb.append(\"\\tCalls: \");\n sb.append(calls);\n sb.append(Strings.lineSep);\n }\n return sb.toString();\n }",
"@ApiModelProperty(value = \"The operations that can be performed on the issue.\")\n public Operations getOperations() {\n return operations;\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"default void print() {\r\n\t\tGenerator.getInstance().getLogger().debug(\"Operation matrix:\\r\");\r\n\t\tString ans = \" operation \";\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans += element1 + \" \";\r\n\t\t}\r\n\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\tfor (double i = 0; i < this.getOperationMap().keySet().size(); i++) {\r\n\t\t\tfinal Element element1 = this.get(i);\r\n\t\t\tans = element1 + \" \";\r\n\t\t\tfor (double j = 0; j < this.getOperationMap().keySet().size(); j++) {\r\n\t\t\t\tfinal Element element2 = this.get(j);\r\n\t\t\t\tans += \" \" + this.getOperationMap().get(element1).get(element2) + \" \";\r\n\t\t\t}\r\n\t\t\tLogManager.getLogger(FiniteSemiGroup.class).debug(ans);\r\n\t\t}\r\n\t}",
"public void printPaymentSummary() {\n System.out.print(\"+========================+\\n\");\n System.out.print(\"| Payment Summary |\\n\");\n System.out.print(\"+========================+\\n\");\n System.out.printf(\"Payment_ID: %s\\n\", payment_id);\n System.out.printf(\"STAFF_NAME: %s\\t\\t\\tSTAFF_ID : %s\\n\", order_staff.getName().toUpperCase(),\n order_staff.getId());\n System.out.printf(\"CUST_NAME : %s\\t\\tCurrent_Date: %s\\n\", order_member.getName().toUpperCase(),\n java.time.LocalDate.now());\n System.out.printf(\"CUST_ICNO : %s\\t\\tCurrent_Time: %s\\n\", order_member.getMemberIC(),\n java.time.LocalTime.now());\n System.out.print(\"----------------------------------------------------------------\\n\");\n System.out.printf(\"Total : %.2f\\n\", total_sales_of_transaction);\n System.out.printf(\"Payment Type Used : %s\\n\", payment_used);\n System.out.printf(\"Bike Brand : %s\\n\", order.getBike().getBrand());\n System.out.printf(\"Bike Price : %.2f\\n\", order.getBike().getPrice());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n }",
"public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }",
"public interface SummaryService {\n\n\tlong getOrphanCount(List<Exoplanet> exoplanets);\n\n\tString findPlanetWithHottestStar(List<Exoplanet> exoplanets);\n\n\tList<TimelineEntry> createTimeline(List<Exoplanet> exoplanets);\n}",
"public String getSummary() {\r\n return summary;\r\n }",
"public String getSummary() {\n return summary;\n }",
"public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }",
"private void doViewAllTasks() {\n ArrayList<Task> t1 = todoList.getListOfTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No tasks available.\");\n }\n }",
"@GetMapping(\"/operadoras\")\n\t@ApiOperation(value=\"Retorna uma lista de operadora em json\")\n\tpublic List<Operadoras> ListaOperadoras(){ \n\t\treturn operadorasRepository.findAll();\n\t\t\n\t}",
"public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }",
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }",
"public ArrayList <String> getOpDetails(){\r\n\t\tArrayList <String> ans = new ArrayList <String> ();\r\n\t\tans.add(cline);\r\n\t\treturn ans;\r\n\t}",
"@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();",
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }",
"public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }",
"List<CommandInfo> list();",
"public java.lang.String getSummary(){\r\n return this.summary;\r\n }",
"@Override\n public String toString() {\n return op.toString();\n }",
"@Override\n public String toString() {\n return \"<\"+getType()+\",\"+getOperation()+\">\";\n }",
"public String printfull(){\r\n\t\tString ans = this.toString() + \" \\n\";\r\n\t\t\r\n\t\tArrayList <String> details = getOpDetails();\r\n\t\tfor(String d: details){\r\n\t\t\tans = ans + d + \" \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tans = ans + \"Input Files:\\n\" ;\r\n\t\tFileInfo fileIndex = (FileInfo)input.getFirstChild();\r\n\t\twhile(fileIndex != null){\r\n\t\t\tans = ans + fileIndex.toString() + \"\\n\";\r\n\t\t\tfileIndex = (FileInfo)fileIndex.getNextSibling();\r\n\t\t}//end input while\r\n\t\t\r\n\t\t\r\n\t\tans = ans + \"Output Files:\\n\";\r\n\t\tfileIndex = (FileInfo)output.getFirstChild();\r\n\t\twhile(fileIndex != null){\r\n\t\t\tans = ans + fileIndex.toString() + \"\\n\";\r\n\t\t\tfileIndex = (FileInfo) fileIndex.getNextSibling();\r\n\t\t}//end output while\r\n\t\treturn ans;\r\n\t}",
"public List<String> description() {\n return Arrays.asList(new String[]{\"Default Description : Its a Performance Function\"});\n }",
"public static void show(){\r\n for(int i =0; i<loan.size(); i++){\r\n loan.get(i).calculate();\r\n }\r\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getOperations() != null)\n sb.append(\"Operations: \").append(getOperations()).append(\",\");\n if (getNextPageMarker() != null)\n sb.append(\"NextPageMarker: \").append(getNextPageMarker());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }",
"void applyDescription(Operation operation, Method method);",
"public String getDisplayName() {\n return \"Aggregate build flow test results\";\n }",
"@Override\n protected void printAggregates() {\n printRetrieveStudyAggregates(queryInstancesAggregates, firstResponseAggregates,\n firstFrameAggregates, totalAggregates, transferRateAggregates, frameRateAggregates);\n }",
"@Override\n public String RolesStatistics() {\n List<Employee> allEmployees = payrollService.AllEmployees();\n int ceo=0,manager=0,project_manager=0,employee=0;\n\n StringBuilder sb = new StringBuilder(\"\");\n for(int i=0;i<allEmployees.size();i++) {\n Employee e = allEmployees.get(i);\n if(e.getRole().getTitle().equals(\"CEO\"))\n ceo++;\n else if(e.getRole().getTitle().equals(\"Manager\"))\n manager++;\n else if(e.getRole().getTitle().equals(\"Project Manager\"))\n project_manager++;\n else if(e.getRole().getTitle().equals(\"Employee\"))\n employee++;\n }\n sb.append(\"Employees: \"+employee+\"\\n\");\n sb.append(\"Project Managers: \"+project_manager+\"\\n\");\n sb.append(\"Managers: \"+manager+\"\\n\");\n sb.append(\"CEOs: \"+ceo+\"\\n\");\n\n return sb.toString();\n }",
"void statistics();",
"public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }",
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"public static void print(ICalculator calculator){\n System.out.println(calculator.addition\r\n (4.1, calculator.addition\r\n (calculator.multiplication(15,7), calculator.power((28/5),2))));\r\n if (calculator instanceof CalculatorWithCounterDecorator){\r\n System.out.println(((CalculatorWithCounterDecorator) calculator).getCountOperation());\r\n }\r\n }",
"String getOrderSummary(){\n String s = \"\";\n\n for (Pizza p : pizzas) {\n s += p.getInfo() + \"\\n\";\n }\n\n return s;\n }",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getOperation();",
"public ObservableList<Operation> getOperations() {\n\t\treturn operations;\n\t}",
"public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n }",
"public static java.util.List getOperationDescByName(java.lang.String methodName) {\r\n return (java.util.List)_myOperations.get(methodName);\r\n }",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn rootOperation.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + op1 + \" + \" + op2 + \" to \" + result;\n\t}",
"private void outputTotal(List<FileDifference> differences) {\n Map<String, Integer> countByType = new HashMap<>();\n int total = 0;\n for (FileDifference diff : differences) {\n String symbol;\n if (diff.getFolder1Element() == null) {\n symbol = \"+\";\n } else if (diff.getFolder2Element() == null) {\n symbol = \"-\";\n } else if (diff.wasModified()) {\n symbol = \"*\";\n } else {\n symbol = \">\";\n }\n countByType.merge(symbol, 1, Integer::sum);\n ++total;\n }\n\n if (total == 0) {\n logger.printLn(\"Did not find any differences! Both folders match perfectly.\");\n } else {\n List<String> descriptions = List.of(\n countByType.get(\"+\") + \" additions (+)\",\n countByType.get(\"-\") + \" removals (-)\",\n countByType.get(\"*\") + \" modifications (*)\",\n countByType.get(\">\") + \" renamings (>)\");\n\n logger.printLn(\"Found \" + total + \" changes: \" +\n descriptions.stream().filter(count -> !count.startsWith(\"null\")).collect(Collectors.joining(\", \")));\n }\n }",
"public String getTableSummary() {\n return \"A summary description of table data\";\n }",
"public String actionsToString() {\n String res = \"\";\n for (UserCheck userCheck: checks) {\n res += userCheck.toString() + \" \\n\";\n }\n return res;\n }",
"private List<ProjectModel> generateSummaryList() {\n return new LinkedList<>(projects.values());\n }",
"public void summary (java.io.PrintStream out) { throw new RuntimeException(); }",
"public List<String> getEoiSummaries() {\n List<String> eoiStrings = new ArrayList<String>();\n for ( ElementOfInformation eoi : getFlow().getEois() ) {\n eoiStrings.add( eoi.getLabel() + ( eoi.isTimeSensitive() ? \"*\" : \"\" ) );\n }\n if ( eoiStrings.isEmpty() ) {\n eoiStrings.add( \"(none)\" );\n }\n return eoiStrings;\n }",
"public List<OperationImplementation> getOperations() {\n List<?> operationsUnknown = (List<?>) properties.get(XPATH_OPERATIONS);\n List<OperationImplementation> operations = new ArrayList<OperationImplementation>();\n if (operationsUnknown != null) {\n \t for (Object operationUnknown : operationsUnknown) {\n \t Map<?, ?> operationMap = (Map<?, ?>) operationUnknown;\n \t operations.add(new OperationImplementation(\n \t (String) operationMap.get(OPERATION_NAME),\n \t (String) operationMap.get(OPERATION_PARAMETERS),\n \t (String) operationMap.get(OPERATION_DOCUMENTATION)));\n \t }\n }\n return operations;\n }",
"private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}",
"void printStats();",
"private void ShowRep(Integer[] op) {\n System.out.print(\" \" + this.opCodeStrings[op[0]]);\n for (int i = 1; i < 13; i++) {\n if ((i - 1) % 4 == 0)\n System.out.print(\" | \");\n if (op[i] != null)\n System.out.print(\" \" + op[i]);\n else\n System.out.print(\" - \");\n }\n System.out.println();\n }",
"public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }"
]
| [
"0.65709066",
"0.6516253",
"0.62518424",
"0.61830527",
"0.6161617",
"0.61217445",
"0.6119535",
"0.6038523",
"0.60012317",
"0.5973149",
"0.59602296",
"0.58915156",
"0.58418787",
"0.5795361",
"0.579171",
"0.5790565",
"0.57730544",
"0.57710856",
"0.5771065",
"0.57598054",
"0.57417136",
"0.57303536",
"0.5689989",
"0.5623412",
"0.56228554",
"0.5622251",
"0.5599407",
"0.55920345",
"0.5588695",
"0.5588695",
"0.55715305",
"0.5571113",
"0.5562917",
"0.5554142",
"0.5545719",
"0.5543455",
"0.55415595",
"0.5537209",
"0.5526685",
"0.552308",
"0.55192745",
"0.548351",
"0.54833126",
"0.5483246",
"0.54696834",
"0.54489386",
"0.5412418",
"0.54113334",
"0.54099905",
"0.5399583",
"0.53980356",
"0.53965086",
"0.53805256",
"0.5380281",
"0.5372817",
"0.53713846",
"0.53695333",
"0.5358211",
"0.53574264",
"0.53574264",
"0.53493345",
"0.53483075",
"0.53444195",
"0.5343997",
"0.53411084",
"0.5340212",
"0.5326403",
"0.5325436",
"0.5317125",
"0.53166735",
"0.5310044",
"0.5301994",
"0.5301024",
"0.5279456",
"0.5260361",
"0.52503145",
"0.5245368",
"0.52323765",
"0.5224927",
"0.5216863",
"0.52154726",
"0.52154726",
"0.52151704",
"0.52082354",
"0.52041876",
"0.5203965",
"0.52011985",
"0.5197401",
"0.5183687",
"0.5179414",
"0.5176894",
"0.51676446",
"0.51663864",
"0.51643807",
"0.5163607",
"0.5162856",
"0.51622754",
"0.5155355",
"0.515488",
"0.51547277"
]
| 0.5692325 | 22 |
If there are more operations than you specified for MaxItems in the request, submit another request and include the value of NextPageMarker in the value of Marker. | public void setNextPageMarker(String nextPageMarker) {
this.nextPageMarker = nextPageMarker;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void handlePaginated(IPlaceFinder finder, int limit) {\n LocalTime firstReqTime = LocalTime.now();\n findPagedResults(finder, limit, 0);\n int offset = limit;\n while(scanner.hasNextLine()) {\n String input = scanner.nextLine();\n if (ValidInput.MORE.getInput().equals(input)) {\n // checks if the current call is no later than 5 minutes of first request\n if (firstReqTime.plusMinutes(5L).isAfter(LocalTime.now())) {\n findPagedResults(finder, limit, offset);\n offset = offset + limit;\n //makes a new call if the first request is older than 5 mins\n } else {\n MessageOut.gettingNewResults();\n findPagedResults(finder, limit, 0);\n offset = limit;\n }\n } else if (ValidInput.END.getInput().equals(input)) {\n break;\n } else {\n MessageOut.notValidInput();\n }\n }\n }",
"protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"public ListOperationsResult withNextPageMarker(String nextPageMarker) {\n setNextPageMarker(nextPageMarker);\n return this;\n }",
"protected ActionForward nextPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 0 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ ++pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"private void pagination(){\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n }\n\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if (dy>0){\n LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n int lastItem = layoutManager.findLastCompletelyVisibleItemPosition(); //finds last visible item\n int currentTotalCount = layoutManager.getItemCount(); //find total number of displayed items\n\n if (mLoadingItems){\n if (currentTotalCount > previousTotal){\n mLoadingItems = false;\n previousTotal = currentTotalCount;\n }\n }\n if (!mLoadingItems && (currentTotalCount <= (lastItem +view_threshold))) {\n mLoadingItems = true;\n //Increment number of items on the list\n firstItemVisible = firstItemVisible+10;\n lastItemVisible = lastItemVisible+10;\n //Update adapter\n jsonParse();\n }\n }\n }\n });\n }",
"public static void syncNextPage(Context context, boolean isFullRequest) {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);\n int numPage = 0;\n\n // create the bundle to use in sync\n Bundle bundle = new Bundle();\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n\n // in case to fetch the next number, increment the counter\n if(!isFullRequest) {\n numPage = sharedPref.getInt(context.getString(R.string.pref_page_number_key), 0) + 1;\n }\n\n // Add the current page number to fetch\n bundle.putInt(NUMBER_PAGE_REQUEST, numPage);\n\n ContentResolver.requestSync(getSyncAccount(context),\n context.getString(R.string.content_authority), bundle);\n\n }",
"public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}",
"private void paginate() {\n List<ItemModel> old = adapter.getItems();\n List<ItemModel> New = new ArrayList<>(addList());\n CardStackCallback callback = new CardStackCallback(old, New);\n DiffUtil.DiffResult result = DiffUtil.calculateDiff(callback);\n adapter.setItems(New);\n result.dispatchUpdatesTo(adapter);\n }",
"@Override\n public void onLoadMore() {\n if (searchbeanArrayList_new.size() != 0) {\n\n\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n // remove progress item\n\n\n //add items one by one\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }\n }, 2000);\n\n }\n\n }",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"void setPageSize(DriveRequest<?> request, Integer pageSize);",
"@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }",
"private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"public void customLoadMoreDataFromApi() {\n // This method probably sends out a network request and appends new data items to your adapter. \n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n \tmakeGoogleApiCall();\n \t\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }",
"private WebSearchRequest createNextRequest() {\n\t\tWebSearchRequest _request = new WebSearchRequest(query);\n\t\t_request.setStart(BigInteger.valueOf(cacheStatus+1));\t\t\t\t\t//Yahoo API starts index with 1, not with 0\n\t\t_request.setResults(getFetchBlockSize());\n\t\treturn _request;\n\t}",
"protected void buildGetLink(SearchRequest searchRequest, ItemCollection itemCollection, int finalLimit,\n String nextToken) {\n double[] bbox = searchRequest.getBbox();\n String link = LinksConfigProps.LINK_BASE + \"?limit=\" + finalLimit;\n if (null != bbox && (bbox.length == 4 || bbox.length == 6)) {\n link += bbox == null ? Strings.EMPTY : \"&bbox=\" + bbox[0] + \",\" + bbox[1] + \",\" + bbox[2] + \",\" + bbox[3];\n }\n link += searchRequest.getDatetime() == null ? Strings.EMPTY : \"&datetime=\" + searchRequest.getDatetime();\n link += searchRequest.getFilter() == null ? Strings.EMPTY : \"&filter=\" + searchRequest.getFilter();\n link += searchRequest.getIds() == null ? Strings.EMPTY :\n \"&ids=\" + String.join(\",\", searchRequest.getIds());\n link += searchRequest.getCollections() == null ? Strings.EMPTY :\n \"&collections=\" + String.join(\",\", searchRequest.getCollections());\n\n String fieldsValue = \"\";\n if (null != searchRequest.getFields()) {\n // add include fields\n fieldsValue += searchRequest.getFields().getInclude() == null ? Strings.EMPTY :\n String.join(\",\", searchRequest.getFields().getInclude());\n\n // add exclude fields\n Set<String> excludeFields = searchRequest.getFields().getExclude();\n if (null != excludeFields) {\n // need to add the \"-\" prefix for the get parameter\n List<String> prefixedExcludeFields = new ArrayList<>();\n excludeFields.forEach(field -> prefixedExcludeFields.add(\"-\" + field));\n String excludeFieldsString = String.join(\",\", prefixedExcludeFields);\n fieldsValue += fieldsValue.isBlank() ? excludeFieldsString : \",\" + excludeFieldsString;\n }\n }\n\n if (fieldsValue != null && !fieldsValue.isBlank()) {\n link += \"&fields=\" + fieldsValue;\n }\n\n if (nextToken != null) {\n itemCollection.addLink(new Link()\n .href(link + \"&next=\" + nextToken)\n .type(StaccatoMediaType.APPLICATION_GEO_JSON_VALUE)\n .rel(\"next\"));\n }\n\n String selfLink = searchRequest.getNext() == null ? link : link + \"&next=\" + searchRequest.getNext();\n itemCollection.addLink(new Link()\n .href(selfLink)\n .method(HttpMethod.GET.toString())\n .type(StaccatoMediaType.APPLICATION_GEO_JSON_VALUE)\n .rel(\"self\"));\n\n }",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"private void loadMoreItems() {\n isLoading = true;\n\n currentPage += 1;\n\n Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);\n calls.add(findMyFeedVideosCall);\n findMyFeedVideosCall.enqueue(findMyFeedVideosNextFetchCallback);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextFeedPage(page);\n }",
"@Override\n public void run() {\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n G.i(\"YOOOHO\");\n\n G.i(\"passed threshold p: \" + page + \" activity: \" + totalItemsCount);\n if (!noMorePost){\n loadPosts(Constant.POST_REQUEST_COUNT,totalItemsCount,page, searchPhrase);\n }else\n noMorePost = false;\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextData(page);\n }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(page); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n pageNumberBeingQueried = page;\n\n /*\n * Loader call - case 2 of 3\n * We call loader methods in case our recycler view is running out of items for display\n * */\n manageLoaders();\n }",
"@Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n if (mMaxPage == 1) {\n showLastDataMessage();\n } else if (mMaxPage > 1 && page > mMaxPage) {\n showLastDataMessage();\n } else {\n mIsRefreshMode = false;\n loadData();\n }\n return true; // ONLY if more data is actually being loaded; false otherwise.\n }",
"public void incrementNumSearchRequests() {\n this.numSearchRequests.incrementAndGet();\n }",
"protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }",
"Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n notificationID = notifications.get(notifications.size()-1).getID();\n feachNotificationsFromApi(notificationID);\n }",
"private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}",
"@Override\n\t\tpublic void onLoadMore(int page, int totalItemsCount) {\n\t\t\tpresenter.loadRecordsPage(page);\n\t\t}",
"@Override\n public void onNext(T item) {\n limiter.limit(item, completeAction);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextPosts(page);\n hideProgressBar();\n }",
"public void onRequestMore() {\n buildTimeline(getLastTweetId() - 1, NO_SINCE_ID);\n }",
"public void loadNextDataFromApi(int offset) {\n // Send an API request to retrieve appropriate paginated data\n // --> Send the request including an offset value (i.e `page`) as a query parameter.\n // --> Deserialize and construct new model objects from the API response\n // --> Append the new data objects to the existing set of items inside the array of items\n // --> Notify the adapter of the new items made with `notifyItemRangeInserted()`\n PostFetch postFetch = new PostFetch(getContext(), new AppUtils.MyInterface() {\n @Override\n public void myMethod(String response) {\n if(response.equals(\"0\")){\n Toast.makeText(getContext(), \"No internet connection\", Toast.LENGTH_SHORT).show();\n }\n else if(response.equals(\"1\")){\n Toast.makeText(getContext(), \"Unable to connect to server\", Toast.LENGTH_SHORT).show();\n }\n else {\n AppUtils.addPostsToAdapter(getContext(), response, mAdapter);\n }\n }\n });\n postFetch.execute(url, Integer.valueOf(offset*10).toString(), AppUtils.PAGE_SIZE);\n }",
"private static void fetchNextPage(Context context) {\n\n /* Get pages info */\n int currentPage = PageUtils.getCurrentPage(context);\n int totalPages = PageUtils.getTotalPages(context);\n\n /* Get uri of data for current show mode */\n Uri uri;\n int showMode = MoviesPreferences.getMoviesShowMode(context);\n if (showMode == MoviesPreferences.SHOW_MODE_MOST_POPULAR) {\n uri = MoviesContract.MovieEntry.CONTENT_URI_MOST_POPULAR;\n } else {\n uri = MoviesContract.MovieEntry.CONTENT_URI_TOP_RATED;\n }\n\n /* If last update time expired, set current page to 0 and clean cache table */\n boolean isDataActual = DateUtils.isMoviesListLastUpdateActual(context);\n if (!isDataActual) {\n context.getContentResolver().delete(uri, null, null);\n currentPage = 0;\n PageUtils.setCurrentPage(context, currentPage);\n }\n\n /* If all pages already loaded, we don't need to do anything */\n if (currentPage == totalPages) {\n return;\n }\n\n URL moviesListUrl = NetworkUtils.getMoviesListUrl(context, currentPage + 1);\n ContentValues[] movieContentValues = null;\n int requestedTotalPages = 1;\n\n try {\n String response = NetworkUtils.getResponseFromHttpUrl(moviesListUrl);\n movieContentValues = TmdbJsonUtils.getMovieContentValuesFromJson(response);\n requestedTotalPages = TmdbJsonUtils.getTotalPagesFromJson(response);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n if (movieContentValues == null) {\n return;\n }\n\n int insertedRows = context.getContentResolver()\n .bulkInsert(uri, movieContentValues);\n\n if (insertedRows > 0) {\n currentPage++;\n PageUtils.setCurrentPage(context, currentPage);\n\n if (currentPage == 1) {\n PageUtils.setTotalPages(context, requestedTotalPages);\n long currentTime = System.currentTimeMillis();\n DateUtils.setMoviesListLastUpdateTime(context, currentTime);\n }\n }\n\n }",
"public OfferShiftRequestCollectionPage(@Nonnull final java.util.List<OfferShiftRequest> pageContents, @Nullable final OfferShiftRequestCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }",
"void nextPage() throws IndexOutOfBoundsException;",
"public void loadNextDataFromApi(int offset) {\n // Send an API request to retrieve appropriate paginated data\n // --> Send the request including an offset value (i.e `page`) as a query parameter.\n // --> Deserialize and construct new model objects from the API response\n // --> Append the new data objects to the existing set of items inside the array of items\n // --> Notify the adapter of the new items made with `notifyItemRangeInserted()`\n\n Toast.makeText(getActivity(), \"new data loading\", Toast.LENGTH_SHORT).show();\n\n final Integer count =Integer.parseInt(dataoffset)+10;\n dataoffset=count.toString();\n\n\n JsonObjectRequest fetchAllStores = new JsonObjectRequest(Request.Method.POST, \"http://omtii.com/mile/fetchpagegroupchat.php?mobno=\"+mobileno+\"&dataoffset=\"+count.toString(), null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n Log.d(TAG, \"more data query : \" + \"http://omtii.com/mile/fetchpagegroupchat.php?mobno=\"+mobileno+\"&dataoffset=\"+count.toString());\n\n Log.d(TAG, \"Fetch Stores: \" + response);\n showStores(response);\n //MyRecyclerView.setAdapter(adapter);\n System.err.println(\"adpter attached\");\n adapter.notifyDataSetChanged();\n System.err.println(\"data set changed attached\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Fetch Stores Error: \" + error.getMessage());\n }\n });\n ApplicationController.getInstance().addToRequestQueue(fetchAllStores);\n }",
"private void doApiCall() {\n\n if (currentPage != PAGE_START) adapter.removeLoading();\n\n // check weather is last page or not\n if (totalPage != 0) {\n adapter.addLoading();\n apiCall(currentPage);\n } else {\n isLastPage = true;\n }\n isLoading = false;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadMoreRecyclerViewData(hal[0]);\n hal[0]++;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n Log.d(\"DEBUG\", \"network continue load before count:\" + tweets.size());\n loadNextDataFromApi(page, view);\n }",
"void setMaxResults(int limit);",
"List<Item<T>> addItemsForPage(final long page);",
"public static String doPaginationResponseFormlet(HttpServletRequest request, Paginator paginator, List page) {\n request.setAttribute(\"pageRows\", page);\n return \"success\";\n }",
"protected abstract void nextRequest ();",
"protected abstract boolean sendNextRequests();",
"@Override\n public void onLoadMore() {\n MyApplacation.getmHandler().postDelayed(new Runnable() {\n @Override\n public void run() {\n pageNo++;\n getDataForService();\n }\n }, 1000);\n\n }",
"@Override\n public void onLoadMoreItems() {\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }",
"@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}",
"public String getNextPageMarker() {\n return this.nextPageMarker;\n }",
"@Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n if (mMaxPage == 0 || mCurrentPage <= mMaxPage) {\n loadData(null, true);\n return true; // ONLY if more data is actually being loaded; false otherwise.\n } else {\n return false;\n }\n }",
"private void myjob_LoadMore_converted_PostRequest(Context mContext, String url) {\n\n loadmore.setVisibility(View.VISIBLE);\n\n HashMap<String, String> jsonParams = new HashMap<String, String>();\n jsonParams.put(\"provider_id\", provider_id);\n jsonParams.put(\"type\", \"closed\");\n jsonParams.put(\"page\", Str_Pagination);\n jsonParams.put(\"perPage\", Str_PageDateCount);\n\n System.out.println(\"--------------loadmore page-------------------\" + Str_Nextpage);\n\n System.out.println(\"--------------loadmore perpage--------------------\" + Str_PageDateCount);\n\n ServiceRequest mservicerequest = new ServiceRequest(mContext);\n\n mservicerequest.makeServiceRequest(url, Request.Method.POST, jsonParams, new ServiceRequest.ServiceListener() {\n\n @Override\n public void onCompleteListener(String response) {\n\n System.out.println(\"--------------reponse-------------------\" + response);\n Log.e(\"converted\", response);\n String Str_status = \"\", Str_totaljobs = \"\", Str_Response = \"\";\n\n try {\n loadingMore = true;\n\n JSONObject jobject = new JSONObject(response);\n Str_status = jobject.getString(\"status\");\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n JSONObject object = jobject.getJSONObject(\"response\");\n Str_Pagination = object.getString(\"next_page\");\n Str_PageDateCount = object.getString(\"perPage\");\n Str_totaljobs = object.getString(\"total_jobs\");\n\n Object check_list_object = object.get(\"jobs\");\n if (check_list_object instanceof JSONArray) {\n\n JSONArray jarry = object.getJSONArray(\"jobs\");\n if (jarry.length() > 0) {\n\n for (int i = 0; i < jarry.length(); i++) {\n JSONObject object2 = jarry.getJSONObject(i);\n MyjobConverted_Pojo pojo = new MyjobConverted_Pojo();\n pojo.setConverted_address(object2.getString(\"location\"));\n pojo.setConverted_category(object2.getString(\"category_name\"));\n pojo.setConverted_date(object2.getString(\"booking_time\"));\n pojo.setConverted_user_name(object2.getString(\"user_name\"));\n pojo.setConverted_user_image(object2.getString(\"user_image\"));\n pojo.setOrder_id(object2.getString(\"job_id\"));\n pojo.setConvertedjob_status(object2.getString(\"job_status\"));\n String address= getCompleteAddressString(Double.parseDouble(object2.getString(\"location_lat\")),Double.parseDouble(object2.getString(\"location_lng\")));\n pojo.setAddress(address);\n convertedlist.add(pojo);\n isConvertedJobAvailable = true;\n\n }\n show_progress_status = true;\n } else {\n show_progress_status = false;\n isConvertedJobAvailable = false;\n }\n } else {\n isConvertedJobAvailable = false;\n }\n\n } else {\n Str_Response = jobject.getString(\"response\");\n }\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n loadingMore = false;\n loadmore.setVisibility(View.GONE);\n\n if (show_progress_status) {\n adapter.notifyDataSetChanged();\n }\n\n } else {\n Alert(getResources().getString(R.string.server_lable_header), Str_Response);\n\n }\n if (swipeRefreshLayout.isRefreshing()) {\n swipeRefreshLayout.setRefreshing(false);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n\n }\n\n @Override\n public void onErrorListener() {\n dialog.dismiss();\n }\n });\n\n }",
"public Integer getCurrentPageSize();",
"public static String paginate(HttpServletRequest request, HttpServletResponse response) {\n List page = FastList.newInstance();\n Paginator paginator = PaginatorFactory.getPaginator(request);\n String action = UtilCommon.getParameter(request, \"action\");\n String pageNumberString = UtilCommon.getParameter(request, \"pageNumber\");\n \n if (paginator != null) {\n try {\n if (pageNumberString != null) {\n try {\n long pageNumber = Long.parseLong(pageNumberString);\n page = paginator.getPageNumber(pageNumber);\n }\n catch (NumberFormatException e) {\n Debug.logWarning(\"Failed to get page numer [\" + pageNumberString + \"] to to format error: \" + e.getMessage(), module);\n page = paginator.getCurrentPage();\n }\n }\n else if (action == null || \"getCurrentPage\".equals(action)) {\n page = paginator.getCurrentPage();\n }\n else if (\"getNextPage\".equals(action)) {\n page = paginator.getNextPage();\n }\n else if (\"getPreviousPage\".equals(action)) {\n page = paginator.getPreviousPage();\n }\n else if (\"getFirstPage\".equals(action)) {\n page = paginator.getFirstPage();\n }\n else if (\"getLastPage\".equals(action)) {\n page = paginator.getLastPage();\n }\n else {\n Debug.logWarning(\"Paginate action [\" + action + \"] not supported.\", module);\n page = paginator.getCurrentPage();\n }\n }\n catch (ListBuilderException e) {\n return doListBuilderExceptionResponse(request, response, paginator, e);\n }\n }\n return doPaginationResponse(request, response, paginator, page);\n }",
"public void incrementNumExtendedRequests() {\n this.numExtendedRequests.incrementAndGet();\n }",
"public void setNextPage(boolean value) {\n this.nextPage = value;\n }",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"public void customLoadMoreDataFromApi(int offset) {\n// Log.d(TAG, \"page = \" + offset);\n populateTimeline();\n // This method probably sends out a network request and appends new data items to your adapter.\n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n }",
"@Override\n\tpublic void process(Page page){\n\n\t CollectTemplate collectTemplate = templateService.getCollectTemplateById(templateId);\n\t String currentUrl=page.getUrl().toString();\n\t String nextUrlXpath=collectTemplate.getNextUrlXpath();\n \tString contentUrlXpath=collectTemplate.getContentUrlXpath();\n \tString listUrlRegex=collectTemplate.getListUrlRegex();\n \tString contentUrlRegex=collectTemplate.getContentUrlRegex();\n \tList<CollectTemplateField> fields=collectTemplate.getFields();\n \ttry {\n\t \t\t\n\t \tHtml currentHtml= page.getHtml();\n\n\t\t\t//判断是否是列表页\n\t if (currentUrl.matches(listUrlRegex)) {\n\n\t\t\t\t//处理列表页\n\t\t\t\tString nextPageUrl=\"\";\n\t\t\t\ttry{\n\t\t\t\t\tnextPageUrl=currentHtml.xpath(nextUrlXpath).toString();\n\t\t\t\t\tif (nextPageUrl==null||StringUtils.isEmpty(nextPageUrl)){\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e){\n\t\t\t\t\tXpath2Selector xpath2Selector = new Xpath2Selector(nextUrlXpath);\n\t\t\t\t\tnextPageUrl = xpath2Selector.select(page.getRawText());\n\n\t\t\t\t\tif (nextPageUrl!=null&&nextPageUrl.startsWith(\"/\")){\n\t\t\t\t\t\tnextPageUrl = \"http://\"+site.getDomain()+nextPageUrl;\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t \tif (StringUtils.isNotEmpty(nextPageUrl)) {\n\n\t \t\tRequest request=new Request();\n\t \t\trequest.setUrl(nextPageUrl);\n\t \t\trequest.setPriority(-1);\n\t \t\t\n\t \t\tpage.addTargetRequest(request);\n\n\t \t\tlogService.info(projectId,\"get the next page link \"+nextPageUrl+\" and add it to the queue\");\n\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get the next page link\");\n\n\t\t\t\t}\n\t \tList<String> detailPagesUrl;\n\t \ttry{\n\t\t\t\t\tdetailPagesUrl = currentHtml.xpath(contentUrlXpath).all();\n\n\t\t\t\t}catch (Exception e){\n\n\t\t\t\t\tXpath2Selector xpath2Selector2 = new Xpath2Selector(contentUrlXpath);\n\t\t\t\t\tdetailPagesUrl = xpath2Selector2.selectList(currentHtml.getDocument().text());\n\t\t\t\t}\n\n\n\n\t \tif (detailPagesUrl!=null&&detailPagesUrl.size()!=0) {\n\t\t\t\t\t//添加详情页\n\t\t\t\t\tpage.addTargetRequests(detailPagesUrl, 1);\n\n\t\t\t\t\tlogService.info(projectId,\"get \"+detailPagesUrl.size()+\" detail pages\");\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get detail page\");\n\n\t\t\t\t}\n\t\t\t}else if (StringUtils.isEmpty(contentUrlRegex)||currentUrl.matches(contentUrlRegex)) {\n\t \t//处理详情页\n\t\t\t\tcontentPageProcessService.setProjectId(projectId);\n\t\t\t\tcontentPageProcessService.progressContentPage(page,fields);\n\t\t\t}\n\t \t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t \n\t }",
"@Override\r\n\tpublic ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tint pageSize = 10; // 한 페이지 당 출력될 글의 개수 지정\r\n\t\t\r\n\t\tString pageNum = request.getParameter(\"pageNum\"); // 페이지 번호를 받아온다.\r\n\t\tif(pageNum == null) {\r\n\t\t\tpageNum = \"1\"; // 페이지 번호를 눌러서 들어오지 않으면 게시판 1page를 보여준다.\r\n\t\t}\r\n\t\t\r\n\t\t// 페이지 번호를 사용해서 페이징 처리 시 연산을 수행할 것이므로\r\n\t\t// 페이지 번호값을 정수타입으로 변경\r\n\t\tint currentPage = Integer.parseInt(pageNum);\r\n\t\t\r\n\t\t// 해당 페이지에 출력되는 글들 중 가장 먼저 출력되는 글의 레코드 번호\r\n\t\tint startRow = (currentPage - 1) * pageSize + 1;\r\n\t\t// 현재 페이지 : 1\r\n\t\t// (1 - 1) * pageSize + 1 ---------> 1\r\n\t\t// 현재 페이지 : 2\r\n\t\t// (2 - 1) * pageSize + 1 ---------> 11\r\n\t\t\r\n\t\tint count = 0;\r\n\t\t// count : 총 글의 개수를 저장할 변수\r\n\t\tint number = 0;\r\n\t\t// number : 해당 페이지에 가장 먼저 출력되는 글의 번호\r\n\t\t\r\n\t\tList<ReservationInfo> reservationList = null; // 글 정보를 저장할 리스트\r\n\t\t// 해당 페이지에 출력되는 글 목록을 저장할 컬렉션\r\n\t\t\r\n\t\t// 비지니스 로직 처리를 위해 서비스 객체 생성\r\n\t\tReservationListService reservationListService = new ReservationListService();\r\n\t\t\r\n\t\tcount = reservationListService.getReservationCount(); // 총 예약의 개수를 가져온다.\r\n\t\tif(count > 0) { \r\n\t\t\t// 예약이 하나라도 있으면 리스팅할 예약 정보 얻어오기\r\n\t\t\treservationList = reservationListService.getReservationList(startRow, pageSize); // 해당 페이지의 레코드 10개씩 가져온다.\r\n\t\t}\r\n\t\t\r\n\t\t// 전체 페이지에서 현재페이지 -1을 해서 pageSize를 곱한다.\r\n\t\tnumber = count - (currentPage - 1) * pageSize;\r\n\t\t// 총 글의 개수 : 134\r\n\t\t// 현재 페이지 : 1\r\n\t\t// 134 - (1 - 1) * 10 -------> 134\r\n\t\t\r\n\t\tint startPage = 0;\r\n\t\tint pageCount = 0;\r\n\t\tint endPage = 0;\r\n\t\t\r\n\t\tif(count > 0) { // 글이 하나라도 존재하면...\r\n\t\t\tpageCount = count / pageSize + (count % pageSize == 0 ? 0 : 1);\r\n\t\t\t// 총 페이지 개수를 구함.\r\n\t\t\t// ex) 총 글의 개수 13개이면 페이지는 2개 필요..\r\n\t\r\n\t\t\tstartPage = ((currentPage -1) / pageSize) * pageSize + 1;\r\n\t\t\t// 현재 페이지 그룹의 첫번째 페이지를 구함.\r\n\t\t\t// [1][2][3][4][5][6][7]...[10] -------> 처음 페이지 그룹\r\n\t\t\t// 다음 페이지 스타트 페이지 : [11][12][13]....[20]\r\n\t\t\t\t\t\r\n\t\t\tint pageBlock = 10;\r\n\t\t\tendPage = startPage + pageBlock - 1;\r\n\t\t\t\r\n\t\t\t// 마지막 페이지 그룹인 경우..\r\n\t\t\tif(endPage > pageCount) endPage = pageCount;\r\n\t\t}\r\n\t\t\r\n\t\t// 포워딩 하기 전, 가져 온 글 공유\r\n\t\trequest.setAttribute(\"reservationList\", reservationList);\r\n\t\tPageInfo pageInfo = new PageInfo(); // 페이지에 관한 정보를 처리하는 객체 생성\r\n\t\tpageInfo.setCount(count);\r\n\t\tpageInfo.setCurrentPage(currentPage);\r\n\t\tpageInfo.setEndPage(endPage);\r\n\t\tpageInfo.setNumber(number);\r\n\t\tpageInfo.setPageCount(pageCount);\r\n\t\tpageInfo.setStartPage(startPage);\r\n\t\t\r\n\t\trequest.setAttribute(\"pageInfo\", pageInfo);\r\n\t\tActionForward forward = new ActionForward();\r\n\t\tforward.setUrl(\"/pc/reservationList.jsp\"); // list.jsp 페이지 포워딩\r\n\t\t\r\n\t\treturn forward;\r\n\t}",
"public void incrementActiveRequests() \n {\n ++requests;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n System.out.println(\"load more\" + totalItemsCount);\n loadMore(totalItemsCount);\n }",
"private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }",
"@Override\n\tpublic void onLoadMore() {\n\t\tif (onRefresh_number) {\n\t\t\tpage = page + 1;\n\n\t\t\tonRefresh_number = false;\n\t\t\tgetData();\n\n\t\t\t// if (Tools.isConnect(getApplicationContext())) {\n\t\t\t// onRefresh_number = false;\n\t\t\t// getData();\n\t\t\t// } else {\n\t\t\t// onRefresh_number = true;\n\t\t\t// handler.sendEmptyMessage(2);\n\t\t\t// }\n\t\t} else {\n\t\t\thandler.sendEmptyMessage(3);\n\t\t}\n\t}",
"@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}",
"protected ActionForward currentPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 1 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\" + pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}",
"@Override\n\tpublic void onLoadMore() {\n\t\tLog.d(\"load\", \"\");\n\t\tcurrentPage++;\n\t\tmodel.getPostsByType(userId, currentPage, method, postListiner);\n\t}"
]
| [
"0.6260538",
"0.58937865",
"0.5869566",
"0.5863278",
"0.58600926",
"0.5700929",
"0.5674525",
"0.5656012",
"0.5648321",
"0.56405",
"0.5606181",
"0.5606181",
"0.55699515",
"0.55404586",
"0.55243045",
"0.5523001",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.54932857",
"0.54858834",
"0.54858834",
"0.54686546",
"0.5466782",
"0.5455471",
"0.54544896",
"0.54506034",
"0.54506034",
"0.54506034",
"0.54444975",
"0.53976864",
"0.5388608",
"0.53346413",
"0.53346413",
"0.5321938",
"0.53216475",
"0.5317694",
"0.5294449",
"0.5273338",
"0.5273338",
"0.5273338",
"0.5266106",
"0.52444315",
"0.52347475",
"0.5210481",
"0.5205253",
"0.520379",
"0.5203633",
"0.5177738",
"0.515785",
"0.5153138",
"0.5151506",
"0.5126531",
"0.5116706",
"0.5101072",
"0.5098711",
"0.5076903",
"0.5066726",
"0.50645983",
"0.5062976",
"0.50557",
"0.505355",
"0.5050953",
"0.5048672",
"0.5046941",
"0.504644",
"0.50328714",
"0.5027054",
"0.50270504",
"0.50270504",
"0.50270504",
"0.50210685",
"0.5016104",
"0.49960425",
"0.49921367",
"0.49870095",
"0.49840716",
"0.49701577",
"0.49590528",
"0.49438512",
"0.49430558",
"0.4938999",
"0.4935878",
"0.49358243",
"0.49312004",
"0.49299124",
"0.49193075",
"0.49186686",
"0.49129397",
"0.4900459",
"0.4893104"
]
| 0.55271053 | 14 |
If there are more operations than you specified for MaxItems in the request, submit another request and include the value of NextPageMarker in the value of Marker. | public String getNextPageMarker() {
return this.nextPageMarker;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void handlePaginated(IPlaceFinder finder, int limit) {\n LocalTime firstReqTime = LocalTime.now();\n findPagedResults(finder, limit, 0);\n int offset = limit;\n while(scanner.hasNextLine()) {\n String input = scanner.nextLine();\n if (ValidInput.MORE.getInput().equals(input)) {\n // checks if the current call is no later than 5 minutes of first request\n if (firstReqTime.plusMinutes(5L).isAfter(LocalTime.now())) {\n findPagedResults(finder, limit, offset);\n offset = offset + limit;\n //makes a new call if the first request is older than 5 mins\n } else {\n MessageOut.gettingNewResults();\n findPagedResults(finder, limit, 0);\n offset = limit;\n }\n } else if (ValidInput.END.getInput().equals(input)) {\n break;\n } else {\n MessageOut.notValidInput();\n }\n }\n }",
"protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"public ListOperationsResult withNextPageMarker(String nextPageMarker) {\n setNextPageMarker(nextPageMarker);\n return this;\n }",
"protected ActionForward nextPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 0 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ ++pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"private void pagination(){\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n }\n\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if (dy>0){\n LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n int lastItem = layoutManager.findLastCompletelyVisibleItemPosition(); //finds last visible item\n int currentTotalCount = layoutManager.getItemCount(); //find total number of displayed items\n\n if (mLoadingItems){\n if (currentTotalCount > previousTotal){\n mLoadingItems = false;\n previousTotal = currentTotalCount;\n }\n }\n if (!mLoadingItems && (currentTotalCount <= (lastItem +view_threshold))) {\n mLoadingItems = true;\n //Increment number of items on the list\n firstItemVisible = firstItemVisible+10;\n lastItemVisible = lastItemVisible+10;\n //Update adapter\n jsonParse();\n }\n }\n }\n });\n }",
"public static void syncNextPage(Context context, boolean isFullRequest) {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);\n int numPage = 0;\n\n // create the bundle to use in sync\n Bundle bundle = new Bundle();\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n\n // in case to fetch the next number, increment the counter\n if(!isFullRequest) {\n numPage = sharedPref.getInt(context.getString(R.string.pref_page_number_key), 0) + 1;\n }\n\n // Add the current page number to fetch\n bundle.putInt(NUMBER_PAGE_REQUEST, numPage);\n\n ContentResolver.requestSync(getSyncAccount(context),\n context.getString(R.string.content_authority), bundle);\n\n }",
"public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}",
"private void paginate() {\n List<ItemModel> old = adapter.getItems();\n List<ItemModel> New = new ArrayList<>(addList());\n CardStackCallback callback = new CardStackCallback(old, New);\n DiffUtil.DiffResult result = DiffUtil.calculateDiff(callback);\n adapter.setItems(New);\n result.dispatchUpdatesTo(adapter);\n }",
"@Override\n public void onLoadMore() {\n if (searchbeanArrayList_new.size() != 0) {\n\n\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n // remove progress item\n\n\n //add items one by one\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }\n }, 2000);\n\n }\n\n }",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"void setPageSize(DriveRequest<?> request, Integer pageSize);",
"@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void setNextPageMarker(String nextPageMarker) {\n this.nextPageMarker = nextPageMarker;\n }",
"private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }",
"private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"public void customLoadMoreDataFromApi() {\n // This method probably sends out a network request and appends new data items to your adapter. \n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n \tmakeGoogleApiCall();\n \t\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }",
"private WebSearchRequest createNextRequest() {\n\t\tWebSearchRequest _request = new WebSearchRequest(query);\n\t\t_request.setStart(BigInteger.valueOf(cacheStatus+1));\t\t\t\t\t//Yahoo API starts index with 1, not with 0\n\t\t_request.setResults(getFetchBlockSize());\n\t\treturn _request;\n\t}",
"protected void buildGetLink(SearchRequest searchRequest, ItemCollection itemCollection, int finalLimit,\n String nextToken) {\n double[] bbox = searchRequest.getBbox();\n String link = LinksConfigProps.LINK_BASE + \"?limit=\" + finalLimit;\n if (null != bbox && (bbox.length == 4 || bbox.length == 6)) {\n link += bbox == null ? Strings.EMPTY : \"&bbox=\" + bbox[0] + \",\" + bbox[1] + \",\" + bbox[2] + \",\" + bbox[3];\n }\n link += searchRequest.getDatetime() == null ? Strings.EMPTY : \"&datetime=\" + searchRequest.getDatetime();\n link += searchRequest.getFilter() == null ? Strings.EMPTY : \"&filter=\" + searchRequest.getFilter();\n link += searchRequest.getIds() == null ? Strings.EMPTY :\n \"&ids=\" + String.join(\",\", searchRequest.getIds());\n link += searchRequest.getCollections() == null ? Strings.EMPTY :\n \"&collections=\" + String.join(\",\", searchRequest.getCollections());\n\n String fieldsValue = \"\";\n if (null != searchRequest.getFields()) {\n // add include fields\n fieldsValue += searchRequest.getFields().getInclude() == null ? Strings.EMPTY :\n String.join(\",\", searchRequest.getFields().getInclude());\n\n // add exclude fields\n Set<String> excludeFields = searchRequest.getFields().getExclude();\n if (null != excludeFields) {\n // need to add the \"-\" prefix for the get parameter\n List<String> prefixedExcludeFields = new ArrayList<>();\n excludeFields.forEach(field -> prefixedExcludeFields.add(\"-\" + field));\n String excludeFieldsString = String.join(\",\", prefixedExcludeFields);\n fieldsValue += fieldsValue.isBlank() ? excludeFieldsString : \",\" + excludeFieldsString;\n }\n }\n\n if (fieldsValue != null && !fieldsValue.isBlank()) {\n link += \"&fields=\" + fieldsValue;\n }\n\n if (nextToken != null) {\n itemCollection.addLink(new Link()\n .href(link + \"&next=\" + nextToken)\n .type(StaccatoMediaType.APPLICATION_GEO_JSON_VALUE)\n .rel(\"next\"));\n }\n\n String selfLink = searchRequest.getNext() == null ? link : link + \"&next=\" + searchRequest.getNext();\n itemCollection.addLink(new Link()\n .href(selfLink)\n .method(HttpMethod.GET.toString())\n .type(StaccatoMediaType.APPLICATION_GEO_JSON_VALUE)\n .rel(\"self\"));\n\n }",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"private void loadMoreItems() {\n isLoading = true;\n\n currentPage += 1;\n\n Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);\n calls.add(findMyFeedVideosCall);\n findMyFeedVideosCall.enqueue(findMyFeedVideosNextFetchCallback);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextFeedPage(page);\n }",
"@Override\n public void run() {\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n G.i(\"YOOOHO\");\n\n G.i(\"passed threshold p: \" + page + \" activity: \" + totalItemsCount);\n if (!noMorePost){\n loadPosts(Constant.POST_REQUEST_COUNT,totalItemsCount,page, searchPhrase);\n }else\n noMorePost = false;\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextData(page);\n }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(page); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n pageNumberBeingQueried = page;\n\n /*\n * Loader call - case 2 of 3\n * We call loader methods in case our recycler view is running out of items for display\n * */\n manageLoaders();\n }",
"@Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n if (mMaxPage == 1) {\n showLastDataMessage();\n } else if (mMaxPage > 1 && page > mMaxPage) {\n showLastDataMessage();\n } else {\n mIsRefreshMode = false;\n loadData();\n }\n return true; // ONLY if more data is actually being loaded; false otherwise.\n }",
"public void incrementNumSearchRequests() {\n this.numSearchRequests.incrementAndGet();\n }",
"protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }",
"Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n notificationID = notifications.get(notifications.size()-1).getID();\n feachNotificationsFromApi(notificationID);\n }",
"private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}",
"@Override\n\t\tpublic void onLoadMore(int page, int totalItemsCount) {\n\t\t\tpresenter.loadRecordsPage(page);\n\t\t}",
"@Override\n public void onNext(T item) {\n limiter.limit(item, completeAction);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextPosts(page);\n hideProgressBar();\n }",
"public void onRequestMore() {\n buildTimeline(getLastTweetId() - 1, NO_SINCE_ID);\n }",
"public void loadNextDataFromApi(int offset) {\n // Send an API request to retrieve appropriate paginated data\n // --> Send the request including an offset value (i.e `page`) as a query parameter.\n // --> Deserialize and construct new model objects from the API response\n // --> Append the new data objects to the existing set of items inside the array of items\n // --> Notify the adapter of the new items made with `notifyItemRangeInserted()`\n PostFetch postFetch = new PostFetch(getContext(), new AppUtils.MyInterface() {\n @Override\n public void myMethod(String response) {\n if(response.equals(\"0\")){\n Toast.makeText(getContext(), \"No internet connection\", Toast.LENGTH_SHORT).show();\n }\n else if(response.equals(\"1\")){\n Toast.makeText(getContext(), \"Unable to connect to server\", Toast.LENGTH_SHORT).show();\n }\n else {\n AppUtils.addPostsToAdapter(getContext(), response, mAdapter);\n }\n }\n });\n postFetch.execute(url, Integer.valueOf(offset*10).toString(), AppUtils.PAGE_SIZE);\n }",
"private static void fetchNextPage(Context context) {\n\n /* Get pages info */\n int currentPage = PageUtils.getCurrentPage(context);\n int totalPages = PageUtils.getTotalPages(context);\n\n /* Get uri of data for current show mode */\n Uri uri;\n int showMode = MoviesPreferences.getMoviesShowMode(context);\n if (showMode == MoviesPreferences.SHOW_MODE_MOST_POPULAR) {\n uri = MoviesContract.MovieEntry.CONTENT_URI_MOST_POPULAR;\n } else {\n uri = MoviesContract.MovieEntry.CONTENT_URI_TOP_RATED;\n }\n\n /* If last update time expired, set current page to 0 and clean cache table */\n boolean isDataActual = DateUtils.isMoviesListLastUpdateActual(context);\n if (!isDataActual) {\n context.getContentResolver().delete(uri, null, null);\n currentPage = 0;\n PageUtils.setCurrentPage(context, currentPage);\n }\n\n /* If all pages already loaded, we don't need to do anything */\n if (currentPage == totalPages) {\n return;\n }\n\n URL moviesListUrl = NetworkUtils.getMoviesListUrl(context, currentPage + 1);\n ContentValues[] movieContentValues = null;\n int requestedTotalPages = 1;\n\n try {\n String response = NetworkUtils.getResponseFromHttpUrl(moviesListUrl);\n movieContentValues = TmdbJsonUtils.getMovieContentValuesFromJson(response);\n requestedTotalPages = TmdbJsonUtils.getTotalPagesFromJson(response);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n if (movieContentValues == null) {\n return;\n }\n\n int insertedRows = context.getContentResolver()\n .bulkInsert(uri, movieContentValues);\n\n if (insertedRows > 0) {\n currentPage++;\n PageUtils.setCurrentPage(context, currentPage);\n\n if (currentPage == 1) {\n PageUtils.setTotalPages(context, requestedTotalPages);\n long currentTime = System.currentTimeMillis();\n DateUtils.setMoviesListLastUpdateTime(context, currentTime);\n }\n }\n\n }",
"public OfferShiftRequestCollectionPage(@Nonnull final java.util.List<OfferShiftRequest> pageContents, @Nullable final OfferShiftRequestCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }",
"void nextPage() throws IndexOutOfBoundsException;",
"public void loadNextDataFromApi(int offset) {\n // Send an API request to retrieve appropriate paginated data\n // --> Send the request including an offset value (i.e `page`) as a query parameter.\n // --> Deserialize and construct new model objects from the API response\n // --> Append the new data objects to the existing set of items inside the array of items\n // --> Notify the adapter of the new items made with `notifyItemRangeInserted()`\n\n Toast.makeText(getActivity(), \"new data loading\", Toast.LENGTH_SHORT).show();\n\n final Integer count =Integer.parseInt(dataoffset)+10;\n dataoffset=count.toString();\n\n\n JsonObjectRequest fetchAllStores = new JsonObjectRequest(Request.Method.POST, \"http://omtii.com/mile/fetchpagegroupchat.php?mobno=\"+mobileno+\"&dataoffset=\"+count.toString(), null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n Log.d(TAG, \"more data query : \" + \"http://omtii.com/mile/fetchpagegroupchat.php?mobno=\"+mobileno+\"&dataoffset=\"+count.toString());\n\n Log.d(TAG, \"Fetch Stores: \" + response);\n showStores(response);\n //MyRecyclerView.setAdapter(adapter);\n System.err.println(\"adpter attached\");\n adapter.notifyDataSetChanged();\n System.err.println(\"data set changed attached\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Fetch Stores Error: \" + error.getMessage());\n }\n });\n ApplicationController.getInstance().addToRequestQueue(fetchAllStores);\n }",
"private void doApiCall() {\n\n if (currentPage != PAGE_START) adapter.removeLoading();\n\n // check weather is last page or not\n if (totalPage != 0) {\n adapter.addLoading();\n apiCall(currentPage);\n } else {\n isLastPage = true;\n }\n isLoading = false;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadMoreRecyclerViewData(hal[0]);\n hal[0]++;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n Log.d(\"DEBUG\", \"network continue load before count:\" + tweets.size());\n loadNextDataFromApi(page, view);\n }",
"void setMaxResults(int limit);",
"List<Item<T>> addItemsForPage(final long page);",
"public static String doPaginationResponseFormlet(HttpServletRequest request, Paginator paginator, List page) {\n request.setAttribute(\"pageRows\", page);\n return \"success\";\n }",
"protected abstract void nextRequest ();",
"protected abstract boolean sendNextRequests();",
"@Override\n public void onLoadMore() {\n MyApplacation.getmHandler().postDelayed(new Runnable() {\n @Override\n public void run() {\n pageNo++;\n getDataForService();\n }\n }, 1000);\n\n }",
"@Override\n public void onLoadMoreItems() {\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }",
"@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}",
"@Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n if (mMaxPage == 0 || mCurrentPage <= mMaxPage) {\n loadData(null, true);\n return true; // ONLY if more data is actually being loaded; false otherwise.\n } else {\n return false;\n }\n }",
"private void myjob_LoadMore_converted_PostRequest(Context mContext, String url) {\n\n loadmore.setVisibility(View.VISIBLE);\n\n HashMap<String, String> jsonParams = new HashMap<String, String>();\n jsonParams.put(\"provider_id\", provider_id);\n jsonParams.put(\"type\", \"closed\");\n jsonParams.put(\"page\", Str_Pagination);\n jsonParams.put(\"perPage\", Str_PageDateCount);\n\n System.out.println(\"--------------loadmore page-------------------\" + Str_Nextpage);\n\n System.out.println(\"--------------loadmore perpage--------------------\" + Str_PageDateCount);\n\n ServiceRequest mservicerequest = new ServiceRequest(mContext);\n\n mservicerequest.makeServiceRequest(url, Request.Method.POST, jsonParams, new ServiceRequest.ServiceListener() {\n\n @Override\n public void onCompleteListener(String response) {\n\n System.out.println(\"--------------reponse-------------------\" + response);\n Log.e(\"converted\", response);\n String Str_status = \"\", Str_totaljobs = \"\", Str_Response = \"\";\n\n try {\n loadingMore = true;\n\n JSONObject jobject = new JSONObject(response);\n Str_status = jobject.getString(\"status\");\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n JSONObject object = jobject.getJSONObject(\"response\");\n Str_Pagination = object.getString(\"next_page\");\n Str_PageDateCount = object.getString(\"perPage\");\n Str_totaljobs = object.getString(\"total_jobs\");\n\n Object check_list_object = object.get(\"jobs\");\n if (check_list_object instanceof JSONArray) {\n\n JSONArray jarry = object.getJSONArray(\"jobs\");\n if (jarry.length() > 0) {\n\n for (int i = 0; i < jarry.length(); i++) {\n JSONObject object2 = jarry.getJSONObject(i);\n MyjobConverted_Pojo pojo = new MyjobConverted_Pojo();\n pojo.setConverted_address(object2.getString(\"location\"));\n pojo.setConverted_category(object2.getString(\"category_name\"));\n pojo.setConverted_date(object2.getString(\"booking_time\"));\n pojo.setConverted_user_name(object2.getString(\"user_name\"));\n pojo.setConverted_user_image(object2.getString(\"user_image\"));\n pojo.setOrder_id(object2.getString(\"job_id\"));\n pojo.setConvertedjob_status(object2.getString(\"job_status\"));\n String address= getCompleteAddressString(Double.parseDouble(object2.getString(\"location_lat\")),Double.parseDouble(object2.getString(\"location_lng\")));\n pojo.setAddress(address);\n convertedlist.add(pojo);\n isConvertedJobAvailable = true;\n\n }\n show_progress_status = true;\n } else {\n show_progress_status = false;\n isConvertedJobAvailable = false;\n }\n } else {\n isConvertedJobAvailable = false;\n }\n\n } else {\n Str_Response = jobject.getString(\"response\");\n }\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n loadingMore = false;\n loadmore.setVisibility(View.GONE);\n\n if (show_progress_status) {\n adapter.notifyDataSetChanged();\n }\n\n } else {\n Alert(getResources().getString(R.string.server_lable_header), Str_Response);\n\n }\n if (swipeRefreshLayout.isRefreshing()) {\n swipeRefreshLayout.setRefreshing(false);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n\n }\n\n @Override\n public void onErrorListener() {\n dialog.dismiss();\n }\n });\n\n }",
"public Integer getCurrentPageSize();",
"public static String paginate(HttpServletRequest request, HttpServletResponse response) {\n List page = FastList.newInstance();\n Paginator paginator = PaginatorFactory.getPaginator(request);\n String action = UtilCommon.getParameter(request, \"action\");\n String pageNumberString = UtilCommon.getParameter(request, \"pageNumber\");\n \n if (paginator != null) {\n try {\n if (pageNumberString != null) {\n try {\n long pageNumber = Long.parseLong(pageNumberString);\n page = paginator.getPageNumber(pageNumber);\n }\n catch (NumberFormatException e) {\n Debug.logWarning(\"Failed to get page numer [\" + pageNumberString + \"] to to format error: \" + e.getMessage(), module);\n page = paginator.getCurrentPage();\n }\n }\n else if (action == null || \"getCurrentPage\".equals(action)) {\n page = paginator.getCurrentPage();\n }\n else if (\"getNextPage\".equals(action)) {\n page = paginator.getNextPage();\n }\n else if (\"getPreviousPage\".equals(action)) {\n page = paginator.getPreviousPage();\n }\n else if (\"getFirstPage\".equals(action)) {\n page = paginator.getFirstPage();\n }\n else if (\"getLastPage\".equals(action)) {\n page = paginator.getLastPage();\n }\n else {\n Debug.logWarning(\"Paginate action [\" + action + \"] not supported.\", module);\n page = paginator.getCurrentPage();\n }\n }\n catch (ListBuilderException e) {\n return doListBuilderExceptionResponse(request, response, paginator, e);\n }\n }\n return doPaginationResponse(request, response, paginator, page);\n }",
"public void incrementNumExtendedRequests() {\n this.numExtendedRequests.incrementAndGet();\n }",
"public void setNextPage(boolean value) {\n this.nextPage = value;\n }",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"public void customLoadMoreDataFromApi(int offset) {\n// Log.d(TAG, \"page = \" + offset);\n populateTimeline();\n // This method probably sends out a network request and appends new data items to your adapter.\n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n }",
"@Override\n\tpublic void process(Page page){\n\n\t CollectTemplate collectTemplate = templateService.getCollectTemplateById(templateId);\n\t String currentUrl=page.getUrl().toString();\n\t String nextUrlXpath=collectTemplate.getNextUrlXpath();\n \tString contentUrlXpath=collectTemplate.getContentUrlXpath();\n \tString listUrlRegex=collectTemplate.getListUrlRegex();\n \tString contentUrlRegex=collectTemplate.getContentUrlRegex();\n \tList<CollectTemplateField> fields=collectTemplate.getFields();\n \ttry {\n\t \t\t\n\t \tHtml currentHtml= page.getHtml();\n\n\t\t\t//判断是否是列表页\n\t if (currentUrl.matches(listUrlRegex)) {\n\n\t\t\t\t//处理列表页\n\t\t\t\tString nextPageUrl=\"\";\n\t\t\t\ttry{\n\t\t\t\t\tnextPageUrl=currentHtml.xpath(nextUrlXpath).toString();\n\t\t\t\t\tif (nextPageUrl==null||StringUtils.isEmpty(nextPageUrl)){\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e){\n\t\t\t\t\tXpath2Selector xpath2Selector = new Xpath2Selector(nextUrlXpath);\n\t\t\t\t\tnextPageUrl = xpath2Selector.select(page.getRawText());\n\n\t\t\t\t\tif (nextPageUrl!=null&&nextPageUrl.startsWith(\"/\")){\n\t\t\t\t\t\tnextPageUrl = \"http://\"+site.getDomain()+nextPageUrl;\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t \tif (StringUtils.isNotEmpty(nextPageUrl)) {\n\n\t \t\tRequest request=new Request();\n\t \t\trequest.setUrl(nextPageUrl);\n\t \t\trequest.setPriority(-1);\n\t \t\t\n\t \t\tpage.addTargetRequest(request);\n\n\t \t\tlogService.info(projectId,\"get the next page link \"+nextPageUrl+\" and add it to the queue\");\n\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get the next page link\");\n\n\t\t\t\t}\n\t \tList<String> detailPagesUrl;\n\t \ttry{\n\t\t\t\t\tdetailPagesUrl = currentHtml.xpath(contentUrlXpath).all();\n\n\t\t\t\t}catch (Exception e){\n\n\t\t\t\t\tXpath2Selector xpath2Selector2 = new Xpath2Selector(contentUrlXpath);\n\t\t\t\t\tdetailPagesUrl = xpath2Selector2.selectList(currentHtml.getDocument().text());\n\t\t\t\t}\n\n\n\n\t \tif (detailPagesUrl!=null&&detailPagesUrl.size()!=0) {\n\t\t\t\t\t//添加详情页\n\t\t\t\t\tpage.addTargetRequests(detailPagesUrl, 1);\n\n\t\t\t\t\tlogService.info(projectId,\"get \"+detailPagesUrl.size()+\" detail pages\");\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get detail page\");\n\n\t\t\t\t}\n\t\t\t}else if (StringUtils.isEmpty(contentUrlRegex)||currentUrl.matches(contentUrlRegex)) {\n\t \t//处理详情页\n\t\t\t\tcontentPageProcessService.setProjectId(projectId);\n\t\t\t\tcontentPageProcessService.progressContentPage(page,fields);\n\t\t\t}\n\t \t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t \n\t }",
"@Override\r\n\tpublic ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tint pageSize = 10; // 한 페이지 당 출력될 글의 개수 지정\r\n\t\t\r\n\t\tString pageNum = request.getParameter(\"pageNum\"); // 페이지 번호를 받아온다.\r\n\t\tif(pageNum == null) {\r\n\t\t\tpageNum = \"1\"; // 페이지 번호를 눌러서 들어오지 않으면 게시판 1page를 보여준다.\r\n\t\t}\r\n\t\t\r\n\t\t// 페이지 번호를 사용해서 페이징 처리 시 연산을 수행할 것이므로\r\n\t\t// 페이지 번호값을 정수타입으로 변경\r\n\t\tint currentPage = Integer.parseInt(pageNum);\r\n\t\t\r\n\t\t// 해당 페이지에 출력되는 글들 중 가장 먼저 출력되는 글의 레코드 번호\r\n\t\tint startRow = (currentPage - 1) * pageSize + 1;\r\n\t\t// 현재 페이지 : 1\r\n\t\t// (1 - 1) * pageSize + 1 ---------> 1\r\n\t\t// 현재 페이지 : 2\r\n\t\t// (2 - 1) * pageSize + 1 ---------> 11\r\n\t\t\r\n\t\tint count = 0;\r\n\t\t// count : 총 글의 개수를 저장할 변수\r\n\t\tint number = 0;\r\n\t\t// number : 해당 페이지에 가장 먼저 출력되는 글의 번호\r\n\t\t\r\n\t\tList<ReservationInfo> reservationList = null; // 글 정보를 저장할 리스트\r\n\t\t// 해당 페이지에 출력되는 글 목록을 저장할 컬렉션\r\n\t\t\r\n\t\t// 비지니스 로직 처리를 위해 서비스 객체 생성\r\n\t\tReservationListService reservationListService = new ReservationListService();\r\n\t\t\r\n\t\tcount = reservationListService.getReservationCount(); // 총 예약의 개수를 가져온다.\r\n\t\tif(count > 0) { \r\n\t\t\t// 예약이 하나라도 있으면 리스팅할 예약 정보 얻어오기\r\n\t\t\treservationList = reservationListService.getReservationList(startRow, pageSize); // 해당 페이지의 레코드 10개씩 가져온다.\r\n\t\t}\r\n\t\t\r\n\t\t// 전체 페이지에서 현재페이지 -1을 해서 pageSize를 곱한다.\r\n\t\tnumber = count - (currentPage - 1) * pageSize;\r\n\t\t// 총 글의 개수 : 134\r\n\t\t// 현재 페이지 : 1\r\n\t\t// 134 - (1 - 1) * 10 -------> 134\r\n\t\t\r\n\t\tint startPage = 0;\r\n\t\tint pageCount = 0;\r\n\t\tint endPage = 0;\r\n\t\t\r\n\t\tif(count > 0) { // 글이 하나라도 존재하면...\r\n\t\t\tpageCount = count / pageSize + (count % pageSize == 0 ? 0 : 1);\r\n\t\t\t// 총 페이지 개수를 구함.\r\n\t\t\t// ex) 총 글의 개수 13개이면 페이지는 2개 필요..\r\n\t\r\n\t\t\tstartPage = ((currentPage -1) / pageSize) * pageSize + 1;\r\n\t\t\t// 현재 페이지 그룹의 첫번째 페이지를 구함.\r\n\t\t\t// [1][2][3][4][5][6][7]...[10] -------> 처음 페이지 그룹\r\n\t\t\t// 다음 페이지 스타트 페이지 : [11][12][13]....[20]\r\n\t\t\t\t\t\r\n\t\t\tint pageBlock = 10;\r\n\t\t\tendPage = startPage + pageBlock - 1;\r\n\t\t\t\r\n\t\t\t// 마지막 페이지 그룹인 경우..\r\n\t\t\tif(endPage > pageCount) endPage = pageCount;\r\n\t\t}\r\n\t\t\r\n\t\t// 포워딩 하기 전, 가져 온 글 공유\r\n\t\trequest.setAttribute(\"reservationList\", reservationList);\r\n\t\tPageInfo pageInfo = new PageInfo(); // 페이지에 관한 정보를 처리하는 객체 생성\r\n\t\tpageInfo.setCount(count);\r\n\t\tpageInfo.setCurrentPage(currentPage);\r\n\t\tpageInfo.setEndPage(endPage);\r\n\t\tpageInfo.setNumber(number);\r\n\t\tpageInfo.setPageCount(pageCount);\r\n\t\tpageInfo.setStartPage(startPage);\r\n\t\t\r\n\t\trequest.setAttribute(\"pageInfo\", pageInfo);\r\n\t\tActionForward forward = new ActionForward();\r\n\t\tforward.setUrl(\"/pc/reservationList.jsp\"); // list.jsp 페이지 포워딩\r\n\t\t\r\n\t\treturn forward;\r\n\t}",
"public void incrementActiveRequests() \n {\n ++requests;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n System.out.println(\"load more\" + totalItemsCount);\n loadMore(totalItemsCount);\n }",
"private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }",
"@Override\n\tpublic void onLoadMore() {\n\t\tif (onRefresh_number) {\n\t\t\tpage = page + 1;\n\n\t\t\tonRefresh_number = false;\n\t\t\tgetData();\n\n\t\t\t// if (Tools.isConnect(getApplicationContext())) {\n\t\t\t// onRefresh_number = false;\n\t\t\t// getData();\n\t\t\t// } else {\n\t\t\t// onRefresh_number = true;\n\t\t\t// handler.sendEmptyMessage(2);\n\t\t\t// }\n\t\t} else {\n\t\t\thandler.sendEmptyMessage(3);\n\t\t}\n\t}",
"@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}",
"protected ActionForward currentPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 1 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\" + pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}",
"@Override\n\tpublic void onLoadMore() {\n\t\tLog.d(\"load\", \"\");\n\t\tcurrentPage++;\n\t\tmodel.getPostsByType(userId, currentPage, method, postListiner);\n\t}"
]
| [
"0.6260538",
"0.58937865",
"0.5869566",
"0.5863278",
"0.58600926",
"0.5700929",
"0.5674525",
"0.5656012",
"0.5648321",
"0.56405",
"0.5606181",
"0.5606181",
"0.55699515",
"0.55404586",
"0.55271053",
"0.55243045",
"0.5523001",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.5517244",
"0.54932857",
"0.54858834",
"0.54858834",
"0.54686546",
"0.5466782",
"0.5455471",
"0.54544896",
"0.54506034",
"0.54506034",
"0.54506034",
"0.54444975",
"0.53976864",
"0.5388608",
"0.53346413",
"0.53346413",
"0.5321938",
"0.53216475",
"0.5317694",
"0.5294449",
"0.5273338",
"0.5273338",
"0.5273338",
"0.5266106",
"0.52444315",
"0.52347475",
"0.5210481",
"0.5205253",
"0.520379",
"0.5203633",
"0.5177738",
"0.515785",
"0.5153138",
"0.5151506",
"0.5126531",
"0.5116706",
"0.5101072",
"0.5098711",
"0.5076903",
"0.5066726",
"0.50645983",
"0.5062976",
"0.50557",
"0.505355",
"0.5050953",
"0.5048672",
"0.5046941",
"0.504644",
"0.50328714",
"0.5027054",
"0.50270504",
"0.50270504",
"0.50270504",
"0.50210685",
"0.49960425",
"0.49921367",
"0.49870095",
"0.49840716",
"0.49701577",
"0.49590528",
"0.49438512",
"0.49430558",
"0.4938999",
"0.4935878",
"0.49358243",
"0.49312004",
"0.49299124",
"0.49193075",
"0.49186686",
"0.49129397",
"0.4900459",
"0.4893104"
]
| 0.5016104 | 82 |
If there are more operations than you specified for MaxItems in the request, submit another request and include the value of NextPageMarker in the value of Marker. | public ListOperationsResult withNextPageMarker(String nextPageMarker) {
setNextPageMarker(nextPageMarker);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void handlePaginated(IPlaceFinder finder, int limit) {\n LocalTime firstReqTime = LocalTime.now();\n findPagedResults(finder, limit, 0);\n int offset = limit;\n while(scanner.hasNextLine()) {\n String input = scanner.nextLine();\n if (ValidInput.MORE.getInput().equals(input)) {\n // checks if the current call is no later than 5 minutes of first request\n if (firstReqTime.plusMinutes(5L).isAfter(LocalTime.now())) {\n findPagedResults(finder, limit, offset);\n offset = offset + limit;\n //makes a new call if the first request is older than 5 mins\n } else {\n MessageOut.gettingNewResults();\n findPagedResults(finder, limit, 0);\n offset = limit;\n }\n } else if (ValidInput.END.getInput().equals(input)) {\n break;\n } else {\n MessageOut.notValidInput();\n }\n }\n }",
"protected abstract void onRequestPage(boolean isRequestNext,int fromIndex,int toIndex,float x,float y);",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"protected ActionForward nextPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 0 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\"+ ++pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"private void pagination(){\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n }\n\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n if (dy>0){\n LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n int lastItem = layoutManager.findLastCompletelyVisibleItemPosition(); //finds last visible item\n int currentTotalCount = layoutManager.getItemCount(); //find total number of displayed items\n\n if (mLoadingItems){\n if (currentTotalCount > previousTotal){\n mLoadingItems = false;\n previousTotal = currentTotalCount;\n }\n }\n if (!mLoadingItems && (currentTotalCount <= (lastItem +view_threshold))) {\n mLoadingItems = true;\n //Increment number of items on the list\n firstItemVisible = firstItemVisible+10;\n lastItemVisible = lastItemVisible+10;\n //Update adapter\n jsonParse();\n }\n }\n }\n });\n }",
"public static void syncNextPage(Context context, boolean isFullRequest) {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);\n int numPage = 0;\n\n // create the bundle to use in sync\n Bundle bundle = new Bundle();\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n\n // in case to fetch the next number, increment the counter\n if(!isFullRequest) {\n numPage = sharedPref.getInt(context.getString(R.string.pref_page_number_key), 0) + 1;\n }\n\n // Add the current page number to fetch\n bundle.putInt(NUMBER_PAGE_REQUEST, numPage);\n\n ContentResolver.requestSync(getSyncAccount(context),\n context.getString(R.string.content_authority), bundle);\n\n }",
"public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}",
"private void paginate() {\n List<ItemModel> old = adapter.getItems();\n List<ItemModel> New = new ArrayList<>(addList());\n CardStackCallback callback = new CardStackCallback(old, New);\n DiffUtil.DiffResult result = DiffUtil.calculateDiff(callback);\n adapter.setItems(New);\n result.dispatchUpdatesTo(adapter);\n }",
"@Override\n public void onLoadMore() {\n if (searchbeanArrayList_new.size() != 0) {\n\n\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n // remove progress item\n\n\n //add items one by one\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }\n }, 2000);\n\n }\n\n }",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"public abstract void onLoadMore(int page, int totalItemsCount);",
"void setPageSize(DriveRequest<?> request, Integer pageSize);",
"@Override\n\tpublic void onLoadMore() {\n\t\tpage++;\n\t\texecutorService.submit(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void setNextPageMarker(String nextPageMarker) {\n this.nextPageMarker = nextPageMarker;\n }",
"private void pagination()\n {\n if (value==0)\n {\n aBoolean=true;\n setAdapter(postModels);\n value=1;\n count=count+10;\n }\n else if (value==1)\n {\n if (count<page_count)\n {\n aBoolean=true;\n count=count+10;\n temp_list.addAll(postModels);\n adapter.notifyDataSetChanged();\n }\n }\n }",
"private void nextPage()\n {\n if(currentPage + 1 <= maxPage)\n {\n prevPageButton.setEnabled(true);\n if(currentPage + 2 > maxPage)\n nextPageButton.setEnabled(false);\n \n paginate(++currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"java.lang.String getNextPageToken();",
"public void customLoadMoreDataFromApi() {\n // This method probably sends out a network request and appends new data items to your adapter. \n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n \tmakeGoogleApiCall();\n \t\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n if(next_url != null) {\n curent_page = page;\n loadMore(page);\n }\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"private WebSearchRequest createNextRequest() {\n\t\tWebSearchRequest _request = new WebSearchRequest(query);\n\t\t_request.setStart(BigInteger.valueOf(cacheStatus+1));\t\t\t\t\t//Yahoo API starts index with 1, not with 0\n\t\t_request.setResults(getFetchBlockSize());\n\t\treturn _request;\n\t}",
"private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }",
"protected void buildGetLink(SearchRequest searchRequest, ItemCollection itemCollection, int finalLimit,\n String nextToken) {\n double[] bbox = searchRequest.getBbox();\n String link = LinksConfigProps.LINK_BASE + \"?limit=\" + finalLimit;\n if (null != bbox && (bbox.length == 4 || bbox.length == 6)) {\n link += bbox == null ? Strings.EMPTY : \"&bbox=\" + bbox[0] + \",\" + bbox[1] + \",\" + bbox[2] + \",\" + bbox[3];\n }\n link += searchRequest.getDatetime() == null ? Strings.EMPTY : \"&datetime=\" + searchRequest.getDatetime();\n link += searchRequest.getFilter() == null ? Strings.EMPTY : \"&filter=\" + searchRequest.getFilter();\n link += searchRequest.getIds() == null ? Strings.EMPTY :\n \"&ids=\" + String.join(\",\", searchRequest.getIds());\n link += searchRequest.getCollections() == null ? Strings.EMPTY :\n \"&collections=\" + String.join(\",\", searchRequest.getCollections());\n\n String fieldsValue = \"\";\n if (null != searchRequest.getFields()) {\n // add include fields\n fieldsValue += searchRequest.getFields().getInclude() == null ? Strings.EMPTY :\n String.join(\",\", searchRequest.getFields().getInclude());\n\n // add exclude fields\n Set<String> excludeFields = searchRequest.getFields().getExclude();\n if (null != excludeFields) {\n // need to add the \"-\" prefix for the get parameter\n List<String> prefixedExcludeFields = new ArrayList<>();\n excludeFields.forEach(field -> prefixedExcludeFields.add(\"-\" + field));\n String excludeFieldsString = String.join(\",\", prefixedExcludeFields);\n fieldsValue += fieldsValue.isBlank() ? excludeFieldsString : \",\" + excludeFieldsString;\n }\n }\n\n if (fieldsValue != null && !fieldsValue.isBlank()) {\n link += \"&fields=\" + fieldsValue;\n }\n\n if (nextToken != null) {\n itemCollection.addLink(new Link()\n .href(link + \"&next=\" + nextToken)\n .type(StaccatoMediaType.APPLICATION_GEO_JSON_VALUE)\n .rel(\"next\"));\n }\n\n String selfLink = searchRequest.getNext() == null ? link : link + \"&next=\" + searchRequest.getNext();\n itemCollection.addLink(new Link()\n .href(selfLink)\n .method(HttpMethod.GET.toString())\n .type(StaccatoMediaType.APPLICATION_GEO_JSON_VALUE)\n .rel(\"self\"));\n\n }",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextDataFromApi(page);\n }",
"private void loadMoreItems() {\n isLoading = true;\n\n currentPage += 1;\n\n Call findMyFeedVideosCall = vimeoService.findMyFeedVideos(currentPage, PAGE_SIZE);\n calls.add(findMyFeedVideosCall);\n findMyFeedVideosCall.enqueue(findMyFeedVideosNextFetchCallback);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextFeedPage(page);\n }",
"@Override\n public void run() {\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page);\n // or customLoadMoreDataFromApi(totalItemsCount);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n G.i(\"YOOOHO\");\n\n G.i(\"passed threshold p: \" + page + \" activity: \" + totalItemsCount);\n if (!noMorePost){\n loadPosts(Constant.POST_REQUEST_COUNT,totalItemsCount,page, searchPhrase);\n }else\n noMorePost = false;\n\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextData(page);\n }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"@Override\n\t public void onLoadMore(int page, int totalItemsCount) {\n\t customLoadMoreDataFromApi(page); \n // or customLoadMoreDataFromApi(totalItemsCount); \n\t }",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n pageNumberBeingQueried = page;\n\n /*\n * Loader call - case 2 of 3\n * We call loader methods in case our recycler view is running out of items for display\n * */\n manageLoaders();\n }",
"@Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n if (mMaxPage == 1) {\n showLastDataMessage();\n } else if (mMaxPage > 1 && page > mMaxPage) {\n showLastDataMessage();\n } else {\n mIsRefreshMode = false;\n loadData();\n }\n return true; // ONLY if more data is actually being loaded; false otherwise.\n }",
"public void incrementNumSearchRequests() {\n this.numSearchRequests.incrementAndGet();\n }",
"protected void loadNextPage(){\n\n if(!isShowingSearchedVotes) {\n setLoadingMoreItems(true);\n RikdagskollenApp.getInstance().getRiksdagenAPIManager().getVotes(new VoteCallback() {\n\n @Override\n public void onVotesFetched(List<Vote> votes) {\n setShowLoadingView(false);\n voteList.addAll(votes);\n getAdapter().notifyDataSetChanged();\n setLoadingMoreItems(false);\n }\n\n @Override\n public void onFail(VolleyError error) {\n setLoadingMoreItems(false);\n decrementPage();\n }\n }, getPageToLoad());\n\n incrementPage();\n }\n }",
"Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);",
"private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n notificationID = notifications.get(notifications.size()-1).getID();\n feachNotificationsFromApi(notificationID);\n }",
"@Override\n\t\tpublic void onLoadMore(int page, int totalItemsCount) {\n\t\t\tpresenter.loadRecordsPage(page);\n\t\t}",
"@Override\n public void onNext(T item) {\n limiter.limit(item, completeAction);\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadNextPosts(page);\n hideProgressBar();\n }",
"public void onRequestMore() {\n buildTimeline(getLastTweetId() - 1, NO_SINCE_ID);\n }",
"public void loadNextDataFromApi(int offset) {\n // Send an API request to retrieve appropriate paginated data\n // --> Send the request including an offset value (i.e `page`) as a query parameter.\n // --> Deserialize and construct new model objects from the API response\n // --> Append the new data objects to the existing set of items inside the array of items\n // --> Notify the adapter of the new items made with `notifyItemRangeInserted()`\n PostFetch postFetch = new PostFetch(getContext(), new AppUtils.MyInterface() {\n @Override\n public void myMethod(String response) {\n if(response.equals(\"0\")){\n Toast.makeText(getContext(), \"No internet connection\", Toast.LENGTH_SHORT).show();\n }\n else if(response.equals(\"1\")){\n Toast.makeText(getContext(), \"Unable to connect to server\", Toast.LENGTH_SHORT).show();\n }\n else {\n AppUtils.addPostsToAdapter(getContext(), response, mAdapter);\n }\n }\n });\n postFetch.execute(url, Integer.valueOf(offset*10).toString(), AppUtils.PAGE_SIZE);\n }",
"private static void fetchNextPage(Context context) {\n\n /* Get pages info */\n int currentPage = PageUtils.getCurrentPage(context);\n int totalPages = PageUtils.getTotalPages(context);\n\n /* Get uri of data for current show mode */\n Uri uri;\n int showMode = MoviesPreferences.getMoviesShowMode(context);\n if (showMode == MoviesPreferences.SHOW_MODE_MOST_POPULAR) {\n uri = MoviesContract.MovieEntry.CONTENT_URI_MOST_POPULAR;\n } else {\n uri = MoviesContract.MovieEntry.CONTENT_URI_TOP_RATED;\n }\n\n /* If last update time expired, set current page to 0 and clean cache table */\n boolean isDataActual = DateUtils.isMoviesListLastUpdateActual(context);\n if (!isDataActual) {\n context.getContentResolver().delete(uri, null, null);\n currentPage = 0;\n PageUtils.setCurrentPage(context, currentPage);\n }\n\n /* If all pages already loaded, we don't need to do anything */\n if (currentPage == totalPages) {\n return;\n }\n\n URL moviesListUrl = NetworkUtils.getMoviesListUrl(context, currentPage + 1);\n ContentValues[] movieContentValues = null;\n int requestedTotalPages = 1;\n\n try {\n String response = NetworkUtils.getResponseFromHttpUrl(moviesListUrl);\n movieContentValues = TmdbJsonUtils.getMovieContentValuesFromJson(response);\n requestedTotalPages = TmdbJsonUtils.getTotalPagesFromJson(response);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n if (movieContentValues == null) {\n return;\n }\n\n int insertedRows = context.getContentResolver()\n .bulkInsert(uri, movieContentValues);\n\n if (insertedRows > 0) {\n currentPage++;\n PageUtils.setCurrentPage(context, currentPage);\n\n if (currentPage == 1) {\n PageUtils.setTotalPages(context, requestedTotalPages);\n long currentTime = System.currentTimeMillis();\n DateUtils.setMoviesListLastUpdateTime(context, currentTime);\n }\n }\n\n }",
"public OfferShiftRequestCollectionPage(@Nonnull final java.util.List<OfferShiftRequest> pageContents, @Nullable final OfferShiftRequestCollectionRequestBuilder nextRequestBuilder) {\n super(pageContents, nextRequestBuilder);\n }",
"void nextPage() throws IndexOutOfBoundsException;",
"public void loadNextDataFromApi(int offset) {\n // Send an API request to retrieve appropriate paginated data\n // --> Send the request including an offset value (i.e `page`) as a query parameter.\n // --> Deserialize and construct new model objects from the API response\n // --> Append the new data objects to the existing set of items inside the array of items\n // --> Notify the adapter of the new items made with `notifyItemRangeInserted()`\n\n Toast.makeText(getActivity(), \"new data loading\", Toast.LENGTH_SHORT).show();\n\n final Integer count =Integer.parseInt(dataoffset)+10;\n dataoffset=count.toString();\n\n\n JsonObjectRequest fetchAllStores = new JsonObjectRequest(Request.Method.POST, \"http://omtii.com/mile/fetchpagegroupchat.php?mobno=\"+mobileno+\"&dataoffset=\"+count.toString(), null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n Log.d(TAG, \"more data query : \" + \"http://omtii.com/mile/fetchpagegroupchat.php?mobno=\"+mobileno+\"&dataoffset=\"+count.toString());\n\n Log.d(TAG, \"Fetch Stores: \" + response);\n showStores(response);\n //MyRecyclerView.setAdapter(adapter);\n System.err.println(\"adpter attached\");\n adapter.notifyDataSetChanged();\n System.err.println(\"data set changed attached\");\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Fetch Stores Error: \" + error.getMessage());\n }\n });\n ApplicationController.getInstance().addToRequestQueue(fetchAllStores);\n }",
"private void doApiCall() {\n\n if (currentPage != PAGE_START) adapter.removeLoading();\n\n // check weather is last page or not\n if (totalPage != 0) {\n adapter.addLoading();\n apiCall(currentPage);\n } else {\n isLastPage = true;\n }\n isLoading = false;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n loadMoreRecyclerViewData(hal[0]);\n hal[0]++;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n Log.d(\"DEBUG\", \"network continue load before count:\" + tweets.size());\n loadNextDataFromApi(page, view);\n }",
"void setMaxResults(int limit);",
"List<Item<T>> addItemsForPage(final long page);",
"public static String doPaginationResponseFormlet(HttpServletRequest request, Paginator paginator, List page) {\n request.setAttribute(\"pageRows\", page);\n return \"success\";\n }",
"protected abstract void nextRequest ();",
"@Override\n public void onLoadMore() {\n MyApplacation.getmHandler().postDelayed(new Runnable() {\n @Override\n public void run() {\n pageNo++;\n getDataForService();\n }\n }, 1000);\n\n }",
"protected abstract boolean sendNextRequests();",
"@Override\n public void onLoadMoreItems() {\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"com.google.protobuf.ByteString getNextPageTokenBytes();",
"@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}",
"@Override\n\t\tpublic void onLoadMore() {\n\t\t\tpageIndex++;\n\t\t\tloadInfo(pageIndex, 1);\n\t\t\tif (DzqcStu.isDebug) {\n\t\t\t\tLog.i(\"pageIndex------\", pageIndex+\"\");\n\t\t\t}\n\t\t}",
"public String getNextPageMarker() {\n return this.nextPageMarker;\n }",
"@Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n if (mMaxPage == 0 || mCurrentPage <= mMaxPage) {\n loadData(null, true);\n return true; // ONLY if more data is actually being loaded; false otherwise.\n } else {\n return false;\n }\n }",
"private void myjob_LoadMore_converted_PostRequest(Context mContext, String url) {\n\n loadmore.setVisibility(View.VISIBLE);\n\n HashMap<String, String> jsonParams = new HashMap<String, String>();\n jsonParams.put(\"provider_id\", provider_id);\n jsonParams.put(\"type\", \"closed\");\n jsonParams.put(\"page\", Str_Pagination);\n jsonParams.put(\"perPage\", Str_PageDateCount);\n\n System.out.println(\"--------------loadmore page-------------------\" + Str_Nextpage);\n\n System.out.println(\"--------------loadmore perpage--------------------\" + Str_PageDateCount);\n\n ServiceRequest mservicerequest = new ServiceRequest(mContext);\n\n mservicerequest.makeServiceRequest(url, Request.Method.POST, jsonParams, new ServiceRequest.ServiceListener() {\n\n @Override\n public void onCompleteListener(String response) {\n\n System.out.println(\"--------------reponse-------------------\" + response);\n Log.e(\"converted\", response);\n String Str_status = \"\", Str_totaljobs = \"\", Str_Response = \"\";\n\n try {\n loadingMore = true;\n\n JSONObject jobject = new JSONObject(response);\n Str_status = jobject.getString(\"status\");\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n JSONObject object = jobject.getJSONObject(\"response\");\n Str_Pagination = object.getString(\"next_page\");\n Str_PageDateCount = object.getString(\"perPage\");\n Str_totaljobs = object.getString(\"total_jobs\");\n\n Object check_list_object = object.get(\"jobs\");\n if (check_list_object instanceof JSONArray) {\n\n JSONArray jarry = object.getJSONArray(\"jobs\");\n if (jarry.length() > 0) {\n\n for (int i = 0; i < jarry.length(); i++) {\n JSONObject object2 = jarry.getJSONObject(i);\n MyjobConverted_Pojo pojo = new MyjobConverted_Pojo();\n pojo.setConverted_address(object2.getString(\"location\"));\n pojo.setConverted_category(object2.getString(\"category_name\"));\n pojo.setConverted_date(object2.getString(\"booking_time\"));\n pojo.setConverted_user_name(object2.getString(\"user_name\"));\n pojo.setConverted_user_image(object2.getString(\"user_image\"));\n pojo.setOrder_id(object2.getString(\"job_id\"));\n pojo.setConvertedjob_status(object2.getString(\"job_status\"));\n String address= getCompleteAddressString(Double.parseDouble(object2.getString(\"location_lat\")),Double.parseDouble(object2.getString(\"location_lng\")));\n pojo.setAddress(address);\n convertedlist.add(pojo);\n isConvertedJobAvailable = true;\n\n }\n show_progress_status = true;\n } else {\n show_progress_status = false;\n isConvertedJobAvailable = false;\n }\n } else {\n isConvertedJobAvailable = false;\n }\n\n } else {\n Str_Response = jobject.getString(\"response\");\n }\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n loadingMore = false;\n loadmore.setVisibility(View.GONE);\n\n if (show_progress_status) {\n adapter.notifyDataSetChanged();\n }\n\n } else {\n Alert(getResources().getString(R.string.server_lable_header), Str_Response);\n\n }\n if (swipeRefreshLayout.isRefreshing()) {\n swipeRefreshLayout.setRefreshing(false);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n\n }\n\n @Override\n public void onErrorListener() {\n dialog.dismiss();\n }\n });\n\n }",
"public Integer getCurrentPageSize();",
"public static String paginate(HttpServletRequest request, HttpServletResponse response) {\n List page = FastList.newInstance();\n Paginator paginator = PaginatorFactory.getPaginator(request);\n String action = UtilCommon.getParameter(request, \"action\");\n String pageNumberString = UtilCommon.getParameter(request, \"pageNumber\");\n \n if (paginator != null) {\n try {\n if (pageNumberString != null) {\n try {\n long pageNumber = Long.parseLong(pageNumberString);\n page = paginator.getPageNumber(pageNumber);\n }\n catch (NumberFormatException e) {\n Debug.logWarning(\"Failed to get page numer [\" + pageNumberString + \"] to to format error: \" + e.getMessage(), module);\n page = paginator.getCurrentPage();\n }\n }\n else if (action == null || \"getCurrentPage\".equals(action)) {\n page = paginator.getCurrentPage();\n }\n else if (\"getNextPage\".equals(action)) {\n page = paginator.getNextPage();\n }\n else if (\"getPreviousPage\".equals(action)) {\n page = paginator.getPreviousPage();\n }\n else if (\"getFirstPage\".equals(action)) {\n page = paginator.getFirstPage();\n }\n else if (\"getLastPage\".equals(action)) {\n page = paginator.getLastPage();\n }\n else {\n Debug.logWarning(\"Paginate action [\" + action + \"] not supported.\", module);\n page = paginator.getCurrentPage();\n }\n }\n catch (ListBuilderException e) {\n return doListBuilderExceptionResponse(request, response, paginator, e);\n }\n }\n return doPaginationResponse(request, response, paginator, page);\n }",
"public void incrementNumExtendedRequests() {\n this.numExtendedRequests.incrementAndGet();\n }",
"public void setNextPage(boolean value) {\n this.nextPage = value;\n }",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"public void customLoadMoreDataFromApi(int offset) {\n// Log.d(TAG, \"page = \" + offset);\n populateTimeline();\n // This method probably sends out a network request and appends new data items to your adapter.\n // Use the offset value and add it as a parameter to your API request to retrieve paginated data.\n // Deserialize API response and then construct new objects to append to the adapter\n }",
"@Override\n\tpublic void process(Page page){\n\n\t CollectTemplate collectTemplate = templateService.getCollectTemplateById(templateId);\n\t String currentUrl=page.getUrl().toString();\n\t String nextUrlXpath=collectTemplate.getNextUrlXpath();\n \tString contentUrlXpath=collectTemplate.getContentUrlXpath();\n \tString listUrlRegex=collectTemplate.getListUrlRegex();\n \tString contentUrlRegex=collectTemplate.getContentUrlRegex();\n \tList<CollectTemplateField> fields=collectTemplate.getFields();\n \ttry {\n\t \t\t\n\t \tHtml currentHtml= page.getHtml();\n\n\t\t\t//判断是否是列表页\n\t if (currentUrl.matches(listUrlRegex)) {\n\n\t\t\t\t//处理列表页\n\t\t\t\tString nextPageUrl=\"\";\n\t\t\t\ttry{\n\t\t\t\t\tnextPageUrl=currentHtml.xpath(nextUrlXpath).toString();\n\t\t\t\t\tif (nextPageUrl==null||StringUtils.isEmpty(nextPageUrl)){\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e){\n\t\t\t\t\tXpath2Selector xpath2Selector = new Xpath2Selector(nextUrlXpath);\n\t\t\t\t\tnextPageUrl = xpath2Selector.select(page.getRawText());\n\n\t\t\t\t\tif (nextPageUrl!=null&&nextPageUrl.startsWith(\"/\")){\n\t\t\t\t\t\tnextPageUrl = \"http://\"+site.getDomain()+nextPageUrl;\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t \tif (StringUtils.isNotEmpty(nextPageUrl)) {\n\n\t \t\tRequest request=new Request();\n\t \t\trequest.setUrl(nextPageUrl);\n\t \t\trequest.setPriority(-1);\n\t \t\t\n\t \t\tpage.addTargetRequest(request);\n\n\t \t\tlogService.info(projectId,\"get the next page link \"+nextPageUrl+\" and add it to the queue\");\n\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get the next page link\");\n\n\t\t\t\t}\n\t \tList<String> detailPagesUrl;\n\t \ttry{\n\t\t\t\t\tdetailPagesUrl = currentHtml.xpath(contentUrlXpath).all();\n\n\t\t\t\t}catch (Exception e){\n\n\t\t\t\t\tXpath2Selector xpath2Selector2 = new Xpath2Selector(contentUrlXpath);\n\t\t\t\t\tdetailPagesUrl = xpath2Selector2.selectList(currentHtml.getDocument().text());\n\t\t\t\t}\n\n\n\n\t \tif (detailPagesUrl!=null&&detailPagesUrl.size()!=0) {\n\t\t\t\t\t//添加详情页\n\t\t\t\t\tpage.addTargetRequests(detailPagesUrl, 1);\n\n\t\t\t\t\tlogService.info(projectId,\"get \"+detailPagesUrl.size()+\" detail pages\");\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get detail page\");\n\n\t\t\t\t}\n\t\t\t}else if (StringUtils.isEmpty(contentUrlRegex)||currentUrl.matches(contentUrlRegex)) {\n\t \t//处理详情页\n\t\t\t\tcontentPageProcessService.setProjectId(projectId);\n\t\t\t\tcontentPageProcessService.progressContentPage(page,fields);\n\t\t\t}\n\t \t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t \n\t }",
"@Override\r\n\tpublic ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tint pageSize = 10; // 한 페이지 당 출력될 글의 개수 지정\r\n\t\t\r\n\t\tString pageNum = request.getParameter(\"pageNum\"); // 페이지 번호를 받아온다.\r\n\t\tif(pageNum == null) {\r\n\t\t\tpageNum = \"1\"; // 페이지 번호를 눌러서 들어오지 않으면 게시판 1page를 보여준다.\r\n\t\t}\r\n\t\t\r\n\t\t// 페이지 번호를 사용해서 페이징 처리 시 연산을 수행할 것이므로\r\n\t\t// 페이지 번호값을 정수타입으로 변경\r\n\t\tint currentPage = Integer.parseInt(pageNum);\r\n\t\t\r\n\t\t// 해당 페이지에 출력되는 글들 중 가장 먼저 출력되는 글의 레코드 번호\r\n\t\tint startRow = (currentPage - 1) * pageSize + 1;\r\n\t\t// 현재 페이지 : 1\r\n\t\t// (1 - 1) * pageSize + 1 ---------> 1\r\n\t\t// 현재 페이지 : 2\r\n\t\t// (2 - 1) * pageSize + 1 ---------> 11\r\n\t\t\r\n\t\tint count = 0;\r\n\t\t// count : 총 글의 개수를 저장할 변수\r\n\t\tint number = 0;\r\n\t\t// number : 해당 페이지에 가장 먼저 출력되는 글의 번호\r\n\t\t\r\n\t\tList<ReservationInfo> reservationList = null; // 글 정보를 저장할 리스트\r\n\t\t// 해당 페이지에 출력되는 글 목록을 저장할 컬렉션\r\n\t\t\r\n\t\t// 비지니스 로직 처리를 위해 서비스 객체 생성\r\n\t\tReservationListService reservationListService = new ReservationListService();\r\n\t\t\r\n\t\tcount = reservationListService.getReservationCount(); // 총 예약의 개수를 가져온다.\r\n\t\tif(count > 0) { \r\n\t\t\t// 예약이 하나라도 있으면 리스팅할 예약 정보 얻어오기\r\n\t\t\treservationList = reservationListService.getReservationList(startRow, pageSize); // 해당 페이지의 레코드 10개씩 가져온다.\r\n\t\t}\r\n\t\t\r\n\t\t// 전체 페이지에서 현재페이지 -1을 해서 pageSize를 곱한다.\r\n\t\tnumber = count - (currentPage - 1) * pageSize;\r\n\t\t// 총 글의 개수 : 134\r\n\t\t// 현재 페이지 : 1\r\n\t\t// 134 - (1 - 1) * 10 -------> 134\r\n\t\t\r\n\t\tint startPage = 0;\r\n\t\tint pageCount = 0;\r\n\t\tint endPage = 0;\r\n\t\t\r\n\t\tif(count > 0) { // 글이 하나라도 존재하면...\r\n\t\t\tpageCount = count / pageSize + (count % pageSize == 0 ? 0 : 1);\r\n\t\t\t// 총 페이지 개수를 구함.\r\n\t\t\t// ex) 총 글의 개수 13개이면 페이지는 2개 필요..\r\n\t\r\n\t\t\tstartPage = ((currentPage -1) / pageSize) * pageSize + 1;\r\n\t\t\t// 현재 페이지 그룹의 첫번째 페이지를 구함.\r\n\t\t\t// [1][2][3][4][5][6][7]...[10] -------> 처음 페이지 그룹\r\n\t\t\t// 다음 페이지 스타트 페이지 : [11][12][13]....[20]\r\n\t\t\t\t\t\r\n\t\t\tint pageBlock = 10;\r\n\t\t\tendPage = startPage + pageBlock - 1;\r\n\t\t\t\r\n\t\t\t// 마지막 페이지 그룹인 경우..\r\n\t\t\tif(endPage > pageCount) endPage = pageCount;\r\n\t\t}\r\n\t\t\r\n\t\t// 포워딩 하기 전, 가져 온 글 공유\r\n\t\trequest.setAttribute(\"reservationList\", reservationList);\r\n\t\tPageInfo pageInfo = new PageInfo(); // 페이지에 관한 정보를 처리하는 객체 생성\r\n\t\tpageInfo.setCount(count);\r\n\t\tpageInfo.setCurrentPage(currentPage);\r\n\t\tpageInfo.setEndPage(endPage);\r\n\t\tpageInfo.setNumber(number);\r\n\t\tpageInfo.setPageCount(pageCount);\r\n\t\tpageInfo.setStartPage(startPage);\r\n\t\t\r\n\t\trequest.setAttribute(\"pageInfo\", pageInfo);\r\n\t\tActionForward forward = new ActionForward();\r\n\t\tforward.setUrl(\"/pc/reservationList.jsp\"); // list.jsp 페이지 포워딩\r\n\t\t\r\n\t\treturn forward;\r\n\t}",
"public void incrementActiveRequests() \n {\n ++requests;\n }",
"@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n System.out.println(\"load more\" + totalItemsCount);\n loadMore(totalItemsCount);\n }",
"private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }",
"@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void onLoadMore() {\n\t\tif (onRefresh_number) {\n\t\t\tpage = page + 1;\n\n\t\t\tonRefresh_number = false;\n\t\t\tgetData();\n\n\t\t\t// if (Tools.isConnect(getApplicationContext())) {\n\t\t\t// onRefresh_number = false;\n\t\t\t// getData();\n\t\t\t// } else {\n\t\t\t// onRefresh_number = true;\n\t\t\t// handler.sendEmptyMessage(2);\n\t\t\t// }\n\t\t} else {\n\t\t\thandler.sendEmptyMessage(3);\n\t\t}\n\t}",
"protected ActionForward currentPage( UserRequest request )\n {\n int pageNumber = request.getParameterAsInt( PAGE_KEY, 1 );\n HttpServletRequest req = request.getRequest();\n req.setAttribute( PAGE_KEY, \"\" + pageNumber );\n return request.getMapping().findForward( PAGE_KEY + pageNumber );\n }",
"@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}",
"@Override\n\tpublic void onLoadMore() {\n\t\tLog.d(\"load\", \"\");\n\t\tcurrentPage++;\n\t\tmodel.getPostsByType(userId, currentPage, method, postListiner);\n\t}"
]
| [
"0.6260514",
"0.5893429",
"0.5867661",
"0.5858301",
"0.5701316",
"0.56730574",
"0.56539583",
"0.56479526",
"0.5640442",
"0.56058717",
"0.56058717",
"0.5571299",
"0.5539784",
"0.5526496",
"0.5523856",
"0.5520377",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5516438",
"0.5493742",
"0.5485584",
"0.5485584",
"0.54673743",
"0.54669434",
"0.54569644",
"0.5453289",
"0.54502267",
"0.54502267",
"0.54502267",
"0.5445019",
"0.53971815",
"0.53888834",
"0.5334888",
"0.5334888",
"0.53220785",
"0.5321129",
"0.53177595",
"0.52946275",
"0.5273519",
"0.5273519",
"0.5273519",
"0.5266461",
"0.5244117",
"0.5234931",
"0.52090144",
"0.5205163",
"0.5204271",
"0.52038765",
"0.51775277",
"0.5157773",
"0.5152398",
"0.5150992",
"0.51262426",
"0.5115507",
"0.5101185",
"0.5096253",
"0.5077573",
"0.50664204",
"0.5064491",
"0.5062762",
"0.5056258",
"0.5054481",
"0.5049616",
"0.50477576",
"0.5046251",
"0.50456315",
"0.5033236",
"0.50264335",
"0.50264335",
"0.50264335",
"0.5024734",
"0.5020697",
"0.5015779",
"0.4995948",
"0.49928448",
"0.49872005",
"0.49833956",
"0.4969887",
"0.49567366",
"0.494383",
"0.49434406",
"0.49393058",
"0.49358693",
"0.4935778",
"0.49316427",
"0.49294004",
"0.49189728",
"0.4918027",
"0.49117702",
"0.48997855",
"0.4892099"
]
| 0.5862104 | 3 |
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getOperations() != null)
sb.append("Operations: ").append(getOperations()).append(",");
if (getNextPageMarker() != null)
sb.append("NextPageMarker: ").append(getNextPageMarker());
sb.append("}");
return sb.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() { return stringify(this, true); }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }",
"@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getName() != null)\n sb.append(\"Name: \").append(getName()).append(\",\");\n if (getPhoneNumber() != null)\n sb.append(\"PhoneNumber: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getEmail() != null)\n sb.append(\"Email: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getIdentificationNumber() != null)\n sb.append(\"IdentificationNumber: \").append(getIdentificationNumber()).append(\",\");\n if (getIdentificationExpirationDate() != null)\n sb.append(\"IdentificationExpirationDate: \").append(getIdentificationExpirationDate()).append(\",\");\n if (getIdentificationIssuingOrg() != null)\n sb.append(\"IdentificationIssuingOrg: \").append(getIdentificationIssuingOrg()).append(\",\");\n if (getDevicePickupId() != null)\n sb.append(\"DevicePickupId: \").append(getDevicePickupId());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }",
"public java.lang.String toString() {\n return this.stringValue;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn MoreObjects.toStringHelper(this) //\r\n\t\t\t\t.add(\"id\", getId()) //\r\n\t\t\t\t.add(\"parameter\", getParameter()) //\r\n\t\t\t\t.add(\"value\", getValue()) //\r\n\t\t\t\t.add(\"hieraAddress\", getHieraAddress()) //\r\n\t\t\t\t.toString();\r\n\t}",
"public String toString() {\n StringBuilder stringBuilder = new StringBuilder(40);\n stringBuilder.append(\"property '\").append(this.getName()).append(\"' (\");\n if (this._accessorMethod != null) {\n stringBuilder.append(\"via method \").append(this._accessorMethod.getDeclaringClass().getName()).append(\"#\").append(this._accessorMethod.getName());\n } else {\n stringBuilder.append(\"field \\\"\").append(this._field.getDeclaringClass().getName()).append(\"#\").append(this._field.getName());\n }\n if (this._serializer == null) {\n stringBuilder.append(\", no static serializer\");\n } else {\n stringBuilder.append(\", static serializer of type \" + this._serializer.getClass().getName());\n }\n stringBuilder.append(')');\n return stringBuilder.toString();\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}",
"@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }",
"@Override\n public String toString() {\n return (this.str);\n }",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}",
"@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"public String toString() {\n\t\t\tif (this.getKey() == null) {\n\t\t\t\treturn \"\";\n\t\t\t} else {\n\t\t\t\treturn \"Key:\" + this.getKey() + \" Value:\" + this.getValue();\n\t\t\t}\n\t\t}",
"@Override\n public String toString() {\n return mString;\n }",
"public String toString() {\n return toDisplayString();\n }",
"public java.lang.String toString()\n {\n return this.stringValue;\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToStringFK(\"Project\", getProject()));\n buffer.append(objectToStringFK(\"User\", getUser()));\n buffer.append(objectToString(\"Status\", getStatus()));\n buffer.append(objectToString(\"LastActivityDate\", getLastActivityDate()));\n buffer.append(objectToString(\"HasPiSeen\", getHasPiSeen()));\n buffer.append(objectToString(\"HasDpSeen\", getHasDpSeen()));\n buffer.append(objectToString(\"HasAdminSeen\", getHasAdminSeen()));\n buffer.append(objectToString(\"HasRequestorSeen\", getHasRequestorSeen()));\n buffer.append(objectToString(\"EmailStatus\", getEmailStatus()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"public String toString() {\r\n\t\treturn \"Name: \" + getName() + \" Phone: \" + phoneNumber + \" Email: \" + email;\r\n\t\t\r\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"@Override\n public String toString() {\n return string;\n }",
"@Override\n public final String toString() {\n return this.value;\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"public String toString() {\r\n\t\treturn \"Name: \" + name + \"\\nAddress: \" + addr + \"\\n\" + city + \"\\n\"\r\n\t\t\t\t+ state + \"\\n\" + zip + \"\\nPhone: \" + phone + \"\\nId: \" + id\r\n\t\t\t\t+ \"\\nMajor: \" + major + \"\\nGPA: \" + gpa;\r\n\t}",
"public synchronized String toString() {\n StringBuffer oBuffer = new StringBuffer();\n\n oBuffer\n .append(\"Preprocessing params: \").append(this.oPreprocessingParams).append(\"\\n\")\n .append(\"Feature extraction params: \").append(this.oFeatureExtractionParams).append(\"\\n\")\n .append(\"Classification params: \").append(this.oClassificationParams);\n\n return oBuffer.toString();\n }",
"public String toString() {\r\n\t\treturn \"Name: \" + getName() + \"\\nAddress: \" + getAddress() + \"\\nPhone Number: \" + getPhoneNumber();\r\n\t}",
"@Override String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}",
"@Override\n public String toString() {\n return value();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }",
"public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}",
"public String toString() {\n\t\treturn \"{\\\"username\\\":\\\"\" + this.username + \"\\\",\\\"apiKey\\\":\\\"\"\n\t\t\t\t+ this.apiKey + \"\\\",\\\"apiSecret:\\\"\" + this.apiSecret\n\t\t\t\t+ \"\\\",\\\"nonce:\\\"\" + this.nonce + \"\\\"}\";\n\t}",
"@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .addValue(this.id)\n .addValue(this.name)\n .addValue(this.author)\n .addValue(this.description)\n .addValue(this.pictureOfCover)\n .toString();\n }",
"@Override\n public String toString() {\n return toStringHelper(this)\n .addValue(id)\n .addValue(firstName)\n .addValue(lastName)\n .addValue(email)\n .addValue(activities)\n .addValue(password).toString();\n }",
"public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}",
"public String toString() {\n return \"\" + data;\n }",
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}",
"public String toString() {\n\t\treturn (getValue().toString());\r\n\t}",
"public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"public String toString() {\n String output = \"\\nName: \" + name;\n output += \"\\nType: \" + type;\n output += \"\\nContact Details: \" + contactNo;\n output += \"\\nEmail address: \" + email;\n output += \"\\nResidentail Address: \" + address;\n\n return output;\n }",
"@Override \n\tpublic String toString() {\n\t\treturn stringForm;\n\t}",
"@Override public String toString();",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }",
"public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}",
"public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}",
"public String toString() {\n\t\treturn String.format(\"%s\\nID: %d\\nDescription: %s\\n\", name.toUpperCase(), id, description); \n\t}",
"public String toString() {\r\n String result = \"Name: \" + name + \"\\n\";\r\n\r\n result += \"Address: \" + address + \"\\n\";\r\n result += \"Phone: \" + phone;\r\n\r\n return result;\r\n }",
"@Override\n public String toString() {\n return \"\" + this.value;\n }",
"public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}",
"public String toString() {\n\t\treturn str;\n\t}",
"public String toString() {\n return String.format(mFormat,\n format(mManufacturer),\n format(mBrand),\n format(mModel),\n mResolution,\n mDensity,\n mAndroidDensity,\n mVersion,\n mSdk,\n mLanguage);\n }",
"@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }",
"@Override\n public String toString()\n {\n return this.toLsString();\n }",
"public String toString()\n {\n return this.string;\n }",
"@Override\n public String toString() {\n return Helper.concat(this.getClass().getName(), \"{\",\n \"id:\", getId(),\n \", name:\", getName(),\n \", positions:\", positions,\n \", resourceRoles:\", resourceRoles,\n \"}\");\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getVersion() != null)\n sb.append(\"version: \").append(getVersion()).append(\",\");\n if (getResource() != null)\n sb.append(\"resource: \").append(getResource()).append(\",\");\n if (getPath() != null)\n sb.append(\"path: \").append(getPath()).append(\",\");\n if (getHttpMethod() != null)\n sb.append(\"httpMethod: \").append(getHttpMethod()).append(\",\");\n if (getHeaders() != null)\n sb.append(\"headers: \").append(getHeaders().toString()).append(\",\");\n if (getMultiValueHeaders() != null)\n sb.append(\"multiValueHeaders: \").append(getMultiValueHeaders().toString()).append(\",\");\n if (getQueryStringParameters() != null)\n sb.append(\"queryStringParameters: \").append(getQueryStringParameters().toString()).append(\",\");\n if (getMultiValueQueryStringParameters() != null)\n sb.append(\"multiValueQueryStringParameters: \").append(getMultiValueQueryStringParameters().toString()).append(\",\");\n if (getPathParameters() != null)\n sb.append(\"pathParameters: \").append(getPathParameters().toString()).append(\",\");\n if (getStageVariables() != null)\n sb.append(\"stageVariables: \").append(getStageVariables().toString()).append(\",\");\n if (getRequestContext() != null)\n sb.append(\"requestContext: \").append(getRequestContext().toString()).append(\",\");\n if (getBody() != null)\n sb.append(\"body: \").append(getBody()).append(\",\");\n if (getIsBase64Encoded() != null)\n sb.append(\"isBase64Encoded: \").append(getIsBase64Encoded());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String toString() {\n return \"\";\n }"
]
| [
"0.80981666",
"0.8073201",
"0.8046738",
"0.8046738",
"0.8023337",
"0.7973196",
"0.7937623",
"0.79282993",
"0.790899",
"0.7894078",
"0.77834874",
"0.77818394",
"0.776735",
"0.77665883",
"0.77665883",
"0.77665883",
"0.77554446",
"0.7727782",
"0.7721274",
"0.76733345",
"0.76733345",
"0.76682055",
"0.76522493",
"0.7650251",
"0.76427245",
"0.76416767",
"0.76360816",
"0.7633271",
"0.76214135",
"0.7620609",
"0.7617968",
"0.7597105",
"0.7588406",
"0.7587865",
"0.7553426",
"0.75372726",
"0.75349945",
"0.7530834",
"0.7525858",
"0.7525371",
"0.75199",
"0.75059795",
"0.7498456",
"0.7474797",
"0.74525666",
"0.74213445",
"0.7419712",
"0.74178827",
"0.741729",
"0.7415829",
"0.74116075",
"0.74045086",
"0.7403499",
"0.74014825",
"0.74014825",
"0.73949426",
"0.7394287",
"0.73941684",
"0.73898005",
"0.73882437",
"0.7376306",
"0.7375622",
"0.7370081",
"0.7360701",
"0.7359249",
"0.7348544",
"0.73410267",
"0.7339754",
"0.73335564",
"0.73287696",
"0.73267126",
"0.73257774",
"0.7321295",
"0.7318607",
"0.7313159",
"0.7313096",
"0.7310639",
"0.72998",
"0.7293288",
"0.72907287",
"0.72904867",
"0.7289833",
"0.7286984",
"0.72784096",
"0.7275433",
"0.72746843",
"0.7271279",
"0.72597134",
"0.72588104",
"0.72575283",
"0.72563195",
"0.72504467",
"0.7247751",
"0.7246381",
"0.7244972",
"0.7240919",
"0.7239322",
"0.7237012",
"0.72365475",
"0.72317016",
"0.72241014"
]
| 0.0 | -1 |
===================== Financial Planner Storage methods ================================ | @Override
public Optional<ReadOnlyFinancialPlanner> readFinancialPlanner() throws DataConversionException, IOException {
return readFinancialPlanner(recordListFilePath, summaryMapFilePath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"stockFilePT102.StockFileDocument.StockFile getStockFile();",
"public interface PremiumManager {\r\n /**\r\n * Retrieves all premium information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all rating log information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllRatingLog(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all member contribution info\r\n *\r\n * @param inputRecord (transactionId and riskId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllMemberContribution (Record inputRecord);\r\n\r\n /**\r\n * Retrieves all layer detail info\r\n *\r\n * @param inputRecord (transactionId and coverageId and termId)\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllLayerDetail(Record inputRecord);\r\n \r\n /**\r\n * Retrieves all fund information\r\n *\r\n * @param policyHeader policy header\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllFund(PolicyHeader policyHeader, Record inputRecord);\r\n\r\n /**\r\n * Retrieves all payment information\r\n *\r\n * @param policyHeader policy header\r\n * @return RecordSet\r\n */\r\n RecordSet loadAllPayment(PolicyHeader policyHeader);\r\n\r\n /**\r\n * Validate if the term base id is the current term base id and whether the data is empty.\r\n *\r\n * @param inputRecord inputRecord\r\n * @param conn live JDBC Connection\r\n * @return boolean\r\n */\r\n void validateTransactionForPremiumWorksheet(Record inputRecord, Connection conn);\r\n\r\n /**\r\n * Get the default values for premium accounting date fields\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet getInitialValuesForPremiumAccounting(Record inputRecord);\r\n\r\n /**\r\n * Generate the premium accounting data for selected transaction\r\n *\r\n * @param inputRecord input Record\r\n * @return RecordSet\r\n */\r\n RecordSet generatePremiumAccounting(Record inputRecord);\r\n}",
"public DataStorage getDataStorage();",
"stockFilePT102.StockDocument.Stock addNewStock();",
"public MoneyStorage(String filePath) {\n fileName = filePath;\n dateTimeFormatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n deletedEntries = new Stack<>();\n deletedBanks = new Stack<>();\n }",
"public interface StorageTakeRecService {\n\n\n /**\n * 根据库位查询两天之内的盘点单信息\n * @return\n */\n StorageTakeRec getStorageTakeRecByStorLocaCode(StorageLocation storageLocation);\n /**\n * 更新盘点单信息\n * @return\n */\n StorageTakeRec addStorageTakeRec(StorageTakeRec storageTakeRec);\n\n /**\n * 清空库位此种扫描状态下的单据扫描信息\n * @param storageTakeRec\n * @return\n */\n boolean clearByStorageTakeRec(StorageTakeRec storageTakeRec);\n}",
"OStorage getStorage();",
"public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}",
"static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}",
"stockFilePT102.StockFileDocument.StockFile addNewStockFile();",
"public void getPromoShare() {\n\t\tHashMap<String, DataStorage> items = this.getAllItems();\n\t\tfor(String key:items.keySet()) {\n\t\t\tHashtable<String, Double> sales = new Hashtable<String, Double>();\n\t\t\tsales.put(\"Total Sales\",items.get(key).getSales(thisPeriod));\n\t\t\tsales.put(\"Total Sales YA\", items.get(key).getSales(lastPeriod));\n\t\t\tsales.put(\"Any Promo Sales\", items.get(key).getAnyPromo(thisPeriod));\n\t\t\tsales.put(\"Any Promo Sales YA\", items.get(key).getAnyPromo(lastPeriod));\n\t\t\tsales.put(\"Feature\", items.get(key).getFeat(thisPeriod));\n\t\t\tsales.put(\"Feature YA\", items.get(key).getFeat(lastPeriod));\n\t\t\tsales.put(\"Display\", items.get(key).getDisplay(thisPeriod));\n\t\t\tsales.put(\"Display YA\", items.get(key).getDisplay(lastPeriod));\n\t\t\tsales.put(\"Quality\", items.get(key).getQual(thisPeriod));\n\t\t\tsales.put(\"Quality YA\", items.get(key).getQual(lastPeriod));\n\t\t\tsales.put(\"Price Disc.\", items.get(key).getPriceDisc(thisPeriod));\n\t\t\tsales.put(\"Price Disc.YA\", items.get(key).getPriceDisc(lastPeriod));\n\t\t\tthis.allocateValues(sales);\n\t\t}\n\t}",
"public interface DBStorage {\n \n /**\n * Get the name of the storage vendor (DB vendor name)\n *\n * @return name of the storage vendor (DB vendor name)\n */\n String getStorageVendor();\n \n /**\n * Can this storage handle the requested database?\n *\n * @param dbm database meta data\n * @return if storage can handle the requested database\n */\n boolean canHandle(DatabaseMetaData dbm);\n \n /**\n * Get the ContentStorage singleton instance\n *\n * @param mode used storage mode\n * @return ContentStorage singleton instance\n * @throws FxNotFoundException if no implementation was found\n */\n ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;\n \n /**\n * Get the EnvironmentLoader singleton instance\n *\n * @return EnvironmentLoader singleton instance\n */\n EnvironmentLoader getEnvironmentLoader();\n \n /**\n * Get the SequencerStorage singleton instance\n *\n * @return SequencerStorage singleton instance\n */\n SequencerStorage getSequencerStorage();\n \n /**\n * Get the TreeStorage singleton instance\n *\n * @return TreeStorage singleton instance\n */\n TreeStorage getTreeStorage();\n \n /**\n * Get the LockStorage singleton instance\n *\n * @return LockStorage singleton instance\n */\n LockStorage getLockStorage();\n \n /**\n * Get a data selector for a sql search\n *\n * @param search current SqlSearch to operate on\n * @return data selector\n * @throws FxSqlSearchException on errors\n */\n DataSelector getDataSelector(SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get a data filter for a sql search\n *\n * @param con an open and valid connection\n * @param search current SqlSearch to operate on\n * @return DataFilter\n * @throws FxSqlSearchException on errors\n */\n DataFilter getDataFilter(Connection con, SqlSearch search) throws FxSqlSearchException;\n \n /**\n * Get the CMIS SQL Dialect implementation\n *\n * @param environment environment\n * @param contentEngine content engine in use\n * @param query query\n * @param returnPrimitives return primitives?\n * @return CMIS SQL Dialect implementation\n */\n SqlDialect getCmisSqlDialect(FxEnvironment environment, ContentEngine contentEngine, CmisSqlQuery query, boolean returnPrimitives);\n \n /**\n * Get the database vendor specific Boolean expression\n *\n * @param flag the flag to get the expression for\n * @return database vendor specific Boolean expression for <code>flag</code>\n */\n String getBooleanExpression(boolean flag);\n \n /**\n * Get the boolean <code>true</code> expression string for the database vendor\n *\n * @return the boolean <code>true</code> expression string for the database vendor\n */\n String getBooleanTrueExpression();\n \n /**\n * Get the boolean <code>false</code> expression string for the database vendor\n *\n * @return the boolean <code>false</code> expression string for the database vendor\n */\n String getBooleanFalseExpression();\n \n /**\n * Escape reserved words properly if needed\n *\n * @param query the query to escape\n * @return escaped query\n */\n String escapeReservedWords(String query);\n \n /**\n * Get a database vendor specific \"IF\" function\n *\n * @param condition the condition to check\n * @param exprtrue expression if condition is true\n * @param exprfalse expression if condition is false\n * @return database vendor specific \"IF\" function\n */\n String getIfFunction(String condition, String exprtrue, String exprfalse);\n \n /**\n * Get the database vendor specific operator to query regular expressions\n *\n * @param column column to match\n * @param regexp regexp to match the column against\n * @return database vendor specific operator to query regular expressions\n */\n String getRegExpLikeOperator(String column, String regexp);\n \n /**\n * Get the database vendor specific statement to enable or disable referential integrity checks.\n * When in a transaction, be sure to check {@link #isDisableIntegrityTransactional()}\n * since not all databases support this in a transactional context.\n *\n * @param enable enable or disable checks?\n * @return database vendor specific statement to enable or disable referential integrity checks\n */\n String getReferentialIntegrityChecksStatement(boolean enable);\n \n /**\n * Return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context.\n *\n * @return true if calling {@link #getReferentialIntegrityChecksStatement(boolean)} is possible\n * in a transactional context\n */\n boolean isDisableIntegrityTransactional();\n \n /**\n * Get the sql code of the statement to fix referential integrity when removing selectlist items\n *\n * @return sql code of the statement to fix referential integrity when removing selectlist items\n */\n String getSelectListItemReferenceFixStatement();\n \n /**\n * Get a database vendor specific timestamp of the current time in milliseconds as Long\n *\n * @return database vendor specific timestamp of the current time in milliseconds as Long\n */\n String getTimestampFunction();\n \n /**\n * Get a database vendor specific concat statement\n *\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat(String... text);\n \n /**\n * Get a database vendor specific concat_ws statement\n *\n * @param delimiter the delimiter to use\n * @param text array of text to concatenate\n * @return concatenated text statement\n */\n String concat_ws(String delimiter, String... text);\n \n /**\n * If a database needs a \" ... from dual\" to generate valid queries, it is returned here\n *\n * @return from dual (or equivalent) if needed\n */\n String getFromDual();\n \n /**\n * Get databas evendor specific limit statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @return limit statement\n */\n String getLimit(boolean hasWhereClause, long limit);\n \n /**\n * Get database vendor specific limit/offset statement\n *\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffset(boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get database vendor specific limit/offset statement using the specified variable name\n *\n * @param var name of the variable to use\n * @param hasWhereClause does the query already contain a where clause?\n * @param limit limit\n * @param offset offset\n * @return limit/offset statement\n */\n String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);\n \n /**\n * Get the statement to get the last content change timestamp\n *\n * @param live live version included?\n * @return statement to get the last content change timestamp\n */\n String getLastContentChangeStatement(boolean live);\n \n /**\n * Format a date to be used in a query condition (properly escaped)\n *\n * @param date the date to format\n * @return formatted date\n */\n String formatDateCondition(Date date);\n \n /**\n * Correctly escape a flat storage column if needed\n *\n * @param column name of the column\n * @return escaped column (if needed)\n */\n String escapeFlatStorageColumn(String column);\n \n /**\n * Returns true if the SqlError is a foreign key violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a foreign key violation\n */\n boolean isForeignKeyViolation(Exception exc);\n \n /**\n * Returns true if the given exception was caused by a query timeout.\n *\n * @param e the exception to be examined\n * @return true if the given exception was caused by a query timeout\n * @since 3.1\n */\n boolean isQueryTimeout(Exception e);\n \n /**\n * Does the database rollback a connection if it encounters a constraint violation? (eg Postgres does...)\n *\n * @return database rollbacks a connection if it encounters a constraint violation\n */\n boolean isRollbackOnConstraintViolation();\n \n /**\n * Returns true if the SqlError is a unique constraint violation.\n *\n * @param exc the exception\n * @return true if the SqlError is a unique constraint violation\n */\n boolean isUniqueConstraintViolation(Exception exc);\n \n /**\n * Returns true if the given SqlException indicates a deadlock.\n *\n * @param exc the exception\n * @return true if the given SqlException indicates a deadlock.\n * @since 3.1\n */\n boolean isDeadlock(Exception exc);\n \n /**\n * When accessing the global configuration - does the config table has to be prefixed with the schema?\n * (eg in postgres no schemas are supported for JDBC URL's hence it is not required)\n *\n * @return access to configuration tables require the configuration schema to be prepended\n */\n boolean requiresConfigSchema();\n \n /**\n * Get a connection to the database using provided parameters and (re)create the database and/or schema\n *\n * @param database name of the database\n * @param schema name of the schema\n * @param jdbcURL JDBC connect URL\n * @param jdbcURLParameters optional JDBC URL parameters\n * @param user name of the db user\n * @param password password\n * @param createDB create the database?\n * @param createSchema create the schema?\n * @param dropDBIfExist drop the database if it exists?\n * @return an open connection to the database with the schema set as default\n * @throws Exception on errors\n */\n Connection getConnection(String database, String schema, String jdbcURL, String jdbcURLParameters, String user, String password, boolean createDB, boolean createSchema, boolean dropDBIfExist) throws Exception;\n \n /**\n * Initialize a configuration schema\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Initialize a division\n *\n * @param con an open and valid connection to the database\n * @param schema the schema to create\n * @param dropIfExist drop the schema if it exists?\n * @return success\n * @throws Exception on errors\n */\n boolean initDivision(Connection con, String schema, boolean dropIfExist) throws Exception;\n \n /**\n * Export all data of a division to an OutputStream as ZIP\n *\n * @param con an open and valid connection to the database to be exported\n * @param out OutputStream that will be used to create the zip file\n * @throws Exception on errors\n */\n void exportDivision(Connection con, OutputStream out) throws Exception;\n \n /**\n * Import a complete division from a zip stream\n *\n * @param con an open and valid connection\n * @param zip zip archive that contains an exported divison\n * @throws Exception on errors\n */\n void importDivision(Connection con, ZipFile zip) throws Exception;\n }",
"public interface BlobStore {\n\n /**\n * Validation pattern for namespace.\n */\n public static Pattern VALID_NAMESPACE_PATTERN = Pattern.compile(\"[A-Za-z0-9_-]+\");\n\n\n /**\n * Validation pattern for id.\n */\n public static Pattern VALID_ID_PATTERN = Pattern.compile(\"[A-Za-z0-9_.:-]+\");\n\n /**\n * Store a new object inside the blob store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @param content The actual content.\n * @throws StageException\n */\n public void store(String namespace, String id, long version, String content) throws StageException;\n\n /**\n * Return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Latest version (usual integer comparison)\n * @throws StageException\n */\n public long latestVersion(String namespace, String id) throws StageException;\n\n /**\n * Validates if given object exists on at least one version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return If given object in given namespace exists\n */\n public boolean exists(String namespace, String id);\n\n /**\n * Validates if given object exists on given version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return If given object on given in given namespace exists\n */\n public boolean exists(String namespace, String id, long version);\n\n /**\n * Return all versions associated with given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Set of all stored versions.\n * @throws StageException\n */\n public Set<Long> allVersions(String namespace, String id);\n\n /**\n * Retrieve given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return Object itself\n * @throws StageException\n */\n public String retrieve(String namespace, String id, long version) throws StageException;\n\n /**\n * Sub-interface to encapsulate tuple of content with it's version.\n */\n public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }\n\n /**\n * Convenience method to return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Object itself\n * @throws StageException\n */\n public VersionedContent retrieveLatest(String namespace, String id) throws StageException;\n\n /**\n * Delete given object from the store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @throws StageException\n */\n public void delete(String namespace, String id, long version) throws StageException;\n\n /**\n * Delete all versions of given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @throws StageException\n */\n public void deleteAllVersions(String namespace, String id) throws StageException;\n}",
"public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}",
"List<String> getCompanySymbols() throws StorageException;",
"public Stock() {\n\t\tsi = new SmallCouchImport();\n\t\tstockList.addAll(si.getStock());\n\t\tsi = new BigCouchImport();\n\t\tstockList.addAll(si.getStock());\n\t\tsi = new SmallTableImport();\n\t\tstockList.addAll(si.getStock());\n\t\tsi = new BigTableImport();\n\t\tstockList.addAll(si.getStock());\n\t}",
"stockFilePT102.StockDocument.Stock insertNewStock(int i);",
"public interface CompanyService {\r\n\r\n\t/**\r\n\t * Returns the list of company symbols for that companies that are monitored\r\n\t * in the database\r\n\t * \r\n\t * @return The list of strings with company symbols\r\n\t * \r\n\t * @throws StorageException\r\n\t * If there was an exception retrieving the company information\r\n\t */\r\n\tList<String> getCompanySymbols() throws StorageException;\r\n\r\n}",
"stockFilePT102.StockDocument.Stock getStockArray(int i);",
"public interface IPortfolio<K> {\n\n /**\n * Returns the portfolio data.\n *\n * @return the portfolio data in the form a string.\n */\n HashMap<String, Double> getPortfolioData(String date);\n\n\n /**\n * Returns the total cost basis of the portfolio at a given date.\n *\n * @param date date for which the cost basis has to be calculated.\n * @return the total cost basis of the portfolio.\n * @throws IllegalArgumentException if the stock cost basis cannot be fetched.\n */\n double getStockCostBasis(String date) throws IllegalArgumentException;\n\n /**\n * Returns the total value of the portfolio at a given date.\n *\n * @param date date for which the value has to be calculated.\n * @return the total value of the portfolio.\n * @throws IllegalArgumentException if the stock value cannot be fetched.\n */\n double getStockValue(String date) throws IllegalArgumentException;\n\n /**\n * Adds a stock to the portfolio.\n *\n * @param identifier the stock that is to be added to the portfolio\n * @param amount the amount for which the stock has to be added to the portfolio.\n * @param date when the stock has to be added.\n * @param commission the commission amount.\n * @return Returns a string that contains the number of shares of a stock bought for an amount at\n * a particular date.\n * @throws IllegalArgumentException if the stock ticker symbol, amount, commission or date is\n * invalid.\n */\n double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;\n\n /**\n * Returns the commission fee according the input string.\n *\n * @param commission input commission string.\n * @return commission.\n * @throws IllegalArgumentException if the input is invalid.\n */\n double getCommission(String commission) throws IllegalArgumentException;\n\n /**\n * Invest a fixed amount into an existing portfolio containing multiple stocks, using a specified\n * weight for each stock in the portfolio. Returns a hashmap with the all the stocks and the\n * number of shares bought for each of them.\n *\n * @param amount amount to be invested.\n * @param weights stocks with their corresponding weights.\n * @param equalWeights flag to determine if the weights should be equal.\n * @param date date to invest.\n * @param commission commission fees.\n * @return a hashmap with the all the stocks and the number of shares bought for each of them.\n * @throws IllegalArgumentException if the weights are invalid.\n */\n HashMap<String, Double> invest(double amount, TreeMap<String, Double> weights,\n boolean equalWeights, String date, double commission)\n throws IllegalArgumentException;\n\n /**\n * Saves the portfolio in the local system.\n * @param name filename to be saved as.\n * @throws IllegalArgumentException if the filename is null or empty.\n * @throws IllegalStateException if saving the portfolio fails.\n */\n void savePortfolio(String name) throws IllegalArgumentException, IllegalStateException;\n}",
"public void saveFiAvailableInvoice(FiAvailableInvoice fiAvailableInvoice);",
"int getItemStorage();",
"private InternalStorage() {}",
"public void financialCrisis() {}",
"RecordSet loadAllFund(PolicyHeader policyHeader, Record inputRecord);",
"public interface StorageInRecStateService {\n /**\n * 获取订单状态\n */\n int getStorageInRecState(String recNumber);\n\n /**\n * 添加入库单状态信息\n * @param recNumber\n * @param recState\n * @return\n */\n boolean addStorageInRecState(String recNumber,int recState);\n /**\n * 更新入库单状态信息\n * @param recNumber\n * @param recState\n * @return\n */\n boolean updateStorageInRecState(String recNumber,int recState);\n\n /**\n * 获取分拣未入仓单据\n * @return\n */\n StorageInRec getFjNoRCRec();\n}",
"public interface StockPriceDataSource {\n\n /**\n * daily prices\n * @param date required date, can be today\n * @return list of deals for the day\n */\n List<StockTrade> getDayPrices(LocalDate date) throws IOException;\n}",
"public interface RateImporter {\n List<CurrencyRate> load() throws IOException;\n}",
"public interface FinanceService {\n\n AssetsPhasePo getAssetPhase(Long id);\n}",
"public void convert() throws Exception\r\n\t{\n\t\tString query = \"SELECT r_object_id FROM m_mrcs_efs_central_document WHERE r_current_state = 4 OR r_current_state = 6\"; \r\n\t\t\r\n\t\tIDfSession session = null;\r\n\t\tIDfSessionManager sMgr = null;\r\n\t\ttry {\r\n\t IDfClientX clientx = new DfClientX();\r\n\r\n\t \tIDfClient client = clientx.getLocalClient();\r\n\r\n\t \tsMgr = client.newSessionManager();\r\n\r\n\t \tIDfLoginInfo loginInfoObj = clientx.getLoginInfo();\r\n\t loginInfoObj.setUser(\"mradmin\");\r\n\t loginInfoObj.setPassword(\"mr2006\");\r\n\t loginInfoObj.setDomain(null);\r\n\r\n\t sMgr.setIdentity(\"MRCS_Dev\", loginInfoObj);\r\n }\r\n catch (DfException dfe){\r\n \tdfe.printStackTrace();\r\n }\t\t\r\n /*-DEBUG-*/if (DfLogger.isDebugEnabled(this))DfLogger.debug(this, \" \", null, null);\r\n\t\t\r\n\t\t// get list of objects that are pdfs...\r\n\t\t\r\n IDfQuery qry = new DfQuery();\r\n qry.setDQL(query);\r\n\r\n IDfCollection myObj1 = (IDfCollection) qry.execute(session, IDfQuery.DF_READ_QUERY);\r\n \r\n IDfTypedObject serverConfig = session.getServerConfig();\r\n String aclDomain = serverConfig.getString(\"operator_name\");\r\n\t\tIDfACL obsoleteacl = session.getACL(aclDomain,\"mrcs_central_archived\");\r\n\t\tIDfACL retiredacl = session.getACL(aclDomain,\"mrcs_central_retired_doc\");\r\n\r\n\r\n while (myObj1.next()) \r\n {\r\n \tString curid = myObj1.getString(\"r_object_id\");\r\n \t\t// look up object\r\n \t\tIDfDocument doc = (IDfDocument)session.getObject(new DfId(curid));\r\n \t\t\r\n \t\t// check that it's not a popped off copy (i_folder_id[0] != 'Approved') seems to be the only indicator of this...\r\n \t\tIDfFolder folder = (IDfFolder)session.getObject(doc.getFolderId(0));\r\n \t\tString foldername = folder.getObjectName();\r\n \t\t\r\n \t\t// don't do this for approved copies...\r\n \t\tif (!\"Approved\".equals(foldername))\r\n \t\t{\r\n\t \t\t\r\n\t \t\t// check it's state\r\n\t \t\tString statename = doc.getCurrentStateName();\r\n\t \t\tString chronicleid = doc.getChronicleId().getId();\r\n\t \t\t// if In-Progress: simply switch the content type\r\n\t \t\tif (\"Obsolete\".equals(statename))\r\n\t \t\t{\r\n\t \t\t\tString previousquery = \"SELECT r_object_id FROM dm_document(all) where i_chronicle_id = '\"+chronicleid+\"'\";\r\n\t \t IDfQuery prevqry = new DfQuery();\r\n\t \t prevqry.setDQL(query);\r\n\t \t IDfCollection previousversions = (IDfCollection) qry.execute(session, IDfQuery.DF_READ_QUERY);\r\n\t \t while (previousversions.next()) \r\n\t \t {\r\n\t \t \t\r\n\t \t \tString previd = previousversions.getString(\"r_object_id\");\r\n\t \t \t\t// look up object\r\n\t \t \t\tIDfDocument prevdoc = (IDfDocument)session.getObject(new DfId(previd));\r\n\t \t \t\t//unlock \r\n\t \t \t\tsMgr.beginTransaction();\r\n\t \t \t\ttry { \r\n\t\t \t prevdoc.setString(\"r_immutable_flag\", \"FALSE\");\r\n\t\t \t prevdoc.save();\r\n\t\t \t \r\n\t\t \t prevdoc.fetch(prevdoc.getTypeName()); // necessary?\t \t \t\t\r\n\t\t\t \t\t\t// set flags obsolete = true,retired = false\r\n\t\t \t \t\tprevdoc.setBoolean(\"retired\",false);\r\n\t\t \t \t\tprevdoc.setBoolean(\"obsolete\",true);\r\n\t\t\t \t\t\t// set acl\r\n\t\t \t \t\tprevdoc.setACL(obsoleteacl);\r\n\t\t \t prevdoc.setString(\"r_immutable_flag\", \"TRUE\");\r\n\t\t \t \t\tprevdoc.save();\r\n\t \t \t\t} catch (Exception e) {\r\n\t \t \t\t\tsMgr.abortTransaction();\r\n\t \t \t\t\tthrow e;\r\n\t \t \t\t}\r\n\t \t \t\tsMgr.commitTransaction();\r\n\t \t }\r\n\t \t previousversions.close();\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tif (\"Effective\".equals(statename))\r\n\t \t\t{\r\n\t \t\t\tString previousquery = \"SELECT r_object_id FROM dm_document(all) where i_chronicle_id = '\"+chronicleid+\"'\";\r\n\t \t IDfQuery prevqry = new DfQuery();\r\n\t \t prevqry.setDQL(query);\r\n\t \t IDfCollection previousversions = (IDfCollection) qry.execute(session, IDfQuery.DF_READ_QUERY);\r\n\t \t while (previousversions.next()) \r\n\t \t {\r\n\t \t \t\r\n\t \t \tString previd = previousversions.getString(\"r_object_id\");\r\n\t \t \t\t// look up object\r\n\t \t \t\tIDfDocument prevdoc = (IDfDocument)session.getObject(new DfId(previd));\r\n\t \t \t\t//unlock \r\n\t \t \t\tString currentstate = prevdoc.getCurrentStateName();\r\n\t \t \t\tif (\"Retired\".equals(currentstate))\r\n\t \t \t\t{\r\n\t\t \t \t\tsMgr.beginTransaction();\r\n\t\t \t \t\ttry { \t \t \t\t\t\r\n\t\t\t \t prevdoc.setString(\"r_immutable_flag\", \"FALSE\");\r\n\t\t\t \t prevdoc.save();\r\n\t\t\t \t prevdoc.fetch(prevdoc.getTypeName()); // necessary?\t \t \t\t\r\n\t\t\t\t \t\t\t// set flags obsolete = true,retired = false\r\n\t\t\t \t \t\tprevdoc.setBoolean(\"retired\",true);\r\n\t\t\t \t \t\tprevdoc.setBoolean(\"obsolete\",false);\r\n\t\t\t\t \t\t\t// set acl\r\n\t\t\t \t \t\tprevdoc.setACL(retiredacl);\r\n\t\t\t \t prevdoc.setString(\"r_immutable_flag\", \"TRUE\");\r\n\t\t\t \t \t\tprevdoc.save();\r\n\t\t \t \t\t} catch (Exception e) {\r\n\t\t \t \t\t\tsMgr.abortTransaction();\r\n\t\t \t \t\t\tthrow e;\r\n\t\t \t \t\t}\r\n\t\t \t \t\tsMgr.commitTransaction();\r\n\t \t \t\t}\r\n\t \t }\r\n\t \t previousversions.close();\r\n\t \t\t}\r\n\t \t\t\r\n \t\t}\r\n }\r\n myObj1.close();\r\n \r\n sMgr.release(session);\r\n\t}",
"interface Storage {\n String getStorageSize() ;\n}",
"public interface StockDAO {\n public int getAmountAvailable(String stockName); //Retrieves amount of stock available from stock_initial table\n public List<StockItem> getStockList(); //Retrieves list of stocks for initial wallet values\n}",
"public interface PortflioDAO {\n\n void createPortfoio(Portfolio portfolio);\n\n void addHolding(Portfolio portfolio, Holding holding);\n\n void updateNAV(Portfolio portfolio);\n\n Portfolio getPortfolio(Portfolio portfolio);\n\n Investor addInvestor(Portfolio portfolio, Investor investor);\n\n Holding createHolding(String holdingName, double currentPrice);\n}",
"void setStockFile(stockFilePT102.StockFileDocument.StockFile stockFile);",
"public static ArrayList<StockPortfolio> fetchDataFromFile() {\r\n\t\tArrayList<StockPortfolio> alStockPortfolios = new ArrayList<>();\r\n\t\tJSONParser parser= new JSONParser();\r\n\t\ttry{\r\n\t\t\tJSONArray alStock=(JSONArray)parser.parse(new FileReader(\"src/resource/StockInformation.json\"));\r\n\t\t\tfor(Object stock:alStock){\r\n\t\t\t\tJSONObject stockJson=(JSONObject) stock;\r\n\t\t\t\tStockPortfolio objStockPortfolio = new StockPortfolio();\r\n\t\t\t\tobjStockPortfolio.setName(stockJson.get(\"name\").toString());\r\n\t\t\t\tobjStockPortfolio.setNoOfShare((Long)stockJson.get(\"noOfShare\"));\r\n\t\t\t\tobjStockPortfolio.setPriceOfShare((Long)stockJson.get(\"priceOfShare\"));\r\n\t\t\t\talStockPortfolios.add(objStockPortfolio); \r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\treturn alStockPortfolios;\r\n\t}",
"public interface StorageService {\n\t\n\t/**\n\t * Storage.\n\t *\n\t * @param storage the storage\n\t * @return the storage state\n\t */\n\tpublic StorageState storage(ArrayList<StorageVO> storage);\n\t\n}",
"public interface FinanceService {\n //查看全部Finance\n PageInfo<Finance> queryAll(int pageNum,int pageSize);\n //添加,时间为当前时间\n public int addFinance(Finance finance);\n //获取类型菜单\n public List<Type> queryAllType();\n //修改,时间为当前时间,其他都修改\n public int updateFinance(Finance finance);\n //通过id查看Finance\n public Finance queryFinanceById(int id);\n //删除一条信息\n public int deleteFinanceById(int id);\n //删除多条信息\n public Integer deleteFinanceByIds(List<Integer> ids);\n //查询两个时间段之间的类型\n public List<Finance> queryCreatedateAndToCreatedate(String createDateNo1, String createDateNo2,Integer typeid);\n}",
"private BrandsData allocateDataStorage(BrandsData b1, BrandsData b2) {\n\t\tDouble [] data = new Double[12];\n\t\tdata[0] = b1.getSales(thisPeriod)+b2.getSales(thisPeriod);\n\t\tdata[1] = b1.getSales(lastPeriod)+b2.getSales(lastPeriod);\n\t\tdata[2] = b1.getAnyPromo(thisPeriod)+b2.getAnyPromo(thisPeriod);\n\t\tdata[3] = b1.getAnyPromo(lastPeriod)+b2.getAnyPromo(lastPeriod);\n\t\tdata[4] = b1.getPriceDisc(thisPeriod)+b2.getPriceDisc(thisPeriod);\n\t\tdata[5] = b1.getPriceDisc(lastPeriod)+b2.getPriceDisc(lastPeriod);\n\t\tdata[6] = b1.getFeat(thisPeriod)+b2.getFeat(thisPeriod);\n\t\tdata[7] = b1.getFeat(lastPeriod)+b2.getFeat(lastPeriod);\n\t\tdata[8] = b1.getDisplay(thisPeriod)+b2.getDisplay(thisPeriod);\n\t\tdata[9] = b1.getDisplay(lastPeriod)+b2.getDisplay(lastPeriod);\n\t\tdata[10] = b1.getQual(thisPeriod)+b2.getQual(thisPeriod);\n\t\tdata[11] = b1.getQual(lastPeriod)+b2.getQual(lastPeriod);\n\t\tString brand = b2.getBrand();\n\t\tBrandsData input = new BrandsData(brand, data);\n\t\treturn input;\n\t}",
"@SuppressWarnings({ \"deprecation\", \"unchecked\" })\r\n\tpublic void init() throws Exception{\r\n\t\tAsset CurrentAsset;\r\ndouble TotalAmount = CurrentPortfolio.getTotalAmount(CurrentDate);\r\nCurrentPortfolio.sellAssetCollection(CurrentDate);\r\n\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"US large cap\");\r\nCurrentAsset.setClassID(getAssetClassID(\"US Equity\"));\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"^GSPC\", TotalAmount/7,\r\n\t\tCurrentDate);\r\n\t\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"IUS small cap\");\r\nCurrentAsset.setClassID(52l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"^RUT\", TotalAmount /7,\r\n\t\tCurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"International Equity\");\r\nCurrentAsset.setClassID(9l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VGTSX\", TotalAmount /7,CurrentDate);\r\n\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Real Estate\");\r\nCurrentAsset.setClassID(5l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VGSIX\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Commodity\");\r\nCurrentAsset.setClassID(getAssetClassID(\"Commodity\"));\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"QRAAX\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\r\n\r\n\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Cash\");\r\nCurrentAsset.setClassID(3l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"CASH\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"US Bond\");\r\nCurrentAsset.setClassID(2l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VBMFX\", TotalAmount /7,\r\n\t\tCurrentDate);\r\n\r\ninitialAmount=TotalAmount;\r\nwithdrawRate=0.05;\r\n\t}",
"public StorageUnit beStorageUnit();",
"public interface Storage {\r\n\r\n\tpublic void createSeat(int number, int situation, int musicalEvent,int iCategory);\r\n\tpublic int updateSeat(int number, int situation, int idMusicalEvent);\r\n\tpublic int deleteSeat(int number, int idMusicalEvent);\r\n\tpublic int getSeatNumber(int number, int idMusicalEvent);\r\n\tpublic Seat getSeat(int number, int idMusicalEvent);\r\n\tpublic Seat getSeatById(int id, int idMusicalEvent);\r\n\tpublic void createMusicalEvent(String eventName, Date date, String description);\r\n\tpublic String loadMusicalEvent();\r\n\tpublic MusicalEvent getMusicalEvent(int id);\r\n\tpublic void createClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic Client getClient(String passport);\r\n\tpublic Client getClient(int id);\r\n\tpublic void updateClient(String firstname, String surname, String mobilePhone, String firstPhone, String secondPhone, String email,String passport,\r\n\t\t\tString rg, String address, String city, String cpf, Date bornDate);\r\n\tpublic String deleteClient(String idPassport);\r\n\tpublic String getSeats(String musicalEvent);\r\n\tpublic String getClients();\r\n\tpublic int createTicket(int musicalEvent,int seat, int price, Date saleDate, int client, String paidForm);\r\n\tpublic void createCategory(String name, int tax);\r\n\tpublic int updateCategory(String name, int tax);\r\n\tpublic int deleteCategory(String name);\r\n\tpublic SeatCategory findCategory (String name);\r\n\tpublic SeatCategory findCategory (int id);\r\n\tpublic String getCategories();\r\n\tpublic TicketSale getTicketSale(Client c, Seat s, Date date);\r\n\tpublic TicketSale getTicketSale(int id);\r\n\tpublic int getTaxFromCategory(Seat seat);\r\n\tpublic int deleteTicket(int idTicket);\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n}",
"public interface ExternalBlobIO {\n /**\n * Write data to blob store\n * @param in: InputStream containing data to be written\n * @param actualSize: size of data in stream, or -1 if size is unknown. To be used by implementor for optimization where possible\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return locator string for the stored blob, unique identifier created by storage protocol\n * @throws IOException\n * @throws ServiceException\n */\n String writeStreamToStore(InputStream in, long actualSize, Mailbox mbox) throws IOException, ServiceException;\n\n /**\n * Create an input stream for reading data from blob store\n * @param locator: identifier string for the blob as returned from write operation\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return InputStream containing the data\n * @throws IOException\n */\n InputStream readStreamFromStore(String locator, Mailbox mbox) throws IOException;\n\n /**\n * Delete a blob from the store\n * @param locator: identifier string for the blob\n * @param mbox: Mailbox which contains the blob. Can optionally be used by store for partitioning\n * @return true on success false on failure\n * @throws IOException\n */\n boolean deleteFromStore(String locator, Mailbox mbox) throws IOException;\n}",
"@Override\n\tpublic void setStorage() {\n\t\tcom.setStorage(\"256g SSD\");\n\t}",
"public long getTotalStorage() {\n return totalStorage;\n }",
"long getQuantite();",
"private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }",
"public interface Idatabase {\n\n /**\n * This method takes in a username as a string and gets all its accounts.\n * @param username A string holding the name of the user.\n * @return returns a Document.\n */\n Document getAllAccounts(String username);\n\n /**\n * This method creates an account and takes in all the inputs needed to do so.\n * @param username String containing the name of the user.\n * @param accountDisplayName String containing the name of the account display.\n * @param accountFullName String containing the full name.\n * @param balance double containing the balance.\n * @param interestRate double containing the interest rate.\n * @return returns a Document.\n */\n Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);\n\n /**\n * This method takes in a username and password and uses them to login.\n * @param username String containing the name of the user.\n * @param password String containing the password of the user.\n * @return returns a Document.\n */\n Document login(String username, String password);\n\n Document hashedLogin(String username);\n\n Document register(String username, String first_name,\n String last_name, String password, String email);\n\n /**\n * This method takes in a username and star/end date to generate a spending report.\n * @param username String containing the name of the user.\n * @param start Date conatining the starting date.\n * @param end Date containing the ending date.\n * @return returns a Document.\n */\n Document generateSpendingCategoryReport(String username, Date start,\n Date end);\n\n /**\n * This method takes in a source and an amount to create a deposit.\n * @param source String containing the source of the deposit.\n * @param amount A double with the amount of the deposit.\n * @param effectiveDate String containing the date in which the deposit was effective.\n * @return returns a Document.\n */\n Document newDeposit(String source, double amount,\n String effectiveDate);\n\n /**\n * This method takes in a reason, category, amount, and date to make a new withdrawal.\n * @param reason String containing the reason for this withdraw.\n * @param expenseCategory String containing the category of the withdraw.\n * @param amount A double with the amount of the withdraw.\n * @param effectiveDate String containing the date in which the withdraw was effective.\n * @return returns a Document.\n */\n Document newWithdrawal(String reason, String expenseCategory,\n double amount, String effectiveDate);\n\n}",
"public interface Storage {\n boolean StoreResultImages(String query, JsonNode results, int pageNum);\n\n}",
"long storageSize();",
"public abstract int getPersistence();",
"double GetTaskPrice(int Catalog_ID);",
"private FileOperations() throws FileNotFoundException {\r\n\t\tbiddingPersistence = new BiddingPersistence(Constants.biddingsFilePath, \r\n\t\t\t\tConstants.indexBiddingsPath);\r\n\t\tusersPersistence = new UsersPersistence(Constants.usersFilePath,\r\n\t\t\t\tConstants.indexUsersPath);\t\t\r\n\t}",
"int getPokeStorage();",
"java.util.List<stockFilePT102.StockDocument.Stock> getStockList();",
"private FlightFileManager() {\n super(\"src/data/flights.json\");\n flightSet = this.read(Flight.class);\n this.currency = 0;\n }",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"public interface DatabaseManager {\r\n\r\n // NOTE: this is a draft of the interface. More methods will likely be\r\n // added.\r\n\r\n /**\r\n * Uploads the specified feature to the database.\r\n * \r\n * @param file the shapefile (*.shp) to upload\r\n * @param project the project to associate the shapefile with\r\n * @return the id of the feature in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadFeature(File file, String project) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified modis tile to the database.\r\n * \r\n * @param file the .hdf to upload\r\n * @param product the modis product\r\n * @param date the date the data was captured\r\n * @param downloaded the date the data was downloaded from the host\r\n * @param horz the horizontal tile number\r\n * @param vert the vertical tile number\r\n * @return the id of the Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadModis(File file, ModisProduct product, DataDate date, DataDate updated, int horz, int vert) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETo file to the database.\r\n * \r\n * @param file the\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified TRMM file to the database.\r\n * \r\n * @param file\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadTrmm(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected Modis product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param product\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedModis(File file, String project, ModisProduct product, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected ETo product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedEto(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the projected TRMM product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedTrmm(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETa product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETa raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEta(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified EVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the EVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI5 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI5 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI6 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI6 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified SAVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the SAVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified feature and places it in the specified file in\r\n * the shapefile.\r\n * \r\n * @param file the location to save the feature\r\n * @param id the id of the feature\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadFeature(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified Modis tile from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETo raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified TRMM raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected Modis product from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected ETo product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected TRMM product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETa product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEta(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified EVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI5 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi5(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI6 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi6(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified SAVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadSavi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Returns the id of the MODIS raster for the specified product and date.\r\n * \r\n * @param product\r\n * @param date\r\n * @param horz\r\n * @param vert\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETo for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtoId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the TRMM for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getTrmmId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected Modis raster for the specified\r\n * project, product, and date.\r\n * \r\n * @param project\r\n * @param product\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedModisId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected ETo raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedEtoId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected TRMM raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedTrmmId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETa raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtaId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the EVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEviId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI5 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi5Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI6 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi6Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the SAVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getSaviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Uploads the specified zonal statistics.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @param zonalStatistics\r\n */\r\n void uploadZonalStatistic(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index,\r\n ZonalStatistic zonalStatistics) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the zonal statistics for the specified parameters.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @return the id or -1 if it is not found\r\n */\r\n int getZonalStatisticId(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index)\r\n throws SQLException;\r\n\r\n /**\r\n * Returns zonal statistics for the specified zonal statistic id.\r\n * \r\n * @param id\r\n * @return zonal statistics\r\n * @throws SQLException\r\n */\r\n ZonalStatistic getZonalStatistic(int id) throws SQLException;\r\n}",
"public interface TransportRepository {\r\n\r\n BigDecimal getTransportUnitPrice(TransportType transportType);\r\n}",
"private void makeDeposit() {\n\t\t\r\n\t}",
"public interface Storage extends ClientListStorage, UserPrefsStorage, PolicyListStorage {\n\n @Override\n Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;\n\n @Override\n void saveUserPrefs(ReadOnlyUserPrefs userPrefs) throws IOException;\n\n @Override\n Path getClientListFilePath();\n\n @Override\n Optional<ReadOnlyClientList> readClientList() throws DataConversionException, IOException;\n\n @Override\n void saveClientList(ReadOnlyClientList clientList) throws IOException;\n\n @Override\n Path getPolicyListFilePath();\n\n @Override\n Optional<PolicyList> readPolicyList() throws DataConversionException, IOException;\n\n @Override\n void savePolicyList(PolicyList policyList) throws IOException;\n}",
"public interface FundRecordService {\n\n Page<FundRecordDTO> pageList(HashMap<String, Object> params);\n\n FundRecordDTO save(FundRecordDTO hppVideoDTO);\n\n FundRecordDTO createFundRecordDTO(FundRecordDTO hppVideoDTO);\n\n HashMap<String, Object> checkCreateFundRecordDTO(FundRecordDTO hppVideoDTO);\n\n FundRecordDTO findOne(String id);\n\n List<FundRecordDTO> findAll();\n\n /*\n for app 基金入伙记录\n */\n HashMap<String, Object> findListByFundSignalId(String fundSignalId);\n\n /*\n 我的入伙记录\n */\n List<FundRecordDTO> findMyFund(String userId);\n \n void delete(String id);\n\n /*\n 计算总入伙金额\n */\n Double sumFundByFundSignalId(String id);\n}",
"public void initiateStore() {\r\n\t\tURLConnection urlConnection = null;\r\n\t\tBufferedReader in = null;\r\n\t\tURL dataUrl = null;\r\n\t\ttry {\r\n\t\t\tdataUrl = new URL(URL_STRING);\r\n\t\t\turlConnection = dataUrl.openConnection();\r\n\t\t\tin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] splittedLine = inputLine.split(\";\");\r\n\t\t\t\t// an array of 4 elements, the fourth element\r\n\t\t\t\t// the first three elements are the properties of the book.\r\n\t\t\t\t// last element is the quantity.\r\n\t\t\t\tBook book = new Book();\r\n\t\t\t\tbook.setTitle(splittedLine[0]);\r\n\t\t\t\tbook.setAuthor(splittedLine[1]);\r\n\t\t\t\tBigDecimal decimalPrice = new BigDecimal(splittedLine[2].replaceAll(\",\", \"\"));\r\n\t\t\t\tbook.setPrice(decimalPrice);\r\n\t\t\t\tfor(int i=0; i<Integer.parseInt(splittedLine[3]); i++)\r\n\t\t\t\t\tthis.addBook(book);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(!in.equals(null)) in.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public interface IPLMBasicFeeInfoService {\n\n void save(IMetaObjectImpl object);\n\n //费率信息\n\n void delete(int objid);\n void deleteByIds_(String objids);\n void deleteByProductId(int productid);\n\n IMetaDBQuery getSearchList(Map<String, String> map);\n IMetaObjectImpl getInfoById(int objid);\n\n public IMetaDBQuery queryByids(String objids);\n List<Map> getListByProductId(int productid);\n\n //获得管理费统计信息\n\n List<Map> getManageFeeCountList(Map map);\n\n\n\n //利率要素\n IMetaObjectImpl getInfoById_feeRate(int objid);\n void delete_feeRate(int objid);\n void deleteByIds__feeRate(String objids);\n void deleteByProductId_feeRate(int productid);\n\n List<Map> getListByProductId_feeRate(int productid);\n\n\n}",
"void saveStorage(StorageEntity storage);",
"public savingsAccount(){\n balance = 0;\n String[] sTransactions = new String[1000];\n savingTransactions = sTransactions;\n }",
"public void addStoreStock(String name, int amount);",
"int insert(FinancialManagement record);",
"private void loadOrder(LocalDate date) throws PersistenceException{\n orders.clear();\n ORDER_FILE = \"Order_\"+ date+\".txt\";\n Scanner scanner;\n File file = new File(ORDER_FILE);\n if(file.exists()){\n \n \n try {\n scanner = new Scanner(\n new BufferedReader(\n new FileReader(ORDER_FILE)));\n } catch (FileNotFoundException e) {\n throw new PersistenceException(\n \"-_- Could not load data into memory.\",e);\n } \n scanner.nextLine();\n String currentLine;\n String[] currentTokens = new String[13]; \n while (scanner.hasNextLine()) {\n currentLine = scanner.nextLine();\n currentTokens = currentLine.split(DELIMITER);\n \n\n Order currentOrder = new Order(Integer.parseInt((currentTokens[0])));\n \n currentOrder.setOrderDate(LocalDate.parse(currentTokens[1]));\n currentOrder.setClientName(currentTokens[2]);\n currentOrder.setState(currentTokens[3]);\n currentOrder.setStateTax(new BigDecimal(currentTokens[4]));\n currentOrder.setProduct(currentTokens[5]);\n currentOrder.setArea(new BigDecimal(currentTokens[6]));\n currentOrder.setMaterialCost(new BigDecimal(currentTokens[7]));\n currentOrder.setLaborCost(new BigDecimal(currentTokens[8]));\n currentOrder.setTotalMaterialCost(new BigDecimal(currentTokens[9]));\n currentOrder.setTotalLaborCost(new BigDecimal(currentTokens[10]));\n currentOrder.setTotalTax(new BigDecimal(currentTokens[11]));\n currentOrder.setTotalCost(new BigDecimal(currentTokens[12]));\n \n orders.put(currentOrder.getOrderNumber(), currentOrder);\n }\n scanner.close();\n } else{\n try{\n file.createNewFile();\n } catch (IOException ex){\n throw new PersistenceException(\"Error! No orders from that date.\", ex);\n }\n }\n }",
"void savingListRecurringExpenditure(Ui ui) throws BankException, TransactionException {\n throw new BankException(\"This account does not support this feature\");\n }",
"private void loadData() {\n this.financeDataList = new ArrayList<>();\n }",
"public void setTotalStorage(long totalStorage) {\n this.totalStorage = totalStorage;\n }",
"public interface StockItem {\n String getSymbol();\n\n String getName();\n\n BigDecimal getValue();\n\n int getVolume();\n\n Date getLastTradeDateTime();\n\n BigDecimal getGains();\n\n BigDecimal getOpenValue();\n\n BigDecimal getCloseValue();\n}",
"public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}",
"Stock retrieveStock(String symbol);",
"public interface IStorageService {\n List<Storage> findStorageList();\n}",
"protected static GoalList importStorage(String filePath) throws HaBitStorageException {\n GoalList goalList = new GoalList();\n File storageFile = new File(filePath);\n Scanner s;\n String line;\n\n try {\n s = new Scanner(storageFile);\n\n while (s.hasNext()) {\n line = s.nextLine();\n String[] lineData = line.split(DELIMITER);\n\n updateGoalList(lineData, goalList);\n }\n } catch (FileNotFoundException | NumberFormatException | ParseException e) {\n throw new HaBitStorageException(e.getMessage());\n } catch (HaBitCommandException e) {\n throw new HaBitStorageException(ERROR_INVALID_GOAL_INDEX);\n }\n return goalList;\n }",
"public void processInternalBilling(ReturnDocument rdoc) {\r\n\r\n if (ObjectUtils.isNull(rdoc.getOrderDocument())\r\n || !this.returnOrderBillingDao.hasAccountsForBilling(rdoc.getDocumentNumber()))\r\n return;\r\n\r\n String docNumber = rdoc.getDocumentNumber();\r\n\r\n String warehouseCode = rdoc.getOrderDocument().getWarehouseCd();\r\n\r\n Map<String, List<FinancialInternalBillingItem>> returnedOrderLines = this.returnOrderBillingDao\r\n .getReturnedOrderLines(docNumber);\r\n Set<String> keys = returnedOrderLines.keySet();\r\n Map<String, List<FinancialAccountingLine>> returnedAccountingLines = getReturnBillingAccountingLines(rdoc);\r\n Warehouse warehouse = rdoc.getOrderDocument().getWarehouse();\r\n\r\n if (warehouse == null)\r\n warehouse = StoresPersistableBusinessObject.getObjectByPrimaryKey(Warehouse.class,\r\n warehouseCode);\r\n\r\n for (String key : keys) {\r\n List<FinancialInternalBillingItem> lineItems = returnedOrderLines.get(key);\r\n List<FinancialAccountingLine> acctLines = returnedAccountingLines.get(key);\r\n if (warehouse != null && warehouse.isActive()) {\r\n FinancialCapitalAssetInformation capitalAssetInformation = null;\r\n String astInfoId = null;\r\n if (key.contains(\"-\") && (astInfoId = key.split(\"-\")[1]) != null) {\r\n capitalAssetInformation = new FinancialCapitalAssetInformation();\r\n MMCapitalAssetInformation assetInfo = SpringContext.getBean(\r\n BusinessObjectService.class).findBySinglePrimaryKey(\r\n MMCapitalAssetInformation.class, astInfoId);\r\n if (assetInfo != null) {\r\n adapt(assetInfo, capitalAssetInformation);\r\n List<MMCapitalAssetInformationDetail> assetInformationDetails = assetInfo\r\n .getCapitalAssetInformationDetails();\r\n if (assetInformationDetails != null) {\r\n for (MMCapitalAssetInformationDetail source : assetInformationDetails) {\r\n FinancialCapitalAssetInformationDetail target = new FinancialCapitalAssetInformationDetail();\r\n adapt(source, target);\r\n capitalAssetInformation.getCapitalAssetInformationDetails().add(\r\n target);\r\n }\r\n }\r\n }\r\n }\r\n DocumentHeader ibDocHeader = processInternalBilling(warehouse, lineItems,\r\n acctLines, capitalAssetInformation);\r\n if (ibDocHeader != null) {\r\n String ibDocNumber = ibDocHeader.getDocumentNumber();\r\n if (astInfoId != null) {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n if (detail.getOrderDetailId().toString().equals(astInfoId)) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n else {\r\n for (ReturnDetail detail : rdoc.getReturnDetails()) {\r\n detail.setCreditDocumentNumber(ibDocNumber);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // LOG error here\r\n LOG.warn(\"Warehouse \" + lineItems.get(0).getWarehouseCode()\r\n + \" is not valid, so batch did not post charges to the depts\");\r\n }\r\n }\r\n\r\n }",
"public abstract String generateStorageString();",
"int getQuantite();",
"int getQuantite();",
"BigDecimal getCacheSpaceAvailable();",
"public interface StorageService {\n\n /**\n * List all the {@link Bucket}s in a given {@link com.google.openbidder.ui.entity.Project}.\n */\n List<Bucket> listAllBuckets(ProjectUser projectUser);\n\n /**\n * List all the objects in a given {@link Bucket}.\n */\n BucketContents listAllObjectsInBucket(ProjectUser projectUser, String bucketName);\n\n /**\n * List all objects in a given {@link Bucket} with a prefix.\n */\n BucketContents listAllObjectsInBucket(\n ProjectUser projectUser,\n String bucketName,\n String objectPrefix);\n\n /**\n * Remove the specified object.\n */\n void deleteObject(ProjectUser projectUser, String bucketName, String objectName);\n}",
"public Storage(String filePath) {\n File file = new File(filePath);\n this.file = file;\n }",
"public static void main(String[] args) {\n\t\tString fileName =\"5 Mins_Bid_2003.05.04_2017.07.31.csv\";\r\n\t\t\t\t\t\t\r\n\t\tString pathEURUSD = \"C:\\\\fxdata\\\\EURUSD_UTC_\"+fileName;\r\n\t\tString pathGBPUSD = \"C:\\\\fxdata\\\\GBPUSD_UTC_\"+fileName;\r\n\t\tString pathAUDUSD = \"C:\\\\fxdata\\\\AUDUSD_UTC_\"+fileName;\r\n\t\tString pathUSDJPY = \"C:\\\\fxdata\\\\USDJPY_UTC_\"+fileName;\r\n\t\tString pathUSDCAD = \"C:\\\\fxdata\\\\USDCAD_UTC_\"+fileName;\r\n\t\tString pathNZDUSD = \"C:\\\\fxdata\\\\NZDUSD_UTC_\"+fileName;\r\n\t\tString pathEURJPY = \"C:\\\\fxdata\\\\EURJPY_UTC_\"+fileName;\r\n\t\tString pathEURGBP = \"C:\\\\fxdata\\\\EURGBP_UTC_\"+fileName;\r\n\t\tString pathEURAUD = \"C:\\\\fxdata\\\\EURAUD_UTC_\"+fileName;\r\n\t\tString pathCADJPY = \"C:\\\\fxdata\\\\CADJPY_UTC_\"+fileName;\r\n\t\tString pathAUDJPY = \"C:\\\\fxdata\\\\AUDJPY_UTC_\"+fileName;\r\n\t\tString pathNZDJPY = \"C:\\\\fxdata\\\\NZDJPY_UTC_\"+fileName;\r\n\t\tString pathGBPJPY = \"C:\\\\fxdata\\\\GBPJPY_UTC_\"+fileName;\r\n\t\tString pathGBPCAD = \"C:\\\\fxdata\\\\GBPCAD_UTC_\"+fileName;\r\n\t\tString pathGBPAUD = \"C:\\\\fxdata\\\\GBPAUD_UTC_\"+fileName;\r\n\t\t\r\n\t\tArrayList<String> paths = new ArrayList<String>();\r\n\t\tpaths.add(pathEURUSD);\r\n\t\tpaths.add(pathGBPUSD);\r\n\t\tpaths.add(pathAUDUSD);\r\n\t\tpaths.add(pathUSDJPY);\r\n\t\tpaths.add(pathEURJPY);\r\n\t\tpaths.add(pathEURAUD);\r\n\t\tpaths.add(pathGBPJPY);\r\n\t\tpaths.add(pathGBPAUD);\r\n\t\t\r\n\t\tint limit = paths.size()-1;\r\n\t\tint initial = 0;\r\n\t\tlimit = 0;\r\n\t\tArrayList<QuoteShort> dataI \t\t= null;\r\n\t\tArrayList<QuoteShort> dataS \t\t= null;\r\n\t\tfor (int i=initial;i<=limit;i++){\r\n\t\t\tString path = paths.get(i);\t\r\n\t\t\tString pairName = paths.get(i).split(\"\\\\\\\\\")[2].substring(0, 6);\r\n\t\t\tif (path.contains(\"UTC\")){\r\n\t\t\t\tdataI \t\t= DAO.retrieveDataShort5m(path, DataProvider.DUKASCOPY_FOREX3);\r\n\t\t\t}else{\r\n\t\t\t\tdataI \t\t= DAO.retrieveDataShort5m(path, DataProvider.DUKASCOPY_FOREX4);\r\n\t\t\t}\r\n\t\t\tTestLines.calculateCalendarAdjustedSinside(dataI);\r\n\t\t\t//TradingUtils.cleanWeekendDataSinside(dataI); \t\r\n\t\t\tdataS = TradingUtils.cleanWeekendDataS(dataI); \t\t\t\r\n\t\t\tArrayList<QuoteShort> data = null;\r\n\t\t\tdata = dataS;\r\n\t\t\t//System.out.println(\"total data: \"+data.size());\r\n\t\t\tArrayList<Integer> maxMins = TradingUtils.calculateMaxMinByBarShortAbsoluteInt(data);\r\n\t\t\t\r\n\t\t\tint begin = 4000000;\r\n\t\t\tint end = 5000000;\r\n\t\t\tint tp = 10;\r\n\t\t\tint sl = 20;\r\n\t\t\tdouble comm = 1.4;\r\n\t\t\t\r\n\t\t\tfor (int h1=0;h1<=0;h1+=1){\r\n\t\t\t\tint h2 = h1+9;\r\n\t\t\t\tfor (int thr=0;thr<=1000;thr+=100){\r\n\t\t\t\t\tfor (int diff=20;diff<=20;diff+=10){\r\n\t\t\t\t\t\tfor (tp=10;tp<=10;tp++){\r\n\t\t\t\t\t\t\tfor (sl=40000;sl<=40000;sl+=50){\r\n\t\t\t\t\t\t\t\tTestRetraces.testRetracev4(data, maxMins, begin, end, h1, h2, thr, tp,sl,diff);\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\t\r\n\t\t\t\r\n\t\t\t/*for (begin=1;begin<=1;begin+=100000){\r\n\t\t\t\tend = begin + 7000000;\r\n\t\t\t\tfor (int nBars=1000;nBars<=1000;nBars+=12){\r\n\t\t\t\t\tfor (int h1=16;h1<=16;h1+=1){\r\n\t\t\t\t\t\tint h2 = h1+7;\r\n\t\t\t\t\t//for (int nBars=120;nBars<=120;nBars++){\r\n\t\t\t\t\t\t//TestRetraces.testMaxRetracing(data, begin, end, h1, h2);\r\n\t\t\t\t\t\tfor (int thr=2000;thr<=2000;thr+=100){\r\n\t\t\t\t\t\t\t//TestRetraces.testMaxRetracingBars(data,maxMins, begin, end, h1, h2,thr,nBars);\r\n\t\t\t\t\t\t\tfor (int minPips=10;minPips<=10;minPips++){\r\n\t\t\t\t\t\t\t\tfor (int tries=10;tries<=10;tries++){\r\n\t\t\t\t\t\t\t\t\tfor (tp=10;tp<=10;tp++){\r\n\t\t\t\t\t\t\t\t\t\t//TestRetraces.testRetraceFailsInARow(data, maxMins, begin, end, h1, h2, thr, nBars, minPips, tp, tries);\r\n\t\t\t\t\t\t\t\t\t\tfor (sl=100;sl<=100;sl+=50){\r\n\t\t\t\t\t\t\t\t\t\t\tfor (int minDayLost=1;minDayLost<=10;minDayLost++){\r\n\t\t\t\t\t\t\t\t\t\t\t\tTestRetraces.testRetracev2(data, maxMins, begin, end, h1, h2, thr, nBars, minPips, tp,sl, minDayLost);\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}\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\t\r\n\t\t}\r\n\t}",
"RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);",
"private static void depositAmount(String format, Bank bank, String username) {\n\n\t\tObjectOutputStream oos = null;\n\t\tString outputFile = \"resource/Transactions.txt\";\n\n\t\ttry {\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n\t\t\tbank.transactions.add(0, format);\n\n//\t\t\tfor (String t:bank.transactions)\n\t\t\toos.writeObject(bank.transactions);\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"serilization is done\");\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\tif (oos != null)\n\t\t\t\ttry {\n\t\t\t\t\toos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t}\n\n\t}",
"private void returnDeposit(String paymentInfo) {\n }",
"public RockyStorage(String exportName) {\n\t\t\tsuper(exportName);\n\t\t\tSystem.out.println(\"RockyStorage constructor entered\");\n\t\t\tif (RockyController.backendStorage.equals(RockyController.BackendStorageType.DynamoDBLocal)) {\n\t\t\t\t//pBmStore = new ValueStorageDynamoDB(pBmTableName, true);\n\t\t\t\t//cloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, true);\n\t\t\t\t//cloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, true);\n\t\t\t\tcloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, ValueStorageDynamoDB.AWSRegionEnum.LOCAL);\n\t\t\t\tcloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, ValueStorageDynamoDB.AWSRegionEnum.LOCAL);\n\t\t\t} else if (RockyController.backendStorage.equals(RockyController.BackendStorageType.DynamoDB_SEOUL)) {\n\t\t\t\t//pBmStore = new ValueStorageDynamoDB(pBmTableName, false);\n\t\t\t\t//cloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, false);\n\t\t\t\t//cloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, false);\n\t\t\t\tcloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, ValueStorageDynamoDB.AWSRegionEnum.SEOUL);\n\t\t\t\tcloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, ValueStorageDynamoDB.AWSRegionEnum.SEOUL);\n\t\t\t} else if (RockyController.backendStorage.equals(RockyController.BackendStorageType.DynamoDB_LONDON)) {\n\t\t\t\t//pBmStore = new ValueStorageDynamoDB(pBmTableName, false);\n\t\t\t\t//cloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, false);\n\t\t\t\t//cloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, false);\n\t\t\t\tcloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, ValueStorageDynamoDB.AWSRegionEnum.LONDON);\n\t\t\t\tcloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, ValueStorageDynamoDB.AWSRegionEnum.LONDON);\n\t\t\t} else if (RockyController.backendStorage.equals(RockyController.BackendStorageType.DynamoDB_OHIO)) {\n\t\t\t\t//pBmStore = new ValueStorageDynamoDB(pBmTableName, false);\n\t\t\t\t//cloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, false);\n\t\t\t\t//cloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, false);\n\t\t\t\tcloudEpochBitmaps = new ValueStorageDynamoDB(cloudEpochBitmapsTableName, ValueStorageDynamoDB.AWSRegionEnum.OHIO);\n\t\t\t\tcloudBlockSnapshotStore = new ValueStorageDynamoDB(cloudBlockSnapshotStoreTableName, ValueStorageDynamoDB.AWSRegionEnum.OHIO);\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Error: Unknown backendStorageType\");\n\t \t\t \tSystem.exit(1);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tlocalEpochBitmaps = new ValueStorageLevelDB(localEpochBitmapsTableName);\n\t\t\t\tlocalBlockSnapshotStore = new ValueStorageLevelDB(localBlockSnapshotStoreTableName);\n\t\t\t\tversionMap = new ValueStorageLevelDB(versionMapTableName);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tnumBlock = (int) (size() / 512); //blocksize=512bytes\n\t\t\tpresenceBitmap = new BitSet(numBlock);\n\t\t\tdirtyBitmap = new BitSet(numBlock);\n\t\t\tpresenceBitmap.set(0, numBlock);\n\t\t\tdirtyBitmap.clear();\n\t\t\tqueue = new LinkedBlockingDeque<WriteRequest>();\n\t\t\tepochCnt = getEpoch();\n\t\t\tprefetchedEpoch = getPrefetchedEpoch();\n\t\t\t//System.out.println(\">>>> epochCn=\" + epochCnt);\n\t\t\twriteMap = new HashMap<Integer, byte[]>();\n\t\t\tCloudPackageManager cpm = new CloudPackageManager(queue);\n\t\t\tcloudPackageManagerThread = new Thread(cpm);\n\t\t\tPrefetcher prefetcher = new Prefetcher(this);\n\t\t\tprefetcherThread = new Thread(prefetcher);\n\t\t\tRockyController.role = RockyControllerRoleType.None;\n\t\t\troleSwitchFlag = false;\n\t\t\troleSwitcherThread = new Thread(new RoleSwitcher());\n\t\t\troleSwitcherThread.start();\n\t\t\tcui = new ControlUserInterfaceRunner(roleSwitcherThread);\n\t\t\tcui.rockyStorage = this;\n\t\t\tcontrolUIThread = new Thread(cui);\n\t\t\tcontrolUIThread.start();\n\t\t}",
"public void createStorageFile() throws IoDukeException {\n PrintWriter writer = null;\n try {\n writer = getStorageFile();\n } catch (IOException e) {\n throw new IoDukeException(\"Error opening task file for reading\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }",
"void getPersonQrData(String storeCode);",
"@Override\n public StockInfo[] getStockInfoFromFile(String filePath) throws UnsupportedEncodingException {\n //TODO: write your code here\n \tFileInputStream file=null;\n\n\t\ttry {\n\t\t\tfile=new FileInputStream(filePath);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tInputStreamReader files=null;\n\t\ttry{\n\t\t\tfiles=new InputStreamReader(file,\"utf-8\");\n\t\t}catch (UnsupportedEncodingException el){\n\t\t\tel.printStackTrace();\n\t\t}\n\t\tBufferedReader bufferedreader = new BufferedReader(files);\n\t\tArrayList<StockInfo> list = new ArrayList<StockInfo>();\n\t\tString t=null;\n\t\ttry {\n\t\t\twhile((t=bufferedreader.readLine())!=null) {\n\t\t\t\tString []node=t.split(\"\\\\s+\");\n\t\t\t\tStockInfo record=new StockInfo();\n\t\t\t\trecord.setId(node[0]);\n\t\t\t\trecord.setTitle(node[1]);\n\t\t\t\trecord.setAuthor(node[2]);\n\t\t\t\trecord.setDate(node[3]);\n\t\t\t\trecord.setLastUpdate(node[4]);\n\t\t\t\trecord.setContent(node[5]);\n\t\t\t\trecord.setAnswerAuthor(node[6]);\n\t\t\t\trecord.setAnswer(node[7]);\n\t\t\t\tlist.add(record);\n\n\t\t\t}\n\t\t\tbufferedreader.close();\n\t\t\tfiles.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tStockInfo [] newdate=new StockInfo[list.size()];\n\t\tint i=0;\n\t\twhile(i<list.size()) {\n\t\t\tnewdate[i]=list.get(i);\n\t\t\ti++;\n\t\t}\n\t\treturn newdate;\n }",
"private void uploadFromDataStorage() {\n }",
"int insert(FinanceAccount record);",
"int retrieve(FileInputSplit fileInputSplit);",
"public int getStorageplace() {\n\treturn storageplace;\n}",
"public interface MetricProvider {\n\n /**\n * Calculate and return metric value(s) for specified asset and time range.\n *\n * @param financialParameter financial analysis parameter\n * @param dateFrom time range date start\n * @param dateTo time range date end\n * @return Map<Date, Double>\n */\n Map<Date, Double> getValues(final FinancialAnalysisParameter financialParameter,\n final Date dateFrom, final Date dateTo);\n\n /**\n * Calculate and update metric value(s) for specified asset and time range.\n *\n * @param financialParameter financial analysis parameter\n * @param dateFrom time range date start\n * @param dateTo time range date end\n */\n void calculateValues(final FinancialAnalysisParameter financialParameter, final Date dateFrom,\n final Date dateTo);\n\n /**\n * Setter for metric.\n *\n * @param metric financial metric.\n */\n void setMetric(final FinancialMetric metric);\n\n /**\n * Returns true if financial is applicable for specified asset type.\n *\n * @param assetType asset type\n * @return boolean\n */\n boolean isApplicableForAssetType(final AssetType assetType);\n\n /**\n * Returns true if financial is applicable for all asset types.\n *\n * @return boolean\n */\n boolean isApplicableForAllAssetTypes();\n\n /**\n * Returns an sql string with asset type restriction for finanal_pa.\n *\n * @return String\n */\n String getAssetTypeRestriction();\n\n /**\n * Returns error message string.\n * \n * @return String\n */\n String getErrorMessage();\n\n}",
"public static void init() {\n \n if(stock==null){\n stock=Analyser.stock;\n //for each stock, it price and the time\n// stoc\n// String[] listedCompanies = new NSELoader(20).getAllStocks();\n// \n// for (int i =0; i < listedCompanies.length; i++) {\n// \n// String stockName = listedCompanies[i];\n// float price = 0;\n// int time = 0;\n// ArrayList<String> value = new ArrayList<>();\n// String data = time + \":\" + price;// ':' is used as boundary token\n// value.add(data);\n// stock.put(stockName, value);\n// }\n \n\n }\n }",
"@Kpi(\"ID_KPI_AGENCY_EXPORT_STOCK_CREATE_UNDER_LYING\")\n @Secured(\"@\")\n public void doCreateUnderlyingStock() {\n try {\n //validate ngay nhap phai la dinh dang so, va phai la so nguyen duong\n List<StockTransDetailDTO> lsDetailDTOs = Lists.newArrayList();\n List<StockTransFullDTO> lsStockTransFull = listProductTag.getLsStockTransFull();\n Long totalDepositPrice = 0L;\n for (StockTransFullDTO stockTransFullDTO : lsStockTransFull) {\n StockTransDetailDTO stockTransDetailDTO = new StockTransDetailDTO();\n stockTransDetailDTO.setStockTransDetailId(stockTransFullDTO.getStockTransDetailId());\n stockTransDetailDTO.setProdOfferId(stockTransFullDTO.getProdOfferId());\n stockTransDetailDTO.setStateId(stockTransFullDTO.getStateId());\n stockTransDetailDTO.setQuantity(stockTransFullDTO.getQuantity());\n stockTransDetailDTO.setLstStockTransSerial(stockTransFullDTO.getLstSerial());\n stockTransDetailDTO.setTableName(stockTransFullDTO.getTableName());\n stockTransDetailDTO.setProdOfferTypeId(stockTransFullDTO.getProductOfferTypeId());\n stockTransDetailDTO.setDepositPrice(stockTransFullDTO.getDepositPrice());\n lsDetailDTOs.add(stockTransDetailDTO);\n if (!DataUtil.isNullObject(stockTransFullDTO.getDepositPrice())) {\n totalDepositPrice += stockTransFullDTO.getDepositPrice() * stockTransFullDTO.getQuantity();\n }\n }\n StockTransActionDTO stockTransActionDTO = orderStockTag.getStockTransActionDTO();\n StockTransDTO stockTransDTO = orderStockTag.getStockTransDTO();\n stockTransDTO.setStockTransActionId(getStockTransActionId());\n stockTransDTO.setCreateUserIpAdress(BccsLoginSuccessHandler.getIpAddress());\n stockTransDTO.setDepositPrice(totalDepositPrice);\n stockTransDTO.setProcessOffline(checkOffline ? Const.PROCESS_OFFLINE : \"\");\n stockTransDTO.setShopId(staffDTO.getShopId());\n BaseMessage message = executeStockTransService.executeStockTrans(Const.STOCK_TRANS.EXPORT_AGENT, Const.STOCK_TRANS_TYPE.EXPORT, stockTransDTO, stockTransActionDTO, lsDetailDTOs, requiredRoleMap);\n if (!DataUtil.isNullOrEmpty(message.getErrorCode())) {\n throw new LogicException(message.getErrorCode(), message.getKeyMsg(), message.getParamsMsg());\n }\n doSearchStockTrans();\n canPrint = true;\n reportSuccess(\"frmExportNote:msgExport\", \"export.stock.success\");\n } catch (LogicException ex) {\n logger.error(ex.getMessage(), ex);\n reportError(\"frmExportNote:msgExport\", ex);\n topPage();\n } catch (Exception ex) {\n logger.error(ex.getMessage(), ex);\n reportError(\"frmExportNote:msgExport\", \"common.error.happened\", ex);\n topPage();\n }\n\n }",
"public interface ITradingPriceTrackingAutoPricing {\r\n void savePriceTrackingAutoPricing(TradingPriceTrackingAutoPricing tradingPriceTrackingAutoPricing) throws Exception;\r\n\r\n TradingPriceTrackingAutoPricing selectPriceTrackingAutoPricingByListingDateId(Long listingDateId);\r\n\r\n List<PriceTrackingAutoPricingQuery> selectPriceTrackingAutoPricingList(Map map,Page page);\r\n\r\n void deletePriceTrackingAutoPricing(TradingPriceTrackingAutoPricing tradingPriceTrackingAutoPricing) throws Exception;\r\n\r\n TradingPriceTrackingAutoPricing selectPriceTrackingAutoPricingById(Long id);\r\n\r\n List<TradingPriceTrackingAutoPricing> selectPriceTrackingAutoPricings();\r\n}",
"private void initial(){\n storeAccount(\"201799990001030047\");\n }",
"DataStore getDataStore ();"
]
| [
"0.5960877",
"0.5741238",
"0.56264985",
"0.5551811",
"0.5536586",
"0.5435039",
"0.5425347",
"0.53958666",
"0.5377941",
"0.533917",
"0.5339009",
"0.52234393",
"0.5200576",
"0.51913136",
"0.5184164",
"0.5171658",
"0.5156685",
"0.5141168",
"0.5134175",
"0.512346",
"0.5113366",
"0.50798845",
"0.50775665",
"0.5075001",
"0.50704527",
"0.5067073",
"0.50493634",
"0.5040608",
"0.5035869",
"0.5032286",
"0.5022988",
"0.5021783",
"0.50175744",
"0.5010984",
"0.49891803",
"0.4985778",
"0.49832562",
"0.4981186",
"0.49772716",
"0.49603635",
"0.4960251",
"0.49426126",
"0.4942343",
"0.49349797",
"0.49298677",
"0.49295366",
"0.49247774",
"0.49201202",
"0.4916899",
"0.4907905",
"0.4884117",
"0.4879571",
"0.48769984",
"0.4876205",
"0.48720816",
"0.4870203",
"0.4867173",
"0.48533118",
"0.48522475",
"0.48466817",
"0.48335525",
"0.48231226",
"0.48229635",
"0.4822853",
"0.4816485",
"0.48140725",
"0.4813244",
"0.48124617",
"0.48078504",
"0.48054203",
"0.48027688",
"0.47936034",
"0.47923186",
"0.47865516",
"0.47860688",
"0.4781151",
"0.47771743",
"0.4776334",
"0.47756565",
"0.47756565",
"0.47708818",
"0.47585142",
"0.47559425",
"0.4753634",
"0.4746204",
"0.47456628",
"0.47439694",
"0.47420174",
"0.47344786",
"0.4733775",
"0.47325045",
"0.47287008",
"0.472843",
"0.4727777",
"0.47262666",
"0.47228518",
"0.47189483",
"0.47155824",
"0.47154924",
"0.47150734",
"0.47146124"
]
| 0.0 | -1 |
===================== Record List Storage methods ====================================== | @Override
public Optional<UniqueRecordList> readRecordList() throws DataConversionException, IOException {
return readRecordList(recordListFilePath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeRecordsToFile(List<IRecord> recordList) throws IOException;",
"ListRecordHistoryResult listRecordHistory(ListRecordHistoryRequest listRecordHistoryRequest);",
"public List<Record>getRecords(){\n List<Record>recordList=new ArrayList<>();\n RecordCursorWrapper currsorWrapper=queryRecords(null,null);\n try{\n currsorWrapper.moveToFirst();\n while(!currsorWrapper.isAfterLast()){\n recordList.add(currsorWrapper.getRecord());\n currsorWrapper.moveToNext();\n }\n }finally {\n currsorWrapper.close();\n }\n return recordList;\n }",
"public List<Record> listAllRecords();",
"@JsonProperty(\"Records\") abstract List<?> getRecords();",
"private boolean addRecordsToList(EntityCursor<RepTestData> cursor) \n throws DatabaseException {\n\n if (isReverseRead) {\n RepTestData data = cursor.last(null);\n if (data == null) {\n return true;\n } else {\n list.add(data);\n while ((data = cursor.prev(null)) != null) {\n list.add(data);\n }\n }\n } else {\n RepTestData data = cursor.first(null);\n if (data == null) {\n return true;\n } else {\n list.add(data);\n while ((data = cursor.next(null)) != null) {\n list.add(data);\n }\n }\n }\n\n return false;\n }",
"@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}",
"public ArrayList<Record> getAllSavedRecords() {\n ArrayList<Record> resultList = new ArrayList<>();\n\n File baseFolder = getBaseFolder();\n if (baseFolder != null) {\n String[] allRecords = baseFolder.list();\n if (allRecords == null || allRecords.length == 0) {\n return resultList;\n }\n\n for (String eachRecord : allRecords) {\n Record record = loadRecordFromFolderName(eachRecord);\n if (record == null) {\n continue;\n }\n updateRecordCurrentSize(record);\n updateRecordCurrentImageCount(record);\n resultList.add(record);\n }\n }\n\n if (resultList.size() > 0) {\n sortRecordList(resultList);\n }\n return resultList;\n }",
"public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}",
"public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}",
"private List<String> readRecord(JsonObject workItem) throws AutomicException {\n List<String> record = new ArrayList<String>(resultFields.size());\n for (String field : resultFields) {\n JsonElement jeObj = workItem.get(field);\n String value = null;\n if (jeObj != null && jeObj.isJsonPrimitive()) {\n value = jeObj.getAsString();\n } else if (jeObj != null && jeObj.isJsonObject()) {\n JsonObject jObj = (JsonObject) jeObj;\n if (jObj.has(\"_refObjectName\")) {\n value = jObj.get(\"_refObjectName\").getAsString();\n }\n }\n record.add(value);\n }\n return record;\n }",
"public List<String> getRecordings(){\n findRecordings();\n return _records;\n }",
"List<T> readList();",
"static Vector< DbRecord > ReadRecords( String szDbDir )\n {\n File DbDir;\n File[] files;\n Vector<DbRecord> Users = new Vector<DbRecord>( 10, 10 );\n\n // Read all records to identify\n DbDir = new File( szDbDir );\n files = DbDir.listFiles();\n\n if( (files == null) || (files.length == 0) )\n {\n return Users;\n }\n\n for( int iFiles = 0; iFiles < files.length; iFiles++)\n {\n try\n {\n if( files[iFiles].isFile() )\n {\n DbRecord User = new DbRecord( files[iFiles].getAbsolutePath() );\n Users.add( User );\n }\n }\n catch( FileNotFoundException e )\n {\n // The record has invalid data. Skip it and continue processing.\n }\n catch( NullPointerException e )\n {\n JOptionPane.showConfirmDialog(null, \"erro\"+e);\n }\n catch( AppException e )\n {\n // The record has invalid data or access denied. Skip it and continue processing.\n }\n }\n \n return Users;\n }",
"public RecordsList listRecords(ResumptionToken resumptionToken) throws OAIException {\n try {\n \tString query = builder.buildListRecordsQuery(resumptionToken);\n \tDocument document = reader.read(query);\n return new RecordsList(document);\n } catch (ErrorResponseException e) {\n \tthrow e;\n } catch (Exception e) {\n throw new OAIException(e);\n }\n }",
"void addItem(DataRecord record);",
"private void updateRecords() throws Exception {\n if (records==null){\n records = new ArrayList<>();\n if (shp!=null){\n Iterator<Record> it = getRecords();\n while (it.hasNext()){\n records.add(it.next());\n numShapes++;\n }\n }\n }\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"private ArrayList<Record> getItemsToAdd() {\r\n\t\tArrayList<Record> list = new ArrayList<Record>();\r\n\r\n\t\tlist = myConn.populateRecords();\r\n\t\t//myConn.connectionClose();\r\n\r\n\t\treturn list;\r\n\t}",
"List<T> read();",
"private StudentRecord[] getList() {\r\n\t\treturn this.list;\r\n\t}",
"int insert(Storage record);",
"int insert(Storage record);",
"private List<String> nextRecord() {\n\t\t\t\t\tList<String> record = new LinkedList<String>();\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tString line = lines.next();\n\t\t\t\t\t\tif (line.startsWith(\"---\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecord.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn record;\n\t\t\t\t}",
"List<T> getStoredData() { return null; }",
"void insertBatch(List<TABLE41> recordLst);",
"@Override\n public List<UltraSoundRecordBean> loadList(ResultSet rs) throws SQLException {\n List<UltraSoundRecordBean> list = new ArrayList<UltraSoundRecordBean>();\n while(rs.next()){\n list.add(loadSingle(rs));\n }\n return list;\n }",
"public List<Record> findRecordByExample(final RecordExample example);",
"public RecordSet loadAllProcessingDetail(Record inputRecord);",
"public RecordSet loadExpHistoryInfo(Record inputRecord);",
"private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }",
"@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }",
"public void addRecord();",
"public int loadRecords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString line = null;\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(FILE_PATH));\n\t\t\n\t\t\t\n\t\t\twhile ((line = br.readLine()) != null) \n\t\t\t{\t\n\t\t\t\tif (line.trim().length()==0) continue;\t// skip empty line\n\t\t\t\n\t\t\t\t// So convenient to use the overloaded construcor of Record that takes a Line!\n\t\t\t\trecordList.add(new Record(line));\t\t\t\t\n \t\t\t}\n\t\t\tbr.close();\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tSystem.err.println(ioe);\n\t\t}\n\t\t\n\t\treturn recordList.size();\n\t}",
"@Override\n\tprotected Hashtable<String, AbsRecord> createHashtableRecordModel(List<AbsRecord> records)\n\t{\n\t\tHashtable<String, AbsRecord> results = null;\n\t\tStringBuilder key = null;\n\t\tGAZRecordDataModel gazRecordDataModel;\n\n\t\tif (!records.isEmpty())\n\t\t{\n\t\t\tresults = new Hashtable<String, AbsRecord>();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tfor (AbsRecord absRecord : records)\n\t\t{\n\t\t\tgazRecordDataModel = (GAZRecordDataModel) absRecord;\n\t\t\t// key=optionId + fieldId + pvId + type;\n\t\t\tkey = new StringBuilder(gazRecordDataModel.getOptionId());\n\t\t\tkey.append(gazRecordDataModel.getFieldId());\n\t\t\tkey.append(gazRecordDataModel.getPvId());\n\t\t\tkey.append(gazRecordDataModel.getType());\n\n\t\t\tresults.put(key.toString(), gazRecordDataModel);\n\t\t}\n\n\t\treturn results;\n\t}",
"List<T> readAll();",
"@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}",
"@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}",
"@Override\n\tpublic List<Record> getAllRecord() {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tlist = dao.findAll();\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn list;\n\t}",
"public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}",
"public void addRecord(ListGridRecord record) {\r\n\t\tthis.addData(record);\r\n\t}",
"private void saveRecords() {\r\n// for (int i = 0; i < reviewRecords.size(); i++) {\r\n// ReviewRecords get = reviewRecords.get(i);\r\n// if (!get.toString().startsWith(\"null\")) {\r\n// Logs.e(get.toString());\r\n// }\r\n//\r\n// }\r\n\r\n SQLiteJDBC sqliteJDBC = new SQLiteJDBC(GlobalParameters.WORKING_REVIEW_DB_PATH);\r\n StringBuilder sqlTableItems = new StringBuilder();\r\n\r\n sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n .append(\"StockName\").append(\" TEXT, \")\r\n .append(\"Reference\").append(\" TEXT, \")\r\n .append(\"Methods\").append(\" TEXT, \")\r\n .append(\"ObStartDate\").append(\" TEXT, \")\r\n .append(\"Comments\").append(\" TEXT)\");\r\n\r\n// sqlTableItems.append(\" (\").append(\"StockCode\").append(\" TEXT PRIMARY KEY NOT NULL,\")\r\n// .append(\"StockName\").append(\" TEXT, \")\r\n// .append(\"Reference\").append(\" TEXT, \")\r\n// .append(\"Methods\").append(\" TEXT, \")\r\n// .append(\"ObStartDate\").append(\" TEXT, \")\r\n// .append(\"ObStartPrice\").append(\" TEXT, \")\r\n// .append(\"ObEndDate\").append(\" TEXT, \")\r\n// .append(\"ObEndPrice\").append(\" TEXT, \")\r\n// .append(\"Profit\").append(\" TEXT, \")\r\n// .append(\"Efficency\").append(\" TEXT, \")\r\n// .append(\"Comments\").append(\" TEXT)\");\r\n String tableName = \"Review\";\r\n sqliteJDBC.createTable(tableName, sqlTableItems.toString());\r\n sqliteJDBC.insertColumns(tableName, colNames, getListData());\r\n\r\n }",
"public interface PickRecordCommunicator {\n\t\tpublic List<Record> getRecordlist();\n\t\tpublic void saveOriginal(Record rec, int index);\n\t\tpublic void wipeOriginal();\n\t}",
"public Record getRecord() {\n return record;\n }",
"public Record getRecord() {\n return record;\n }",
"public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new HBRecordRowMapper());\n\t}",
"public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }",
"private void updateRecordCount() {\n // Set the count to 0, if the storage can not be accessed then the stored record count\n // will be left as 0\n mStoredRecordCount = 0;\n File rootFolder = getBaseFolder();\n if (rootFolder == null) {\n return;\n }\n\n // Each directory in this folder represents one record.\n File[] fileList = rootFolder.listFiles();\n if (fileList != null) {\n for (File eachFile : fileList) {\n if (eachFile.isDirectory()) {\n mStoredRecordCount++;\n }\n }\n }\n }",
"List<TransactionRec> loadRecordsByAccount(BankAccount account);",
"public String getRecordFile();",
"void addRecord(HistoryRecord record) throws IOException;",
"@Test\r\n\tpublic void testGetRecords() {\r\n\t\tAssert.assertNull(oic.getRecords(\"a\"));\r\n\r\n\t\tList<ObstetricsInit> list;\r\n\t\ttry {\r\n\t\t\tlist = oiData.getRecords(1);\r\n\t\t\tAssert.assertEquals(list, oic.getRecords(\"1\"));\r\n\t\t} catch (DBException e) {\r\n\t\t\tAssert.fail(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t//TODO: Maybe test sorting\r\n\t}",
"public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new GAZRecordRowMapper());\n\t}",
"void insertBatch(List<InspectionAgency> recordLst);",
"public RecordSet loadAllProcessDetailHistory(Record inputRecord);",
"RecordSet loadAllLayerDetail(Record inputRecord);",
"private void createInternalStorage(int length) {\n\t\tif(internalStorage == null) {\n\t\t\tinternalStorage = new java.util.ArrayList<java.util.HashMap<String,LinkedList<T>>> ();\n\t\t\tfor(int i=0;i<length;i++)\n\t\t\t\tinternalStorage.add(new HashMap<String,LinkedList<T>>());\n\t\t}\n\t\t\n\t}",
"public void setRecord(Record record) {\n this.record = record;\n }",
"private void guardaRecord() {\n // Guardamos el record\n SharedPreferences datos = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor miEditor = datos.edit();\n miEditor.putInt(\"RECORD\", record);\n miEditor.apply();\n }",
"public Record readRecord(int recordId) {\n return records[recordId];\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"public void addRecord(Character key, String record){\n\t\trecList = map.get(key);\n\t\trecList.add(record);\n\t\tmap.put(key, recList);\n\t\tif(record.charAt(0) == 'D')\n\t\t\tdIDtoName.put(record.split(\",\")[0], record.split(\",\")[2].charAt(0));\n\t\telse if(record.charAt(0) == 'N')\n\t\t\tnIDtoName.put(record.split(\",\")[0], record.split(\",\")[2].charAt(0));\n\t\tSystem.out.println(\"Record has been created. The record is: \");\n\t\tSystem.out.println(record);\n\t}",
"public void linkRecords();",
"public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}",
"public final Record[] getRecords() {\n Record[] myRecords = new Record[records.size()];\n\n Iterator iterator = records.iterator();\n for (int i = 0; i < records.size(); i++) {\n myRecords[i] = (Record) iterator.next();\n }\n\n return myRecords;\n }",
"@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }",
"public RecordData readRecord(String key) {\n\t\tsynchronized (key.intern()) {\n\t\t\tRecordData data = records.get(key);\n\t\t\tif (data == null)\n\t\t\t\trecords.put(key, data = new RecordData(\"\", 0, \"\"));\n\t\t\treturn data;\n\t\t}\n\t}",
"public RecordsList listRecords(String metadataPrefix, String from, String until, String set) throws OAIException {\n try {\n \tString query = builder.buildListRecordsQuery(metadataPrefix, from, until, set);\n \tDocument document = reader.read(query);\n return new RecordsList(document);\n } catch (ErrorResponseException e) {\n \tthrow e;\n } catch (Exception e) {\n throw new OAIException(e);\n }\n }",
"public interface RdbStorage extends ReadonlyRdbStorage {\n /**\n * insert new record into rdb.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return new object\n */\n Object insert(String key, Object param);\n\n /**\n * update records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer update(String key, Object param);\n\n /**\n * delete records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer delete(String key, Object param);\n}",
"public Iterable<MedicalRecord> list() {\n return medicalRecordList;\n }",
"int insert(FileRecordAdmin record);",
"List<E> read();",
"@Override\n\tpublic void addRecords(Records record) {\n\t\trecordsDAO.addRecords(record);\n\n\t}",
"public List<Recordings> getRecordings() {\r\n\r\n\t\tList<Recordings> recordingsList = new ArrayList<Recordings>();\r\n\r\n\t\tList<Map<String, Object>> rows = jdbcTemplate.queryForList(\"Select * from RECORDINGS\");\r\n\r\n\t\tfor (Map<String, Object> row : rows) {\r\n\t\t\tRecordings recordings = new Recordings();\r\n\t\t\trecordings.setFileName((String)row.get(\"FILENAME\"));\r\n\t\t\trecordings.setSourceURL((String)row.get(\"SOURCEURL\"));\r\n\t\t\trecordings.setId(((BigDecimal)row.get(\"ID\")).longValue());\r\n\t\t\trecordingsList.add(recordings);\r\n\t\t}\r\n\t\treturn recordingsList;\r\n\t}",
"int insert(DiaryFile record);",
"public void addRecord(String records){\n\n String record[] = records.split(\",\");\n record[0] = record[0].replace(\"\\\"\", \"\");\n this.records.add(record);\n }",
"int insertSelective(Storage record);",
"int insertSelective(Storage record);",
"private PassageRecordList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static void listRecords() {\r\n\t\t/*\r\n\t\t * the loop syntax below is short for for (Iterator i = td.iterator();\r\n\t\t * i.hasNext();) { TelephoneRecord tr = (TelephoneRecord) i.next(); Look\r\n\t\t * at the API docs for java.util.Iterator to see how iterators work.\r\n\t\t */\r\n\t\tfor (Object o : td) {\r\n\t\t\tTelephoneRecord tr = (TelephoneRecord) o;\r\n\t\t\tSystem.out.println(tr);\r\n\t\t}\r\n\t}",
"public Set<Record> getRecords() {\n /*\n returns newly allocated Set\n to prevent sort of violations,\n like adding something to the returned value\n */\n return Collections.unmodifiableSet(records);\n }",
"public Object getRecord(int key) {\n throw new UnsupportedOperationException(\"implement me!\");\n }",
"@Override\n public void startRecord() {\n obj = null;\n arr = null;\n inArray = false;\n }",
"private void parseRecord(String line){\n\t\tString[] recordSplit = line.split(\",\");\n\t\tString employeeId = recordSplit[RECORD_EMPLOYEE];\n\t\t/**\n\t\t * check if the key matching employeeId is found in \n\t\t * employeesStocks if not create a new EmployeeStocks \n \t\t * with employeeId as key\n\t\t */\n\t\t\n\t\tif(!mStockReport.getEmployeesRecords().containsKey(employeeId)){\n\t\t\tmStockReport.getEmployeesRecords().put(employeeId, new EmployeeRecords());\n\t\t\tmStockReport.getEmployeesRecords().get(employeeId).setEmployeeId(employeeId);\n\t\t}\n\t\tint recordDate = Integer.parseInt(recordSplit[RECORD_DATE]);\n\t\tRecord record = createRecord(recordSplit);\n\t\tswitch(recordSplit[RECORD_TYPE]){\n\t\tcase TYPE_VEST:\n\t\t\tmStockReport.getEmployeesRecords().get(employeeId).putVests(recordDate, record);\n\t\t\tbreak;\n\t\tcase TYPE_SALE:\t\n\t\t\tmStockReport.getEmployeesRecords().get(employeeId).putSales(recordDate, record);\n\t\t\tbreak;\n\t\tcase TYPE_PERF:\n\t\t\tmStockReport.getEmployeesRecords().get(employeeId).putPerfs(recordDate, record);\n\t\t\tbreak;\n\t\t}\n\t}",
"private void processRecords()\n {\n // This is the way to connect the file to an inputstream in android\n InputStream inputStream = getResources().openRawResource(R.raw.products);\n\n Scanner scanner = new Scanner(inputStream);\n\n\n // skipping first row by reading it before loop and displaying it as column names\n String[] tableRow = scanner.nextLine().split(\",\");\n\n //Log.e(\"COLUMN NAMES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN NAMES SIZE\", String.valueOf(tableRow.length));\n\n\n // --- Truncate table (delete all rows and reset auto increment --\n // this line of code will be useful because for now we are forced to read file\n // everytime we open app, this way we do not have duplicate data.\n db.resetTable();\n\n while (scanner.hasNextLine())\n {\n tableRow = scanner.nextLine().split(\",\");\n //Log.e(\"COLUMN VALUES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN VALUES SIZE\", String.valueOf(tableRow.length));\n\n /*\n * Possible Change:\n * On each iteration a new Product() can be created and call the setter to set\n * its fields to the elements of the String array, example\n * product = new Product();\n * product.setNumber(tableRow[0]);\n * product.setBusinessName(tableRow[1]);\n * ...\n * db.insertData(product); // because the new insertData method would expect a\n * Product object instead\n *\n */\n\n // insert data\n if (db.insertData(tableRow))\n {\n //Log.e(\"Insert\", \"SUCCESSFUL INSERT AT \" + tableRow[0]);\n }\n else\n {\n //Log.e(\"Insert\", \"UNSUCCESSFUL INSERT\");\n }\n\n }\n }",
"@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t\t_listId = readD();\r\n\t\tint count = readD();\r\n\t\tif (count <= 0 || count > Config.MAX_ITEM_IN_PACKET || count * BATCH_LENGTH != getByteBuffer().remaining())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_items = new Item[count];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tint objectId = readD();\r\n\t\t\tint itemId = readD();\r\n\t\t\tlong cnt = readQ();\r\n\t\t\tif (objectId < 1 || itemId < 1 || cnt < 1)\r\n\t\t\t{\r\n\t\t\t\t_items = null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_items[i] = new Item(objectId, itemId, cnt);\r\n\t\t}\r\n\t}",
"@Override\n public void setRecords() {\n fields = recordNotifier.getFields();\n recordCount = recordNotifier.getRowCount();\n \n createComponents();\n \n }",
"private void saveList() throws Exception {\n JournalEntries.saveList(JournalList,ReconcileCur.ReconcileNum);\n }",
"@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"CopyToDataPatchRecordList\";\r\n\t}",
"public void record(){\n\t}",
"Storage selectByPrimaryKey(Integer recordId);",
"@Override\n public Class<BargainUserListRecord> getRecordType() {\n return BargainUserListRecord.class;\n }",
"public static ArrayList<Record> readUserFile(ArrayList<LargeRecord> largeRecList) throws FileNotFoundException\r\n\t{\r\n\t\tArrayList<Record> completeRecord = new ArrayList<Record>();\r\n\t\tString filename = \"C://tester/userid_profile.txt\";\r\n\t\tFile userFile = new File(filename);\r\n\t\tScanner input = new Scanner(userFile);\r\n\t\tString fileLine;\r\n\t\t//small record;\r\n\t\tString record[] = new String[3];\r\n\t\tArrayList<SmallRecord>smallRecList = new ArrayList<SmallRecord>();\r\n\t\t\r\n\t\t\tint i = 0;\r\n\t\t\twhile(input.hasNextLine() && i < 20000)\r\n\t\t\t{\r\n\t\t\t\tfileLine = input.nextLine();\r\n\t\t\t\tString stringRecord[] = fileLine.split(\"\\t\");\r\n\t\t\t\tfor(int j = 0; j < stringRecord.length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\trecord[j] = stringRecord[j];\r\n\t\t\t\t}\r\n\t\t\t\tSmallRecord sRec = new SmallRecord(record[0], record[1], record[2]);\r\n\t\t\t\tsmallRecList.add(sRec);\r\n\t\t\t\tif(smallRecList.size() % 1000000 == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"On line \" + smallRecList.size() + \" of User_profile.txt\");\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tcompleteRecord = mergeSmallLarge(smallRecList, largeRecList);\r\n\t\t\treturn completeRecord;\r\n\t\t\r\n\t}",
"public void setBlockRecord() {\r\n\t\t\tthis.blockRecord = new ArrayList<BlockList>();\r\n\t\t}",
"List<BookStoreElement> load(Reader reader);",
"private void testDB(){\n DB=new LinkedList<>(); \n DB.add(new Offer(\"ID1\",\"AGV923\",\"Nico\",\"Leo\",\"Salvo\",\"\"));\n DB.add(new Offer(\"ID2\",\"ADJ325\",\"Tizio\", \"Caio\", \"Sempronio\",\"\"));\n DB.add(new Offer(\"ID3\",\"T56G2G\",\"Antonella\", \"Daniele\",\"\",\"\"));\n }",
"public ResultObject storeResults(List<String> logList,String duration)throws ParserException;"
]
| [
"0.64136493",
"0.63363403",
"0.6233687",
"0.6187674",
"0.6112809",
"0.6090749",
"0.60900384",
"0.60250187",
"0.6017429",
"0.6006664",
"0.5952414",
"0.59173787",
"0.5886742",
"0.5867407",
"0.58649004",
"0.5863611",
"0.586222",
"0.58532286",
"0.58532286",
"0.58532286",
"0.58532286",
"0.58305705",
"0.5797038",
"0.5785116",
"0.5749133",
"0.5749133",
"0.5735404",
"0.57028025",
"0.5701721",
"0.5697246",
"0.56861037",
"0.5672294",
"0.56543714",
"0.5649595",
"0.5647015",
"0.5593649",
"0.5590914",
"0.55716795",
"0.55692047",
"0.5545415",
"0.5545415",
"0.55404127",
"0.5527742",
"0.552393",
"0.5508606",
"0.5507245",
"0.5505237",
"0.5505237",
"0.54955125",
"0.5479615",
"0.5474149",
"0.54735434",
"0.54726106",
"0.54603225",
"0.5447591",
"0.54305494",
"0.5420742",
"0.5418683",
"0.5416428",
"0.5410806",
"0.54041433",
"0.5404143",
"0.54027766",
"0.5402169",
"0.54004514",
"0.5396758",
"0.5391993",
"0.53867924",
"0.53861076",
"0.53856903",
"0.5384644",
"0.5383847",
"0.53769296",
"0.5373755",
"0.5367826",
"0.53502995",
"0.53486603",
"0.5343708",
"0.5334777",
"0.5333031",
"0.5333031",
"0.53296906",
"0.53164256",
"0.53107965",
"0.530187",
"0.5300062",
"0.52993464",
"0.5296739",
"0.5291871",
"0.5290776",
"0.529014",
"0.52885336",
"0.5286147",
"0.5282105",
"0.5275951",
"0.52741534",
"0.5273647",
"0.52717215",
"0.5259799",
"0.5258553"
]
| 0.67934054 | 0 |
===================== Summary Map Storage methods ====================================== | @Override
public Optional<SummaryMap> readSummaryMap() throws DataConversionException, IOException {
return readSummaryMap(summaryMapFilePath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateMapSize() {\n calculateMapSize(true);\n }",
"public int sizeOfMap(){return size;}",
"public interface MapStore extends Closeable {\n\n /**\n * Creates a table with the given key.\n *\n * Note that this operation is idempotent\n * so a true response means that the table\n * exists after execution.\n *\n * @return true iff the table exists after execution\n */\n boolean createTable(\n String tableName,\n MapStoreTableKey tableKey\n );\n\n /**\n * Drops a table.\n *\n * @return true iff the drop was successful\n */\n boolean dropTable(String tableName);\n\n /**\n * Delete an item from the given table\n * with the give key.\n *\n * This should be idempotent if the item\n * does not exist.\n */\n void deleteItem(\n String tableName,\n MapStoreKey key\n );\n\n /**\n * Retrieves all items from the given table\n * with all keys.\n */\n List<Map<String, Object>> getAllItems(String tableName);\n\n /**\n * Retrieves an item from the given table\n * with the given key.\n *\n * Returns {@link Optional#empty()} if no\n * item exists with the given key.\n */\n Optional<Map<String, Object>> getItem(\n String tableName,\n MapStoreKey key\n );\n\n /**\n * Queries all items from the given table\n * which match the given {@link MapStoreKey}\n * range key operator.\n */\n List<Map<String, Object>> getItems(\n String tableName,\n MapStoreKey key,\n MapQueryOptions options\n );\n\n /**\n * Adds an item to the given table\n * under the given key.\n */\n Map<String, Object> putItem(\n String tableName,\n MapStoreKey key,\n Map<String, Object> payload\n );\n\n /**\n * Updates an item in the given table\n * under the given key.\n *\n * If no item exists at the given key,\n * this will fallback to {@link #putItem(String, MapStoreKey, Map)}\n * semantics.\n */\n Map<String, Object> updateItem(\n String tableName,\n MapStoreKey key,\n Map<String, Object> payload\n );\n}",
"private final Map<String, String> memoryStats() {\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"tableIndexChunkSize\", (!RAMIndex) ? \"0\" : Integer.toString(index.row().objectsize));\r\n map.put(\"tableIndexCount\", (!RAMIndex) ? \"0\" : Integer.toString(index.size()));\r\n map.put(\"tableIndexMem\", (!RAMIndex) ? \"0\" : Integer.toString((int) (index.row().objectsize * index.size() * kelondroRowCollection.growfactor)));\r\n return map;\r\n }",
"public abstract void createMap();",
"@Override\r\n\tpublic void saveMap() {\n\r\n\t}",
"public Map() {\n\t\t//intially empty\n\t}",
"@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}",
"public HashMap<String, T> getStorage();",
"@Override\n public int getSize() {\n return map.size();\n }",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"@Override\r\n\tpublic void exportMap() {\n\r\n\t}",
"MAP createMAP();",
"@Test\n public void testCreateSafeMap() {\n Map safeMap = safeCreator.createMap('S',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }",
"public MapSum() {\n map = new HashMap<>();\n }",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}",
"private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }",
"@Test\n public void testCreateHazardousMap2() {\n Map safeMap = safeCreator.createMap('s',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }",
"@Test\n public void mapSize() {\n check(MAPSIZE);\n query(MAPSIZE.args(MAPENTRY.args(1, 2)), 1);\n }",
"void clearMap() {\n STRING_STATISTICS.clear();\n }",
"private void storeValues(int source,\n Map<VWBetw, Double> map,\n DiskBufferDriver output) throws DriverException {\n for (Entry<VWBetw, Double> e : map.entrySet()) {\n storeValue(source, e.getKey().getID(), e.getValue(), output);\n }\n }",
"protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }",
"private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }",
"private void genLoadMapCode(String name, String keyClassSimpleName, String valueClassSimpleName, boolean valueIsPersistable) {\n\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n String keyCppType = cppType(keyClassSimpleName);\n String valueCppType = cppType(valueClassSimpleName);\n\n String mapType = \"std::map< \" + keyCppType + \", \" + valueCppType + \" >\";\n\n load.println(\"\\t// \" + mapType + \" this->\" + name);\n genDebug(load, \"\\tstd::cout << \\\"load \" + mapType + \" \" + name + \"\\\" << std::endl;\");\n\n String vVarName = \"v\" + \"_\" + name;\n String lenVarName = vVarName + \"_length\";\n\n // read the length of the map\n load.println(tabs + \"int \" + lenVarName + \";\");\n\n load.println();\n load.println(tabs + INSTREAM_VAR_NAME + \".readInt(\" + lenVarName + \");\");\n\n genDebugDumpValue(load, lenVarName, tabs);\n\n load.println(tabs + mapType + \"& \" + vVarName + \" = this->\" + name + \";\");\n\n // initialize & pre-allocate the map\n // load.println( tabs + vVarName + \".reserve( \" + lenVarName + \" );\");\n\n load.println();\n load.println(tabs + \"for( int i = 0; i < \" + lenVarName + \"; i++ ){\");\n\n tabs = tabs(++tabLevel);\n\n // load key\n String keyVarName = vVarName + \"_key\";\n load.println(tabs + keyCppType + \" \" + keyVarName + \";\");\n load.println(tabs + genReadCode(keyVarName, keyCppType));\n\n // load value\n String valueVarName = vVarName + \"_value\";\n load.println(tabs + valueCppType + \" \" + valueVarName + \";\");\n\n if (valueIsPersistable) {\n load.println(tabs + valueVarName + \".load( \" + INSTREAM_VAR_NAME + \" );\");\n } else {\n load.println(tabs + genReadCode(valueVarName, valueCppType));\n }\n\n // add the new pair to the map\n load.println(tabs + vVarName + \".insert( std::make_pair( \" + keyVarName + \", \" + valueVarName + \" ));\");\n\n tabs = tabs(--tabLevel);\n load.println(tabs + \"}\");\n }",
"private void genSaveMapCode(String name, String keyClassSimpleName, String valueClassSimpleName, boolean elementIsPersistable) {\n\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n String itVarName = \"i\" + \"_\" + name;\n String vVarName = \"v\" + \"_\" + name;\n\n String keyCppType = cppType(keyClassSimpleName);\n String valueCppType = cppType(valueClassSimpleName);\n\n String mapType = \"std::map< \" + keyCppType + \", \" + valueCppType + \" >\";\n\n save.println(\"\\t// \" + mapType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + mapType + \" \" + name + \"\\\" << std::endl;\");\n\n // initialize local variable that points to the member map\n save.println(tabs + mapType + \"& \" + vVarName + \" = this->\" + name + \";\");\n\n // number of elements in the map\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt( \" + vVarName + \"_length );\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n // loop through the elements and save each one\n save.println();\n save.println(tabs + mapType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName + \".end(); ++\"\n + itVarName + \" ){\");\n\n tabs = tabs(++tabLevel);\n\n // save the key\n String keyVarName = vVarName + \"_key\";\n save.println(tabs + keyCppType + \" \" + keyVarName + \" = \" + itVarName + \"->first;\");\n save.println(tabs + genWriteCode(keyVarName, keyCppType));\n\n // save the value\n String valueVarName = vVarName + \"_value\";\n save.println(tabs + valueCppType + \" \" + valueVarName + \" = \" + itVarName + \"->second;\");\n\n if (elementIsPersistable) {\n save.println(tabs + valueVarName + \".save( \" + OUTSTREAM_VAR_NAME + \" );\");\n } else {\n save.println(tabs + genWriteCode(valueVarName, valueCppType));\n }\n\n tabs = tabs(--tabLevel);\n save.println(tabs + \"}\");\n }",
"public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}",
"public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}",
"public static void save()\n\t{\n writeMap();\n\t}",
"protected WumpusMap() {\n\t\t\n\t}",
"private LinkedHashMap<String, Type> scalarMappingODU() {\r\n\t\tLinkedHashMap<String, Type> scalarMapping = new LinkedHashMap<String, Type>();\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODUID, StandardBasicTypes.LONG); // 0\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITE_GROUP,\r\n\t\t\t\tStandardBasicTypes.STRING); // 1\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_CHILD,\r\n\t\t\t\tStandardBasicTypes.STRING); // 2\r\n\t\tscalarMapping.put(DaoConstants.MAP_NAME, StandardBasicTypes.STRING); // 3\r\n\t\tscalarMapping.put(DaoConstants.MAP_CENTRAL_ADDRESS,\r\n\t\t\t\tStandardBasicTypes.STRING); // 4\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_ID, StandardBasicTypes.LONG); // 5\r\n\t\tscalarMapping.put(DaoConstants.MAP_TYPE, StandardBasicTypes.STRING); // 6\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 7\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 8\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 9\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 10\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODU_SVG_PATH,\r\n\t\t\t\tStandardBasicTypes.STRING); // 11\r\n\t\tscalarMapping.put(DaoConstants.MAP_SEVERITY, StandardBasicTypes.STRING); // 12\r\n\t\tscalarMapping.put(DaoConstants.MAP_SLINKADD, StandardBasicTypes.STRING); // 13\r\n\t\tscalarMapping.put(DaoConstants.MAP_ALARM_CODE,\r\n\t\t\t\tStandardBasicTypes.STRING); // 14\r\n\t\tscalarMapping.put(DaoConstants.MAP_C2, StandardBasicTypes.DOUBLE); // 15\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Outdoor\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Temp\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_1, StandardBasicTypes.LONG); // 16\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_1\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_2, StandardBasicTypes.LONG); // 17\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_2\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_3, StandardBasicTypes.LONG); // 18\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_3\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_4, StandardBasicTypes.LONG); // 19\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// PAC\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_5, StandardBasicTypes.LONG); // 20\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// EngineWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_6, StandardBasicTypes.LONG); // 21\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// NOT_IN_USE_EnginOilChange\r\n\t\tscalarMapping.put(DaoConstants.MAP_G44, StandardBasicTypes.STRING); // 22\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// GenerationPower\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGID, StandardBasicTypes.LONG); // 23\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGNAME, StandardBasicTypes.STRING); // 24\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS1, StandardBasicTypes.DOUBLE); // 25\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS2, StandardBasicTypes.DOUBLE); // 26\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS3, StandardBasicTypes.DOUBLE); // 27\r\n\t\tscalarMapping.put(DaoConstants.MAP_PACHRS, StandardBasicTypes.DOUBLE); // 28\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPHRS, StandardBasicTypes.DOUBLE); // 29\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPOIL, StandardBasicTypes.DOUBLE); // 30\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITEPATH, StandardBasicTypes.STRING); // 31\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPANYNAME,\r\n\t\t\t\tStandardBasicTypes.STRING); // 32\r\n\t\tscalarMapping.put(DaoConstants.MAP_CASTATUS, StandardBasicTypes.STRING); // 33\r\n\t\tscalarMapping.put(DaoConstants.MAP_V23, StandardBasicTypes.STRING); // 34\r\n\t\t// Demand\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR1,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 35\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR2,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 36\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR3,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 37\r\n\t\t//add by shanf\r\n\t\tscalarMapping.put(DaoConstants.DEVICE_MODEL,\r\n\t\t\t\tStandardBasicTypes.STRING); // 38\r\n\r\n\t\treturn scalarMapping;\r\n\t}",
"java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();",
"public Map<String, Object> getInfo();",
"ProcessOperation<Map<String, Object>> map();",
"java.util.Map<java.lang.String, java.lang.Long> getHdfsMetricsMap();",
"@Override\n protected ImmutableTransactionStore mapFinalize(HashBasedTransactionStore transactionStore) {\n if (profiling) {\n // note: collect this before creating the immutable transaction store as memory gets freed\n profilingInfoMap.put(\"ram_bytes_transactionstore_after_map\", transactionStore.ramBytesUsed());\n profilingInfoMap.put(\"total_items_after_map\", transactionStore.getTotalItemCount());\n profilingInfoMap.put(\"total_transactions_after_map\", transactionStore.getTotalTransactionCount());\n profilingInfoMap.put(\"filtered_transactions_after_map\", transactionStore.getFilteredTransactionCount());\n profilingInfoMap.put(\"unique_items_after_map\", transactionStore.getUniqueItemsCount());\n profilingInfoMap.put(\"unique_transactions_after_map\", transactionStore.getUniqueTransactionCount());\n }\n\n ImmutableTransactionStore transactionStoreMapFinalize = transactionStore.createImmutableTransactionStore();\n\n if (profiling) {\n profilingInfoMap.put(\"ram_bytes_transactionstore_map_finalize\", transactionStoreMapFinalize.ramBytesUsed());\n }\n\n return transactionStoreMapFinalize;\n }",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}",
"public int getMapSize() {\n return mapSize;\n }",
"public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"public Integer sizeOfMap() {\n\t\tMap<String, String> simpleMap = createSimpleMap(\"Key\", \"Value\");\n numberOfEntries = 10;\n\t\treturn simpleMap.size();\n\t}",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"public void printMiniMap() { }",
"boolean hasSimpleMap();",
"public void saveMap(){\n dataBase.updateMap(level);\n }",
"Map<String, Object> getStats();",
"Map getIDPSTDDataMap();",
"@SuppressWarnings(\"unchecked\")\r\n private void newMap() throws IOException, ClassNotFoundException {\r\n this.music_map.clear();\r\n if (needNewMap()) {\r\n if (!save_file.exists()) {\r\n System.out.println(\"DIZIONARIO NON PRESENTE\");\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n\r\n this.setTarget();\r\n\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n } else {\r\n System.out.println(\"DIZIONARIO NON AGGIORNATO\");\r\n if (!UtilFunctions.newDictionaryRequest(this.save_file, this.music_root)) {\r\n System.out.println(\"AGGIORNAMENTO DIZIONARIO RIFIUTATO\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n } else {\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n this.setTarget();\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n }\r\n }\r\n } else {\r\n System.out.println(\"DIZIONARIO GIA' PRESENTE\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n }\r\n }",
"public HashMap getMetaData() ;",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"public abstract Map<String, Station> getWbanStationMap() throws DataAccessException;",
"@Override\r\n public int size() {\r\n return map.size();\r\n }",
"private static void createTypeMap() {\n\n }",
"@Test\n public void test3() {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n assertEquals(map1, cashRegister.getContents());\n }",
"public int GetMapSize() {\n\t\treturn m_mapSize;\n\t}",
"@Test\n public void test4 ()\n {\n MyMap m = new MyMap();\n int SIZE = 10000;\n \n // Add SIZE mappings\n for (int i = 0; i < SIZE; i++)\n {\n m.put(i+\"\", (i*17)+\"\");\n }\n \n // Add some of the keys again with new values.\n for (int i = 0; i < SIZE; i+=2)\n {\n m.put(i+\"\", (i*18)+\"\");\n }\n \n // Remove every third element.\n for (int i = 0; i < SIZE; i += 3)\n {\n m.remove(i+\"\");\n }\n \n // Remove some of them again. This should make no difference.\n for (int i = 0; i < SIZE; i += 6)\n {\n m.remove(i+\"\");\n }\n \n // Assert that the size is as expected\n assertEquals(SIZE - (int) Math.ceil(SIZE / 3.0), m.size());\n \n // Assert that membership is as expected\n for (int i = 0; i < SIZE; i++)\n {\n if (i%3 == 0)\n {\n assertNull(m.get(i+\"\"));\n }\n else if (i%2 == 0)\n {\n assertEquals((i*18)+\"\", m.get(i+\"\"));\n }\n else\n {\n \tassertEquals((i*17)+\"\", m.get(i+\"\"));\n }\n }\n }",
"public void dump() {\n Log.e(TAG, \"dump: size=\" + mMap.size());\n for (String k : mMap.keySet()) {\n Log.e(TAG, \"dump: \" + k + \"=\" + mMap.get(k));\n }\n }",
"public Map instantiateBackingMap(String sName);",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"Map getSPEXDataMap();",
"public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}",
"public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }",
"public interface Map<K,V> {\n\n int size();\n\n boolean isEmpty();\n\n boolean containsKey(Object key);\n\n boolean containsValue(Object value);\n\n V get(Object key);\n\n V put(K key, V value);\n\n void putAll(Map<? extends K, ? extends V > m);\n\n void clear();\n\n //views\n Set<K> keySet();\n\n Collection<V> values();\n\n Set<Map.Entry<K,V>> entrySet();\n\n interface Entry<K,V>{\n K getKey();\n\n V getValue();\n\n V setValue(V value);\n\n boolean equals(Object o);\n\n int hashCode();\n\n }\n\n boolean equals(Object o);\n\n int hashCode();\n\n}",
"public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}",
"@Override\n public int size() {\n return map.size();\n }",
"public Map<Integer, Integer> getMemoryDataMap(){\n return dataMemory.getMemoryMap();\n }",
"java.util.Map<java.lang.Long, org.tensorflow.proto.profiler.XStatMetadata>\n getStatMetadataMap();",
"public int total_maps() {\r\n\t\tcheck( 1 );\r\n\r\n\t\treturn total_maps;\r\n\t}",
"public MapSum() {\n root = new Node();\n size = 0;\n }",
"public abstract Map<Integer, Station> getStations() throws DataAccessException;",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"public int getTotalMaps() {\r\n\t\treturn total_maps;\r\n\t}",
"protected Map<Long, byte[]> getMap(DB database) \n\t{\t\t\n\t\t//OPEN MAP\n\t\treturn database.createTreeMap(\"block_heights\")\n\t\t\t\t.keySerializer(BTreeKeySerializer.BASIC)\n\t\t\t\t.makeOrGet();\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void loadMap(){\r\n\t\t//Datei anlegen, falls nicht vorhanden\r\n\t\ttry {\r\n\t\t\tFile file = new File(homeFileLocation);\r\n\t\t\tif(!file.exists()){\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t\tSystem.out.println(\"Created new File.\");\r\n\r\n\t\t\t\t//Leere Map schreiben\r\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(homeFileLocation));\r\n\t\t\t\toos.writeObject(new HashMap<String, String>());\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\r\n\t\t\t\tSystem.out.println(\"Wrote empty HashMap.\");\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\t//Map laden\r\n\t\ttry {\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(homeFileLocation));\r\n\t\t\tthis.map = (HashMap<String, String>) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public abstract java.util.Map<java.lang.String, java.lang.Integer> systemicEventIncidenceCountMap();",
"private void createInternalStorage(int length) {\n\t\tif(internalStorage == null) {\n\t\t\tinternalStorage = new java.util.ArrayList<java.util.HashMap<String,LinkedList<T>>> ();\n\t\t\tfor(int i=0;i<length;i++)\n\t\t\t\tinternalStorage.add(new HashMap<String,LinkedList<T>>());\n\t\t}\n\t\t\n\t}",
"public abstract Map<Integer, Station> getStationsCurrentlyWithSmSt() throws DataAccessException;",
"protected SortedMap getSortedMap() {\n/* 65 */ return (SortedMap)this.map;\n/* */ }",
"Map<Integer, String> getMetaLocal();",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public Map() {\n\n\t\t}",
"Map<String, String> mo14888a();",
"public ImageFileNameMap()\r\n {\r\n prevMap = null;\r\n }",
"public interface Map<K, V> {\n /** Returns the number of entries in the map. */\n public int size();\n\n /** Returns whether the map is empty or not. */\n public boolean isEmpty();\n\n /**\n * Puts a given key and value pair into the map, replaces the previous\n * one, if exits. And returns the old value, if exits, otherwise returns\n * null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V put(K key, V value) throws InvalidKeyException;\n\n /**\n * Gets the value by given key.\n * If the key cannot be found, return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V get(K key) throws InvalidKeyException;\n\n /**\n * Removes the key-value pair by given key.\n * Returns the value if found the key, otherwise return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V remove(K key) throws InvalidKeyException;\n\n /**\n * Returns iterable object containing all the keys in the map.\n */\n public Iterable<K> keys();\n\n /**\n * Returns iterable object containing all the values in the map.\n */\n public Iterable<V> values();\n\n /**\n * Returns iterable object containing all the entries in the map.\n */\n public Iterable<Entry<K, V>> entries();\n}",
"@Override\n\tpublic Map<ByteString, Integer> getSeriesMap() {\n\t\treturn null;\n\t}",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"private void returnDriverLocationstoMaps() {\n }",
"@Override\n\t\t\tpublic void putAll(Map<? extends PathwayImpl, ? extends AnalysisResult> m) {\n\t\t\t\t\n\t\t\t}",
"void setHashMap();",
"@Test\n public void sizeTest()\n {\n assertEquals(0, map.size());\n\n int count = 0;\n for (int i = 0; i < 10; i++)\n {\n map.put(i, i);\n assertEquals(++count, map.size());\n }\n\n assertEquals(count, map.size());\n map.clear();\n assertEquals(0, map.size());\n }",
"public int size ()\n {\n return this.entryMap.size ();\n }",
"@Test\n public void test12() {\n cashRegister.addPennies(99);\n cashRegister.addDimes(2);\n cashRegister.addDimes(3);\n cashRegister.addFives(10);\n cashRegister.addNickels(4);\n cashRegister.addOnes(1);\n cashRegister.addQuarters(1);\n cashRegister.addTens(5);\n Map<Integer, Integer> map = new TreeMap<Integer, Integer>();\n map.put(1000,5);\n map.put(500,10);\n map.put(100,1);\n map.put(25,1);\n map.put(10,5);\n map.put(5,4);\n map.put(1,99);\n\n assertEquals(map,cashRegister.getContents());\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n map1 = cashRegister.getContents();\n map1.put(0,1);\n assertEquals(map,cashRegister.getContents());\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"public MapSum() {\n root = new Trie();\n }",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }",
"@Test\n public void testMapCodeExamples() throws Exception {\n logger.info(\"Beginning testMapCodeExamples()...\");\n\n // Create an empty map\n Map<URL, Double> stocks = new Map<>();\n logger.info(\"Start with an empty map of stock prices: {}\", stocks);\n\n // Add some closing stock prices to it\n URL apple = new URL(\"http://apple.com\");\n stocks.setValue(apple, 112.40);\n URL google = new URL(\"http://google.com\");\n stocks.setValue(google, 526.98);\n URL amazon = new URL(\"http://amazon.com\");\n stocks.setValue(amazon, 306.64);\n logger.info(\"Add some closing stock prices: {}\", stocks);\n\n // Retrieve the closing price for Google\n double price = stocks.getValue(google);\n logger.info(\"Google's closing stock price is {}\", price);\n\n // Sort the stock prices by company URL\n stocks.sortElements();\n logger.info(\"The stock prices sorted by company web site: {}\", stocks);\n\n logger.info(\"Completed testMapCodeExamples().\\n\");\n }",
"public interface Map<K, V>\n{\n // Adds the specified key-value pair to the map. Does nothing if the key already\n // exists in the map.\n void add(K key, V value);\n\n // Returns the value associated with the specified key, or null of that key doesn't\n // exist in the map\n V get(K key);\n\t\n // Removes the key-value pair with the specified key from the map. Does nothing if\n // the key doesn't exist in the map.\n void remove(K key);\n}"
]
| [
"0.6639037",
"0.6574369",
"0.6565396",
"0.6410859",
"0.6410336",
"0.6378051",
"0.6365527",
"0.63596725",
"0.634199",
"0.6333112",
"0.6302083",
"0.62645626",
"0.6258228",
"0.6241779",
"0.62139285",
"0.62128335",
"0.61873233",
"0.61781675",
"0.61679536",
"0.6151205",
"0.61503035",
"0.6130011",
"0.6114141",
"0.6070397",
"0.6012442",
"0.6004371",
"0.59778595",
"0.59720486",
"0.5971237",
"0.5968138",
"0.59559816",
"0.59528077",
"0.59491163",
"0.5915661",
"0.59085894",
"0.5895114",
"0.5892662",
"0.5892647",
"0.5890724",
"0.5886976",
"0.5886947",
"0.58793956",
"0.5878233",
"0.5872772",
"0.5867171",
"0.58583844",
"0.5856794",
"0.58534765",
"0.58533907",
"0.5848634",
"0.5843633",
"0.5843633",
"0.58428353",
"0.5834551",
"0.5831849",
"0.58302623",
"0.5824235",
"0.58135045",
"0.58030045",
"0.58025956",
"0.58024496",
"0.57965755",
"0.5796305",
"0.57940936",
"0.5787813",
"0.5778806",
"0.57782745",
"0.5776121",
"0.5766531",
"0.5758724",
"0.5749728",
"0.5741122",
"0.5723583",
"0.57156616",
"0.5712883",
"0.5712767",
"0.57032186",
"0.5702119",
"0.5696602",
"0.56958354",
"0.5695487",
"0.56943387",
"0.56921864",
"0.568979",
"0.56866217",
"0.56865203",
"0.5683803",
"0.5681875",
"0.56786233",
"0.56785595",
"0.5677865",
"0.5670519",
"0.5669726",
"0.56543714",
"0.56455994",
"0.5644315",
"0.5643053",
"0.56402797",
"0.56378466",
"0.562577"
]
| 0.591631 | 33 |
======================================= Limit Storage methods ============================== | @Override
public Optional<DateBasedLimitList> readLimitList() throws DataConversionException, IOException {
return readLimitList(limitListFilePath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getItemStorage();",
"long storageSize();",
"int getPokeStorage();",
"interface Storage {\n String getStorageSize() ;\n}",
"@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}",
"private InternalStorage() {}",
"@Override\n\tpublic void setStorageSpace(int amount) {\n\t\tif(network==null)return;\n\t\tnetwork.setBytesLimit(gibibytesToBytes(amount));\n\t\tNetwork.log(\"Set new storage amount\");\n\t}",
"public interface SerializableStorage {\n\n /**\n * Method to save the binary data\n *\n * @param uuid identifier for the data\n * @param context binary data to save\n * @throws FailedToStoreDataInStorage in case when storage has failed to save the data\n */\n void store(UUID uuid, byte[] context) throws FailedToStoreDataInStorage;\n\n /**\n * Method to retrieve stored data\n *\n * @param uuid identifier for the data\n * @return binary data\n * @throws FailedToRetrieveStorageData in case when storage has faile to retrieve the data\n * @throws DataNotFoundInStorage in case when data has not been found\n */\n byte[] retrieve(UUID uuid) throws FailedToRetrieveStorageData, DataNotFoundInStorage;\n\n /**\n * Method to delete stored data from storage\n *\n * @param uuid identifier for the data\n * @throws DataNotFoundInStorage in case when data has not been found\n * @throws FailedToDeleteDataInStorage in case when storage has failed to delete the data\n */\n void delete(UUID uuid) throws DataNotFoundInStorage, FailedToDeleteDataInStorage;\n\n /**\n * Method to retrieve an occupied data size. Lets suppose it measured in bytes\n * @return occupied place size in bytes\n */\n long getOccupiedSize();\n}",
"@Nullable\n BigInteger getStorageGb();",
"public Storage() {\n this(null, DEFAULT_MAX, DEFAULT_MAX_SIZE);\n }",
"OStorage getStorage();",
"public int capacity() { return store.length; }",
"public interface DistributeStorage<T> {\n public void store(String path, T t, boolean create) throws StorageException;\n\n public T get(String path, Class<T> tClass) throws StorageException;\n\n public void del(String path) throws StorageException;\n\n public boolean exist(String path) throws StorageException;\n}",
"boolean needsStoragePermission();",
"public interface Storage extends ClientListStorage, UserPrefsStorage, PolicyListStorage {\n\n @Override\n Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;\n\n @Override\n void saveUserPrefs(ReadOnlyUserPrefs userPrefs) throws IOException;\n\n @Override\n Path getClientListFilePath();\n\n @Override\n Optional<ReadOnlyClientList> readClientList() throws DataConversionException, IOException;\n\n @Override\n void saveClientList(ReadOnlyClientList clientList) throws IOException;\n\n @Override\n Path getPolicyListFilePath();\n\n @Override\n Optional<PolicyList> readPolicyList() throws DataConversionException, IOException;\n\n @Override\n void savePolicyList(PolicyList policyList) throws IOException;\n}",
"private void raiseLimitException() {\n\t\t\tthrow new DataBufferLimitException(\"Exceeded limit on max bytes to buffer : \" + getMaxInMemorySize());\n\t\t}",
"public abstract long getMaxSize();",
"private void requestStoragePermission(){\n requestPermissions(storagePermissions, STORAGE_REQUESTED_CODE);\n }",
"abstract protected int getCapacity();",
"@RequiresApi(api = Build.VERSION_CODES.M)\n private void requestStoragePermission() {\n requestPermissions(storagePermissions, STORAGE_REQUEST_CODE);\n }",
"protected void removeOldData() {\n if (!storage.isEmpty()) {\n long timeLowerbound = storage.lastKey() - maxStorageTime;\n while (!storage.isEmpty() && storage.firstKey() < timeLowerbound) {\n storage.pollFirstEntry();\n } \n }\n }",
"@Override public long getAvailableSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }",
"List<StorageResourceUsage> getStorageResourceUsage();",
"public abstract int capacity();",
"public interface SCStorage\r\n{\r\n\t/**\r\n\t * The server will register a driver before making any method calls\r\n\t *\r\n\t * @param driver the driver\r\n\t */\r\n\tpublic void setStorageServerDriver(SCStorageServerDriver driver);\r\n\r\n\t/**\r\n\t * Open the storage at the given path\r\n\t *\r\n\t * @param path path to the storage\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void\topen(File path) throws IOException;\r\n\r\n\t/**\r\n\t * Return the object associated with the given key\r\n\t *\r\n\t * @param key the key\r\n\t * @return the object or null if not found\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic SCDataSpec get(String key) throws IOException;\r\n\r\n\t/**\r\n\t * Add an object to the storage\r\n\t *\r\n\t * @param key key\r\n\t * @param data object\r\n\t * @param groups associated groups or null\r\n\t */\r\n\tpublic void put(String key, SCDataSpec data, SCGroupSpec groups);\r\n\r\n\t/**\r\n\t * Close the storage. The storage instance will be unusable afterwards.\r\n\t *\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void close() throws IOException;\r\n\r\n\t/**\r\n\t * Return the keys that match the given regular expression\r\n\t *\r\n\t * @param regex expression\r\n\t * @return matching keys\r\n\t */\r\n\tpublic Set<String> regexFindKeys(String regex);\r\n\r\n\t/**\r\n\t * Remove the given object\r\n\t *\r\n\t * @param key key of the object\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void remove(String key) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method deletes all objects\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to delete\r\n\t * @return list of keys deleted.\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> removeGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * sccache supports associative keys via {@link SCGroup}. This method lists all keys\r\n\t * associated with the given group.\r\n\t *\r\n\t * @param group the group to list\r\n\t * @return list of keys\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> listGroup(SCGroup group) throws IOException;\r\n\r\n\t/**\r\n\t * Returns storage statistics\r\n\t *\r\n\t * @param verbose if true, verbose stats are returned\r\n\t * @return list of stats\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic List<String> dumpStats(boolean verbose) throws IOException;\r\n\r\n\t/**\r\n\t * Write a tab delimited file with information about the key index\r\n\t *\r\n\t * @param f the file to write to\r\n\t * @throws IOException errors\r\n\t */\r\n\tpublic void writeKeyData(File f) throws IOException;\r\n}",
"public abstract long getSize() throws AccessException;",
"protected static long getMinUploadFreespace() {\n return minUploadFreespace;\n }",
"public Integer getStorageSize() {\n\t return this.storageSize;\n\t}",
"long getMaxFileSizeBytes();",
"long getMemLimit();",
"Limit createLimit();",
"@Override\n public int getMaxCapacity() {\n return 156250000;\n }",
"void requestStoragePermission();",
"public long getUsedStorage() {\n return usedStorage;\n }",
"LockStorage getLockStorage();",
"public long getTotalStorage() {\n return totalStorage;\n }",
"public int getPokeStorage() {\n return pokeStorage_;\n }",
"public int getPokeStorage() {\n return pokeStorage_;\n }",
"public Integer getMaximumPersistentDisks() {\n return maximumPersistentDisks;\n }",
"@Override\n public int getMaxWriteSize() {\n return mMaxWriteSize;\n }",
"public double getQuotaLimit() {\n\t\treturn this.quotaLimit;\n\t}",
"public Storage(int capacity) {\n this.foods = new Food[capacity];\n buffer = new StringBuffer();\n }",
"public int capacity();",
"public int capacity();",
"public void setStorageSize(Integer storageSize) {\n\t this.storageSize = storageSize;\n\t}",
"@SuppressWarnings(\"unused\")\n\tpublic static String[] getStoragePermissions()\n\t{\n\t\treturn PERMISSIONS_STORAGE;\n\t}",
"public int getSizeLimit() {\n\t\treturn sizeLimit;\n\t}",
"public int getMaxUploads() {\n return 0;\r\n }",
"int getMaximumCacheSize();",
"protected abstract boolean reachedContractLimit(int size);",
"public int getItemStorage() {\n return itemStorage_;\n }",
"public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}",
"public int getMaxCacheSizeOnVeryLowDiskSpace() {\n return mMaxCacheSizeOnVeryLowDiskSpace;\n }",
"public int getCapacity();",
"public filesMB() {\n }",
"public int getLogCollectionMaxFileSize();",
"public interface NamedStorage extends Iterable<String>, AutoCloseable {\n\n /**\n * Gets data stored by specified key and puts it to the provided stream.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to process data\n * @return true if data was found, false otherwise\n */\n boolean getInto(String key, OutputStream stream);\n\n /**\n * Saves data from stream using provided key. If there was data for this key it will be overwritten with new data.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to get data from\n */\n void saveFrom(String key, InputStream stream);\n\n /**\n * Checks that there is data stored for provided key\n * @param key data key\n * @return true if there is data for this key, false otherwise\n */\n boolean contains(String key);\n\n /**\n * Deletes key and associated data from storage. Does nothing if there is no such key in storage\n * @param key\n */\n void delete(String key);\n\n /**\n *\n * @return iterator for all keys. Order of keys is unknown.\n */\n Iterator<String> iterator();\n\n /**\n * Closes storage and flushes all changes on disk.\n */\n void close();\n\n /**\n * Copies all data to the specified storage\n * @param storage\n */\n void cloneTo(NamedStorage storage);\n}",
"public void limitAccess(String key, Integer limit) {\n boolean acquired = stringRedisTemplate.execute(\n rateLimitLua, // Lua script的真身\n Lists.newArrayList(key), // Lua脚本中的Key列表\n limit.toString() // Lua脚本Value列表\n );\n\n if (!acquired) {\n log.error(\"your access is blocked, key={}\", key);\n throw new RuntimeException(\"Your access is blocked\");\n }\n }",
"public int getItemStorage() {\n return itemStorage_;\n }",
"@Override\n public void setMaxSize(int maxSize){\n if (maxSize < 0){\n throw new IllegalArgumentException(\"Memory cache size must not be negative\");\n }\n\n this.maxSize = maxSize;\n\n if (maxSize == 0){\n // unlimited cache size\n return;\n }\n\n int cacheSize = this.size();\n if (cacheSize > maxSize){\n // max cache size is less than current cache size\n // delete all object that are out of bound\n ArrayList<K> cacheObjects = new ArrayList<>(this.cache.keySet());\n for (int i = maxSize; i < cacheSize; i++){\n this.delete(cacheObjects.get(i));\n }\n }\n }",
"public int getMaxCacheSizeOnLowDiskSpace() {\n return mMaxCacheSizeOnLowDiskSpace;\n }",
"public long limit();",
"public synchronized void limitNextBytes() {\n limitNextBytes(1);\n }",
"int capacity();",
"int capacity();",
"private void uploadFromDataStorage() {\n }",
"public String getLimit_Base();",
"public long getStorage() {\n\t\t// List<Storage> listSim = new ArrayList<Storage>();\n\t\t//\n\t\t// Storage storage;\n\t\t//\n\t\t// for (int i = 0; i < 3; i++) {\n\t\t// storage = new Storage();\n\t\t//\n\t\t// storage.setDeviceName(\"/dev/sda1\");\n\t\t// storage.setFreeSpaceKB(3 * 100 * 12 * 5 * i);\n\t\t// storage.setTotalSizeKB(288237920);\n\t\t// storage.setMountPoint(\"/\");\n\t\t// storage.setOsSpecificFSType(\"ext4\");\n\t\t//\n\t\t// listSim.add(storage);\n\t\t// }\n\t\t// return listSim;\n\n\t\treturn new Random().nextInt(19700621);\n\t}",
"public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}",
"public int getStorageplace() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"storageplace\")).intValue());\n }",
"@Override public long getUsedSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }",
"public interface StorageModel {\n}",
"protected abstract int getMaxDesiredSize();",
"public DataStorage getDataStorage();",
"public Storage(int storageSize) {\n\t\tstorageSpace = new Block[storageSize];\n\t}",
"public Integer supportedStorageGb() {\n return this.supportedStorageGb;\n }",
"boolean isLimited();",
"public void requestEviction(int cMaximum);",
"long getAvailableSpace() throws IOException;",
"public long getPropertyVolumeLimit();",
"public interface IStorage extends Serializable {\n\n /**\n * Removes all stored values.\n */\n void clear();\n\n /**\n * Removes the value stored under the given key (if one exists).\n *\n * @return {@code true} if a successful.\n */\n StoragePrimitive remove(String key);\n\n /**\n * Adds all mappings in {@code val} to this storage object, overwriting any existing values.\n *\n * @see #addAll(String, IStorage)\n */\n void addAll(IStorage val);\n\n /**\n * Adds all mappings in {@code val} to this storage object, where all keys are prefixed with\n * {@code prefix}. Any existing values are overwritten.\n */\n void addAll(String prefix, IStorage val);\n\n /**\n * @return All stored keys.\n * @see #getKeys(String)\n */\n Collection<String> getKeys();\n\n /**\n * @return A collection of all stored keys matching the given prefix, or all stored keys if the prefix is\n * {@code null}.\n */\n Collection<String> getKeys(@Nullable String prefix);\n\n /**\n * @return {@code true} if this storage object contains a mapping for the given key.\n */\n boolean contains(String key);\n\n /**\n * Returns raw value stored under the given key.\n */\n StoragePrimitive get(String key);\n\n /**\n * Returns value stored under the given key converted to a boolean.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n boolean getBoolean(String key, boolean defaultValue);\n\n /**\n * Convenience method for retrieving a 32-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to int.\n *\n * @see #getDouble(String, double)\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Convenience method for retrieving a 64-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to long.\n *\n * @see #getDouble(String, double)\n */\n long getLong(String keyTotal, long defaultValue);\n\n /**\n * Returns value stored under the given key converted to a double.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n double getDouble(String key, double defaultValue);\n\n /**\n * Returns value stored under the given key converted to a string.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Stores a value under the given key. If {@code null}, removes any existing mapping for the given key\n * instead.\n */\n void set(String key, @Nullable StoragePrimitive val);\n\n /**\n * Stores a boolean value under the given key.\n *\n * @see #setString(String, String)\n */\n void setBoolean(String key, boolean val);\n\n /**\n * Convenience method for storing an integer. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setInt(String key, int val);\n\n /**\n * Convenience method for storing a long. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setLong(String key, long val);\n\n /**\n * Stores a double-precision floating point value under the given key.\n *\n * @see #setString(String, String)\n */\n void setDouble(String key, double val);\n\n /**\n * Stores a string value under the given key.\n *\n * @param val The value to store. If {@code null}, removes any existing mapping for the given key instead.\n */\n void setString(String key, String val);\n\n}",
"public interface Storage {\n String SPLITTER = \" &&& \";\n\n /**\n * Gets the list of tasks held by the storage.\n * @return the list of tasks\n */\n TaskList getList();\n\n /**\n * Writes the task to the storage file.\n * @param task the task that is to be written in the task\n * @throws InvalidCommandException should never been thrown unless the file path is not working\n */\n void addToList(Task task) throws InvalidCommandException;\n\n /**\n * Re-writes the storage file because of deletion or marking-as-done executed.\n * @param list the new task list used for updating the storage file\n * @throws InvalidCommandException should never been thrown unless the file path is not working\n */\n void reWrite(TaskList list) throws InvalidCommandException;\n}",
"@Override\n public boolean put(K key, V object){\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n CacheObject<K, V> cacheObject = new CacheObject<>(key, object);\n this.cache.put(key, cacheObject);\n\n return true;\n }",
"@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }",
"public interface IStorageManager {\n public IStorageBook getValue(String key);\n\n public void addStorageBook(String key, IStorageBook book);\n\n public void clear();\n\n public boolean isEmpty();\n\n public void remove(String key);\n}",
"public abstract int getPersistence();",
"public StorageUnit beStorageUnit();",
"public boolean isPossibleToTake() {\n if (storage == 0) {\n return false;\n } else {\n return true;\n }\n }",
"public interface IWritableStorage extends IStorage {\n\n\tpublic void setContents(InputStream source, IProgressMonitor monitor) throws CoreException;\n\t\n\tpublic IStatus validateEdit(Object context);\n}",
"private void limitedMemoryWithoutEviction() {\n Jedis jedis = this.connector.connection();\n System.out.println(\"Collect: \" + jedis.get(\"0\")); // Redis still services read operations.\n System.out.println(jedis.set(\"0\", \"0\")); // Write operations will be refused.\n }",
"public interface Storage {\n\n String getId();\n}",
"BigDecimal getCacheSpaceAvailable();",
"boolean hasPartitionLimit();",
"@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}",
"@Override\n public boolean put(CacheObject<K, V> cacheObject){\n K key = cacheObject.getKey();\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n this.cache.put(key, cacheObject);\n\n return true;\n }",
"int getLimit();",
"int getLimit();",
"public void expendLimitedResource(String resourceName){\n }",
"public Storage(String s){\n this.path=s;\n }",
"public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}",
"int getQuotaModeValue();"
]
| [
"0.6516563",
"0.61752033",
"0.6088204",
"0.59139675",
"0.5876525",
"0.5864186",
"0.5857648",
"0.58467484",
"0.5821653",
"0.58180565",
"0.57813644",
"0.5756021",
"0.5712017",
"0.56975424",
"0.5683051",
"0.5677685",
"0.5654175",
"0.56452614",
"0.5622836",
"0.5621502",
"0.5610634",
"0.55909145",
"0.5588696",
"0.5550058",
"0.554967",
"0.5536594",
"0.55332655",
"0.55266654",
"0.55204344",
"0.55142075",
"0.55137205",
"0.5501744",
"0.5493505",
"0.54933363",
"0.54871285",
"0.546646",
"0.54645413",
"0.54527223",
"0.5439482",
"0.54368514",
"0.5420385",
"0.541308",
"0.5409703",
"0.5409703",
"0.5400294",
"0.5398872",
"0.53898454",
"0.53882784",
"0.53831786",
"0.5381352",
"0.538014",
"0.53731924",
"0.53729576",
"0.5365907",
"0.5356931",
"0.53563386",
"0.53562015",
"0.53532183",
"0.5352721",
"0.5349586",
"0.5330842",
"0.53299135",
"0.5325912",
"0.5324651",
"0.5324651",
"0.5304349",
"0.53031003",
"0.5301901",
"0.52878344",
"0.52876854",
"0.526744",
"0.52635616",
"0.5261629",
"0.5260595",
"0.5256697",
"0.5256203",
"0.52559805",
"0.52535486",
"0.5240264",
"0.52292585",
"0.52227485",
"0.5222675",
"0.52194417",
"0.5217883",
"0.5214432",
"0.52126735",
"0.52116126",
"0.52062374",
"0.5194735",
"0.5186562",
"0.5186446",
"0.5179373",
"0.5178709",
"0.51761997",
"0.5168538",
"0.51664984",
"0.51664984",
"0.5160223",
"0.514813",
"0.51407564",
"0.5130475"
]
| 0.0 | -1 |
this test case execution depends on test1 result | @Test(groups = {"groupTwo"},dependsOnMethods= {"test1"})
public void test2() {
System.out.println("test two");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }",
"@Test (priority=1)\n\tpublic void TestCase1() {\n\t\tapp.log(\"------TESTING TEST CASE 1-----\");\n\t\tActualResult=app.Method1();//execute the method 1 and Result can be accessed using the Map reference\n\t\t\n\t\t//add every assertion in a try-catch block \n\t\ttry{\n\t\tAssert.assertEquals(\"Key 1\",ActualResult.get(\"key1\"));//assert(expected, actual value)\n\t\t}catch(Throwable t){\n\t\t\tErrorUtil.addVerificationFailure(t);\n\t\t\tapp.log(\"Value is incorrect\");\n\t\t\t}\n\t\t}",
"@Test\n\tpublic void test2() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query02.rq\", \"/tests/basic/query02.ttl\", false);\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}",
"public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }",
"public void onTestSuccess(ITestResult result) {\n\t\t\r\n\t}",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"private void test2(){\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 void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}",
"public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}",
"public void onTestSuccess(ITestResult result) {\n \tSystem.out.println(\"The test case is passed :\"+result.getName());\n }",
"public void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"*********Test onTestSuccess :\"+result.getName());\r\n\t\t\r\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}",
"@Test\n\tpublic void testQuery1() {\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\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 }",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}",
"private static boolean KawigiEdit_RunTest(int testNum, String p0, boolean hasAnswer, String p1) {\n\t\tSystem.out.print(\"Test \" + testNum + \": [\" + \"\\\"\" + p0 + \"\\\"\");\n\t\tSystem.out.println(\"]\");\n\t\tSRM486_Div2_L1_TxMsg obj;\n\t\tString answer;\n\t\tobj = new SRM486_Div2_L1_TxMsg();\n\t\tlong startTime = System.currentTimeMillis();\n\t\tanswer = obj.getMessage(p0);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tboolean res;\n\t\tres = true;\n\t\tSystem.out.println(\"Time: \" + (endTime - startTime) / 1000.0 + \" seconds\");\n\t\tif (hasAnswer) {\n\t\t\tSystem.out.println(\"Desired answer:\");\n\t\t\tSystem.out.println(\"\\t\" + \"\\\"\" + p1 + \"\\\"\");\n\t\t}\n\t\tSystem.out.println(\"Your answer:\");\n\t\tSystem.out.println(\"\\t\" + \"\\\"\" + answer + \"\\\"\");\n\t\tif (hasAnswer) {\n\t\t\tres = answer.equals(p1);\n\t\t}\n\t\tif (!res) {\n\t\t\tSystem.out.println(\"DOESN'T MATCH!!!!\");\n\t\t} else if ((endTime - startTime) / 1000.0 >= 2) {\n\t\t\tSystem.out.println(\"FAIL the timeout\");\n\t\t\tres = false;\n\t\t} else if (hasAnswer) {\n\t\t\tSystem.out.println(\"Match :-)\");\n\t\t} else {\n\t\t\tSystem.out.println(\"OK, but is it right?\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn res;\n\t}",
"@Test\r\n\tpublic void test2(){\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\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\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }",
"@Test\n public void processTestA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //pass transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),300);\n\n Assert.assertEquals(true,trans.process());\n }",
"public void testSubResults() throws Exception {\n SampleResult resWithSubResults = new SampleResult(); \n\n long beginTest = System.currentTimeMillis();\n \n resWithSubResults.sampleStart();\n Thread.sleep(100);\n resWithSubResults.setBytes(300);\n resWithSubResults.setSampleLabel(\"sample with two subresults\");\n resWithSubResults.setSuccessful(true);\n resWithSubResults.sampleEnd();\n long sampleWithSubResultsTime = resWithSubResults.getTime();\n \t\n // Sample with no sub results, simulates an image download\n SampleResult resNoSubResults1 = new SampleResult(); \n resNoSubResults1.sampleStart();\n Thread.sleep(100);\n resNoSubResults1.setBytes(100);\n resNoSubResults1.setSampleLabel(\"sample with no subresults\");\n resNoSubResults1.setSuccessful(true);\n resNoSubResults1.sampleEnd();\n long sample1Time = resNoSubResults1.getTime();\n\n assertTrue(resNoSubResults1.isSuccessful());\n assertEquals(100, resNoSubResults1.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults1.getSampleLabel());\n assertEquals(1, resNoSubResults1.getSampleCount());\n assertEquals(0, resNoSubResults1.getSubResults().length);\n \n // Sample with no sub results, simulates an image download \n SampleResult resNoSubResults2 = new SampleResult(); \n resNoSubResults2.sampleStart();\n Thread.sleep(100);\n resNoSubResults2.setBytes(200);\n resNoSubResults2.setSampleLabel(\"sample with no subresults\");\n resNoSubResults2.setSuccessful(true);\n resNoSubResults2.sampleEnd();\n long sample2Time = resNoSubResults2.getTime();\n\n long overallTime = System.currentTimeMillis() - beginTest;\n \n assertTrue(resNoSubResults2.isSuccessful());\n assertEquals(200, resNoSubResults2.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults2.getSampleLabel());\n assertEquals(1, resNoSubResults2.getSampleCount());\n assertEquals(0, resNoSubResults2.getSubResults().length);\n \n // Now add the subsamples to the sample\n resWithSubResults.addSubResult(resNoSubResults1);\n resWithSubResults.addSubResult(resNoSubResults2);\n assertTrue(resWithSubResults.isSuccessful());\n assertEquals(600, resWithSubResults.getBytes());\n assertEquals(\"sample with two subresults\", resWithSubResults.getSampleLabel());\n assertEquals(1, resWithSubResults.getSampleCount());\n assertEquals(2, resWithSubResults.getSubResults().length);\n long totalTime = resWithSubResults.getTime();\n \n // Check the sample times\n long allsamplesTime = sampleWithSubResultsTime + sample1Time + sample2Time;\n if (totalTime < allsamplesTime) {\n \tfail(\"Total: \"+totalTime+\" < sum(samples): \"+ allsamplesTime);\n }\n if (totalTime > overallTime) {\n \tfail(\"Total: \"+totalTime+\" > overall time: \"+ overallTime);\n }\n \n // Check that calculator gets the correct statistics from the sample\n Calculator calculator = new Calculator();\n calculator.addSample(resWithSubResults);\n assertEquals(600, calculator.getTotalBytes());\n assertEquals(1, calculator.getCount());\n assertEquals(1d / (totalTime / 1000d), calculator.getRate(),0.0001d); // Allow for some margin of error\n // Check that the throughput uses the time elapsed for the sub results\n assertFalse(1d / (sampleWithSubResultsTime / 1000d) <= calculator.getRate());\n }",
"@Test \n\tvoid test3() {\n\t\tassertTrue(!r1.getOutput().isEmpty());\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}",
"@Test(invocationCount=1,skipFailedInvocations=false)\n public void testDemo() throws TimeOut{\n \tMentalStateManager msmAgent1_0DeploymentUnitByType3=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType3\");\n \t \t\t\t\n \t// wait for Agent1_0DeploymentUnitByType2 to initialise\n \tMentalStateManager msmAgent1_0DeploymentUnitByType2=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType2\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType1 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType1=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType1\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType0 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType0=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType0\");\n \t\n \t\n \tGenericAutomata ga=null;\n \tga=new GenericAutomata();\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState0\");\t\t\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState1\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addFinalState(\"WFTestFinalState0\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState0\",\"Agent0_0DeploymentUnitByType0-Task0\",\"WFTestInitialState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState0\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState1\",\"Agent0_0DeploymentUnitByType1-Task0\",\"WFTestInitialState1\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState1\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\t\n\t\t\t\n\t\t\tTaskExecutionValidation tev=new TaskExecutionValidation(ga);\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType0\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType1\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\t\n \t\t\n \tRetrieveExecutionData cwfe=new \tRetrieveExecutionData();\n \tEventManager.getInstance().register(cwfe);\n\t\tlong step=100;\n\t\tlong currentTime=0;\n\t\tlong finishedTime=0;\n\t\tlong duration=2000;\n\t\tlong maxtimepercycle=2000;\n\t\t \n\t\tMainInteractionManager.goAutomatic(); // tells the agents to start working\t\t\t\n\t\twhile (currentTime<finishedTime){\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(step);\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentTime=currentTime+step;\n\t\t\t}\n\t\t\t\n\t\t\tif (currentTime<duration){\n\t\t\t\tTestUtils.doNothing(duration-currentTime); // waits for tasks to execute\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tMainInteractionManager.goManual(); // now it commands to not execute more tasks\t\t\n\t\t\tEventManager.getInstance().unregister(cwfe);\n\t\t\t\n\t\t Vector<String> counterExamples=tev.validatePartialTermination(cwfe,ga,maxtimepercycle);\n\t\t assertTrue(\"The execution does not match the expected sequences. I found the following counter examples \"+counterExamples,counterExamples.isEmpty());\t\t\n\t\t\t\t\t\t\t\n }",
"@Test //This is integration test\r\n\tpublic void testCalculatePrice02() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\texspectedFoodList.add(new Appetizer(\"Salad\",Food.foodType.APPETIZER, \"55\"));\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\texspectedCombinationList.add(new Combination(exspectedFoodList));\r\n\t\t\r\n\t\tint combinationCounter = 0;\r\n\t\tint foodCounter = 0;\r\n\t\tfor(Combination actualCombination : calcPrice.getResult())\r\n\t\t{\r\n\t\t\tfor(Food actualFood : actualCombination.getFoodCombination())\r\n\t\t\t{\r\n\t\t\t\tassertEquals(exspectedCombinationList.get(combinationCounter).getFoodCombination().get(foodCounter).getFoodName(), actualFood.getFoodName());\r\n\t\t\t\tfoodCounter++;\r\n\t\t\t}\r\n\t\t\tcombinationCounter++;\r\n\t\t}\r\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"********** \tTest Successfull : \"+result.getName());\n\t\t\n\t\t\n\t}",
"@Test\r\n\tpublic void test() {\r\n\t\tmodel1.getActualTurn().setHasAttacked(true);\r\n\t\tassertEquals(attack2.isPossible(model1) , false);\r\n\t\t\r\n\t\t/* verifica che se gli alieni vincono il gioco viene chiuso */\r\n\t\taliensWin2.perform(model1);\r\n\t\tassertEquals(model1.getGameState() , GameState.CLOSING);\r\n\t\tassertEquals(model1.getActualTurn().getCurrentPlayer().getAvatar().getIsWinner() , EndState.WINNER);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn2);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento del metodo isPossible dell'azione di attacco */\r\n\t\tassertEquals(attack1.isPossible(model1) , false);\r\n\t\tmodel1.getActualTurn().setHasMoved(true);\r\n\t\tmodel1.getActualTurn().setHasDraw(true);\r\n\t\tassertEquals(attack1.isPossible(model1) , false);\r\n\t\tmodel1.getActualTurn().setHasDraw(false);\r\n\t\tmodel1.setGameState(GameState.ACCEPTING);\r\n\t\tassertEquals(attack1.isPossible(model1) , false);\r\n\t\tmodel1.setGameState(GameState.RUNNING);\r\n\t\tassertEquals(attack1.isPossible(model1) , true);\r\n\t\tmodel1.getGamePlayers().get(0).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(1).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(2).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(3).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(4).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(5).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(6).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tevtAttacked1 = attack1.perform(model1);\r\n\t\tassertEquals(((EventAttacked)evtAttacked1.get(1)).getAreThereOtherHumans() , false);\r\n\t\tmodel1.getGamePlayers().get(1).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tmodel1.getGamePlayers().get(0).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tmodel1.getGamePlayers().get(2).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tmodel1.getGamePlayers().get(3).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tevtAttacked1 = attack1.perform(model1);\t\r\n\t\tassertEquals(((EventSufferAttack)evtAttacked1.get(0)).getKilled() , killedPlayer);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn3);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento del metodo isPossible dell'azione di attacco */\r\n\t\tmodel1.setGameState(GameState.ACCEPTING);\r\n\t\t((Human)model1.getActualTurn().getCurrentPlayer().getAvatar()).setCanAttack(true);\r\n\t\tassertEquals(attack3.isPossible(model1) , false);\r\n\t\tmodel1.setGameState(GameState.RUNNING);\r\n\t\t((Human)model1.getActualTurn().getCurrentPlayer().getAvatar()).setCanAttack(false);\r\n\t\tassertEquals(attack3.isPossible(model1) , false);\r\n\t\t((Human)model1.getActualTurn().getCurrentPlayer().getAvatar()).setCanAttack(true);\r\n\t\tmodel1.getActualTurn().setHasAttacked(true);\r\n\t\tassertEquals(attack3.isPossible(model1) , false);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn4);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento della perform dell'azione di attacco */\r\n\t\tsector1 = model1.getGameMap().searchSectorByName(\"Hatch\");\r\n\t\tmodel1.getActualTurn().getCurrentPlayer().getAvatar().setCurrentSector(sector1);\r\n\t\tevtAttacked2 = humanWin2.perform(model1);\r\n\t\tassertEquals(((EventNotifyHumanWin)evtAttacked2.get(0)).getGenerator() , player4);\r\n\t\tmodel1.getGamePlayers().get(3).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(2).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(0).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(1).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(4).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tassertEquals(humanWin2.perform(model1).size() , 3);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn7);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento dell'utilizzo della carta difesa */\r\n\t\tmodel1.getActualTurn().getCurrentPlayer().getAvatar().addCard(card);\r\n\t\tdefense = new Defense(evtDefense);\r\n\t\tevtAttacked2 = defense.perform(model1);\r\n\t\tassertTrue(!model1.getActualTurn().getCurrentPlayer().getAvatar().getMyCards().contains(card));\r\n\t\tassertTrue(evtAttacked2.get(0) instanceof EventRejectCardAlien);\r\n\t\tassertTrue(evtAttacked2.get(1) instanceof EventCardUsed);\r\n\t\t\r\n\t}",
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"@Test\n public void z_topDown_TC03() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n\n Statistica statistica = appService.getStatistica();\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"Literatura\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"Literatura\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"M\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"M\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"A\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"A\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"B\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"B\")==1);\n\n assertTrue(statistica.getIntrebariDomenii().containsKey(\"C\"));\n assertTrue(statistica.getIntrebariDomenii().get(\"C\")==1);\n\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n } catch (NotAbleToCreateStatisticsException e) {\n assertTrue(false);\n }\n }",
"@Test\n\tpublic void test2() {\n\t}",
"@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}",
"@Test\n public void processTestB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),2000);\n\n Assert.assertEquals(false,trans.process());\n }",
"private void test() {\n\n\t}",
"public void onTestSuccess(ITestResult result) {\n\t if(result.getStatus()==ITestResult.SUCCESS) {\n\t \ttest.log(Status.PASS, \"Pass Test case is: \" + result.getName());\n\t \t\n\t }\n\t }",
"private static boolean KawigiEdit_RunTest(int testNum, int[] p0, String[] p1, boolean hasAnswer, int p2) {\n\t\tSystem.out.print(\"Test \" + testNum + \": [\" + \"{\");\n\t\tfor (int i = 0; p0.length > i; ++i) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\",\");\n\t\t\t}\n\t\t\tSystem.out.print(p0[i]);\n\t\t}\n\t\tSystem.out.print(\"}\" + \",\" + \"{\");\n\t\tfor (int i = 0; p1.length > i; ++i) {\n\t\t\tif (i > 0) {\n\t\t\t\tSystem.out.print(\",\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\\"\" + p1[i] + \"\\\"\");\n\t\t}\n\t\tSystem.out.print(\"}\");\n\t\tSystem.out.println(\"]\");\n\t\tXorTravelingSalesman obj;\n\t\tint answer;\n\t\tobj = new XorTravelingSalesman();\n\t\tlong startTime = System.currentTimeMillis();\n\t\tanswer = obj.maxProfit(p0, p1);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tboolean res;\n\t\tres = true;\n\t\tSystem.out.println(\"Time: \" + (endTime - startTime) / 1000.0 + \" seconds\");\n\t\tif (hasAnswer) {\n\t\t\tSystem.out.println(\"Desired answer:\");\n\t\t\tSystem.out.println(\"\\t\" + p2);\n\t\t}\n\t\tSystem.out.println(\"Your answer:\");\n\t\tSystem.out.println(\"\\t\" + answer);\n\t\tif (hasAnswer) {\n\t\t\tres = answer == p2;\n\t\t}\n\t\tif (!res) {\n\t\t\tSystem.out.println(\"DOESN'T MATCH!!!!\");\n\t\t} else if ((endTime - startTime) / 1000.0 >= 2) {\n\t\t\tSystem.out.println(\"FAIL the timeout\");\n\t\t\tres = false;\n\t\t} else if (hasAnswer) {\n\t\t\tSystem.out.println(\"Match :-)\");\n\t\t} else {\n\t\t\tSystem.out.println(\"OK, but is it right?\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn res;\n\t}",
"@Test\n public void mainFlowTest() {\n type.insert();\n engineer.insert();\n\n Equipment equipment1 = new Equipment(\"equipment1\", type.getId(), model, location, installTime1);\n Equipment equipment2 = new Equipment(\"equipment2\", type.getId(), model, location, installTime2);\n equipment1.insert();\n equipment2.insert();\n\n Plan plan1 = new Plan(\"plan1\", type.getId(), 30, \"large\", \"checking\");\n Plan plan2 = new Plan(\"plan2\", type.getId(), 60, \"small\", \"repairing\");\n plan1.insert();\n plan2.insert();\n\n Record record1 = new Record(\"r1\", plan1.getId(), equipment1.getId(), engineer.getId(),\n DateUtils.getCalendar(2015, 11, 1).getTime(), 2, \"换过滤网\");\n Record record2 = new Record(\"r2\", plan2.getId(), equipment1.getId(), engineer.getId(),\n DateUtils.getCalendar(2015, 11, 31).getTime(), 1, \"发动机清理\");\n Record record3 = new Record(\"r3\", plan1.getId(), equipment2.getId(), engineer.getId(),\n DateUtils.getCalendar(2015, 11, 5).getTime(), 3, \"cleaning\");\n Record record4 = new Record(\"r4\", plan2.getId(), equipment2.getId(), engineer.getId(),\n DateUtils.getCalendar(2016, 0, 4).getTime(), 2, \"tiny repairing\");\n record1.insert();\n record2.insert();\n record3.insert();\n record4.insert();\n\n // test the correctness of 10 days tasks\n List<Task> tenDayTasks = MaintenanceOperation.getTenDaysTask(DateUtils.getCalendar(2015, 11, 30).getTime());\n assertEquals(\"wrong with 10 days' tasks\", 2, tenDayTasks.size());\n\n // test the total maintenance time\n int time1 = MaintenanceOperation.getTotalMaintenanceTime(equipment1.getId());\n assertEquals(\"wrong with total time of equipment 1\", 3, time1);\n int time2 = MaintenanceOperation.getTotalMaintenanceTime(equipment2.getId());\n assertEquals(\"wrong with total time of equipment 2\", 5, time2);\n\n // test the total maintenance time of certain type\n int time3 = MaintenanceOperation.getTotalMaintenanceTime(equipment1, plan1.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 2, time3);\n int time4 = MaintenanceOperation.getTotalMaintenanceTime(equipment1, plan2.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 1, time4);\n int time5 = MaintenanceOperation.getTotalMaintenanceTime(equipment2, plan1.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 3, time5);\n int time6 = MaintenanceOperation.getTotalMaintenanceTime(equipment2, plan2.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 2, time6);\n }",
"public testCase1_result(testCase1_result other) {\n\t\t\t__isset_bitfield = other.__isset_bitfield;\n\t\t\tthis.success = other.success;\n\t\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 }",
"@Test //This is integration test\r\n\tpublic void testCalculatePrice03() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\texspectedFoodList.add(new Appetizer(\"Salad\",Food.foodType.APPETIZER, \"55\"));\r\n\t\texspectedFoodList.add(new Appetizer(\"Beef Enchailada\",Food.foodType.MAINDISH, \"100\"));\t\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\texspectedCombinationList.add(new Combination(exspectedFoodList));\r\n\t\t\r\n\t\tint combinationCounter = 0;\r\n\t\tint foodCounter = 0;\r\n\t\tfor(Combination actualCombination : calcPrice.getResult())\r\n\t\t{\r\n\t\t\tfor(Food actualFood : actualCombination.getFoodCombination())\r\n\t\t\t{\r\n\t\t\t\tassertEquals(exspectedCombinationList.get(combinationCounter).getFoodCombination().get(foodCounter).getFoodName(), actualFood.getFoodName());\r\n\t\t\t\tfoodCounter++;\r\n\t\t\t}\r\n\t\t\tcombinationCounter++;\r\n\t\t}\r\n\t}",
"void onTestSuccess(ITestResult result);",
"@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException \n {\n AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);\n\n //retrieve the test results \n List<AggregatedTestResultAction.ChildReport> currentResults = currentTestResults.getResult();\n\n listener.getLogger().println(\"Running Test Checker Plugin\");\n\n //listener.getLogger().println(\"Current Build :- \", currentTestResults.getDisplayName());\n //listener.getLogger().println(\"Previous Build :- \", currentTestResults.getDisplayName());\n\n\n //iterate through the result of each test\n for(int i = 0; i < currentResults.size(); i++)\n {\n\n\t //obtain the report of a test\t\n\t AggregatedTestResultAction.ChildReport child = currentResults.get(i);\n\n\t //retreive the test result\n\t TestResult currentTestResultChild = (TestResult)child.result;\n\n\t //get the passed tests \n\t ArrayList<TestResult> currRes = ((ArrayList<TestResult>)currentTestResultChild.getPassedTests());\n\n\t //iterate through each passed test\n\t for(int j = 0; j < currRes.size(); j++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currRes.get(j);\n\n\t //obtain the status of the test in previous build\n\t TestResult previousTestResChild = currRes.get(j).getPreviousResult();\n\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\t\n\t // Case 1: Both passed\n\t if (currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Passed) : \" + currentTestResChild.getDisplayName());\n\t }\n\t // Case 2: Previous failed, newly passed\n\t if (currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Passing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n\n\t //get the failed tests \n\t ArrayList<TestResult> currResF = ((ArrayList<TestResult>)currentTestResultChild.getFailedTests());\n\n\t //iterate through each failed test\n\t for(int k = 0; k < currResF.size(); k++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currResF.get(k);\n\n\t //obtain the status of the test in previous build\n\t\tTestResult previousTestResChild = currResF.get(k).getPreviousResult();\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\n\t // Case 3: Both failed\n\t if (!currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Failed) : \" + currentTestResChild.getDisplayName());\n\t } \n\t // Case 4: Previous passed, newly failed\n\t if (!currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Failing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n }\n }",
"@Test //This is integration test\r\n\tpublic void testCalculatePrice01() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\tassertEquals(exspectedCombinationList, calcPrice.getResult());\r\n\t}",
"@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }",
"public void onTestSuccess(ITestResult result) {\r\n\t\ttry {\r\n\t\t\t//used to write result details in html\r\n\t\t\tgenerateTestExecution(result);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test //This is integration test\r\n\tpublic void testCalculatePrice04() throws Exception\r\n\t{\n\t\tImportInformation information = new ImportInformation();\r\n\t\tinformation.importMenu(\"Food_Data_Test1\");\r\n\t\tinformation.importUserInput();\t\r\n\t\tCalculation calcPrice = new Calculation();\r\n\t\tcalcPrice.calculatePrice(information.getMenu(),information.getUserInput());\r\n\t\t// compare the object itself and its side effects instead of String output, the string output can be done in main.\r\n\t\tArrayList<Food> exspectedFoodList = new ArrayList<Food>();\r\n\t\texspectedFoodList.add(new Appetizer(\"Salad\",Food.foodType.APPETIZER, \"55\"));\r\n\t\texspectedFoodList.add(new Appetizer(\"Beef Enchailada\",Food.foodType.MAINDISH, \"100\"));\t\r\n\t\tArrayList<Combination> exspectedCombinationList = new ArrayList<Combination>();\r\n\t\texspectedCombinationList.add(new Combination(exspectedFoodList));\r\n\t\t\r\n\t\tint combinationCounter = 0;\r\n\t\tint foodCounter = 0;\r\n\t\tfor(Combination actualCombination : calcPrice.getResult())\r\n\t\t{\r\n\t\t\tfor(Food actualFood : actualCombination.getFoodCombination())\r\n\t\t\t{\r\n\t\t\t\tassertEquals(exspectedCombinationList.get(combinationCounter).getFoodCombination().get(foodCounter).getFoodName(), actualFood.getFoodName());\r\n\t\t\t\tfoodCounter++;\r\n\t\t\t}\r\n\t\t\tcombinationCounter++;\r\n\t\t}\r\n\t}",
"@Test \r\n\tpublic void testGetResults() {\r\n\t\tsessionController.login(testC1Doctor1, getCampus(0));\r\n\t\tdoctorController.consultPatientFile(testC1Patient1);\r\n\t\tList<IResult> resultsTestPatient1 = doctorController.getResults();\r\n\t\tassertEquals(resultsTestPatient1, testC1Patient1.getPatientFile().getResults());\r\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\n\t\tpublic void onTestSuccess(ITestResult result) {\n\t\t\tSystem.out.println((result.getMethod().getMethodName() + \" passed!\"));\n\t test.get().pass(\"Test passed\");\n\t\t\t\n\t\t}",
"public void test5() {\n\t\t\n\t}",
"@AfterTest\n\tpublic void reportTestResult() {\n\t\textent.endTest(test);\n\t\t\n\t\t/*LogStatus info =test.getRunStatus();\n\t\t\n\t\tif(info.toString().equalsIgnoreCase(\"PASS\"))\n\t\t\tstatus=1;\n\t\telse if(info.toString().equalsIgnoreCase(\"FAIL\"))\n\t\t\tstatus=2;\n\t\t\n\t\tif (status == 1)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"PASS\");\n\t\telse if (status == 2)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"FAIL\");\n\t\telse\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"SKIP\");*/\n\n\t}",
"@Override\n public void onTestSuccess(ITestResult result) {\n\n }",
"public void onTestSuccess(ITestResult result) {\n\t\tlogger.info(\"Test case Done\");\n\t}",
"@Test\n void execute_testingLotsOfBoundaryValues () {\n ihd2.initialize(sensor);\n ihd1.initialize(sensor);\n iad.initialize(ihd1, ihd2);\n\n\n// here i create array with data that i send in to test\n int testData[] = {0, -23, 45, 290, 50, -123, 200, 199, 201, -200, 5, 1, -1, 29};\n\n // in this test the output is two booleans, the output might change for each loop, so i must create an array of arrays that i\n // store the expected results in. so here for example when value zero which is the first value in the testData array is sent\n // to the for loop, once it passed the system and analyze has given it two booleans,\n // it will be compared to the test0 array in the array of arrays called expectedResults.\n boolean test0[] = {false, false};\n boolean test1[] = {false, false};\n boolean test2[] = {true, true};\n boolean test3[] = {true, true};\n boolean test4[] = {true, true};\n boolean test5[] = {false, false};\n boolean test6[] = {true, true};\n boolean test7[] = {true, true};\n boolean test8[] = {true, true};\n boolean test9[] = {false, false};\n boolean test10[] = {false, false};\n boolean test11[] = {false, false};\n boolean test12[] = {false, false};\n boolean test13[] = {true, true};\n\n\n boolean[] expectedResult[] = {test0,test1, test2, test3, test4, test5, test6, test7, test8, test9, test10, test11, test12, test13};\n\n\n\n\n\n // after initialize inputs are set to zero, here inputs is changed with array content at index t\n for (int t = 0; t < testData.length; t++) {\n sensor.safetyOutput = testData[t];\n sensor.originalOutput = testData[t];\n\n // then i must run both ihd so that the safety and original output is transferred to read1 and read2 which is used in\n // iad execute that does the analyze\n ihd1.execute();\n ihd2.execute();\n\n // then i run the execute which analyze the data\n iad.execute();\n\n\n\n // then i take the result and store it in an array.\n boolean[] booleansProducedByAnalyzeMethod = iad.getData();\n// here i store the expectedResultvalue on position t in the testet array\n boolean testet[] = expectedResult[t];\n// and last but not the least i compare both arrays and print out result.\n\n if (Arrays.equals(testet, booleansProducedByAnalyzeMethod))\n System.out.println(\"Pass boundaryvaluestest\"+ t);\n else\n System.out.println(\"Fail boundaryvaluestest\"+ t);\n\n\n }\n }",
"public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(result.getName()+\"**********Test Success.............This is result.getName\");\r\n\t\t\r\n\t}",
"@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }",
"@Override\n public void runTest() {\n }",
"@AfterMethod\n\tpublic void getResult(ITestResult result) {\n\t\tSystem.out.println(\"TestCaseStatus == \"+result.getStatus());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\t//extent.log(LogStatus.FAIL, \"Failed Test Case \" + result.getThrowable());\n\t\t\textent.log(LogStatus.FAIL, result.getName() + \" Test case is filed\");\n\t\t} if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\textent.log(LogStatus.PASS, \"Test case is Pass \" + result.getName());\n\t\t} if (result.getStatus() == ITestResult.SKIP) {\n\t\t\textent.log(LogStatus.SKIP, \"Test case is Skipped \" + result.getName());\n\t\t}\n\t}",
"@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}",
"@Test\r\n\tpublic void executionTest() throws Exception {\n\t\tOperationalEnvDistributionStatus operEnvDistStatusObj = new OperationalEnvDistributionStatus();\r\n\t\toperEnvDistStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\toperEnvDistStatusObj.setDistributionId(asdcDistributionId);\r\n\t\toperEnvDistStatusObj.setOperationalEnvId( operationalEnvironmentId);\r\n\t\toperEnvDistStatusObj.setDistributionIdStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvDistStatusObj.setRequestId(requestId);\r\n\t\t\r\n\t\t// ServiceModelStatus - getOperationalEnvServiceModelStatus\r\n\t\tOperationalEnvServiceModelStatus operEnvServiceModelStatusObj = new OperationalEnvServiceModelStatus();\r\n\t\toperEnvServiceModelStatusObj.setRequestId(requestId);\r\n\t\toperEnvServiceModelStatusObj.setOperationalEnvId(operationalEnvironmentId);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionDistrStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvServiceModelStatusObj.setRecoveryAction(recoveryAction);\r\n\t\toperEnvServiceModelStatusObj.setRetryCount(retryCount);\r\n\t\toperEnvServiceModelStatusObj.setWorkloadContext(workloadContext);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\tList<OperationalEnvServiceModelStatus> queryServiceModelResponseList = new ArrayList<OperationalEnvServiceModelStatus>();\r\n\t\tqueryServiceModelResponseList.add(operEnvServiceModelStatusObj);\r\n\t\t\r\n\t\t// prepare distribution obj\r\n\t\tDistribution distribution = new Distribution();\r\n\t\tdistribution.setStatus(Status.DISTRIBUTION_COMPLETE_OK);\r\n\t\trequest.setDistribution(distribution);\r\n\t\trequest.setDistributionId(asdcDistributionId);\r\n\t\t\r\n\t\t// prepare asdc return data\r\n\t\tString jsonPayload = asdcClientUtils.buildJsonWorkloadContext(workloadContext);\r\n\t\r\n\t\tJSONObject jsonObject = new JSONObject();\r\n\t\tjsonObject.put(\"statusCode\", \"202\");\r\n\t\tjsonObject.put(\"message\", \"Success\");\r\n\t\tjsonObject.put(\"distributionId\", asdcDistributionId);\r\n\t\t\r\n\t\t// Mockito mock\r\n\t\tOperationalEnvDistributionStatusDb distributionDb = Mockito.mock(OperationalEnvDistributionStatusDb.class);\r\n\t\tOperationalEnvServiceModelStatusDb serviceModelDb = Mockito.mock(OperationalEnvServiceModelStatusDb.class);\r\n\t\tRequestsDBHelper dbUtils = mock(RequestsDBHelper.class);\r\n\t\tAsdcClientHelper asdcClientHelperMock = Mockito.mock(AsdcClientHelper.class);\r\n\t\tRESTConfig configMock = Mockito.mock(RESTConfig.class);\r\n\t\tRESTClient clientMock = Mockito.mock(RESTClient.class);\r\n\t\tAPIResponse apiResponseMock = Mockito.mock(APIResponse.class);\t\t\r\n\t\r\n\t\tMockito.when(asdcClientHelperMock.setRestClient(configMock)).thenReturn(clientMock);\r\n\t\tMockito.when(asdcClientHelperMock.setHttpPostResponse(clientMock, jsonPayload)).thenReturn(apiResponseMock);\r\n\t\tMockito.when(asdcClientHelperMock.enhanceJsonResponse(jsonObject, 202)).thenReturn(jsonObject);\t\t\r\n\t\tMockito.when(asdcClientHelperMock.postActivateOperationalEnvironment(serviceModelVersionId, operationalEnvironmentId, workloadContext)).thenReturn(jsonObject);\t\t\r\n\t\t\r\n\t\tMockito.when(distributionDb.getOperationalEnvDistributionStatus(asdcDistributionId)).thenReturn(operEnvDistStatusObj);\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvServiceModelStatus(operationalEnvironmentId, serviceModelVersionId)).thenReturn(operEnvServiceModelStatusObj);\t\t\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvIdStatus(operationalEnvironmentId, requestId)).thenReturn(queryServiceModelResponseList);\t\t\r\n\t\t\r\n\t\tint row = 1;\r\n\t\tMockito.when(distributionDb.updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId)).thenReturn(row);\r\n\t\tMockito.when(serviceModelDb.updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0)).thenReturn(row);\r\n\t\t\r\n\t\tdoNothing().when(dbUtils).updateInfraSuccessCompletion(any(String.class), any(String.class), any(String.class));\r\n\t\t\r\n\t\trequest.setOperationalEnvironmentId(operationalEnvironmentId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatus = new ActivateVnfStatusOperationalEnvironment(request, requestId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatusMock = spy(activateVnfStatus);\r\n\t\tactivateVnfStatusMock.setOperationalEnvDistributionStatusDb(distributionDb);\r\n\t\tactivateVnfStatusMock.setOperationalEnvServiceModelStatusDb(serviceModelDb);\r\n\t\tactivateVnfStatusMock.setRequestsDBHelper(dbUtils);\t\t\r\n\t\tactivateVnfStatusMock.setAsdcClientHelper(asdcClientHelperMock);\r\n\r\n\t\tactivateVnfStatusMock.execute();\t\t\r\n\t\t\r\n\t\tverify(distributionDb, times(1)).updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId);\r\n\t\tverify(serviceModelDb, times(1)).updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0);\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t\tSystem.out.println(\"All test casee passed and i m the listener class\");\n\t}",
"@Override\r\n\tpublic void onTestSuccess(ITestResult Result) {\n\t\tSystem.out.println(\"onTestSuccess :\"+ Result.getName());\r\n\t}",
"@Test\n public void z_topDown_TC02() {\n try {\n Intrebare intrebare = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"M\");\n Intrebare intrebare1 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"A\");\n Intrebare intrebare2 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"B\");\n Intrebare intrebare3 = appService.addNewIntrebare(\"Enunt?\", \"1) Raspuns1\", \"2) Raspuns2\", \"3) Raspuns3\",\n \"1\", \"C\");\n assertTrue(true);\n assertTrue(appService.exists(intrebare));\n assertTrue(appService.exists(intrebare1));\n assertTrue(appService.exists(intrebare2));\n assertTrue(appService.exists(intrebare3));\n\n try {\n ccir2082MV.evaluator.model.Test test = appService.createNewTest();\n assertTrue(test.getIntrebari().contains(intrebare));\n assertTrue(test.getIntrebari().contains(intrebare1));\n assertTrue(test.getIntrebari().contains(intrebare2));\n assertTrue(test.getIntrebari().contains(intrebare3));\n assertTrue(test.getIntrebari().size() == 5);\n } catch (NotAbleToCreateTestException e) {\n assertTrue(false);\n }\n } catch (DuplicateIntrebareException | IntrebareValidatorFailedException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tthread.get().log(Status.PASS, \"Pass\");\n\t}",
"public int countTestCases() {\n return 1;\n }",
"public void test2() {\n\t\tSystem.out.println(\"I am Test 2\");\n\t}",
"public int testmethod1()\n\t{\n\t\treturn 0;\n\t\t\n\t}",
"private void assertTrue(String name, boolean result) {\n if(! result) {\n System.out.println();\n System.out.println(\"***** Test failed ***** \"\n + name + \": \" +totalTests);\n totalErrors = totalErrors + 1;\n }/*else{\n System.out.println(\"----- Test passed ----- \"\n + name + \": \" +totalTests);\n }*/\n totalTests = totalTests + 1;\n }",
"protected void runTest() {\n\t\trunTest(getIterations());\n\t}",
"@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\textentTest.get().pass(\"I successfully Pass: \" + result.getName());\n\t}",
"@Test\n public void testCaseProcessor1()\n {\n final int START = 1;\n final int STOP = 1;\n try\n {\n testCases(START, STOP);\n }\n catch (FileNotFoundException e)\n {\n fail(\"testCases.txt not found.\");\n }\n catch (IOException e)\n {\n String error = \"Failed to read testCases.txt: \\n\"\n + e.getStackTrace();\n fail(error);\n }\n }",
"private static boolean KawigiEdit_RunTest(int testNum, String p0, boolean hasAnswer, String p1) {\n\t\tSystem.out.print(\"Test \" + testNum + \": [\" + \"\\\"\" + p0 + \"\\\"\");\n\t\tSystem.out.println(\"]\");\n\t\tTCO2019_R1A_L2_EllysCodeConstants obj;\n\t\tString answer;\n\t\tobj = new TCO2019_R1A_L2_EllysCodeConstants();\n\t\tlong startTime = System.currentTimeMillis();\n\t\tanswer = obj.getLiteral(p0);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tboolean res;\n\t\tres = true;\n\t\tSystem.out.println(\"Time: \" + (endTime - startTime) / 1000.0 + \" seconds\");\n\t\tif (hasAnswer) {\n\t\t\tSystem.out.println(\"Desired answer:\");\n\t\t\tSystem.out.println(\"\\t\" + \"\\\"\" + p1 + \"\\\"\");\n\t\t}\n\t\tSystem.out.println(\"Your answer:\");\n\t\tSystem.out.println(\"\\t\" + \"\\\"\" + answer + \"\\\"\");\n\t\tif (hasAnswer) {\n\t\t\tres = answer.equals(p1);\n\t\t}\n\t\tif (!res) {\n\t\t\tSystem.out.println(\"DOESN'T MATCH!!!!\");\n\t\t} else if ((endTime - startTime) / 1000.0 >= 2) {\n\t\t\tSystem.out.println(\"FAIL the timeout\");\n\t\t\tres = false;\n\t\t} else if (hasAnswer) {\n\t\t\tSystem.out.println(\"Match :-)\");\n\t\t} else {\n\t\t\tSystem.out.println(\"OK, but is it right?\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn res;\n\t}",
"@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }",
"public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }",
"@Test\n public void solve1() {\n }",
"protected abstract TestResult runTestImpl() throws Exception;",
"public void testGetStartValue2() {\n TaskSeriesCollection c = createCollection2();\n TaskSeriesCollection c3 = createCollection3();\n }",
"@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }",
"public void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"Test passed \" + getMethodeName(arg0));\r\n\t\tReporter.log(\"Test passed \" + getMethodeName(arg0));\r\n\r\n\t\t/*\r\n\t\t * if (arg0.getStatus() == ITestResult.SUCCESS) {\r\n\t\t * \r\n\t\t * // Screenshots betätigen String temp =\r\n\t\t * Utility.getScreenshot(ExtentReportDemo.driver, arg0.getName()); //\r\n\t\t * ExtentReportDemo.logger.pas);\r\n\t\t * \r\n\t\t * ExtentReportDemo.logger.log(Status.PASS, \"Assert Pass as condition is True\");\r\n\t\t * }\r\n\t\t */\r\n\t}",
"public void run(TestResult result) {\n result.run(this);\n }",
"@Test(dependsOnMethods=\"testReadReportTwo\")\n \tpublic void testReadReportThree() {\n \t\t\n \t}",
"public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}",
"public static void main(String[] args) {\n\t\ttest1();\r\n\t\ttest2();\r\n\t\t\r\n\t}",
"@Test\n public void test2(){\n }",
"@Override\n public void executeTest() {\n res = CommonApi.getLoadBalancersByVPC(headers, httpClient, vpcId);\n resJson = JSONObject.parseObject(res.getHtml());\n result = JSONArray.parseArray(resJson.getString(\"result\"));\n assertEquals(result.size(), 0, \"The result size should be true with mismatched tenantId and vpcId\");\n // testing if getting empty result with mismatched vpcId and tenantId\n\n headers.put(\"X-Product-Id\", tenantId);\n for(Map.Entry<String, LoadBalancer> entry : ingInstances.entrySet()) {\n ingInstance = entry.getValue();\n instanceId = ingInstance.getInstanceId();\n logger.info(\"=================================================================\");\n logger.info(\"=== adding instance: \" + instanceId);\n logger.info(\"=================================================================\");\n LBs.put(instanceId, 0);\n if (ingInstance.getType().equals(\"mix\")){\n LBs.put(instanceId, 1);\n }\n }\n\n res = CommonApi.getLoadBalancersByVPC(headers, httpClient, vpcId);\n resJson = JSONObject.parseObject(res.getHtml());\n result = JSONArray.parseArray(resJson.getString(\"result\"));\n logger.info(\"=================================================================\");\n logger.info(\"=== Api response result part: \" + resJson.getString(\"result\"));\n logger.info(\"=================================================================\");\n Iterator resultItr = result.iterator();\n String instanceId;\n\n // checking if result has any duplicated instance info or not while marking checked instance.\n while(resultItr.hasNext()){\n JSONObject lb = (JSONObject) resultItr.next();\n instanceId = namespace + \"@\" + lb.getString(\"instanceName\");\n logger.info(\"=================================================================\");\n logger.info(\"=== checking instance: \" + instanceId);\n logger.info(\"=================================================================\");\n assertTrue(LBs.containsKey(instanceId), \"getting unexpected instance\");\n assertTrue(LBs.get(instanceId).equals(0), \"getting duplicated instances in result\");\n LBs.put(instanceId, 1);\n }\n // checking if it missed any instance under the VPC with given vpcId\n for(Map.Entry<String, Integer> entry : LBs.entrySet()) {\n assertTrue(entry.getValue() == 1, \"missed instance with instanceId: \" + entry.getKey());\n }\n\n\n }",
"@Ignore\n @Test\n public void test1() {\n //concat method of a String\n //str.concat(\" World\");\n String1 str = new String1();\n //expected results come from requirements. (User story could your requirement)\n //requirement - is the most important thing.\n //All of our actions should be taken according to requirements.\n String expected = \"Hello World\";\n //What the method you are testing returns is your actual result\n String actual = str.concat(\"Hello\", \" World\");\n Assert.assertEquals(expected, actual);\n }",
"@Test\n public void testCaseProcessor2()\n {\n final int START = 2;\n final int STOP = 2;\n try\n {\n testCases(START, STOP);\n }\n catch (FileNotFoundException e)\n {\n fail(\"testCases.txt not found.\");\n }\n catch (IOException e)\n {\n String error = \"Failed to read testCases.txt: \\n\"\n + e.getStackTrace();\n fail(error);\n }\n }",
"@Test\r\n\tpublic void testSum() { //testing the adding method\r\n\t\tnum1 = 2; \r\n\t\tnum2 = 8;\r\n\t\tresult = calculate.sum(num1, num2); //result stores the method of add\r\n\t\texpected = 10;\r\n\t\t\r\n\t\tassertEquals(expected,result); //compares add to the expected, if no match then error \r\n\t}",
"public void doSwitchTest(String initialValue, String resultValue, String proc_name) \r\n throws Exception {\n \r\n loadProcedure(proc_name);\r\n ProcedureRunner runner = new ProcedureRunner(test_proc);\r\n CompositeMap context = runner.getContext();\r\n context.put(KEY_INIT, initialValue);\r\n config.addParticipant(this);\r\n runner.setConfiguration(config);\r\n //runner.setHandleManager(handle_manager);\r\n \r\n runner.run();\r\n runner.checkAndThrow();\r\n //oc_manager.getLogger().info(context.toXML());\r\n Object obj = context.get(KEY_RESULT);\r\n if(resultValue == null) assertNull(obj);\r\n else assertEquals(resultValue,obj);\r\n }",
"@Test\r\n\tpublic void testExecuteQueryJaroStepOne() {\r\n\t\t// assume that inputs are valid.\r\n\t\t\r\n//\t\tString[] sup_out = {\"Alex\", \"Alexx\", \"Allexa\"};\r\n\t\tArrayList<String> test_out = Activity5Query.executeQueryJaroStepOne(\"Alex\", 1999, 0, 1, true);\r\n\t\tassertTrue(test_out.size() == 6);\r\n\t\t\t\t\r\n\t}",
"@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }",
"public void onTestStart(ITestResult result) {\n\t\t\r\n\t}",
"public void onTestStart(ITestResult result) {\n\t\t\r\n\t}",
"public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}"
]
| [
"0.7112193",
"0.7080241",
"0.69626456",
"0.66615963",
"0.6656519",
"0.6613234",
"0.6593563",
"0.6581355",
"0.6543485",
"0.6540182",
"0.6540182",
"0.65277046",
"0.652313",
"0.6501299",
"0.6500525",
"0.64989364",
"0.6480584",
"0.6480584",
"0.64280754",
"0.641347",
"0.6394796",
"0.6387596",
"0.63809264",
"0.63752466",
"0.6364883",
"0.6351888",
"0.63485724",
"0.63469523",
"0.63339216",
"0.6331642",
"0.6318113",
"0.63102305",
"0.62918293",
"0.6279511",
"0.62770265",
"0.626968",
"0.6255079",
"0.6247004",
"0.6239087",
"0.62331027",
"0.6228474",
"0.6227933",
"0.6227648",
"0.6223461",
"0.6222564",
"0.621939",
"0.62071854",
"0.62059087",
"0.61998785",
"0.6194517",
"0.6190237",
"0.61836743",
"0.61766875",
"0.6160886",
"0.61564404",
"0.6147812",
"0.6146362",
"0.614033",
"0.61331934",
"0.6129885",
"0.6127459",
"0.61259687",
"0.6109617",
"0.6105828",
"0.6104147",
"0.61032987",
"0.6100021",
"0.6095176",
"0.60948884",
"0.60868543",
"0.6085118",
"0.6081955",
"0.60816735",
"0.60740393",
"0.60720164",
"0.60651344",
"0.60613924",
"0.6060597",
"0.6059234",
"0.60587126",
"0.60518503",
"0.6044786",
"0.60367393",
"0.6036524",
"0.6034616",
"0.6034207",
"0.603099",
"0.60087293",
"0.6003171",
"0.6001353",
"0.5998613",
"0.5995885",
"0.5994563",
"0.5991829",
"0.59910095",
"0.598919",
"0.5987042",
"0.59843594",
"0.59843594",
"0.5978112"
]
| 0.63392687 | 28 |
this test case execution depends on groupOne result | @Test(groups = {"groupTwo"}, dependsOnGroups= {"groupOne"})
public void test5() {
System.out.println("test five");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void testOneRequiredGroup() {\n }",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n public void testTwoRequiredGroups() {\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmFaceManager.createGroup(\"first_group\");\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}",
"@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}",
"@Test(groups = {\"groupTwo\"},dependsOnMethods= {\"test1\"})\n\tpublic void test2() {\n\t\tSystem.out.println(\"test two\");\n\t}",
"@Test\n public void testSmallAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + SMALL_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 150000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{11270}, 1L, 815409257L, 1215316262, 1328642550, 788414092L, 1L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + SMALL_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 30645L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{242920}, 3L, 4348938306L, 407993712, 296467636, 5803888725L, 3L);\n }",
"@LargeTest\n public void testGroupTestEmulated() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_EMULATED);\n runTest(ta, TestName.GROUP_TEST_EMULATED.name());\n }",
"@Test(priority=44)\n\tpublic void campaign_user_with_invalid_filter_operator_for_group_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operator_for_group_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with invalid filter operator for group_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString camp_group_id = group_id;\n\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"group_id\"+encoded_operator+camp_group_id));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for group_id\");\n\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for group_id\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : group_id\"+operator+camp_group_id);\n\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for group_id\");\n\t\t\t}\t \n\t\t}\t\n\t}",
"@Test\n public void testGroup() throws Exception {\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addGroupBegin();\n programBuilder.addRuleInstance( CalcMergeRule.INSTANCE );\n programBuilder.addRuleInstance( ProjectToCalcRule.INSTANCE );\n programBuilder.addRuleInstance( FilterToCalcRule.INSTANCE );\n programBuilder.addGroupEnd();\n\n checkPlanning( programBuilder.build(), \"select upper(name) from dept where deptno=20\" );\n }",
"@Test // (groups={\"All\"}) //(groups={\"smoke\"})\r\n\tpublic void createLead() {\n\t\tSystem.out.println(\"create\");\r\n\t}",
"@Test\n public void groupTest() {\n // TODO: test group\n }",
"@Override\n\tpublic void afterSplitting(final Object groupingObject, final ConsignmentModel createdOne)\n\t{\n\t\tSystem.out.println(\"method:afterSplitting...........................\");\n\t}",
"@Test\n public void testMediumAggregationGroupBy() {\n GroupByOperator groupByOperator = getOperator(AGGREGATION_QUERY + MEDIUM_GROUP_BY);\n GroupByResultsBlock resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 30000L, 0L, 210000L,\n 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1813102948, \"P\", \"HEuxNvH\"}, 4L, 2062187196L, 1988589001, 394608493, 4782388964L, 4L);\n\n // Test query with filter.\n groupByOperator = getOperator(AGGREGATION_QUERY + FILTER + MEDIUM_GROUP_BY);\n resultsBlock = groupByOperator.nextBlock();\n QueriesTestUtils.testInnerSegmentExecutionStatistics(groupByOperator.getExecutionStatistics(), 6129L, 63064L,\n 42903L, 30000L);\n QueriesTestUtils.testInnerSegmentAggregationGroupByResult(resultsBlock.getAggregationGroupByResult(),\n new Object[]{1176631727, \"P\", \"KrNxpdycSiwoRohEiTIlLqDHnx\"}, 1L, 716185211L, 489993380, 371110078, 487714191L,\n 1L);\n }",
"@Test\n public void testGroupedItemsAreStillGroupedWhenBatchSplitResults() {\n IdentityFieldProvider<HasId> hasIdIdentifierProvider =\n new IdentityFieldProvider<HasId>() {\n @Override\n protected Object getIdentifier(HasId resultProxy) {\n return resultProxy.getId();\n }\n };\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n Person johny = creator.createTestPerson(town, \"Johny\");\n Person angie = creator.createTestPerson(town, \"Angie\");\n Person josh = creator.createTestPerson(town, \"Josh\");\n Person alberta = creator.createTestPerson(town, \"Alberta\");\n\n Person becky = creator.createTestPerson(town, \"Becky\");\n Person fred = creator.createTestPerson(town, \"Fred\");\n Set<String> childNames = new HashSet<>();\n childNames.add(becky.getName());\n childNames.add(fred.getName());\n\n // johny has 2 kids, angie and alberta have 1, josh has none\n creator.addChildRelation(johny, becky);\n creator.addChildRelation(angie, becky);\n creator.addChildRelation(johny, fred);\n creator.addChildRelation(alberta, fred);\n\n Town townProxy = query.from(Town.class);\n Person inhabitant = query.join(townProxy.getInhabitants());\n Relation child = query.join(inhabitant.getChildRelations(), JoinType.Left);\n\n query.where(child.getChild().getId()).isNull().or(child.getChild().getName()).in(childNames, 1);\n\n TownDto selectTown = query.select(TownDto.class, hasIdIdentifierProvider);\n PersonDto selectParent = query.select(selectTown.getInhabitants(),\n PersonDto.class, hasIdIdentifierProvider);\n PersonDto selectChild = query.select(selectParent.getChildren(),\n PersonDto.class, hasIdIdentifierProvider);\n\n selectTown.setId(townProxy.getId());\n selectParent.setId(inhabitant.getId());\n selectParent.setThePersonsName(inhabitant.getName());\n selectChild.setId(child.getChild().getId());\n selectChild.setThePersonsName(child.getChild().getName());\n\n validate(\"select hobj1.id as id, hobj2.id as g1__id, hobj2.name as g1__thePersonsName, \"\n + \"hobj4.id as g2__id, hobj4.name as g2__thePersonsName \"\n + \"from Town hobj1 \"\n + \"join hobj1.inhabitants hobj2 \"\n + \"left join hobj2.childRelations hobj3 \"\n + \"left join hobj3.child hobj4 \"\n + \"where hobj4.id is null or hobj4.name in (:np1)\", childNames);\n\n @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n List<TownDto> results = (List) doQueryResult;\n assertEquals(1, results.size());\n TownDto townResult = results.get(0);\n assertEquals(6, townResult.getInhabitants().size());\n\n Map<Long, Set<Long>> resultIds = new HashMap<>();\n for(PersonDto dto: townResult.getInhabitants()) {\n Set<Long> childIds = new HashSet<>();\n if (dto.getChildren() != null) {\n for(PersonDto dtoChild: dto.getChildren()) {\n childIds.add(dtoChild.getId());\n }\n }\n resultIds.put(dto.getId(), childIds);\n }\n assertEquals(toIds(becky, fred), resultIds.get(johny.getId()));\n assertEquals(toIds(becky), resultIds.get(angie.getId()));\n assertEquals(emptySet(), resultIds.get(josh.getId()));\n assertEquals(toIds(fred), resultIds.get(alberta.getId()));\n assertEquals(emptySet(), resultIds.get(becky.getId()));\n assertEquals(emptySet(), resultIds.get(fred.getId()));\n }",
"private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.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}",
"@Test\n public void groupIdTest() {\n // TODO: test groupId\n }",
"private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}",
"public void testGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = new EventFeedJSON(contest);\n\n Group[] groups = contest.getGroups();\n Arrays.sort(groups, new GroupComparator());\n\n \n Group group = groups[0];\n String json = eventFeedJSON.getGroupJSON(contest, group);\n\n// System.out.println(\"debug group json = \"+json);\n \n // debug group json = {\"id\":1024, \"icpc_id\":1024, \"name\":\"North Group\"}\n\n // {\"id\":1, \"icpc_id\":\"3001\", \"name\":\"team1\", \"organization_id\": null}\n\n asertEqualJSON(json, \"id\", \"1024\");\n \n assertJSONStringValue(json, \"id\", \"1024\");\n assertJSONStringValue(json, \"icpc_id\", \"1024\");\n assertJSONStringValue(json, \"name\", \"North Group\");\n }",
"@Test\n public void createSqlQueryWithGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments group by validGroupBy\\\"}\");\n }",
"@Test(priority=43)\t\n\tpublic void campaign_user_with_valid_filter_for_group_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_valid_filter_for_group_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with valid filter for group_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_valid_filter_for_group_id\");\n\t\tString camp_group_id = group_id;\n\t\tString[] operators = {\"=\",\"<=\",\">=\"};\n\t\tString encoded_operator = \"\";\n\t\tfor(String operator:operators){\n\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"group_id\"+encoded_operator+camp_group_id));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for group_id\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t JSONArray array = (JSONArray)json.get(\"data\");\n\t\t\t // Check whether campaign list returns at least 1 record when valid group_id is passed for filter\n\t\t\t Assert.assertTrue(array.size()>=1, \"campaign/user does not return records when valid group_id is passed for filter.\");\n\t\t\t for(int i=0; i<array.size(); i++){\n\t\t\t\t // Get the campaign from the campaign list\n\t\t\t\t JSONObject campaign = (JSONObject)array.get(i);\n\t\t\t\t if(operator.equals(\"=\"))\t\t\t \n\t\t\t\t\t Assert.assertEquals(campaign.get(\"group_id\").toString(), camp_group_id, \"campaign/user api does not return campaigns according to passed group_id for filter. Defect Reported: CT-17152\");\t\t\t\t\t \n\t\t\t\t else if(operator.equals(\">=\"))\t\t\t \n\t\t\t\t\t Assert.assertTrue(Integer.parseInt(campaign.get(\"group_id\").toString())>=Integer.parseInt(camp_group_id), \"campaign/user api does not return campaigns according to applied filter for group_id. Defect Reported: CT-17152\");\n\t\t\t\t else\t\t\t \n\t\t\t\t\t Assert.assertTrue(Integer.parseInt(campaign.get(\"group_id\").toString())<=Integer.parseInt(camp_group_id), \"campaign/user api does not return campaigns according to applied filter for group_id\"+Integer.parseInt(campaign.get(\"group_id\").toString())+\". Defect Reported: CT-17152\");\n\t\t\t\t test.log(LogStatus.PASS, \"Check campaign/user api does not return campaigns according to passed group_id for filter.\");\n//\t\t\t\t JSONArray users_data = (JSONArray) campaign.get(\"users\");\n//\t\t\t\t Boolean user_exist = false;\n//\t\t\t\t for(int j=0; j<users_data.size(); j++){\n//\t\t\t\t\t JSONObject user = (JSONObject)users_data.get(j);\n//\t\t\t\t\t String group_id = user.get(\"group_id\").toString();\n//\t\t\t\t\t if(group_id.equals(camp_group_id)){\n//\t\t\t\t\t\t user_exist = true;\n//\t\t\t\t\t }\n//\t\t\t\t\t Assert.assertTrue(user_exist, \"Passed user_id does not exist in users list of campaign/user response.\");\n//\t\t\t\t }\n\t\t\t }\n\t\t\t}\t\n\t\t}\n\t}",
"private void defaultMMarathonLoopRewardGroupShouldBeFound(String filter) throws Exception {\n restMMarathonLoopRewardGroupMockMvc.perform(get(\"/api/m-marathon-loop-reward-groups?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(mMarathonLoopRewardGroup.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].eventId\").value(hasItem(DEFAULT_EVENT_ID)))\n .andExpect(jsonPath(\"$.[*].contentType\").value(hasItem(DEFAULT_CONTENT_TYPE)))\n .andExpect(jsonPath(\"$.[*].contentId\").value(hasItem(DEFAULT_CONTENT_ID)))\n .andExpect(jsonPath(\"$.[*].contentAmount\").value(hasItem(DEFAULT_CONTENT_AMOUNT)))\n .andExpect(jsonPath(\"$.[*].weight\").value(hasItem(DEFAULT_WEIGHT)));\n\n // Check, that the count call also returns 1\n restMMarathonLoopRewardGroupMockMvc.perform(get(\"/api/m-marathon-loop-reward-groups/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"@Test\n @WithMockUhUser(username = \"iamtst04\")\n public void optInTest() throws Exception {\n assertFalse(isInCompositeGrouping(GROUPING, tst[0], tst[3]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[3]));\n assertTrue(isInExcludeGroup(GROUPING, tst[0], tst[3]));\n\n //tst[3] opts into Grouping\n mapGSRs(API_BASE + GROUPING + \"/optIn\");\n }",
"@Test(priority=45)\t\n\tpublic void campaign_user_with_filter_for_nonexisting_group_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_nonexisting_group_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for non existing group_id\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_nonexisting_group_id\");\n\t\tString camp_group_id = test_data.get(4);\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"group_id%3d\"+camp_group_id));\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for group_id\");\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\tString line = \"\";\n\t\twhile ((line = rd.readLine()) != null) {\n\t\t // Convert response to JSON object\t\n\t\t JSONParser parser = new JSONParser();\n\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t String result_data = json.get(\"result\").toString();\n\t\t Assert.assertEquals(result_data, \"error\", \"API is returning success when non existing group_id is entered for filter\");\n\t\t test.log(LogStatus.PASS, \"API is returning error when non existing group_id is entered for filter\");\n\t\t Assert.assertEquals(json.get(\"err\").toString(), \"no records found\", \"Proper validation is not displayed when non existing group_id is passed.\");\n\t\t test.log(LogStatus.PASS, \"Proper validation is displayed when non existing group_id is passed.\");\n\t\t}\n\t}",
"@Test\n public void groupsTest() {\n // TODO: test groups\n }",
"@Test\n public void testGroupModification() {\n app.getNavigationHelper().gotoGroupPage();\n\n if (! app.getGroupHelper().isThereAGroup()) {//якщо не існує ні одної групи\n app.getGroupHelper().createGroup(new CreateGroupData(\"Tol-AutoCreate\", \"Tol-AutoCreate\", null));\n }\n\n //int before = app.getGroupHelper().getGroupCount(); //count groups before test\n List<CreateGroupData> before = app.getGroupHelper().getGroupList(); // quantity of group before creation\n app.getGroupHelper().selectGroup(before.size() - 1);\n app.getGroupHelper().initGroupModification();\n CreateGroupData group = new CreateGroupData(before.get(before.size()-1).getId(),\"Change1-name\", \"Change2-header\", \"Change3-footer\");\n app.getGroupHelper().fillGroupData(group);\n app.getGroupHelper().submitGroupModification();\n app.getGroupHelper().returnToGroupPage();\n //int after = app.getGroupHelper().getGroupCount();\n List<CreateGroupData> after = app.getGroupHelper().getGroupList(); // quantity of group after creation\n //Assert.assertEquals(after, before);\n Assert.assertEquals(after.size(), before.size());\n\n before.remove(before.size() - 1);\n before.add(group); //add object to the list after creation/modification of a group\n Assert.assertEquals(new HashSet<>(before), new HashSet<>(after)); //compare two lists без учета порядка\n }",
"public static void scenarioOne() {\n System.out.println(\"---------------------- Drone Order Tests----------------------\");\n\n DroneOrder baseOrder1 = new DroneOrder(\"WM001 N11W5 05:11:50\");\n assert baseOrder1.getArrivalTime() == 18710 : \"Valid epoch arrival time\";\n assert baseOrder1.timeFormat(18710).equals(\"05:11:50\") : \"Valid epoch digital format\";\n assert baseOrder1.getxCoordinate() == -5 : \"XCoordinate\";\n assert baseOrder1.getyCoordinate() == 11 : \"YCoordinate\";\n assert baseOrder1.getOrderId().equals(\"WM001\") : \"OrderId\";\n\n\n DroneOrder baseOrder2 = new DroneOrder(\"WM002 S112E53 20:11:50\");\n assert baseOrder2.getArrivalTime() == 20*3600+11*60+50 : \"Valid epoch arrival time\";\n assert baseOrder2.timeFormat(20*3600+11*60+50 ).equals(\"20:11:50\") : \"Valid epoch digital format\";\n assert baseOrder2.getxCoordinate() == 53 : \"XCoordinate\";\n assert baseOrder2.getyCoordinate() == -112 : \"YCoordinate\";\n assert baseOrder2.getOrderId().equals(\"WM002\") : \"OrderId\";\n\n\n DroneOrder baseOrder3 = new DroneOrder(\"WM012 N1E5 07:00:00\");\n assert baseOrder3.getArrivalTime() == 7*3600: \"Valid epoch arrival time\";\n assert baseOrder3.timeFormat(7*3600).equals(\"07:00:00\") : \"Valid epoch digital format\";\n assert baseOrder3.getxCoordinate() == 5 : \"XCoordinate\";\n assert baseOrder3.getyCoordinate() == 1 : \"YCoordinate\";\n assert baseOrder3.getOrderId().equals(\"WM012\") : \"OrderId\";\n }",
"@Test\n public void testFindStateForAggregatorOnConnectionGroup1() {\n String entityAddress = \"ea1.1992-01.com.example:gridpoint.4f76ff19-a53b-49f5-84e7\";\n CongestionPointConnectionGroup congestionPoint = congestionPointConnectionGroupRepository.find(entityAddress);\n Aggregator aggregator = new Aggregator();\n aggregator.setDomain(\"agr1.usef-example.com\");\n AggregatorOnConnectionGroupState aggregatorOnConnectionGroupState = repository.findStateForAggregatorOnConnectionGroup(\n aggregator, congestionPoint, localdateTime);\n Assert.assertNotNull(aggregatorOnConnectionGroupState);\n }",
"@Test\r\n\tpublic void driverRatioVisitorsCreatedGroups() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateRatioVisitorsCreatedGroups((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void mainFlowTest() {\n type.insert();\n engineer.insert();\n\n Equipment equipment1 = new Equipment(\"equipment1\", type.getId(), model, location, installTime1);\n Equipment equipment2 = new Equipment(\"equipment2\", type.getId(), model, location, installTime2);\n equipment1.insert();\n equipment2.insert();\n\n Plan plan1 = new Plan(\"plan1\", type.getId(), 30, \"large\", \"checking\");\n Plan plan2 = new Plan(\"plan2\", type.getId(), 60, \"small\", \"repairing\");\n plan1.insert();\n plan2.insert();\n\n Record record1 = new Record(\"r1\", plan1.getId(), equipment1.getId(), engineer.getId(),\n DateUtils.getCalendar(2015, 11, 1).getTime(), 2, \"换过滤网\");\n Record record2 = new Record(\"r2\", plan2.getId(), equipment1.getId(), engineer.getId(),\n DateUtils.getCalendar(2015, 11, 31).getTime(), 1, \"发动机清理\");\n Record record3 = new Record(\"r3\", plan1.getId(), equipment2.getId(), engineer.getId(),\n DateUtils.getCalendar(2015, 11, 5).getTime(), 3, \"cleaning\");\n Record record4 = new Record(\"r4\", plan2.getId(), equipment2.getId(), engineer.getId(),\n DateUtils.getCalendar(2016, 0, 4).getTime(), 2, \"tiny repairing\");\n record1.insert();\n record2.insert();\n record3.insert();\n record4.insert();\n\n // test the correctness of 10 days tasks\n List<Task> tenDayTasks = MaintenanceOperation.getTenDaysTask(DateUtils.getCalendar(2015, 11, 30).getTime());\n assertEquals(\"wrong with 10 days' tasks\", 2, tenDayTasks.size());\n\n // test the total maintenance time\n int time1 = MaintenanceOperation.getTotalMaintenanceTime(equipment1.getId());\n assertEquals(\"wrong with total time of equipment 1\", 3, time1);\n int time2 = MaintenanceOperation.getTotalMaintenanceTime(equipment2.getId());\n assertEquals(\"wrong with total time of equipment 2\", 5, time2);\n\n // test the total maintenance time of certain type\n int time3 = MaintenanceOperation.getTotalMaintenanceTime(equipment1, plan1.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 2, time3);\n int time4 = MaintenanceOperation.getTotalMaintenanceTime(equipment1, plan2.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 1, time4);\n int time5 = MaintenanceOperation.getTotalMaintenanceTime(equipment2, plan1.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 3, time5);\n int time6 = MaintenanceOperation.getTotalMaintenanceTime(equipment2, plan2.getId());\n assertEquals(\"wrong with total time of equipment 1 of plan 1\", 2, time6);\n }",
"@LargeTest\n public void testGroupTestNative() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_NATIVE);\n runTest(ta, TestName.GROUP_TEST_NATIVE.name());\n }",
"@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }",
"@Override\n public void executeTest() {\n res = CommonApi.getLoadBalancersByVPC(headers, httpClient, vpcId);\n resJson = JSONObject.parseObject(res.getHtml());\n result = JSONArray.parseArray(resJson.getString(\"result\"));\n assertEquals(result.size(), 0, \"The result size should be true with mismatched tenantId and vpcId\");\n // testing if getting empty result with mismatched vpcId and tenantId\n\n headers.put(\"X-Product-Id\", tenantId);\n for(Map.Entry<String, LoadBalancer> entry : ingInstances.entrySet()) {\n ingInstance = entry.getValue();\n instanceId = ingInstance.getInstanceId();\n logger.info(\"=================================================================\");\n logger.info(\"=== adding instance: \" + instanceId);\n logger.info(\"=================================================================\");\n LBs.put(instanceId, 0);\n if (ingInstance.getType().equals(\"mix\")){\n LBs.put(instanceId, 1);\n }\n }\n\n res = CommonApi.getLoadBalancersByVPC(headers, httpClient, vpcId);\n resJson = JSONObject.parseObject(res.getHtml());\n result = JSONArray.parseArray(resJson.getString(\"result\"));\n logger.info(\"=================================================================\");\n logger.info(\"=== Api response result part: \" + resJson.getString(\"result\"));\n logger.info(\"=================================================================\");\n Iterator resultItr = result.iterator();\n String instanceId;\n\n // checking if result has any duplicated instance info or not while marking checked instance.\n while(resultItr.hasNext()){\n JSONObject lb = (JSONObject) resultItr.next();\n instanceId = namespace + \"@\" + lb.getString(\"instanceName\");\n logger.info(\"=================================================================\");\n logger.info(\"=== checking instance: \" + instanceId);\n logger.info(\"=================================================================\");\n assertTrue(LBs.containsKey(instanceId), \"getting unexpected instance\");\n assertTrue(LBs.get(instanceId).equals(0), \"getting duplicated instances in result\");\n LBs.put(instanceId, 1);\n }\n // checking if it missed any instance under the VPC with given vpcId\n for(Map.Entry<String, Integer> entry : LBs.entrySet()) {\n assertTrue(entry.getValue() == 1, \"missed instance with instanceId: \" + entry.getKey());\n }\n\n\n }",
"public void testGroupDAO(){\n System.out.println(\"==========================\");\n System.out.println(\"test finding group id by group name\");\n String name = \"group1\";\n int groupId = groupDAO.getIdGroup(name);\n System.out.println(groupId);\n System.out.println(\"\\n\");\n\n\n // test finding group name by group id\n System.out.println(\"==========================\");\n System.out.println(\"test finding group name by group id\");\n int groupID = 2;\n String groupName = groupDAO.getGroupName(groupId);\n System.out.println(groupName);\n System.out.println(\"\\n\");\n }",
"@Test\n @WithMockUhUser(username = \"iamtst06\")\n public void optOutTest() throws Exception {\n assertTrue(isInCompositeGrouping(GROUPING, tst[0], tst[5]));\n assertTrue(isInBasisGroup(GROUPING, tst[0], tst[5]));\n\n //tst[5] opts out of Grouping\n mapGSRs(API_BASE + GROUPING + \"/optOut\");\n }",
"@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}",
"@Test\n\tpublic void testRadioGroup_1()\n\t\tthrows Exception {\n\n\t\tRadioGroup result = new RadioGroup();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getOptions());\n\t\tassertEquals(null, result.getName());\n\t\tassertEquals(null, result.getId());\n\t}",
"@Test\n public void groupByStoreSucceed()\n {\n // arrange\n final String groupByClause = \"validGroupBy\";\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).groupBy(groupByClause);\n\n // assert\n assertEquals(groupByClause, Deencapsulation.getField(querySpecificationBuilder, \"groupBy\"));\n }",
"@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMultiDialMetersearchBySSupplynumber()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"erify Global Meter Read For Gas Account\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersite\");\n\tnew SubmitMeterReadAction()\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .searchByAccountnumber(smrProfile)\n .enterMeterDialsGlobal(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n .verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile); \n}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySearchMeterByAcctno()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify multiple Search results are getting displayed while giving valid Account number in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMeter11\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .SearchByAccoutnNumber(smrProfile)\n .enterMeterDials(smrProfile)\n //.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMultiDialMeterBySitepostcode()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Single or multiple Search results are getting displayed while giving valid Site postcode in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRMultiDialMetersitepost\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n\t.BgbloginDetails(smrProfile)\n\t.BgbverifyAfterLogin()\n\t.clickSubmitMeterReadLink()\n\t.searchBySitepostcode(smrProfile)\n .enterGlobalMeterDials(smrProfile)\n .verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n \n}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyMeterByMeterpointreference()\n{\t\t\n\t Report.createTestLogHeader(\"Submit Meter Read\", \"Verify whether Single Search result is getting displayed while giving valid MPRN in search field\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"GlobalSMRUserMultiMeters\");\n\tnew SubmitMeterReadAction()\n\t\n\t.BgbnavigateToLogin()\n .BgbloginDetails(smrProfile)\n .BgbverifyAfterLogin()\n .clickSubmitMeterReadLink()\n .searchByMeterpointreference(smrProfile)\n \t.enterGlobalMeterDials(smrProfile)\n\t.verifyMeterReadConfirmationTitle()\n\t.verifyAuditLeadTable(smrProfile);\n}",
"public void testGroupInitializer() throws Exception {\n }",
"@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }",
"int countByExample(SeGroupExample example);",
"@Test public void shouldReturnAllToolsFromAGroupWhenSearchedByItsGroup(){\n given.imInTheMainPage();\n when.searchByToolsGroup(GROUPS.RADIOS.getGroupName());\n then.mySearchWillReturnTheTools(TOOLS.PLANETA_ATLANTIDA, TOOLS.POD_CASTING, TOOLS.RADIOS_ADMIN, TOOLS.RADIOS_PLAYLIST, TOOLS.RADIOS_SITE, TOOLS.RADIOS_E_TV);\n }",
"@Override\n\t\t\t\tpublic void onCompleted(final Group item, Exception exception,\n\t\t\t\t\t\tServiceFilterResponse service) {\n\t\t\t\t\tif(exception == null){\n\t\t\t\t\t\tLog.e(\"Message (group)\", \"Add group successful\" + item.getGroupId());\n\t\t\t\t\t\tclearFields();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tDisasterPlanSample template = new DisasterPlanSample();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(WorkItem i:template.getPlans()){\n\t\t\t\t\t\t\ti.setGroupId(item.getGroupId());\n\t\t\t\t\t\t\tmClient.getTable(WorkItem.class).insert(i, new TableOperationCallback<WorkItem>(){\n\t\t\t\t\t\t\t\tpublic void onCompleted(WorkItem work,Exception exception2,ServiceFilterResponse response2) {\n\t\t\t\t\t\t\t\t\tif(exception2==null){\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Add Work Item\", \"Success\");\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\t\n\t\t\t\t\t\tmember.setGroupId(item.getGroupId());\n\t\t\t\t\t\tmMemberTable = mClient.getTable(Member.class);\n\t\t\t\t\t\tmMemberTable.update(member, new TableOperationCallback<Member>(){\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onCompleted(Member member,\n\t\t\t\t\t\t\t\t\tException exception, ServiceFilterResponse service) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tif(exception==null){\n\t\t\t\t\t\t\t\t\tLog.e(\"Message Update\", \"Update is successful\");\n\t\t\t\t\t\t\t\t\tcreateDialog(\"Succesfully created group \" + item.getName()).show();\t\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(getApplicationContext(),MenuActivity.class);\n\t\t\t\t\t\t\t\t\ti.putExtra(\"user\", member);\n\t\t\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLog.e(\"Message (group)\", \"Add group failed\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"@Test\r\n\tpublic void testOrderPerform() {\n\t}",
"@Test\r\n public void testBuscar() throws Exception {\r\n System.out.println(\"buscar\");\r\n String pcodigo = \"pentos\";\r\n String pnombre = \"Arreglar bumper\";\r\n String tipo = \"Enderazado\";\r\n Date pfechaAsignacion = new Date(Calendar.getInstance().getTimeInMillis());\r\n String pplacaVehiculo = \"TX-101\";\r\n \r\n MultiReparacion instance = new MultiReparacion();\r\n Reparacion expResult = new Reparacion(pcodigo, pnombre,tipo,pfechaAsignacion,pplacaVehiculo);\r\n instance.crear(pcodigo, pnombre, tipo, pfechaAsignacion, pplacaVehiculo);\r\n Reparacion result = instance.buscar(pcodigo);\r\n \r\n assertEquals(expResult.getCodigo(), result.getCodigo());\r\n assertEquals(expResult.getNombre(), result.getNombre());\r\n assertEquals(expResult.getTipo(), result.getTipo());\r\n assertEquals(expResult.getPlacaVehiculo(), result.getPlacaVehiculo());\r\n //assertEquals(expResult.getFechaAsignacion(), result.getFechaAsignacion());\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }",
"@AfterGroups({\"regression\", \"sanity\"})\n\tpublic void ag() {\n\t\tSystem.out.println(\"after group regresion\");\n\t}",
"public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }",
"@Test\n public void successScenarioTest() throws ExecutionException, InterruptedException {\n List<Chunk> chunkList = new ArrayList<>();\n //generate 5 chunks of 10 records each\n int numOfChunksToUpload = 5;\n while (numOfChunksToUpload > 0) {\n chunkList.add(generateChunk(10));\n numOfChunksToUpload--;\n }\n\n //Calculate expected result\n Map<String, Record> expectedPriceList = new HashMap<>();\n String expectedPrice;\n chunkList.forEach((chunk) -> {\n Map<String, List<Record>> groupedRecords = chunk.getData().stream().collect(Collectors.groupingBy(Record::getId));\n groupedRecords.forEach((s, l) -> {\n l.sort(recordComparator);\n Record latestRecord = l.get(0);\n expectedPriceList.put(latestRecord.getId(), latestRecord);\n\n });\n\n });\n expectedPrice = String.valueOf(expectedPriceList.get(\"7\").getPayload().get(\"Price\"));\n log.debug(\"Expected latest price: \" + expectedPrice);\n\n //InstrumentId 7 is to be accessed by consumer thread\n int instrumentId = 7;\n log.info(\"Latest price to be accessed for : \" + instrumentId);\n ExecutorService executorService = Executors.newFixedThreadPool(2);\n ProducerThread producerThread = new ProducerThread(\"Producer1\", chunkList, 20, new ApplicationService());\n ConsumerThread consumerThread = new ConsumerThread(\"Consumer1\", instrumentId, new ApplicationService());\n\n Future<String> producerResult = executorService.submit(producerThread);\n //Wait for producer thread to complete\n while (true) {\n if (producerResult.isDone())\n break;\n }\n\n //Check if the producer thread is complete successfully\n if (ProducerConstants.BATCH_COMPLETION_MESSAGE.equals(producerResult.get())) {\n Future<String> consumerResult = executorService.submit(consumerThread);\n while (true) {\n if (consumerResult.isDone())\n break;\n }\n String str = consumerResult.get();\n //Check if the expected and actual price is same\n assertEquals(0, Double.compare(Double.parseDouble(expectedPrice), Double.parseDouble(str)));\n } else {\n //If producer fails to complete batch run, then fail the test case\n Assert.fail();\n }\n\n\n executorService.shutdown();\n\n\n }",
"@Test\n public void testGroupComparator() throws Exception {\n assertEquals(-1, runGroupComparator(\"LembosGroupComparatorTest-testGroupComparator\", 1, 3));\n }",
"@Test\n public void shouldAssertAllTheGroup() {\n List<Integer> list = Arrays.asList(1, 2, 4);\n assertAll(\"List is not incremental\",\n () -> Assertions.assertEquals(list.get(0).intValue(), 1),\n () -> Assertions.assertEquals(list.get(1).intValue(), 2),\n () -> Assertions.assertEquals(list.get(2).intValue(), 3));\n }",
"@Test\n public void testExecution() {\n Choice page=Choice.createSingleton(importPage(\"MapSourcesToSections.xml\"));\n\n // Create a federated result\n Query query=new Query();\n Result result=new Result(query);\n result.hits().add(createHits(\"source1\",3));\n result.hits().add(createHits(\"source2\",4));\n result.hits().add(createHits(\"source3\",5));\n result.hits().add(createHits(\"source4\",6));\n result.hits().add(createHits(\"source5\",7));\n\n // Resolve\n Resolver resolver=new DeterministicResolverAssertingMethod();\n Resolution resolution=resolver.resolve(page,query,result);\n Map<String, List<PageElement>> mapping=\n resolution.getResolution((MapChoice)((PageTemplate)page.get(0).get(0)).getSection().elements().get(2));\n assertNotNull(mapping);\n assertEquals(\"source1\",((Source)mapping.get(\"box1source\").get(0)).getName());\n assertEquals(\"source2\",((Source)mapping.get(\"box2source\").get(0)).getName());\n assertEquals(\"source3\",((Source)mapping.get(\"box3source\").get(0)).getName());\n assertEquals(\"source4\",((Source)mapping.get(\"box4source\").get(0)).getName());\n\n // Execute\n Organizer organizer =new Organizer();\n organizer.organize(page,resolution,result);\n\n // Check execution:\n // Two subsections, each containing two sub-subsections with one source each\n assertEquals(2,result.hits().size());\n HitGroup row1=(HitGroup)result.hits().get(0);\n HitGroup column11=(HitGroup)row1.get(0);\n HitGroup column12=(HitGroup)row1.get(1);\n HitGroup row2=(HitGroup)result.hits().get(1);\n HitGroup column21=(HitGroup)row2.get(0);\n HitGroup column22=(HitGroup)row2.get(1);\n assertEqualHitGroups(createHits(\"source1\",3),column11);\n assertEqualHitGroups(createHits(\"source2\",4),column12);\n assertEqualHitGroups(createHits(\"source3\",5),column21);\n assertEqualHitGroups(createHits(\"source4\",6),column22);\n\n // Check rendering\n assertRendered(result,\"MapSourcesToSectionsResult.xml\");\n }",
"@Test\n public void testFindStateForAggregatorOnConnectionGroup2() {\n String entityAddress = \"ea1.1992-01.com.example:gridpoint.4f76ff19-a53b-49f5-84e7\";\n CongestionPointConnectionGroup congestionPoint = congestionPointConnectionGroupRepository.find(entityAddress);\n Aggregator aggregator = new Aggregator();\n aggregator.setDomain(\"agr2.usef-example.com\");\n AggregatorOnConnectionGroupState aggregatorOnConnectionGroupState = repository.findStateForAggregatorOnConnectionGroup(\n aggregator, congestionPoint, localdateTime);\n Assert.assertNotNull(aggregatorOnConnectionGroupState);\n }",
"@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }",
"@Test\n void should_call_the_rules_executor_when_multiple_algo_result_contains_products_and_there_are_rules_to_test() {\n when(recStatusParams.getMultipleAlgorithmResult()).thenReturn(multipleAlgorithmResult);\n\n products.add(product1);\n when(multipleAlgorithmResult.getRecProducts()).thenReturn(products);\n\n ruleIds.add(\"1\");\n when(activeBundle.getPlacementFilteringRuleIds()).thenReturn(ruleIds);\n\n when(merchandisingRuleExecutor.getFilteredRecommendations(products, ruleIds, Collections.emptyMap(), recCycleStatus)).\n thenReturn(filteringRulesResult);\n\n filteringRulesHandler.handleTask(recInputParams, recStatusParams, activeBundle);\n\n verify(merchandisingRuleExecutor).getFilteredRecommendations(products, ruleIds, Collections.emptyMap(), recCycleStatus);\n verify(recStatusParams).setFilteringRulesResult(filteringRulesResult);\n }",
"public void testSubResults() throws Exception {\n SampleResult resWithSubResults = new SampleResult(); \n\n long beginTest = System.currentTimeMillis();\n \n resWithSubResults.sampleStart();\n Thread.sleep(100);\n resWithSubResults.setBytes(300);\n resWithSubResults.setSampleLabel(\"sample with two subresults\");\n resWithSubResults.setSuccessful(true);\n resWithSubResults.sampleEnd();\n long sampleWithSubResultsTime = resWithSubResults.getTime();\n \t\n // Sample with no sub results, simulates an image download\n SampleResult resNoSubResults1 = new SampleResult(); \n resNoSubResults1.sampleStart();\n Thread.sleep(100);\n resNoSubResults1.setBytes(100);\n resNoSubResults1.setSampleLabel(\"sample with no subresults\");\n resNoSubResults1.setSuccessful(true);\n resNoSubResults1.sampleEnd();\n long sample1Time = resNoSubResults1.getTime();\n\n assertTrue(resNoSubResults1.isSuccessful());\n assertEquals(100, resNoSubResults1.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults1.getSampleLabel());\n assertEquals(1, resNoSubResults1.getSampleCount());\n assertEquals(0, resNoSubResults1.getSubResults().length);\n \n // Sample with no sub results, simulates an image download \n SampleResult resNoSubResults2 = new SampleResult(); \n resNoSubResults2.sampleStart();\n Thread.sleep(100);\n resNoSubResults2.setBytes(200);\n resNoSubResults2.setSampleLabel(\"sample with no subresults\");\n resNoSubResults2.setSuccessful(true);\n resNoSubResults2.sampleEnd();\n long sample2Time = resNoSubResults2.getTime();\n\n long overallTime = System.currentTimeMillis() - beginTest;\n \n assertTrue(resNoSubResults2.isSuccessful());\n assertEquals(200, resNoSubResults2.getBytes());\n assertEquals(\"sample with no subresults\", resNoSubResults2.getSampleLabel());\n assertEquals(1, resNoSubResults2.getSampleCount());\n assertEquals(0, resNoSubResults2.getSubResults().length);\n \n // Now add the subsamples to the sample\n resWithSubResults.addSubResult(resNoSubResults1);\n resWithSubResults.addSubResult(resNoSubResults2);\n assertTrue(resWithSubResults.isSuccessful());\n assertEquals(600, resWithSubResults.getBytes());\n assertEquals(\"sample with two subresults\", resWithSubResults.getSampleLabel());\n assertEquals(1, resWithSubResults.getSampleCount());\n assertEquals(2, resWithSubResults.getSubResults().length);\n long totalTime = resWithSubResults.getTime();\n \n // Check the sample times\n long allsamplesTime = sampleWithSubResultsTime + sample1Time + sample2Time;\n if (totalTime < allsamplesTime) {\n \tfail(\"Total: \"+totalTime+\" < sum(samples): \"+ allsamplesTime);\n }\n if (totalTime > overallTime) {\n \tfail(\"Total: \"+totalTime+\" > overall time: \"+ overallTime);\n }\n \n // Check that calculator gets the correct statistics from the sample\n Calculator calculator = new Calculator();\n calculator.addSample(resWithSubResults);\n assertEquals(600, calculator.getTotalBytes());\n assertEquals(1, calculator.getCount());\n assertEquals(1d / (totalTime / 1000d), calculator.getRate(),0.0001d); // Allow for some margin of error\n // Check that the throughput uses the time elapsed for the sub results\n assertFalse(1d / (sampleWithSubResultsTime / 1000d) <= calculator.getRate());\n }",
"@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }",
"@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"department\"})\n public void _2_1_1_addFirstLevelDept() throws Exception {\n Department dept = new Department();\n dept.setName(\"testadddept\");\n dept.setDescription(\"测试新增一级部门\");\n dept.setCompany(c_1.getId());\n try {\n RequestBuilder request = post(\"/api/v1.0/companies/\"+c_1.getId().toString()+\"/departments\")\n .contentType(CONTENT_TYPE)\n .header(AUTHORIZATION, ACCESS_TOKEN)\n .content(json(dept));\n this.mockMvc.perform(request)\n .andDo(print())\n .andExpect(status().isCreated())\n .andExpect(jsonPath(\"$.id\",is(\n LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .add(\"ou\",dept.getName())\n .build().toString()\n )))\n .andExpect(jsonPath(\"$.name\",is(dept.getName())))\n .andExpect(jsonPath(\"$.description\",is(dept.getDescription())))\n .andExpect(jsonPath(\"$.company\",is(c_1.getId().toString())))\n .andExpect(jsonPath(\"$.parent\",is(\n LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .build().toString()\n )));\n } catch(Exception e) {\n throw(e);\n } finally {\n cleanNode(LdapNameBuilder.newInstance(c_1.getId())\n .add(\"ou\",\"departments\")\n .add(\"ou\",dept.getName())\n .build().toString());\n }\n\n }",
"@Test (priority=1)\n\tpublic void TestCase1() {\n\t\tapp.log(\"------TESTING TEST CASE 1-----\");\n\t\tActualResult=app.Method1();//execute the method 1 and Result can be accessed using the Map reference\n\t\t\n\t\t//add every assertion in a try-catch block \n\t\ttry{\n\t\tAssert.assertEquals(\"Key 1\",ActualResult.get(\"key1\"));//assert(expected, actual value)\n\t\t}catch(Throwable t){\n\t\t\tErrorUtil.addVerificationFailure(t);\n\t\t\tapp.log(\"Value is incorrect\");\n\t\t\t}\n\t\t}",
"@Test(priority=54)\t\t\n\tpublic void campaign_user_with_valid_filter_for_user_ext_id() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_valid_filter_for_user_ext_id\", \"To validate whether user is able to get campaign and its users through campaign/user api with valid filter for user_ext_id\");\t\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\t\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_valid_filter_for_user_ext_id\");\t\n\t\tString user_ext_id = \"1234\";\t\n\t\tMap<String, Object> confGroupHierarchy = yamlReader.readUserInfo(Constants.GroupHierarchy.AGENCY);\t\n\t\tString user_id=confGroupHierarchy.get(TestDataYamlConstants.UserConstants.ID).toString();\t\n\t\t\t\n//\t\tDBUserUtils.updateExternalID(user_id, user_ext_id);\t\n\t\t\t\n\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\t\n\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_ext_id%3d\"+user_ext_id));\t\n\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\t\n\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\t\n\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with valid filter for user_ext_id\");\t\n\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\t\n\t\tString line = \"\";\t\n\t\twhile ((line = rd.readLine()) != null) {\t\n\t\t // Convert response to JSON object\t\t\n\t\t JSONParser parser = new JSONParser();\t\n\t\t JSONObject json = (JSONObject) parser.parse(line);\t\n\t\t JSONArray array = (JSONArray)json.get(\"data\");\t\n\t\t // Check whether campaign list returns at least 1 record when valid user_ext_id is passed for filter\t\n\t\t Assert.assertTrue(array.size()>=1, \"campaign/user does not return records when valid user_ext_id is passed for filter.\");\t\n\t\t for(int i=0; i<array.size(); i++){\t\n\t\t\t // Get the campaign from the campaign list\t\n\t\t\t JSONObject campaign = (JSONObject)array.get(i);\t\n\t\t\t JSONArray users_data = (JSONArray) campaign.get(\"users\");\t\n\t\t\t Boolean user_exist = false;\t\n\t\t\t for(int j=0; j<users_data.size(); j++){\t\n\t\t\t\t JSONObject user = (JSONObject)users_data.get(j);\t\n\t\t\t\t if(user.get(\"user_ext_id\")!=null){\t\n\t\t\t\t\t String user_ex_id = user.get(\"user_ext_id\").toString();\t\n\t\t\t\t\t if(user_ex_id.equals(user_ext_id)){\t\n\t\t\t\t\t\t user_exist = true;\t\n\t\t\t\t\t }\t\n\t\t\t\t }\t\n\t\t\t }\t\n\t\t\t Assert.assertTrue(user_exist, \"Passed user_ext_id does not exist in campaign/user response.\");\t\n\t\t }\t\n\t\t}\t\t\n\t}",
"public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }",
"@Test\r\n\tpublic void checkAddGroup() {\r\n\r\n\t\tITemplateGroup test = null;\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test1\");\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tfail(\"No exception has thrown.\");\r\n\t\t}\r\n\t\tassertNotNull(test);\r\n\r\n\t\tassertEquals(test.getDisplayName(), \"Test1\");\r\n\t\tassertSame(test, general);\r\n\r\n\t\ttry {\r\n\t\t\ttest = TemplatePlugin.getTemplateGroupRegistry().getTemplateGroup(\r\n\t\t\t\t\t\"Test2\");\r\n\t\t\tfail(\"A excpetion must be thrown.\");\r\n\t\t} catch (TemplateException e) {\r\n\r\n\t\t}\r\n\r\n\t}",
"@Test(priority=6)\r\n\tpublic void filterReturnsDetails() {\r\n\t\t\r\n\t\tString expectedTitle=\"No. Returns\";\r\n\t\tString actualTitle=filterReturnsList.filterListbyGroup();\r\n\t\tassertEquals(actualTitle, expectedTitle);\r\n\t\tScreenShot ss=new ScreenShot(driver);\r\n\t\tss.captureScreenShot(\"TC025\");\r\n\t}",
"public void testGetStartValue2() {\n TaskSeriesCollection c = createCollection2();\n TaskSeriesCollection c3 = createCollection3();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tmFaceManager.createGroup(\"first_group\");\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\t\t\t\t\n\t\t\t\t//Log.d(\"a\", mResult.toString());\n\t\t\t}",
"@Test\n public void testOrderInNegotiation() {\n Player l_player = new Player();\n l_player.setD_playerName(\"user2\");\n l_player.setD_negotiatePlayer(d_player.getD_playerName());\n\n Country l_country2 = new Country();\n l_country2.setD_continentIndex(1);\n l_country2.setD_countryIndex(3);\n l_country2.setD_countryName(\"nepal\");\n List<Country> l_countryList = new ArrayList();\n l_countryList.add(l_country2);\n l_player.setD_ownedCountries(l_countryList);\n\n d_gameData.getD_playerList().add(l_player);\n\n d_orderProcessor.processOrder(\"negotiate user2\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n\n d_orderProcessor.processOrder(\"advance india nepal 5\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order1 = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order1.executeOrder());\n }",
"private void defaultGroupCdShouldBeFound(String filter) throws Exception {\n restGroupCdMockMvc.perform(get(\"/api/group-cds?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(groupCd.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].groupCd\").value(hasItem(DEFAULT_GROUP_CD.toString())));\n\n // Check, that the count call also returns 1\n restGroupCdMockMvc.perform(get(\"/api/group-cds/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmFaceManager.createPerson(\"hello\", \"first_group\");\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}",
"public void success(Response arg0, Response arg1) {\n\t\t\t\tgroupUser = DecompressGZIP.fromBody(arg0.getBody(), new TypeToken<List<OperatorGroupUser>>() {}.getType());;\n\t\t\t}",
"@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}",
"@Test\n public void createSqlQueryWithWhereAndGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere group by validGroupBy\\\"}\");\n }",
"@Test \n\tvoid test3() {\n\t\tassertTrue(!r1.getOutput().isEmpty());\n\t}",
"@Test\n public void queryWithOneInnerQueryCreate() throws IOException {\n BaseFuseClient fuseClient = new BaseFuseClient(\"http://localhost:8888/fuse\");\n //query request\n CreateQueryRequest request = new CreateQueryRequest();\n request.setId(\"1\");\n request.setName(\"test\");\n request.setQuery(Q1());\n //submit query\n given()\n .contentType(\"application/json\")\n .header(new Header(\"fuse-external-id\", \"test\"))\n .with().port(8888)\n .body(request)\n .post(\"/fuse/query\")\n .then()\n .assertThat()\n .body(new TestUtils.ContentMatcher(o -> {\n try {\n final QueryResourceInfo queryResourceInfo = fuseClient.unwrap(o.toString(), QueryResourceInfo.class);\n assertTrue(queryResourceInfo.getAsgUrl().endsWith(\"fuse/query/1/asg\"));\n assertTrue(queryResourceInfo.getCursorStoreUrl().endsWith(\"fuse/query/1/cursor\"));\n assertEquals(1,queryResourceInfo.getInnerUrlResourceInfos().size());\n assertTrue(queryResourceInfo.getInnerUrlResourceInfos().get(0).getAsgUrl().endsWith(\"fuse/query/1->q2/asg\"));\n assertTrue(queryResourceInfo.getInnerUrlResourceInfos().get(0).getCursorStoreUrl().endsWith(\"fuse/query/1->q2/cursor\"));\n return fuseClient.unwrap(o.toString()) != null;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }))\n .statusCode(201)\n .contentType(\"application/json;charset=UTF-8\");\n\n //get query resource by id\n given()\n .contentType(\"application/json\")\n .header(new Header(\"fuse-external-id\", \"test\"))\n .with().port(8888)\n .get(\"/fuse/query/\"+request.getId()+\"->\"+Q2().getName())\n .then()\n .assertThat()\n .body(new TestUtils.ContentMatcher(o -> {\n try {\n final QueryResourceInfo queryResourceInfo = fuseClient.unwrap(o.toString(), QueryResourceInfo.class);\n assertTrue(queryResourceInfo.getAsgUrl().endsWith(\"fuse/query/1->q2/asg\"));\n assertTrue(queryResourceInfo.getCursorStoreUrl().endsWith(\"fuse/query/1->q2/cursor\"));\n return fuseClient.unwrap(o.toString()) != null;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }))\n .statusCode(200)\n .contentType(\"application/json;charset=UTF-8\");\n\n\n }",
"@Test\r\n\tpublic void createDirectTargetGroupsWithObject_V1_getResponseEntity()\tthrows ClientProtocolException, IOException, JSONException {\r\n\t\t\t\t\r\n\t\t/**\r\n\t\t * Create a direct target group with fake data\r\n\t\t */\r\n\t\t\r\n\t\tDirectTargetGroup directTargetGroupSent,directTargetGroupReceived,directTargetGroupFound;\r\n\t\tResponseEntity<String> responseCreate,responseGet, responseDelete;\r\n\t\t\r\n\t\t\r\n\t\tdirectTargetGroupSent = FakeObjectsFactory.getDirectTargetGroupEntity(new DirectTargetGroup());\r\n\t\tHttpEntity<DirectTargetGroup> request = new HttpEntity<DirectTargetGroup>(directTargetGroupSent);\r\n \r\n\t\t/* CREATE: HTTP Methos POST (postForEntity)*/\r\n\t\turl.setParam(null);\r\n\t\t\r\n\t\tLOGGER.debug(\"URL:\"+url.get());\r\n\t\tresponseCreate = restTemplate.postForEntity(url.get(), request, String.class);\r\n\t\tdirectTargetGroupReceived = objectMapper.readValue(responseCreate.getBody(), DirectTargetGroup.class);\r\n\t\t\r\n\t\tassertEquals(directTargetGroupSent.getDescriptionEn(), directTargetGroupReceived.getDescriptionEn());\r\n\t\tassertEquals(directTargetGroupSent.getOrderNumber(), directTargetGroupReceived.getOrderNumber());\r\n\t\t\r\n\t\tString jsonString = objectMapper.writeValueAsString(directTargetGroupReceived);\r\n\t\t\r\n\t\tLOGGER.debug(\"URL:\"+url.get());\r\n\t\tLOGGER.debug(\"received:\"+jsonString);\r\n\t\t// LOGGER.debug(\"expected:\"+expectedResponse);\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Read the direct target group created (getForEntity)\r\n\t\t */\r\n\t\t\r\n\t\turl.setMethod(\"/last\");\r\n\t\tresponseGet = restTemplate.getForEntity(url.get(), String.class);\r\n\t\tdirectTargetGroupFound = objectMapper.readValue(responseGet.getBody(), DirectTargetGroup.class);\r\n\t\t\r\n\t\turl.setMethod(null);\r\n\t\t\r\n\t\tassertEquals(directTargetGroupFound.getDescriptionEn(), directTargetGroupReceived.getDescriptionEn());\r\n\t\tassertEquals(directTargetGroupFound.getOrderNumber(), directTargetGroupReceived.getOrderNumber());\r\n\t\t\r\n\t\t/**\r\n\t\t * Delete the direct target group created (getForEntity)\r\n\t\t */\r\n\t\t\r\n\t\turl.setMethod(null);\r\n\t\turl.setParam(\"/{id}\");\r\n\t\t\r\n\t\tMap < String, String > params = new HashMap < String, String > ();\r\n\t params.put(\"id\", directTargetGroupReceived.getId().toString());\r\n\r\n\t restTemplate.delete(url.get(), params);\r\n\r\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyThankYouSurveyInAnonymousSMR(){\t\t\t\t\t\t \n\t Report.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Gas customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRUser\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Gas\")\n\t.verifyAnonymousSAPGasCustomer(smrProfile)\t\t\n\t//.verifySapIsu(smrProfile)\n\t.verifyMeterReadConfirmation(smrProfile);\n\t//.verifyThankYouSurveyPage(smrProfile);\n\t//.verifyAnonymousSAPGasCustomer(smrProfile);\n\n\n}",
"@Test\n public void testDeleteUserWhenOnlyUserInGroup5() throws Exception {\n /*\n * This test has the following setup:\n * - Collection A - Step 1: user B\n * - Collection A - Step 2: user C\n * - Collection A - Step 3: user B\n *\n * - Collection B - Step 1: user B\n *\n * This test will perform the following checks:\n * - create a workspace item in Collection A, and let it move to step 1\n * - claim it by user B\n * - delete user B\n * - verify the delete is refused\n * - remove user B from Col A - step 3\n * - remove user B from Col B - step 1\n * - remove user B from Col A - step 1\n * - Verify that the removal from Col A - step 1 is refused because user B has a claimed task in that\n * collection and no other user is present\n * - approve it by user B, and let it move to step 2\n * - remove user B from Col A - step 1\n * - verify it succeeds\n * - delete user B\n * - verify it succeeds\n * - approve it by user C\n * - verify that the item is archived\n */\n context.turnOffAuthorisationSystem();\n\n Community parent = CommunityBuilder.createCommunity(context).build();\n Collection collectionA = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .withWorkflowGroup(2, workflowUserC)\n .withWorkflowGroup(3, workflowUserB)\n .build();\n\n Collection collectionB = CollectionBuilder.createCollection(context, parent)\n .withWorkflowGroup(1, workflowUserB)\n .build();\n\n WorkspaceItem wsi = WorkspaceItemBuilder.createWorkspaceItem(context, collectionA)\n .withSubmitter(workflowUserA)\n .withTitle(\"Test item full workflow\")\n .withIssueDate(\"2019-03-06\")\n .withSubject(\"ExtraEntry\")\n .build();\n\n Workflow workflow = XmlWorkflowServiceFactory.getInstance().getWorkflowFactory().getWorkflow(collectionA);\n\n XmlWorkflowItem workflowItem = xmlWorkflowService.startWithoutNotify(context, wsi);\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"submit_approve\", \"submit_approve\");\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, CLAIM_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionA, FINAL_EDIT_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionB, REVIEW_ROLE, true);\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionA, REVIEW_ROLE, false);\n\n executeWorkflowAction(httpServletRequest, workflowUserB, workflow, workflowItem, REVIEW_STEP, REVIEW_ACTION);\n\n assertRemovalOfEpersonFromWorkflowGroup(workflowUserB, collectionA, REVIEW_ROLE, true);\n assertDeletionOfEperson(workflowUserB, true);\n\n\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, CLAIM_ACTION);\n executeWorkflowAction(httpServletRequest, workflowUserC, workflow, workflowItem, EDIT_STEP, EDIT_ACTION);\n\n assertTrue(workflowItem.getItem().isArchived());\n\n }",
"@Override\r\n\tprotected void doFirst() {\n\t\t\r\n\t}",
"public static void main(String[] args)\n\t{\n\t\tGroupSynchronization groupSynchronization = new GroupSynchronization();\n\t\tGroup group\t\t\t= new Group();\n\t\t\n//\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n//\t\tsubNodeGroupInfo.setGroupName(\"组一\");\n//\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.市公司一.公司一部门二.组一\");\n//\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600007\");\n//\t\tsubNodeGroupInfo.setGroupType(\"0\");\n//\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n//\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n//\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600004\");\n//\t\tsubNodeGroupInfo.setGroupCompanytype(\"3\");\n//\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n//\t\tsubNodeGroupInfo.setGroupIntId(600009);\n//\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600004;000000000600007;000000000600009;\");\n//\t\t\n//\t\tgroupSynchronization.modifySynchronization(\"000000000600009\",subNodeGroupInfo);\n//\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600009\");\n\t\t\n\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n\t\tsubNodeGroupInfo.setGroupName(\"公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.省公司部门一.公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600008\");\n\t\tsubNodeGroupInfo.setGroupType(\"3\");\n\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600003\");\n\t\tsubNodeGroupInfo.setGroupCompanytype(\"1\");\n\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n\t\tsubNodeGroupInfo.setGroupIntId(600007);\n\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600008;000000000600007;\");\n\t\t\n\t\tgroupSynchronization.modifySynchronization(\"000000000600007\",subNodeGroupInfo);\n\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600007\");\n\t}",
"@Test\r\n\tpublic void executionTest() throws Exception {\n\t\tOperationalEnvDistributionStatus operEnvDistStatusObj = new OperationalEnvDistributionStatus();\r\n\t\toperEnvDistStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\toperEnvDistStatusObj.setDistributionId(asdcDistributionId);\r\n\t\toperEnvDistStatusObj.setOperationalEnvId( operationalEnvironmentId);\r\n\t\toperEnvDistStatusObj.setDistributionIdStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvDistStatusObj.setRequestId(requestId);\r\n\t\t\r\n\t\t// ServiceModelStatus - getOperationalEnvServiceModelStatus\r\n\t\tOperationalEnvServiceModelStatus operEnvServiceModelStatusObj = new OperationalEnvServiceModelStatus();\r\n\t\toperEnvServiceModelStatusObj.setRequestId(requestId);\r\n\t\toperEnvServiceModelStatusObj.setOperationalEnvId(operationalEnvironmentId);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionDistrStatus(DistributionStatus.DISTRIBUTION_COMPLETE_OK.toString());\r\n\t\toperEnvServiceModelStatusObj.setRecoveryAction(recoveryAction);\r\n\t\toperEnvServiceModelStatusObj.setRetryCount(retryCount);\r\n\t\toperEnvServiceModelStatusObj.setWorkloadContext(workloadContext);\r\n\t\toperEnvServiceModelStatusObj.setServiceModelVersionId(serviceModelVersionId);\r\n\t\tList<OperationalEnvServiceModelStatus> queryServiceModelResponseList = new ArrayList<OperationalEnvServiceModelStatus>();\r\n\t\tqueryServiceModelResponseList.add(operEnvServiceModelStatusObj);\r\n\t\t\r\n\t\t// prepare distribution obj\r\n\t\tDistribution distribution = new Distribution();\r\n\t\tdistribution.setStatus(Status.DISTRIBUTION_COMPLETE_OK);\r\n\t\trequest.setDistribution(distribution);\r\n\t\trequest.setDistributionId(asdcDistributionId);\r\n\t\t\r\n\t\t// prepare asdc return data\r\n\t\tString jsonPayload = asdcClientUtils.buildJsonWorkloadContext(workloadContext);\r\n\t\r\n\t\tJSONObject jsonObject = new JSONObject();\r\n\t\tjsonObject.put(\"statusCode\", \"202\");\r\n\t\tjsonObject.put(\"message\", \"Success\");\r\n\t\tjsonObject.put(\"distributionId\", asdcDistributionId);\r\n\t\t\r\n\t\t// Mockito mock\r\n\t\tOperationalEnvDistributionStatusDb distributionDb = Mockito.mock(OperationalEnvDistributionStatusDb.class);\r\n\t\tOperationalEnvServiceModelStatusDb serviceModelDb = Mockito.mock(OperationalEnvServiceModelStatusDb.class);\r\n\t\tRequestsDBHelper dbUtils = mock(RequestsDBHelper.class);\r\n\t\tAsdcClientHelper asdcClientHelperMock = Mockito.mock(AsdcClientHelper.class);\r\n\t\tRESTConfig configMock = Mockito.mock(RESTConfig.class);\r\n\t\tRESTClient clientMock = Mockito.mock(RESTClient.class);\r\n\t\tAPIResponse apiResponseMock = Mockito.mock(APIResponse.class);\t\t\r\n\t\r\n\t\tMockito.when(asdcClientHelperMock.setRestClient(configMock)).thenReturn(clientMock);\r\n\t\tMockito.when(asdcClientHelperMock.setHttpPostResponse(clientMock, jsonPayload)).thenReturn(apiResponseMock);\r\n\t\tMockito.when(asdcClientHelperMock.enhanceJsonResponse(jsonObject, 202)).thenReturn(jsonObject);\t\t\r\n\t\tMockito.when(asdcClientHelperMock.postActivateOperationalEnvironment(serviceModelVersionId, operationalEnvironmentId, workloadContext)).thenReturn(jsonObject);\t\t\r\n\t\t\r\n\t\tMockito.when(distributionDb.getOperationalEnvDistributionStatus(asdcDistributionId)).thenReturn(operEnvDistStatusObj);\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvServiceModelStatus(operationalEnvironmentId, serviceModelVersionId)).thenReturn(operEnvServiceModelStatusObj);\t\t\r\n\t\tMockito.when(serviceModelDb.getOperationalEnvIdStatus(operationalEnvironmentId, requestId)).thenReturn(queryServiceModelResponseList);\t\t\r\n\t\t\r\n\t\tint row = 1;\r\n\t\tMockito.when(distributionDb.updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId)).thenReturn(row);\r\n\t\tMockito.when(serviceModelDb.updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0)).thenReturn(row);\r\n\t\t\r\n\t\tdoNothing().when(dbUtils).updateInfraSuccessCompletion(any(String.class), any(String.class), any(String.class));\r\n\t\t\r\n\t\trequest.setOperationalEnvironmentId(operationalEnvironmentId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatus = new ActivateVnfStatusOperationalEnvironment(request, requestId);\r\n\t\tActivateVnfStatusOperationalEnvironment activateVnfStatusMock = spy(activateVnfStatus);\r\n\t\tactivateVnfStatusMock.setOperationalEnvDistributionStatusDb(distributionDb);\r\n\t\tactivateVnfStatusMock.setOperationalEnvServiceModelStatusDb(serviceModelDb);\r\n\t\tactivateVnfStatusMock.setRequestsDBHelper(dbUtils);\t\t\r\n\t\tactivateVnfStatusMock.setAsdcClientHelper(asdcClientHelperMock);\r\n\r\n\t\tactivateVnfStatusMock.execute();\t\t\r\n\t\t\r\n\t\tverify(distributionDb, times(1)).updateOperationalEnvDistributionStatus(distribution.getStatus().toString(), asdcDistributionId, operationalEnvironmentId, serviceModelVersionId);\r\n\t\tverify(serviceModelDb, times(1)).updateOperationalEnvRetryCountStatus(operationalEnvironmentId, serviceModelVersionId, distribution.getStatus().toString(), 0);\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n public void test() {\n try {\n Long userId = Long.valueOf(1);\n User user = new User(userId, \"testUser\", new Date());\n // Creates tree of 6 accounts\n // AccountTreeRoot treeRoot = TestDataFactory.buildAccounts(userId);\n // Account boligAccount = new Account(Long.valueOf(1), Long.valueOf(-1), userId, \"Bolig\", \"\", 0, Type.TYPE_REGULAR, new Date());\n // Account boligAccountFinans = new Account(Long.valueOf(2), Long.valueOf(1), userId,\"Finans\", \"Bolig\", 1, Type.TYPE_REGULAR, new Date());\n // Account boligAccountFinansLaan = new Account(Long.valueOf(3), Long.valueOf(2), userId, \"Lån\", \"Bolig/Finans\", 2, Type.TYPE_REGULAR, new Date());\n //\n // Account boligAccountTag = new Account(Long.valueOf(4), Long.valueOf(1), userId, \"Tag\", \"Bolig\", 1, Type.TYPE_REGULAR, new Date());\n //\n // Account boligAccountVVS = new Account(Long.valueOf(5), Long.valueOf(1), userId, \"VVS\", \"Bolig\", 1 , Type.TYPE_NON_REGULAR, new Date());\n // Account boligAccountVVSExtra = new Account(Long.valueOf(6), Long.valueOf(5), userId, \"Extra\", \"Bolig/VVS\", 2 , Type.TYPE_EXTRAORDINAIRE, new Date());\n // Account boligAccountVVSCheck = new Account(Long.valueOf(7), Long.valueOf(5), userId, \"Check\", \"Bolig/VVS\", 2 , Type.TYPE_NON_REGULAR, new Date());\n\n // regular, Bolig/Finans/Lån\n Match match = null;\n match = new Match(null, null, userId, new Long(3), new Long(1), null, null);\n Line line1 = new Line(new Long(1), userId, \"test1\", sdFormat.parse(\"2013-09-20\"), \"Lån1\", new BigDecimal(-4000), null, match);\n match = new Match(null, null, userId, new Long(3), new Long(2), null, null);\n Line line2 = new Line(new Long(2), userId, \"test2\", sdFormat.parse(\"2013-09-21\"), \"Lån2\", new BigDecimal(-400), null, match);\n\n // regular, Bolig/tag\n match = new Match(null, null, userId, new Long(4), new Long(3), null, null);\n Line line3 = new Line(new Long(3), userId, \"test3\", sdFormat.parse(\"2013-09-23\"), \"Tag\", new BigDecimal(-3000), null, match);\n match = new Match(null, null, userId, new Long(4), new Long(4), null, null);\n Line line4 = new Line(new Long(4), userId, \"test4\", sdFormat.parse(\"2013-11-20\"), \"Tag2\", new BigDecimal(-300), null, match);\n\n // extra, Bolig/VVS/Extra\n match = new Match(null, null, userId, new Long(6), new Long(5), null, null);\n Line line5 = new Line(new Long(5), userId, \"test\", sdFormat.parse(\"2013-09-20\"), \"VVSExt1\", new BigDecimal(-2000), null, match);\n match = new Match(null, null, userId, new Long(6), new Long(6), null, null);\n Line line6 = new Line(new Long(6), userId, \"test\", sdFormat.parse(\"2013-10-20\"), \"VVSExt2\", new BigDecimal(-200), null, match);\n match = new Match(null, null, userId, new Long(6), new Long(7), null, null);\n Line line7 = new Line(new Long(7), userId, \"test\", sdFormat.parse(\"2013-11-20\"), \"VVSExt3\", new BigDecimal(-20), null, match);\n\n // regular, Bolig/Finans/Lån\n match = new Match(null, null, userId, new Long(3), new Long(8), null, null);\n Line line8 = new Line(new Long(8), userId, \"test\", sdFormat.parse(\"2013-09-22\"), \"Lån3\", new BigDecimal(-40), null, match);\n // nonregular, Bolig/VVS/Check\n match = new Match(null, null, userId, new Long(7), new Long(9), null, null);\n Line line9 = new Line(new Long(9), userId, \"test\", sdFormat.parse(\"2013-10-12\"), \"VVSBesøg\", new BigDecimal(-500), null, match);\n\n // // regular, Bolig/Finans/Lån\n // Line line1 = new Line(new Long(1), new Long(3), userId, \"test1\", sdFormat.parse(\"2013-09-20\"), \"Lån1\", new BigDecimal(-4000), null);\n // Line line2 = new Line(new Long(2), new Long(3), userId, \"test2\", sdFormat.parse(\"2013-09-21\"), \"Lån2\", new BigDecimal(-400), null);\n //\n // // regular, Bolig/tag\n // Line line3 = new Line(new Long(3), new Long(4), userId, \"test3\", sdFormat.parse(\"2013-09-23\"), \"Tag\", new BigDecimal(-3000), null);\n // Line line4 = new Line(new Long(4), new Long(4), userId, \"test4\", sdFormat.parse(\"2013-11-20\"), \"Tag2\", new BigDecimal(-300), null);\n //\n // // extra, Bolig/VVS/Extra\n // Line line5 = new Line(new Long(5), new Long(6), userId, \"test\", sdFormat.parse(\"2013-09-20\"), \"VVSExt1\", new BigDecimal(-2000), null);\n // Line line6 = new Line(new Long(6), new Long(6), userId, \"test\", sdFormat.parse(\"2013-10-20\"), \"VVSExt2\", new BigDecimal(-200), null);\n // Line line7 = new Line(new Long(7), new Long(6), userId, \"test\", sdFormat.parse(\"2013-11-20\"), \"VVSExt3\", new BigDecimal(-20), null);\n //\n // // regular, Bolig/Finans/Lån\n // Line line8 = new Line(new Long(8), new Long(3), userId, \"test\", sdFormat.parse(\"2013-09-22\"), \"Lån3\", new BigDecimal(-40), null);\n // // nonregular, Bolig/VVS/Check\n // Line line9 = new Line(new Long(9), new Long(7), userId, \"test\", sdFormat.parse(\"2013-10-12\"), \"VVSBesøg\", new BigDecimal(-500), null);\n\n // Bolig:\n // 09: total=4000+400+3000+40+2000, reg=4000+400+3000+40, nonreg=0,extra=2000\n BigDecimal per1Total = new BigDecimal(\"-9440.00\");\n BigDecimal per1Reg = new BigDecimal(\"-7440.00\");\n BigDecimal per1NonReg = new BigDecimal(\"0.00\");\n BigDecimal per1Extra = new BigDecimal(\"-2000.00\");\n // 10 total=200+500, reg=0, nonreg=500,extra=200\n BigDecimal per2Total = new BigDecimal(\"-700.00\");\n BigDecimal per2Reg = new BigDecimal(\"0.00\");\n BigDecimal per2NonReg = new BigDecimal(\"-500.00\");\n BigDecimal per2Extra = new BigDecimal(\"-200.00\");\n // 11: total=300,29 reg=300, nonreg=0,extra=20\n BigDecimal per3Total = new BigDecimal(\"-320.00\");\n BigDecimal per3Reg = new BigDecimal(\"-300.00\");\n BigDecimal per3NonReg = new BigDecimal(\"0.00\");\n BigDecimal per3Extra = new BigDecimal(\"-20.00\");\n\n // VisitorLogTree treeLogger = new VisitorLogTree(true);\n // treeRoot.accept(treeLogger);\n\n TimeLineImpl timeLine = new TimeLineImpl();\n AccountPersisterTestIFactorympl accPersister = new AccountPersisterTestIFactorympl(user);\n AccountTreeRoot buildAccountTree = accPersister.buildAccountTree(user.getId());\n VisitorLogTree visitorLogTree = new VisitorLogTree();\n buildAccountTree.accept(visitorLogTree);\n timeLine.setUser(user);\n timeLine.setAccountPersister(accPersister);\n timeLine.createTimelineForPeriod(line1.getDate(), line7.getDate());\n List<Period> periods = timeLine.getPeriods();\n assertEquals(3, periods.size());\n assertEquals(sdFormat.parse(\"2013-09-01\"), periods.get(0).getStartDate());\n assertEquals(sdFormat.parse(\"2013-10-01\"), periods.get(1).getStartDate());\n assertEquals(sdFormat.parse(\"2013-11-01\"), periods.get(2).getStartDate());\n\n // Creates 3 periods\n timeLine.addLine(line1);\n timeLine.addLine(line2);\n timeLine.addLine(line3);\n timeLine.addLine(line4);\n timeLine.addLine(line5);\n timeLine.addLine(line6);\n timeLine.addLine(line7);\n timeLine.addLine(line8);\n timeLine.addLine(line9);\n\n //*************************************************\n\n OutputChartDataBuilder dataBuilder = null;\n\n dataBuilder = new OutputChartDataBuilderBigDecimalRegular();\n dataBuilder.buildOutData(timeLine, \"/Bolig\", 1);\n\n Date[] dates = dataBuilder.getDates();\n assertEquals(3, dates.length);\n assertEquals(sdFormat.parse(\"2013-09-01\"), dates[0]);\n assertEquals(sdFormat.parse(\"2013-10-01\"), dates[1]);\n assertEquals(sdFormat.parse(\"2013-11-01\"), dates[2]);\n\n BigDecimal[][] values = (BigDecimal[][]) dataBuilder.getValues();\n assertEquals(3, values.length);\n assertEquals(1, values[0].length);\n assertEquals(1, values[1].length);\n assertEquals(1, values[2].length);\n\n assertEquals(per1Reg, values[0][0]);\n assertEquals(per2Reg, values[1][0]);\n assertEquals(per3Reg, values[2][0]);\n\n String[][] categories = dataBuilder.getCategories();\n assertEquals(categories.length, 1);\n assertEquals(categories[0].length, 1);\n assertEquals(\"/Bolig\", categories[0][0]);\n\n //***************************\n\n // Account boligAccountVVS = new Account(Long.valueOf(5), Long.valueOf(1), userId, \"VVS\", \"Bolig\", 1 , Type.TYPE_NON_REGULAR, new Date());\n // Account boligAccountVVSExtra = new Account(Long.valueOf(6), Long.valueOf(5), userId, \"Extra\", \"Bolig/VVS\", 2 , Type.TYPE_EXTRAORDINAIRE, new Date());\n // Account boligAccountVVSCheck = new Account(Long.valueOf(7), Long.valueOf(5), userId, \"Check\", \"Bolig/VVS\", 2 , Type.TYPE_NON_REGULAR, new Date());\n\n // extra, Bolig/VVS/Extra\n // Line line5 = new Line(new Long(5), new Long(6), userId, \"test\", sdFormat.parse(\"2013-09-20\"), \"VVSExt1\", new BigDecimal(-2000), null);\n // Line line6 = new Line(new Long(6), new Long(6), userId, \"test\", sdFormat.parse(\"2013-10-20\"), \"VVSExt2\", new BigDecimal(-200), null);\n // Line line7 = new Line(new Long(7), new Long(6), userId, \"test\", sdFormat.parse(\"2013-11-20\"), \"VVSExt3\", new BigDecimal(-20), null);\n\n // nonregular, Bolig/VVS/Check\n // Line line9 = new Line(new Long(9), new Long(7), userId, \"test\", sdFormat.parse(\"2013-10-12\"), \"VVSBesøg\", new BigDecimal(-500), null);\n\n BigDecimal zero = new BigDecimal(\"0.00\");\n\n dataBuilder = new OutputChartDataBuilderBigDecimalRegular();\n dataBuilder.buildOutData(timeLine, \"/Bolig/VVS\", 2);\n\n values = (BigDecimal[][]) dataBuilder.getValues();\n categories = dataBuilder.getCategories();\n dates = dataBuilder.getDates();\n\n assertEquals(0, categories.length);\n assertEquals(0, values.length);\n assertEquals(0, dates.length);\n\n // ******************************\n dataBuilder = new OutputChartDataBuilderBigDecimalNonRegular();\n dataBuilder.buildOutData(timeLine, \"/Bolig/VVS\", 2);\n\n values = (BigDecimal[][]) dataBuilder.getValues();\n categories = dataBuilder.getCategories();\n dates = dataBuilder.getDates();\n\n assertEquals(6, values.length);\n assertEquals(2, values[0].length);\n assertEquals(2, values[1].length);\n assertEquals(2, values[2].length);\n assertEquals(2, values[3].length);\n assertEquals(2, values[4].length);\n assertEquals(2, values[5].length);\n\n assertEquals(zero, values[0][0]);\n assertEquals(null, values[0][1]);\n assertEquals(null, values[1][0]);\n assertEquals(zero, values[1][1]);\n\n assertEquals(new BigDecimal(\"-500.00\"), values[2][0]);\n assertEquals(null, values[2][1]);\n assertEquals(null, values[3][0]);\n assertEquals(new BigDecimal(\"-500.00\"), values[3][1]);\n\n assertEquals(zero, values[4][0]);\n assertEquals(null, values[4][1]);\n assertEquals(null, values[5][0]);\n assertEquals(zero, values[5][1]);\n\n assertEquals(\"/Bolig/VVS\", categories[0][0]);\n assertEquals(\"/Bolig/VVS\", categories[0][1]);\n assertEquals(null, categories[1][0]);\n assertEquals(\"Check\", categories[1][1]);\n\n assertEquals(3, dates.length);\n assertEquals(sdFormat.parse(\"2013-09-01\"), dates[0]);\n assertEquals(sdFormat.parse(\"2013-10-01\"), dates[1]);\n assertEquals(sdFormat.parse(\"2013-11-01\"), dates[2]);\n\n //***************************\n\n dataBuilder = new OutputChartDataBuilderBigDecimalExtraordinaire();\n dataBuilder.buildOutData(timeLine, \"/Bolig/VVS\", 2);\n\n values = (BigDecimal[][]) dataBuilder.getValues();\n categories = dataBuilder.getCategories();\n dates = dataBuilder.getDates();\n\n assertEquals(6, values.length);\n assertEquals(2, values[0].length);\n assertEquals(2, values[1].length);\n assertEquals(2, values[2].length);\n assertEquals(2, values[3].length);\n assertEquals(2, values[4].length);\n assertEquals(2, values[5].length);\n\n // BigDecimal zero = new BigDecimal(\"0.00\");\n assertEquals(new BigDecimal(\"-2000.00\"), values[0][0]);\n assertEquals(null, values[0][1]);\n assertEquals(null, values[1][0]);\n assertEquals(new BigDecimal(\"-2000.00\"), values[1][1]);\n\n assertEquals(new BigDecimal(\"-200.00\"), values[2][0]);\n assertEquals(null, values[2][1]);\n assertEquals(null, values[3][0]);\n assertEquals(new BigDecimal(\"-200.00\"), values[3][1]);\n\n assertEquals(new BigDecimal(\"-20.00\"), values[4][0]);\n assertEquals(null, values[4][1]);\n assertEquals(null, values[5][0]);\n assertEquals(new BigDecimal(\"-20.00\"), values[5][1]);\n\n assertEquals(\"/Bolig/VVS\", categories[0][0]);\n assertEquals(\"/Bolig/VVS\", categories[0][1]);\n assertEquals(null, categories[1][0]);\n assertEquals(\"Extra\", categories[1][1]);\n\n assertEquals(3, dates.length);\n assertEquals(sdFormat.parse(\"2013-09-01\"), dates[0]);\n assertEquals(sdFormat.parse(\"2013-10-01\"), dates[1]);\n assertEquals(sdFormat.parse(\"2013-11-01\"), dates[2]);\n\n //***************************\n\n dataBuilder = new OutputChartDataBuilderBigDecimalTotal();\n dataBuilder.buildOutData(timeLine, \"/Bolig/VVS\", 2);\n\n values = (BigDecimal[][]) dataBuilder.getValues();\n categories = dataBuilder.getCategories();\n dates = dataBuilder.getDates();\n\n assertEquals(6, values.length);\n assertEquals(3, values[0].length);\n assertEquals(3, values[1].length);\n assertEquals(3, values[2].length);\n assertEquals(3, values[3].length);\n assertEquals(3, values[4].length);\n assertEquals(3, values[5].length);\n\n // BigDecimal zero = new BigDecimal(\"0.00\");\n assertEquals(new BigDecimal(\"-2000.00\"), values[0][0]);\n assertEquals(null, values[0][1]);\n assertEquals(null, values[0][2]);\n assertEquals(null, values[1][0]);\n assertEquals(new BigDecimal(\"-2000.00\"), values[1][1]);\n assertEquals(zero, values[1][2]);\n\n assertEquals(new BigDecimal(\"-700.00\"), values[2][0]);\n assertEquals(null, values[2][1]);\n assertEquals(null, values[2][2]);\n assertEquals(null, values[3][0]);\n assertEquals(new BigDecimal(\"-200.00\"), values[3][1]);\n assertEquals(new BigDecimal(\"-500.00\"), values[3][2]);\n\n assertEquals(new BigDecimal(\"-20.00\"), values[4][0]);\n assertEquals(null, values[4][1]);\n assertEquals(null, values[4][2]);\n assertEquals(null, values[5][0]);\n assertEquals(new BigDecimal(\"-20.00\"), values[5][1]);\n assertEquals(zero, values[5][2]);\n\n assertEquals(\"/Bolig/VVS\", categories[0][0]);\n assertEquals(\"/Bolig/VVS\", categories[0][1]);\n assertEquals(\"/Bolig/VVS\", categories[0][2]);\n assertEquals(null, categories[1][0]);\n assertEquals(\"Extra\", categories[1][1]);\n assertEquals(\"Check\", categories[1][2]);\n\n assertEquals(3, dates.length);\n assertEquals(sdFormat.parse(\"2013-09-01\"), dates[0]);\n assertEquals(sdFormat.parse(\"2013-10-01\"), dates[1]);\n assertEquals(sdFormat.parse(\"2013-11-01\"), dates[2]);\n //**************************************************\n dataBuilder = new OutputChartDataBuilderAccount();\n dataBuilder.buildOutData(timeLine, \"/Bolig/VVS\", 2);\n\n Account[][] accountValues = (Account[][]) dataBuilder.getValues();\n categories = dataBuilder.getCategories();\n dates = dataBuilder.getDates();\n\n assertEquals(6, accountValues.length);\n assertEquals(3, accountValues[0].length);\n assertEquals(3, accountValues[1].length);\n assertEquals(3, accountValues[2].length);\n assertEquals(3, accountValues[3].length);\n assertEquals(3, accountValues[4].length);\n assertEquals(3, accountValues[5].length);\n\n // BigDecimal zero = new BigDecimal(\"0.00\");\n assertEquals(new BigDecimal(\"-2000.00\"), accountValues[0][0].getExpensesTotal());\n assertEquals(null, accountValues[0][1]);\n assertEquals(null, accountValues[0][2]);\n assertEquals(null, accountValues[1][0]);\n assertEquals(new BigDecimal(\"-2000.00\"), accountValues[1][1].getExpensesTotal());\n assertEquals(zero, accountValues[1][2].getExpensesTotal());\n\n assertEquals(new BigDecimal(\"-700.00\"), accountValues[2][0].getExpensesTotal());\n assertEquals(null, accountValues[2][1]);\n assertEquals(null, accountValues[2][2]);\n assertEquals(null, accountValues[3][0]);\n assertEquals(new BigDecimal(\"-200.00\"), accountValues[3][1].getExpensesTotal());\n assertEquals(new BigDecimal(\"-500.00\"), accountValues[3][2].getExpensesTotal());\n\n assertEquals(new BigDecimal(\"-20.00\"), accountValues[4][0].getExpensesTotal());\n assertEquals(null, accountValues[4][1]);\n assertEquals(null, accountValues[4][2]);\n assertEquals(null, accountValues[5][0]);\n assertEquals(new BigDecimal(\"-20.00\"), accountValues[5][1].getExpensesTotal());\n assertEquals(zero, accountValues[5][2].getExpensesTotal());\n\n assertEquals(\"/Bolig/VVS\", categories[0][0]);\n assertEquals(\"/Bolig/VVS\", categories[0][1]);\n assertEquals(\"/Bolig/VVS\", categories[0][2]);\n assertEquals(null, categories[1][0]);\n assertEquals(\"Extra\", categories[1][1]);\n assertEquals(\"Check\", categories[1][2]);\n\n assertEquals(3, dates.length);\n assertEquals(sdFormat.parse(\"2013-09-01\"), dates[0]);\n assertEquals(sdFormat.parse(\"2013-10-01\"), dates[1]);\n assertEquals(sdFormat.parse(\"2013-11-01\"), dates[2]);\n\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n fail(e.getMessage());\n }\n\n }",
"@Test\n public void testReturningNull() throws Exception {\n try {\n runGroupComparator(\"LembosGroupComparatorTest-testReturningNull\", 1, 3);\n\n fail(\"The line above should had failed\");\n } catch (Exception e) {\n assertEquals(\"MapReduce function 'group' cannot return null/undefined\", e.getMessage());\n }\n }",
"@Test\n public void testReturningWrongType() throws Exception {\n try {\n runGroupComparator(\"LembosGroupComparatorTest-testReturningWrongType\", 1, 3);\n\n fail(\"The line above should had failed\");\n } catch (Exception e) {\n assertEquals(\"MapReduce function 'group' must return an integer\", e.getMessage());\n }\n }",
"@Test()\n\tpublic void groupSales_US440_TC3480() throws InterruptedException,\n\t\t\tRowsExceededException, BiffException, WriteException, IOException, ParseException {\n\t\t/** Variable Section : **/\n\t\tGroupSalesPage groupSalesPage;\n\t\tAbstractTest.tcName=\"groupSales_US440_TC3480\";\n\t\tString password = LoginTestData.level1_SSO_Password;\n\t\tString userId = LoginTestData.level1_SSO_UserId;\n\t\tString storeId = LoginTestData.level1StoreId;\n\t\tString orgName = \"TestAutomation\"+ String.valueOf(Base.generateNdigitRandomNumber(3));\n\t\tString taxId = String.valueOf(Base.generateNdigitRandomNumber(5));\n\t\tString contactName = \"TestUser\"+ String.valueOf(Base.generateNdigitRandomNumber(3));\n\t\tString addressLine1 = \"HclTechnologies\" +String.valueOf(Base.generateNdigitRandomNumber(3));\n\t\tString addressLine2 = \"HclTechnologies\"+ String.valueOf(Base.generateNdigitRandomNumber(3));\n\t\tString city = \"Noida\"+String.valueOf(Base.generateNdigitRandomNumber(3));\n\t\tString zip = String.valueOf(Base.generateNdigitRandomNumber(5));\n\t\tString email = \"[email protected]\";\n\t\tString phoneNumber = String.valueOf(Base.generateNdigitRandomNumber(10));\n\t\tString state = \"AK\";\n\t\t/***********************************/\n\t\tHomePage homePage = PageFactory.initElements(driver, HomePage.class);\n\t\t// Navigate to Group sales page\n\t\tgroupSalesPage = homePage.selectUserWithSSOLogin(userId, password).selectLocation(storeId)\n\t\t\t\t.goToGroupSalesPage();\n\t\t//Click on edit button for first validated record\n\t\tGenericMethods.clickOnElement(groupSalesPage.TextExemptSales_ValidatedRecord_Edit_BT, \"Validated Record Edit Button\");\n\t\twait.until(ExpectedConditions.visibilityOf(groupSalesPage.EditTaxExemptSales_PopUp_Header));\n\t\t//Edit all editable values in pop up and submit\n\t\tgroupSalesPage.editTaxExemptSalesRecord(orgName, taxId, contactName, addressLine1, addressLine2, city,state, zip, email, phoneNumber);\n\t\t//Verify that new Organozation name and Tax id is displayed in Tax exempt sales landing page\n\t\tif (groupSalesPage.verifyTaxExemptSalesDetailsUpdated(orgName, taxId)) {\n\t\t\tReporter.reportPassResult(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to edit and save values for manual entry fields in Tax Exempt Sales Page\",\n\t\t\t\t\t\"Pass\");\n\t\t\t\n\t\t} else {\n\t\t\tReporter.reportTestFailure(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to edit and save values for manual entry fields in Tax Exempt Sales Page\",\n\t\t\t\t\t\"Fail\");\n\t\t\tAbstractTest.takeSnapShot();\n\t\t}\n\t\t//Click on edit button for first validated record\n\t\tGenericMethods.clickOnElement(groupSalesPage.TextExemptSales_ValidatedRecord_Edit_BT, \"Validated Record Edit Button\");\n\t\twait.until(ExpectedConditions.visibilityOf(groupSalesPage.EditTaxExemptSales_PopUp_Header));\n\t\tSelect select = new Select(groupSalesPage.EditTaxExemptSalesPopUp_State_DD);\n\t\t//Verify that all values are updated\n\t\tif(groupSalesPage.EditTaxExemptSalesPopUp_OrganizationName_TB.getAttribute(\"value\").equals(orgName)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_TaxId_TB.getAttribute(\"value\").equals(taxId)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_ContactName_TB.getAttribute(\"value\").equals(contactName)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_AddressLine1_TB.getAttribute(\"value\").equals(addressLine1)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_AddressLine2_TB.getAttribute(\"value\").equals(addressLine2)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_City_TB.getAttribute(\"value\").equals(city)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_Email_TB.getAttribute(\"value\").equals(email)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_Zip_TB.getAttribute(\"value\").equals(zip)\n\t\t\t&& groupSalesPage.EditTaxExemptSalesPopUp_PhoneNumber_TB.getAttribute(\"value\").replaceAll(\"[^a-zA-Z0-9]\", \"\").equals(phoneNumber)\n\t\t\t&& select.getFirstSelectedOption().getAttribute(\"value\").equals(state)){\n\t\t\tReporter.reportPassResult(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view updated values in edit Tax Exempt Sales Pop Up\",\n\t\t\t\t\t\"Pass\");\n\t\t\t\n\t\t} else {\n\t\t\tReporter.reportTestFailure(\n\t\t\t\t\tbrowser,\n\t\t\t\t\t\"user should be able to view updated values in edit Tax Exempt Sales Pop Up\",\n\t\t\t\t\t\"Fail\");\n\t\t\tAbstractTest.takeSnapShot();\n\t\t\t}\n\t\t//Click on Submit Button\n\t\tGenericMethods.clickOnElement(groupSalesPage.EditTaxExemptSalesPopUp_Submit_BT, \"EditTaxExemptSalesPopUp_Submit_BT\");\n\t\twait.until(ExpectedConditions.visibilityOf(groupSalesPage.TaxExemptSales_SalesSaved_Confirmation_MSG));\n\t}",
"@Test public void testPositive() {\n\t\tassertEquals(expected, new AtMostOne(data).process(getClass()));\n\t}",
"@Test\n\tpublic void testQuery1() {\n\t}",
"@Test\n public void testGetFlightPathAnalisysResultsGroupedByAircraftType() {\n System.out.println(\"getFlightPathAnalisysResultsGroupedByAircraftType\");\n String aircrafType = \"A380\";\n ExportCSVController instance = this.instance;\n List<String> expResult = new LinkedList<>();\n List<String> result = instance.getFlightPathAnalisysResultsGroupedByAircraftType(aircrafType);\n assertEquals(expResult, result);\n \n }",
"@Test\r\n public void testOrderByGroup() throws Exception{\r\n \ttmpFile = File.createTempFile(\"test\", \"txt\");\r\n \tPrintStream ps = new PrintStream(new FileOutputStream(tmpFile));\r\n \tfor(int i = 0; i < 100; i++) {\r\n \t\tps.println(i);\r\n \t}\r\n \tps.close();\r\n \r\n \tpig.registerQuery(\"a = load 'file:\" + tmpFile +\"' as (f1:int);\");\r\n \tpig.registerQuery(\"b = group a by $0;\");\r\n \tpig.registerQuery(\"c = order b by group;\");\r\n \tIterator<Tuple> iter = pig.openIterator(\"c\");\r\n \tint count = 0;\r\n \twhile(iter.hasNext()){\r\n \t\tTuple tuple=iter.next();\r\n \t\tassertEquals(count, tuple.get(0));\r\n \t\tcount++;\r\n \t}\r\n \tassertEquals(count, 100);\r\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void billingCollectiveUptoAndAbove3Meters(){\n\tReport.createTestLogHeader(\"SubmitMeterRead\", \"Validates whether address displayed for particular meter is billing address for collective account for less than 3 meters\");\n\t SMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"MeterReadCollectiveAndElec\");\n\t new SubmitMeterReadAction()\n\t \t .BgbnavigateToLogin()\n\t .BgbloginDetails(smrProfile)\n\t .SubmitMeterreadManage(smrProfile)\n\t .smrCollectiveBilling(smrProfile);\n}",
"public boolean applyCommonGroupingMeasuringRule() {\n\t\t\n\t if(isApplicableSameGroupingMeasuringRule() == false) {\n\t \tSystem.out.println(\"ERROR: Failure to apply Same Grouping Rewriting Rule\");\n\t \treturn false;\n\t }\n\t \n\t\tthis.rset = new HashMap<Integer, Query>();\n\t\tthis.rtype = RType.SAME_GROUPING_MEASURING_RULE;\n\t\tthis.rqId = 1;\n\t \n\t\tGrouping gPart = this.qset.entrySet().iterator().next().getValue().getQueryTriple()._1();\n\t\tMeasuring mPart = this.qset.entrySet().iterator().next().getValue().getQueryTriple()._2();\n\t\t\n\t\tOperation opPart = new Operation();\n\t\tfor(Map.Entry<Integer, Query> entry2 : this.qset.entrySet()){\n\t\t\topPart.addOperation(entry2.getValue().getQueryTriple()._3());\n\t\t}\n\t\tTuple3<Grouping, Measuring, Operation> query = new Tuple3<>(gPart, mPart, opPart);\n\t\trset.put(rqId, new Query(query));\n\t\treturn true;\n\t}",
"@Test\r\n\tpublic void testExecuteQueryJaroStepOne() {\r\n\t\t// assume that inputs are valid.\r\n\t\t\r\n//\t\tString[] sup_out = {\"Alex\", \"Alexx\", \"Allexa\"};\r\n\t\tArrayList<String> test_out = Activity5Query.executeQueryJaroStepOne(\"Alex\", 1999, 0, 1, true);\r\n\t\tassertTrue(test_out.size() == 6);\r\n\t\t\t\t\r\n\t}",
"@Test\n\tpublic void testRadioGroup_2()\n\t\tthrows Exception {\n\t\tJSONObject jsonWrapperObj = new JSONObject();\n\n\t\tRadioGroup result = new RadioGroup(jsonWrapperObj);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.getOptions());\n\t\tassertEquals(null, result.getName());\n\t\tassertEquals(null, result.getId());\n\t}",
"@Test(priority=32)\n\tpublic void campaign_user_with_invalid_filter_operetor_for_camp_created() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_invalid_filter_operetor_for_camp_created\", \"To validate whether user is able to get campaign through campaign/user api with invalid filter operator for campaign_created\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\tString camp_created = campaign_created;\n\t\t\tString[] operators = {\"+\",\"!\",\"~\",\"#\",\"@\",\"$\",\"%\",\"^\",\"&\",\"*\",\"-\",\"/\",\":\"};\n\t\t\tString encoded_operator = \"\";\n\t\t\tfor(String operator:operators){\n\t\t\t\tencoded_operator = java.net.URLEncoder.encode(operator, \"UTF-8\");\n\t\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"campaign_created\"+encoded_operator+camp_created));\n\t\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_created\");\n\t\t\t\tSystem.out.println(\"Execute campaign/user api method with \"+ operator +\" filter operator for campaign_created\");\n\t\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\t\tString line = \"\";\n\t\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t\t // Convert response to JSON object\t\n\t\t\t\t JSONParser parser = new JSONParser();\n\t\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t\t String result_data = json.get(\"result\").toString(); \n\t\t\t\t Assert.assertEquals(result_data, \"error\", \"Invalid result value is in resonse\");\n\t\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t\t Assert.assertEquals(err_data, \"Unsupported comparator used in filter on rule 1 : campaign_created\"+operator+camp_created);\n\t\t\t\t test.log(LogStatus.PASS, \"Check whether proper validation message is displayed when \"+ operator +\" filter operator is used for campaign_created\");\n\t\t\t\t}\t \n\t\t\t}\t\n\t}",
"@Test\n public void test1() throws JsonProcessingException {\n JSONObject payload = getJsonObject(PAYLOAD_BASEPATH + \"saveEmployee.json\");\n\n payload.put(\"email\", RandomUtils.generateRandomString(5).concat(\"@gmail.com\"));\n payload.put(\"status\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value2\"));\n payload.put(\"name\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value3\"));\n payload.put(\"gender\", fetchDataFromDataFile(\"service1Data\", \"createUser\", \"Value4\"));\n\n log.info(\"api request is {} \", payload);\n Response response = given().headers(\"Authorization\", \"Bearer e85170d9b952bb8a12603f87d6c8f525946b4906c311b83eeec703bd0c1cbea0\").filter(new ErrorLoggingFilter(errorCapture)).contentType(ContentType.JSON).body(payload.toString()).log().everything().when().post(Constants.BASEPATH.concat(Constants.CREATE_USER));\n verifyStatusCode(response);\n verifyResponseBody(response, \"201\");\n// dbAssist.responseValidation(response);\n log.error(\"hey {} \", errorWriter.toString().toUpperCase());\n log.info(\"response is {}\", response.prettyPrint());\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testDemoDedupePotentialMatchSuccess() throws Exception {\n\t\tList<AbisResponseDto> abisResponseDtos = new ArrayList<>();\n\t\tAbisResponseDto abisResponseDto = new AbisResponseDto();\n\t\tabisResponseDto.setId(\"100\");\n\t\tabisResponseDto.setStatusCode(AbisStatusCode.SUCCESS.toString());\n\t\tabisResponseDto.setLangCode(\"eng\");\n\t\tabisResponseDtos.add(abisResponseDto);\n\n\t\tbyte[] b = \"sds\".getBytes();\n\t\tMockito.when(adapter.getFile(anyString(), anyString())).thenReturn(inputStream);\n\t\tPowerMockito.mockStatic(JsonUtil.class);\n\t\tPowerMockito.mockStatic(IOUtils.class);\n\t\tPowerMockito.when(JsonUtil.class, \"inputStreamtoJavaObject\", inputStream, PacketMetaInfo.class)\n\t\t.thenReturn(packetMetaInfo);\n\t\tPowerMockito.when(IOUtils.class, \"toByteArray\", inputStream).thenReturn(b);\n\t\tMockito.when(registrationStatusService.getRegistrationStatus(any())).thenReturn(registrationStatusDto);\n\t\tMockito.when(abisHandlerUtil.getPacketStatus(any())).thenReturn(AbisConstant.POST_ABIS_IDENTIFICATION);\n\t\tMockito.when(demoDedupe.performDedupe(anyString())).thenReturn(duplicateDtos);\n\t\tregistrationStatusDto.setRegistrationType(RegistrationType.NEW.toString());\n\t\tMockito.when(registrationStatusDao.findById(any())).thenReturn(entity);\n\t\tMockito.when(packetInfoManager.getAbisResponseRecords(anyString(), anyString())).thenReturn(abisResponseDtos);\n\t\tMessageDTO messageDto = demodedupeProcessor.process(dto, stageName);\n\n\t\tassertTrue(messageDto.getIsValid());\n\n\t}"
]
| [
"0.6771927",
"0.6771927",
"0.6351737",
"0.6351737",
"0.62701434",
"0.59905326",
"0.5943331",
"0.5815888",
"0.5806703",
"0.58038485",
"0.57393086",
"0.57390827",
"0.5707328",
"0.57000196",
"0.56810266",
"0.567936",
"0.5668471",
"0.5653256",
"0.56483024",
"0.5620981",
"0.5616524",
"0.5580547",
"0.55425584",
"0.5531403",
"0.5529215",
"0.5526666",
"0.5499006",
"0.5474148",
"0.5414419",
"0.5405437",
"0.54003257",
"0.53779703",
"0.5364378",
"0.5359582",
"0.5358929",
"0.53393996",
"0.5326779",
"0.5323493",
"0.5317345",
"0.52981067",
"0.5292652",
"0.52889013",
"0.5286068",
"0.52777183",
"0.5276965",
"0.52740604",
"0.52709943",
"0.5260728",
"0.5253765",
"0.525052",
"0.5243776",
"0.5232604",
"0.52312696",
"0.52303445",
"0.5229235",
"0.52255577",
"0.5220197",
"0.52032465",
"0.51994",
"0.51901466",
"0.5188314",
"0.5185452",
"0.518225",
"0.5175449",
"0.51717997",
"0.5171314",
"0.5164637",
"0.51643705",
"0.51643187",
"0.51547146",
"0.5149908",
"0.51497483",
"0.5143951",
"0.5139495",
"0.5139402",
"0.51349",
"0.5132482",
"0.5131137",
"0.51300126",
"0.51286674",
"0.51252514",
"0.51179594",
"0.51140547",
"0.51044",
"0.5100321",
"0.51003027",
"0.5094627",
"0.5094123",
"0.5086737",
"0.50865793",
"0.50844365",
"0.5081735",
"0.50790167",
"0.5077585",
"0.50702184",
"0.5068787",
"0.5064791",
"0.50647384",
"0.5063389",
"0.50603014"
]
| 0.62425476 | 5 |
TODO Autogenerated method stub | @Override
public void execute() throws Exception {
System.out.println(" The generated values here==="+getView().getValues());
System.out.println(" The User value here==="+getView().getValue("user"));
String userName = getView().getValueString("user");
if(Is.emptyString(userName)){
addWarning("Enter Your Username ", null);
return;
}
User user = User.find(userName);
if(user==null){
addError("Username not found", null);
return;
}
String password = RandomStringUtils.randomAlphanumeric(15);
user.setPassword(password);
user.setFirstLogin(false);
System.out.println(" The New password =="+ password);
XPersistence.getManager().merge(user);
SystemWideSetup.sendMail( user.getEmail(), "User Credentials", " Your New Password Generated is: " + password);
addMessage("Your New Password Has been forwarded to your Mail ", null);
} | {
"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 |
public methods Gets a list of paths for the specified artifacts. | public static List<String> getClasspathElements( MavenProject project, List<Artifact> artifacts )
throws DependencyResolutionRequiredException
{
// based on MavenProject.getCompileClasspathElements
List<String> list = new ArrayList<String>( artifacts.size() );
for ( Artifact artifact : artifacts )
{
if ( artifact.getArtifactHandler().isAddedToClasspath() )
{
// TODO: let the scope handler deal with this
if ( Artifact.SCOPE_COMPILE.equals( artifact.getScope() )
|| Artifact.SCOPE_RUNTIME.equals( artifact.getScope() ) )
{
addArtifactPath( project, artifact, list );
}
}
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<java.lang.String>\n getPathsList();",
"public abstract List<AbstractDeploymentArtifact> getDeploymentArtifacts();",
"public List<Path> getAllPaths();",
"List<String> getListPaths();",
"public static String getDependencies( final Set artifacts, final List pluginArtifacts )\n {\n\n if ( ( artifacts == null || artifacts.isEmpty() ) &&\n ( pluginArtifacts == null || pluginArtifacts.size() == 0 ) )\n {\n return \"\";\n }\n // Loop over all the artifacts and create a classpath string.\n final Iterator iter = artifacts.iterator();\n\n final StringBuffer buffer = new StringBuffer( 1024 );\n if ( iter.hasNext() )\n {\n Artifact artifact = (Artifact) iter.next();\n buffer.append( artifact.getFile() );\n\n while ( iter.hasNext() )\n {\n artifact = (Artifact) iter.next();\n buffer.append( System.getProperty( \"path.separator\" ) );\n buffer.append( artifact.getFile() );\n }\n }\n //now get the plugin artifacts into the list\n final Iterator pluginIter = pluginArtifacts.iterator();\n if ( pluginIter.hasNext() )\n {\n Artifact artifact = (Artifact) pluginIter.next();\n if ( buffer.length() > 0 )\n {\n buffer.append( System.getProperty( \"path.separator\" ) );\n }\n buffer.append( artifact.getFile() );\n\n while ( pluginIter.hasNext() )\n {\n artifact = (Artifact) pluginIter.next();\n buffer.append( System.getProperty( \"path.separator\" ) );\n buffer.append( artifact.getFile() );\n }\n }\n\n return buffer.toString();\n }",
"public List<String> getPaths() {\n List<String> result;\n synchronized (this.paths) {\n result = this.paths;\n }\n return result;\n }",
"public static String getDependencies( final Set inArtifacts )\n {\n\n if ( inArtifacts == null || inArtifacts.isEmpty() )\n {\n return \"\";\n }\n // Loop over all the artifacts and create a classpath string.\n Iterator iter = inArtifacts.iterator();\n\n StringBuffer buffer = new StringBuffer();\n if ( iter.hasNext() )\n {\n Artifact artifact = (Artifact) iter.next();\n buffer.append( artifact.getFile() );\n\n while ( iter.hasNext() )\n {\n artifact = (Artifact) iter.next();\n buffer.append( System.getProperty( \"path.separator\" ) );\n buffer.append( artifact.getFile() );\n }\n }\n\n return buffer.toString();\n }",
"List<Path> getFiles();",
"Set<Path> getDependencies();",
"public List<ApplicationArtifact> artifacts() {\n return this.artifacts;\n }",
"public List<ApexPath> getPaths() {\n TestUtil.Config config = TestUtil.Config.Builder.get(g, sourceCode).build();\n return TestUtil.getApexPaths(config, apexPathExpanderConfig, methodName);\n }",
"public Path[] getPaths()\r\n\t{\r\n\t return paths;\r\n\t}",
"public List<Path> getPaths() {\n return _thePaths;\n }",
"private Path[] getPathArray(List<String> commandLineArgs) {\n int numOfFiles = commandLineArgs.size();\n Path[] filePathArray = new Path[numOfFiles];\n Path currentDir = Paths.get(Jsh.getCurrentDirectory());\n for (int i = 0; i < numOfFiles; i++) {\n filePathArray[i] = currentDir.resolve(commandLineArgs.get(i));\n }\n return filePathArray;\n }",
"public IArtifactKey[] getArtifactKeys() {\n \t\tHashSet result = new HashSet(artifactDescriptors.size());\n \t\tfor (Iterator it = artifactDescriptors.iterator(); it.hasNext();)\n \t\t\tresult.add(((IArtifactDescriptor) it.next()).getArtifactKey());\n \t\treturn (IArtifactKey[]) result.toArray(new IArtifactKey[result.size()]);\n \t}",
"public abstract List<String> path();",
"public Collection<String> getPaths() {\n // Only return paths of valid configurations\n Set<String> paths = new HashSet<String>();\n for (Map.Entry<String, CachedConfig> entry : confs.entrySet()) {\n if (entry.getValue().state == ConfigState.OK) {\n paths.add(entry.getKey());\n }\n }\n return paths;\n }",
"public List<String> paths(String path) throws SystemException;",
"List<IDirectory> getSourcePath();",
"public ArrayList<path> getPaths(){\r\n return paths;\r\n }",
"List<Artifact> getSelectedArtifacts() {\n final int[] indices = getSelectedIndices();\n final List<Artifact> artifacts = new ArrayList<Artifact>(indices.length);\n\n for (final int index : indices) {\n artifacts.add((Artifact)getModel().getElementAt(index));\n }\n\n return artifacts;\n }",
"abstract public List<S> getPath();",
"public URL[] getJARs() throws MalformedURLException {\n return (urlsFromJARs(getJARNames()));\n }",
"List<Artifact> getSelectedArtifacts() {\n final TreePath[] selectedObjects = getSelectionPaths();\n final List<Artifact> selected = new ArrayList<Artifact>(selectedObjects.length);\n\n for (final TreePath path : selectedObjects) {\n final DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();\n final Artifact artifact = (Artifact)node.getUserObject();\n if (GROUP_AID.equals(artifact.getArtifactId())) {\n final Enumeration children = node.children();\n while (children.hasMoreElements()) {\n final DefaultMutableTreeNode child = (DefaultMutableTreeNode)children.nextElement();\n final Artifact childArtifact = (Artifact)child.getUserObject();\n if (!selected.contains(childArtifact)) {\n selected.add(childArtifact);\n }\n }\n } else {\n if (!selected.contains(artifact)) {\n selected.add(artifact);\n }\n }\n }\n\n return selected;\n }",
"public java.util.List getImportedJarPaths() {\n \t\treturn importedJarPaths;\n \t}",
"public List<Transform> getPath() {\n return Collections.unmodifiableList(new ArrayList<>(mPath));\n }",
"public abstract URI[] getKnownRepositories();",
"public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}",
"public List<Resource> getFileLocations() throws IOException;",
"java.util.List<java.lang.String>\n getClasspathList();",
"public abstract NestedSet<Artifact> getTransitiveJackClasspathLibraries();",
"public List<Artifact> getDependenciesFor( Artifact artifact ) throws MojoExecutionException\n {\n final List<Artifact> results = new ArrayList<Artifact>();\n\n final org.eclipse.aether.artifact.Artifact artifactToResolve =\n new DefaultArtifact(\n artifact.getGroupId(),\n artifact.getArtifactId(),\n artifact.getType(),\n artifact.getVersion()\n );\n\n final List<Dependency> transitiveDeps = getDependenciesFor( artifactToResolve );\n for ( Dependency dependency : transitiveDeps )\n {\n final Artifact artifactDep = new org.apache.maven.artifact.DefaultArtifact(\n dependency.getArtifact().getGroupId(),\n dependency.getArtifact().getArtifactId(),\n dependency.getArtifact().getVersion(),\n dependency.getScope(),\n dependency.getArtifact().getExtension(),\n dependency.getArtifact().getClassifier(),\n artifactHandler\n );\n results.add( artifactDep );\n }\n\n return results;\n }",
"List<String> getFiles(String path) throws IOException;",
"java.util.List<java.lang.String>\n getClasspathList();",
"private List<Dependency> getDependenciesFor( org.eclipse.aether.artifact.Artifact artifact )\n throws MojoExecutionException\n {\n final List<Dependency> results = new ArrayList<Dependency>();\n\n final ArtifactDescriptorRequest descriptorRequest = new ArtifactDescriptorRequest();\n descriptorRequest.setArtifact( artifact );\n descriptorRequest.setRepositories( remoteRepos );\n\n final ArtifactDescriptorResult descriptorResult;\n try\n {\n descriptorResult = repoSystem.readArtifactDescriptor( repoSession, descriptorRequest );\n }\n catch ( ArtifactDescriptorException e )\n {\n throw new MojoExecutionException( \"Could not resolve dependencies for \" + artifact, e );\n }\n\n for ( Dependency dependency : descriptorResult.getDependencies() )\n {\n log.debug( \"Found dependency: \" + dependency );\n final String extension = dependency.getArtifact().getExtension();\n if ( extension.equals( APKLIB ) || extension.equals( AAR ) || extension.equals( APK ) )\n {\n results.add( dependency );\n results.addAll( getDependenciesFor( dependency.getArtifact() ) );\n }\n }\n\n return results;\n }",
"private static void addArtifactPath( MavenProject project, Artifact artifact, List<String> list )\n throws DependencyResolutionRequiredException\n {\n String refId = getProjectReferenceId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() );\n MavenProject refProject = (MavenProject) project.getProjectReferences().get( refId );\n\n boolean projectDirFound = false;\n if ( refProject != null )\n {\n if ( artifact.getType().equals( \"test-jar\" ) )\n {\n File testOutputDir = new File( refProject.getBuild().getTestOutputDirectory() );\n if ( testOutputDir.exists() )\n {\n list.add( testOutputDir.getAbsolutePath() );\n projectDirFound = true;\n }\n }\n else\n {\n list.add( refProject.getBuild().getOutputDirectory() );\n projectDirFound = true;\n }\n }\n if ( !projectDirFound )\n {\n File file = artifact.getFile();\n if ( file == null )\n {\n throw new DependencyResolutionRequiredException( artifact );\n }\n list.add( file.getPath() );\n }\n }",
"protected Set getDependencies()\n throws MojoExecutionException\n {\n MavenProject project = getExecutedProject();\n\n Set dependenciesSet = new HashSet();\n\n if ( project.getArtifact() != null && project.getArtifact().getFile() != null )\n {\n dependenciesSet.add( project.getArtifact() );\n }\n\n Set projectArtifacts = project.getArtifacts();\n if ( projectArtifacts != null )\n {\n dependenciesSet.addAll( projectArtifacts );\n }\n\n return dependenciesSet;\n }",
"public List<String> getDownloadableFiles() throws IOException {\n List<String> fileNameList = new ArrayList<>();\n Files.walk(Paths.get(this.sharedFolder)).forEach(ruta -> {\n if (Files.isRegularFile(ruta)) {\n fileNameList.add(ruta.getFileName().toString());\n }\n });\n return fileNameList;\n }",
"public AtomicVertex[] getPaths()\n {\n return _paths;\n }",
"public abstract List<String> getDirs( );",
"private ArrayList<String> getImagesPathList() {\n String MEDIA_IMAGES_PATH = \"CuraContents/images\";\n File fileImages = new File(Environment.getExternalStorageDirectory(), MEDIA_IMAGES_PATH);\n if (fileImages.isDirectory()) {\n File[] listImagesFile = fileImages.listFiles();\n ArrayList<String> imageFilesPathList = new ArrayList<>();\n for (File file1 : listImagesFile) {\n imageFilesPathList.add(file1.getAbsolutePath());\n }\n return imageFilesPathList;\n }\n return null;\n }",
"public List<String> getFiles();",
"public Set<String> getContainerPaths() {\n\t\t// todo: instead of returning a set here, perhaps\n\t\t// we can return Iterator<String>\n\t\tSet<String> containerSet = new HashSet<String>();\n\t\tif (containers != null) {\n\t\t\tfor (ChildData child : containers.getCurrentData()) {\n\t\t\t\tcontainerSet.add(child.getPath());\n\t\t\t}\n\t\t}\n\t\treturn Collections.unmodifiableSet(containerSet);\n\t}",
"List<BinaryArtifact> getArtifacts(String instanceUrl, String repoName, long lastUpdated);",
"protected List getDependenciesIncludeList()\n throws MojoExecutionException\n {\n List includes = new ArrayList();\n\n for ( Iterator i = getDependencies().iterator(); i.hasNext(); )\n {\n Artifact a = (Artifact) i.next();\n\n if ( project.getGroupId().equals( a.getGroupId() ) && project.getArtifactId().equals( a.getArtifactId() ))\n {\n continue;\n }\n\n includes.add( a.getGroupId() + \":\" + a.getArtifactId() );\n }\n\n return includes;\n }",
"java.util.List<com.google.devtools.kythe.proto.Java.JarDetails.Jar> \n getJarList();",
"public String[] getFinalPaths(Map<String, String> pathParams) {\n\n List<RestPath> matchingRestPaths = findMatchingRestPaths(pathParams.keySet());\n if (matchingRestPaths == null || matchingRestPaths.isEmpty()) {\n throw new IllegalArgumentException(\"unable to find matching rest path for api [\" + name + \"] and params \" + pathParams);\n }\n\n String[] paths = new String[matchingRestPaths.size()];\n for (int i = 0; i < matchingRestPaths.size(); i++) {\n RestPath restPath = matchingRestPaths.get(i);\n String path = restPath.path;\n for (Map.Entry<String, String> paramEntry : restPath.params.entrySet()) {\n // replace path placeholders with actual values\n String value = pathParams.get(paramEntry.getValue());\n if (value == null) {\n throw new IllegalArgumentException(\"parameter [\" + paramEntry.getValue() + \"] missing\");\n }\n path = path.replace(paramEntry.getKey(), value);\n }\n paths[i] = path;\n }\n return paths;\n }",
"public abstract List<String> getFiles( );",
"java.util.List<java.lang.String>\n getSourcepathList();",
"java.util.List<java.lang.String>\n getSourcepathList();",
"List<String> getConfigFilePaths();",
"public List<Path> toAbsPaths(Collection<Path> tipPaths) {\n\t\tList<Path> result = tipPaths.stream().map(this::tipPathToAbsPath).collect(Collectors.toList());\n\t\treturn result;\n\t}",
"public abstract List<String> getControlledPaths();",
"@Override\n\tpublic String[] query() {\n\t\t// Return an array of (decoded) filenames\n\t\tif (!serviceDir.exists()) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tFile[] files = serviceDir.listFiles();\n\t\tString[] addrs = new String[files.length];\n\t\tfor (int i = 0; i < addrs.length; ++i) {\n\t\t\taddrs[i] = decode(files[i].getName());\n\t\t}\n\t\treturn addrs;\n\t}",
"private ArrayList<String> getJARList() {\n String[] jars = getJARNames();\n return new ArrayList<>(Arrays.asList(jars));\n }",
"private String[] addJarsInPath(List<String> paths) {\r\n\t\tSet fullList = new HashSet();\r\n\t\tfor (String path : paths) {\r\n\t\t\tfullList.add(path);\r\n\t\t\tif (!path.endsWith(\".jar\")) {\r\n\t\t\t\tFile dir = new File(path);\r\n\t\t\t\tif (dir.exists() && dir.isDirectory()) {\r\n\t\t\t\t\tString[] jars = dir.list(new FilenameFilter() {\r\n\t\t\t\t\t\tpublic boolean accept(File f, String name) {\r\n\t\t\t\t\t\t\tif (name.endsWith(\".jar\")) {\r\n\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\tfor (int x = 0; x < jars.length; x++) {\r\n\t\t\t\t\t\tfullList.add(jars[x]);\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 (String[]) fullList.toArray(new String[0]);\r\n\t}",
"public String pathList()\n {\n StringBuilder pathString = new StringBuilder();\n for (Location accessibleLocation : accessibleLocations) {\n pathString.append(accessibleLocation.getName()).append(\"\\n\");\n }\n return pathString.toString();\n }",
"public abstract ScaledPathArray getPathList();",
"public abstract NestedSet<Artifact> getTransitiveJackLibrariesToLink();",
"List<String> getApplicationContextResourcePaths();",
"public ArrayList<Integer> getPaths() {\n\t\treturn paths;\n\t}",
"public List<String> getListFilePath() throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT filepath FROM \" + management + \" WHERE step =4 GROUP BY filepath ORDER BY filepath\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListFilePath : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}",
"java.lang.String getPaths(int index);",
"public String[] getResolvedDependencies();",
"public NestedSet<Artifact> getInstrumentedFiles() {\n return instrumentedFiles;\n }",
"public ArrayList<String> getPath() {\n return list;\n }",
"public IPath[] getAdditionalDependencies();",
"private List<File> getSearchFiles() {\n\t\tif (searchDirs == null || searchDirs.size() <= 0) {\n\n\t\t\tsearchDirs = new ArrayList<File>();\n\t\t\t\n\t\t\tsearchDirs.add(StorageUtils.getLocalCacheDir(this));\n//\t\t\tsearchDirs.add(StorageUtils.getExternalCacheDir(this));\n\t\t\tsearchDirs.add(StorageUtils.getFavorDir(this));\n\t\t}\n\t\treturn searchDirs;\n\t}",
"public List<String> getManagedRepositoriesPaths(SecurityContext ctx, ImageData img) throws DSOutOfServiceException, DSAccessException {\n try {\n FilesetData fs = loadFileset(ctx, img);\n if (fs != null)\n return fs.getAbsolutePaths();\n } catch (Throwable t) {\n handleException(this, t, \"Could not get the file paths.\");\n }\n return Collections.emptyList();\n }",
"private static List<OBREntry> getUsedOBRArtifacts(ArtifactRepository artifactRepository, URL obrBaseUrl) throws IOException {\n final String baseURL = obrBaseUrl.toExternalForm();\n\n List<OBREntry> fromRepository = new ArrayList<>();\n\n List<ArtifactObject> artifactObjects = artifactRepository.get();\n artifactObjects.addAll(artifactRepository.getResourceProcessors());\n\n for (ArtifactObject ao : artifactObjects) {\n String artifactURL = ao.getURL();\n if ((artifactURL != null) /*&& artifactURL.startsWith(baseURL)*/) {\n // we now know this artifact comes from the OBR we are querying,\n // so we are interested.\n fromRepository.add(convertToOBREntry(ao, baseURL));\n }\n }\n return fromRepository;\n }",
"protected String[] getPaths(String[] args, Job job) {\n\t\tString[] paths = new String[2];\n\t\tpaths[0] = args[0];\n\t\tpaths[1] = args[1];\n\t\treturn paths;\n\t}",
"public File[] elements() {\n File plik = new File(katalog);\n katalog = plik.getAbsolutePath();\n if (katalog.endsWith(\".\")) {\n katalog = katalog.substring(0, katalog.length() - 1);\n }\n return plik.listFiles();\n }",
"Set<URI> fetchAllUris(ServicePath service);",
"FileSystem getArtifacts(final HudsonJobBuild build) {\n return getFileSystemFromCache(artifacts, build.getJob().getName() + \"/\" + build.getNumber(), new Callable<RemoteFileSystem>() { // NOI18N\n @Override public RemoteFileSystem call() throws Exception {\n return builderConnector.getArtifacts(build);\n }\n });\n }",
"public ArrayList<ArrayList<String>> getPathList() {\r\n\t\treturn pathList;\r\n\t}",
"@Override\n\t\tpublic List<String> getPathTo(InJarResourceImpl resource) {\n\t\t\t// TODO FD4SG la ligne ci-dessous est vraiment bizarre (getChildren renvoie une liste de RepositoryFolder alors que resource est\n\t\t\t// une ressource\n\t\t\tif (!getRootFolder().getChildren().contains(resource)) {\n\t\t\t\tList<String> pathTo = new ArrayList<>();\n\t\t\t\tStringTokenizer string = new StringTokenizer(/*resource.getURI()*/resource.getEntry().getName(),\n\t\t\t\t\t\tCharacter.toString(ClasspathResourceLocatorImpl.PATH_SEP.toCharArray()[0]));\n\t\t\t\twhile (string.hasMoreTokens()) {\n\t\t\t\t\tString next = string.nextToken();\n\t\t\t\t\tif (string.hasMoreTokens()) {\n\t\t\t\t\t\tpathTo.add(next);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn pathTo;\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public java.lang.String getPaths(int index) {\n return paths_.get(index);\n }",
"public interface IRepositoryService {\n\n /**\n * Returns the path to an artifact with the given identifier.\n *\n * @param identifier artifact identifier\n * @return the path to an artifact with the given identifier.\n */\n Path getArtifact(String identifier);\n\n /**\n * Returns the set of paths to the artifacts that the artifact with the given identifier depends on. If the given\n * artifact has no dependencies, returns an empty set.\n *\n * @param identifier artifact identifier\n * @param transitive if {@code false}, returns the immediate dependencies of the artifact; otherwise, returns all\n * dependencies, including dependencies of dependencies\n * @return the set of paths to the dependent artifacts\n */\n Set<Path> getArtifactDependencies(String identifier, boolean transitive);\n\n}",
"public java.lang.String getPaths(int index) {\n return paths_.get(index);\n }",
"public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }",
"java.lang.String getArtifactUrl();",
"public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"public com.google.protobuf.ProtocolStringList\n getPathsList() {\n return paths_;\n }",
"@Override\r\n\tpublic String[] listFolders() throws FileSystemUtilException {\r\n\t\t// getting all the files and folders in the given file path\r\n\t\tString[] files = listFiles();\r\n\t\tList foldersList = new ArrayList();\r\n\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t// all the folder are ends with '/'\r\n\t\t\tif (files[i].endsWith(\"/\") && isValidString(files[i])) {\r\n\t\t\t\tfoldersList.add(files[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] folders = new String[foldersList.size()];\r\n\t\t// getting only folders from returned array of files and folders\r\n\t\tfor (int i = 0; i < foldersList.size(); i++) {\r\n\t\t\tfolders[i] = foldersList.get(i).toString();\r\n\t\t}\r\n\t\treturn folders;\r\n\r\n\t}",
"java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();",
"ArtifactSet resolveLocalArtifacts(LocalFileDependencyMetadata fileDependencyMetadata);",
"private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }",
"@Override\n public List<BazelPublishArtifact> getBazelArtifacts(AspectRunner aspectRunner, Project project, Task bazelExecTask) {\n final File outputArtifactFolder = super.getBazelArtifacts(aspectRunner, project, bazelExecTask).get(0).getFile().getParentFile();\n final File aarOutputFile = new File(outputArtifactFolder, mConfig.targetName + \".aar\");\n return Collections.singletonList(new BazelPublishArtifact(bazelExecTask, aarOutputFile));\n }",
"public List<String> blobPathList() {\n return this.blobPathList;\n }",
"private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}",
"static List getCommonClasspath(BaseManager mgr) throws IOException {\n\n InstanceEnvironment env = mgr.getInstanceEnvironment();\n String dir = env.getLibClassesPath();\n String jarDir = env.getLibPath();\n\n return ClassLoaderUtils.getUrlList(new File[] {new File(dir)}, \n new File[] {new File(jarDir)});\n }",
"public com.google.protobuf.ProtocolStringList\n getPathsList() {\n return paths_.getUnmodifiableView();\n }",
"private ArrayList<String> getTrackPathList() {\n String MEDIA_TRACKS_PATH = \"CuraContents/tracks\";\n File fileTracks = new File(Environment.getExternalStorageDirectory(), MEDIA_TRACKS_PATH);\n if (fileTracks.isDirectory()) {\n File[] listTracksFile = fileTracks.listFiles();\n ArrayList<String> trackFilesPathList = new ArrayList<>();\n for (File file1 : listTracksFile) {\n trackFilesPathList.add(file1.getAbsolutePath());\n }\n return trackFilesPathList;\n }\n return null;\n }",
"com.google.protobuf.ByteString\n getArtifactUrlBytes();",
"public Double[][] getPaths(){\n return paths;\n }",
"List<ArtifactoryRepo> getRepos(String instanceUrl);",
"FileSystem getArtifacts(final HudsonMavenModuleBuild module) {\n return getFileSystemFromCache(artifacts, module.getBuild().getJob().getName() + \"/\" + // NOI18N\n module.getBuild().getNumber() + \"/\" + module.getName(), // NOI18N\n new Callable<RemoteFileSystem>() {\n @Override public RemoteFileSystem call() throws Exception {\n return builderConnector.getArtifacts(module);\n }\n });\n }",
"public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }",
"public String[] getImagePaths() {\n return new String[]{\"/RpgIcons/fire.png\",\n \"/RpgIcons/water.png\",\n \"/RpgIcons/wind.png\",\n \"/RpgIcons/earth.png\",\n \"/RpgIcons/light.png\",\n \"/RpgIcons/dark.png\",\n \"/RpgIcons/lightning.png\"};\n }"
]
| [
"0.63900185",
"0.63663286",
"0.6334223",
"0.63266057",
"0.63008124",
"0.6259017",
"0.62061584",
"0.6105689",
"0.61031497",
"0.6084261",
"0.6083391",
"0.5873731",
"0.5857256",
"0.5790736",
"0.57735014",
"0.57725626",
"0.5759418",
"0.5755449",
"0.5713303",
"0.5663348",
"0.5656396",
"0.5630761",
"0.5616352",
"0.5609923",
"0.5588643",
"0.5546948",
"0.55301744",
"0.5510013",
"0.5484542",
"0.5481792",
"0.5480615",
"0.5474916",
"0.5465635",
"0.54641193",
"0.5463914",
"0.54492164",
"0.5429716",
"0.5425468",
"0.5425383",
"0.5393474",
"0.53921723",
"0.5386266",
"0.5383179",
"0.53615344",
"0.5347707",
"0.5346707",
"0.5334909",
"0.53198624",
"0.5307182",
"0.5302425",
"0.5293109",
"0.5289282",
"0.528487",
"0.5280972",
"0.52723044",
"0.5262298",
"0.5259746",
"0.52188647",
"0.5214462",
"0.5214299",
"0.5195729",
"0.51829773",
"0.5176587",
"0.5174313",
"0.5173616",
"0.5172001",
"0.51714814",
"0.51702666",
"0.51489985",
"0.51431817",
"0.5141935",
"0.5139721",
"0.5130108",
"0.512829",
"0.5117489",
"0.51137996",
"0.50988364",
"0.5079436",
"0.5077716",
"0.5076598",
"0.5074156",
"0.5073893",
"0.5066134",
"0.50617427",
"0.5040359",
"0.50350213",
"0.5032966",
"0.5032743",
"0.5026663",
"0.5014905",
"0.50002134",
"0.49975553",
"0.49939188",
"0.4993836",
"0.49922478",
"0.49906254",
"0.49865937",
"0.49860597",
"0.49780464",
"0.49716324"
]
| 0.6123888 | 7 |
private methods copied from MavenProject.addArtifactPath | private static void addArtifactPath( MavenProject project, Artifact artifact, List<String> list )
throws DependencyResolutionRequiredException
{
String refId = getProjectReferenceId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() );
MavenProject refProject = (MavenProject) project.getProjectReferences().get( refId );
boolean projectDirFound = false;
if ( refProject != null )
{
if ( artifact.getType().equals( "test-jar" ) )
{
File testOutputDir = new File( refProject.getBuild().getTestOutputDirectory() );
if ( testOutputDir.exists() )
{
list.add( testOutputDir.getAbsolutePath() );
projectDirFound = true;
}
}
else
{
list.add( refProject.getBuild().getOutputDirectory() );
projectDirFound = true;
}
}
if ( !projectDirFound )
{
File file = artifact.getFile();
if ( file == null )
{
throw new DependencyResolutionRequiredException( artifact );
}
list.add( file.getPath() );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getProjectPath() {\r\n \treturn String.format(\":%s\", getArtifactId());\r\n }",
"protected abstract Artifact getArtifact(BuildContext buildContext) throws BuildStepException;",
"java.lang.String getArtifactUrl();",
"Path getArtifact(String identifier);",
"private List<String> copyDependencies(File javaDirectory) throws MojoExecutionException {\n ArtifactRepositoryLayout layout = new DefaultRepositoryLayout();\n\n List<String> list = new ArrayList<String>();\n\n // First, copy the project's own artifact\n File artifactFile = project.getArtifact().getFile();\n list.add(layout.pathOf(project.getArtifact()));\n\n try {\n FileUtils.copyFile(artifactFile, new File(javaDirectory, layout.pathOf(project.getArtifact())));\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could not copy artifact file \" + artifactFile + \" to \" + javaDirectory, ex);\n }\n\n if (excludeDependencies) {\n // skip adding dependencies from project.getArtifacts()\n return list;\n }\n\n for (Artifact artifact : project.getArtifacts()) {\n File file = artifact.getFile();\n File dest = new File(javaDirectory, layout.pathOf(artifact));\n\n getLog().debug(\"Adding \" + file);\n\n try {\n FileUtils.copyFile(file, dest);\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying file \" + file + \" into \" + javaDirectory, ex);\n }\n\n list.add(layout.pathOf(artifact));\n }\n\n return list;\n }",
"java.lang.String getArtifactId();",
"@Override\n public List<BazelPublishArtifact> getBazelArtifacts(AspectRunner aspectRunner, Project project, Task bazelExecTask) {\n final File outputArtifactFolder = super.getBazelArtifacts(aspectRunner, project, bazelExecTask).get(0).getFile().getParentFile();\n final File aarOutputFile = new File(outputArtifactFolder, mConfig.targetName + \".aar\");\n return Collections.singletonList(new BazelPublishArtifact(bazelExecTask, aarOutputFile));\n }",
"String getArtifactId();",
"private void installArtifact(Artifact artifact, ProjectBuildingRequest buildingRequest) {\r\n\t\ttry {\r\n\t\t\tinstaller.install(buildingRequest, Collections.singletonList(artifact));\r\n\t\t\tinstallBaseSnapshot(artifact, buildingRequest);\r\n\r\n\t\t\tif (!\"pom\".equals(artifact.getType()) && isCopyPom()) {\r\n\t\t\t\tArtifact pomArtifact = getResolvedPomArtifact(artifact);\r\n\t\t\t\tif (pomArtifact != null && pomArtifact.getFile() != null && pomArtifact.getFile().exists()) {\r\n\t\t\t\t\tinstaller.install(buildingRequest, Collections.singletonList(pomArtifact));\r\n\t\t\t\t\tinstallBaseSnapshot(pomArtifact, buildingRequest);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ArtifactInstallerException e) {\r\n\t\t\tgetLog().warn(\"unable to install \" + artifact, e);\r\n\t\t}\r\n\t}",
"ArtifactSet resolveLocalArtifacts(LocalFileDependencyMetadata fileDependencyMetadata);",
"public void addArtifact(ArtifactModel artifact);",
"protected void copyArtifact(Artifact artifact, boolean removeVersion, boolean prependGroupId,\r\n\t\t\tboolean useBaseVersion, boolean removeClassifier) throws MojoExecutionException {\r\n\r\n\t\tString destFileName = DependencyUtil.getFormattedFileName(artifact, removeVersion, prependGroupId,\r\n\t\t\t\tuseBaseVersion, removeClassifier);\r\n\r\n\t\tFile destDir;\r\n\t\tdestDir = DependencyUtil.getFormattedOutputDirectory(useSubDirectoryPerScope, useSubDirectoryPerType,\r\n\t\t\t\tuseSubDirectoryPerArtifact, useRepositoryLayout, stripVersion, outputDirectory, artifact);\r\n\t\tFile destFile = new File(destDir, destFileName);\r\n\r\n\t\tcopyFile(artifact.getFile(), destFile);\r\n\t}",
"Digital_Artifact createDigital_Artifact();",
"public void execute() throws MojoExecutionException {\n Build build = project.getBuild();\n String finalName = build.getFinalName();\n String buildDirectory = build.getDirectory();\n String packaging = project.getPackaging();\n getLog().info(\"Build final name: \" + finalName);\n getLog().info(\"Build output directory: \" + buildDirectory);\n getLog().info(\"Project packaging: \" + packaging);\n\n if (\"maven-plugin\".equals(packaging)) {\n getLog().info(\"maven-plugin packaging detected. Using jar file suffix.\");\n packaging = \"jar\";\n }\n\n File expectedFile;\n\n if (\"pom\".equals(packaging)) {\n getLog().info(\"pom packaging detected. Attaching pom only.\");\n expectedFile = project.getFile();\n } else {\n // Pom is attached as well here, no need to attach it\n expectedFile = new File(String.format(\"%s/%s.%s\", buildDirectory, finalName, packaging));\n }\n\n if (!expectedFile.exists()) {\n throw new MojoExecutionException(\"Error attaching artifact. Artifact does not exist.\");\n }\n\n project.getArtifact().setFile(expectedFile);\n\n }",
"private void addProjectPath(final Path path) {\n addToClassPool(path);\n\n if (path.toFile().isFile() && path.toString().endsWith(\".jar\")) {\n addJarClasses(path);\n } else if (path.toFile().isDirectory()) {\n addDirectoryClasses(path, Paths.get(\"\"));\n } else {\n throw new IllegalArgumentException(\"The project path '\" + path + \"' must be a jar file or a directory\");\n }\n }",
"protected Artifact getProjectArtifact(String projectName, Version dbVersion) {\n ProjectContext pCtx = new ProjectContext(projectName, new Version(\"1.1\"), dbVersion);\n pCtx.setAlterDir(new File(\"test/\" + projectName + \"/db/alter\"));\n pCtx.setBaseDir(new File(\"test/\" + projectName + \"/db/base\"));\n pCtx.setSeedDir(new File(\"test/\" + projectName + \"/db/seed\"));\n\n ArtifactService as = new ProjectArtifactService(pCtx);\n\n return as.getArtifact();\n }",
"private File getCurrentArtifact() {\n\t\treturn new File(target, jarName.concat(EXTENSION));\n\t}",
"ArtifactResult result();",
"private void createArtifacts(String groupId,\n String artifactId,\n String storageId,\n String repositoryId)\n {\n ArtifactCoordinates coordinates1 = createArtifactCoordinates(groupId, artifactId + \"123\", \"1.2.3\", \"jar\");\n ArtifactCoordinates coordinates2 = createArtifactCoordinates(groupId, artifactId, \"1.2.3\", \"jar\");\n ArtifactCoordinates coordinates3 = createArtifactCoordinates(groupId + \"myId\", artifactId + \"321\", \"1.2.3\",\n \"jar\");\n\n createArtifactEntry(coordinates1, storageId, repositoryId);\n createArtifactEntry(coordinates2, storageId, repositoryId);\n createArtifactEntry(coordinates3, storageId, repositoryId);\n }",
"public void addJARFolder() {\n btAddJARFolder().push();\n }",
"@Test\n public void testTraversalOfGeneratedDirectory() throws Exception {\n assertTraversalOfDirectory(derivedArtifact(\"dir\"));\n }",
"default String getArtifactId() {\n return getIdentifier().getArtifactId();\n }",
"@Override\n public void execute() throws MojoExecutionException, MojoFailureException {\n getLog().info(\"Adding the dependency \" + groupId + \":\" + artifactId);\n\n // Load the model\n Model model;\n try {\n model = POMUtils.loadModel(pomFile);\n } catch (IOException | XmlPullParserException e) {\n throw new MojoExecutionException(\"Error while loading the Maven model.\", e);\n }\n\n // Creating a dependency object\n Dependency dependency = new Dependency();\n\n dependency.setArtifactId(artifactId);\n dependency.setGroupId(groupId);\n if (version != null) {\n dependency.setVersion(version);\n }\n if (systemPath != null) {\n dependency.setSystemPath(systemPath);\n }\n if (type != null) {\n dependency.setType(type);\n }\n if (scope != null) {\n dependency.setScope(scope);\n }\n if (optional) {\n dependency.setOptional(true);\n }\n\n model =\n addDependency(model, dependency, groupId, artifactId, version, modifyDependencyManagement);\n\n // Save the model\n try {\n POMUtils.saveModel(model, pomFile, pomBackup);\n } catch (IOException e) {\n throw new MojoExecutionException(\"I/O error while writing the Maven model.\", e);\n }\n }",
"ArtifactRepository getRepository();",
"public void execute() throws MojoExecutionException, MojoFailureException {\n\n File target = new File(getDistfolder());\n\n // only create the target directoty when it doesn't exist\n // no deletion\n if (!target.exists()) {\n target.mkdir();\n } else {\n getLog().warn(\"Using existing target directory \" + target.getAbsolutePath());\n }\n\n getLog().info(\"Target is \" + target);\n\n String excludes2 = getExcludes();\n\n if (excludes2 == null) {\n excludes2 = \"**/.svn/,**/.cvs/\";\n\n getLog().info(\"Configuration for excludes not set. Defaulting to: \\\"\" + excludes2\n + \"\\\". Excludes are ant-fileset-style.\");\n } else {\n if (excludes2.contains(\"__acl\") || excludes2.contains(\"__properties\")) {\n getLog().warn(\"Your excludes \\\"\" + excludes2\n + \"\\\" contains __acl or __properties. You do not want these to be excluded in order to have permissoins and properties work.\");\n }\n }\n\n try {\n String targetLibPath = getTargetLibPath();\n\n if ((null != targetLibPath) && !\"\".equals(targetLibPath)) {\n File targetLibDir = new File(target, targetLibPath);\n\n if (!targetLibDir.exists()) {\n targetLibDir.mkdirs();\n }\n\n if (!targetLibDir.isDirectory()) {\n throw new MojoExecutionException(\"Could not create targetLibdir: \" + targetLibDir.toString());\n }\n\n File jar = new File(jarFile);\n FileUtils.copyFileToDirectory(jar, targetLibDir);\n }\n\n for (Resource resource : srcResources) {\n File source = new File(resource.getDirectory());\n File currentTarget = null;\n\n if (resource.getTargetPath() != null) {\n currentTarget = new File(target, resource.getTargetPath());\n } else {\n currentTarget = target;\n }\n\n String normalized = source.getAbsolutePath();\n int offsetLength = normalized.length();\n\n getLog().debug(\"Normalzed sourcefolder is \" + normalized + \" (Offset is: \" + offsetLength + \")\");\n\n List<String> results = FileUtils.getFileAndDirectoryNames(source, null, excludes2, true, true, true,\n true);\n\n for (String fileName : results) {\n File file = new File(fileName);\n\n String normalizedParent = new File(file.getParent()).getAbsolutePath();\n\n if (offsetLength > normalizedParent.length()) {\n getLog().info(\"Skipping file (its the sourcefolder or a parent of it): \"\n + file.getAbsolutePath());\n getLog().debug(\"Parent: \" + normalizedParent + \" with length \" + normalizedParent.length());\n\n continue;\n }\n\n String relative = file.getParent();\n relative = relative.substring(offsetLength); // cut the target-dir away\n\n getLog().debug(\"Copy \" + file + \" to \" + currentTarget.getPath() + File.separator + relative);\n\n if (file.isFile()) {\n File parent = new File(currentTarget.getPath() + File.separator + relative);\n\n if (!parent.exists()) {\n // create dir if it does not exist\n parent.mkdirs();\n }\n\n FileUtils.copyFileToDirectory(file, parent);\n } else if (file.isDirectory()) {\n // take care about directories (so that empty dirs get created)\n\n File tocreate = new File(currentTarget.getPath() + File.separator + relative + File.separator\n + file.getName());\n getLog().debug(\"Creating dir\" + tocreate.toString());\n tocreate.mkdirs();\n }\n }\n }\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could copy file(s) to directory\", ex);\n }\n }",
"private static void addProjectFile(IProject newProject, String fileName, String projectPath){\n \tBundle bundle = Platform.getBundle(BUNDLE_ID);//plugin id\n \tString filePath = DEFAULT_FILE_PATH + fileName;\n \tIPath location= Path.fromOSString(filePath); \n \tInputStream stream;\n\t\ttry {\n\t\t\tstream = FileLocator.openStream( bundle, location, false );\n\t\t\tString createdFilePath = projectPath+fileName;\n\t \tIFile file = newProject.getFile(createdFilePath);\n\t\t\tfile.create( stream, true, null );\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (CoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"com.google.protobuf.ByteString\n getArtifactUrlBytes();",
"private static URL createTempJar(Artifact artifact, Contribution contribution) throws IOException {\n FileOutputStream fileOutputStream = null;\n ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(new File(URI.create(contribution.getLocation()))));\n try {\n ZipEntry zipEntry = zipInputStream.getNextEntry();\n while (zipEntry != null) {\n if (artifact.getLocation().endsWith(zipEntry.getName())) {\n\n String tempName = (\"tmp.\" + artifact.getURI().substring(0, artifact.getURI().length() - 3)).replace('/', '.');\n File tempFile = File.createTempFile(tempName, \".jar\");\n tempFile.deleteOnExit();\n fileOutputStream = new FileOutputStream(tempFile);\n\n byte[] buf = new byte[2048];\n int n;\n while ((n = zipInputStream.read(buf, 0, buf.length)) > -1) {\n fileOutputStream.write(buf, 0, n);\n }\n\n fileOutputStream.close();\n zipInputStream.closeEntry();\n\n return tempFile.toURI().toURL();\n\n }\n zipEntry = zipInputStream.getNextEntry();\n }\n } finally {\n zipInputStream.close();\n if (fileOutputStream != null) {\n fileOutputStream.close();\n }\n }\n \n throw new IllegalStateException();\n }",
"java.lang.String getArtifactStorage();",
"private File getArtifactFile(Artifact artifactQuery)\n\t\t\tthrows MojoExecutionException {\n\n\t\tArtifactRequest request = new ArtifactRequest(artifactQuery,\n\t\t\t\tprojectRepos, null);\n\t\tList<ArtifactRequest> arts = new ArrayList<ArtifactRequest>();\n\t\tarts.add(request);\n\t\ttry {\n\t\t\tArtifactResult a = repoSystem.resolveArtifact(repoSession, request);\n\t\t\treturn a.getArtifact().getFile();\n\t\t} catch (ArtifactResolutionException e) {\n\t\t\tthrow new MojoExecutionException(\n\t\t\t\t\t\"could not resolve artifact to compare with\", e);\n\t\t}\n\n\t}",
"private static void addLibraryPath(String pathToAdd) throws Exception{\n\t\tfinal Field usrPathsField = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\t\tusrPathsField.setAccessible(true);\n\t \n\t\t//get array of paths\n\t\tfinal String[] paths = (String[])usrPathsField.get(null);\n\t \n\t\t//check if the path to add is already present\n\t\tfor(String path : paths) {\n\t\t\tif(path.equals(pathToAdd)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t \n\t\t//add the new path\n\t\tfinal String[] newPaths = Arrays.copyOf(paths, paths.length + 1);\n\t\tnewPaths[newPaths.length-1] = pathToAdd;\n\t\tusrPathsField.set(null, newPaths);\n\t}",
"public interface IRepositoryService {\n\n /**\n * Returns the path to an artifact with the given identifier.\n *\n * @param identifier artifact identifier\n * @return the path to an artifact with the given identifier.\n */\n Path getArtifact(String identifier);\n\n /**\n * Returns the set of paths to the artifacts that the artifact with the given identifier depends on. If the given\n * artifact has no dependencies, returns an empty set.\n *\n * @param identifier artifact identifier\n * @param transitive if {@code false}, returns the immediate dependencies of the artifact; otherwise, returns all\n * dependencies, including dependencies of dependencies\n * @return the set of paths to the dependent artifacts\n */\n Set<Path> getArtifactDependencies(String identifier, boolean transitive);\n\n}",
"public abstract NestedSet<Artifact> getTransitiveJackClasspathLibraries();",
"Artifact getArtifact(String version) throws ArtifactNotFoundException;",
"Passive_Digital_Artifact createPassive_Digital_Artifact();",
"public JButtonOperator btAddJARFolder() {\n if (_btAddJARFolder==null) {\n String addJARFolder = Bundle.getString(\"org.netbeans.modules.java.freeform.ui.Bundle\", \"BTN_ClasspathPanel_addClasspath\");\n _btAddJARFolder = new JButtonOperator(this, addJARFolder);// I18N\n }\n return _btAddJARFolder;\n }",
"CdapArtifact createCdapArtifact();",
"private void addClasspathElement(final ClasspathRelativePath classpathEltPath, final LogNode log) {\n if (rawClasspathElementsSet.add(classpathEltPath)) {\n rawClasspathElements.add(classpathEltPath);\n if (log != null) {\n log.log(\"Found classpath element: \" + classpathEltPath);\n }\n } else {\n if (log != null) {\n log.log(\"Ignoring duplicate classpath element: \" + classpathEltPath);\n }\n }\n }",
"void setArtifactId(String artifactId);",
"ClassPath add(ClassPathElement element);",
"public void addDescriptor(IArtifactDescriptor toAdd) {\n \t\tartifactDescriptors.add(toAdd);\n \t\tsave();\n \t}",
"public interface GetPath {\n //path是svn中的地址,realpath是class的路径\n public void copyFileAndFloder(String[] paths, String realPath);\n}",
"Active_Digital_Artifact createActive_Digital_Artifact();",
"private void addDependencyManagement( Model pomModel )\n {\n List<Artifact> projectArtifacts = new ArrayList<Artifact>( mavenProject.getArtifacts() );\n Collections.sort( projectArtifacts );\n\n Properties versionProperties = new Properties();\n DependencyManagement depMgmt = new DependencyManagement();\n for ( Artifact artifact : projectArtifacts )\n {\n if (isExcludedDependency(artifact)) {\n continue;\n }\n\n String versionPropertyName = VERSION_PROPERTY_PREFIX + artifact.getGroupId();\n if (versionProperties.getProperty(versionPropertyName) != null\n && !versionProperties.getProperty(versionPropertyName).equals(artifact.getVersion())) {\n versionPropertyName = VERSION_PROPERTY_PREFIX + artifact.getGroupId() + \".\" + artifact.getArtifactId();\n }\n versionProperties.setProperty(versionPropertyName, artifact.getVersion());\n\n Dependency dep = new Dependency();\n dep.setGroupId( artifact.getGroupId() );\n dep.setArtifactId( artifact.getArtifactId() );\n dep.setVersion( artifact.getVersion() );\n if ( !StringUtils.isEmpty( artifact.getClassifier() ))\n {\n dep.setClassifier( artifact.getClassifier() );\n }\n if ( !StringUtils.isEmpty( artifact.getType() ))\n {\n dep.setType( artifact.getType() );\n }\n if (exclusions != null) {\n applyExclusions(artifact, dep);\n }\n depMgmt.addDependency( dep );\n }\n pomModel.setDependencyManagement( depMgmt );\n if (addVersionProperties) {\n pomModel.getProperties().putAll(versionProperties);\n }\n getLog().debug( \"Added \" + projectArtifacts.size() + \" dependencies.\" );\n }",
"private void installArtifacts(ApplicationDescription desc) throws IOException {\n try {\n Tools.copyDirectory(appFile(desc.name(), M2_PREFIX), m2Dir);\n } catch (NoSuchFileException e) {\n log.debug(\"Application {} has no M2 artifacts\", desc.name());\n }\n }",
"private org.apache.maven.artifact.Artifact findMatchingArtifact(MavenProject project, Artifact requestedArtifact) {\n String requestedRepositoryConflictId = getConflictId(requestedArtifact);\n\n org.apache.maven.artifact.Artifact mainArtifact = project.getArtifact();\n if (requestedRepositoryConflictId.equals(getConflictId(mainArtifact))) {\n return mainArtifact;\n }\n\n Collection<org.apache.maven.artifact.Artifact> attachedArtifacts = project.getAttachedArtifacts();\n if (attachedArtifacts != null && !attachedArtifacts.isEmpty()) {\n for (org.apache.maven.artifact.Artifact attachedArtifact : attachedArtifacts) {\n if (requestedRepositoryConflictId.equals(getConflictId(attachedArtifact))) {\n return attachedArtifact;\n }\n }\n }\n\n return null;\n }",
"private void addClasspathElement(String pathElement) {\n\t if (classpathElementsSet.add(pathElement)) {\n\t final File file = new File(pathElement);\n\t if (file.exists()) {\n\t classpathElements.add(file);\n\t }\n\t }\n\t}",
"public abstract NestedSet<Artifact> bootclasspath();",
"static String convertToArtifactId(String s) {\n // Trim to filename just in case we are passed a path to a jar\n String name = Paths.get(s).getFileName().toString();\n if (name.endsWith(\".jar\")) {\n // Convert jar file name to artifactId. Strip version and .jar\n // We assume everything after the last dash is the version.jar\n int n = name.lastIndexOf('-');\n if (n < 0) {\n // No dashes. Just strip off .jar\n n = name.lastIndexOf('.');\n }\n return name.substring(0, n);\n } else {\n return name;\n }\n }",
"private Artifact buildArtifactFromString(ArrayList<String> pluginOutput, int unusedDependencyIndex) {\n String line = pluginOutput.get(unusedDependencyIndex);\n String[] splitValues = line.split(\":|\\\\s+\");\n String groupId = splitValues[1];\n String artifactId = splitValues[2];\n String type = splitValues[3];\n String version = splitValues[4];\n String scope = splitValues[5];\n return new DefaultArtifact(groupId, artifactId, version, scope, type, null, new DefaultArtifactHandler());\n\n\n }",
"private void addModuleArtifact( Map dependencies, Artifact artifact )\n {\n String key = artifact.getDependencyConflictId();\n\n if ( !dependencies.containsKey( key ) )\n {\n dependencies.put( key, artifact );\n }\n }",
"String getRepositoryPath();",
"public String getArtifactId()\n {\n return artifactId;\n }",
"protected Set getDependencies()\n throws MojoExecutionException\n {\n MavenProject project = getExecutedProject();\n\n Set dependenciesSet = new HashSet();\n\n if ( project.getArtifact() != null && project.getArtifact().getFile() != null )\n {\n dependenciesSet.add( project.getArtifact() );\n }\n\n Set projectArtifacts = project.getArtifacts();\n if ( projectArtifacts != null )\n {\n dependenciesSet.addAll( projectArtifacts );\n }\n\n return dependenciesSet;\n }",
"protected Set getModules()\n throws MojoExecutionException, MojoFailureException\n {\n Map dependencies = new HashMap();\n\n for ( Iterator i = reactorProjects.iterator(); i.hasNext(); )\n {\n MavenProject reactorProject = (MavenProject) i.next();\n\n Artifact artifact = reactorProject.getArtifact();\n\n try\n {\n artifactResolver.resolve( artifact, project.getRemoteArtifactRepositories(), localRepository );\n }\n catch ( ArtifactNotFoundException e )\n {\n //TODO: Is there a better way to get the artifact if it is not yet installed in the repo?\n //reactorProject.getArtifact().getFile() is returning null\n //tried also the project.getArtifact().getFile() but returning same result\n File fileArtifact = new File( reactorProject.getBuild().getDirectory() + File.separator +\n reactorProject.getBuild().getFinalName() + \".\" + reactorProject.getPackaging() );\n\n getLog().info( \"Artifact ( \" + artifact.getFile().getName() + \" ) not found \" +\n \"in any repository, resolving thru modules...\" );\n\n artifact.setFile( fileArtifact );\n\n if ( fileArtifact.exists() )\n {\n if ( artifact.getType().equals( \"pom\" ) )\n {\n continue;\n }\n\n addModuleArtifact( dependencies, artifact );\n }\n }\n catch ( ArtifactResolutionException e )\n {\n throw new MojoExecutionException( \"Failed to resolve artifact\", e );\n }\n\n if ( artifact.getFile() != null )\n {\n if ( artifact.getType().equals( \"pom\" ) )\n {\n continue;\n }\n\n addModuleArtifact( dependencies, artifact );\n }\n }\n return new HashSet( dependencies.values() );\n }",
"@Override\n protected String getDirPath() {\n throw new UnsupportedOperationException();\n }",
"private void resolve(MavenDownloader mavenDownloader, String gav, boolean useSnapshots)\n throws MavenResolutionException, MalformedURLException {\n Set<String> extraRepositories = new LinkedHashSet<>(repositories.values());\n\n // non-transitive resolve, because we load static data from the catalog artifacts\n List<MavenArtifact> artifacts = mavenDownloader.resolveArtifacts(Collections.singletonList(gav),\n extraRepositories, false, useSnapshots);\n\n for (MavenArtifact ma : artifacts) {\n helperClassLoader.addURL(ma.getFile().toURI().toURL());\n }\n }",
"public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}",
"@Test\n public void testArtifactCache() throws Exception {\n addPeers(ImmutableList.of(\"peer1\", \"peer2\"));\n // Get artifact from first peer\n File peer1ArtifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer1\", remoteClient);\n // Get the artifact again. The same path was returned\n Assert.assertEquals(peer1ArtifactPath, cache.getArtifact(artifactId.toEntityId(), \"peer1\", remoteClient));\n\n // Get artifact from another peer. It should be cached in a different path\n File peer2ArtifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer2\", remoteClient);\n Assert.assertNotEquals(peer1ArtifactPath, peer2ArtifactPath);\n\n // Delete and recreate the artifact to update the last modified date\n artifactRepository.deleteArtifact(artifactId);\n // This sleep is needed to delay the file copy so that the lastModified time on the file is different\n Thread.sleep(1000);\n artifactRepository.addArtifact(artifactId, appJarFile);\n // Artifact should be cached in a different path\n File newPeer1ArtifactPath = cache.getArtifact(artifactId.toEntityId(), \"peer1\", remoteClient);\n Assert.assertNotEquals(peer1ArtifactPath, newPeer1ArtifactPath);\n\n // Run the artifact cleaner\n ArtifactLocalizerCleaner cleaner = new ArtifactLocalizerCleaner(Paths.get(cacheDir).resolve(\"peers\"), 1);\n cleaner.run();\n // Older artifact should been deleted\n Assert.assertFalse(peer1ArtifactPath.exists());\n // Latest artifact should still be cached\n Assert.assertTrue(newPeer1ArtifactPath.exists());\n }",
"public String getArtifactId() {\n\t\treturn this.artifactId;\n\t}",
"public abstract RepositoryOperation getAddOperation(URI repoLocation);",
"public void addTeamMember(final Artifact artifact);",
"CdapLoadArtifactStep createCdapLoadArtifactStep();",
"public void archive(MavenBuildProxy build, File file, BuildListener listener) throws IOException, InterruptedException {\n if (build.isArchivingDisabled()) {\n listener.getLogger().println(\"[JENKINS] Archiving disabled - not archiving \" + file);\n }\n else {\n FilePath target = getArtifactArchivePath(build,groupId,artifactId,version);\n FilePath origin = new FilePath(file);\n if (!target.exists()) {\n listener.getLogger().println(\"[JENKINS] Archiving \"+ file+\" to \"+target);\n origin.copyTo(target);\n } else if (!origin.digest().equals(target.digest())) {\n listener.getLogger().println(\"[JENKINS] Re-archiving \"+file);\n origin.copyTo(target);\n } else {\n LOGGER.fine(\"Not actually archiving \"+origin+\" due to digest match\");\n }\n\n /* debug probe to investigate \"missing artifact\" problem typically seen like this:\n\n ERROR: Asynchronous execution failure\n java.util.concurrent.ExecutionException: java.io.IOException: Archived artifact is missing: /files/hudson/server/jobs/glassfish-v3/modules/org.glassfish.build$maven-glassfish-extension/builds/2008-04-02_10-17-15/archive/org.glassfish.build/maven-glassfish-extension/1.0-SNAPSHOT/maven-glassfish-extension-1.0-SNAPSHOT.jar\n at hudson.remoting.Channel$1.adapt(Channel.java:423)\n at hudson.remoting.Channel$1.adapt(Channel.java:418)\n at hudson.remoting.FutureAdapter.get(FutureAdapter.java:32)\n at hudson.maven.MavenBuilder.call(MavenBuilder.java:140)\n at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:476)\n at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:422)\n at hudson.remoting.UserRequest.perform(UserRequest.java:69)\n at hudson.remoting.UserRequest.perform(UserRequest.java:23)\n at hudson.remoting.Request$2.run(Request.java:200)\n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)\n at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)\n at java.util.concurrent.FutureTask.run(FutureTask.java:123)\n at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)\n at java.lang.Thread.run(Thread.java:595)\n Caused by: java.io.IOException: Archived artifact is missing: /files/hudson/server/jobs/glassfish-v3/modules/org.glassfish.build$maven-glassfish-extension/builds/2008-04-02_10-17-15/archive/org.glassfish.build/maven-glassfish-extension/1.0-SNAPSHOT/maven-glassfish-extension-1.0-SNAPSHOT.jar\n at hudson.maven.reporters.MavenArtifact.getFile(MavenArtifact.java:147)\n at hudson.maven.reporters.MavenArtifact.toArtifact(MavenArtifact.java:126)\n at hudson.maven.reporters.MavenArtifactRecord.install(MavenArtifactRecord.java:115)\n at hudson.maven.reporters.MavenArtifactArchiver$1.call(MavenArtifactArchiver.java:81)\n at hudson.maven.reporters.MavenArtifactArchiver$1.call(MavenArtifactArchiver.java:71)\n at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:255)\n at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:177)\n at hudson.remoting.UserRequest.perform(UserRequest.java:69)\n at hudson.remoting.UserRequest.perform(UserRequest.java:23)\n at hudson.remoting.Request$2.run(Request.java:200)\n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)\n at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)\n at java.util.concurrent.FutureTask.run(FutureTask.java:138)\n at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)\n at java.lang.Thread.run(Thread.java:619)\n */\n\n if(!target.exists())\n throw new AssertionError(\"Just copied \"+file+\" to \"+target+\" but now I can't find it\");\n }\n }",
"String getRepositoryPath(String name);",
"public static List<String> getClasspathElements( MavenProject project, List<Artifact> artifacts )\n throws DependencyResolutionRequiredException\n {\n // based on MavenProject.getCompileClasspathElements\n\n List<String> list = new ArrayList<String>( artifacts.size() );\n\n for ( Artifact artifact : artifacts )\n {\n if ( artifact.getArtifactHandler().isAddedToClasspath() )\n {\n // TODO: let the scope handler deal with this\n if ( Artifact.SCOPE_COMPILE.equals( artifact.getScope() )\n || Artifact.SCOPE_RUNTIME.equals( artifact.getScope() ) )\n {\n addArtifactPath( project, artifact, list );\n }\n }\n }\n\n return list;\n }",
"String artifactSourceId();",
"Path handleOverriddenTransformation(MavenArtifact artifact) throws IOException, ProvisioningException {\n boolean isTransformed = isOverriddenTransformed(artifact);\n Path path = artifact.getPath();\n if (!isTransformed && !isExcludedFromTransformation(artifact)) {\n // Transform attempt and install in provisioningMavenRepo.\n Path pomFile = getPomArtifactPath(artifact, getArtifactResolver());\n Path transformedFile = setupOverriddenArtifact(artifact);\n // The provisioningMavenRepo is used when generating the configuration.\n if (transformedFile == null) {\n Path notTransformedVersionPath = getLocalRepoPath(artifact, artifact.getVersion(), provisioningMavenRepo);\n path = notTransformedVersionPath.resolve(artifact.getArtifactFileName());\n Files.copy(artifact.getPath(), path, StandardCopyOption.REPLACE_EXISTING);\n Files.copy(pomFile, notTransformedVersionPath.resolve(pomFile.getFileName().toString()), StandardCopyOption.REPLACE_EXISTING);\n } else {\n // Copy the transformed one\n String transformedVersion = getTransformedVersion(artifact.getVersion());\n Path transformedVersionPath = getLocalRepoPath(artifact, transformedVersion, provisioningMavenRepo);\n path = transformedVersionPath.resolve(transformedFile.getFileName());\n Files.copy(transformedFile, path, StandardCopyOption.REPLACE_EXISTING);\n Files.copy(pomFile, transformedVersionPath.resolve(pomFile.getFileName().toString()), StandardCopyOption.REPLACE_EXISTING);\n }\n }\n return path;\n }",
"public String getArtifact() {\n return artifact;\n }",
"protected void resolveProjectDependencies() {\n // Create a set of old and new artifacts.\n final Set<String> oldReferences = new HashSet<String>();\n final Set<String> newReferences = new HashSet<String>();\n for (PropertyInfo pi:properties.values()) {\n if (pi != null) {\n if (pi.getPropertyDescriptor().getPropertyParser() == DefaultPropertyParsers.PATH_PARSER) {\n // Get original artifacts\n final List oldList = (List)pi.getOldValue();\n if ( oldList != null ) {\n final Iterator it = oldList.iterator();\n while (it.hasNext()) oldReferences.add(((VisualClassPathItem)it.next()).getRawText());\n }\n \n // Get artifacts after the edit\n final List newList = (List)pi.getValue();\n if ( newList != null ) {\n final Iterator it = newList.iterator();\n while (it.hasNext()) newReferences.add(((VisualClassPathItem)it.next()).getRawText());\n }\n } else if (pi.getPropertyDescriptor().getPropertyParser() == DefaultPropertyParsers.FILE_REFERENCE_PARSER) {\n oldReferences.add(pi.getOldRawValue());\n newReferences.add(pi.getRawValue());\n }\n }\n }\n \n // Create set of removed artifacts and remove them\n final Set<String> removed = new HashSet<String>( oldReferences );\n removed.removeAll( newReferences );\n final Set<String> added = new HashSet<String>(newReferences);\n added.removeAll(oldReferences);\n \n // 1. first remove all project references. The method will modify\n // project property files, so it must be done separately\n for ( String reference : removed ) {\n if (reference != null && !reference.startsWith(LIBS)) { //NOI18N\n refHelper.destroyReference(reference);\n }\n }\n \n // 2. now read project.properties and modify rest\n final EditableProperties ep = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n boolean changed = false;\n \n for( final String reference:removed) {\n if (reference != null && reference.startsWith(LIBS)) { //NOI18N\n // remove helper property pointing to library jar if there is any\n ep.remove(reference.substring(2, reference.length()-1));\n changed = true;\n }\n }\n final File projDir = FileUtil.toFile(antProjectHelper.getProjectDirectory());\n for( String reference:added ) {\n if (reference != null && reference.startsWith(LIBS)) { //NOI18N\n // add property to project.properties pointing to relativized\n // library jar(s) if possible\n reference = reference.substring(2, reference.length()-1);\n final String value = relativizeLibraryClasspath(reference, projDir);\n if (value != null) {\n ep.setProperty(reference, value);\n ep.setComment(reference, new String[]{\n NbBundle.getMessage(J2MEProjectProperties.class, \"DESC_J2MEProps_CommentLine1\", reference), //NOI18N\n NbBundle.getMessage(J2MEProjectProperties.class, \"DESC_J2MEProps_CommentLine2\")}, false); //NOI18N\n changed = true;\n }\n }\n }\n if (changed) {\n antProjectHelper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, ep);\n }\n \n }",
"public Path getRemoteRepositoryBaseDir();",
"protected abstract String getResourcePath();",
"public String getJarLocation();",
"public Path getRepositoryBaseDir();",
"public Path getRepositoryGroupBaseDir();",
"private synchronized void addBuildWrapperPath(ProcessBuilder pb){\r\n \t\tif (needPath==null || needPath.booleanValue() && bwPath!=null){\r\n \t\t\tneedPath=false;\r\n \t\t\tString path=new File(bwPath).getParent();\r\n \t\t\tif (path!=null){\r\n \t\t\t\tMap<String,String> env=pb.environment();\r\n \t\t\t\tString pathValue=env.get(\"PATH\");\r\n \t\t\t\tif (Boolean.TRUE.equals(needPath) || pathValue==null || pathValue.length()==0 || !pathValue.contains(path)){\r\n \t\t\t\t\tif (pathValue==null || pathValue.length()==0){\r\n \t\t\t\t\t\tpathValue=path;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tpathValue+=File.pathSeparator+path;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tenv.put(\"PATH\",pathValue);\r\n \t\t\t\t\tneedPath=true;\r\n \t\t\t\t} \r\n \t\t\t}\r\n \t\t}\r\n \t}",
"private File getLastArtifact() throws MojoExecutionException {\n\t\torg.eclipse.aether.version.Version v = getLastVersion();\n\t\tif (v == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tArtifact artifactQuery = new DefaultArtifact(groupId.concat(\":\")\n\t\t\t\t.concat(name).concat(\":\").concat(v.toString()));\n\t\tgetLog().debug(\n\t\t\t\tString.format(\"looking for artifact %s\",\n\t\t\t\t\t\tartifactQuery.toString()));\n\t\treturn getArtifactFile(artifactQuery);\n\n\t}",
"private List<String> copyAdditionalBundledClasspathResources(File javaDirectory, String targetDirectoryName, List<FileSet> additionalBundledClasspathResources) throws MojoExecutionException {\n // Create the destination directory\n File destinationDirectory = new File(javaDirectory, targetDirectoryName);\n destinationDirectory.mkdirs();\n\n List<String> addedFilenames = this.copyResources(destinationDirectory, additionalBundledClasspathResources);\n\n return addPath(addedFilenames, targetDirectoryName);\n }",
"CdapLoadArtifactWithConfigStep createCdapLoadArtifactWithConfigStep();",
"public abstract NestedSet<Artifact> getTransitiveJackLibrariesToLink();",
"public abstract ICMakeBuildElement createBuildProperties(Path path);",
"ModulePath getModulePath();",
"public RepositoryArtifact createProject(RepositoryConnector connector, String rootFolderId, String projectName, String processDefinitionXml) {\r\n RepositoryArtifact result = null;\r\n try {\r\n ZipInputStream projectTemplateInputStream = new ZipInputStream(getProjectTemplate());\r\n ZipEntry zipEntry = null;\r\n \r\n String rootSubstitution = null;\r\n \r\n while ((zipEntry = projectTemplateInputStream.getNextEntry()) != null) {\r\n String zipName = zipEntry.getName();\r\n if (zipName.endsWith(\"/\")) {\r\n zipName = zipName.substring(0, zipName.length() - 1);\r\n }\r\n String path = \"\";\r\n String name = zipName;\r\n if (zipName.contains(\"/\")) {\r\n path = zipName.substring(0, zipName.lastIndexOf(\"/\"));\r\n name = zipName.substring(zipName.lastIndexOf(\"/\") + 1);\r\n }\r\n if (\"\".equals(path)) {\r\n // root folder is named after the project, not like the\r\n // template\r\n // folder name\r\n rootSubstitution = name;\r\n name = projectName;\r\n } else {\r\n // rename the root folder in all other paths as well\r\n path = path.replace(rootSubstitution, projectName);\r\n }\r\n String absolutePath = rootFolderId + \"/\" + path;\r\n boolean isBpmnModel = false;\r\n if (zipEntry.isDirectory()) {\r\n connector.createFolder(absolutePath, name);\r\n } else {\r\n Content content = new Content();\r\n \r\n if (\"template.bpmn20.xml\".equals(name)) {\r\n // This file shall be replaced with the process\r\n // definition\r\n content.setValue(processDefinitionXml);\r\n name = projectName + \".bpmn20.xml\";\r\n isBpmnModel = true;\r\n log.log(Level.INFO, \"Create processdefinition from Signavio process model \" + projectName);\r\n } else {\r\n byte[] bytes = IoUtil.readInputStream(projectTemplateInputStream, \"ZIP entry '\" + zipName + \"'\");\r\n String txtContent = new String(bytes).replaceAll(REPLACE_STRING, projectName).replaceAll(\"@@ACTIVITI.HOME@@\", ACTIVITI_HOME_PATH);\r\n content.setValue(txtContent);\r\n }\r\n log.log(Level.INFO, \"Create new artifact from zip entry '\" + zipEntry.getName() + \"' in folder '\" + absolutePath + \"' with name '\" + name + \"'\");\r\n RepositoryArtifact artifact = connector.createArtifact(absolutePath, name, null, content);\r\n if (isBpmnModel) {\r\n result = artifact;\r\n }\r\n }\r\n projectTemplateInputStream.closeEntry();\r\n }\r\n projectTemplateInputStream.close();\r\n } catch (IOException ex) {\r\n throw new RepositoryException(\"Couldn't create maven project due to IO errors\", ex);\r\n }\r\n return result;\r\n }",
"Path createPath();",
"com.google.protobuf.ByteString\n getArtifactIdBytes();",
"private File generatePomFile(Model model) {\n \n Writer writer = null;\n try {\n File pomFile = File.createTempFile(\"mvninstall\", \".pom\");\n writer = WriterFactory.newXmlWriter(pomFile);\n new MavenXpp3Writer().write(writer, model);\n return pomFile;\n } catch (IOException e) {\n logger.error(\"Error writing temporary POM file: \" + e.getMessage(), e);\n return null;\n } finally {\n IOUtil.close(writer);\n }\n }",
"public IPath[] getAdditionalDependencies();",
"protected void add(String path) throws IOException {\n String[] command = {SVN, ADD, path};\n run(command, null, null, null);\n }",
"public void addForkedProject( MavenProject project )\n {\n forkedProjectStack.push( currentProject );\n currentProject = project;\n }",
"private static URL buildURL(String repositoryFileName) throws MalformedURLException {\n URL url = ClassHelper.getResource(repositoryFileName);\n\n // don't be too strict: if resource is not on the classpath, try ordinary file lookup\n if (url == null) {\n try {\n url = new File(repositoryFileName).toURL();\n }\n catch (MalformedURLException ignore) {\n }\n }\n\n if (url != null) {\n LOG.info(\"OJB Descriptor Repository: \" + url);\n } else {\n throw new MalformedURLException(\"did not find resource \" + repositoryFileName);\n }\n return url;\n }",
"@Test\n public void addDeploymentArtifactAndVerifyInCompositionScreenApi() throws Exception {\n ResourceReqDetails vfMetaData = createVFviaAPI();\n\n //Go to Catalog and find the created VF\n CatalogUIUtilitis.clickTopMenuButton(TopMenuButtonsEnum.CATALOG);\n GeneralUIUtils.findComponentAndClick(vfMetaData.getName());\n\n ResourceGeneralPage.getLeftMenu().moveToDeploymentArtifactScreen();\n\n ArtifactInfo deploymentArtifact = new ArtifactInfo(filePath, \"asc_heat 0 2.yaml\", \"kuku\", \"artifact1\", \"OTHER\");\n DeploymentArtifactPage.clickAddNewArtifact();\n ArtifactUIUtils.fillAndAddNewArtifactParameters(deploymentArtifact);\n AssertJUnit.assertTrue(DeploymentArtifactPage.checkElementsCountInTable(1));\n\n ResourceGeneralPage.getLeftMenu().moveToCompositionScreen();\n\n CompositionPage.showDeploymentArtifactTab();\n List<WebElement> deploymentArtifactsFromScreen = CompositionPage.getDeploymentArtifacts();\n AssertJUnit.assertTrue(1 == deploymentArtifactsFromScreen.size());\n\n String actualArtifactFileName = deploymentArtifactsFromScreen.get(0).getText();\n AssertJUnit.assertTrue(\"asc_heat-0-2.yaml\".equals(actualArtifactFileName));\n }",
"private WebTestArtifact(String resource)\r\n {\r\n this(resource, \"GET\");\r\n }",
"private static void addProjectFiles(IProject newProject){\n \t//add README file\n \taddProjectFile(newProject , README_FILE_NAME , \"\" );\n \t//add ProviderClass\n \taddProjectFile(newProject , PROVIDER_SCRIPT_FILE_NAME , CLASSES_FOLDER+\"/\" );\n }",
"@Test\n\tpublic void testValidAddMaven() throws InvalidManifestException, IllegalAccessException, InvocationTargetException {\n\t\t// test with a valid dummy string for a maven add\n\t\tString[] args = new String(\"add -repo dummyrepo -cmt dummycommit -br dummybranch -mvnv 0.0-DUMMY\").split(\" \");\n\t\tVersionManifest m = (VersionManifest)createManifestMethod.invoke(null, new Object[] { args });\n\n\t\t// Should not throw\n\t\tvalidateAddMethod.invoke(null, m);\n\t}",
"public JsonObject getArtifact(String wrksName, String artName) throws CartagoException {\n var info = getArtInfo(wrksName, artName);\n\n var artifact = Json.createObjectBuilder()\n .add(\"artifact\", artName)\n .add(\"type\", info.getId().getArtifactType());\n\n\n // Get artifact's properties\n var properties = Json.createArrayBuilder();\n for (ArtifactObsProperty op : info.getObsProperties()) {\n var values = Json.createArrayBuilder();\n for (Object vl : op.getValues()) {\n values.add(\n Json.createValue(vl.toString())\n );\n }\n properties.add(\n Json.createObjectBuilder()\n .add(op.getName(), values)\n );\n }\n artifact.add(\"properties\", properties);\n\n // Get artifact's operations\n var operations = Json.createArrayBuilder();\n info.getOperations().forEach(y -> {\n operations.add(y.getOp().getName());\n });\n artifact.add(\"operations\", operations);\n\n // Get agents that are observing the artifact\n var observers = Json.createArrayBuilder();\n info.getObservers().forEach(y -> {\n // do not print agents_body observation\n if (!info.getId().getArtifactType().equals(AgentBodyArtifact.class.getName())) {\n observers.add(y.getAgentId().getAgentName());\n }\n });\n artifact.add(\"observers\", observers);\n\n // linked artifacts\n /* not used anymore\n var linkedArtifacts = Json.createArrayBuilder();\n info.getLinkedArtifacts().forEach(y -> {\n // linked artifact node already exists if it belongs to this workspace\n linkedArtifacts.add(y.getName());\n });\n artifact.add(\"linkedArtifacts\", linkedArtifacts);*/\n\n return artifact.build();\n }",
"public abstract String getPath();",
"public abstract String getPath();",
"public abstract List<AbstractDeploymentArtifact> getDeploymentArtifacts();",
"@SneakyThrows\n public void addURL(Path path) {\n if (ADD_URL == null || this.classLoader == null) {\n return;\n }\n try {\n ADD_URL.invoke(this.classLoader, path.toUri().toURL());\n } catch (IllegalAccessException | InvocationTargetException | MalformedURLException e) {\n e.printStackTrace();\n }\n }",
"public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;"
]
| [
"0.69283044",
"0.62041074",
"0.61134285",
"0.6029385",
"0.5825687",
"0.57264984",
"0.56127644",
"0.55827945",
"0.5573217",
"0.5565332",
"0.55176985",
"0.55016965",
"0.5430393",
"0.53378046",
"0.53307253",
"0.5307527",
"0.52641904",
"0.52566975",
"0.5255577",
"0.52465725",
"0.5233887",
"0.52295876",
"0.522845",
"0.5227612",
"0.52271956",
"0.5212976",
"0.5209781",
"0.51955116",
"0.517613",
"0.51701266",
"0.5142775",
"0.5129159",
"0.5126031",
"0.51157653",
"0.50983125",
"0.5077689",
"0.50761914",
"0.5070189",
"0.5069248",
"0.5062118",
"0.505348",
"0.5037326",
"0.503602",
"0.5010268",
"0.5006445",
"0.5004785",
"0.49963167",
"0.4981804",
"0.4980874",
"0.49710682",
"0.49708974",
"0.4965063",
"0.49361038",
"0.49343914",
"0.49331403",
"0.49261424",
"0.4886164",
"0.48827824",
"0.4864465",
"0.48609558",
"0.48604083",
"0.48325098",
"0.48223773",
"0.48177114",
"0.48138112",
"0.4805552",
"0.48054013",
"0.4801103",
"0.47887945",
"0.47871122",
"0.47863743",
"0.47826445",
"0.47817743",
"0.47632724",
"0.47628823",
"0.47604334",
"0.4759309",
"0.47496286",
"0.4747655",
"0.47467226",
"0.47466695",
"0.47410166",
"0.47407183",
"0.47373924",
"0.47356325",
"0.4735099",
"0.47304153",
"0.4717779",
"0.47088674",
"0.47076562",
"0.47043604",
"0.47013238",
"0.46881446",
"0.46871793",
"0.46866766",
"0.46863252",
"0.46863252",
"0.46858513",
"0.4678179",
"0.46759576"
]
| 0.72198 | 0 |
Http request to iss.moex.com | @Override
public void configure() throws Exception {
from("direct:fetchSecuritiesMoexService").routeId("Route fetchSecuritiesMoexService")
.setProperty("secId", simple("${body}"))
.setHeader("secId", exchangeProperty("secId"))
.setHeader(Exchange.HTTP_QUERY, simple("iss.meta=off&securities.columns=secid,name,regnumber,emitent_title&q=${headers.secId}"))
.doTry()
.to("https://iss.moex.com/iss/securities.xml?httpMethod=GET")
.convertBodyTo(String.class)
.doCatch(CamelException.class)
.log(LoggingLevel.ERROR, "${exchangeProperty.CamelExceptionCaught}")
.setBody(constant("error"))
.end()
.choice()
.when(simple("${body} == 'error'")).to("direct:returnNull")
.otherwise().to("direct:validXmlMoexService")
.end()
;
//Valid XML
from("direct:validXmlMoexService").routeId("Route validXmlMoexService")
.convertBodyTo(String.class)
.doTry()
.to("validator:xsd/securities.xsd")
.doCatch(ValidationException.class)
.log(LoggingLevel.ERROR, "MoexService: Failed validation xml")
.setBody(constant("error"))
.end()
.choice()
.when(simple("${body} == 'error'")).to("direct:returnNull")
.otherwise().to("direct:unmarshalMoexService")
.end()
;
//Unmarshal
from("direct:unmarshalMoexService").routeId("Route unmarshalMoexService")
.setHeader("secId", exchangeProperty("secId"))
.transform(xpath("//document/data[@id='securities']/rows/row[@secid=function:simple('${headers.secId}')]"))
.unmarshal(jaxbSec)
.process(MoexFetchSecuritiesRouter::convertXmlToSecuritiesEntity)
;
// route return body = null
from("direct:returnNull")
.routeId("Route returnNull")
.transform().body().setBody(constant(null))
.log("return: body = null")
// .stop()
;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void trySendReqOSS()\n {\n Auth auth = new Auth();\n String authorization = generateOSSAuthHeader(auth.getId(), auth.getSecret(), \"GET\", \"/xeduo/index.html\");\n String date = getDateGMT();\n HttpRequest request = HttpUtil.createRequest(Method.GET, \"http://xeduo.oss-cn-hongkong.aliyuncs.com/index.html\");\n request.header(\"Authorization\", authorization);\n request.header(\"Date\",date);\n HttpResponse response = request.execute();\n System.out.println(request);\n System.out.println(response);\n }",
"@Test\n public void doRequestURL() throws IOException, NoSuchAlgorithmException, KeyManagementException {\n doRequest(\"https://login.cloud.huawei.com/oauth2/v2/token\");\n\n\n //doRequestWithOutHttps(\"https://124.74.46.118:7012/business/service\");\n //doRequestWithOutHttpsPool(\"https://124.74.46.118:7012/business/service\");\n }",
"Request mo35725m0();",
"private String sendRequest(String requestUrl) throws Exception {\n\t\t \n\t\tURL url = new URL(requestUrl);\n\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\n\t\tconnection.setRequestMethod(\"GET\");\n\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n \n\t\tBufferedReader in = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(connection.getInputStream(), \"UTF-8\"));\n\t\t\n\t\tString responseCode = Integer.toString(connection.getResponseCode());\n\t\tif(responseCode.startsWith(\"2\")){\n\t\t\tString inputLine;\n\t\t\tStringBuffer response = new StringBuffer();\n \n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tresponse.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\t\t\tconnection.disconnect();\n\t\t\treturn response.toString();\n \t} else {\n \t\tSystem.out.println(\"Unable to connect to \"+requestUrl+\n \t\t\". Please check whether the instance is up and also the security group settings\"); \n\t\t\tconnection.disconnect();\n \t\treturn null;\n\t \t} \n\t}",
"public static Response doGetRequest(String url) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"Content-Type\", \"text/plain\")\n .build();\n Response response = client.newCall(request).execute();\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public String issueGetRequest(String query) {\n URL url;\n String result = \"\";\n\n return \"valid\";\n /**\n * Todo: When server API is up and running uncomment this.\n *\n * try { url = new URL(server + \"?\" + query); BufferedReader br = new\n * BufferedReader(new InputStreamReader(url.openStream())); String\n * strTemp = \"\";\n * \n * while (null != (strTemp = br.readLine())) { result = strTemp; }\n * \n * } catch (Exception e) { e.printStackTrace(); }\n * \n * return result;\n */\n }",
"public InputStream sendGetRequest(String url) throws MCDSException {\n\t\tInputStream xmlDataStream = null;\n\t\tTransporter transporter = new Transporter();\n\t\txmlDataStream = transporter.execute(url);\n\t\treturn xmlDataStream;\n\t}",
"private static String get_request(String uri, boolean isChecking, String token) throws IOException {\r\n URL url = new URL(uri);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\r\n connection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74\");\r\n if (isChecking) {\r\n connection.setRequestProperty(\"Authorization\", token);\r\n }\r\n connection.setRequestMethod(\"GET\");\r\n InputStream responseStream = connection.getInputStream();\r\n if (debug) {\r\n System.out.println(\"GET - \"+connection.getResponseCode());\r\n }\r\n try (Scanner scanner = new Scanner(responseStream)) {\r\n String responseBody = scanner.useDelimiter(\"\\\\A\").next();\r\n if (debug) {\r\n System.out.println(responseBody);\r\n }\r\n return responseBody;\r\n } catch (Exception e) {\r\n return \"ERROR\";\r\n }\r\n }",
"private Response makeRequest(String url) throws IOException, IllegalStateException {\n // Make the request\n Request req = new Request.Builder()\n .url(url)\n .addHeader(\"token\", NOAA.KEY)\n .build();\n Response res = client.newCall(req).execute();\n return res;\n }",
"private static HttpResponse sendGet() throws Exception {\n // Create the Call using the URL\n HttpGet http = new HttpGet(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }",
"private String issuer() {\n return \"spoqn.com\";\n }",
"String getRequest(String url);",
"public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }",
"HttpGet getRequest(HttpServletRequest request, String address) throws IOException;",
"private String getResponseFromHttpUrl(URL url) throws IOException {\n HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();\n urlConnection.addRequestProperty(\"Authorization\",\"Bearer JVNDXWXVDDQN2IJUJJY7NQXCPS23M7DX\");\n try{\n InputStream in = urlConnection.getInputStream();\n\n Scanner scanner = new Scanner(in);\n scanner.useDelimiter(\"\\\\A\");\n boolean hasInput = scanner.hasNext();\n if(hasInput){\n return scanner.next();\n }else{\n return null;\n }\n }finally {\n urlConnection.disconnect();\n }\n }",
"public static String sendGetRequest(String addr,String[] head)\n\t{\n\t\tString response = null;\n\t\n\t\ttry\n\t\t{\n\t\t\tURL url = new URL(addr);\n\t\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\t\t\t//String encoding = new sun.misc.BASE64Encoder().encode(\"username \t assword\".getBytes());\n\t\t\t//conn.setRequestProperty (\"Authorization\", \"Basic \" + encoding);\n\t\t\tif(head!=null)\n {\n\t for(int i=0;i<head.length;i=i+2)\n\t {\n\t \tconnection.setRequestProperty(head[i], head[i+1]);\n\t \t\n\t }\n }\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\n\t\t\tconnection.connect();\n\t\t\tInputStream in = connection.getInputStream();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\t\tconnection.disconnect();\n\t\t\tresponse = reader.readLine();\n\t\t\t//System.out.println(text);\n\t\t\n\t\t\t\n\t\t\t}catch(IOException ex)\n\t\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"made it here\");\n\t\t}\n\treturn response;\n\t\n\t}",
"public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }",
"private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}",
"private static String useAPI(String urlString) throws IOException {\n String inline = \"\";\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n int responsecode = conn.getResponseCode();\n if(responsecode == 200) {\n Scanner sc = new Scanner(url.openStream());\n while(sc.hasNext()) {\n inline += sc.nextLine();\n }\n sc.close();\n conn.disconnect();\n return inline;\n }\n conn.disconnect();\n return \"[]\";\n }",
"public String susi(String query) throws Exception {\n\n \t\tthis.query = query;\n \t\tif (this.query != \"\") {\n \t\t\tString url = this.susiUrl + \"?q=\" +this.query;\n\n \t\t\tURL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t\t} else {\n\t\t response = \"{'error': 'Looks like there is a problem in susi replying.'}\";\n\t\t\t}\n\n\t\t\treturn response;\n \t\t} else {\n \t\t\treturn \"{'error': 'Please ask susi something.'}\";\n \t\t}\n \t}",
"private String requestGet(URL url) throws CheckPasswordException {\n \n \tSSLContext ctx = null;\n \t\n \t// Try TLS algorithms until we find something we understand.\n \t// Should try from newest to oldest so that we use the most secure\n \t// TLS algorithm we can.\n \tfor(String algo : modernTls) { \n\t \ttry {\n\t \tctx = SSLContext.getInstance(algo);\n\t \tbreak;\n\t }catch(NoSuchAlgorithmException e) {\n\t \t// Move on to the next one\n\t }\n \t}\n \t\n \tif(ctx == null) {\n \t\tthrow new CheckPasswordException(\"Unable to find a supported, secure TLS version\", CheckPasswordErrorCode.BadConfiguration);\n \t}\n\n \t// The initial attempt should not count as a retry, so +1 \t\n \tfor(int attempts = getNumRetries() + 1; attempts >0; attempts--){\n\t \ttry {\n\t \t\t// Use default security controls, including certificate checks\n\t \t\tctx.init(null, null, null);\n\t \t} catch(KeyManagementException e){\n\t \t\tthrow new CheckPasswordException(\"Connection failed: could not read keystore\", e, CheckPasswordErrorCode.BadConfiguration);\n\t \t}\n\t SSLContext.setDefault(ctx);\n\t\n\t HttpsURLConnection connection;\n\t try {\n\t \tconnection = (HttpsURLConnection) url.openConnection();\n\t } catch (IOException e) {\n\t \tthrow new CheckPasswordException(\"Connection failed: HTTPS connection could not be created\", e, CheckPasswordErrorCode.BadConfiguration);\n\t }\n\t \n\t try {\n\t \tconnection.setRequestMethod(\"GET\");\n\t \tconnection.setRequestProperty(\"User-Agent\", userAgent);\n\t \tif(getApiKey() != null) {\n\t \t\tconnection.setRequestProperty(\"hibp-api-key\", getApiKey());\n\t \t}\n\t } catch (ProtocolException e) {\n\t \tthrow new CheckPasswordException(\"Connection failed: protocol exception\", e, CheckPasswordErrorCode.APICallFailure);\n\t }\n\t\n\t \n\t try {\n\t \t\n\t \t// Handle non-200 results. We can only \"fix\" a 429 Too Many Requests though.\n\t \tint status = connection.getResponseCode();\n\t \tif(status != 200) {\n\t \t\tif(status == 429) {\n\t \t\t\tString s_delay = connection.getHeaderField(\"retry-after\");\n\t \t\t\ttry {\n\t \t\t\t\tint delay = Integer.parseInt(s_delay);\n\t \t\t\t\tif(delay > getMaxWait()) {\n\t \t\t\t\t\tthrow new CheckPasswordException(\"API retry-after delay longer than maxWait\", CheckPasswordErrorCode.APICallFailure);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t// sleep expects milliseconds\n\t \t\t\t\ttry {\n\t \t\t\t\t\tThread.sleep(delay * 1000);\n\t \t\t\t\t\tcontinue;\n\t \t\t\t\t}catch(InterruptedException ex) {\n\t \t\t\t\t\tthrow new CheckPasswordException(\"Interrupted while waiting to retry request\", ex, CheckPasswordErrorCode.BadConfiguration);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t}catch(NumberFormatException ex) {\n\t \t\t\t\tthrow new CheckPasswordException(\"Unparsable retry-after value from API\", ex,CheckPasswordErrorCode.APICallFailure);\n\t \t\t\t}\n\t \t\t}\n\t \t\telse {\n\t \t\t\tthrow new CheckPasswordException(String.format(\"Received status code {0} from API\", status), CheckPasswordErrorCode.APICallFailure);\n\t \t\t}\n\t \t}\n\t \t\n\t \t// Read the response into a String because it's easier to work with.\n\t \tInputStream responseIS = (InputStream) connection.getInputStream();\n\t \tStringBuilder textBuilder = new StringBuilder();\n\t \tint c;\n\t \twhile( (c = responseIS.read()) != -1 ){\n\t \t\ttextBuilder.append((char) c);\n\t \t}\n\t \tString response = textBuilder.toString();\n\t\n\t \treturn response;\n\t } catch (IOException e) {\n\t \tthrow new CheckPasswordException(\"Could not read API response\", e, CheckPasswordErrorCode.APICallFailure);\n\t }\n \t}\n \t\n \t// If we were successful, we returned from inside the for loop. Only wait to get here\n \t// was to exhaust our retries on a 429 Too Many Requests\n \tthrow new CheckPasswordException(\"Exhausted retries and failed to get a successful response from API\", CheckPasswordErrorCode.APICallFailure);\n \n }",
"@Test\n public void getRequest1() {\n str = METHOD_GET + \"/JavaPower.gif \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.devresource.org\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n \"Range-Unit: 3388 | 1024\";\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/JavaPower.gif\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(\"Range-Unit\"), \"3388 | 1024\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }",
"public void httpclient(String url){\n\t\t\r\n\t\t\r\n\t\tString httpUrl =BASIC_URL+url;\r\n\t\t\r\n\t\tSystem.out.println(httpUrl);\r\n\t\t\r\n\t\tHttpGet method =new HttpGet(httpUrl);\r\n\t\t\r\n\t\tmethod.setHeader(\"Content-Type\",\"application/json\");\r\n\t\tmethod.setHeader(\"charset\",\"UTF-8\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tCloseableHttpResponse res =client.execute(method,context);\r\n\r\n\t\t AuthState targetAuthState = context.getTargetAuthState();\r\n\t\t System.out.println(\"Target auth state: \" + targetAuthState.getState());\r\n\t\t System.out.println(\"Target auth scheme: \" + targetAuthState.getAuthScheme());\r\n\t\t System.out.println(\"Target auth credentials: \" + targetAuthState.getCredentials());\r\n\t\t\t\r\n\t\t HttpEntity ent =res.getEntity();\r\n\t\t \r\n\t\t if (ent != null) { \r\n System.out.println(\"Response content length: \" + ent.getContentLength()); \r\n System.out.println(ent+\"3214242423\");\r\n \r\n System.out.println(EntityUtils.toString(ent));\r\n } \r\n\t\t \r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"R request();",
"public void sendToAdmin(String sessionid, Smsmodel sms, String vals) throws ProtocolException, MalformedURLException, IOException {\r\n String val = null;\r\n System.out.println(\"hello boy \" + vals);\r\n String sender = \"DND_BYPASSGetItDone\";\r\n URL url = new URL(\"http://www.smslive247.com/http/index.aspx?cmd=sendmsg&sessionid=\" + sessionid + \"&message=\" + sms.getVendorMessage() + \"&sender=\" + sender + \"&sendto=\" + vals + \"&msgtype=0\");\r\n //http://www.bulksmslive.com/tools/geturl/Sms.php?username=abc&password=xyz&sender=\"+sender+\"&message=\"+message+\"&flash=0&sendtime=2009-10- 18%2006:30&listname=friends&recipients=\"+recipient; \r\n //URL gims_url = new URL(\"http://smshub.lubredsms.com/hub/xmlsmsapi/send?user=loliks&pass=GJP8wRTs&sender=nairabox&message=Acct%3A5073177777%20Amt%3ANGN1%2C200.00%20CR%20Desc%3ATesting%20alert%20Avail%20Bal%3ANGN%3A1%2C342%2C158.36&mobile=08065711040&flash=0\");\r\n final String USER_AGENT = \"Mozilla/5.0\";\r\n\r\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\r\n con.setRequestMethod(\"GET\");\r\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\r\n int responseCode = con.getResponseCode();\r\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n String inputLine;\r\n StringBuffer response = new StringBuffer();\r\n // System.out.println(messageModel.getBody() + \" dude\");\r\n while ((inputLine = in.readLine()) != null) {\r\n response.append(inputLine);\r\n }\r\n in.close();\r\n String responseCod = response.toString();\r\n }",
"public String sendGetSecure(String url)\n\t{\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL https_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpsURLConnection secure_connection = (HttpsURLConnection)https_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n\t}",
"@Override\r\n public void sendBySI(String teacherID, String studentID,String content)\r\n throws Exception {\n \tString url = \"http://wps.139910.com:88/XXT_Assist/servlet/XXT_TeacherSms?TeacherID=\"+teacherID+\"&StudentID=\"+studentID+\"&Message=\"+URLEncoder.encode(content, \"gb2312\");\r\n// \tSystem.out.println(teacherID);\r\n// \tSystem.out.println(studentID);\r\n// \tSystem.out.println(content);\r\n// \tSystem.out.println(url);\r\n HttpClient client = new HttpClient(new MultiThreadedHttpConnectionManager());\r\n client.getHostConfiguration().setHost(\"wps.139910.com\", 88);\r\n\r\n // PostMethod method = new PostMethod(url);\r\n // post.setParameter(\"mobiles\", mobile);\r\n // post.setParameter(\"content\", content);\r\n GetMethod method = new GetMethod(url);\r\n int statusCode = client.executeMethod(method);\r\n\r\n try {\r\n if (statusCode != HttpStatus.SC_OK) {\r\n throw new Exception(\"SI外挂教育OA短信发送接口访问失败\");\r\n }\r\n\r\n InputStream responseStream = method.getResponseBodyAsStream();\r\n String res = FileUtil.inputStream2String(responseStream, \"utf-8\");\r\n System.out.println(\"========================>\"+res);\r\n if (res.indexOf(\"发送成功\") == -1) {\r\n throw new Exception(\"SI外挂教育OA短信发送接口发送失败\");\r\n }\r\n } catch (Exception e) {\r\n throw e;\r\n } finally {\r\n method.releaseConnection();\r\n }\r\n }",
"public static JSONObject sendRequest(){\n \tJSONObject exchangeRates = null;\n \t \n try {\n \t stream = new URL(BASE_URL + \"?access_key=\" + ACCESS_KEY).openStream();\n \t BufferedReader rd = new BufferedReader(new InputStreamReader(stream, Charset.forName(\"UTF-8\")));\n \t exchangeRates = new JSONObject(streamToString(rd)).getJSONObject(\"rates\");;\n \n }catch(MalformedURLException e) {\n \t e.printStackTrace();\n \t \n }catch (IOException e) {\n \n e.printStackTrace();\n }catch (JSONException e) {\n \n e.printStackTrace();\n } \n\t\treturn exchangeRates;\n \n }",
"public String makeNetworkCall(String s) {\n\n try {\n URL url = new URL(s);\n\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n\n httpURLConnection.setRequestMethod(\"GET\");\n\n httpURLConnection.setConnectTimeout(3000);\n\n InputStream is = httpURLConnection.getInputStream();\n\n Scanner scanner = new Scanner(is);\n\n //This allows the scanner to read the entire file content in one go\n scanner.useDelimiter(\"\\\\A\");\n\n String result = \"\";\n\n if (scanner.hasNext()) {\n result = scanner.next();\n }\n\n return result;\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.e(\"TAG\", \"makeNetworkCall: Incorrect URL : \" + s);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return \"Some unexpected error occurred!\";\n\n }",
"String postRequest(String url);",
"@Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }",
"public String enviarInvitacion(String url, String numero, String numero2) {\r\n\t\t // Create a new HttpClient and Post Header\r\n\t\t HttpClient httpclient = new DefaultHttpClient();\r\n\t\t HttpPost httppost = new HttpPost(url);\r\n\t\t httppost.setHeader(\"User-Agent\", \"mimesic company\");\r\n\t\t String output = null;\r\n\t\t\r\n\t\t try {\r\n\t\t \r\n\t\t \t\r\n\t\t List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\r\n\t\t nameValuePairs.add(new BasicNameValuePair(\"numero\", numero));\r\n\t\t nameValuePairs.add(new BasicNameValuePair(\"invitado\", numero2));\r\n\t\t \r\n\t\t httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n\t\t\r\n\t\t // Execute HTTP Post Request\r\n\t\t HttpResponse response = httpclient.execute(httppost);\r\n\t\t \r\n\t\t HttpEntity httpEntity = response.getEntity();\r\n\t output = EntityUtils.toString(httpEntity);\r\n\t \r\n\t\t \t \r\n\t\t } catch (ClientProtocolException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t } catch (IOException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t }\r\n\t\t return output;\r\n\t\t \t \r\n\t\t}",
"private void makeSampleHttpRequest2(String url) {\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n result_msn = response.toString();\r\n //Enviamos el mensaje de texto\r\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\r\n int hasSMSPermission = checkSelfPermission(Manifest.permission.SEND_SMS);\r\n if (hasSMSPermission != PackageManager.PERMISSION_GRANTED) {\r\n requestPermissions(new String[] {Manifest.permission.SEND_SMS},0);\r\n }\r\n sendMySMS();\r\n }\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n // Handle your error types accordingly.For Timeout & No connection error, you can show 'retry' button.\r\n // For AuthFailure, you can re login with user credentials.\r\n // For ClientError, 400 & 401, Errors happening on client side when sending api request.\r\n // In this case you can check how client is forming the api and debug accordingly.\r\n // For ServerError 5xx, you can do retry or handle accordingly.\r\n if( error instanceof NetworkError) {\r\n } else if( error instanceof ClientError) {\r\n result_msn = error.toString();\r\n } else if( error instanceof ServerError) {\r\n result_msn = error.toString();\r\n } else if( error instanceof AuthFailureError) {\r\n result_msn = error.toString();\r\n } else if( error instanceof ParseError) {\r\n result_msn = error.toString();\r\n } else if( error instanceof NoConnectionError) {\r\n result_msn = error.toString();\r\n } else if( error instanceof TimeoutError) {\r\n result_msn = error.toString();\r\n }\r\n showToast(error.getMessage());\r\n }\r\n });\r\n stringRequest.setShouldCache(true);\r\n stringRequest.setTag(TAG_REQUEST);\r\n mVolleyQueue2.add(stringRequest);\r\n }",
"private String sendGetRequest() throws IOException {\n\t\tString inline = \"\";\n\t\tURL url = new URL(COUNTRYAPI);\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.connect();\n\t\tint responsecode = conn.getResponseCode();\n\t\tif (responsecode != 200) {\n\t\t\tthrow new RuntimeException(\"HttpResponseCode: \" + responsecode);\n\t\t} else {\n\t\t\tScanner sc = new Scanner(url.openStream());\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinline += sc.nextLine();\n\t\t\t}\n\t\t\tsc.close();\n\t\t}\n\t\treturn inline.toString();\n\t}",
"public static void request(int gasForResponse) {\n OracleContract.request(\"https://www.axlabs.com\", \"$.info\", \"callback\", \"\", gasForResponse);\n }",
"public static String sendLiveRequest(){\n\n // The following line initializes the HttpGet Object with the URL in order to send a request\n HttpGet get = new HttpGet(BASE_URL + ENDPOINT + \"?access_key=\" + ACCESS_KEY);\n\n try {\n CloseableHttpResponse response = httpClient.execute(get);\n HttpEntity entity = response.getEntity();\n\n // the following line converts the JSON Response to an equivalent Java Object\n JSONObject exchangeRates = new JSONObject(EntityUtils.toString(entity));\n \n Date timeStampDate = new Date((long)(exchangeRates.getLong(\"timestamp\")*1000)); \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(timeStampDate);\n \n String USDUAH = \"1 \" + exchangeRates.getString(\"source\") + \" in UAH : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDUAH\") + \" (Date: \" + formattedDate + \")\";\n String USDEUR = \"1 \" + exchangeRates.getString(\"source\") + \" in EUR : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDEUR\") + \" (Date: \" + formattedDate + \")\"; \n String USDGBP = \"1 \" + exchangeRates.getString(\"source\") + \" in GBP : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDGBP\") + \" (Date: \" + formattedDate + \")\";\n String USDJPY = \"1 \" + exchangeRates.getString(\"source\") + \" in JPY : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDJPY\") + \" (Date: \" + formattedDate + \")\";\n return USDUAH+\"\\n\"+USDEUR+\"\\n\"+USDGBP+\"\\n\"+USDJPY;\n } catch (ClientProtocolException e) { \n e.printStackTrace();\n Main.logger.log(Level.SEVERE, \"Exception: \", e);\n } catch (IOException e) {\n e.printStackTrace();\n Main.logger.log(Level.SEVERE, \"Exception: \", e);\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n Main.logger.log(Level.SEVERE, \"Exception: \", e);\n }\n\t\treturn null;\n }",
"public FellowCommuReq() {\n super();\n setRequestUrl(\"FellowCommuReq\");\n }",
"public ServiceResponse getRequest(String url) throws IOException {\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(url);\n HttpResponse httpResponse = client.execute(request);\n ServiceResponse response = new ServiceResponse(httpResponse.getStatusLine().getStatusCode());\n response.setReader(new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent())));\n return response;\n }",
"String getResponse();",
"private String getRequest(String requestUrl) throws IOException {\n URL url = new URL(requestUrl);\n \n Log.d(TAG, \"Opening URL \" + url.toString());\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setDoInput(true);\n urlConnection.connect();\n String response = streamToString(urlConnection.getInputStream());\n \n return response;\n }",
"private static String makeRequest(String page, String host) {\n\t\tString format = \"GET %s HTTP/1.0\\r\\n\"\n\t\t\t\t\t\t+\"host: %s\\r\\n\\r\\n\";\n\t\treturn String.format(format, page, host);\n\t}",
"private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private HttpResponse httpRequest(URL url, List<Header> headers, String method) throws IOException {\n\n BufferedReader streamReader;\n\n HttpURLConnection connection = setupConnection(url,headers,method);\n connection.setDoOutput(false);\n connection.connect();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n connection.disconnect();\n\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return new HttpResponse(responseHeaders,httpResponseCode,sb.toString().trim());\n }",
"java.lang.String getResponse();",
"public void testHttpGetMarcadores() {\n HttpGet httpget = new HttpGet(\"http://www.movil.resultados-futbol.com/segunda\");\n HttpClient httpclient = new DefaultHttpClient();\n HttpResponse response = null;\n\n try {\n response = httpclient.execute(httpget);\n } catch(Exception e) {\n fail(\"Excepcion\");\n }\n\n assertEquals(HttpStatus.SC_OK, response.getStatusLine().getStatusCode() );\n }",
"@Test\n public void httpEasyRequest() throws HttpResponseException, IOException {\n Logger logger = (Logger) LoggerFactory.getILoggerFactory().getLogger(Logger.ROOT_LOGGER_NAME);\n logger.setLevel(Level.ALL);\n \n HttpEasy.withDefaults().proxyConfiguration(ProxyConfiguration.AUTOMATIC);\n\n JsonReader json = HttpEasy.request()\n .baseUrl(\"http://httpbin.org\")\n .header(\"hello\", \"world\")\n .path(\"get\")\n .queryParam(\"name\", \"fred\")\n .logRequestDetails()\n .get()\n .getJsonReader();\n\n assertThat(json.getAsString(\"url\"), is(\"http://httpbin.org/get?name=fred\"));\n\n }",
"String getEEapi(String url, Map<String, String> params, int expectedStatus);",
"private OCSPResp performRequest(String urlString)\n throws IOException, OCSPException, URISyntaxException\n {\n OCSPReq request = generateOCSPRequest();\n URL url = new URI(urlString).toURL();\n HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection();\n try\n {\n httpConnection.setRequestProperty(\"Content-Type\", \"application/ocsp-request\");\n httpConnection.setRequestProperty(\"Accept\", \"application/ocsp-response\");\n httpConnection.setRequestMethod(\"POST\");\n httpConnection.setDoOutput(true);\n try (OutputStream out = httpConnection.getOutputStream())\n {\n out.write(request.getEncoded());\n }\n\n int responseCode = httpConnection.getResponseCode();\n if (responseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n responseCode == HttpURLConnection.HTTP_SEE_OTHER)\n {\n String location = httpConnection.getHeaderField(\"Location\");\n if (urlString.startsWith(\"http://\") &&\n location.startsWith(\"https://\") &&\n urlString.substring(7).equals(location.substring(8)))\n {\n // redirection from http:// to https://\n // change this code if you want to be more flexible (but think about security!)\n LOG.info(\"redirection to \" + location + \" followed\");\n return performRequest(location);\n }\n else\n {\n LOG.info(\"redirection to \" + location + \" ignored\");\n }\n }\n if (responseCode != HttpURLConnection.HTTP_OK)\n {\n throw new IOException(\"OCSP: Could not access url, ResponseCode \"\n + httpConnection.getResponseCode() + \": \"\n + httpConnection.getResponseMessage());\n }\n // Get response\n try (InputStream in = (InputStream) httpConnection.getContent())\n {\n return new OCSPResp(in);\n }\n }\n finally\n {\n httpConnection.disconnect();\n }\n }",
"private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }",
"@Test(enabled=true)\npublic void getRequest() {\n\t\tString url = \"https://reqres.in/api/users?page=2\";\n\t\t\n\t\t//create an object of response class\n\t\t\n\t\t//Restassured will send get request to the url and store response in response object\n\t\tResponse response = RestAssured.get(url);\n\t\t\n\t\t//We have to put assertion in response code and response data\n\t\tAssert.assertEquals(response.getStatusCode(), 200 , \"Response code Mismatch\");\n\t\t\n\t\tint total_pages = response.jsonPath().get(\"total_pages\");\n\t\tAssert.assertEquals(total_pages, 2 , \"Total Pages value Mismatch\");\n \n}",
"public static String sendSMSThroughGet(String message, String mobileNumber) {\n\n\t\t// Create an instance of HttpClient.\n\t\tHttpClient client = new HttpClient();\n\t\tString finalURL = prepareURL(message, mobileNumber);\n\n\t\tlog(\"Method:sendSMSThroughGet finalURL[\" + finalURL + \"]\");\n\t\t// Create a method instance.\n\t\tGetMethod method = new GetMethod(finalURL);\n\n\t\t// Provide custom retry handler is necessary\n\t\tmethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false));\n\n\t\ttry {\n\t\t\t// Execute the method.\n\t\t\tint statusCode = client.executeMethod(method);\n\n\t\t\tif (statusCode != HttpStatus.SC_OK) {\n\t\t\t\tWebServiceParseErrorCodes.parseErrorCodes(statusCode);\n\t\t\t\tlog(\"Method failed: \" + method.getStatusLine());\n\t\t\t}\n\n\t\t\t// Read the response body.\n\t\t\tbyte[] responseBody = method.getResponseBody();\n\n\t\t\t// Deal with the response.\n\t\t\treturn new String(responseBody);\n\n\t\t} catch (HttpException e) {\n\t\t\tlog(\"Fatal protocol violation: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlog(\"Fatal transport error: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Release the connection.\n\t\t\tmethod.releaseConnection();\n\t\t}\n\t\treturn null;\n\t}",
"private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }",
"public static void main(String[] args) throws Exception {\n String url = \"http://mtosmt.org/issues/mto.04.10.1/toc.10.1.html\"; \n// String url = \"http://www.mtosmt.org/issues/mto.04.10.1/mto.04.10.1.schmalfeldt.html\"; \n \n String baseUrl = \"https://mtosmt.org/\";\n String urlWithoutWww = UrlUtil.delSubDomain(url, \"www\");\n try {\n if (UrlUtil.getUrlPrefix(urlWithoutWww).equals(baseUrl)) {\n System.out.println(urlWithoutWww);\n System.exit(0);\n } \n }\n catch (MalformedURLException mue) {\n System.out.println(\"Malformed URL: \" + mue);\n }\n System.out.println(url);\n System.exit(1);\n }",
"@Test\n\tpublic void testRequest() throws Exception {\n\t\tURI uri=new URIBuilder().setScheme(\"http\")\n\t\t\t\t.setHost(\"www.google.com\")\n\t\t\t\t//.setPort(8080)\n\t\t\t\t.setPath(\"/search\")\n\t\t\t\t.setParameter(\"q\", \"httpclient\")\n\t\t\t\t.setParameter(\"btnG\", \"Google Search\")\n\t\t\t\t.setParameter(\"aq\", \"f\")\n\t\t\t\t.setParameter(\"oq\", \"\")\n\t\t\t\t.build();\n\t\tHttpGet httpGet = new HttpGet(uri);\n\t\tSystem.out.println(httpGet.getURI());\n\t\t\n\t}",
"Call mo35727a(Request request);",
"private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}",
"public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tKeyStore truststore;\r\n\t\tString filepath = System.getenv(\"JAVA_HOME\") + \"\\\\jre\\\\lib\\\\security\\\\cacerts\";\r\n\t\tString passwd=\"changeit\";\r\n\t\t//String filepath =\"d:\\\\12306.jks\";\r\n\t\t//String passwd=\"111111\";\r\n\t\ttry {\r\n\t\t\ttruststore = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\t\ttruststore.load(new FileInputStream(new File(filepath)), passwd.toCharArray());\r\n\r\n\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore, new MyTrustSelfSignedStrategy())\r\n\t\t\t\t\t.build();\r\n\t\t\t\r\n//\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore)\r\n//\t\t\t\t\t.build();\r\n\t\t\tSSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, new String[] { \"TLSv1\" },\r\n\t\t\t\t\tnull, SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);\r\n\t\t\tCloseableHttpClient httpclient = HttpClients.custom().setSSLSocketFactory(sslcsf).build();\r\n\r\n\t\t\tHttpPost httppost = new HttpPost(\"https://ebank.95559.com.cn/corporbank/NsTrans\");\r\n\r\n\t\t\tSystem.out.println(\"executing request\" + httppost.getRequestLine());\r\n\r\n\t\t\tCloseableHttpResponse response = httpclient.execute(httppost);\r\n\t\t\ttry {\r\n\t\t\t\tHttpEntity entity = response.getEntity();\r\n\r\n\t\t\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t\t\tSystem.out.println(response.getStatusLine());\r\n\t\t\t\tif (entity != null) {\r\n\t\t\t\t\tSystem.out.println(\"Response content length: \" + entity.getContentLength());\r\n\t\t\t\t}\r\n\t\t\t\tEntityUtils.consume(entity);\r\n\t\t\t} finally {\r\n\t\t\t\tresponse.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (KeyStoreException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\r\n\t\t} catch (KeyManagementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (CertificateException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tprotected HttpResponse doHttpRequest() throws ClientProtocolException, IOException {\n\t\tHttpRequestGenerator requestor = new HttpRequestGenerator(username, password);\n\t\treturn requestor.makeKeyFetchRequest(keyServerUrl, null);\n\t}",
"@Override\n public String getRequester() {\n return \"http://S-PEPS.gov.xx\";\n }",
"public static Response request(String urlString) {\n HttpURLConnection urlConnection = null;\n InputStream in = null;\n try {\n URL url = new URL(urlString);\n urlConnection = (HttpURLConnection)url.openConnection();\n urlConnection.setConnectTimeout(CONNECT_TIMEOUT);\n urlConnection.setReadTimeout(READ_TIMEOUT);;\n // prefer json to text\n urlConnection.setRequestProperty(\"Accept\", \"application/json,text/plain;q=0.2\");\n in = urlConnection.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line = null;\n StringBuilder sb = new StringBuilder();\n while ((line = br.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n int statusCode = urlConnection.getResponseCode();\n String result = sb.toString().trim();\n if (statusCode == INTERNAL_SERVER_ERROR) {\n JSONObject errorObj = JSON.parseObject(result);\n if (errorObj.containsKey(\"errorMsg\")) {\n return new Response(errorObj.getString(\"errorMsg\"), false);\n }\n return new Response(result, false);\n }\n return new Response(result);\n } catch (IOException e) {\n return new Response(e.getMessage(), false);\n } finally {\n IOUtils.close(in);\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n }\n }",
"private String verifyHttpProcess(String url) {\n synchronized (httpClient) {\n int statusCode = -1;\n try {\n GetMethod get = getCachedMethod(url);\n statusCode = httpClient.executeMethod(get);\n } catch (HttpException e1) {\n String msg = \"Unable to execute GET against the collaboration dataserver at \"\n + url;\n logger.error(msg, e1);\n setOffline(msg);\n } catch (IOException e2) {\n String msg = \"Unable to read the response from the collaboration dataserver at \"\n + url;\n logger.error(msg, e2);\n setOffline(msg);\n }\n\n if ((statusCode == HttpStatus.SC_OK) == false) {\n String msg = \"Dataserver not is not available - received status \"\n + statusCode;\n logger.error(msg);\n setOffline(msg);\n return null;\n } else {\n String urlConfig = \"sessionDataHttpURL : \" + url;\n setOnline(urlConfig);\n return urlConfig;\n }\n }\n }",
"public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static Response doGetRequest(String url, String header_base64encoded) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"cache-control\", \"no-cache\").addHeader(\"authorization\", header_base64encoded)\n .build();\n Response response = client.newCall(request).execute();\n Log.e(\"RESPONSE:\", response.body() + \"Code:\" + response.code() + \"Message:\" + response.message());\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000);\n urlConnection.setConnectTimeout(15000);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the Guardian JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"public static String httpGet(String url) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = null;\r\n \t\tString responseString = null;\r\n \t\tHttpUriRequest request = new HttpGet(url);\r\n \t\trequest.setHeader(\"Accept-Encoding\", \"gzip\");\r\n \t\trequest.setHeader(\"User-Agent\", \"gzip\");\r\n\t\tresponse = client.execute(request);\r\n \t\tif (response.getStatusLine().getStatusCode() != 200) {\r\n \t\t\tthrow new HttpException(\"Server error: \"\r\n \t\t\t\t\t+ response.getStatusLine().getStatusCode());\r\n \t\t} else {\r\n \t\t\tresponseString = parseResponse(response);\r\n \r\n \t\t}\r\n \t\treturn responseString;\r\n \t}",
"@Test\n public void getRequest2() {\n str = METHOD_GET + \"/wiki/page.html \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": ru.wikipedia.org\" + ENDL +\n USER_AGENT + \": Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n CONNECTION_CLOSE;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/wiki/page.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"ru.wikipedia.org\");\n assertEquals(request.getHeader(USER_AGENT),\n \"Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(CONNECTION), CLOSE_STR);\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }",
"public void testURL()\r\n {\r\n\r\n BufferedReader in = null;\r\n PrintStream holdErr = System.err;\r\n String errMsg = \"\";\r\n try\r\n {\r\n\r\n this.setSuccess(false);\r\n\r\n PrintStream fileout = new PrintStream(new FileOutputStream(\"testURLFile.html\"));\r\n System.setErr(fileout);\r\n System.err.println(\"testURL() - entry\");\r\n\r\n System.getProperties().put(\"https.proxyHost\", \"\" + this.getProxyHost());\r\n System.getProperties().put(\"https.proxyPort\", \"\" + this.getProxyPort());\r\n System.getProperties().put(\"http.proxyHost\", \"\" + this.getProxyHost());\r\n System.getProperties().put(\"http.proxyPort\", \"\" + this.getProxyPort());\r\n // System.getProperties().put(\"java.protocol.handler.pkgs\", \"com.sun.net.ssl.internal.www.protocol\");\r\n\r\n URL url = new URL(\"http://www.msn.com\");\r\n\r\n CookieModule.setCookiePolicyHandler(null); // Accept all cookies\r\n // Set the Authorization Handler\r\n // This will let us know waht we are missing\r\n DefaultAuthHandler.setAuthorizationPrompter(this);\r\n HTTPConnection con = new HTTPConnection(url);\r\n con.setDefaultHeaders(new NVPair[] { new NVPair(\"User-Agent\", \"Mozilla/4.5\")});\r\n con.setDefaultAllowUserInteraction(false);\r\n HTTPResponse headRsp = con.Head(url.getFile());\r\n HTTPResponse rsp = con.Get(url.getFile());\r\n\r\n int sts = headRsp.getStatusCode();\r\n if (sts < 300)\r\n {\r\n System.err.println(\"No authorization required to access \" + url);\r\n this.setSuccess(true);\r\n }\r\n else if (sts >= 400 && sts != 401 && sts != 407)\r\n {\r\n System.err.println(\"Error trying to access \" + url + \":\\n\" + headRsp);\r\n }\r\n else if (sts == 407)\r\n {\r\n System.err.println(\r\n \"Error trying to access \"\r\n + url\r\n + \":\\n\"\r\n + headRsp\r\n + \"\\n\"\r\n + \"<HTML><HEAD><TITLE>Proxy authorization required</TITLE></HEAD>\");\r\n this.setMessage(\"Error trying to access \" + url + \":\\n\" + headRsp + \"\\n\" + \"Proxy authorization required\");\r\n }\r\n // Start reading input\r\n in = new BufferedReader(new InputStreamReader(rsp.getInputStream()));\r\n String inputLine;\r\n\r\n while ((inputLine = in.readLine()) != null)\r\n {\r\n System.err.println(inputLine);\r\n }\r\n // All Done - We were success\r\n\r\n in.close();\r\n\r\n }\r\n catch (ModuleException exc)\r\n {\r\n errMsg = \"ModuleException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (ProtocolNotSuppException exc)\r\n {\r\n errMsg = \"ProtocolNotSuppException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (MalformedURLException exc)\r\n {\r\n errMsg = \"MalformedURLException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (FileNotFoundException exc)\r\n {\r\n errMsg = \"FileNotFoundException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n catch (IOException exc)\r\n {\r\n errMsg = \"IOException caught: \" + exc;\r\n errMsg += \"\\nVerify Host Domain address and Port\";\r\n System.err.println(errMsg);\r\n }\r\n finally\r\n {\r\n System.err.println(\"testURL() - exit\");\r\n System.setErr(holdErr);\r\n if (in != null)\r\n {\r\n try\r\n {\r\n in.close(); // ENSURE we are CLOSED\r\n }\r\n catch (Exception exc)\r\n {\r\n // Do Nothing, It will be throwing an exception \r\n // if it cannot close the buffer\r\n }\r\n }\r\n this.setMessage(errMsg);\r\n System.gc();\r\n }\r\n\r\n }",
"public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }",
"@Ignore\n @Test\n public void testNexmo() {\n LOG.info(\"testNexmo\");\n\n final ResteasyProviderFactory factory = new ResteasyProviderFactory() {\n {\n this.addContextResolver(new RestEasyJacksonContextResolver());\n }\n };\n ResteasyProviderFactory.setInstance(factory);\n\n /**\n * Do not use these credentials for real applications purposes. They are here for demonstration\n * purposes only!\n */\n final NexmoProperties nexmoProperties =\n new NexmoProperties(\"http://rest.nexmo.com\", \"<username>\", \"<password>\", \"SpeedTools\", false);\n final SMSProviderConnector connector = new Nexmo(nexmoProperties);\n\n /**\n * The telephone number has been crossed out on purpose. Fill it with your test phone number\n * if needed.\n */\n final Status status =\n connector.sendTextMessage(\"+31650431247\", \"Please ignore. This is a test message using Nexmo. Sent at \" + Json.toJson(UTCTime.now()), 33333L);\n\n LOG.info(\"testNexmo: status={}\", status);\n }",
"@Override\n\tpublic InputStream doGet(String url) {\n\t\tInputStream in = null;\n\t\tHttpGet getRequest = new HttpGet(url);\n\t\tgetRequest.addHeader(\"charset\", HTTP.UTF_8);\n\t\tHttpClient client = new DefaultHttpClient();\n\t\tclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 6000);\n\t\tclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 8000);\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = client.execute(getRequest);\n\t\t\tif(null != response && response.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n\t\t\t\tin = response.getEntity().getContent();\n\t\t\t}\n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn in;\n\t}",
"private static InputStream getHttpConnection(String urlString)\n throws IOException {\n InputStream stream = null;\n URL url = new URL(urlString);\n URLConnection connection = url.openConnection();\n\n try {\n HttpURLConnection httpConnection = (HttpURLConnection) connection;\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.connect();\n\n if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n stream = httpConnection.getInputStream();\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return stream;\n }",
"HttpContent getHttpContent();",
"public static int doGet(String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n // pass the name on the URL line\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\" + \"//\"+id);\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output;\n }\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }",
"public String request(String method, String url, String data) {\n HttpURLConnection connection = null;\n try {\n if ((method.compareTo(\"GET\") == 0) && (data != null) && (!data.isEmpty())) {\n if (url.contains(\"?\"))\n url = url.concat(\"&\");\n else\n url = url.concat(\"?\");\n url = url.concat(data);\n }\n // Create connection\n URL requestUrl = new URL(url);\n connection = (HttpURLConnection) requestUrl.openConnection();\n connection.setRequestProperty(\"Veridu-Client\", this.key);\n if ((this.storage.getSessionToken() != null) && (!this.storage.getSessionToken().isEmpty()))\n connection.setRequestProperty(\"Veridu-Session\", this.storage.getSessionToken());\n connection.setRequestMethod(method);\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(10000);\n connection.setUseCaches(false);\n connection.setDoOutput(true);\n // Send request\n if ((method.compareTo(\"GET\") != 0) && (data != null) && (!data.isEmpty())) {\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(data.getBytes().length));\n connection.setDoInput(true);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(data);\n wr.flush();\n wr.close();\n }\n\n // Get Response\n this.lastCode = connection.getResponseCode();\n InputStream is;\n if (this.lastCode >= 400)\n is = connection.getErrorStream();\n else\n is = connection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n StringBuilder response = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (connection != null)\n connection.disconnect();\n }\n return null;\n }",
"public String sendGet(String url)\n\t{\n\t\t//Getting most relevant user-agent from robots.txt\n\t\tbest_match = findBestMatch();\n\t\t//Deicing whether or not to skip\n\t\tif (shouldSkip(url))\n\t\t{\n\t\t\treturn \"skipped\";\n\t\t}\n\t\tif (url.startsWith((\"https\")))\n\t\t{\n\t\t\treturn sendGetSecure(url);\n\t\t}\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL http_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpURLConnection secure_connection = (HttpURLConnection)http_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n//\t\ttry\n//\t\t{\n//\t\t\t//Deals with secure request\n//\t\t\tif (url.startsWith((\"https\")))\n//\t\t\t{\n//\t\t\t\treturn sendGetSecure(url);\n//\t\t\t}\n//\t\t\t//Parsing host and port from URL\n//\t\t\tURLInfo url_info = new URLInfo(url);\n//\t\t\thost = url_info.getHostName();\n//\t\t\tport = url_info.getPortNo();\n//\t\t\t\n//\t\t\t//Changing Host header if necessary\n//\t\t\theaders.put(\"Host\", host + \":\" + port);\n//\t\t\t\n//\t\t\t//Getting file path of URL\n//\t\t\tString file_path = url_info.getFilePath();\n//\t\t\t\n//\t\t\t//If we weren't able to find a host, URL is invalid\n//\t\t\tif (host == null)\n//\t\t\t{\n//\t\t\t\treturn \"invalid url\";\n//\t\t\t}\n//\t\t\t\n//\t\t\t//Delaying visits based on robots.txt crawl delay\n//\t\t\tcrawlDelay();\n//\t\t\t\n//\t\t\t//Otherwise, opening up socket and sending request with all headers\n//\t\t\tsocket = new Socket(host, port);\n//\t\t\tout = new PrintWriter(socket.getOutputStream(), true);\n//\t\t\tString message = \"GET \" + file_path + \" HTTP/1.1\\r\\n\";\n//\t\t\tfor (String header: headers.keySet())\n//\t\t\t{\n//\t\t\t\tString head = header + \": \" + headers.get(header) + \"\\r\\n\";\n//\t\t\t\tmessage = message + head;\n//\t\t\t}\n//\t\t\tout.println(message);\n//\n//\t\t\t//Creating ResponseParser object to parse the Response\n//\t\t\tp = new ResponseParser(socket);\n//\t\t\t\n//\t\t\t//If we didn't get any headers in the response, the URL was invalid\n//\t\t\tif (p.getHeaders().size() == 0)\n//\t\t\t{\n//\t\t\t\treturn (\"invalid url\");\n//\t\t\t}\n//\t\t\t//Otherwise return the contents of the returned document\n//\t\t\treturn p.getData();\n//\t\t} \n//\t\tcatch (UnknownHostException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"Unknown Host Exception\");\n//\t\t\tSystem.err.println(\"Problem url is: http://www.youtube.com/motherboardtv?feature=watch&trk_source=motherboard\");\n//\t\t} \n//\t\tcatch (IOException | IllegalArgumentException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"IO Exception\");;\n//\t\t}\n//\t\t//Return null for all caught exceptions (Servlet will deal with this)\n//\t\treturn null;\n\t}",
"private static HttpResponse<String> sendRequest(String path) {\n\t\t//System.out.println(\"DEBUG2 \"+path);\n\t\tURIBuilder builder = createURIBuilder(path);\n\t\tHttpClient client = HttpClient.newHttpClient();\n\t\tHttpRequest request;\n\t\ttry {\n\t\t\tif(!path.contains(NEW_CLASSIF)) {\n\t\t\t\trequest = HttpRequest.newBuilder()\n\t\t\t\t\t\t.uri(builder.build())\n\t\t\t\t\t\t.timeout(Duration.ofSeconds(30))\n\t\t\t\t\t\t.build();\n\t\t\t\t//System.out.println(\"DEBUG3 creazione request \"+ request.toString() + \" per \" + path);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequest = HttpRequest.newBuilder()\n\t\t\t\t\t\t.uri(builder.build())\n\t\t\t\t\t\t.timeout(Duration.ofHours(1))\n\t\t\t\t\t\t.build();\n\n\t\t\t}\n\t\t\tHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n\t\t\t//System.out.println(\"DEBUG4 risposta \"+response + \" della richiesta \" + path);\n\t\t\treturn response;\n\n\t\t} catch (IOException e) {\n\t\t\tNotification notif = Notification.show(\"Controlla la tua connessione\");\n\t\t\tnotif.setPosition(Position.BOTTOM_END);\n\t\t\tnotif.addThemeVariants(NotificationVariant.LUMO_ERROR);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (URISyntaxException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\n\t}",
"public Observable<SscToken> requestSscToken() {\n return new ServiceConnector<SscToken>(\"TokenWS.php?wsdl\", \"RequestToken\"){}\n .execute(new WSParam(\"IMEI\", credentials.getImei()), \n new WSParam(\"Signature\", credentials.getSignature()),\n new WSParam(\"Salt\", credentials.getSalt()), new WSParam(\"VersionCode\", \n credentials.getVersionCode()));\n }",
"public void sendVerificationCode(int code,String mail,String password) {\n\n headers = new HashMap<>();\n headers.put(\"code\", String.valueOf(code));\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"Content-Type\", \"application/json\");\n try {\n databaseURL = \"http://ec2-18-216-46-195.us-east-2.compute.amazonaws.com:6868/verifiication_complete\";\n sendRequest(databaseURL);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private static InputStream retrieveStream(String url) {\r\n\t\tDefaultHttpClient client = new DefaultHttpClient();\r\n\t\tHttpGet getRequest = new HttpGet(url);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tHttpResponse getResponse = client.execute(getRequest);\r\n\t\t\tfinal int statusCode = getResponse.getStatusLine().getStatusCode();\r\n\t\t\tSystem.out.println(statusCode);\r\n\t\t\t\r\n\t\t\tif(statusCode != HttpStatus.SC_OK){\r\n\t\t\t\t//Log.w(getClass().getSimpleName(),\r\n\t\t\t\t\t\t//\"Error \" + statusCode + \" for URL \" + url);\r\n\t\t\t\tSystem.out.println(statusCode);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tHttpEntity getResponseEntity = getResponse.getEntity();\r\n\t\t\treturn getResponseEntity.getContent();\r\n\t\t}\r\n\t\t\r\n\t\tcatch(IOException e){\r\n\t\t\tgetRequest.abort();\r\n\t\t\t//Log.w(getClass().getSimpleName(),\"Error for URL \" + url, e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static HttpURLConnection openConn(String url, String xKey) throws MalformedURLException, IOException\n\t{\n\t\t//Lancement de la connexion\n\t\tHttpURLConnection con = (HttpURLConnection)new URL(url).openConnection();\n\t\t\n\t\t//Mise en place du xKey et des options\n\t\tcon.setRequestProperty(\"X-Key\", xKey);\n\t\tcon.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\treturn (con);\n\t}",
"public String requestContent(String urlStr) {\n String result = null;\n HttpURLConnection urlConnection;\n try {\n URL url = new URL(urlStr);\n urlConnection = (HttpURLConnection) url.openConnection();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n try {\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n result = convertStreamToString(in);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n return result;\n }",
"public static void simple() throws IOException {\n OkHttpClient client = new OkHttpClient()\n .newBuilder()\n .connectTimeout(5, TimeUnit.SECONDS)\n .build();\n\n Request request = new Request.Builder()\n .url(\"http://www.ncq8.com/test.php\")\n .header(\"X-TEST\", \"test\")\n .header(\"User-Agent\", \"Chrome\")\n .build();\n\n\n Response response = client.newCall(request).execute();\n\n // 响应代码\n if (!response.isSuccessful()) {\n throw new IOException(\"服务器端错误: \" + response);\n }\n int httpCode = response.code();\n System.out.println(\"Status Code:\" + httpCode);\n\n // 单个响应头\n String server = response.header(\"Server\");\n System.out.println(\"Server:\" + server);\n\n // 响应头数组\n Headers headers = response.headers();\n for (int i = 0; i < headers.size(); i++) {\n System.out.println(headers.name(i) + \":\" +headers.value(i));\n }\n\n // 正文\n ResponseBody body = response.body();\n System.out.println(body.contentType().charset());\n System.out.println(body.contentType().type());\n System.out.println(body.contentLength());\n System.out.println(body.string());\n }",
"public String getSoundCloud(String urlString) {\n\t\tSystem.setProperty(\"http.keepAlive\", \"false\");\n\t\tHttpParams httpParameters = new BasicHttpParams();\n\n\t\tint timeoutConnection = 60000 * 20;\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\n\n\t\tint timeoutSocket = 60000 * 20;\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n\t\tHttpProtocolParams.setVersion(httpParameters, HttpVersion.HTTP_1_1);\n\t\tHttpConnectionParams.setSocketBufferSize(httpParameters, 8*1024);\n\n\n\t\tDefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);\n\t\t//HttpGet httppost = new HttpGet(\"https://api.hkgalden.com/f/l?ident=bw\");\n\t\t//\tString urlString = \"http://api.soundcloud.com/users/59420760/playlists.json?client_id=ff9ed5093f7a0302e7633bdfa77dd3f5\";\n\t\tSystem.out.println(\"link : \" + urlString);\n\t\tHttpGet httppost = new HttpGet(urlString);\n\t\t//https://api.soundcloud.com/tracks/163603018/stream.json?client_id=ff9ed5093f7a0302e7633bdfa77dd3f5\n\t\thttppost.addHeader(\"Client ID\", \"ff9ed5093f7a0302e7633bdfa77dd3f5\");\n\t\thttppost.addHeader(\"Client Secret\", \"13f5ba21c1e8ed11356c20804bae1ab1\");\n\n\n\t\ttry {\t\n\t\t\tSystem.out.println(\"Response:\"+ \"start execute\");\n\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\tSystem.out.println(\"Response:\"+response.getStatusLine().getStatusCode());\n\t\t\tHttpEntity getResponseEntity = response.getEntity();\n\t\t\tInputStream httpResponseStream = getResponseEntity.getContent();\n\t\t\tString result = slurp(httpResponseStream , 8192);\n\t\t\treturn result;\n\n\t\t} catch (ClientProtocolException e) {\n\t\t\te.printStackTrace();\t\t\t\n\t\t\treturn e.getMessage();\n\t\t} catch (ConnectTimeoutException e){ \n\t\t\te.printStackTrace();\t\t\t\n\t\t\treturn e.getMessage();\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn e.getMessage();\n\t\t} \t\n\t}",
"public interface INewsApi {\n static final String INEW_BASE_URL = \"http://c.3g.163.com/\";\n\n /**\n * 获取专题\n * eg: http://c.3g.163.com/nc/special/S1451880983492.html\n * @param specialId 专题Id\n * @return\n */\n @Headers(AVOID_HTTP403_FORBIDDEN)\n @GET(\"nc/special/{specialId}.html\")\n Call<ResponseBody> getSpecial(@Path(\"specialId\") String specialId);\n}",
"private String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n return jsonResponse;\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // if url null, return\n if(url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection= (HttpURLConnection)url.openConnection();\n urlConnection.setReadTimeout(10000/*milliseconds*/);\n urlConnection.setConnectTimeout(15000/*milliseconds*/);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n Log.v(LOG_TAG,\"Network request made\");\n\n // if the request was successful(response code 200)\n //then read the input stream and parse the output\n if(urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n }\n else{\n Log.e(LOG_TAG,\"Error Response code: \" + urlConnection.getResponseCode());\n }\n }\n catch (IOException e) {\n Log.e(LOG_TAG,\"Problem retrieving the earthquake JSON results\",e);\n }\n finally {\n if(urlConnection != null) {\n urlConnection.disconnect();\n }\n if(inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"private static void sendProofResult(final URL url, String jwt) {\n final HttpTransport transport = new NetHttpTransport.Builder().build();\n final HttpContent content = new ByteArrayContent(\"text/plain\", jwt.getBytes());\n\n new Thread() {\n @Override\n public void run() {\n try {\n HttpRequest proofResultRequest = transport.createRequestFactory().buildPostRequest(new GenericUrl(url), content);\n HttpResponse response = proofResultRequest.execute();\n logger.info(\"Proof sent to callbackURL\");\n } catch (Exception e) {\n logger.error(\"Sending proof failed: {}\", e.getMessage());\n e.printStackTrace();\n }\n\n }\n }.start();\n }",
"public static InputStream getHttpConnection(String urlString) {\n InputStream stream = null;\n try {\n URL url = new URL(urlString);\n HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection();\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.connect();\n if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n stream = httpConnection.getInputStream();\n }\n } catch (UnknownHostException e1) {\n Log.d(\"MyDebugMsg\", \"UnknownHostexception in getHttpConnection()\");\n e1.printStackTrace();\n } catch (Exception ex) {\n Log.d(\"MyDebugMsg\", \"Exception in getHttpConnection()\");\n ex.printStackTrace();\n }\n return stream;\n }",
"private InputStream dispatchSensorMessage (String uri, String xmlMsg) throws Exception\n {\n URL url = new URL(uri);\n HttpURLConnection httpConn = getURLobject(uri, xmlMsg, url);\n\n if (sessionCookie.length() > 0) {\n httpConn.setRequestProperty(\"Cookie\", sessionCookie.toString());\n if (verbose) {\n System.out.println(\" key [Cookie]\");\n System.out.println(\" value [\" +sessionCookie+ \"]\");\n }\n }\n\n httpConn.connect();\n\n if (xmlMsg != null && xmlMsg.length() > 0)\n {\n OutputStreamWriter wr = new OutputStreamWriter( httpConn.getOutputStream() );\n wr.write(xmlMsg.toString());\n wr.flush();\n wr.close();\n }\n String cookieHeader = httpConn.getHeaderField(\"Set-Cookie\");\n if(cookieHeader != null)\n {\n int index = cookieHeader.indexOf(\";\");\n if(index >= 0)\n {\n sessionCookie = new StringBuilder(cookieHeader.substring(0, index));\n }\n }\n\n if (verbose) {\n System.out.println(\"Header response lines\");\n Map<String, List<String>> map = httpConn.getHeaderFields();\n if (map != null) {\n Set<String> keySet = map.keySet();\n if (keySet != null) {\n Iterator<String> it = keySet.iterator();\n while (it.hasNext()) {\n String key = it.next();\n System.out.println(\" key [\" +key+ \"]\");\n List<String> list = map.get(key);\n if (list != null) {\n Iterator<String> it1 = list.iterator();\n while (it1.hasNext()) {\n String value = it1.next();\n System.out.println(\" value [\" +value+ \"]\");\n }\n }\n }\n }\n }\n }\n\n InputStream response;\n try {\n response = httpConn.getInputStream();\n // httpConn.disconnect();\n } catch (IOException e) {\n System.out.println(\"exception\");\n throw e;\n }\n\n return response;\n\n }",
"public void test_001_Stream() throws Throwable {\n\n final String RESOURCE_URI = \"asimov_it_test_001_SP_PROXYING\";\n String uri = createTestResourceUri(RESOURCE_URI);\n\n HttpRequest request = createRequest().setUri(uri).addHeaderField(\"Cache-Control\" ,\"max-age=500\").getRequest();\n PrepareResourceUtil.prepareResource(uri, false);\n\n //miss\n sendRequest2(request, 10);\n //R1.2 miss\n checkMiss(request, 2, VALID_RESPONSE);\n }",
"private static HttpResponse sendPost() throws Exception {\n // Create the Call using the URL\n HttpPost http = new HttpPost(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }",
"private boolean connectToSubscriberNumber(String id) throws ExecutionException, InterruptedException {\n tmp_nsp.setUrl(main_host + \"/accounts/\" + id);\n\n tmp_nsp.addHeader(\"X-CSRF-Token\", getToken());\n tmp_nsp.addHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n\n tmp_nsp.removeBodyParam(\"utf8\");\n tmp_nsp.removeBodyParam(\"username\");\n tmp_nsp.removeBodyParam(\"password\");\n tmp_nsp.removeBodyParam(\"authenticity_token\");\n\n NetworkServiceParameters response = sendRequest();\n\n if (response.getContent() != null) {\n Pattern pattern = Pattern.compile(\"window.location.href = 'https://www.mega-billing.ru/ru/summary';\");\n Matcher matcher = pattern.matcher(response.getContent());\n\n if (matcher.find())\n return true;\n }\n\n return false;\n }",
"public static void startHttpsPost() {\n String reqUrl=\"https://222.221.16.170:80/coupon/webserver/get\";\n//\t\tString strRequest1=\"{\\\"phoneNo\\\":\\\"18088262389\\\",\\\"message\\\":\\\"测试一下\\\",\\\"act_code\\\":\\\"6\\\"}\";\n String strRequest2=\"{\\\"pay_user\\\":\\\"15393944645\\\",\\\"act_code\\\":\\\"2\\\"}\";\n // 红包充值\n String strRequest4=\"{'pay_user':'17787019595','act_code':'4','efCampaignId':'1305','packetId':'192374332','packetValue':'550','seqCode':'27364326432943947'}\";\n try{\n String strParm=TydicDES.encodeValue(strRequest4);\n String resultStr = sendHtpps(strParm,reqUrl);\n System.out.println(\"--------------返回密文:\"+resultStr);\n System.out.println(\"----解密后的结果:\"+TydicDES.decodedecodeValue(resultStr));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.println();\n }",
"GetResponse() {\n\t}",
"Response mo35726n0() throws IOException;",
"public static void main(String[] args) {\n\r\n\t\tMultiValueMap<String, String> s = new LinkedMultiValueMap<String, String>();\r\n\t\tString useragent=\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36\";\r\n\t\ts.add(\"User-Agent\",useragent);\r\n\t\ts.add(\"Host\",\"https://www.baidu.com\");\r\n\t\tHttpHeaders headers =new HttpHeaders();\r\n\t\theaders.add(\"User-Agent\",useragent);\r\n\t\tString baidu=sendGetRequest(\"https://www.baidu.com\", s, headers);\r\n\t\tSystem.out.println(baidu);\r\n\t}",
"private InputStream getHttpConnection(String urlString) throws IOException\n \t {\n \t InputStream stream = null;\n \t URL url = new URL(urlString);\n \n \t URLConnection connection = url.openConnection();\n \n \t try \n \t {\n \t HttpURLConnection httpConnection = (HttpURLConnection) connection;\n \t httpConnection.setRequestMethod(\"GET\");\n \t httpConnection.connect();\n \t stream = httpConnection.getInputStream();\n \n \t if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK)\n \t {\n \t stream = httpConnection.getInputStream();\n \t }\n \t } \n \t catch (Exception ex)\n \t {\n \t ex.printStackTrace();\n \t }\n \t return stream;\n \t }",
"private static InputStream performNetworkRequest(URL url) {\n if (url == null) {\n Log.e(LOG_TAG, \"Provided URL is null, exiting method early\");\n return null;\n }\n\n HttpURLConnection connection = null;\n InputStream responseStream = null;\n\n try {\n connection = (HttpURLConnection) url.openConnection();\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(90000);\n connection.setRequestMethod(\"GET\");\n connection.connect();\n\n int responseCode = connection.getResponseCode();\n if (responseCode != 200) {\n Log.e(LOG_TAG, \"Response code different from expected code 200. Received code: \" + responseCode + \", exiting method early\");\n return null;\n }\n responseStream = connection.getInputStream();\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem occured while performing network request\");\n e.printStackTrace();\n }\n return responseStream;\n }",
"String getRequestURL();",
"HttpRequest mo6260a(HttpMethod httpMethod, String str, Map<String, String> map);"
]
| [
"0.632398",
"0.6015151",
"0.5551211",
"0.55503744",
"0.5522307",
"0.54953873",
"0.5476492",
"0.5462601",
"0.5462169",
"0.54355574",
"0.5430423",
"0.5348906",
"0.5348542",
"0.53485405",
"0.5176596",
"0.51721686",
"0.5170274",
"0.51286703",
"0.5125568",
"0.51094824",
"0.5079863",
"0.5067306",
"0.5048168",
"0.50438076",
"0.50328475",
"0.5020561",
"0.50163317",
"0.49906686",
"0.49881652",
"0.4982127",
"0.49784112",
"0.49770683",
"0.49719188",
"0.49663144",
"0.49632034",
"0.4954184",
"0.4950887",
"0.49435806",
"0.4942807",
"0.49214414",
"0.49210304",
"0.49203146",
"0.49192393",
"0.490898",
"0.490297",
"0.49019712",
"0.48980606",
"0.48928836",
"0.48907194",
"0.4889147",
"0.48827067",
"0.4876584",
"0.48692447",
"0.48662674",
"0.4857037",
"0.48553038",
"0.48548225",
"0.4853255",
"0.48495394",
"0.48461753",
"0.4832247",
"0.48315418",
"0.4823389",
"0.4820747",
"0.4820652",
"0.48182946",
"0.48173466",
"0.48166096",
"0.48154837",
"0.48141143",
"0.481136",
"0.48109236",
"0.48082066",
"0.47953784",
"0.47850278",
"0.4781014",
"0.47675064",
"0.4758949",
"0.47534117",
"0.47531366",
"0.47522095",
"0.475113",
"0.47495687",
"0.47493777",
"0.47490224",
"0.47477335",
"0.47447932",
"0.47430313",
"0.47423375",
"0.47370425",
"0.47341123",
"0.47295848",
"0.47276333",
"0.4726868",
"0.47263443",
"0.472041",
"0.47182092",
"0.4713009",
"0.47118568",
"0.47098672",
"0.47034618"
]
| 0.0 | -1 |
username password receptor asunto mensaje | public String enviarcorreo(String receptor, String asunto, String mensaje, String telefono, String nombre){
try {final String username = "[email protected]";
final String password = "32sky4951m";
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
Properties props = new Properties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.ssl.trust", "smtp.gmail.com");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.port", "587");
/*Session session = Session.getInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});*/
Session session = Session.getInstance(props, new GMailAuthenticator(username, password));
try {
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("[email protected]"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("[email protected]"));
message.setSubject(asunto);
mensaje = "Nombre y Apellido:" + "<br>" + nombre+ "<br>" + "<br>" +
"Correo Electronico:" + "<br>" + receptor + "<br>" +"<br>" +
"N° de Teléfono:" + "<br>" + telefono+ "<br>" + "<br>" +
"ASUNTO DEL MENSAE:" +"<br>" + mensaje;
message.setContent(mensaje,"text/html; charset=utf-8");
Transport.send(message);
System.out.println("Done");
respuesta="Su mensaje ha sido enviado";
} catch (MessagingException e) {
respuesta="Error al enviar";
throw new RuntimeException(e);
}
} catch (Exception e) {
respuesta="Error al enviar, verifique su conexión";
throw new RuntimeException(e);
}
return respuesta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }",
"private void handlePass(String password) {\n // User has entered a valid username and password is correct\n if (currentUserStatus == userStatus.ENTEREDUSERNAME && password.equals(validPassword)) {\n currentUserStatus = userStatus.LOGGEDIN;\n sendMsgToClient(\"230-Welcome to HKUST\");\n sendMsgToClient(\"230 User logged in successfully\");\n }\n\n // User is already logged in\n else if (currentUserStatus == userStatus.LOGGEDIN) {\n sendMsgToClient(\"530 User already logged in\");\n }\n\n // Wrong password\n else {\n sendMsgToClient(\"530 Not logged in\");\n }\n }",
"String getUserPassword();",
"private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }",
"public void checkUsername(ActionEvent actionEvent) {\n String temp= ClientAPI.getForgetPassword(username.getText());\n if(temp==null){\n userExist.setVisible(true);\n } else{\n userExist.setVisible(false);\n question.setText(temp.substring(0, temp.indexOf(\"|\")));\n help=temp.substring(temp.indexOf(\"|\")+1, temp.lastIndexOf(\"|\"));\n password.setText(temp.substring(temp.lastIndexOf(\"|\")+1));\n question.setVisible(true);\n }\n }",
"private void login(String username,String password){\n\n }",
"protected boolean verifyLogin(String username, String password){\n ServerSocket ss = null;\n Socket s = null;\n try {\n s = new Socket(\"123.56.4.12\", 8080);\n\n InputStream is = s.getInputStream();\n DataInputStream dis = new DataInputStream(is);\n\n OutputStream os = s.getOutputStream();\n DataOutputStream dos = new DataOutputStream(os);\n\n dos.writeUTF(username);\n dos.writeUTF(password);\n\n String info = dis.readUTF();\n if (info.equals(\"True\")){\n return true;\n } else {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"提示\");\n builder.setMessage(\"密码错误或找不到此用户\");\n builder.setPositiveButton(\"确认\", null);\n builder.show();\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setTitle(\"提示\");\n builder.setMessage(\"连接失败\");\n builder.setPositiveButton(\"确认\", null);\n builder.show();\n return false;\n } finally {\n try {\n if (s != null) s.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }\n }",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"void onPasswordSuccess();",
"private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }",
"private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }",
"void login(String user, String password);",
"public static String logIn() {\n\t\tboolean flag;\n\t\tdo {\n\t\t\tflag = false;\n\t\t\ttry {\n\t\t\t\tResultSet rs = Messages.connect().executeQuery(\"SELECT B_Username, B_Password FROM BloodDonor\");\n\t\t\t\tusername_login = JOptionPane.showInputDialog(null,\"Welcome! Please type your username\", \"LOG IN\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tpassword_login = JOptionPane.showInputDialog(null,\"Enter your password\", \"LOG IN\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\twhile (rs.next()){\n\t\t\t\t\tif (rs.getString(\"B_Username\").equals(username_login) && rs.getString(\"B_password\").equals(password_login)){\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\tif (flag == false){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid username or password. Please try again.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t\tMessages.connect().close();\n\t\t\t } catch (InputMismatchException | SQLException e) {\n JOptionPane.showMessageDialog(null, \"Please enter a valid username or password.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n flag = false;\n }\n\t\n\t\t}while (flag == false);\n\t\treturn username_login;\n\t}",
"public void showPasswordPrompt();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"@Override\npublic String getPassword() {\n\treturn senha;\n}",
"private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }",
"Boolean isValidUserPassword(String username, String password);",
"void setErrorPassword();",
"protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}",
"boolean validateUserAndPassword(String username, String password);",
"public String signin() {\n \t//System.out.print(share);\n \tSystem.out.println(username+\"&&\"+password);\n String sqlForsignin = \"select password from User where username=?\";\n Matcher matcher = pattern.matcher(sqlForsignin);\n String sql1 = matcher.replaceFirst(\"'\"+username+\"'\");//要到数据库中查询的语句\n select();\n DBConnection connect = new DBConnection();\n List<String> result = connect.select(sql1);//查询结果\n if (result.size() == 0) return \"Fail1\";\n \n if (result.get(0).equals(password)){\n \tsession.setAttribute( \"username\", username);\n \treturn \"Success\";\n }\n else return \"Fail\";\n }",
"public void setPassword(String pass);",
"private void sendPasswordToUser(UserForm userForm) {\n }",
"public String getPassword();",
"public String getPassword();",
"public void wrongPasswordOrUsername() {\n messageLabel.setForeground(Color.red);\n messageLabel.setText(\"Gebruikersnaam en/of wachtwoord incorrect\");\n usernameField.setText(\"\");\n passwordField.setText(\"\");\n }",
"public void actionPerformed(ActionEvent arg0){\n char[] tamanho = tsenha.getPassword();\n \n if (tamanho.length == 0){\n JOptionPane.showMessageDialog(menssagem, \"Digite uma senha!\");\n }else{\n // recupera senha do Java Password Field\n String psenha = new String(tsenha.getPassword());\n \n //Cria conexão\n ConnectionMSSql conecta= new ConnectionMSSql();\n conecta.conectar(tip.getText(), tinstancia.getText(), tporta.getText(), tbanco.getText(), tusuario.getText() , psenha);\n \n }\n \n }",
"private void proseslogin() {\n String user = username.getText();\n char[] pass = password.getPassword();\n \n if (user.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Username Harus Diisi\");\n username.requestFocus();\n } else if (pass.length == 0){\n JOptionPane.showMessageDialog(this, \"Password Harus Diisi\");\n password.requestFocus();\n }else{\n String password = new String(pass);\n login.setEnabled(false);\n try {\n Connection conn = koneksi.sambungDB();\n Statement st = conn.createStatement();\n String n = \"SELECT * FROM tb_admin \"\n +\"WHERE admin_username='\"+user+\"' \"\n +\"AND admin_password=MD5('\"+password+\"')\" ;\n// System.out.println(q);\n ResultSet rs = st.executeQuery(n);\n if (rs.next()) {\n Data_perumahan h = new Data_perumahan();\n h.setExtendedState(Frame.MAXIMIZED_BOTH);\n this.setVisible(false);\n h.setVisible(true);\n }else{\n JOptionPane.showMessageDialog(this, \"Username dan Password Salah\");\n username.requestFocus();\n }\n login.setEnabled(true);\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }\n }",
"void onChangePasswordSuccess(ConformationRes data);",
"@When(\"^The user enters the password$\")\n\tpublic void the_user_enters_the_password() throws Throwable {\n\t\t\n\t lpw.password_textbox();\n\t}",
"public void logMe(String username){\r\n\t\tif(controller.isUsernameValid(username,1)){\r\n\t\t\tString password= \"\";\r\n\t\t\tdisplay(\"Enter your password: \");\r\n\t\t\tpassword = sc.nextLine();\r\n\t\t\tcontroller.log(username, password);\r\n\t\t}\r\n\t}",
"public String getReceptionist_password(){ return receptionist_password;}",
"private String getPasswordFromUser() {\n JPasswordField passField = new JPasswordField(10);\n int action = JOptionPane.showConfirmDialog(null, passField, \"Please enter your password:\", JOptionPane.OK_CANCEL_OPTION);\n\n if (action < 0) {\n System.exit(0);\n }\n\n __logger.info(\"Got password from user\");\n\n return new String(passField.getPassword());\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (campoUsername.getText().replace(\" \", \"\").equals(\"\")\n\t\t\t\t\t\t|| new String(campoPassword.getPassword()).replace(\" \", \"\").equals(\"\")) {\n\t\t\t\t\tmostraMissatge(\"No ha possat username o password\");\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\tcv.PrLogin(campoUsername.getText(), new String(campoPassword.getPassword()));\n\t\t\t\t}\n\t\t\t}",
"public abstract boolean checkCredentials (String username, String password);",
"private void register(String username,String password){\n\n }",
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"private byte[] handlePassword(byte[] message) {\n\t\tbyte[] password = Arrays.copyOfRange(message, \"password:\".getBytes().length, message.length);\n\n\t\t// Check hash of password against user's value in the digest text file\n\t\tpassVerified = checkHash(password, ComMethods.getValueFor(currentUser, hashfn));\n\n\t\t// Respond to user\n\t\tif (passVerified) {\n\t\t\tcurrentPassword = password; // store pw for session\n\t\t\treturn preparePayload(\"accepted\".getBytes());\n\t\t} else {\n\t\t\treturn preparePayload(\"rejected\".getBytes());\n\t\t}\n\t}",
"@Override\n public boolean login(String username, char[] password) throws RemoteException {\n //Determines whether or not user with a specific username exist\n if (fileExist(USER_DIR + username + \".xml\")) {\n try {\n //Make the password a string\n String strPassword = \"\";\n for (int i = 0; i < password.length; i++) {\n strPassword += String.valueOf(password[i]);\n }\n //Open the file with the user information\n inputStream = new FileInputStream(USER_DIR + username + \".xml\");\n inputStreamReader = new InputStreamReader(inputStream);\n reader = new BufferedReader(inputStreamReader);\n\n sb = new StringBuilder();\n\n while ((lineString = reader.readLine()) != null) {\n sb.append(lineString);\n }\n \n //After that the @param userInfo contain a whole information about the user\n String userInfo = new String(sb);\n \n //Validate user form with a regular expresions\n if (!Pattern\n .compile(\"<username>\" + username + \"</username>\")\n .matcher(userInfo)\n .find()) {\n return false;\n }\n\n if (!Pattern\n .compile(\"<password>\" + strPassword + \"</password>\")\n .matcher(userInfo)\n .find()) {\n return false;\n }\n //Get the user priviliges\n if (Pattern\n .compile(\"<privilige>ENCRYPT</privilige>\")\n .matcher(userInfo)\n .find()) {\n priviliges = User.Priviliges.ENCRYPT;\n } else if (Pattern\n .compile(\"<privilige>DECRYPT</privilige>\")\n .matcher(userInfo)\n .find()) {\n priviliges = User.Priviliges.DECRYPT;\n } else if (Pattern\n .compile(\"<privilige>ENCRYPT_AND_DECRYPT</privilige>\")\n .matcher(userInfo)\n .find()) {\n priviliges = User.Priviliges.ENCRYPT_AND_DECRYPT;\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n closeResources();\n }\n } else {\n return false;\n }\n return true;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tif(new String(buffer).equals(\"WRONG\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"wrong password\", Toast.LENGTH_LONG).show();\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(new String(buffer).equals(\"ACCEPT\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"ACCEPTED\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void loginIn(String user, String pass, int message){\n writeTextIntoTextBox(R.id.username_text_input, user);\n writeTextIntoTextBox(R.id.password_text_input, pass);\n clickId(R.id.login_button);\n checkLoginMessage(message);\n clickId(R.id.alt_button);\n checkIfAtLogin();\n }",
"@Override \n public void commandLogin(String userName, String password)\n {\n }",
"boolean hasPassword();",
"boolean hasPassword();",
"boolean hasPassword();",
"boolean hasPassword();",
"boolean hasPassword();",
"boolean hasPassword();",
"boolean hasPassword();",
"boolean hasPassword();",
"public java.lang.String getPassword();",
"String getNewPassword();",
"@Override\r\n\tpublic String execute() throws Exception {\n\t\tSystem.out.println(username + \"---\" + password + \"---\" + address);\r\n\t\t\r\n\t\tActionContext context = ServletActionContext.getContext();\r\n\t\tMap<String, Parameter> map = context.getParameters();\r\n\t\t\r\n\t\tSystem.out.println(\"username=\" + map.get(\"username\"));\r\n\t\t\r\n\t\treturn NONE;\r\n\t}",
"public boolean logIn(String password) {\n\t\tbyte[] message = ComMethods.concatByteArrs(\"password:\".getBytes(), password.getBytes());\n\t\tbyte[] response = sendServerCoded(message); \n\n\t\tboolean success;\n\t\tswitch (new String(response)) {\n\t\t\tcase \"accepted\":\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\t\t\tcase \"rejected\":\n\t\t\t\tsuccess = false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuccess = false;\n\t\t\t\tComMethods.handleBadResp();\n\t\t\t\tbreak;\n\t\t}\n\t\treturn success;\n\t}",
"public static boolean login() {\n\t\t// DB\n\t\tString[] usr = { \"NICOLAS\", \"CELESTE\" };\n\t\tString[] pass = { \"cerveza\", \"fernet\" };\n\t\tString usrAuth = \"\";\n\t\tboolean auth = false;\n\t\tint intentos = 1;\n\n\t\tdo {\n\t\t\tJTextField usuario = new JTextField();\n\t\t\tJTextField password = new JPasswordField();\n\t\t\tObject[] ingresarUsuarioPassword = { \"Usuario: \", usuario, \"Password\", password };\n\t\t\tint ingresarLogin = JOptionPane.showConfirmDialog(null, ingresarUsuarioPassword,\n\t\t\t\t\t\"Ingrese credenciales de usuario\", JOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (ingresarLogin == JOptionPane.OK_OPTION) {\n\t\t\t\t// Busca el usuario en un bucle For\n\t\t\t\tfor (int i = 0; i < usr.length; i++) {\n\t\t\t\t\t// Si encuentra el usuario, verifica si el usuario y la contraseña coinciden\n\t\t\t\t\tif (usr[i].equals(usuario.getText().toUpperCase()) && pass[i].equals(password.getText())) {\n\t\t\t\t\t\tusrAuth = usr[i];\n\t\t\t\t\t\tauth = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Si no coincide, muestra los intentos restantes y vuelve a pedir credenciales\n\t\t\t\tif (!auth) {\n\t\t\t\t\tif (intentos < 3) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + (3 - intentos) + \" Intentos restantes\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\\n\" + \"Se supero en numero de intentos\",\n\t\t\t\t\t\t\t\t\"Usuario y/o Password incorrecto\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t\t\tintentos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Cierra si no se selecciona OK\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (!auth & (intentos <= 3));\n\t\t// Si autentica, muestra mensaje de bienvenida\n\t\tif (auth)\n\t\t\tJOptionPane.showMessageDialog(null, \"Bienvenido \" + usrAuth, \"Bienvenido\", JOptionPane.INFORMATION_MESSAGE);\n\t\treturn auth;\n\t}",
"public String verificarCredenciales() {\n String resultado = \"\";\n \n Usuario usuario = usuarioBean.verificarCredenciales(this.usuario, this.password);\n \n if (usuario != null) {\n FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(\"usuario\", usuario);\n resultado = \"home?faces-redirect=true\";\n \n \n } else {\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.addMessage(\"\", new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Acceso Denegado\", \"Las credenciales son incorrectas\"));\n }\n return resultado;\n }",
"public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }",
"private final static void onLoginAdmin(TextField username, PasswordField password)\n\t{\n\t\tif(ProfileManipulation.findUsername(username.getText()) && !ProfileManipulation.checkLoginStatus(username.getText())){\n\t\t\tif (ProfileManipulation.isVerfied(username.getText())) {\n\t\t\t\tProfileManipulation.updateLoginStatus(username.getText(), true);\n\n\t\t\t\t// Jetzt wird das Profil aufgerufen\n\t\t\t\tPartylize.setUsername(username.getText());\n\n\t\t\t\tProfileManipulation.changePassword(password.getText());\n\n\t\t\t\tPartylize.showMainScene();\n\t\t\t} else {\n\t\t\t\tPartylize.setUsername(username.getText());\n\t\t\t\tPartylize.showVerification();\n\t\t\t}\n\t\t}\n\t\t// Funktionsaufruf Datenbankanbindung -> Erstellen einer Session ID\n\t\t// Funktionsaufruf Profildaten in lokalen Speicher laden - WIP\n\t\telse {\n\t\t\tusername.setText(\"\");\n\t\t\tpassword.setText(\"\");\n\t\t}\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (arg0.getActionCommand().equals(\"LOGIN\")) {\n\t\t\t\n\t\t\t// Verify username is valid and acquire associated password for account\n\t\t\tString username = usernameTF.getText();\n\t\t\t\n\t\t\t// Database: Check for username\n\t\t\tif (username == \"jmn7080\") {\n\t\t\t\t// Get password from database\n\t\t\t//\tcorrectPassword = getAssociatedPassword(username);\n\t\t\t\t\n\t\t\t\t// Retrieve password input by user\n\t\t\t\tchar[] input = passwordPF.getPassword();\n\t\t\t\tchar[] correctPassword = { 's', 'a', 'v', 'e', 'm', 'e'};\n\t\t\t\t\n\t\t\t\tif (isPasswordCorrect(input, correctPassword)) {\n\t\t\t\t\tJOptionPane.showMessageDialog(newUserWindow,\"Success! You typed the right password.\");\n\t\t\t\t\tloginWindow.dispose();\n\t\t\t\t\tcreateTempData();\n\t\t\t\t\tteacherPortalScreen();\n\t\t\t\t\t\n\t\t } else {\n\t\t \t\t\tJOptionPane.showMessageDialog(newUserWindow,\"Invalid password. Try again.\",\n\t\t \"Error Message\", JOptionPane.ERROR_MESSAGE);\n\t\t usernameTF.setText(\"\");\n\t\t passwordPF.setText(\"\");\n\t\t \n\t\t // Zero out the possible password, for security.\n\t\t Arrays.fill(input, '0');\n\t\t }\n\t\t\t\t\n\t\t\t\t// Zero out the possible password, for security.\n\t Arrays.fill(input, '0');\n\t \n\t passwordPF.selectAll();\n\t resetFocus();\n\t\t\t} \n\t\t}\n\t}",
"@Override\n\tpublic String getPassword() {\n\t\treturn senha;\n\t}",
"private int userLoing() {\n\t\t\n\t\tScanner scan2 = new Scanner(System.in);\n\t\tSystem.out.println(\"\\nPour vous rappler, pour quitter il faut entrer q ou quit pour quitter \\navant de commencer de saisir de mot de passe.\\n\"+\n\t\t\t\t\n\t\t\t\t\"--------------------------------------------------------------------------------------\");\n\t\tboolean correct = true; //To check the confirmation of the password\n\t\t\n\t\t\n\t\t//to get the user's name\n\t\tString nom;\n\t\tdo {\n\t\t System.out.print(\"Entrez un nom d'une longueur qui > 4: \");\n\t\t nom = scan2.nextLine();\n\t\t} while ((nom.length() < 4) && !(nom.equalsIgnoreCase(\"q\")) && !(nom.equalsIgnoreCase(\"quit\")));\n\t\t\n\t\tif(nom.equalsIgnoreCase(\"q\") || nom.equalsIgnoreCase(\"quit\")) {\n\t\t\tSystem.out.println(\"\\n-----------------------------------------------------\\nVous avez été dérigé vers le meun principal!\\n-----------------------------------------------------\");\n\t\t\tcorrect = true;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t\n\t\t\t//for the password and the confirmation\n\t\t\t\n\t\t\twhile(correct) {\n\t\t\t\tint mdp;\n\t\t\t\tdo {\n\t\t\t\t System.out.print(\"Entrez un mot de passe qui contient au moins 6 chiffres SVP: \");\n\t\t\t\t while (!scan2.hasNextInt()) {\n\t\t\t\t\t System.err.print(\"Entrez un mot de passe qui contient au moins 6 chiffres SVP: \");\n\t\t\t\t scan2.next();\n\t\t\t\t }\n\t\t\t\t mdp = scan2.nextInt();\n\t\t\t\t} while (Integer.toString(mdp).length() < 6);\n\t\t\t\t\n\t\t\t\tint mdp2;\n\t\t\t\tdo {\n\t\t\t\t System.out.print(\"Confirmez vôtre mot de passe SVP : \");\n\t\t\t\t while (!scan2.hasNextInt()) {\n\t\t\t\t\t System.err.print(\"Confirmez vôtre mot de passe : \");\n\t\t\t\t scan2.next(); \n\t\t\t\t }\n\t\t\t\t mdp2 = scan2.nextInt();\n\t\t\t\t} while (Integer.toString(mdp2).length() < 6);\n\t\t\t\t\n\t\t\t\tcorrect = mdp == mdp2 ? false: true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint res = !correct? 1 : 0;\n\t\treturn res;\n\t\t\n\t}",
"public boolean promptPassword(String message) \r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}",
"void validatePassword(String usid, String password) throws Exception;",
"public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}",
"public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}",
"public void sendOTP(String username){\n }",
"private void authenticate(String user, String pass) {\n }",
"private boolean validate(String username, String password) {\n\t\tif(username.equals(\"Venkat\") && password.equals(\"kumar\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean verifyUser(String username,String password )\n\t{\n\t\tboolean b;\n\t\tString sql = \"select username,password from f_loginTable where username=? and password=?\";\n\t\tint noOfRows=template.update(sql, new Object[] {username,password});\n\t\tif(noOfRows==1)\n\t\t{b=true;}\n\t\telse \n\t\t{b=false;}\n\t\treturn b;\t\t\n\t}",
"String password();",
"@When(\"^password$\")\n public void password() throws Throwable {\n \tSystem.out.println(\"input password\");\n \t//Assert.assertEquals(34, 40);\n \t\n \t\n \n }",
"protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}",
"public ForgotPassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n }",
"private void loginSuccess(String uname) {\n }",
"@Override\r\n\t\tpublic boolean promptPassword(String message) {\n\t\t\treturn false;\r\n\t\t}",
"@Override\n\tpublic void processMessage(Message msg) {\n\t\tif (msg.what == ProtocolConst.CMD_LOGIN_SUCESS) {\n\t\t\tsaveData();\n\t\t\tIntent intent = new Intent(this, TuliaoMainActivity.class);\n\t\t\tstartActivity(intent);\n\t\t\tcon.start_check_in();// 登录成功必须要定时发送数据包务端\n\t\t\t//用于掉线重新登录\n\t\t\tString pwd = password_input.getText().toString();\n\t\t\tcon.getTransportWorker().getSelf().setPwd(pwd);\n\t\t} else if (msg.what == ProtocolConst.CMD_LOGIN_SUCESS) {\n\t\t\tmakeTextShort(\"对不起,登录失败!\");\n\t\t}\n\t}",
"Password getPsw();",
"public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }",
"public void getUsername(ActionEvent event) {\n GuiManager.setConnectionType(connectionType);\n try {\n GuiManager.getInstance().startRefresh();\n boolean isValid = GuiManager.getInstance().getConnectionController().restore(username.getText());\n if (isValid) {\n GuiManager.getInstance().setUsernameMainPlayer(username.getText());\n loginToLobby(event);\n } else\n usernameNotValid.setText(GUIParameters.LOGIN_ERROR);\n } catch (NoSuchElementException | ConnectException e) {\n usernameNotValid.setText(GUIParameters.SERVER_ERROR);\n }\n }",
"@When(\"^user should enter the valid password in the loginpage$\")\n\tpublic void user_should_enter_the_valid_password_in_the_loginpage() throws Throwable {\n\t\tinputValuestoElement(pa.getAp().getPasswordinput(), \"superman@1010\");\n\t\n\t \n\t}",
"public boolean checkUsername(String username, String password) {\n try {\n remoteUserAccess = new RemoteUserAccess(new URI(\"http://localhost:8080/api/user/\"));\n } catch (Exception e) {\n remoteUserAccess = new DirectUserAccess();\n }\n Collection<User> userPasswords = remoteUserAccess.getUsers();\n if (!userPasswords.stream().anyMatch(a -> a.getUsername().equals(username))) {\n return false;\n } else if (!userPasswords.stream()\n .filter(p -> p.getUsername().equals(username))\n .findFirst().get().getPassword()\n .equals(password)) { // Chekcs if passwords match\n return false;\n }\n return true;\n\n }",
"@Override\n\tpublic boolean login(String username, String upw) throws RemoteException {\n\t\tboolean result = false;\n\t\tif(username!=null){\n\t\t\tString sql=\"select upasswords from users where uname='\"+username+\"'\";\n\t\t\ttry{\tStatement stmt;\n\t\t\t\t\tResultSet rs;\n\t\t\t\t\tConnection conn=jdbcconnect.connnect();\n\t\t\t\t\tstmt=conn.createStatement();\n\t\t\t\t\trs=stmt.executeQuery(sql);\n\t\t\t\t\trs.next();//resultset 取值默认指向结果前一个\n\t\t\t\t\t//System.out.println(upw);\n\t\t\t\t\tString upasswords=rs.getString(\"upasswords\");\n\t\t\t\t\t//System.out.println(upasswords);\n\t\t\t\t\tif(upw.equals(upasswords))//look out equals!!!!\n\t\t\t\t\t{ result = true;\n\t\t\t\t\tSystem.out.println(\"login succeed!\");}\n\t\t\t\t\telse System.out.println(\"user name and passwords does not match\");\n\t\t\t\t\t//System.out.println(2);\n\t\t\t\t\trs.close();\n\t\t\t\t\tstmt.close();\n\t\t\t\t\tjdbcconnect.jdbcclose();\n\t\t\t}catch(Exception e ){System.out.println(e);}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) { // Acionado qnd aperta ENTER\n String string = \"\";\n // Fechar janela de login\n setVisible(false);\n\n String usuario = textField.getText();\n String senha = passwordField.getText();\n\n // Usuário pressionou ENTER no JTextField textField[0]\n if (e.getSource() == textField || e.getSource() == passwordField) {\n if (usuario.equals(\"Daniel\")) {\n if (senha.equals(\"Daniel21\")) {\n JOptionPane.showMessageDialog(null, \"Entrou no sistema!\", \"Usuário: \" + usuario,\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(null, \"Senha Incorreta!\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Usuário Inválido!\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n // mostrar janela de login\n setVisible(true);\n }",
"public boolean login(String userName, String passwd){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = LOGIN_KEYWORD \r\n\t\t\t\t+ SEPARATOR + userName \r\n\t\t\t\t+ SEPARATOR + passwd;\r\n\r\n\t\t// Sending message\t\t\r\n\t\tpw.println(messageToServer);\r\n\t\tpw.flush();\r\n\t\tSystem.out.println(\"Message sent to server: \" + messageToServer);\r\n\r\n\t\t// Reading the answer from server, processing the answer\r\n\t\ttry {\r\n\r\n\t\t\treturn handleLogin(br.readLine());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.toString(), \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}"
]
| [
"0.7024674",
"0.67882484",
"0.6757223",
"0.66037035",
"0.6578929",
"0.652583",
"0.6519517",
"0.6515636",
"0.6515636",
"0.6515636",
"0.6515636",
"0.6515636",
"0.6515636",
"0.6515636",
"0.6515636",
"0.6515636",
"0.64986473",
"0.6472883",
"0.6452316",
"0.64021444",
"0.63799584",
"0.6373875",
"0.6373109",
"0.6373109",
"0.6373109",
"0.6373109",
"0.6373109",
"0.6373109",
"0.6373109",
"0.63614815",
"0.63594383",
"0.6358197",
"0.63499236",
"0.63351125",
"0.6333316",
"0.6323775",
"0.63004965",
"0.62982863",
"0.6294992",
"0.6294992",
"0.6283199",
"0.6274098",
"0.62627804",
"0.6257609",
"0.62520015",
"0.6250232",
"0.6240236",
"0.6204472",
"0.61925226",
"0.6189849",
"0.61849785",
"0.61779463",
"0.61779463",
"0.61779463",
"0.61738986",
"0.6171964",
"0.6167747",
"0.6163853",
"0.61484206",
"0.6135977",
"0.6135977",
"0.6135977",
"0.6135977",
"0.6135977",
"0.6135977",
"0.6135977",
"0.6135977",
"0.613508",
"0.61239177",
"0.6121651",
"0.61188275",
"0.61183196",
"0.6118028",
"0.61095685",
"0.61068004",
"0.6099168",
"0.6096019",
"0.60932213",
"0.609306",
"0.60863435",
"0.60858333",
"0.60857505",
"0.60741645",
"0.60728294",
"0.606787",
"0.6066813",
"0.60619634",
"0.6060423",
"0.6059032",
"0.6056379",
"0.60481596",
"0.60400754",
"0.60352963",
"0.60330355",
"0.60271084",
"0.6027046",
"0.60262805",
"0.60257614",
"0.6017848",
"0.6003652",
"0.599949"
]
| 0.0 | -1 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static HomeFragment newInstance(String param1, String param2) {
HomeFragment fragment = new HomeFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n }",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public CuartoFragment() {\n }",
"public StintFragment() {\n }",
"public ExploreFragment() {\n\n }",
"public RickAndMortyFragment() {\n }",
"public FragmentMy() {\n }",
"public LogFragment() {\n }",
"public FeedFragment() {\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }",
"public WkfFragment() {\n }",
"public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment(){}",
"public WelcomeFragment() {}",
"public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }",
"public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public progFragment() {\n }",
"public HeaderFragment() {}",
"public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }",
"public EmployeeFragment() {\n }",
"public Fragment_Tutorial() {}",
"public NewShopFragment() {\n }",
"public FavoriteFragment() {\n }",
"public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}",
"public NoteActivityFragment() {\n }",
"public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }",
"public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public EventHistoryFragment() {\n\t}",
"public HomeFragment() {}",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public AddressDetailFragment() {\n }",
"public ArticleDetailFragment() { }",
"public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }",
"public RegisterFragment() {\n }",
"public EmailFragment() {\n }",
"public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }",
"public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }",
"public ForecastFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }",
"public TripNoteFragment() {\n }",
"public ItemFragment() {\n }",
"public NoteListFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public DisplayFragment() {\n\n }",
"public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment() {\n\n }",
"public BackEndFragment() {\n }",
"public CustomerFragment() {\n }",
"public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public static Fragment newInstance() {\n return new SettingsFragment();\n }",
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"public PeersFragment() {\n }",
"public TagsFragment() {\n }",
"public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }",
"public HomeSectionFragment() {\n\t}",
"public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }",
"public PersonDetailFragment() {\r\n }",
"public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}",
"public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }",
"public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }",
"public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public PlaylistFragment() {\n }",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }"
]
| [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.6646188",
"0.66410166",
"0.6640725",
"0.6634425",
"0.66188246",
"0.66140765",
"0.6608169",
"0.66045964",
"0.65977716",
"0.6592119",
"0.659137",
"0.65910816",
"0.65830594",
"0.65786606",
"0.6562876",
"0.65607685",
"0.6557126",
"0.65513307",
"0.65510213",
"0.65431285",
"0.6540448",
"0.65336084",
"0.6532555",
"0.6528302",
"0.6524409",
"0.652328",
"0.6523149",
"0.6516528",
"0.65049976",
"0.6497274",
"0.6497235",
"0.64949715",
"0.64944136",
"0.6484968",
"0.6484214",
"0.64805835",
"0.64784926",
"0.64755154",
"0.64710265",
"0.6466466",
"0.6457089",
"0.645606",
"0.6454554",
"0.6452161",
"0.64520335",
"0.6450325",
"0.64488834",
"0.6446765",
"0.64430225",
"0.64430225",
"0.64430225",
"0.64420956",
"0.6441306",
"0.64411277",
"0.6438451",
"0.64345145",
"0.64289486",
"0.64287597",
"0.6423755",
"0.64193285",
"0.6418699",
"0.6414679",
"0.6412867",
"0.6402168",
"0.6400724",
"0.6395624",
"0.6395109",
"0.6391252",
"0.63891554",
"0.63835025",
"0.63788056",
"0.63751805",
"0.63751805",
"0.63751805",
"0.6374796",
"0.63653135",
"0.6364529",
"0.6360922",
"0.63538784",
"0.6351111",
"0.635067"
]
| 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
setHasOptionsMenu(true);
View v = inflater.inflate(R.layout.fragment_datum, container, false);
textshow = (TextView) v.findViewById(R.id.textShow);
//session Management
session = new SessionManagement(getContext());
user = session.getUserDetails();
MainActivity.backFragment = null;
// ============Gmail View starts here =======================
// Gmail View.
recyclerView = (RecyclerView) v.findViewById(R.id.recycler_view);
swipeRefreshLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_refresh_layout);
swipeRefreshLayout.setOnRefreshListener( new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
// onRefresh action here
getGpsDatas();
}
});
rAdapter = new GpsDataListAdapter(this.getContext(), gpsDatas, new GpsDataListAdapter.GpsDataListAdapterListener() {
@Override
public void onIconClicked(int position) {
GpsData gpsData = gpsDatas.get(position);
NewGpsDataFragment newGpsDataFragment = new NewGpsDataFragment();
newGpsDataFragment.editingGps = gpsData;
session.saveGpsData(gpsData);
Fragment fragment = newGpsDataFragment;
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
}
@Override
public void onIconImportantClicked(int position) {
//when you click ka-macho, it sould open for you the details of the gpsData
GpsData gpsData = gpsDatas.get(position);
session.saveGpsData(gpsData);
Fragment fragment = new GpsDataViewFragment();
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
}
@Override
public void onMessageRowClicked(int position) {
// go to view the gpsData
GpsData gpsData = gpsDatas.get(position);
session.saveGpsData(gpsData);
Fragment fragment = new GpsDataViewFragment();
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
}
@Override
public void onRowLongClicked(int position) {
//extract the clicked gpsData
GpsData gpsData = gpsDatas.get(position);
session.saveGpsData(gpsData);
Fragment fragment;
NewGpsDataFragment newGpsDataFragment = new NewGpsDataFragment();
newGpsDataFragment.editingGps = gpsData;
fragment = newGpsDataFragment;
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
}
});
RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getContext());
recyclerView.setLayoutManager(mLayoutManager);
recyclerView.setItemAnimator(new DefaultItemAnimator());
recyclerView.addItemDecoration(new DividerItemDecoration(getContext(), LinearLayoutManager.VERTICAL));
recyclerView.setAdapter(rAdapter);
actionModeCallback = new ActionModeCallback();
swipeRefreshLayout.post(
new Runnable(){
@Override
public void run(){
getGpsDatas();
}
}
);
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
when you click kamacho, it sould open for you the details of the gpsData | @Override
public void onIconImportantClicked(int position) {
GpsData gpsData = gpsDatas.get(position);
session.saveGpsData(gpsData);
Fragment fragment = new GpsDataViewFragment();
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View view) {\n String geoUri = \"http://maps.google.com/maps?q=loc:\" + 18.5155346 + \",\" + 73.7836165 + \" (\" + \"Manyavar\" + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geoUri));\n mcontext.startActivity(intent);\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = null,chooser = null;\n\t\t\t\tintent = new Intent(android.content.Intent.ACTION_VIEW);\n\t \t\t//For any Action\n\t \t\tintent.setData(Uri.parse(\"geo:27.961429,76.402788\"));\n\t \t\tchooser = Intent.createChooser(intent,\"MAPS Launch\");\n\t \t\tstartActivity(chooser);\n\t\t\t}",
"@Override//an ok la tu dong bat len can cai requet\n public boolean onMyLocationButtonClick() {\n if (Util.isGpsOpen(context)) {\n\n getMyLocation();//cho nay da co gps(di chuyen den vi tri cua minh va lay vi tri cua minh)\n\n return true;//no bat roi he thong lam tiesp ,\n } else {//bat GPS\n\n reqquestGps();\n return false;\n }\n//return true;\n// return false;//false la de mình lam xong no lam iep lý tiep con true thì no dung ơ ngay cho do\n }",
"protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(Utils.hasLength(item.getGeoReferencia())){\n \t\t\t\t\tString urlString = \"http://maps.google.com/maps?q=\" + item.getGeoReferencia() + \"&near=Madrid,Espa�a\";\n \t\t\t\t\tIntent browserIntent = new Intent(\"android.intent.action.VIEW\", \n \t\t\t\t\t\t\tUri.parse(urlString ));\n \t\t\t\t\tstartActivity(browserIntent);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n context.startActivity(myIntent);\n //get gps\n }",
"@Override\n public void onClick(View v) {\n Uri gmmIntentUri = Uri.parse(\"geo:37.7749,-122.4194\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n paramDialogInterface.dismiss();\n\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(myIntent);\n //get gps\n }",
"public void bSitio1(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.21999);\n i.putExtra(\"Longitud\", -75.190537);\n i.putExtra(\"destino\", \"Isla Guaca\");\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n String label = \"Route for \" + namemark;\n String uriBegin = \"geo:\" + latl + \",\" + long1;\n String query = latl + \",\" + long1 + \"(\" + label + \")\";\n String encodedQuery = Uri.encode(query);\n String uriString = uriBegin + \"?q=\" + encodedQuery + \"&z=16\";\n Uri uri = Uri.parse(uriString);\n try {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);\n startActivity(intent);\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Update Your Google Map\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n HomeActivity.this.startActivity(myIntent);\n //get gps\n }",
"@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + selected_location);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }",
"public void bSitio3(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.223612);\n i.putExtra(\"Longitud\", -75.178183);\n i.putExtra(\"destino\", \"Piedra del Peñol\");\n startActivity(i);\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_WIFI_SETTINGS);\n context.startActivity(myIntent);\n //get gps\n }",
"@Override\n\t\t\t\tpublic boolean onMarkerClick(Marker arg0) {\n\t\t\t\t\t\n\t\t\t\t\tfor(final PoiInfo poiInfo:AppContext.listmap){\n\t\t\t\t\t\tif(poiInfo.location.latitude==arg0.getPosition().latitude&&poiInfo.location.longitude==arg0.getPosition().longitude){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tView mView = LayoutInflater.from(ZhouBianYaodian.this).inflate(R.layout.map_massage_data, null);\n\t\t\t\t\t\t\tTextView dataname=(TextView) mView.findViewById(R.id.txt_map_name);\n\t\t\t\t\t\t\tTextView address=(TextView)mView. findViewById(R.id.txt_map_address);\n\t\t\t\t\t\t\tImageView imageView=(ImageView)mView. findViewById(R.id.map_image_call); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdataname.setText(poiInfo.name==null?\"\":poiInfo.name);\n\t\t\t\t\t\t\t\taddress.setText(poiInfo.address==null?\"\":poiInfo.address);\n\t\t\t\t\t\t\t\tif(poiInfo.phoneNum!=null&&!poiInfo.phoneNum.equals(\"\")){\n\t\t\t\t\t\t\t\t\timageView.setVisibility(ImageView.VISIBLE);\n\t\t\t\t\t\t\t\t\timageView.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, Uri\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parse(\"tel:\" + poiInfo.phoneNum));\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"测试数据\", poiInfo.phoneNum);\n\t\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\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\n\t\t\t\t\t\t\tmInfoWindow= new InfoWindow(mView,arg0.getPosition(), -47);\n\t\t\t\t\t\t\tmBaiduMap.showInfoWindow(mInfoWindow);\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\t\n\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0, 0?q=Animal+Shelter+near+me\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }",
"public void bSitio2(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.269434 );\n i.putExtra(\"Longitud\", -75.18322);\n i.putExtra(\"destino\", \"Represa Guatapé\");\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n if (!mTrackingLocation) {\n iniciarLocal();\n //Intent it = new Intent(Intent.ACTION_WEB_SEARCH);\n //it.putExtra(SearchManager.QUERY, \"Lojas Geek próximas \"+ lastAdress);\n //startActivity(it);\n } else {\n pararLocal();\n }\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getApplicationContext().startActivity(myIntent);\n //get gps\n }",
"@Override\n public void onClick(View view) {\n String sms = \"FINDME location is \";\n if (LOCATION != null) {\n sms = sms + \"coordinates\" + \"*\" + LOCATION.latitude + \"*\" + LOCATION.longitude;\n }\n sendSms(\"0473848248\", sms);\n }",
"public void onInfoWindowClick(Marker marker2) {\n\n AlertDialog.Builder builder2 = new AlertDialog.Builder(Detalles.this);\n builder2.setTitle(\"Epicent\");\n builder2.setMessage(\"Referencia : \" +\"ddddddd\" +\"\\n\" +\n \"Fecha local : \" + \"ccccccc\" +\"\\n\" +\n \"Hora local : \" + \"ccccccc\"+ \"\\n\" +\n \"Profundidad : \" + \"ccccccc\"+\" km\"+ \"\\n\" +\n \"Intensidad : \" + \"ccccccc\"+ \"\\n\" +\n \"Magnitud : \" + \"ccccccc\"+ \"\\n\" +\n \"Ubicación : \" + \"ccccccc\"+ \", \" + \"ccccccc\");\n builder2.setNegativeButton(\"Cerrar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog2, int which) {\n dialog2.cancel();\n }\n });\n\n builder2.setCancelable(true);\n builder2.create().show();\n\n }",
"private void DisplayTrack(String sSouce, String dDestiny)\n {\n\n try {\n //when google map installed\n // intialize url\n Uri uri = Uri.parse(\"https://www.google.co.in/maps/dir/\" +sSouce + \"/\" +dDestiny);\n\n //Intialize intent with action view\n\n Intent intent = new Intent(Intent.ACTION_VIEW,uri);\n // set pkg\n intent.setPackage(\"com.google.android.apps.maps\");\n\n // set flag\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n }catch (ActivityNotFoundException e)\n {\n // when google map is not install\n // set uri\n Uri uri = Uri.parse(\"https://play.google.com/store/apps/details?id=com.google.android.apps.maps\");\n // intialize intent with action view\n Intent intent = new Intent(Intent.ACTION_VIEW,uri);\n // set flag\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // start acivity\n startActivity(intent);\n\n }\n\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 2);\n\t\t\t\tintent.putExtra(\"latc\", 13.0827);\n\t\t\t\tintent.putExtra(\"lngc\", 80.2707);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MapActivity.class);\n\t\t\t\tintent.putExtra(\"Choice\", 1);\n\t\t\t\tintent.putExtra(\"latb\", 12.9716);\n\t\t\t\tintent.putExtra(\"lngb\", 77.5946);\n\t\t\t\tstartActivity(intent);\n\n\t\t\t}",
"private void onOpenMapButtonClicked() {\n\n // Create a new intent to start an map activity\n Intent mapIntent =\n new Intent(DetailActivity.this, MapsActivity.class);\n if (mMapDestination != null && mMapDestination.getLocation() != null &&\n mMapDestination.getRadius() >= 0) {\n MapDestination mapDestination =\n new MapDestination(mMapDestination.getLatitude(),\n mMapDestination.getLongitude(), mMapDestination.getLocation(),\n mMapDestination.getRadius());\n mapIntent.putExtra(Constants.EXTRA_ALARM_DESTINATION, mapDestination);\n }\n startActivityForResult(mapIntent, MAP_REQUEST_CODE);\n\n }",
"private void loadData() {\n gps = new GPSTracker(LocationActivity.this);\n if (from.equals(\"home\")) {\n if (lat == 0 && lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n lat = gps.getLatitude();\n lon = gps.getLongitude();\n Log.v(\"lati\", \"lat\" + lat);\n Log.v(\"longi\", \"longi\" + lon);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n } else if (from.equals(\"add\")) {\n if (AddProductDetail.lat == 0 && AddProductDetail.lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n Log.v(\"lati\", \"lat\" + AddProductDetail.lat);\n Log.v(\"longi\", \"longi\" + AddProductDetail.lat);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n }\n\n }",
"public boolean onMapPoiClick(MapPoi arg0) {\n\t\t\t\t \n\t\t\t\t poi=arg0.getName();\n\t\t\t\t isPoi=true;\n\t\t\t\t currentPt = arg0.getPosition();\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"单击\"+currentPt.latitude+\",\"+currentPt.longitude+currentPt, Toast.LENGTH_SHORT).show();\n\t\t\t\t\tLatLng ptCenter = new LatLng(currentPt.latitude, currentPt.longitude);\n\t\t\t\t\t// 反Geo搜索\n\t\t\t\t\tmSearch.reverseGeoCode(new ReverseGeoCodeOption()\n\t\t\t\t\t\t\t.location(ptCenter));\n\t\t\t\t //名称\n\t\t\t\t\t/*Toast.makeText(getApplicationContext(), arg0.getName()+\":\"+adress, Toast.LENGTH_LONG)\n\t\t\t\t\t.show();*/\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t return false;\n\t\t\t\t }",
"@Override\n\t\t\t\tpublic void onMapClick(LatLng point) {\n\t\t\t\t\tLog.d(\"数据测试\", \"\");\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n String label = response.body().getEventList().get(0).getEventName();\n String strUri = \"http://maps.google.com/maps?q=loc:\" + response.body().getEventList().get(0).getEventLatitude() + \",\" + response.body().getEventList().get(0).getEventLongitude() + \" (\" + label + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(strUri));\n\n intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n\n startActivity(intent);\n\n\n }",
"@Override\n public void onInfoWindowLongClick(Marker marker) {\n if (marker.getTitle().equals(\"New Maintenance Form\")){\n newOld = false; //don't have to do anything.....\n }else{\n //newOld = true;\n load_id=marker.getSnippet();\n }\n //pull up the maintenance form\n Intent intent = new Intent(MaintenanceMapActivity.this, MaintenanceActivity.class);\n intent.putExtra(\"latitude\", latitude );\n intent.putExtra(\"longitude\",longitude);\n startActivity(intent);\n }",
"public void showMarkerInfo(OperaFirebase mapMarker){\n Intent i = new Intent(this, MarkerInfoActivity.class);\n i.putExtra(\"MapMarker\", mapMarker);\n startActivity(i);\n }",
"@OnClick({R.id.address_img, R.id.address})\n void OnClickMap() {\n // Open location on map\n Intent mapIntent=new Intent(Intent.ACTION_VIEW);\n mapIntent.setData(Uri.parse(\"geo:0,0?q=\" + getString(R.string.latitude) + \",\"\n + getString(R.string.longitude)));\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }",
"@Override\n\t\t\tpublic void onInfoWindowClick(Marker arg0) {\n\t\t\t\tString id = arg0.getTitle();\n\t\t\t\t\n\t\t\t\tif(id.startsWith(\"Dis\") || id.startsWith(\"my\")){\n\t\t\t\t\tif(id.startsWith(\"Dis\")){\n\t\t\t\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this).setTitle(\"Warning\")\n\t\t\t\t\t .setMessage(\"Please select a right victim!!!\")\n\t\t\t\t\t .setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t \t // finish();\n\t\t\t\t }\n\t\t\t\t }).create();\n\t\t\t\t\t dialog.show();\n\t\t\t\t\t\t}\n\t\t\t\t\tif(id.startsWith(\"my\")){\n\t\t\t\t\t\tmyLocation = arg0.getPosition();\n\t\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this)\n\t\t\t\t .setMessage(\"Do you what to update your current location?\")\n\t\t\t\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t \t setFlag = false;\n\t\t\t }\n\t\t\t })\n\t\t\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t\t \t \n\t\t\t }\n\t\t\t }).create();\n\t\t\t\t dialog.show();\n\t\t\t\t\t\t}\t\n\t\t\t\t}else{\n\t\t\t\t\tvicLocation = arg0.getPosition();\n\t\t\t\t\tfinal String PoVictim = readOneVictim(id);\n\t\t\t\t\tLog.d(\"victim infomtion:\",PoVictim);\n\t\t\t AlertDialog dialog = new AlertDialog.Builder(MainActivity.this)\n\t\t\t .setMessage(\"What do you want to do with this victim?\")\n\t\t\t .setNegativeButton(\"Edit/Delect Victim\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t EditVictim(PoVictim);\n\t\t }\n\t\t })\n\t\t .setPositiveButton(\"Find THIS Victim\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t \t //String[] PoVIF = PoVictim.split(\",\");\n\t\t \t vicFlag = true;\n\t\t \t //LatLng vic = new LatLng(42.39398619218224,-72.52872716635466);\n\t\t \t if(vicLocation != null && myLocation != null){\n\t\t \t\t if(wayList != null){\n\t\t \t\t\t wayList.clear();\n\t\t \t\t }\n\t\t \t\t \n\t\t \t\t if(indoorFlag){ //when isindoor return true\n\t\t \t\t\t wayList = findOneVictim(myLocation, vicLocation);\n\t\t \t\t\t if(wayList != null){\n\t\t \t\t\t\t getPath();\n\t\t \t\t\t\t}\n\t\t \t\t }else{\n\t\t \t\t\t LatLng door = getNearestDoor(vicLocation);\n\t\t \t\t\t //get the first part outdoor path \n\t\t \t\t\t findDirections(myLocation.latitude,myLocation.longitude,door.latitude,door.longitude,GMapV2Direction.MODE_DRIVING );\n\t\t \t\t\t //wayList.addAll(findOneVictim(door, vicLocation));\n\t\t \t\t } \n\t\t \t }\n\t\t }\n\t\t }).create();\n\t\t\t dialog.show();\n\t\t\t\t}\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n SubPlanListDTO llh = (SubPlanListDTO)v.getTag();\n //Toast.makeText(getApplicationContext(),\"위치 x=\"+llh.getLlh_x()+\"y=\"+llh.getLlh_y(),Toast.LENGTH_SHORT).show();\n ////여기수정하면됨......\n Date date = new Date();\n SimpleDateFormat transFormat = new SimpleDateFormat(\"HH:mm\");\n String to = transFormat.format(date);\n System.out.println(to);\n\n String tos[] = to.split(\":\");\n String times[] = llh.getTime().split(\"~\");\n String start_times[] = times[0].split(\":\");\n String end_times[] = times[1].split(\":\");\n\n lat2 = Double.parseDouble(llh.getLlh_x());\n lon2 = Double.parseDouble(llh.getLlh_y());\n gps = new GpsInfo(ToDayListSubplan.this);\n\n if(Integer.parseInt(tos[0]) == Integer.parseInt(start_times[0])){\n if(Integer.parseInt(tos[1])>=Integer.parseInt(start_times[1])){\n // GPS 사용유무 가져오기\n if (gps.isGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n lat1 = latitude;\n lon1 = longitude;\n //txtLat.setText(String.valueOf(latitude));\n //txtLon.setText(String.valueOf(longitude));\n\n if(calDistance(lat1,lon1,lat2,lon2) <= 500){\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치1 - \\n위도: \" + latitude + \"\\n경도: \" + longitude+\"\\n 위치비교값:\"+calDistance(lat1,lon1,lat2,lon2)+\"\",\n Toast.LENGTH_LONG).show();\n\n int sub_num = llh.getSub_num();\n\n String requestURL = \"http://192.168.14.45:8805/meto/and/schedule/getGPS.do\";\n\n //HttpClient client = new DefaultHttpClient();\n HttpClient client = SessionControl.getHttpclient();\n HttpPost post = new HttpPost(requestURL);\n List<NameValuePair> paramList = new ArrayList<>();\n\n paramList.add(new BasicNameValuePair(\"sub_num\", String.valueOf(sub_num)));\n\n try {\n post.setEntity(new UrlEncodedFormEntity(paramList, \"UTF-8\"));\n HttpResponse response = client.execute(post);\n HttpEntity entity = response.getEntity();\n //Toast.makeText(getApplicationContext(), \"flag 확인 \"+flag,Toast.LENGTH_SHORT).show();\n\n Log.d(\"서브넘버 보냈쨔냐 \", \"\"+sub_num);\n } catch(Exception e) {\n Log.d(\"sendPost===> \", e.toString());\n }\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치에서 500m 사이 거리가 아닙니다.\",\n Toast.LENGTH_LONG).show();\n }\n } else {\n // GPS 를 사용할수 없으므로\n gps.showSettingsAlert();\n }\n }\n } else if(Integer.parseInt(tos[0]) == Integer.parseInt(end_times[0])){\n if(Integer.parseInt(tos[1])<=Integer.parseInt(end_times[1])){\n // GPS 사용유무 가져오기\n if (gps.isGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n lat1 = latitude;\n lon1 = longitude;\n //txtLat.setText(String.valueOf(latitude));\n //txtLon.setText(String.valueOf(longitude));\n if(calDistance(lat1,lon1,lat2,lon2) <= 500){\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치2 - \\n위도: \" + latitude + \"\\n경도: \" + longitude+\"\\n 위치비교값:\"+calDistance(lat1,lon1,lat2,lon2)+\"\",\n Toast.LENGTH_LONG).show();\n\n int sub_num = llh.getSub_num();\n\n String requestURL = \"http://192.168.14.45:8805/meto/and/schedule/getGPS.do\";\n\n //HttpClient client = new DefaultHttpClient();\n HttpClient client = SessionControl.getHttpclient();\n HttpPost post = new HttpPost(requestURL);\n List<NameValuePair> paramList = new ArrayList<>();\n\n paramList.add(new BasicNameValuePair(\"sub_num\", String.valueOf(sub_num)));\n\n try {\n post.setEntity(new UrlEncodedFormEntity(paramList, \"UTF-8\"));\n HttpResponse response = client.execute(post);\n HttpEntity entity = response.getEntity();\n //Toast.makeText(getApplicationContext(), \"flag 확인 \"+flag,Toast.LENGTH_SHORT).show();\n\n Log.d(\"서브넘버 보냈쨔냐 \", \"\"+sub_num);\n } catch(Exception e) {\n Log.d(\"sendPost===> \", e.toString());\n }\n }\n\n } else {\n // GPS 를 사용할수 없으므로\n gps.showSettingsAlert();\n }\n }\n }\n\n\n }",
"@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(IntroActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQCODELOCATION\n );\n } else {\n // caso contrario: obtener la ubicacion actual\n getCurrentLocation();\n }\n\n }",
"@Override\r\n public boolean onTap(GeoPoint arg0, MapView arg1) {\n if(getMyLocation()!=null){\r\n int size = 30;\r\n Point out=new Point();\r\n mMapView.getProjection().toPixels(getMyLocation(), out); \r\n Rect rect = new Rect(out.x-size,out.y-size,out.x+size,out.y+size);\r\n mMapView.getProjection().toPixels(arg0, out);\r\n if(rect.contains(out.x, out.y)){\r\n //Log.e(\"MyLocation\", \"click my location \");\r\n mPopView.setVisibility(View.GONE);\r\n MapView.LayoutParams params = (MapView.LayoutParams) mPopView.getLayoutParams();\r\n params.x = 0;// Y轴偏移\r\n params.y = -5;// Y轴偏移\r\n GeoPoint point = getMyLocation().e();\r\n params.point = point;\r\n //mMapCtrl.animateTo(point);\r\n mMapView.updateViewLayout(mPopView, params);\r\n mPopView.setVisibility(View.VISIBLE);\r\n }else{\r\n mPopView.setVisibility(View.GONE) ; \r\n }\r\n }\r\n return super.onTap(arg0, arg1);\r\n }",
"@Override\r\n public void onClick(View v)\r\n {\n \r\n DJIDrone.getDjiMainController().setGohomeAltitude(50, new DJIExecuteBooleanResultCallback() {\r\n \r\n @Override\r\n public void onResult(boolean result)\r\n {\r\n // TODO Auto-generated method stub\r\n if (result) {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Successfully\"));\r\n } else {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"Set Fail\"));\r\n }\r\n }\r\n });\r\n }",
"@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, WC_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\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 }",
"public void showLiaisonByClick()\t{\r\n \tSystem.out.print(\"Cliquez votre route: \");\r\n \tif (dessin.waitClick()) {\r\n \t float lon = dessin.getClickLon() ;\r\n \t float lat = dessin.getClickLat() ;\r\n \t \r\n \t float minDist = Float.MAX_VALUE ;\r\n \t Liaison chosen = null;\r\n \t \r\n \t for(Liaison liaison: this.routes)\t{\r\n \t \tfloat londiff = liaison.getLongitude() - lon;\r\n \t \tfloat latdiff = liaison.getLatitude() - lat;\r\n \t \tfloat dist = londiff*londiff + latdiff*latdiff ;\r\n \t \tif(dist < minDist)\t{\r\n \t \t\tchosen = liaison;\r\n \t \t\tminDist = dist;\r\n \t \t}\r\n \t }\r\n \t \r\n\t \tchosen.dessiner(dessin, this.numzone, Color.red);\r\n\t \tthis.dessin.putText(chosen.getLongitude(), chosen.getLatitude(), chosen.toString());\r\n\t \tSystem.out.println(chosen);\r\n\r\n \t}\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstart = new GeoPoint((int) (locData.latitude * 1e6),\n\t\t\t\t\t\t(int) (locData.longitude * 1e6));\n\t\t\t\tstartNavi(start, end);\n\t\t\t}",
"public void onClick(View v) {\n double latitude = 51.52;\n double longitude = -13.03;\n Intent intentBundle = new Intent(MainActivity.this, NetMap.class);\n Bundle bundle = new Bundle();\n bundle.putDouble(\"lat\", latitude);\n bundle.putDouble(\"long\", longitude);\n intentBundle.putExtras(bundle);\n startActivity(intentBundle);\n }",
"public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }",
"@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, Tambal_banActivity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }",
"@Override\n public void onClick(View arg0) {\n switch (arg0.getId()) {\n case R.id.r3:\n Intent loactionAcIntent = new Intent();\n loactionAcIntent.setClass(mContext, CrmVisitorFromGaodeMap.class);\n startActivityForResult(loactionAcIntent, 1015);\n break;\n\n case R.id.txt_comm_head_right:\n if (null != php_Address && !php_Address.equals(\"\") && postState && php_Lng != null && php_Lat != null) {\n\n // if(mAdapter.mPicList.size()>0){\n CustomDialog.showProgressDialog(mContext, \"签到中...\");\n postCustomerInfo();\n // }\n // else{\n // CustomToast.showShortToast(mContext, \"请上传照片\");\n // }\n\n } else {\n CustomToast.showShortToast(mContext, \"请选择签到位置\");\n }\n\n default:\n break;\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trequestLocClick();\n\t\t\t}",
"@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getGohomeAltitude(new DJIExecuteFloatResultCallback() {\r\n \r\n @Override\r\n public void onResult(float result)\r\n {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, result + \"\"));\r\n }\r\n });\r\n }",
"@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getAircraftSn(new DJIExecuteStringResultCallback(){\r\n\r\n @Override\r\n public void onResult(String result)\r\n {\r\n // TODO Auto-generated method stub\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"SN = \"+result));\r\n }\r\n \r\n });\r\n }",
"@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t setFlag = true;\n\t \t myLocation = location;\n\t \t //use this flag to indicate that we want to see the path from current location or a set point\n\t \t Log.d(\"my location:\", \"\"+myLocation.latitude + myLocation.longitude);\n\t \t if(setFlag == true){\n\t \t\t if(myMarker != null){\n\t\t \t\t myMarker.remove();\n\t\t \t }\n\t\t \t myMarker = mMap.addMarker(new MarkerOptions().position(myLocation).title(\"myLocation\").draggable(true)\n\t\t \t\t\t\t\t\t.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n\t\t \t\t\t\t landmarks.addMarker(\"myLocation\", myMarker);\n\t \t } \n\t }\n\t })\n\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t }).create();\n \tbuilder.show();\n\t\t\t}",
"public void openUsagePoints() {\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.findElement(By.id(\"button-1049\")).click();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t.parse(\"http://maps.google.com/maps?f=d&daddr=\"\n\t\t\t\t\t\t\t\t+ lot.getLatitude() + \",\" + lot.getLongitude()\n\t\t\t\t\t\t\t\t+ \" (Lot \" + lot.getName() + \")\"));\n\t\t\t\tintent.setComponent(new ComponentName(\n\t\t\t\t\t\t\"com.google.android.apps.maps\",\n\t\t\t\t\t\t\"com.google.android.maps.MapsActivity\"));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}",
"public void toSetMarker(View v){\n Intent i = new Intent(Startup_menu_activity.this,testing_location.class);\n startActivity(i);\n }",
"@Override\n public void onMapClick(LatLng arg0) {\n mBaiduMap.hideInfoWindow();\n if (window != null) {\n window.showAtLocation(search, Gravity.BOTTOM, 0, 0);\n }\n }",
"@Override\n public void onLongClick(double x, double y, Poi poi) {\n\n String name;\n if (poi != null) {\n name = poi.getTitles().get(0).getText();\n } else {\n name = \"선택위치\";\n }\n\n Vector3 position = new Vector3(x, y, 0);\n\n Location location = new Location(position, currentFloor, name);\n String floorName = floorInfoList\n .stream()\n .filter(floorInfo -> floorInfo.getLevel() == currentFloor)\n .map(floorInfo -> floorInfo.getName().get(0).getText())\n .findFirst()\n .orElse(\"\");\n\n LocationInfo locationInfo = new LocationInfo(location, floorName);\n layoutPoiInfo.bind(locationInfo);\n if (layoutNavigationInfo.isShown()) {\n layoutNavigationInfo.hide();\n }\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 2);\n\t\t\tstartActivity(i);\n\t\t}",
"@Test(priority = 9)\n\tpublic void clickGeofence() throws Exception {\n\t\t\n\t\tdriver = DashboardPage.geofence(driver);\n\t\t\n\t\t//ExcelUtils.setCellData(\"PASS\", 9, 1);\n\t\t\n\t}",
"public void handleGPS()\n {\n\t\t\n\t\tRunnable r2 = new Runnable() {\n\n public void run() {\n \ttry {\n BlackBerryCriteria criteria = new BlackBerryCriteria(GPSInfo.GPS_MODE_AUTONOMOUS);\n\n try\n {\n BlackBerryLocationProvider myProvider =\n (BlackBerryLocationProvider)\n LocationProvider.getInstance(criteria);\n\n try\n {\n BlackBerryLocation myLocation = (BlackBerryLocation)myProvider.getLocation(300);\n\n int satCount = myLocation.getSatelliteCount();\n \n setLat(myLocation.getQualifiedCoordinates().getLatitude());\n setLongt(myLocation.getQualifiedCoordinates().getLongitude());\n \n //data.setVisibleNone();\n \t\tMapLocation test = new MapLocation(myLocation.getQualifiedCoordinates().getLatitude(), myLocation.getQualifiedCoordinates().getLongitude(), \"test\", null);\n \t\tint testId = data.add((Mappable) test, \"test\");\n \t\tdata.tag(testId, \"test\");\n \t\tdata.setVisibleNone();\n \t\tdata.setVisible( \"test\");\n// \t\tMapAction action = map.getAction();\n// \t\taction.setCentreAndZoom(new MapPoint(43.47462, -80.53820), 2);\n \t\tmap.getMapField().update(true);\n \n \n \n \n int signalQuality = myLocation.getAverageSatelliteSignalQuality();\n int dataSource = myLocation.getDataSource();\n int gpsMode = myLocation.getGPSMode();\n\n SatelliteInfo si;\n StringBuffer sb = new StringBuffer(\"[Id:SQ:E:A]\\n\");\n String separator = \":\";\n\n for (Enumeration e = myLocation.getSatelliteInfo();\n e!=null && e.hasMoreElements(); )\n {\n si = (SatelliteInfo)e.nextElement();\n sb.append(si.getId() + separator);\n sb.append(si.getSignalQuality() + separator);\n sb.append(si.getElevation() + separator);\n sb.append(si.getAzimuth());\n sb.append('\\n');\n System.out.println(sb);\n }\n }\n catch ( InterruptedException iex )\n {\n Logger.log(iex.toString());\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( UnsupportedOperationException uoex )\n {\n \tLogger.log(uoex.toString());\n }\n\n// return;\n }\n\t\t};\n\t\tcontroller.invokeLater(r2);\n }",
"@Override\n public void onClick(double x, double y, Poi poi) {\n\n String name;\n if (poi != null) {\n name = poi.getTitles().get(0).getText();\n } else {\n name = \"선택위치\";\n }\n\n Vector3 position = new Vector3(x, y, 0);\n\n Location location = new Location(position, currentFloor, name);\n String floorName = floorInfoList\n .stream()\n .filter(floorInfo -> floorInfo.getLevel() == currentFloor)\n .map(floorInfo -> floorInfo.getName().get(0).getText())\n .findFirst()\n .orElse(\"\");\n\n LocationInfo locationInfo = new LocationInfo(location, floorName);\n layoutPoiInfo.bind(locationInfo);\n if (layoutNavigationInfo.isShown()) {\n layoutNavigationInfo.hide();\n }\n }",
"private void startMuseek(){\r\n\t\tIntent mainActivity = new Intent(getBaseContext(), MainActivity.class);\r\n\t\tmainActivity.putExtra(\"latitude\", mLocation.getLatitude());\r\n\t\tmainActivity.putExtra(\"longitude\", mLocation.getLongitude());\r\n\t\tstartActivity(mainActivity);\r\n\t}",
"@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openMachineDetails(position);\n }",
"private void openPreferredLocationMap()\n\t{\n\n\t\tif (_forecastAdapter != null)\n\t\t{\n\t\t\tCursor cursor = _forecastAdapter.getCursor();\n\n\t\t\tif (cursor != null)\n\t\t\t{\n\t\t\t\tcursor.moveToPosition(0);\n\n\t\t\t\tString posLat = cursor.getString(COL_COORD_LAT);\n\t\t\t\tString posLong = cursor.getString(COL_COORD_LONG);\n\n\t\t\t\tUri geoLocation = Uri.parse(\"geo:\" + posLat + \",\" + posLong);\n\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\n\t\t\t\tintent.setData(geoLocation);\n\n\t\t\t\tif (intent.resolveActivity(getActivity().getPackageManager()) != null)\n\t\t\t\t{\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tTraceUtil.logD(CLASS_NAME, \"openPreferredLocationMap\",\n\t\t\t\t\t\t\t\"Couldn't call \" + geoLocation.toString() +\n\t\t\t\t\t\t\t\t\t\", no receiving apps installed!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tIntent intent = new Intent(DeviceActivity.this, sdw.com.CountyActivity.class);// ����������Activity\n\t\t\t\t Bundle bundle = new Bundle(0); \n\t bundle.putString(\"fun1\",transferValue); \n\t bundle.putString(\"search1\",\"btnCheckMap\");\n\t intent.putExtras(bundle);//\n\t\t\t\tstartActivity(intent);\n\t\t\t\t//finish();\n\t\t\t}",
"private void openTimesheetInfo (String markerTitle) {\n // Chuyen sang man hinh timesheet info\n Intent intent = new Intent(TourTabsActivity.this, TimesheetInfoActivity.class);\n // Gan so thu tu tour\n intent.putExtra(\"TourOrder\", tourOrder);\n // Gan so thu tu timesheet\n ArrayList<TourTimesheet> currentTimesheets = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet();\n for (int i = 0; i < currentTimesheets.size(); i++) {\n String title = currentTimesheets.get(i).getmBuildingName() + \"-\" + currentTimesheets.get(i).getmClassroomName();\n if (title.equals(markerTitle)) {\n // Neu trung marker title thi gan timesheet order\n intent.putExtra(\"TimesheetOrder\", i);\n // Chuyen activity\n TourTabsActivity.this.startActivity(intent);\n break;\n }\n }\n }",
"@Override\n\tpublic void onInfoWindowClick(Marker marker)\n\t{\n\t\tString id = marker.getId();\n\t\tid = id.substring(1);\n\n\t\tmyLocation = new LatLng(map.getMyLocation().getLatitude(), map.getMyLocation().getLongitude());\n\n\t\tif (myLocation != null)\n\t\t{\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putString(KEY_NAMA, listTempatMakan.get(Integer.parseInt(id)).getNama());\n\t\t\tbundle.putString(KEY_ALAMAT, listTempatMakan.get(Integer.parseInt(id)).getAlamat());\n\t\t\tbundle.putDouble(KEY_LAT_TUJUAN, marker.getPosition().latitude);\n\t\t\tbundle.putDouble(KEY_LNG_TUJUAN, marker.getPosition().longitude);\n\t\t\tbundle.putDouble(KEY_LAT_ASAL, myLocation.latitude);\n\t\t\tbundle.putDouble(KEY_LNG_ASAL, myLocation.longitude);\n\n\t\t\tIntent i = new Intent(MainActivity.this, InfoTempatMakanActivity.class);\n\t\t\ti.putExtras(bundle);\n\t\t\tstartActivity(i);\n\n\t\t} else\n\t\t{\n\t\t\tToast.makeText(this, \"Tidak dapat menemukan lokasi anda \", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + location.get(position).getAddress() + \", Madrid, Spain\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(WeatherByGPS.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, Location.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(final View v) {\r\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW,\r\n\t\t\t\t\t\tUri.parse(\"google.navigation:q=\" + data.getLatitude()+\",\"+data.getLongitude() ));\r\n\t\t\t\t\t\tv.getContext().startActivity(intent);\r\n\t\t\t}",
"public void sendDelivery(View view) {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"http://maps.google.com/maps?saddr=enter your location&daadr=enter your destination\"));\n startActivity(intent);\n }",
"@Override\n public void onInfoWindowClick(Marker marker) {\n\n if (Config.CEK_KONEKSI(ListDealerMaps.this)) {\n if (markerAccessMapping.get(marker).equals(\"1\")) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(Config.DISP_KD_DEALER, markerIdMapping.get(marker));\n resultIntent.putExtra(Config.DISP_COY_DEALER, markerCoyMapping.get(marker));\n resultIntent.putExtra(Config.DISP_NAMA_DEALER, marker.getTitle());\n setResult(Activity.RESULT_OK, resultIntent);\n finish();\n }else{\n Toast.makeText(ListDealerMaps.this, Config.ALERT_ONLY_VIEW, Toast.LENGTH_SHORT).show();\n }\n } else {\n showDialog(Config.TAMPIL_ERROR);\n }\n\n }",
"@Override\n public void onClick(View view)\n {\n String nameSend = strGPSName;\n\n // Intent from HeartRateFragment to NameActivity //\n Intent intentName = new Intent(getActivity(), GPSNameActivity.class);\n intentName.putExtra(\"nameSend\", nameSend); // Send the value of the status field to GPSNameActivity //\n startActivity(intentName);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n\n\n mMap = googleMap;\n Intent intent = getIntent();\n seisme = (Seisme) intent.getSerializableExtra(\"seisme\");\n String[] split = seisme.getPoint().split(\" \");\n LatLng point = new LatLng(Double.parseDouble(split[0]), Double.parseDouble(split[1]));\n mMap.addMarker(new MarkerOptions().position(point).title(seisme.getTitle()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(point));\n\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener()\n {\n @Override\n public void onInfoWindowClick(Marker marker)\n {\n Context context = getApplicationContext();\n Intent intent = new Intent(MapsActivity.this, infoDetail.class);\n intent.putExtra(\"item\", seisme);\n startActivity(intent);\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t Uri.parse(\"http://maps.google.com/maps?saddr=\"+slat+\",\"+slong+\"&daddr=\"+dlat+\",\"+dlong));\n\t\t\t\t\tintent.setComponent(new ComponentName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\"));\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\n\t\t\treturn;\n\t\t\t\t}catch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLatLng srclatlng = getIntent().getParcelableExtra(\"currentlatlng\");\n\t\t\t\tLatLng destlatlng = getIntent().getParcelableExtra(\"latlng\");\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + srclatlng.latitude + \",\"\n\t\t\t\t\t\t+ srclatlng.longitude + \"&daddr=\" + destlatlng.latitude + \",\" + destlatlng.longitude));\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void mapsOpen (View view) {\n Intent mapIntent = new Intent(this, MapsActivity.class);\n startActivity(mapIntent);\n }",
"@Override\n public void onClick( View v ) {\n SharedPreferences sp = Objects.requireNonNull( getActivity() )\n .getSharedPreferences( Weather_Preference, 0 );\n SharedPreferences.Editor e = sp.edit();\n float curLat;\n float curLon;\n if ( cLocate != null ) {\n curLat = ( float ) cLocate.latitude;\n curLon = ( float ) cLocate.longitude;\n e.putString( MAP_LAT_KEY, String.valueOf( curLat ) );\n e.putString( MAP_LON_KEY, String.valueOf( curLon ) );\n Toast.makeText( mMaster, \"Latitude: \"\n .concat( String.valueOf( curLat ) )\n .concat( \" and Longitude: \" )\n .concat( String.valueOf( curLon ) )\n .concat( \" have been applied\" ),\n Toast.LENGTH_SHORT )\n .show();\n } else {\n /*Toast.makeText( mMaster, \"Error setting the location, check your GPS settings and permissions\", Toast.LENGTH_SHORT ).show();*/\n Toast.makeText( mMaster, \"Error setting the location; tap a location to drop a pin\", Toast.LENGTH_LONG ).show();\n }\n e.apply();\n }",
"private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }",
"@Override\r\n public void onClick(View v) {\r\n double latitude = Double.parseDouble(Latitude);\r\n double longitude = Double.parseDouble(Longitude);\r\n Log.e(\"URLcheck:\", Urimage);\r\n if(Latitude.equals(\"null\") || Longitude.equals(\"null\")){\r\n // 못 받아 올경우\r\n if (!isPermission) {\r\n callPermission();\r\n return;\r\n }\r\n\r\n gps = new GpsInfo(MainActivity.this);\r\n // GPS 사용유무 가져오기\r\n if (gps.isGetLocation()) {\r\n\r\n latitude = gps.getLatitude();\r\n longitude = gps.getLongitude();\r\n\r\n\r\n\r\n } else {\r\n // GPS 를 사용할수 없으므로\r\n gps.showSettingsAlert();\r\n }\r\n\r\n }\r\n\r\n\r\n MapPoint mapPoint = MapPoint.mapPointWithGeoCoord(latitude, longitude);\r\n mapView.setMapCenterPoint(mapPoint, true);\r\n //true면 앱 실행 시 애니메이션 효과가 나오고 false면 애니메이션이 나오지않음.\r\n\r\n MapPOIItem marker = new MapPOIItem();\r\n marker.setItemName(Storename);\r\n marker.setTag(0);\r\n marker.setMapPoint(mapPoint);\r\n // 기본으로 제공하는 BluePin 마커 모양.\r\n marker.setMarkerType(MapPOIItem.MarkerType.BluePin);\r\n // 마커를 클릭했을때, 기본으로 제공하는 RedPin 마커 모양.\r\n marker.setSelectedMarkerType(MapPOIItem.MarkerType.RedPin);\r\n mapView.addPOIItem(marker);\r\n\r\n RecyclerView viewing = (RecyclerView)findViewById(R.id.listView_main_list);\r\n viewing.setLayoutManager(new LinearLayoutManager(MainActivity.this));\r\n reviewArrayList = new ArrayList<>();\r\n Review_mAdapter = new MainAcitivity_Review(MainActivity.this,reviewArrayList);\r\n viewing.setAdapter(Review_mAdapter);\r\n reviewArrayList.clear();\r\n Review_mAdapter.notifyDataSetChanged();\r\n\r\n mapViewContainer.addView(mapView);\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n if(location!=null)\n {\n lat.setText(location.getLatitude() + \"\");\n lon.setText(location.getLongitude() + \"\");\n }\n else {\n showAlertDialog(\"GPS Connectivity Problem, Try Again!\");\n }\n //pb.setVisibility(View.GONE);\n if ( d1!=null && d1.isShowing() ){\n d1.dismiss();\n d1=null;\n }\n // fetchadd();\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.navigation:\n\t\t\tgotoBaiduMap();\n\t\t\tbreak;\n\t\tcase R.id.location:\n\t\t\tlocationIv.setEnabled(false);\n\t\t\tMapStatusUpdate msu = MapStatusUpdateFactory.zoomTo(15.0f);\n\t\t\tbaiduMap.setMapStatus(msu);\n\t\t\t// 设置定位监听器,其实是启动了定位\n\t\t\tLocationUtil.getInstance(_activity).startOneLocation(\n\t\t\t\t\tOneLocationListener);\n\n\t\t\tbreak;\n\t\tcase R.id.refresh:\n\n\t\t\tbreak;\n\t\tcase R.id.list:\n\t\t\tBundle playground = new Bundle();\n\t\t\tplayground.putInt(\"type\", type);\n\t\t\tif (isTest) {// 测试机构\n\t\t\t\tfinish();\n\t\t\t} else {\n\t\t\t\tif (isSwitch) {\n\t\t\t\t\tsetResult(RESULT_OK, playground);\n\t\t\t\t\tfinish();\n\t\t\t\t} else {\n\t\t\t\t\tplayground.putBoolean(\"isSwitch\", true);\n\t\t\t\t\tUIHelper.jumpForResult(_activity,\n\t\t\t\t\t\t\tNearbyElevatorPlaygroundListActivity.class,\n\t\t\t\t\t\t\tplayground, 1006);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.search:\n\t\t\tif (!TextUtils.isEmpty(input.getText().toString()))\n\t\t\t\tsearch(input.getText().toString());\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"private void showLocationDetail(Location selectedLocation) {\n Log.d(\"debugMode\", \"LocationMananager showLocationDetail Launched\");\n final Intent formIntent = new Intent(this, LocationManagerForm.class);\n formIntent.putExtra(LOCATION, selectedLocation);\n startActivityForResult(formIntent, KEY);\n }",
"@Override\n \tpublic void onMapClick(final LatLng point) \n \t{\n \t\t\n \t\t AlertDialog.Builder builder = new AlertDialog.Builder(CrearIncidenteGPS.this);\n \t\t builder.setMessage(\"Desea agregar un incidente en este lugar?\")\n \t\t .setCancelable(false)\n \t\t .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t \t//Agregar el incidente\n// \t\t \tlstLatLngs.add(point);\n \t\t \tinsertarIncidente(point);\n// \t\t \tgMap.addMarker(new MarkerOptions().position(point));\n \t\t }\n \t\t })\n \t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t dialog.cancel();\n \t\t }\n \t\t });\n \t\t AlertDialog alert = builder.create();\n \t\t alert.show();\n \t\t\n \t}",
"public void onClick(DialogInterface dialog, int which) {\n\t \r\n\t\t\t\t\t\tnumber= et.toString();\r\n\t\t\t\t\t\ttry{ \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t String fmsg =\"Lat:\"+lat+\"Long:\"+longi;\r\n\t\t\t\t\t\t\t Toast.makeText(Map.this, \"CURRENT LOCATION:\"+fmsg+ \" SEND TO \"+number, Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t sendSMS(number, fmsg);\r\n\t\t\t\t\t\t\t}\t\t\r\n\t\t\t\t\tcatch (Exception e)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t}}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (isTest) {\n\t\t\t\t} else {\n\t\t\t\t\tif (isSwitch) {// 电梯\n\t\t\t\t\t\tAppManager.getAppManager().finishActivity(\n\t\t\t\t\t\t\t\tNearbyElevatorPlaygroundListActivity.class);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tAppManager.getAppManager().finishActivity(\n\t\t\t\t\t\tNearbyElevatorOrPlaygroundMap.class);\n\t\t\t}",
"@Override\n public void onItemClick(int position)\n {\n /* DNI_Seleccionado = ListaUsuariosPrincipal.get(position).getDNI();\n\n Intent Activity2 = new Intent(MainActivity.this, MapsActivity.class);\n // Le paso los datos del Chofer a la segunda activity para mostrarla\n finish();\n Activity2.putExtra(\"DNI_Seleccionado\", DNI_Seleccionado);\n startActivity(Activity2);\n*/\n // Obtengo la informacion del item seleccionado\n double lat = -36;\n double longi = -58;\n\n Intent Activity2 = new Intent(MainActivity.this, MapsActivity.class);\n // Le paso los datos del Chofer a la segunda activity para mostrarla\n finish();\n Activity2.putExtra(\"lat\", lat);\n Activity2.putExtra(\"longi\", longi);\n startActivity(Activity2);\n }",
"private void displayLocation() {\n\n if(customProgressDialog.isShowing())\n customProgressDialog.cancel();\n\n boolean hasPermissionFine = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n boolean hasPermissionCoarse = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n if (!hasPermissionFine || !hasPermissionCoarse) {\n ActivityCompat.requestPermissions(LocationChooser.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION}, REQUEST_LOCATION);\n } else {\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n }\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n if (mLocation != null) {\n sLat = mLocation.getLatitude();\n sLang = mLocation.getLongitude();\n Log.d(\"curren location:\", String.valueOf(sLat) + \"::\" + String.valueOf(sLang));\n source.setText(\"Your location\");\n //locationText.setText(String.valueOf(sLat)+\"::\"+String.valueOf(sLang));\n } else {\n Toast.makeText(this, \"Location not Detected.\", Toast.LENGTH_SHORT).show();\n // showSettingsAlert();\n }\n }",
"@Override\n public void onClick(View view) {\n if(sesh.get(0).studentCin.length()==0){\n\n displayLocation();\n\n check.setVisibility(View.VISIBLE);\n cancel.setEnabled(true);\n }\n else{\n requestGps.setText(\"Checked In\");\n requestGps.setEnabled(false);\n check.setVisibility(View.VISIBLE);\n cancel.setEnabled(false);\n }\n\n\n\n //getLoco();\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Location.this, Graph.class);\n startActivity(intent);\n Location.this.finish();\n }",
"@Override\n public void onMapClick(LatLng point) {\n double lati = point.latitude;\n\n\n // Getting longitude of the current location\n double longi = point.longitude;\n\n\n i = new Intent(MapsActivity.this, addtasks.class);\n\n\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", lati);\n b.putDouble(\"longitude\", longi);\n i.putExtras(b);\n\n startActivity(i);\n\n }",
"public void getDirections (View view){\n Intent directionsIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + intent.getDoubleExtra(\"engineerLatitude\", 0) + \",\" + intent.getDoubleExtra(\"engineerLongitude\", 0) + \"&daddr=\" + intent.getDoubleExtra(\"reportLatitude\", 0) + \",\" + intent.getDoubleExtra(\"reportLongitude\", 0)));\n\n startActivity(directionsIntent);\n\n }",
"public void goStationDetail(MouseEvent e) throws IOException {\n BriefStation briefStation = list.getSelectionModel().getSelectedItem();\n int stationId = briefStation.getStationId();\n App.getInstance().display_StationDetailScreen(stationId);\n }",
"@Override\r\n\t\t\tpublic void onClick(final View v) {\n\t\t\t\tIntent intent = new Intent(mContext, GoogleMapsView.class);\r\n\t\t\t\tBundle b = new Bundle();\r\n\t\t\t\tb.putDouble(\"LATITUDE\", data.getLatitude());\r\n\t\t\t\tb.putDouble(\"LONGITUDE\", data.getLongitude());\r\n\t\t\t\tintent.putExtras(b);\r\n\t\t\t\t((Activity) mContext).startActivityForResult(intent, Globals.ACTIVITY_GOOGLE_MAPS);\r\n\t\t\t}",
"public void showMap(Uri geoLocation) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(geoLocation);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Location.this, Graph.class);\n startActivity(intent);\n Location.this.finish();\n }",
"public void myLocationClick() {\n\n //Set the initial camera position to the current location\n GridPoint gridPoint = myGridPoint();\n float mpp = 1;\n\n if (gridPoint != null) {\n\n CameraPosition cameraPosition = new CameraPosition(gridPoint, mpp);\n mMap.moveCamera(cameraPosition, true);\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n\n }\n\n }",
"@Override\n public void onClick(View v) {\n pickPointOnMap();\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i = new Intent(MainActivity.this, OgleAksam.class);\n\t\t\ti.putExtra(\"GosterimTipi\", 1); //sonraki activity'e yemeklerin gosterim seklini aktariyor\n\t\t\tstartActivity(i);\n\t\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap; //Cargamos el mapa\n miUbicacion(); //Cargamos nuestra ubicacion\n mMap.setInfoWindowAdapter(this);\n\n //START INTENT\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Meteo meteo = (Meteo) marker.getTag();\n Intent secondActivity = new Intent(MapsActivity.this,segAct.class);\n secondActivity.putExtra(\"name\",meteo.getName());\n secondActivity.putExtra(\"temp\",meteo.getMain().getTemp());\n secondActivity.putExtra(\"tempMax\",meteo.getMain().getTemp_max());\n secondActivity.putExtra(\"tempMin\",meteo.getMain().getTemp_min());\n secondActivity.putExtra(\"icon\",meteo.getWeather().get(0).getIcon());\n startActivity(secondActivity);\n }\n });\n }",
"public void intentForQuestion4 (View view){\n Intent question4 = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"https://www.google.pl/maps/place/Cape+Canaveral+Air+Force+Station/@28.4880013,-80.5730528,1691m/data=!3m1!1e3!4m5!3m4!1s0x88e0a4e74e6a8abb:0x2a16683cb4a44f!8m2!3d28.4886723!4d-80.5728241\"));\n startActivity(question4);\n }",
"public void onClick(View view) {\n\t\t\t\t\n\t\t try {\n\t\t \t\tgps_enabled = locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t\t \t} catch (Exception ex) {\n\t\t \t}\n\t\t \ttry {\n\t\t \t\tnetwork_enabled = locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\t\t \t} catch (Exception ex) {\n\t\t \t}\n\n\t\t \t// don't start listeners if no provider is enabled\n\t\t \t\n\t\t \tif (network_enabled) {\n\t\t \t\tlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locListener);\n\t\t \t}\n\t\t \tif (gps_enabled) {\n\t\t \t\tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locListener);\n\t\t \t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}"
]
| [
"0.6669401",
"0.6576713",
"0.65602505",
"0.65090424",
"0.6425103",
"0.6383961",
"0.6356753",
"0.6350128",
"0.63193494",
"0.6317985",
"0.63160604",
"0.62709254",
"0.62417006",
"0.62366843",
"0.6224879",
"0.6206571",
"0.62041485",
"0.6202621",
"0.61824924",
"0.61658406",
"0.61616206",
"0.6122129",
"0.6119779",
"0.61035174",
"0.6103053",
"0.6084227",
"0.607007",
"0.6042663",
"0.5979319",
"0.59748375",
"0.5954747",
"0.59536946",
"0.59351826",
"0.593394",
"0.5929502",
"0.5928866",
"0.5921592",
"0.59083015",
"0.5906195",
"0.588083",
"0.58746356",
"0.5863009",
"0.58446676",
"0.5840687",
"0.5831744",
"0.5826591",
"0.5819322",
"0.58080894",
"0.58005655",
"0.579446",
"0.5787192",
"0.5782044",
"0.5778804",
"0.5774194",
"0.57683516",
"0.5763173",
"0.57617605",
"0.5760796",
"0.5760135",
"0.5758928",
"0.5754414",
"0.57513607",
"0.5750866",
"0.57497156",
"0.57494056",
"0.57442147",
"0.57359487",
"0.57315356",
"0.57280856",
"0.57234186",
"0.571625",
"0.5713685",
"0.5712634",
"0.5699396",
"0.5696053",
"0.56960046",
"0.5695135",
"0.5693856",
"0.5685741",
"0.5684749",
"0.56799525",
"0.56718254",
"0.56687677",
"0.56676656",
"0.5667186",
"0.56667924",
"0.56667465",
"0.5666376",
"0.5664512",
"0.5660976",
"0.5648224",
"0.564695",
"0.5643029",
"0.5642116",
"0.5639994",
"0.563968",
"0.5631789",
"0.5631177",
"0.56203604",
"0.56156933",
"0.5615104"
]
| 0.0 | -1 |
go to view the gpsData | @Override
public void onMessageRowClicked(int position) {
GpsData gpsData = gpsDatas.get(position);
session.saveGpsData(gpsData);
Fragment fragment = new GpsDataViewFragment();
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(Utils.hasLength(item.getGeoReferencia())){\n \t\t\t\t\tString urlString = \"http://maps.google.com/maps?q=\" + item.getGeoReferencia() + \"&near=Madrid,Espa�a\";\n \t\t\t\t\tIntent browserIntent = new Intent(\"android.intent.action.VIEW\", \n \t\t\t\t\t\t\tUri.parse(urlString ));\n \t\t\t\t\tstartActivity(browserIntent);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}",
"public void logLocation(View view) {\n writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude());\n databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), \"receiver_orientation\", experimentNumber);\n accelerometerHandler.close();\n Toast.makeText(this, \"receivers GPS data logged\", Toast.LENGTH_SHORT).show();\n gpsLogged = true;\n }",
"public void showDataView() throws Exception {\n\t\tthis.getControl(\"dataViewButton\").click();\n\t\tbottomPaneState = \"dataView\";\n\t\tVoodooUtils.pause(3000);\n\t}",
"public void viewplot(View v)\n {\n Intent fp=new Intent(getApplicationContext(),MappingForm.class);\n startActivity(fp.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK));\n }",
"public void navigateToMyLocation(View view)\n {\n\n boolean nw = T.checkConnection(TripMapsActivity.this);\n\n if(nw)\n {\n // M permission for location\n\n boolean m = T.sdkLevel();\n\n if(m)\n {\n\n if (checkMPermission())\n {\n\n //Snackbar.make(view,\"Permission already granted.\",Snackbar.LENGTH_LONG).show();\n\n checkLocationServices();\n\n }\n else\n {\n\n requestMPermission();\n //Snackbar.make(view,\"Please request permission.\",Snackbar.LENGTH_LONG).show();\n }\n }\n else\n {\n checkLocationServices();\n }\n\n }\n else\n {\n T.t(TripMapsActivity.this, getResources().getString(R.string.connection));\n }\n\n }",
"private void displayLocation() {\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), 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 mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (mLastLocation != null) {\n double latitude = mLastLocation.getLatitude();\n double longitude = mLastLocation.getLongitude();\n\n\n String add = getAddressString(latitude, longitude);\n\n //Check in\n student_checkin chkIn = new student_checkin(getActivity(), sessionId, \"Lat: \" + latitude + \" Long: \" + longitude);\n chkIn.execute();\n lblLocation.setText(latitude + \", \" + longitude);\n cords.setText(add);\n\n\n\n } else {\n\n lblLocation\n .setText(\"(Couldn't get the location. Make sure location is enabled on the device)\");\n }\n }",
"public void goStationDetail(MouseEvent e) throws IOException {\n BriefStation briefStation = list.getSelectionModel().getSelectedItem();\n int stationId = briefStation.getStationId();\n App.getInstance().display_StationDetailScreen(stationId);\n }",
"private void displayLocation() {\n\n if(customProgressDialog.isShowing())\n customProgressDialog.cancel();\n\n boolean hasPermissionFine = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n boolean hasPermissionCoarse = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n if (!hasPermissionFine || !hasPermissionCoarse) {\n ActivityCompat.requestPermissions(LocationChooser.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION}, REQUEST_LOCATION);\n } else {\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n }\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n if (mLocation != null) {\n sLat = mLocation.getLatitude();\n sLang = mLocation.getLongitude();\n Log.d(\"curren location:\", String.valueOf(sLat) + \"::\" + String.valueOf(sLang));\n source.setText(\"Your location\");\n //locationText.setText(String.valueOf(sLat)+\"::\"+String.valueOf(sLang));\n } else {\n Toast.makeText(this, \"Location not Detected.\", Toast.LENGTH_SHORT).show();\n // showSettingsAlert();\n }\n }",
"public void viewCar(View view) {\n Intent intent = new Intent(ControlActivity.this, MapsActivity.class);\n intent.putExtra(StaticConfig.STR_EXTRA_IP, ip);\n intent.putExtra(StaticConfig.STR_EXTRA_PORT, port);\n intent.putExtra(StaticConfig.STR_EXTRA_TIME, serverInterval);\n intent.putExtra(StaticConfig.STR_EXTRA_STATIC, false);\n startActivity(intent);\n }",
"public String openPHPTravels() {\r\n\t\tString URL = CommonProperty.getProperty(\"url\" + PropertyManager.getProperty(\"zone\").toUpperCase());\r\n\t\tLog.info(\"\");\r\n\t\tLog.info(\"Opening URL : \" + URL);\r\n\t\tdriver.navigate().to(URL);\r\n\t\tString title = driver.getTitle();\r\n\t\tLog.info(title);\r\n\t\treturn URL;\r\n\t}",
"@Override\n\tpublic void data() {\n\t\tSystem.out.println(\"browsing through vodaphone\");\n\t\t\n\t}",
"private void startViewData() {\n startActivity(new Intent(this, ViewDataActivity.class));\n }",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}",
"public void getDirections (View view){\n Intent directionsIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + intent.getDoubleExtra(\"engineerLatitude\", 0) + \",\" + intent.getDoubleExtra(\"engineerLongitude\", 0) + \"&daddr=\" + intent.getDoubleExtra(\"reportLatitude\", 0) + \",\" + intent.getDoubleExtra(\"reportLongitude\", 0)));\n\n startActivity(directionsIntent);\n\n }",
"@Override\n\t\tpublic void onGetWalkingRouteResult(WalkingRouteResult walkingrouteresult) {\n\t\t\tnearby_baidumap.clear();// 清除图层覆盖物\n\t\t\tN_showdatainfotv.setText(\"\");\n\t\t\tSB.delete(0, SB.length());\n\t\t\tif (walkingrouteresult == null || walkingrouteresult.error != SearchResult.ERRORNO.NO_ERROR) {\n\t\t\t\tToastUtil.CreateToastShow(navigation, null, \"温馨提示\", \"没有找到合适的路线\");\n\t\t\t}\n\t\t\tif (walkingrouteresult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {\n\t\t\t\t// 起终点或途经点地址有岐义,通过以下接口获取建议查询信息\n\t\t\t\t// result.getSuggestAddrInfo()\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (walkingrouteresult.error == SearchResult.ERRORNO.NO_ERROR) {\n\t\t\t\tN_routeline = walkingrouteresult.getRouteLines().get(0);// 第一方案\n\t\t\t\tLog.e(\"L\", \"显示步行\");\n\n\t\t\t\tSB.append(\"起点\\t\\t\" + N_currentaddress).append(\"\\t\\t\\t----\\t\\t\\t\").append(\"终点\\t\\t\" + N_targetaddress)\n\t\t\t\t\t\t.append(\"\\n\\n\");\n\t\t\t\tfor (int i = 0; i < N_routeline.getAllStep().size(); i++) {\n\t\t\t\t\tWalkingRouteLine.WalkingStep step = (WalkingStep) N_routeline.getAllStep().get(i);\n\t\t\t\t\tSB.append(i + \"\\t入口\\t:\" + step.getEntranceInstructions()).append(\"\\t\\t\\t\")\n\t\t\t\t\t\t\t.append(i + \"\\t出口\\t:\" + step.getExitInstructions()).append(\"\\t\\t\\t\");\n\t\t\t\t}\n\n\t\t\t\tN_showdatainfotv.setText(SB);\n\t\t\t\tWalkingOverlayUtil walkingoverlayutil = new WalkingOverlayUtil(nearby_baidumap, navigation);\n\t\t\t\twalkingoverlayutil.setData(walkingrouteresult.getRouteLines().get(0));\n\t\t\t\twalkingoverlayutil.addToMap();\n\t\t\t\twalkingoverlayutil.zoomToSpan();\n\t\t\t}\n\n\t\t}",
"@Override\n public void onClick(View view) {\n String geoUri = \"http://maps.google.com/maps?q=loc:\" + 18.5155346 + \",\" + 73.7836165 + \" (\" + \"Manyavar\" + \")\";\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(geoUri));\n mcontext.startActivity(intent);\n\n }",
"@Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n context.startActivity(myIntent);\n //get gps\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstart = new GeoPoint((int) (locData.latitude * 1e6),\n\t\t\t\t\t\t(int) (locData.longitude * 1e6));\n\t\t\t\tstartNavi(start, end);\n\t\t\t}",
"public void viewDetails(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(roads.get(i).getName());\n System.out.println(roads.get(i).getNorthStatus() + \" - \" + roads.get(i).getNorthAdvisory());\n System.out.println(roads.get(i).getSouthStatus() + \" - \" + roads.get(i).getSouthAdvisory() + \"\\n\");\n }\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n paramDialogInterface.dismiss();\n\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(myIntent);\n //get gps\n }",
"public void showMyLocation() {\n if (myLocationoverlay.getLastFix() == null) return;\n\n boolean r = isMyLocationVisible(); // whether the current location is visible\n if (!r) {\n GeoPoint cl = new GeoPoint(myLocationoverlay.getLastFix());\n showLocation(cl.getLatitude(), cl.getLongitude());\n }\n }",
"public void showPatientList()\r\n\t{\n\t\tfor(int i=0; i<nextPatientLocation; i++)\r\n\t\t{\r\n\t\t\tString currentPositionPatientData = arrayPatients[i].toString();\r\n\t\t\tSystem.out.println(\"Patient \" + i + \" is \" + currentPositionPatientData);\r\n\t\t}\r\n\t}",
"public void mapIsClicked(View view) {\n Controller.viewMappa();\n }",
"public void goToStationView(View view) {\n Intent intent = new Intent(this, StationDetailsActivity.class);\n intent.putExtra(\"Station\", selectedStation);\n startActivityForResult(intent, 1);\n }",
"@Override//an ok la tu dong bat len can cai requet\n public boolean onMyLocationButtonClick() {\n if (Util.isGpsOpen(context)) {\n\n getMyLocation();//cho nay da co gps(di chuyen den vi tri cua minh va lay vi tri cua minh)\n\n return true;//no bat roi he thong lam tiesp ,\n } else {//bat GPS\n\n reqquestGps();\n return false;\n }\n//return true;\n// return false;//false la de mình lam xong no lam iep lý tiep con true thì no dung ơ ngay cho do\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = null,chooser = null;\n\t\t\t\tintent = new Intent(android.content.Intent.ACTION_VIEW);\n\t \t\t//For any Action\n\t \t\tintent.setData(Uri.parse(\"geo:27.961429,76.402788\"));\n\t \t\tchooser = Intent.createChooser(intent,\"MAPS Launch\");\n\t \t\tstartActivity(chooser);\n\t\t\t}",
"private void getLocations() {\n TripSave tripSave = TripHelper.tripOngoing();\n if (tripSave != null) {\n for (LocationSave locationSave : tripSave.getLocations()) {\n if (locationSave != null) {\n tripTabFragment.drawPolyLine(new LatLng(locationSave.getLatitude(), locationSave.getLongitude()));\n }\n }\n }\n }",
"private void readGPS() {\n }",
"private void DisplayTrack(String sSouce, String dDestiny)\n {\n\n try {\n //when google map installed\n // intialize url\n Uri uri = Uri.parse(\"https://www.google.co.in/maps/dir/\" +sSouce + \"/\" +dDestiny);\n\n //Intialize intent with action view\n\n Intent intent = new Intent(Intent.ACTION_VIEW,uri);\n // set pkg\n intent.setPackage(\"com.google.android.apps.maps\");\n\n // set flag\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n }catch (ActivityNotFoundException e)\n {\n // when google map is not install\n // set uri\n Uri uri = Uri.parse(\"https://play.google.com/store/apps/details?id=com.google.android.apps.maps\");\n // intialize intent with action view\n Intent intent = new Intent(Intent.ACTION_VIEW,uri);\n // set flag\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // start acivity\n startActivity(intent);\n\n }\n\n\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n HomeActivity.this.startActivity(myIntent);\n //get gps\n }",
"private void loadData() {\n gps = new GPSTracker(LocationActivity.this);\n if (from.equals(\"home\")) {\n if (lat == 0 && lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n lat = gps.getLatitude();\n lon = gps.getLongitude();\n Log.v(\"lati\", \"lat\" + lat);\n Log.v(\"longi\", \"longi\" + lon);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n } else if (from.equals(\"add\")) {\n if (AddProductDetail.lat == 0 && AddProductDetail.lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n Log.v(\"lati\", \"lat\" + AddProductDetail.lat);\n Log.v(\"longi\", \"longi\" + AddProductDetail.lat);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n }\n\n }",
"protected void viewLapTimes(View view) {\n //Checks if a lap exists for the current recording\n if (!mySession.getLaptimesAsString().equals(\"\")) {\n //Stops timer when stop session button is clicked\n t.stop();\n mGoogleApiClient.disconnect();\n //Adds the new session to the database\n addNewSession();\n cancelRecordingNotification();\n //takes user to laplist\n Context context = this;\n Class destinationClass = LapListActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n startActivity(intentToStartDetailActivity);\n } else {\n //Brings user to sessionListActivity and returns a toast to say no laps were recorded\n //and nothing has been saved to the database\n returnToSessionList();\n cancelRecordingNotification();\n\n Toast toast = Toast.makeText(this, \"Session not saved - No laps recorded\", Toast.LENGTH_LONG);\n toast.show();\n }\n }",
"public void viewLocationDetails(View v)\n {\n if (v instanceof LinearLayout)\n {\n LinearLayout selectedLayout = (LinearLayout) v;\n Location selectedLocation = (Location) selectedLayout.getTag();\n Log.i(\"CaffeineListActivity\", selectedLocation.toString());\n Intent detailsIntent = new Intent(this, CaffeineDetailsActivity.class);\n detailsIntent.putExtra(\"SelectedLocation\", selectedLocation);\n startActivity(detailsIntent);\n }\n }",
"public void view() {\n\t\t\t\n\t\t\tSystem.out.println(\"Poping up window to show each order of customer @ AdminSaleController\");\n\t\t\tCustomerOrderMain vo = new CustomerOrderMain();\n\t\t vo.start(ps);\n\t\t\t\n\t\t}",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"public void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase (R.id.btn_set_view):\n\t\t\tGeoLocation loc = new GeoLocation(\n\t\t\t\t\t(ParseGeoPoint) destination.get(\"location\"));\n\t\t\tGPS.getInstance().setDestination(loc);\n\t\t\tPreferences.setDestination(destination);\n\t\t\tIntent returnIntent = new Intent();\n\t\t\treturnIntent.putExtra(\"result\", 1);\n\t\t\tsetResult(RESULT_OK, returnIntent);\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t}",
"public void viewInfo(View view){\n if(currentBook.ISBN13 != null){//If the data for ISBN has been retrieved\n //Open browser with information\n String bookLink = GOOGLE_BASE_LINK + currentBook.ISBN13;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n browserIntent.setData(Uri.parse(bookLink));\n startActivity(browserIntent);\n }else{\n Toast.makeText(this, \"Book is still loading...\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\r\n public boolean onTap(GeoPoint arg0, MapView arg1) {\n if(getMyLocation()!=null){\r\n int size = 30;\r\n Point out=new Point();\r\n mMapView.getProjection().toPixels(getMyLocation(), out); \r\n Rect rect = new Rect(out.x-size,out.y-size,out.x+size,out.y+size);\r\n mMapView.getProjection().toPixels(arg0, out);\r\n if(rect.contains(out.x, out.y)){\r\n //Log.e(\"MyLocation\", \"click my location \");\r\n mPopView.setVisibility(View.GONE);\r\n MapView.LayoutParams params = (MapView.LayoutParams) mPopView.getLayoutParams();\r\n params.x = 0;// Y轴偏移\r\n params.y = -5;// Y轴偏移\r\n GeoPoint point = getMyLocation().e();\r\n params.point = point;\r\n //mMapCtrl.animateTo(point);\r\n mMapView.updateViewLayout(mPopView, params);\r\n mPopView.setVisibility(View.VISIBLE);\r\n }else{\r\n mPopView.setVisibility(View.GONE) ; \r\n }\r\n }\r\n return super.onTap(arg0, arg1);\r\n }",
"private void showLocationDetail(Location selectedLocation) {\n Log.d(\"debugMode\", \"LocationMananager showLocationDetail Launched\");\n final Intent formIntent = new Intent(this, LocationManagerForm.class);\n formIntent.putExtra(LOCATION, selectedLocation);\n startActivityForResult(formIntent, KEY);\n }",
"@Override\n\t\t\t\tpublic void onMapClick(LatLng point) {\n\t\t\t\t\tLog.d(\"数据测试\", \"\");\n\t\t\t\t\t\n\t\t\t\t}",
"public void displaymap(AircraftData data);",
"public void switchToViewLocations(View view) {\r\n Intent intent = new Intent(this, RouteMapActivity.class);\r\n intent.putExtra(\"ROUTE\", route);\r\n startActivity(intent);\r\n }",
"public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\n }",
"public void sendData() {\r\n\t\t// HoverBot specific implementation of sendData method\r\n\t\tSystem.out.println(\"Sending location information...\");\r\n\t}",
"@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0,0?q=\" + selected_location);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n if (mapIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLatLng srclatlng = getIntent().getParcelableExtra(\"currentlatlng\");\n\t\t\t\tLatLng destlatlng = getIntent().getParcelableExtra(\"latlng\");\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + srclatlng.latitude + \",\"\n\t\t\t\t\t\t+ srclatlng.longitude + \"&daddr=\" + destlatlng.latitude + \",\" + destlatlng.longitude));\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void sendDelivery(View view) {\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW,\n Uri.parse(\"http://maps.google.com/maps?saddr=enter your location&daadr=enter your destination\"));\n startActivity(intent);\n }",
"public void viewTaskDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnTaskDetails\"), \"Task Details Button\");\n\n\t}",
"@Override\n\tpublic void outputData() {\n\t\tSystem.out.println(\"输出显示器中的相对物理坐标!\");\n\t}",
"public void showDistanceCard(View view) {\n Profile profile = globals.getCurrentProfile();\n DatabaseHelper db = globals.getDB();\n globals.setCurrentProfile(profile);\n\n Intent intent = new Intent(this, DistanceCardActivity.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n Uri gmmIntentUri = Uri.parse(\"geo:37.7749,-122.4194\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }",
"private void showSelectedLocation(String location) {\n DatabaseHelper database = new DatabaseHelper(this);\n double lat = database.getLatitude(location);\n double lng = database.getLongitude(location);\n\n Log.i(\"Called\", lat + \" \" + lng);\n LatLng current = new LatLng(lat, lng);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(current, 18));\n }",
"@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getGohomeAltitude(new DJIExecuteFloatResultCallback() {\r\n \r\n @Override\r\n public void onResult(float result)\r\n {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, result + \"\"));\r\n }\r\n });\r\n }",
"private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\tResultSet rs = s.executeQuery(\"select * from account;\");\n\t\t\t// while (rs.next()) {\n\t\t\tString someobject = rs.getString(\"name\") + \" \" + rs.getString(\"password\");\n\t\t\tSystem.out.println(someobject);\n\t\t\toutput.setText(someobject);\n\t\t\t// output.setText(rs);\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n\t\t\t// rs.getStatement();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\tPostgresJDBC();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (yelpObjs != null) {\n\t\t\t\t\tYelpObject obj = yelpObjs.get(mPager.getCurrentItem());\n\t\t\t\t\tif (mLocationListener.isCurrentLocation()) {\n\t\t\t\t\t\tLatLng currLoc = mLocationListener.getCurrentLocation();\n\t\t\t\t\t\tIntent google = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t .parse(\"http://maps.google.com/maps?saddr=\"\n\t\t\t\t\t\t + currLoc.latitude + \",\"\n\t\t\t\t\t\t + currLoc.longitude + \"&daddr=\"\n\t\t\t\t\t\t + obj.getLocation().latitude + \",\" + obj.getLocation().longitude));\n\t\t\t\t\t\tstartActivity(google);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tString currLoc = mLocationListener.getInputLocation().replace(' ', '+');\n\t\t\t\t\t\tIntent google = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t .parse(\"http://maps.google.com/maps?saddr=\"\n\t\t\t\t\t\t + currLoc\n\t\t\t\t\t\t \t\t+ \"&daddr=\"\n\t\t\t\t\t\t + obj.getLocation().latitude + \",\" + obj.getLocation().longitude));\n\t\t\t\t\t\tstartActivity(google);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\tpublic void onGetDrivingRouteResult(DrivingRouteResult drivingrouteresult) {\n\t\t\tnearby_baidumap.clear();// 清除图层覆盖物\n\t\t\tN_showdatainfotv.setText(\"\");\n\t\t\tSB.delete(0, SB.length());\n\t\t\tif (drivingrouteresult == null || drivingrouteresult.error != SearchResult.ERRORNO.NO_ERROR) {\n\t\t\t\tToastUtil.CreateToastShow(navigation, null, \"温馨提示\", \"没有找到合适的路线\");\n\t\t\t}\n\t\t\tif (drivingrouteresult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {\n\t\t\t\t// 起终点或途经点地址有岐义,通过以下接口获取建议查询信息\n\t\t\t\t// result.getSuggestAddrInfo()\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (drivingrouteresult.error == SearchResult.ERRORNO.NO_ERROR) {\n\t\t\t\tN_routeline = drivingrouteresult.getRouteLines().get(0);// 第一方案\n\t\t\t\tSB.append(\"起点\\t\\t\" + N_currentaddress).append(\"\\t\\t\\t----\\t\\t\\t\").append(\"终点\\t\\t\" + N_targetaddress)\n\t\t\t\t\t\t.append(\"\\n\\n\");\n\t\t\t\tfor (int i = 0; i < N_routeline.getAllStep().size(); i++) {\n\n\t\t\t\t\tDrivingRouteLine.DrivingStep step = (DrivingStep) N_routeline.getAllStep().get(i);\n\n\t\t\t\t\tSB.append(i + \"\\t在\\t:\" + step.getEntranceInstructions() + \"\\t\\t\\t\")\n\t\t\t\t\t\t\t.append(i + \"\\t在\\t:\" + step.getExitInstructions() + \"\\t\\t\\t\");\n\t\t\t\t}\n\t\t\t\tN_showdatainfotv.setText(SB);\n\t\t\t\tDrivingOverlayUtil drivingoverlayutil = new DrivingOverlayUtil(nearby_baidumap, navigation);\n\t\t\t\tdrivingoverlayutil.setData(drivingrouteresult.getRouteLines().get(0));\n\t\t\t\tdrivingoverlayutil.addToMap();\n\t\t\t\tdrivingoverlayutil.zoomToSpan();\n\n\t\t\t}\n\n\t\t}",
"public void printLocationInfo()\n {\n System.out.println(currentRoom.getLongDescription());\n System.out.println();\n }",
"public String viewPluviometer() {\r\n\t\tconsultPluviometer();\r\n\t\treturn \"gesPluviometer\";\r\n\t}",
"public void report (View view) {\n\n if (toyRobotIsActive) {\n\n System.out.println(\"(X,Y,F) = \" + \"(\" //chk params n logs\n + (1 + robot.getTranslationX() / perUnitX) + \", \"\n + (-1 + robot.getTranslationY() / perUnitY) * (-1) + \", \"\n + (robot.getRotation() % 360) + \")\");\n\n errorMessage(\"(X,Y,F) = \" + \"(\" //display (X,Y,F) to user via Toast\n + (1 + robot.getTranslationX() / perUnitX) + \", \"\n + (-1 + robot.getTranslationY() / perUnitY) * (-1) + \", \"\n + getOrientation() + \")\");\n\n } else errorMessage(\"Please place toy robot\");\n }",
"private void openURL() {\n webview.loadUrl(\"http://192.168.0.116/webvitool/view/webvitool.php\");\n webview.requestFocus();\n }",
"public void reportData(View view){\n\t\tIntent reportIntent = new Intent(this, ReportActivity.class);\n\t\tstartActivity(reportIntent);\n\t}",
"private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }",
"@Override\n public void onLocationChanged(Location location) {\n if(location!=null)\n {\n lat.setText(location.getLatitude() + \"\");\n lon.setText(location.getLongitude() + \"\");\n }\n else {\n showAlertDialog(\"GPS Connectivity Problem, Try Again!\");\n }\n //pb.setVisibility(View.GONE);\n if ( d1!=null && d1.isShowing() ){\n d1.dismiss();\n d1=null;\n }\n // fetchadd();\n }",
"public void refresh_and_back_to_tourspane() {\n\t\tSceneController.pop();\n\t\tSceneController.pop_title();\n\t\tFadeOutRight anim1 = new FadeOutRight(HomeController.instance.PANE);\n\t\tanim1.play();\n\t\tanim1.setResetOnFinished(true);\n\t\tanim1.setOnFinished(event1 -> {\n\t\t\tSelectedCity_ToursController LookupForm = new SelectedCity_ToursController();\n\n\t\t\ttry {\n\t\t\t\tLookupForm.start(HomeController.instance.PANE);\n\n\t\t\t\tclient.requestHandler.Catalog.getAllTours(GeneralValues.CITY);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t});\n\t\t\n\t}",
"public void onLocationChanged(Location location) {\n \t StringBuilder buf=new StringBuilder(\"javascript:whereami(\"); \n buf.append(String.valueOf(location.getLatitude()));\n buf.append(\",\");\n buf.append(String.valueOf(location.getLongitude()));\n buf.append(\")\"); \n outputWindow.append(\"\\nStart to call JS:\" + buf.toString());\n browser.loadUrl(buf.toString());\n }",
"private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }",
"public void seeSpots (View view){\n Intent Spots = new Intent(this, SpotsActivity.class);\n startActivity(Spots);\n\n }",
"@Override\n public void onLocationChanged(final Location location) {\n // Lay vi tri hien tai cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if (tourTimesheetAdapter != null) {\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }",
"public void openUsagePoints() {\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.findElement(By.id(\"button-1049\")).click();\n }",
"@Override\r\n\t\t\tpublic void onClick(final View v) {\n\t\t\t\tIntent intent = new Intent(mContext, GoogleMapsView.class);\r\n\t\t\t\tBundle b = new Bundle();\r\n\t\t\t\tb.putDouble(\"LATITUDE\", data.getLatitude());\r\n\t\t\t\tb.putDouble(\"LONGITUDE\", data.getLongitude());\r\n\t\t\t\tintent.putExtras(b);\r\n\t\t\t\t((Activity) mContext).startActivityForResult(intent, Globals.ACTIVITY_GOOGLE_MAPS);\r\n\t\t\t}",
"@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tmylat=location.getLatitude();\n\t\tmylong=location.getLongitude();\n\t\tgetData();\n\t\t\n\t}",
"public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}",
"@Override\r\n\t\t\tpublic void onClick(final View v) {\r\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW,\r\n\t\t\t\t\t\tUri.parse(\"google.navigation:q=\" + data.getLatitude()+\",\"+data.getLongitude() ));\r\n\t\t\t\t\t\tv.getContext().startActivity(intent);\r\n\t\t\t}",
"public void bSitio3(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.223612);\n i.putExtra(\"Longitud\", -75.178183);\n i.putExtra(\"destino\", \"Piedra del Peñol\");\n startActivity(i);\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getApplicationContext().startActivity(myIntent);\n //get gps\n }",
"private void showCurrentLocation() {\n if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationRequest locationRequest = LocationRequest.create();\n locationRequest.setInterval(10000);\n locationRequest.setFastestInterval(5000);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationCallback mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n if (locationResult == null) {\n return;\n }\n for (Location location : locationResult.getLocations()) {\n if (location != null) {\n LatLng current = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(current, 18));\n if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n }\n\n }\n }\n }\n };\n\n LocationServices.getFusedLocationProviderClient(this).requestLocationUpdates(locationRequest, mLocationCallback, null);\n\n } else { // Show default location\n requestLocationPermission();\n\n LatLng current = new LatLng(34.180972800611016, -117.32337489724159);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(current, 18));\n }\n }",
"public void getLocationInfo() {\n startLocationService();\n }",
"private void onViewPatient() {\n\t\tint selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0)\n\t\t\t// No row has been selected\n\t\t\treturn;\n\n\t\t// Gets the patient ID\n\t\tbyte[] patientId = (byte[]) tablePatients.getValueAt(selectedRowIndex, PatientTable.ID);\n\n\t\t// Sets the patient ID as the current one\n\t\tPatientManager.setCurrentPatientId(patientId);\n\n\t\t// Opens the patient frame\n\t\tGuiManager.openFrame(GuiManager.FRAME_PATIENT);\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n if (ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n // Bat gps thi di chuyen camera den vi tri cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if(tourTimesheetAdapter != null){\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }\n }",
"@Override\n public void selectedUser(App app) {\n Point point = Point.fromLngLat(app.getLongitude(),app.getLatitude());\n LatLng latLng = new LatLng(point.latitude(), point.longitude());\n Point destinationPoint = Point.fromLngLat(latLng.getLongitude(), latLng.getLatitude());\n\n Point originPoint = Point.fromLngLat(locationComponent.getLastKnownLocation().getLongitude(),\n locationComponent.getLastKnownLocation().getLatitude());\n\n GeoJsonSource source = mapboxMap.getStyle().getSourceAs(\"destination-source-id\");\n if (source != null) {\n source.setGeoJson(Feature.fromGeometry(destinationPoint));\n }\n getRoute(originPoint, destinationPoint);\n CameraPosition position = new CameraPosition.Builder()\n .target(new LatLng(latLng.getLatitude(),latLng.getLongitude())) // Sets the new camera position\n .zoom(13)\n .bearing(180) // Rotate the camera\n .tilt(30) // Set the camera tilt\n .build(); // Creates a CameraPosition from the builder\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position),7000);\n directionbutton.show();\n\n }",
"@Override\n public void onClick(View view) {\n String sms = \"FINDME location is \";\n if (LOCATION != null) {\n sms = sms + \"coordinates\" + \"*\" + LOCATION.latitude + \"*\" + LOCATION.longitude;\n }\n sendSms(\"0473848248\", sms);\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 }",
"public void visualizarDatos(View view) {\n Intent datos = new Intent(this, vistualiazrDatosTotales.class);\n datos.putExtra(\"id\", id);\n startActivity(datos);\n finish();\n }",
"void view();",
"private void getLocation() {\n\n }",
"public void showDetails(View view){\n View parent=(View)view.getParent();\n taskname=(TextView)parent.findViewById(R.id.tname);\n String ts=String.valueOf(taskname.getText());\n ArrayList<String>a = help.getAllTaskDtae( ts);\n if(a.isEmpty() ) {\n // show message\n showMessage(\"Error\",\"Nothing found\");\n return;\n }\n StringBuffer buffer = new StringBuffer();\n if(a.contains(ts)) {\n buffer.append(\"Task Name :- \"+ a.get(0)+\"\\n\");\n buffer.append(\"Task Date :- \"+ a.get(1)+\"\\n\");\n buffer.append(\"Remainder Date :\"+ a.get(2)+\"\\n\\n\");\n }\n\n //Show all data\n showMessage(\"Data\",buffer.toString());\n }",
"public void goTo(View view, Object data) {\n if (stage != null) {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"../ui/\" + view.toString() + \".fxml\"));\n Parent root = loader.load();\n OnLoad controller = loader.getController();\n controller.onLoad(data);\n stage.setTitle(APP_NAME);\n stage.setScene(new Scene(root, APP_WIDTH, APP_HEIGHT));\n stage.show();\n } catch (IOException e) {\n System.err.println(\"The view \" + \"../ui/\" + view.toString() + \".fxml\" + \" doesn't exist.\");\n e.printStackTrace();\n }\n }\n }",
"private void getMyLocation() {\n LatLng latLng = new LatLng(latitude, longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }",
"@Override\n public void robotPeriodic() {\n //This prints Data to the Driver Station\n SmartDashboard.putString(\"DB/String 2\", \"\" + elevator.getSensorCollection().getQuadraturePosition());\n //SmartDashboard.putString(\"DB/String 7\", \"\" + rightEncoder.getDistance());\n }",
"public void view(){\r\n System.out.println(\"\tNombre: \"+name);\r\n\t\tSystem.out.println(\"\tTipo: \"+type.id);\r\n\t\tSystem.out.println(\"\tVal: \"+((Integer)val).intValue());\r\n\t\tif(block==true){\r\n\t\t\tSystem.out.println(\"\tBLOQUEADA\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"\tDESBLOQUEADO\");\r\n\t\t}\r\n //System.out.println(\"\tTipo2: \"+kind);\r\n //System.out.println(\"\tAnidamiento: \"+level);\r\n //System.out.println(\"\tSigDireccion: \"+nextAdr);\r\n System.out.println(\"\t*********************\");\r\n\t\tSystem.out.println();\r\n }",
"@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }",
"public void bSitio2(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.269434 );\n i.putExtra(\"Longitud\", -75.18322);\n i.putExtra(\"destino\", \"Represa Guatapé\");\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n Uri gmmIntentUri = Uri.parse(\"geo:0, 0?q=Animal+Shelter+near+me\");\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n startActivity(mapIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trequestLocClick();\n\t\t\t}",
"public void showLiaisonByClick()\t{\r\n \tSystem.out.print(\"Cliquez votre route: \");\r\n \tif (dessin.waitClick()) {\r\n \t float lon = dessin.getClickLon() ;\r\n \t float lat = dessin.getClickLat() ;\r\n \t \r\n \t float minDist = Float.MAX_VALUE ;\r\n \t Liaison chosen = null;\r\n \t \r\n \t for(Liaison liaison: this.routes)\t{\r\n \t \tfloat londiff = liaison.getLongitude() - lon;\r\n \t \tfloat latdiff = liaison.getLatitude() - lat;\r\n \t \tfloat dist = londiff*londiff + latdiff*latdiff ;\r\n \t \tif(dist < minDist)\t{\r\n \t \t\tchosen = liaison;\r\n \t \t\tminDist = dist;\r\n \t \t}\r\n \t }\r\n \t \r\n\t \tchosen.dessiner(dessin, this.numzone, Color.red);\r\n\t \tthis.dessin.putText(chosen.getLongitude(), chosen.getLatitude(), chosen.toString());\r\n\t \tSystem.out.println(chosen);\r\n\r\n \t}\r\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Location.this, Graph.class);\n startActivity(intent);\n Location.this.finish();\n }",
"@Override\n public void onClick(View v) {\n if (!mTrackingLocation) {\n iniciarLocal();\n //Intent it = new Intent(Intent.ACTION_WEB_SEARCH);\n //it.putExtra(SearchManager.QUERY, \"Lojas Geek próximas \"+ lastAdress);\n //startActivity(it);\n } else {\n pararLocal();\n }\n }",
"@Override\n\tpublic void showPatientDetails() {\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();\n\t\tSystem.out.println(\"S.No Patient's name ID Mobile Age\");\n\t\tfor (int i = 1; i <= UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i - 1);\n\t\t\tSystem.out.print(\" \" + i + \" \" + jsnobj.get(\"Patient's name\") + \" \" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t+ \" \" + jsnobj.get(\"Mobile\") + \" \" + jsnobj.get(\"Age\") + \"\\n\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@RequestMapping(value = \"/viewAllObjectLocationGas\", method = RequestMethod.GET)\n\tpublic List<ObjectLocationGas> viewAllObjectLocationGas() {\n\t\tAndroidDAO ad = new AndroidDAO();\n\t\tList<ObjectLocationGas> listObjLocationGas = ad.getAllObjectLocationGas();\n\t\treturn listObjLocationGas;\n\t}",
"public void onClick(View view) {\n\t\t\t\t\n\t\t try {\n\t\t \t\tgps_enabled = locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t\t \t} catch (Exception ex) {\n\t\t \t}\n\t\t \ttry {\n\t\t \t\tnetwork_enabled = locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\t\t \t} catch (Exception ex) {\n\t\t \t}\n\n\t\t \t// don't start listeners if no provider is enabled\n\t\t \t\n\t\t \tif (network_enabled) {\n\t\t \t\tlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locListener);\n\t\t \t}\n\t\t \tif (gps_enabled) {\n\t\t \t\tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locListener);\n\t\t \t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}"
]
| [
"0.61971515",
"0.5921342",
"0.5887384",
"0.58571273",
"0.57989335",
"0.57918876",
"0.57865846",
"0.57464474",
"0.5673858",
"0.56460756",
"0.5633602",
"0.56171066",
"0.56100774",
"0.55800474",
"0.5578991",
"0.55726016",
"0.55653965",
"0.55641913",
"0.55637914",
"0.5551927",
"0.5549674",
"0.5548742",
"0.5545281",
"0.5509287",
"0.55081826",
"0.54987687",
"0.5494785",
"0.5487317",
"0.5483756",
"0.54687643",
"0.5468285",
"0.5464407",
"0.54470766",
"0.54419243",
"0.54414785",
"0.5428053",
"0.5421222",
"0.54197204",
"0.54186416",
"0.5418176",
"0.5408041",
"0.5396412",
"0.5394527",
"0.5392265",
"0.53818125",
"0.53786004",
"0.53768367",
"0.5368081",
"0.53679204",
"0.53542304",
"0.5351629",
"0.534916",
"0.5348477",
"0.5347863",
"0.5342513",
"0.5335326",
"0.532591",
"0.53156716",
"0.5313944",
"0.53122485",
"0.53092325",
"0.5308317",
"0.5303342",
"0.53001046",
"0.5297406",
"0.52887696",
"0.52874744",
"0.52824235",
"0.52756375",
"0.527487",
"0.5266468",
"0.5265238",
"0.52624345",
"0.52573586",
"0.52571225",
"0.5249632",
"0.5245921",
"0.5238103",
"0.52349657",
"0.52316177",
"0.52240705",
"0.52218246",
"0.52213395",
"0.5216071",
"0.5214384",
"0.52084005",
"0.52078205",
"0.52039844",
"0.5203408",
"0.52030563",
"0.5197812",
"0.51932913",
"0.5192158",
"0.5187499",
"0.5186362",
"0.5186071",
"0.518487",
"0.5184144",
"0.51821065",
"0.5180308",
"0.5176577"
]
| 0.0 | -1 |
extract the clicked gpsData | @Override
public void onRowLongClicked(int position) {
GpsData gpsData = gpsDatas.get(position);
session.saveGpsData(gpsData);
Fragment fragment;
NewGpsDataFragment newGpsDataFragment = new NewGpsDataFragment();
newGpsDataFragment.editingGps = gpsData;
fragment = newGpsDataFragment;
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);
fragmentTransaction.replace(R.id.frame, fragment, "registrations");
fragmentTransaction.commitAllowingStateLoss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void retrieveLocationClicked() {\n locationClikedId = getIntent().getIntExtra(GeneralConstants.EDIT_LOCATION_DETAILS_KEY, 0);\n }",
"private void readGPS() {\n }",
"@Override\n\t\t\t\tpublic void onMapClick(LatLng point) {\n\t\t\t\t\tLog.d(\"数据测试\", \"\");\n\t\t\t\t\t\n\t\t\t\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}",
"private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }",
"private void loadData() {\n gps = new GPSTracker(LocationActivity.this);\n if (from.equals(\"home\")) {\n if (lat == 0 && lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n lat = gps.getLatitude();\n lon = gps.getLongitude();\n Log.v(\"lati\", \"lat\" + lat);\n Log.v(\"longi\", \"longi\" + lon);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n } else if (from.equals(\"add\")) {\n if (AddProductDetail.lat == 0 && AddProductDetail.lon == 0) {\n if (gps.canGetLocation()) {\n if (TextbookTakeoverApplication.isNetworkAvailable(LocationActivity.this)) {\n Log.v(\"lati\", \"lat\" + AddProductDetail.lat);\n Log.v(\"longi\", \"longi\" + AddProductDetail.lat);\n } else {\n // TextbookTakeoverApplication.dialog(LocationActivity.this, \"Error!\", \"Please check your connection and try again\");\n }\n } else {\n if (!alertDialog.isShowing()) {\n alertDialog.show();\n }\n got = true;\n }\n }\n }\n\n }",
"@Override\n public void onLocationChanged(Location location) {\n String myUrl = \"https://a.mapillary.com/v3/map_features?layers=trafficsigns\" +\n \"&radius=600\" +\n \"&client_id=YUNMM3lQRXRUR1Y0MDBwcEVLaFJsUTo2ZWFjY2Y0YWJhM2JmYmM5\" +\n \"&per_page=\" + numberOfResults +\n \"&closeto=\" + location.getLongitude() + \",\" + location.getLatitude();\n //String to place our result in\n String result = null;\n //Instantiate new instance of our class\n HttpGetRequest getRequest = new HttpGetRequest();\n //Perform the doInBackground method, passing in our url\n try {\n result = getRequest.execute(myUrl).get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n try {\n JSONObject jObject = new JSONObject(result);\n JSONArray features = jObject.getJSONArray(\"features\");\n for (int i=0; i < numberOfResults; i++){\n try {\n JSONObject featuresObject = features.getJSONObject(i);\n // Pulling items from the array\n JSONObject properties = featuresObject.getJSONObject(\"properties\");\n nearbyRoadSigns[i] = properties.getString(\"value\");\n\n System.out.println(nearbyRoadSigns[i]);\n\n } catch (JSONException e) {\n // Oops\n }\n }\n locationManager.removeUpdates(this);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"public void mouseClicked(MouseEvent e) {\n System.out.println(e.getX()+\" \"+e.getY());\n \n switch(state){\n case DEFAULT:\n if(e.isMetaDown()){\n String info = \"\";\n \n }\n break;\n \n case ROAD_BUILDING:\n //TODO\n break;\n \n case SETTLEMENT_BUILDING:\n //TODO\n break;\n \n case CITY_BUILDING:\n //TODO\n break;\n \n case ROBBER:\n int[] coordinates = new int[2];\n //coordinates[0]\n break;\n }\n }",
"public void parseGPSData(){\n List<String> coordData = new ArrayList<String>();\n for (int i = 6; i < currentMessage.size(); i++){\n // Convert to int to rid ourselves of preceding zeros. Yes, this is bad.\n coordData.add(\n String.valueOf(\n Integer.parseInt(\n bcdToStr(currentMessage.get(i))\n )\n )\n );\n }\n\n String latitudeNorthSouth = (\n bcdToIntString(coordData.get(3)).charAt(1) == '0'\n ) ? \"N\" : \"S\";\n \n String longitudeEastWest = (\n bcdToIntString(coordData.get(8)).charAt(1) == '0'\n ) ? \"E\" : \"W\";\n \n triggerCallback(\"onUpdateGPSCoordinates\",\n String.format(\n \"%.4f%s%s %.4f%s%s\", \n //Latitude\n decimalMinsToDecimalDeg(\n coordData.get(0), coordData.get(1), coordData.get(2)\n ),\n (char) 0x00B0,\n latitudeNorthSouth,\n //Longitude\n decimalMinsToDecimalDeg(\n coordData.get(4) + coordData.get(5),\n coordData.get(6),\n coordData.get(7)\n ),\n (char) 0x00B0,\n longitudeEastWest\n )\n );\n \n // Parse out altitude data which is in meters and is stored as a byte coded decimal\n int altitude = Integer.parseInt(\n bcdToStr(currentMessage.get(15)) + bcdToStr(currentMessage.get(16))\n );\n\n triggerCallback(\"onUpdateGPSAltitude\", altitude);\n \n // Parse out time data which is in UTC\n String gpsUTCTime = String.format(\n \"%s:%s\",\n bcdToIntString(bcdToStr(currentMessage.get(18))),\n bcdToIntString(bcdToStr(currentMessage.get(19)))\n );\n \n triggerCallback(\"onUpdateGPSTime\", gpsUTCTime);\n }",
"@Override\n public void onClick(View v) {\n SubPlanListDTO llh = (SubPlanListDTO)v.getTag();\n //Toast.makeText(getApplicationContext(),\"위치 x=\"+llh.getLlh_x()+\"y=\"+llh.getLlh_y(),Toast.LENGTH_SHORT).show();\n ////여기수정하면됨......\n Date date = new Date();\n SimpleDateFormat transFormat = new SimpleDateFormat(\"HH:mm\");\n String to = transFormat.format(date);\n System.out.println(to);\n\n String tos[] = to.split(\":\");\n String times[] = llh.getTime().split(\"~\");\n String start_times[] = times[0].split(\":\");\n String end_times[] = times[1].split(\":\");\n\n lat2 = Double.parseDouble(llh.getLlh_x());\n lon2 = Double.parseDouble(llh.getLlh_y());\n gps = new GpsInfo(ToDayListSubplan.this);\n\n if(Integer.parseInt(tos[0]) == Integer.parseInt(start_times[0])){\n if(Integer.parseInt(tos[1])>=Integer.parseInt(start_times[1])){\n // GPS 사용유무 가져오기\n if (gps.isGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n lat1 = latitude;\n lon1 = longitude;\n //txtLat.setText(String.valueOf(latitude));\n //txtLon.setText(String.valueOf(longitude));\n\n if(calDistance(lat1,lon1,lat2,lon2) <= 500){\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치1 - \\n위도: \" + latitude + \"\\n경도: \" + longitude+\"\\n 위치비교값:\"+calDistance(lat1,lon1,lat2,lon2)+\"\",\n Toast.LENGTH_LONG).show();\n\n int sub_num = llh.getSub_num();\n\n String requestURL = \"http://192.168.14.45:8805/meto/and/schedule/getGPS.do\";\n\n //HttpClient client = new DefaultHttpClient();\n HttpClient client = SessionControl.getHttpclient();\n HttpPost post = new HttpPost(requestURL);\n List<NameValuePair> paramList = new ArrayList<>();\n\n paramList.add(new BasicNameValuePair(\"sub_num\", String.valueOf(sub_num)));\n\n try {\n post.setEntity(new UrlEncodedFormEntity(paramList, \"UTF-8\"));\n HttpResponse response = client.execute(post);\n HttpEntity entity = response.getEntity();\n //Toast.makeText(getApplicationContext(), \"flag 확인 \"+flag,Toast.LENGTH_SHORT).show();\n\n Log.d(\"서브넘버 보냈쨔냐 \", \"\"+sub_num);\n } catch(Exception e) {\n Log.d(\"sendPost===> \", e.toString());\n }\n } else {\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치에서 500m 사이 거리가 아닙니다.\",\n Toast.LENGTH_LONG).show();\n }\n } else {\n // GPS 를 사용할수 없으므로\n gps.showSettingsAlert();\n }\n }\n } else if(Integer.parseInt(tos[0]) == Integer.parseInt(end_times[0])){\n if(Integer.parseInt(tos[1])<=Integer.parseInt(end_times[1])){\n // GPS 사용유무 가져오기\n if (gps.isGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n lat1 = latitude;\n lon1 = longitude;\n //txtLat.setText(String.valueOf(latitude));\n //txtLon.setText(String.valueOf(longitude));\n if(calDistance(lat1,lon1,lat2,lon2) <= 500){\n Toast.makeText(\n getApplicationContext(),\n \"당신의 위치2 - \\n위도: \" + latitude + \"\\n경도: \" + longitude+\"\\n 위치비교값:\"+calDistance(lat1,lon1,lat2,lon2)+\"\",\n Toast.LENGTH_LONG).show();\n\n int sub_num = llh.getSub_num();\n\n String requestURL = \"http://192.168.14.45:8805/meto/and/schedule/getGPS.do\";\n\n //HttpClient client = new DefaultHttpClient();\n HttpClient client = SessionControl.getHttpclient();\n HttpPost post = new HttpPost(requestURL);\n List<NameValuePair> paramList = new ArrayList<>();\n\n paramList.add(new BasicNameValuePair(\"sub_num\", String.valueOf(sub_num)));\n\n try {\n post.setEntity(new UrlEncodedFormEntity(paramList, \"UTF-8\"));\n HttpResponse response = client.execute(post);\n HttpEntity entity = response.getEntity();\n //Toast.makeText(getApplicationContext(), \"flag 확인 \"+flag,Toast.LENGTH_SHORT).show();\n\n Log.d(\"서브넘버 보냈쨔냐 \", \"\"+sub_num);\n } catch(Exception e) {\n Log.d(\"sendPost===> \", e.toString());\n }\n }\n\n } else {\n // GPS 를 사용할수 없으므로\n gps.showSettingsAlert();\n }\n }\n }\n\n\n }",
"public void handleGPS()\n {\n\t\t\n\t\tRunnable r2 = new Runnable() {\n\n public void run() {\n \ttry {\n BlackBerryCriteria criteria = new BlackBerryCriteria(GPSInfo.GPS_MODE_AUTONOMOUS);\n\n try\n {\n BlackBerryLocationProvider myProvider =\n (BlackBerryLocationProvider)\n LocationProvider.getInstance(criteria);\n\n try\n {\n BlackBerryLocation myLocation = (BlackBerryLocation)myProvider.getLocation(300);\n\n int satCount = myLocation.getSatelliteCount();\n \n setLat(myLocation.getQualifiedCoordinates().getLatitude());\n setLongt(myLocation.getQualifiedCoordinates().getLongitude());\n \n //data.setVisibleNone();\n \t\tMapLocation test = new MapLocation(myLocation.getQualifiedCoordinates().getLatitude(), myLocation.getQualifiedCoordinates().getLongitude(), \"test\", null);\n \t\tint testId = data.add((Mappable) test, \"test\");\n \t\tdata.tag(testId, \"test\");\n \t\tdata.setVisibleNone();\n \t\tdata.setVisible( \"test\");\n// \t\tMapAction action = map.getAction();\n// \t\taction.setCentreAndZoom(new MapPoint(43.47462, -80.53820), 2);\n \t\tmap.getMapField().update(true);\n \n \n \n \n int signalQuality = myLocation.getAverageSatelliteSignalQuality();\n int dataSource = myLocation.getDataSource();\n int gpsMode = myLocation.getGPSMode();\n\n SatelliteInfo si;\n StringBuffer sb = new StringBuffer(\"[Id:SQ:E:A]\\n\");\n String separator = \":\";\n\n for (Enumeration e = myLocation.getSatelliteInfo();\n e!=null && e.hasMoreElements(); )\n {\n si = (SatelliteInfo)e.nextElement();\n sb.append(si.getId() + separator);\n sb.append(si.getSignalQuality() + separator);\n sb.append(si.getElevation() + separator);\n sb.append(si.getAzimuth());\n sb.append('\\n');\n System.out.println(sb);\n }\n }\n catch ( InterruptedException iex )\n {\n Logger.log(iex.toString());\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( LocationException lex )\n {\n \tLogger.log(lex.toString());\n }\n }\n catch ( UnsupportedOperationException uoex )\n {\n \tLogger.log(uoex.toString());\n }\n\n// return;\n }\n\t\t};\n\t\tcontroller.invokeLater(r2);\n }",
"@Override\r\n public boolean onTap(GeoPoint arg0, MapView arg1) {\n if(getMyLocation()!=null){\r\n int size = 30;\r\n Point out=new Point();\r\n mMapView.getProjection().toPixels(getMyLocation(), out); \r\n Rect rect = new Rect(out.x-size,out.y-size,out.x+size,out.y+size);\r\n mMapView.getProjection().toPixels(arg0, out);\r\n if(rect.contains(out.x, out.y)){\r\n //Log.e(\"MyLocation\", \"click my location \");\r\n mPopView.setVisibility(View.GONE);\r\n MapView.LayoutParams params = (MapView.LayoutParams) mPopView.getLayoutParams();\r\n params.x = 0;// Y轴偏移\r\n params.y = -5;// Y轴偏移\r\n GeoPoint point = getMyLocation().e();\r\n params.point = point;\r\n //mMapCtrl.animateTo(point);\r\n mMapView.updateViewLayout(mPopView, params);\r\n mPopView.setVisibility(View.VISIBLE);\r\n }else{\r\n mPopView.setVisibility(View.GONE) ; \r\n }\r\n }\r\n return super.onTap(arg0, arg1);\r\n }",
"public void onClick(View view) throws ParseException, InterruptedException{\n\t\tGeoData gd = null;\n\t\tDatabaseHelper mHelper;\n\t\tIterator<GeoData> tt;\n\t\tswitch(view.getId()){\n\t\tcase R.id.add:\n\t\t\tstartService(new Intent(this, PostStepDetectionService.class));\n\t\t\tConnectivityManager mag = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tNetworkInfo info = mag.getActiveNetworkInfo();\n\t\t\tif(info == null){\n\t\t\t\tToast.makeText(getApplicationContext(), \"Network not avaliable\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//relayPostToServer(datasource.getAllGeoData());\n\t\t\t\t//startService(new Intent(this, PostGeoData.class));\n\t\t\t\tstartService(new Intent(this, PostWifiData.class));\n\t\t\t\t//startService(new Intent(this, PostStepDetectionService.class));\n\t\t\t\tToast.makeText(getApplicationContext(), \"Finished..\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t//adapter.add(gd);\n\t\t\tbreak;\n\t\tcase R.id.openmap:\n\t\t\t//Intent intent = new Intent(getApplicationContext(), GMapActivity.class);\n\t\t\t//startActivity(intent);\n\t\t\t/*\n\t \tTrackingValue appState = ((TrackingValue)getApplicationContext());\n\t lat = appState.getlat();\n\t lng = appState.getlng();\n\t \n\t\t\tmHelper = new DatabaseHelper(getApplicationContext());\n\t\t\tSQLiteDatabase db = mHelper.getWritableDatabase();\n\t\t\tdatasource = new GeoDataSource(this);\n\t\t\tdatasource.open();\n\t\t\tList<GeoData> values1 = datasource.getAllGeoData();\n\t\t\tdatasource.close();\n\t\t\ttt = values1.iterator();\n\t\t\t\n\t\t\t\n\t\t\twhile(tt.hasNext()){\n\t\t\t\tGeoData data = (GeoData) tt.next();\n\t\t\t\tLog.e(\"data\",data.getGeoData());\n\t\t\t}\n\t\t\t//GeoData k = values1.get(tt);\n\t\t\t//String datak = k.getGeoData();\n\t\t\t//Log.e(\"k\",datak);\n\t\t\t * *\n\t\t\t */\n\t\t\tstopService(new Intent(this, PostStepDetectionService.class));\n\t\t\tmHelper = new DatabaseHelper(getApplicationContext());\n\t\t\tSQLiteDatabase db = mHelper.getWritableDatabase();\n\t\t\tContentValues values = new ContentValues();\n\t\t\tdb.delete(TBL_NAME, null, null);\n\t\t\tvalues.put(\"length\", 0);\n\t\t\tvalues.put(\"lat\", lat);\n\t\t\tvalues.put(\"lng\", lng);\n\t\t\tdb.insert(TBL_NAME, null, values);\n\t\t\n\n\t\t}\n\t\t//adapter.notifyDataSetChanged();\n\t\t\n\t}",
"public GridPoint digitise() {\n\n Location myLocation = myLocation();\n GridPoint myGP = myGridPoint();\n //myLocationClick();\n points.add(myGridPoint());\n if (points.size() > 2) {\n\n\n mFinishButton.setVisibility(View.VISIBLE);\n\n }\n double latitude = myGridPoint().x;\n double longitude = myGridPoint().y;\n String stringLat = Double.toString(latitude);\n String stringLong = Double.toString(longitude);\n String coordPair = \" \" + stringLat + \",\" + stringLong;\n collectedPoints.add(coordPair);\n locations.add(myLocation);\n\n return myGP;\n\n }",
"private void _Setup_GetLocData() {\n\t\tString log_msg = \"CONS.LocData.LONGITUDE=\"\n\t\t\t\t\t+ String.valueOf(CONS.LocData.LONGITUDE);\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t\tIntent i = this.getIntent();\n\t\t\n\t\tthis.longitude\t= i.getDoubleExtra(\n\t\t\t\t\t\t\tCONS.IntentData.iName_Showmap_Longitude,\n\t\t\t\t\t\t\tCONS.IntentData.Showmap_DefaultValue);\n\t\t\n\t\tthis.latitude\t= i.getDoubleExtra(\n\t\t\t\tCONS.IntentData.iName_Showmap_Latitude,\n\t\t\t\tCONS.IntentData.Showmap_DefaultValue);\n\t\t\n\t\t// Log\n\t\tlog_msg = \"this.latitude=\" + String.valueOf(this.latitude)\n\t\t\t\t\t\t+ \"/\"\n\t\t\t\t\t\t+ \"this.longitude=\" + String.valueOf(this.longitude);\n\n\t\tLog.d(\"[\" + \"ShowMapActv.java : \"\n\t\t\t\t+ +Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t+ \" : \"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getMethodName()\n\t\t\t\t+ \"]\", log_msg);\n\t\t\n\t}",
"public void getDataButtonClicked() {\n\n //we will get data heree.....>>>\n getdata();\n\n\n }",
"public Point getclickedPoint() {\r\n return clickedPoint;\r\n }",
"@Override\n\t\t\t\tpublic boolean onMarkerClick(Marker arg0) {\n\t\t\t\t\t\n\t\t\t\t\tfor(final PoiInfo poiInfo:AppContext.listmap){\n\t\t\t\t\t\tif(poiInfo.location.latitude==arg0.getPosition().latitude&&poiInfo.location.longitude==arg0.getPosition().longitude){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tView mView = LayoutInflater.from(ZhouBianYaodian.this).inflate(R.layout.map_massage_data, null);\n\t\t\t\t\t\t\tTextView dataname=(TextView) mView.findViewById(R.id.txt_map_name);\n\t\t\t\t\t\t\tTextView address=(TextView)mView. findViewById(R.id.txt_map_address);\n\t\t\t\t\t\t\tImageView imageView=(ImageView)mView. findViewById(R.id.map_image_call); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdataname.setText(poiInfo.name==null?\"\":poiInfo.name);\n\t\t\t\t\t\t\t\taddress.setText(poiInfo.address==null?\"\":poiInfo.address);\n\t\t\t\t\t\t\t\tif(poiInfo.phoneNum!=null&&!poiInfo.phoneNum.equals(\"\")){\n\t\t\t\t\t\t\t\t\timageView.setVisibility(ImageView.VISIBLE);\n\t\t\t\t\t\t\t\t\timageView.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL, Uri\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parse(\"tel:\" + poiInfo.phoneNum));\n\t\t\t\t\t\t\t\t\t\t\tLog.d(\"测试数据\", poiInfo.phoneNum);\n\t\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\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\n\t\t\t\t\t\t\tmInfoWindow= new InfoWindow(mView,arg0.getPosition(), -47);\n\t\t\t\t\t\t\tmBaiduMap.showInfoWindow(mInfoWindow);\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\t\n\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"private double[] getGPS() {\n \t\tLocationManager locationManager = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);\n \t\tList<String> providers = locationManager.getProviders(true);\n \t\tLocation location = null;\n \t\tfor (String provider : providers) {\n \t\t\tlocation = locationManager.getLastKnownLocation(provider);\n \t\t\tif (location != null)\n \t\t\t\tbreak;\n \t\t}\n \n \t\tdouble[] gps = new double[2];\n \t\tif (location != null) {\n \t\t\tgps[0] = location.getLatitude();\n \t\t\tgps[1] = location.getLongitude();\n \t\t}\n \t\treturn gps;\n \t}",
"@Override\n public void onItemClick(View view, int position) {\n Log.e(\"You Clicked\", mapRecyclerAdapter.getItem(position).getLocationName());\n }",
"@Override\n public void onMarkerDrag(Marker marker) {\n String data_map = marker.getPosition().toString();\n String[] result = data_map.split(\",\");\n Log.d(TAG, \"ON DRAG SOMETHING \" + result[0] + \" | \" + result[1]);\n }",
"public String getGPS();",
"@Override\n public void onClick(View v) {\n pickPointOnMap();\n }",
"public Location getClickedLocation()\n {\n lastLocationClicked = null;\n while (lastLocationClicked == null)\n {\n try{Thread.sleep(100);}catch(Exception e){};\n }\n return lastLocationClicked;\n }",
"@Override\n public void onItemClick(AdapterView<?> av, View v, int position, long id) {\n\n getLocation(id);\n\n\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n context.startActivity(myIntent);\n //get gps\n }",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n//\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n//\t\tPoint2D.Double worldPoint = new Point2D.Double();\n//\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n//\t\tviewToWorld.transform(view, worldPoint);\n//\t\n//\t\t// check here if clicking a waypoint\n//\t\tint index = data.hitWaypointTest(worldPoint.getX(), worldPoint.getY());\n//\t\tif(index != -1) {\n////\t\t\tWaypoint w = data.getWaypoint(index);\n//\t\t\tGUIFunctions.updateWaypointDataFields(w);\n//\t\t} else \n//\t\t\tGUIFunctions.updateWaypointDataFields(null);\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\tdouble[] pointLocation = new double[3];\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\t\n\t\tplotContent.Click(x, y, pointLocation);\n\t\tif(pointLocation[0]==0.0&&pointLocation[1]==0.0&&pointLocation[2]==0.0) {\n\t\t\t\n\t\t}else {\n\t\t\ttradedetail.setText(\"\\n\"+\"Yield = \"+pointLocation[0]+\"\\n\"+\"Days_To_Maturity = \"+pointLocation[1]+\"\\n\"+\"Amount_CHF = \"+pointLocation[2]);\n\t\t}\n\t}",
"@Override\n public void onMapLongClick(LatLng latLng) {\n Toast.makeText(this, getString(R.string.coordenadas)+\":\"+latLng, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n paramDialogInterface.dismiss();\n\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(myIntent);\n //get gps\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n showMarkerButtons(false);\n current_number=\"\";\n markerClickflag=false;\n }",
"@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tmylat=location.getLatitude();\n\t\tmylong=location.getLongitude();\n\t\tgetData();\n\t\t\n\t}",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n str_loc = Arraylist_location.get(arg2);\n str_loc_id = Arraylist_location_id.get(arg2);\n\n System.out.println(\"### ID : \" + str_loc + \" : \" + str_loc_id);\n\n\n\n }",
"@Override\n public void onMapClick(LatLng point) {\n double lati = point.latitude;\n\n\n // Getting longitude of the current location\n double longi = point.longitude;\n\n\n i = new Intent(MapsActivity.this, addtasks.class);\n\n\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", lati);\n b.putDouble(\"longitude\", longi);\n i.putExtras(b);\n\n startActivity(i);\n\n }",
"@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n double latitude = intent.getDoubleExtra(\"Lat\",0);\n double longitude = intent.getDoubleExtra(\"Lon\",0);\n mService.onGPSReceived(latitude,longitude);\n\n }",
"public HashMap<SensorPosition, Integer> receiveGripperSensorData();",
"@Override\n public void onItemClick(int position)\n {\n /* DNI_Seleccionado = ListaUsuariosPrincipal.get(position).getDNI();\n\n Intent Activity2 = new Intent(MainActivity.this, MapsActivity.class);\n // Le paso los datos del Chofer a la segunda activity para mostrarla\n finish();\n Activity2.putExtra(\"DNI_Seleccionado\", DNI_Seleccionado);\n startActivity(Activity2);\n*/\n // Obtengo la informacion del item seleccionado\n double lat = -36;\n double longi = -58;\n\n Intent Activity2 = new Intent(MainActivity.this, MapsActivity.class);\n // Le paso los datos del Chofer a la segunda activity para mostrarla\n finish();\n Activity2.putExtra(\"lat\", lat);\n Activity2.putExtra(\"longi\", longi);\n startActivity(Activity2);\n }",
"@Override\n public void onTouch() {\n mScrollView.requestDisallowInterceptTouchEvent(true);\n\n\n map.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng location) {\n\n\n Toast.makeText(DoctorRegistration.this, \"\"+location, Toast.LENGTH_SHORT).show();\n if(marker!=null)\n {\n marker.remove();\n map.clear();\n }\n marker=map.addMarker(new MarkerOptions().position(location));\n\n new_lat=location.latitude;\n new_log=location.longitude;\n }\n });\n\n }",
"Point userClickPoint();",
"private void getlocation() {\n\t\t\t\ttry {\n\n\t\t\t\t\tgps = new GPSTracker(RegisterActivity.this);\n\t\t\t\t\tLog.d(\"LOgggg\", \"inCurrentlocation\");\n\n\t\t\t\t\t// check if GPS enabled\n\t\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\t\tlatitude = gps.getLatitude();\n\t\t\t\t\t\tlongitude = gps.getLongitude();\n\n\t\t\t\t\t\tLog.i(\"latitude\", \"\" + latitude);\n\t\t\t\t\t\tLog.i(\"longitude\", \"\" + longitude);\n\n\t\t\t\t\t\tnew getLoc().execute(\"\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgps.showSettingsAlert();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n public void onClick(View v) {\r\n double latitude = Double.parseDouble(Latitude);\r\n double longitude = Double.parseDouble(Longitude);\r\n Log.e(\"URLcheck:\", Urimage);\r\n if(Latitude.equals(\"null\") || Longitude.equals(\"null\")){\r\n // 못 받아 올경우\r\n if (!isPermission) {\r\n callPermission();\r\n return;\r\n }\r\n\r\n gps = new GpsInfo(MainActivity.this);\r\n // GPS 사용유무 가져오기\r\n if (gps.isGetLocation()) {\r\n\r\n latitude = gps.getLatitude();\r\n longitude = gps.getLongitude();\r\n\r\n\r\n\r\n } else {\r\n // GPS 를 사용할수 없으므로\r\n gps.showSettingsAlert();\r\n }\r\n\r\n }\r\n\r\n\r\n MapPoint mapPoint = MapPoint.mapPointWithGeoCoord(latitude, longitude);\r\n mapView.setMapCenterPoint(mapPoint, true);\r\n //true면 앱 실행 시 애니메이션 효과가 나오고 false면 애니메이션이 나오지않음.\r\n\r\n MapPOIItem marker = new MapPOIItem();\r\n marker.setItemName(Storename);\r\n marker.setTag(0);\r\n marker.setMapPoint(mapPoint);\r\n // 기본으로 제공하는 BluePin 마커 모양.\r\n marker.setMarkerType(MapPOIItem.MarkerType.BluePin);\r\n // 마커를 클릭했을때, 기본으로 제공하는 RedPin 마커 모양.\r\n marker.setSelectedMarkerType(MapPOIItem.MarkerType.RedPin);\r\n mapView.addPOIItem(marker);\r\n\r\n RecyclerView viewing = (RecyclerView)findViewById(R.id.listView_main_list);\r\n viewing.setLayoutManager(new LinearLayoutManager(MainActivity.this));\r\n reviewArrayList = new ArrayList<>();\r\n Review_mAdapter = new MainAcitivity_Review(MainActivity.this,reviewArrayList);\r\n viewing.setAdapter(Review_mAdapter);\r\n reviewArrayList.clear();\r\n Review_mAdapter.notifyDataSetChanged();\r\n\r\n mapViewContainer.addView(mapView);\r\n }",
"@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 String getPointsData() {\n\t\t\tStringBuilder pointsString = new StringBuilder(\"[\");\n\n\t\t\ttry {\n\t\t\t\tCursor pointsCursor = dbHandler\n\t\t\t\t\t\t.getEveryLatLong(Main.logged_user);\n\n\t\t\t\tif (pointsCursor != null) {\n\n\t\t\t\t\tif (pointsCursor.moveToFirst()) {\n\t\t\t\t\t\twhile (!pointsCursor.isAfterLast()) {\n\t\t\t\t\t\t\tpointsString.append(String.format(GOOGLE_MAP_POINT,\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LATITUDE),\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LONGITUDE)));\n\n\t\t\t\t\t\t\tpointsCursor.moveToNext();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpointsCursor.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(LOG_TAB, ex.getMessage());\n\t\t\t\tpointsString.append(\"ERROR_\");\n\t\t\t}\n\n\t\t\tif(pointsString.length() > GOOGLE_MAP_POINT.length())\n\t\t\t\treturn pointsString.substring(0, pointsString.length() - 1) + \"]\";\n\t\t\telse\n\t\t\t\treturn \"NODATA\";\n\t\t}",
"void getReverInfo(int longitude,int latitude);",
"public void mouseClicked(MouseEvent e) {\n if (e.getSource() instanceof MapBean) {\n // if double (or more) mouse clicked\n if (e.getClickCount() >= 2) {\n // end of distance path\n mousePressed = false;\n // add the last point to the line segments\n segments.addElement(rPoint2);\n if (!repaintToClean) {\n // erase all line segments\n eraseLines();\n // erase the last circle\n eraseCircle();\n } else {\n ((MapBean) e.getSource()).repaint();\n }\n // cleanup\n cleanUp();\n }\n }\n }",
"public double[] getHitGeoCoord();",
"@Override\n public void onMapClick(LatLng arg0) {\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n counter++;\n lat = Double.toString(location.getLatitude());\n lon = Double.toString(location.getLongitude());\n TextView tv5 = (TextView) ((Activity)context).findViewById(R.id.textView2);\n tv5.setText(\"Your Location: Lat \" +lat.substring(0,6)+\" Long \"+lon.substring(0,6));\n\n if (idtv.equals(\"A\") && flag==1) {\n collected++;\n TextView tv2 = (TextView) ((Activity) context).findViewById(R.id.textView5);\n tv2.setText(\"Collected : \"+collected);\n }\n else if (idtv.equals(\"B\") && flag==1) {\n collected++;\n TextView tv3 = (TextView) ((Activity) context).findViewById(R.id.textView6);\n tv3.setText(\"Collected : \"+collected);\n }\n else if (idtv.equals(\"C\") && flag==1) {\n collected++;\n TextView tv4 = (TextView) ((Activity) context).findViewById(R.id.textView7);\n tv4.setText(\"Collected : \"+collected);\n }\n\n call(lat, lon);\n\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) \n\t\t\t{\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tTreeMap<String, String> map2 = (TreeMap<String, String>) mylistView.getAdapter().getItem(position);\n\t\t\t\tfloat Lat = Float.parseFloat(map2.get(\"Latitude\"));\n\t\t\t\tfloat Long = Float.parseFloat(map2.get(\"Longitude\"));\n\n\t\t\t\tint myPoint = Integer.parseInt(map2.get(\"Id\"));\n\t\t\t\tSystem.out.println(myPoint);\n\n\t\t\t\ttry {\n\t\t\t\t\tOnePoint = (Object)client.call(\"place.fetchOne\", myPoint);\n\t\t\t\t\t//System.out.println(Arrays.toString(OnePoint));\n\t\t\t\t\tSystem.out.println(OnePoint);\n\t\t\t\t} catch (XMLRPCException e1) {\n\t\t\t\t\tSendAlert(\"place.fetchOne\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tHashMap MojaMapa = (HashMap) OnePoint;\n\t\t\t\tMojaMapa.get(\"description\");\n\n\t\t\t\tString myString = \"\"\n\t\t\t\t\t\t+\"<br>\"+\"<br>\"+\"<br>\"\n\t\t\t\t\t\t+\"Category: \"+category+\"<p>\"\n\t\t\t\t\t\t+\"Address: \"+map2.get(\"Address\")+\"<p>\"\n\t\t\t\t\t\t+\"City: \"+map2.get(\"City\")+\"<p>\"\n\t\t\t\t\t\t+\"Zip Code: \"+map2.get(\"Zip\")+\"<p>\"\n\t\t\t\t\t\t+\"Country: \"+map2.get(\"Country\")+\"<p>\"\n\t\t\t\t\t\t+\"Distance: \"+String.format(\"%.2f\", Float.parseFloat(map2.get(\"Distance\").toString()))+\"km\"+\"<p>\"\n\t\t\t\t\t\t+\"Latitude: \"+map2.get(\"Latitude\")+\"<p>\"\n\t\t\t\t\t\t+\"Longitude: \"+map2.get(\"Longitude\")+\"<p>\"\n\t\t\t\t\t\t+\"Opis: \" + MojaMapa.get(\"description\");\n\n\t\t\t\tint MicroLat = (int) (Lat*1e6);\n\t\t\t\tint MicroLong = (int) (Long*1e6);\n\n\t\t\t\tmapView.getOverlays().clear();\n\t\t\t\tmapOverlays.clear();\n\t\t\t\titemizedoverlay.clear();\n\n\t\t\t\tGeoPoint point = new GeoPoint(MicroLat, MicroLong);\n\t\t\t\tMyOverlayItem overlayitem = new MyOverlayItem(point, map2.get(\"i\"), \n\t\t\t\t\t\t\"\"+category, \n\t\t\t\t\t\t\"\"+map2.get(\"Address\"),\n\t\t\t\t\t\t\"\"+map2.get(\"City\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Zip\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Country\"),\n\t\t\t\t\t\tString.format(\"%.2f\", Float.parseFloat(map2.get(\"Distance\").toString())),\n\t\t\t\t\t\t\"\"+map2.get(\"Latitude\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Color\"),\n\t\t\t\t\t\t\"\"+map2.get(\"Icon\"), Lat+\",\"+Long);\n\n\t\t\t\tSetDrawable(\"\"+map2.get(\"Icon\"), \"\"+map2.get(\"Color\"));\n\n\t\t\t\tHelloItemizedOverlay singleitemizedoverlay = new HelloItemizedOverlay(drawable, ProjektLokalizacjaActivity.this); \n\t\t\t\tsingleitemizedoverlay.clear();\n\t\t\t\tsingleitemizedoverlay.addOverlay(overlayitem);\n\t\t\t\tmapOverlays.add(singleitemizedoverlay);\n\n\t\t\t\t// add this overlay to the MapView and refresh it\n\t\t\t\tmapView.getOverlays().add(myLocationOverlay);\n\t\t\t\tmapView.postInvalidate();\n\t\t\t\tmyLocationOverlay.enableMyLocation();\n\t\t\t\tif (isThisTablet == false)\n\t\t\t\t{\n\t\t\t\t\tmylistView.setVisibility(View.GONE);\n\t\t\t\t\tmapView.setVisibility(View.GONE);\n\n\t\t\t\t\tWebView webView = (WebView) findViewById(R.id.webView);\n\t\t\t\t\twebView.setVisibility(View.VISIBLE);\n\n\t\t\t\t\twebView.clearView();\n\t\t\t\t\twebView.clearCache(true);\n\t\t\t\t\twebView.loadDataWithBaseURL(null, myString, \"text/html\", \"utf-8\", null);\n\n\t\t\t\t\tButton Mapbutton = (Button) findViewById(R.id.map_button);\n\t\t\t\t\tMapbutton.setBackgroundColor(Color.rgb(192, 192, 192));\n\n\t\t\t\t\tButton ListButton = (Button) findViewById(R.id.list_button);\n\t\t\t\t\tListButton.setBackgroundColor(Color.rgb(192, 192, 192));\n\n\t\t\t\t\tButton SzczeButton = (Button) findViewById(R.id.szczegoly_button);\n\t\t\t\t\tSzczeButton.setBackgroundColor(Color.BLUE);\n\t\t\t\t\t//SearchItemOnMap(Lat, Long, MicroLat, MicroLong);\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tWebView webView = (WebView) findViewById(R.id.webView);\n\t\t\t\t\twebView.setVisibility(View.VISIBLE);\n\t\t\t\t\tmapView.setVisibility(View.GONE);\n\n\t\t\t\t\twebView.clearView();\n\t\t\t\t\twebView.clearCache(true);\n\t\t\t\t\twebView.loadDataWithBaseURL(null, myString, \"text/html\", \"utf-8\", null);\n\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent e)\n\t{\n\t\tSystem.out.println(e.getX()+\",\"+e.getY());\n\t\t\n\t\t//On envoie au controller les coordonnées selectionnées:\n\t\tcontroller.clicOnMap(e.getX(), e.getY());\n\t}",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}",
"private void handleActionGetLocation(final ResultReceiver res) {\n //Bundle up and send the data returned by the gps sensor.\n mGPSSensor = new LocationSensor(this);\n mGPSSensor.getCurrentLocation(new AndroidSensorCallback() {\n @Override\n public void onSensorCallback(Location location) {\n if (location == null) {\n return;\n }\n\n Bundle b = new Bundle();\n b.putDouble(\"lat\", location.getLatitude());\n b.putDouble(\"lng\", location.getLongitude());\n b.putDouble(\"alt\", location.getAltitude());\n res.send(0, b);\n return;\n }\n });\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n HomeActivity.this.startActivity(myIntent);\n //get gps\n }",
"public void mousePressed(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n\n lastClicked = canvas.getElementAt(new GPoint(e.getPoint()));\n\n }",
"@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }",
"public void display() {\n String latitude = getIntent().getExtras().getString(\"hotel_lat\");\n String longitude = getIntent().getExtras().getString(\"hotel_lng\");\n String location = getIntent().getExtras().getString(\"hotel_location\");\n String address = getIntent().getExtras().getString(\"hotel_address\");\n String region = getIntent().getExtras().getString(\"hotel_region\");\n String features = getIntent().getExtras().getString(\"hotel_features\");\n String openinghr = getIntent().getExtras().getString(\"hotel_openinghour\");\n String closinghr = getIntent().getExtras().getString(\"hotel_closinghour\");\n\n //Setting each value to the required textView\n tLocation.setText(location.toString());\n tAddress.setText(address.toString());\n tRegion.setText(region.toString());\n tFeatures.setText(features.toString());\n tOpeninghour.setText(openinghr.toString());\n\n //Converting latitude and longitude to Double\n double lat = Double.parseDouble(latitude);\n double lng = Double.parseDouble(longitude);\n\n\n }",
"public void findLocation(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\n DeviceUtils.sendSms(GlobalConstant.DEVICE_PHONE_NUMBER,GlobalConstant.CONTENT_FIND_LOCATION);\n }\n }",
"public static ArrayList<Coords> getCoords() {\n System.out.println(\"aha1 \" + thing);\n ArrayList<Coords> result = new ArrayList<Coords>();\n if(thing.equals(\"Bay Ridge\")){\n result = BayRidgeData.getData();\n System.out.println(\"true\");\n }else if(thing.equals(\"BRCA Commons Area\")){\n result = CommonsData.getData();\n }else{\n result = null;\n }\n return result;\n// return BayRidgeData.getData();\n }",
"public boolean onMapPoiClick(MapPoi arg0) {\n\t\t\t\t \n\t\t\t\t poi=arg0.getName();\n\t\t\t\t isPoi=true;\n\t\t\t\t currentPt = arg0.getPosition();\n\t\t\t\t\t//Toast.makeText(getApplicationContext(), \"单击\"+currentPt.latitude+\",\"+currentPt.longitude+currentPt, Toast.LENGTH_SHORT).show();\n\t\t\t\t\tLatLng ptCenter = new LatLng(currentPt.latitude, currentPt.longitude);\n\t\t\t\t\t// 反Geo搜索\n\t\t\t\t\tmSearch.reverseGeoCode(new ReverseGeoCodeOption()\n\t\t\t\t\t\t\t.location(ptCenter));\n\t\t\t\t //名称\n\t\t\t\t\t/*Toast.makeText(getApplicationContext(), arg0.getName()+\":\"+adress, Toast.LENGTH_LONG)\n\t\t\t\t\t.show();*/\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t return false;\n\t\t\t\t }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tJSONArray data = new JSONArray();\n\t\t\t\n\t\t\tString loc = \"\";\n\t\t\t\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tFile ms = new File(root, \"WatchDog/Measurements/\");\n\t\t\tfor (File f : ms.listFiles()) {\n\t\t\t\tLog.i(\"WatchDog\", \"Reading file \" + f.getAbsolutePath());\n\t\t\t\tString locName = f.getName();\n\t\t\t\tList<Measurement> measurements = ReadMeasurements.read(f);\n\t\t\t\tMap<String, List<Measurement>> orderedMeasurements = ReadMeasurements.orderByBSSID(measurements);\n\t\t\t\tList<APDetails> apDetails = ReadMeasurements.getBSSIDProperties(orderedMeasurements);\n\t\t\t\t\n\t\t\t\tfor (APDetails d : apDetails) {\n\t\t\t\t\tJSONObject obj = new JSONObject();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tobj.put(\"location\", locName);\n\t\t\t\t\t\tobj.put(\"bssid\", d.bssid);\n\t\t\t\t\t\tobj.put(\"ssid\", d.ssid);\n\t\t\t\t\t\tobj.put(\"mean\", d.mean);\n\t\t\t\t\t\tobj.put(\"deviation\", d.deviation);\n\t\t\t\t\t\tdata.put(obj);\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tFile dir = new File(root, \"WatchDog/\");\n\t\t\tdir.mkdir();\n\t\t\tFile f = new File(dir, \"trainingdata.json\");\n\t\t\t\t\t\t\n\t\t\ttry {\n\t\t\t\tf.delete();\n\t\t\t\tf.createNewFile();\n\t\t\t\tLog.i(\"WatchDog\", \"Writing training data to \" + f.getAbsolutePath());\n\t\t\t\tFileOutputStream w = new FileOutputStream(f);\n\t\t\t\tPrintWriter pw = new PrintWriter(w);\n\t\t\t\tpw.print(data.toString(4));\n\t\t\t\tpw.flush();\n\t\t\t\tpw.close();\n\t\t\t\tw.close();\n\t\t\t\t\n\t\t\t\tList<String> locations = FindLocation.getLocations(data);\n\t\t\t\tfor (String l : locations) {\n\t\t\t\t\tloc += l + \"\\n\";\n\t\t\t\t}\n\t\t\t\ttxtLocs.setText(loc);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.tramxe_detail);\r\n\t\t\r\n\t\tpos = getIntent().getIntExtra(\"POS_STATION_NAME\", 0);\r\n\t\t\r\n\t\tTextView txt_Huongve = (TextView) findViewById(R.id.TextView02);\r\n\t\tTextView txt_TuyenXe = (TextView) findViewById(R.id.TextTuyenXe);\r\n\t\t\r\n\t\tint iPos = getIntent().getIntExtra(\"POS_STATION_NAME\", 0);\r\n\t\tif (ParsedData.busStation.get(iPos).stationName != null) {\r\n\t\t\ttxt_TuyenXe.setText(getString(R.string.station)+\" \"+ParsedData.busStation.get(iPos).stationName);\r\n\t\t\tnameMarket = ParsedData.busStation.get(iPos).stationName;\r\n\t\t}\r\n\t\tif (ParsedData.busStation.get(iPos).StreetName != null) {\r\n\t\t\ttxt_Huongve.setText(getString(R.string.street)+\" \"+ParsedData.busStation.get(iPos).StreetName \r\n\t\t\t\t\t\t\t\t+\" - \"+getString(R.string.tuyen_qua)+\" \"+ParsedData.busStation.get(iPos).Routes);\r\n\t\t}\r\n\t\t\r\n//\t\tlat = Double.valueOf(ParsedData.busStation.get(iPos).Position_X);\r\n//\t\tlng = Double.valueOf(ParsedData.busStation.get(iPos).Position_Y);\r\n//\t\tint fromLatitude = (int)(lat * 1E6);\r\n//\t\tint fromLongitude = (int)(lng * 1E6);\r\n\t\t//Log.d(\"te\", \"la\"+fromLatitude+\"lo\"+fromLongitude);\r\n\t\tmapView = (MapView) findViewById(R.id.mapview);\r\n\t\tmapView.setBuiltInZoomControls(true);\r\n\t\t\r\n\t\tmapOverlays = mapView.getOverlays();\r\n drawable = this.getResources().getDrawable(R.drawable.pinmarker1);\r\n\r\n\t\tmPoint = new GeoPoint(lat,lng);\r\n\t\titemizedOverlay = new MyItemizedOverlay(drawable, mapView);\r\n \r\n mapView.setBuiltInZoomControls(true);\r\n\t\tmapController = mapView.getController();\r\n\t\tmapController.setZoom(16); // Zoon 1 is world view\t\t\r\n\r\n\t\tsetGPSPosition();\r\n\t\titemizedOverlay.onTap(0);\r\n\t}",
"public Object getData(Component componentAt, Point location);",
"@Override\n public void onClick(View view) {\n if(sesh.get(0).studentCin.length()==0){\n\n displayLocation();\n\n check.setVisibility(View.VISIBLE);\n cancel.setEnabled(true);\n }\n else{\n requestGps.setText(\"Checked In\");\n requestGps.setEnabled(false);\n check.setVisibility(View.VISIBLE);\n cancel.setEnabled(false);\n }\n\n\n\n //getLoco();\n\n }",
"public double[] getLocation()\n\t{\n\t\treturn location;\n\t}",
"@Override\n public void onMapClick(LatLng latLng) {\n System.out.println(\"The map was clicked\");\n if(lineSelected == true) {\n resetInfoBox();\n }\n }",
"public interface BeaconData\n{\n\t//Returns beaconID on the map.\n\tint getId();\n\n\t//Returns the human-readable name of the beacon.\n\tString getName();\n\n\t//Return the x-position on the map.\n\tdouble getMapPositionX();\n\t//Return the y-position on the map.\n\tdouble getMapPositionY();\n}",
"@Override\n public void onClick(View arg0) {\n try {\n if (!data.isEmpty()) {\n selected_data.clear();\n for (int i = 0; i < data.size(); i++) {\n if (data.get(i).isChecked()) {\n GeneralModel da = new GeneralModel();\n da.setId(\"\" + data.get(i).getId());\n da.setName(\"\" + data.get(i).getName());\n selected_data.add(da);\n }\n }\n try {\n TargateLocationDialogIntercommunication intercommunication = (TargateLocationDialogIntercommunication) getActivity();\n intercommunication.SearchLocationData(selected_data, \"location\");\n dismiss();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n dismiss();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n Log.i(TAG, \"receive google maps's onMapClick\");\n OnMapClick(latLng.latitude, latLng.longitude);\n\n }",
"@Override\n \tpublic void onMapClick(final LatLng point) \n \t{\n \t\t\n \t\t AlertDialog.Builder builder = new AlertDialog.Builder(CrearIncidenteGPS.this);\n \t\t builder.setMessage(\"Desea agregar un incidente en este lugar?\")\n \t\t .setCancelable(false)\n \t\t .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t \t//Agregar el incidente\n// \t\t \tlstLatLngs.add(point);\n \t\t \tinsertarIncidente(point);\n// \t\t \tgMap.addMarker(new MarkerOptions().position(point));\n \t\t }\n \t\t })\n \t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t dialog.cancel();\n \t\t }\n \t\t });\n \t\t AlertDialog alert = builder.create();\n \t\t alert.show();\n \t\t\n \t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n String latitude = mTrip.getLatLngString2().split(\"_\")[0]; //the lat of destination\n String longitude = mTrip.getLatLngString2().split(\"_\")[1]; //long of destination\n\n Log.i(TAG, \"StartTripActivity >> onClick: lat >> \" + latitude + \" -- log >> \" + longitude);\n Uri intentUri = Uri.parse(\"google.navigation:q=\" + latitude + \",\" + longitude);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, intentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n Intent intentToService = new Intent(getApplicationContext(),\n FloatingService.class);\n\n intentToService.putExtra(KEY_PASS_TRIP, mTrip);\n\n Log.i(TAG, \"StartTripActivity >> onClick: \" + mTrip.getName());\n\n try {\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(mapIntent);\n }\n\n } catch (NullPointerException e) {\n Log.e(\"MAP\", \"map error !! \");\n// Toast.makeText(getApplicationContext(),\n// \"Couldn't open map!! \", Toast.LENGTH_LONG).show();\n }\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n startService(intentToService);\n finish();\n } else if (Settings.canDrawOverlays(StartTripActivity.this)) {\n startService(intentToService);\n finish();\n } else {\n askPermission();\n// Toast.makeText(getApplicationContext(),\n// \"we Need permission to display your notes in floating view\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\t\tpublic boolean onTap(GeoPoint p, MapView mapView) \n\t\t{\n\t\t\tif(p!=null){\n\t longitudes = \"\"+p.getLongitudeE6()/1E6;\n latitudes = \"\"+p.getLatitudeE6()/1E6;\n //MapOverlay mapOverlay = new MapOverlay(p,MapViewActivity.this);\n\t //List<Overlay> listOfOverlays = mapView.getOverlays();\n\t //listOfOverlays.add(mapOverlay);\n\t // mapView.postInvalidate();\n \n \n Handler h = new Handler() {\n\n @Override\n public void handleMessage(Message msg) {\n\n if (msg.what != 1) { // code if not connected\n \t\n \tToast tt=Toast.makeText(MapViewActivity.this, \"Sorry! Network is not Responding\", 3000);\n\t\t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n\t\t\t\t\t\ttt.show();\n } else\n { // code if connected\n \tnameValuePairs.add(new BasicNameValuePair(\"latd\",latitudes));\n \t\t\tnameValuePairs.add(new BasicNameValuePair(\"lotd\",longitudes));\n \t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\",LoginId));\n \t\t\tArrayList<NameValuePair> result=db.getServerData(nameValuePairs,\"updatecoordinates.php\");\n \t\t\tnameValuePairs.clear();\n \t\t\tfor(int i=0;i<result.size();i++)\n \t\t\t{\n \t\t\t\ts=result.get(i).getName();\n \t\t\t\tif(s.equals(\"Error\"))\n \t\t\t\t{\n \t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Adress Updated\", 3000);\n \t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n \t\t\t\t\ttt.show();\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Adress Updated Error\", 3000);\n \t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n \t\t\t\t\ttt.show();break;\n \t\t\t\t}\n \t\t\t}\n \t\t\tresult.clear();\n }\n\n }\n };\n \t\tisNetworkAvailable(h,5000);\n\t \n\t\t\t\n\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault());\n try\n {\n List<Address> addresses = geoCoder.getFromLocation(p.getLatitudeE6() / 1E6, p.getLongitudeE6() / 1E6, 1);\n \n String add = \"\";\n if (addresses.size() > 0) \n {\n for (int i=0; i<addresses.get(0).getMaxAddressLineIndex();i++)\n add += addresses.get(0).getAddressLine(i) + \"\\n\";\n }\n \n Toast.makeText(getBaseContext(), add, Toast.LENGTH_SHORT).show();\n }\n catch (IOException e)\n { \n e.printStackTrace();\n } \n \n return true;\n\t\t\t}\n else \n return false ; \n\t\t\t\n\t\t}",
"public float[] getLocation() {\n return llpoints;\n }",
"@Override//an ok la tu dong bat len can cai requet\n public boolean onMyLocationButtonClick() {\n if (Util.isGpsOpen(context)) {\n\n getMyLocation();//cho nay da co gps(di chuyen den vi tri cua minh va lay vi tri cua minh)\n\n return true;//no bat roi he thong lam tiesp ,\n } else {//bat GPS\n\n reqquestGps();\n return false;\n }\n//return true;\n// return false;//false la de mình lam xong no lam iep lý tiep con true thì no dung ơ ngay cho do\n }",
"public void onClick(double lat, double lon)\n/* 60: */ {\n/* 61: 98 */ TileGIS self = this;\n/* 62: */ }",
"public String getData() {\r\n\t\tStringBuffer sb = new StringBuffer(npoints * 24);\r\n\r\n\t\tfor (int i = 0; i < npoints; i++) {\r\n\t\t\tsb.append(y[i] + \" \" + x[i] + \" \");\r\n\t\t}\t\t\r\n\r\n\t\treturn sb.substring(0, sb.length() - 1);\r\n\t}",
"private void getLocations() {\n TripSave tripSave = TripHelper.tripOngoing();\n if (tripSave != null) {\n for (LocationSave locationSave : tripSave.getLocations()) {\n if (locationSave != null) {\n tripTabFragment.drawPolyLine(new LatLng(locationSave.getLatitude(), locationSave.getLongitude()));\n }\n }\n }\n }",
"public void onClick(View v) {\n\t \t\t\tSeriesSelection seriesSelection = mChartView.getCurrentSeriesAndPoint();\n\t \t\t\tif (seriesSelection == null) {\n\t \t\t\t\tToast.makeText(XYChartActivity.this, \"No chart element\", Toast.LENGTH_SHORT).show();\n\t \t\t\t} else {\n\t \t\t\t\t// display information of the clicked point\n\t \t\t\t\tToast.makeText(\n\t \t\t\t\t\t\tXYChartActivity.this,\n\t \t\t\t\t\t\t\"Chart element in series index \" + seriesSelection.getSeriesIndex()\n\t \t\t\t\t\t\t+ \" data point index \" + seriesSelection.getPointIndex() + \" was clicked\"\n\t \t\t\t\t\t\t+ \" closest point value X=\" + seriesSelection.getXValue() + \", Y=\"\n\t \t\t\t\t\t\t+ seriesSelection.getValue(), Toast.LENGTH_SHORT).show();\n\t \t\t\t}\n\t \t\t}",
"@Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }",
"@Override\n public void run() {\n Map<String, Object> m = new HashMap<>();\n m.put(\"mAMapLocation\", \"mAMapLocation\");\n Graphic graphic = new Graphic(tapPoint, m, pinDestinationSymbol);\n\n finalMarkerOverlay.getGraphics().add(graphic);\n }",
"@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getApplicationContext().startActivity(myIntent);\n //get gps\n }",
"public Double[] gps(String ipAddr) {\n String GPScmd = \"gpspipe -w -n10\";\n String GPSdata = \"\";\n Double[] coord = new Double[2];\n char x;\n /*************************************************\n * Code to 'write' request for GPS info from Pi. *\n * \"lan\": 345325643, \"lon\": 23456789, *\n *************************************************/\n if (prompt != null) {\n try {\n GPSdata = sendCommand(GPScmd);\n String lat = \"\", lon = \"\";\n int plusIndex = GPSdata.indexOf(\"lat]\\\":\");\n if (plusIndex != -1) {\n lat = GPSdata.substring(plusIndex + 6);\n int plusIndex2 = GPSdata.indexOf(\"lon]\\\":\");\n if (plusIndex2 != -1) {\n lon = GPSdata.substring(plusIndex2 + 6);\n }\n lat = lat.split(\",\")[0];\n lon = lon.split(\",\")[0];\n coord[0] = Double.parseDouble(lat);\n coord[1] = Double.parseDouble(lon);\n // Use before\n System.out.println(lat + \"----\" + lon);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n return coord;\n }",
"@Override\n public void onClick(View view) {\n String sms = \"FINDME location is \";\n if (LOCATION != null) {\n sms = sms + \"coordinates\" + \"*\" + LOCATION.latitude + \"*\" + LOCATION.longitude;\n }\n sendSms(\"0473848248\", sms);\n }",
"@Override\n public void onLocationChanged(Location location) {\n if(location!=null)\n {\n lat.setText(location.getLatitude() + \"\");\n lon.setText(location.getLongitude() + \"\");\n }\n else {\n showAlertDialog(\"GPS Connectivity Problem, Try Again!\");\n }\n //pb.setVisibility(View.GONE);\n if ( d1!=null && d1.isShowing() ){\n d1.dismiss();\n d1=null;\n }\n // fetchadd();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onTap(GeoPoint pt, MapView mapView) {\n\t\t\t\t\t\t\t\tint lastTouchedIndex = poiOverlay\n\t\t\t\t\t\t\t\t\t\t.getLastFocusedIndex();\n\t\t\t\t\t\t\t\tif (lastTouchedIndex > -1) {\n\t\t\t\t\t\t\t\t\tOverlayItem tapped = poiOverlay\n\t\t\t\t\t\t\t\t\t\t\t.getItem(lastTouchedIndex);\n\t\t\t\t\t\t\t\t\tannotation.showAnnotationView(tapped);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\t\t\tintent.setClass(MapActivity.this,\n\t\t\t\t\t\t\t\t\t\tPatientActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"Id\", poiOverlay\n\t\t\t\t\t\t\t\t\t\t.getItem(lastTouchedIndex).getSnippet());\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\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 }",
"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 TreeSet<SpatialTemporal> gatherData() {\r\n TreeSet<SpatialTemporal> dataPoints = new TreeSet<>(new Comparator<SpatialTemporal>() {\r\n @Override\r\n public int compare(SpatialTemporal o1, SpatialTemporal o2) {\r\n return (new Double(o1.position)).compareTo(new Double(o2.position));\r\n }\r\n });\r\n\r\n double positionOnRoute = 0;\r\n for (final RoadSegment roadSegment : route) {\r\n for (Vehicle veh : roadSegment) {\r\n if (veh.type() == AgentType.OBSTACLE) {\r\n continue;\r\n }\r\n double position = positionOnRoute + veh.getFrontPosition();\r\n dataPoints.add(new SpatialTemporal(position, veh.getSpeed(), veh.getLength(), veh.getAcc()));\r\n }\r\n positionOnRoute += roadSegment.roadLength();\r\n }\r\n return dataPoints;\r\n }",
"private void getGpsLocation() {\n Log.d(LOG_TAG, \"In getGpsLocation\");\n mLocationMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n try {\n Location mLocation = mLocationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (null != mLocation) {\n mLatitude = mLocation.getLatitude();\n mLongitude = mLocation.getLongitude();\n }\n } catch (SecurityException se) {\n Log.d(LOG_TAG, \"Security Exception\", se);\n }\n }",
"@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getGohomeAltitude(new DJIExecuteFloatResultCallback() {\r\n \r\n @Override\r\n public void onResult(float result)\r\n {\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, result + \"\"));\r\n }\r\n });\r\n }",
"@Override\n public void onGpsStatusChanged(int event) {\n GpsStatus gpsStatus = mLocationManager.getGpsStatus(null);\n if (gpsStatus != null) {\n mSatelliteInUse = 0;\n mSatelliteInView = 0;\n Iterable<GpsSatellite> satellites = gpsStatus.getSatellites();\n Iterator<GpsSatellite> sat = satellites.iterator();\n while (sat.hasNext()) {\n GpsSatellite satellite = sat.next();\n if (satellite.usedInFix())\n mSatelliteInUse++;\n mSatelliteInView++;\n }\n }\n switch (event) {\n case GpsStatus.GPS_EVENT_STARTED:\n mGpsMode = \"Searching\";\n // Toast.makeText(activity, \"GPS_SEARCHING\", Toast\n // .LENGTH_SHORT).show(); System.out.println(\"TAG - GPS searching: \");\n break;\n case GpsStatus.GPS_EVENT_STOPPED:\n // System.out.println(\"TAG - GPS Stopped\");\n mGpsMode = \"Stopped\";\n break;\n case GpsStatus.GPS_EVENT_FIRST_FIX:\n /*\n * GPS_EVENT_FIRST_FIX Event is called when GPS is locked\n */\n // Toast.makeText(activity, \"GPS_LOCKED\", Toast\n // .LENGTH_SHORT).show();\n /*\n * Removing the GPS status listener once GPS is locked\n */\n // mLocationManager.removeGpsStatusListener\n // (gpsStatusListener);\n mGpsMode = \"Fixed\";\n\n break;\n // case GpsStatus.GPS_EVENT_SATELLITE_STATUS:\n // mGpsMode = K.NO_FIX;\n // // System.out.println(\"TAG -\n // GPS_EVENT_SATELLITE_STATUS\");\n // break;\n }\n if (gpsStatus != null) {\n androidLocationUI.updateGpsStatusUI();\n androidLocationUI.updateSatelliteUI();\n }\n\n }",
"@Override\n public void run() {\n List<Entry> elevationData = new ArrayList<>();\n\n try {\n // Create InputStream from File\n InputStream inStream = new FileInputStream(gpxFile);\n\n // Parse the Gpx from the InputStream\n Gpx parsedGpx = new GPXParser().parse(inStream);\n\n if (parsedGpx == null) {\n // Unable to parse. Nothing to return\n listener.onElevationDataReady(null);\n }\n\n // Get the TrackPoints from the parsed Gpx\n List<TrackPoint> trackPoints = parsedGpx.getTracks().get(0).getTrackSegments().get(0).getTrackPoints();\n\n // Init the calculator that will be used to get the distance between each point\n GeodeticCalculator calculator = new GeodeticCalculator();\n\n // Keep track of total distance for X-coordinate\n double totalDistance = 0.0;\n\n // Iterate and get the distance traveled between each point and its elevation\n for (int i = 0; i < trackPoints.size() - 1; i++) {\n // X-Coordinate = distance traveled\n // Y-Coordinate = elevation at the end point\n // Setup\n double lat1 = trackPoints.get(i).getLatitude();\n double lon1 = trackPoints.get(i).getLongitude();\n double ele1 = trackPoints.get(i).getElevation();\n double lat2 = trackPoints.get(i + 1).getLatitude();\n double lon2 = trackPoints.get(i + 1).getLongitude();\n double ele2 = trackPoints.get(i + 1).getElevation();\n\n if (i == 0) {\n // First Entry: The X-coord is 0 for the start, and the starting elevation will\n // be used as the Y-coord\n elevationData.add(new Entry(0, (float) ele1));\n }\n\n // Calculate the distance between the two points\n GeodeticMeasurement measurement = calculator.calculateGeodeticMeasurement(\n Ellipsoid.WGS84,\n new GlobalPosition(lat1, lon1, 0),\n new GlobalPosition(lat2, lon2, 0));\n\n // Add the traveled distance to the total distance to keep track of the X-coord\n totalDistance += measurement.getPointToPointDistance();\n\n // Add the Entry to the List\n elevationData.add(new Entry((float) totalDistance, (float) ele2));\n }\n\n } catch (XmlPullParserException | IOException e) {\n e.printStackTrace();\n }\n\n // Check to ensure the Gpx file has elevation data to plot\n float elevationCheck = 0;\n for (Entry entry : elevationData) {\n // Add the elevation of each Entry to the elevationCheck\n elevationCheck += entry.getY();\n\n // If there is any elevation, then the chart will be valid\n if (elevationCheck > 0) {\n break;\n }\n }\n\n if (elevationCheck == 0) {\n // If total elevation is zero, then there is no data to plot\n listener.onElevationDataReady(null);\n } else {\n listener.onElevationDataReady(elevationData);\n }\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n if(isJoinNode){\n return;\n }\n if(isAddMarker){\n commandManager.doCommand(\n new AddOnePointCommand(\n this,\n mDbHelper,\n latLng,\n PATH_CATEGORY));\n isAddMarker = false;\n fab_add_marker.setSelected(false);\n }\n else if(isEditNode && !isJoinNode){\n if(selectedPosition == null){\n SnackbarUtil.showSnackBar(root_map, snackbar,\"Pilih point terlebih dahulu.\", Snackbar.LENGTH_LONG);\n } else{\n commandManager.doCommand(\n new AddPointCommand(\n this,\n mDbHelper,\n selectedPosition,\n latLng,\n PATH_CATEGORY));\n\n }\n } else if(isEditPolyline){\n long id = (long)selectedPolyline.getTag();\n Path selectedPath = null;\n for (Path path : paths){\n if(path.getId() == id){\n selectedPath = path;\n }\n }\n commandManager.doCommand(\n new AddPointBetweenPathCommand(\n this,\n mDbHelper,\n selectedPath,\n latLng,\n PATH_CATEGORY));\n }\n\n }",
"public void onClick(View v){\n \t\ttry {\r\n \t\t\tEditText textLocation = (EditText)findViewById(R.id.edtLocation);\r\n \t\t\tmapLocation = textLocation.getText().toString();\r\n \t\t\t\r\n \t\t\tEditText textDetails = (EditText)findViewById(R.id.edtDetails);\r\n \t\t\tmapSnipper = textDetails.getText().toString();\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tEditText floatLongitude = (EditText)findViewById(R.id.edtLong);\r\n \t\t\tlon = Float.valueOf(floatLongitude.getText().toString());\r\n \t\t\t\r\n \t\t\tEditText floatLatitude = (EditText)findViewById(R.id.edtLat);\r\n \t\t\tlat = Float.valueOf(floatLatitude.getText().toString());\r\n \t\t\t\r\n \t\t\t//Only Lon and Lat between -90 and 90 are allowed\r\n \t\t\tif (lat >=-90 && lat <=90 && lon >=-90 && lon <=90) {\r\n \t\t\tfinal GoogleMap mMap;\r\n \t\t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t\tmMap.addMarker(new MarkerOptions()\r\n \t\t\t .position(new LatLng(lat,lon))\r\n \t\t\t .title(mapLocation)\r\n \t\t\t .snippet(mapSnipper));\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t\t\t}\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t}\r\n \t}",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\tif(gui.getMapPointSelectMode() == MapPointSelectMode.START){\n\t\t\t\t\t\tSPath path = SPath.getCurrentPath();\n\t\t\t\t\t\tif(path != null){\n\t\t\t\t\t\t\t//Set the start point.\n\t\t\t\t\t\t\tpath.setStartPoint(e.getPoint(), width, height);\n\t\t\t\t\t\t\t//Reset select mode.\n\t\t\t\t\t\t\tgui.resetSelectMode();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//If current mode is finish.\n\t\t\t\t\telse if(gui.getMapPointSelectMode() == MapPointSelectMode.FINISH){\n\t\t\t\t\t\tSPath path = SPath.getCurrentPath();\n\t\t\t\t\t\tif(path != null){\n\t\t\t\t\t\t\t//Set the finish point.\n\t\t\t\t\t\t\tpath.setFinishPoint(e.getPoint(), width, height);\n\t\t\t\t\t\t\t//Reset select mode.\n\t\t\t\t\t\t\tgui.resetSelectMode();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n huruf = dataSandiItem.get(position).getHuruf();\n drajatX = dataSandiItem.get(position).getDerajat_lengan_x();\n drajatY = dataSandiItem.get(position).getDerajat_lengan_y();\n gambar = dataSandiItem.get(position).getGambar();\n }",
"public void onItemClick(AdapterView<?> arg0, View arg1, int position,\r\n long id) {\n AreaRow row = mDatabase.getArea(id);\r\n \r\n Bundle data = new Bundle();\r\n data.putLong(\"id\", row.id);\r\n data.putDouble(\"latitude\", row.latitude);\r\n data.putDouble(\"longitude\", row.longitude);\r\n \r\n Message msg = new Message();\r\n msg.what = MESSAGE_DOWNLOAD_TAGS;\r\n msg.setData(data);\r\n \r\n AreaList.this.handler.sendMessage(msg);\r\n //editor.putBoolean(\"location_service_on\", false).commit();\r\n }",
"public double[] getLocation() {\n return new double[]{longitude,latitude};\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n }"
]
| [
"0.61161673",
"0.5879685",
"0.5879236",
"0.58763945",
"0.5873715",
"0.58660424",
"0.58278316",
"0.5758226",
"0.5703062",
"0.5617246",
"0.5579258",
"0.5531635",
"0.54908615",
"0.54787433",
"0.5477919",
"0.54696625",
"0.5456774",
"0.54546297",
"0.544378",
"0.542878",
"0.54221606",
"0.54152733",
"0.5398567",
"0.53938174",
"0.5375875",
"0.5362631",
"0.5344374",
"0.5329565",
"0.5326417",
"0.53145224",
"0.53128403",
"0.5309532",
"0.529887",
"0.5297743",
"0.52932686",
"0.5275558",
"0.52492434",
"0.52479565",
"0.52447814",
"0.52105516",
"0.52067125",
"0.52043533",
"0.5200552",
"0.5198469",
"0.5186832",
"0.5180496",
"0.5168567",
"0.51603144",
"0.5154141",
"0.5150839",
"0.5149122",
"0.5137176",
"0.5123675",
"0.5120492",
"0.5120268",
"0.5117508",
"0.5110415",
"0.5104767",
"0.51014435",
"0.5098665",
"0.5089148",
"0.5078574",
"0.5069141",
"0.5065411",
"0.50609326",
"0.5055901",
"0.50554264",
"0.505533",
"0.5048308",
"0.50461054",
"0.50448185",
"0.5038356",
"0.5036182",
"0.50340855",
"0.50340164",
"0.50261515",
"0.50197273",
"0.5013926",
"0.5013854",
"0.50133973",
"0.5009384",
"0.5008356",
"0.5003731",
"0.49989563",
"0.49953058",
"0.4993495",
"0.4992516",
"0.49806774",
"0.4980269",
"0.49761665",
"0.49731544",
"0.49703014",
"0.49690118",
"0.49671808",
"0.49649334",
"0.49643737",
"0.4952645",
"0.49510992",
"0.49502325",
"0.49494484",
"0.49494484"
]
| 0.0 | -1 |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"public abstract void update(UIReader event);",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Event e) {\n\t}",
"public abstract void onInvoked(CommandSender sender, String[] args);",
"@Override\r\n public void updateUI() {\r\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}",
"@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"public void updateUI(){}",
"private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"Event () {\n // Nothing to do here.\n }",
"void onArgumentsChanged();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"void eventChanged();",
"@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}",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }",
"public abstract void onCommand(MessageEvent context) throws Exception;",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\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\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void handle(Event event) {\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n public void actionPerformed(AnActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public void ImageView(ActionEvent event) {\n\t}",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}",
"public void runInUi(ElexisEvent ev){}",
"@Override\n public void delta() {\n \n }",
"@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n }",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent ev) {\n }",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }"
]
| [
"0.6619185",
"0.65246344",
"0.6473144",
"0.6473144",
"0.64351684",
"0.6325494",
"0.62368196",
"0.6189416",
"0.6158721",
"0.61455715",
"0.6123594",
"0.6107332",
"0.6101038",
"0.6092755",
"0.6049496",
"0.6049496",
"0.60442764",
"0.604003",
"0.604003",
"0.6007846",
"0.59999037",
"0.59848183",
"0.59776366",
"0.59587413",
"0.5940049",
"0.5925668",
"0.5925668",
"0.59208333",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915737",
"0.5915554",
"0.5909643",
"0.5895144",
"0.58947057",
"0.589277",
"0.58885247",
"0.58885247",
"0.58885247",
"0.58671176",
"0.58671176",
"0.58671176",
"0.58636886",
"0.5862447",
"0.5862447",
"0.58613557",
"0.5855828",
"0.5846504",
"0.5846504",
"0.5846504",
"0.5846504",
"0.5837475",
"0.58366984",
"0.5820788",
"0.58068436",
"0.58022934",
"0.5772422",
"0.57714665",
"0.5770862",
"0.5765655",
"0.5763872",
"0.57544947",
"0.57542855",
"0.57542855",
"0.57450074",
"0.57441026",
"0.57441026",
"0.57441026",
"0.5741053",
"0.574037",
"0.5739314",
"0.57367086",
"0.57367086",
"0.57367086",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57322264",
"0.57235956",
"0.57232994",
"0.5721006",
"0.571978",
"0.571978",
"0.57187414",
"0.57177836",
"0.57133436",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.57110935",
"0.5707859",
"0.5707546",
"0.5704973",
"0.57016516"
]
| 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}",
"public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"void onFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }",
"public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}",
"public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }",
"void onFragmentInteraction(Object ref);",
"public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }",
"public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }",
"public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }",
"public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }",
"public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}",
"public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}",
"public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }",
"public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }",
"public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}",
"public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface PersonalFragmentView extends BaseMvpView {\n\n}",
"public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }",
"void onFragmentInteraction(View v);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }",
"void onFragmentInteractionMain();",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }",
"public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}",
"public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }",
"void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }",
"public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }",
"public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public void onFragmentInteraction(String id);",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }",
"public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}",
"public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }",
"public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}",
"public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}",
"public interface ChangeFragmentListener {\n void changeFragment();\n}",
"public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }",
"public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}",
"@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }",
"void onFragmentInteraction(int position);",
"public interface AddFarmFragmentView extends BaseView {\n\n\n}",
"void OpenFragmentInteraction();",
"public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}",
"public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}",
"public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}",
"public interface PesonageFragmentView extends MvpView {\n\n}",
"public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }",
"public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }",
"public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }",
"public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }",
"public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }",
"public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}",
"interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }"
]
| [
"0.7323901",
"0.720826",
"0.71346456",
"0.712432",
"0.71223646",
"0.7014406",
"0.6975986",
"0.6975986",
"0.6975986",
"0.6973731",
"0.69676983",
"0.69656146",
"0.6960717",
"0.69542384",
"0.6943149",
"0.6933716",
"0.69288176",
"0.69264686",
"0.6922715",
"0.6909953",
"0.6902666",
"0.68968815",
"0.6894074",
"0.68821484",
"0.68811965",
"0.6875028",
"0.686441",
"0.686059",
"0.68592566",
"0.68580437",
"0.68551767",
"0.6844014",
"0.6839444",
"0.68299013",
"0.681755",
"0.68166876",
"0.680979",
"0.6785827",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6769247",
"0.6768809",
"0.6765993",
"0.67613",
"0.675552",
"0.6753091",
"0.6698583",
"0.66805714",
"0.6673642",
"0.6670421",
"0.66695374",
"0.66619104",
"0.6660703",
"0.66551346",
"0.665202",
"0.6643579",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6643505",
"0.6638241",
"0.66361165",
"0.66311413",
"0.662524",
"0.66250277",
"0.6618358",
"0.6609611",
"0.66091406",
"0.6608578",
"0.66044116",
"0.6596916",
"0.65967715",
"0.65872806",
"0.6572124",
"0.6567792",
"0.65597993",
"0.65597713",
"0.6555063",
"0.6550386",
"0.65484476",
"0.65428716",
"0.6538933",
"0.65341264",
"0.65341264",
"0.65341264",
"0.6519295",
"0.65169215",
"0.65164673"
]
| 0.0 | -1 |
TODO: Update argument type and name | void onFragmentInteraction(Uri uri); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}",
"@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }",
"@Override\n\tpublic void traverseArg(UniArg node) {\n\t}",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"Object[] getArguments();",
"Object[] getArguments();",
"String getArguments();",
"@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}",
"@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }",
"ArgList createArgList();",
"public Object[] getArguments() { return args;}",
"@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }",
"@Override\n protected String getName() {return _parms.name;}",
"private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }",
"uicargs createuicargs();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}",
"@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}",
"public getType_args(getType_args other) {\n }",
"Object[] args();",
"protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }",
"@Test\n void getArgString() {\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }",
"int getArgIndex();",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@Override\n public Object[] getArguments() {\n return null;\n }",
"public login_1_argument() {\n }",
"Optional<String[]> arguments();",
"private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }",
"@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}",
"protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}",
"void setArguments(String arguments);",
"@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}",
"OpFunctionArgAgregate createOpFunctionArgAgregate();",
"protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);",
"void visitArgument(Argument argument);",
"public Thaw_args(Thaw_args other) {\r\n }",
"@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}",
"private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }",
"public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}",
"@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }",
"public abstract ValidationResults validArguments(String[] arguments);",
"public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }",
"public String getArgumentString() {\n\t\treturn null;\n\t}",
"@Override\n public String kind() {\n return \"@param\";\n }",
"@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }",
"void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }",
"@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}",
"void onArgumentsChanged();",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }",
"MyArg(int value){\n this.value = value;\n }",
"public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }",
"public Clear_args(Clear_args other) {\r\n }",
"private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }",
"public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}",
"@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\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}",
"@Override\n public int getArgent() {\n return _argent;\n }",
"private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }",
"private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}",
"PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }",
"public Type getArgumentDirection() {\n return direction;\n }",
"public String argTypes() {\n return \"I\";//NOI18N\n }",
"public static void main(String arg[]) {\n\n }",
"godot.wire.Wire.Value getArgs(int index);",
"@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"private Argument(Builder builder) {\n super(builder);\n }",
"@Override\n public void execute(String[] args) {\n\n }",
"@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}",
"UUID createArgument(ArgumentCreateRequest request);",
"@Override\n public void initialise(String[] arguments) {\n\n }",
"public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }",
"protected abstract void parseArgs() throws IOException;"
]
| [
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.59906125",
"0.59906125",
"0.5984017",
"0.59791875",
"0.5977681",
"0.59532714",
"0.5946838",
"0.59457266",
"0.59452903",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.59352577",
"0.5909717",
"0.5889277",
"0.588111",
"0.5871162",
"0.5866624",
"0.58613646",
"0.58519953",
"0.58381283",
"0.58083445",
"0.58059824",
"0.5795826",
"0.57816726",
"0.57670826",
"0.57556796",
"0.57471323",
"0.57418406",
"0.5729463",
"0.57291526",
"0.5716928",
"0.5713024",
"0.56974274",
"0.56782854",
"0.56723106",
"0.5664594",
"0.5664104",
"0.5660337",
"0.5652865",
"0.5647883",
"0.5642134",
"0.5635645",
"0.5634968",
"0.562251",
"0.56210977",
"0.56167537",
"0.56138444",
"0.56044126",
"0.56044126",
"0.5602371",
"0.56012225",
"0.55986875",
"0.55893147",
"0.5588273",
"0.5583255",
"0.5582767",
"0.55681497",
"0.55626017",
"0.55577534",
"0.55524325",
"0.5549442",
"0.55378276",
"0.5536797",
"0.5527675",
"0.5511817",
"0.55099154",
"0.550257"
]
| 0.0 | -1 |
===================================== Gmail View Methods ==================================== | private void enableActionMode(int position) {
if (actionMode == null) {
Toast.makeText(getContext(), "Values of Enabled", Toast.LENGTH_SHORT).show();
}
Toast.makeText(getContext(), "Values of Enabled", Toast.LENGTH_SHORT).show();
toggleSelection(position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void openGmail (View view) {\n TextView textView = (TextView) findViewById(R.id.emailContent);\n String emailContent = textView.getText().toString();\n Log.i(TAG, \"emailContent: \" + emailContent);\n\n /**\n * code was adapted from the information here:\n * https://javadevnotes.com/java-string-split-newline-examples\n */\n /*takes the above string object, splits it into parts seperated by\n * line breaks and puts it into an array\n */\n String[] content = emailContent.split(\"\\\\r?\\\\n\");\n\n // created string objects out of the array for each part of the email\n String emailAddress = content[0];\n String emailSubject = content[1];\n String emailBody = content [2];\n\n /***\n * following code was adapted from here:\n * https://www.javatpoint.com/how-to-send-email-in-android-using-intent\n */\n //opens an email client of users choice and prepopulates with data sent back to mainactivity\n Intent email = new Intent(Intent.ACTION_SEND);\n email.putExtra(Intent.EXTRA_EMAIL, new String[]{emailAddress});\n email.putExtra(Intent.EXTRA_SUBJECT, emailSubject);\n email.putExtra(Intent.EXTRA_TEXT, emailBody);\n\n //need this to prompts email client only\n email.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(email, \"Choose an Email client :\"));\n\n }",
"public void gotoGmail(){\n }",
"@Override\n public void updateView(Message msg)\n {\n \n }",
"@Override\n\tpublic void showMailDialog() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tURL url = new URL(\"https://mail.google.com/mail/feed/atom\");\n\t\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\t\t\tconn.addRequestProperty(\"Authorization\", token_type + \" \"+access_token);\n\t\t\t\t\tint respCode = conn.getResponseCode();\n\t\t\t\t\tif (respCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\tInputStream is = conn.getInputStream();\n\t\t\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\t\t\t\t\tString str;\n\t\t\t\t\t\twhile((str = br.readLine()) != null) {\n\t\t\t\t\t\t\tsb.append(str).append(\"\\n\\r\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal String text = sb.toString();\n\t\t\t\t\t\tmHandler.post(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\ttextView.setText(text);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmHandler.post(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tToast.makeText(SampleGoogleOAuthActivity.this, \"������ ���� ����\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onMessageViewClick(View view, Message message) {\n }",
"public void onPressMail(View view) {\r\n MailHelper.mailRecipient(this, event.mail);\r\n }",
"private TextView getEmailTextView(String content) {\n TextView textView = getTextView(content);\n TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.MATCH_PARENT);\n layoutParams.weight = 1;\n Linkify.addLinks(textView, Linkify.EMAIL_ADDRESSES);\n textView.setLayoutParams(layoutParams);\n textView.setPadding(45, 30, 0, 0);\n textView.setCompoundDrawablesWithIntrinsicBounds(R.drawable.mail_blue, 0, 0, 0);\n textView.setCompoundDrawablePadding(30);\n return textView;\n }",
"@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment, com.zhihu.android.app.p1311ui.fragment.webview.WebViewFragment2\n public String onSendView() {\n return C6969H.m41409d(\"G6F82DE1FAA22A773A9419158E2F3CAD27ECCC313AF7FBC20E209955CE1\");\n }",
"@Override\n public void onLoadFinished(Loader<MailItem> loader, MailItem email) {\n emailViewer.loadDataWithBaseURL(null, email.getContent(),\n \"text/html\", \"utf-8\", null);\n // Hide progress bar spinner from view\n viewerSpinner.setVisibility(View.GONE);\n\n }",
"public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }",
"String getPlayerMail() {\r\n EditText editText = (EditText) findViewById(R.id.mail_edit_text_view);\r\n return editText.getText().toString();\r\n }",
"public /* synthetic */ void lambda$getViewForMessage$7(View view) {\n openCurrentMessage();\n }",
"private android.view.ViewGroup getViewForMessage(int r29, boolean r30) {\n /*\n r28 = this;\n r0 = r28\n r1 = r29\n java.util.ArrayList<org.telegram.messenger.MessageObject> r2 = r0.popupMessages\n int r2 = r2.size()\n r3 = 0\n r4 = 1\n if (r2 != r4) goto L_0x0019\n if (r1 < 0) goto L_0x0018\n java.util.ArrayList<org.telegram.messenger.MessageObject> r2 = r0.popupMessages\n int r2 = r2.size()\n if (r1 < r2) goto L_0x0019\n L_0x0018:\n return r3\n L_0x0019:\n r2 = -1\n r5 = 0\n if (r1 != r2) goto L_0x0025\n java.util.ArrayList<org.telegram.messenger.MessageObject> r1 = r0.popupMessages\n int r1 = r1.size()\n int r1 = r1 - r4\n goto L_0x002e\n L_0x0025:\n java.util.ArrayList<org.telegram.messenger.MessageObject> r6 = r0.popupMessages\n int r6 = r6.size()\n if (r1 != r6) goto L_0x002e\n r1 = 0\n L_0x002e:\n java.util.ArrayList<org.telegram.messenger.MessageObject> r6 = r0.popupMessages\n java.lang.Object r6 = r6.get(r1)\n org.telegram.messenger.MessageObject r6 = (org.telegram.messenger.MessageObject) r6\n int r7 = r6.type\n r8 = 1098907648(0x41800000, float:16.0)\n r9 = 4\n java.lang.String r11 = \"windowBackgroundWhiteBlackText\"\n r12 = 17\n r13 = -1082130432(0xffffffffbvar_, float:-1.0)\n r15 = 1092616192(0x41200000, float:10.0)\n if (r7 == r4) goto L_0x0047\n if (r7 != r9) goto L_0x01e7\n L_0x0047:\n boolean r7 = r6.isSecretMedia()\n if (r7 != 0) goto L_0x01e7\n java.util.ArrayList<android.view.ViewGroup> r7 = r0.imageViews\n int r7 = r7.size()\n r16 = 312(0x138, float:4.37E-43)\n r17 = 311(0x137, float:4.36E-43)\n if (r7 <= 0) goto L_0x0067\n java.util.ArrayList<android.view.ViewGroup> r7 = r0.imageViews\n java.lang.Object r7 = r7.get(r5)\n android.view.ViewGroup r7 = (android.view.ViewGroup) r7\n java.util.ArrayList<android.view.ViewGroup> r8 = r0.imageViews\n r8.remove(r5)\n goto L_0x00d6\n L_0x0067:\n android.widget.FrameLayout r7 = new android.widget.FrameLayout\n r7.<init>(r0)\n android.widget.FrameLayout r3 = new android.widget.FrameLayout\n r3.<init>(r0)\n int r9 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r14 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r10 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r15 = org.telegram.messenger.AndroidUtilities.dp(r15)\n r3.setPadding(r9, r14, r10, r15)\n android.graphics.drawable.Drawable r9 = org.telegram.ui.ActionBar.Theme.getSelectorDrawable(r5)\n r3.setBackgroundDrawable(r9)\n android.widget.FrameLayout$LayoutParams r9 = org.telegram.ui.Components.LayoutHelper.createFrame(r2, r13)\n r7.addView(r3, r9)\n org.telegram.ui.Components.BackupImageView r9 = new org.telegram.ui.Components.BackupImageView\n r9.<init>(r0)\n java.lang.Integer r10 = java.lang.Integer.valueOf(r17)\n r9.setTag(r10)\n android.widget.FrameLayout$LayoutParams r10 = org.telegram.ui.Components.LayoutHelper.createFrame(r2, r13)\n r3.addView(r9, r10)\n android.widget.TextView r9 = new android.widget.TextView\n r9.<init>(r0)\n int r10 = org.telegram.ui.ActionBar.Theme.getColor(r11)\n r9.setTextColor(r10)\n r9.setTextSize(r4, r8)\n r9.setGravity(r12)\n java.lang.Integer r8 = java.lang.Integer.valueOf(r16)\n r9.setTag(r8)\n r8 = -2\n android.widget.FrameLayout$LayoutParams r8 = org.telegram.ui.Components.LayoutHelper.createFrame(r2, r8, r12)\n r3.addView(r9, r8)\n r3 = 2\n java.lang.Integer r8 = java.lang.Integer.valueOf(r3)\n r7.setTag(r8)\n org.telegram.ui.PopupNotificationActivity$$ExternalSyntheticLambda3 r3 = new org.telegram.ui.PopupNotificationActivity$$ExternalSyntheticLambda3\n r3.<init>(r0)\n r7.setOnClickListener(r3)\n L_0x00d6:\n r3 = r7\n java.lang.Integer r7 = java.lang.Integer.valueOf(r16)\n android.view.View r7 = r3.findViewWithTag(r7)\n r14 = r7\n android.widget.TextView r14 = (android.widget.TextView) r14\n java.lang.Integer r7 = java.lang.Integer.valueOf(r17)\n android.view.View r7 = r3.findViewWithTag(r7)\n r15 = r7\n org.telegram.ui.Components.BackupImageView r15 = (org.telegram.ui.Components.BackupImageView) r15\n r15.setAspectFit(r4)\n int r7 = r6.type\n r13 = 8\n r8 = 100\n if (r7 != r4) goto L_0x0186\n java.util.ArrayList<org.telegram.tgnet.TLRPC$PhotoSize> r7 = r6.photoThumbs\n int r9 = org.telegram.messenger.AndroidUtilities.getPhotoSize()\n org.telegram.tgnet.TLRPC$PhotoSize r7 = org.telegram.messenger.FileLoader.getClosestPhotoSizeWithSize(r7, r9)\n java.util.ArrayList<org.telegram.tgnet.TLRPC$PhotoSize> r9 = r6.photoThumbs\n org.telegram.tgnet.TLRPC$PhotoSize r8 = org.telegram.messenger.FileLoader.getClosestPhotoSizeWithSize(r9, r8)\n if (r7 == 0) goto L_0x0165\n int r9 = r6.type\n if (r9 != r4) goto L_0x011c\n org.telegram.tgnet.TLRPC$Message r9 = r6.messageOwner\n java.io.File r9 = org.telegram.messenger.FileLoader.getPathToMessage(r9)\n boolean r9 = r9.exists()\n if (r9 != 0) goto L_0x011c\n r9 = 0\n goto L_0x011d\n L_0x011c:\n r9 = 1\n L_0x011d:\n boolean r10 = r6.needDrawBluredPreview()\n if (r10 != 0) goto L_0x0165\n if (r9 != 0) goto L_0x0146\n int r9 = r6.currentAccount\n org.telegram.messenger.DownloadController r9 = org.telegram.messenger.DownloadController.getInstance(r9)\n boolean r9 = r9.canDownloadMedia((org.telegram.messenger.MessageObject) r6)\n if (r9 == 0) goto L_0x0132\n goto L_0x0146\n L_0x0132:\n if (r8 == 0) goto L_0x0165\n org.telegram.tgnet.TLObject r7 = r6.photoThumbsObject\n org.telegram.messenger.ImageLocation r8 = org.telegram.messenger.ImageLocation.getForObject(r8, r7)\n r10 = 0\n r11 = 0\n java.lang.String r9 = \"100_100_b\"\n r7 = r15\n r12 = r6\n r7.setImage((org.telegram.messenger.ImageLocation) r8, (java.lang.String) r9, (java.lang.String) r10, (android.graphics.drawable.Drawable) r11, (java.lang.Object) r12)\n r4 = 8\n goto L_0x0163\n L_0x0146:\n org.telegram.tgnet.TLObject r9 = r6.photoThumbsObject\n org.telegram.messenger.ImageLocation r9 = org.telegram.messenger.ImageLocation.getForObject(r7, r9)\n org.telegram.tgnet.TLObject r10 = r6.photoThumbsObject\n org.telegram.messenger.ImageLocation r10 = org.telegram.messenger.ImageLocation.getForObject(r8, r10)\n int r12 = r7.size\n java.lang.String r11 = \"100_100\"\n java.lang.String r16 = \"100_100_b\"\n r7 = r15\n r8 = r9\n r9 = r11\n r11 = r16\n r4 = 8\n r13 = r6\n r7.setImage((org.telegram.messenger.ImageLocation) r8, (java.lang.String) r9, (org.telegram.messenger.ImageLocation) r10, (java.lang.String) r11, (int) r12, (java.lang.Object) r13)\n L_0x0163:\n r7 = 1\n goto L_0x0168\n L_0x0165:\n r4 = 8\n r7 = 0\n L_0x0168:\n if (r7 != 0) goto L_0x017e\n r15.setVisibility(r4)\n r14.setVisibility(r5)\n int r4 = org.telegram.messenger.SharedConfig.fontSize\n float r4 = (float) r4\n r7 = 2\n r14.setTextSize(r7, r4)\n java.lang.CharSequence r4 = r6.messageText\n r14.setText(r4)\n goto L_0x0329\n L_0x017e:\n r15.setVisibility(r5)\n r14.setVisibility(r4)\n goto L_0x0329\n L_0x0186:\n r4 = 8\n r9 = 4\n if (r7 != r9) goto L_0x0329\n r14.setVisibility(r4)\n java.lang.CharSequence r4 = r6.messageText\n r14.setText(r4)\n r15.setVisibility(r5)\n org.telegram.tgnet.TLRPC$Message r4 = r6.messageOwner\n org.telegram.tgnet.TLRPC$MessageMedia r4 = r4.media\n org.telegram.tgnet.TLRPC$GeoPoint r4 = r4.geo\n double r9 = r4.lat\n double r11 = r4._long\n int r7 = r6.currentAccount\n org.telegram.messenger.MessagesController r7 = org.telegram.messenger.MessagesController.getInstance(r7)\n int r7 = r7.mapProvider\n r13 = 2\n if (r7 != r13) goto L_0x01cb\n r7 = 15\n float r9 = org.telegram.messenger.AndroidUtilities.density\n double r9 = (double) r9\n double r9 = java.lang.Math.ceil(r9)\n int r9 = (int) r9\n int r9 = java.lang.Math.min(r13, r9)\n org.telegram.messenger.WebFile r4 = org.telegram.messenger.WebFile.createWithGeoPoint(r4, r8, r8, r7, r9)\n org.telegram.messenger.ImageLocation r8 = org.telegram.messenger.ImageLocation.getForWebFile(r4)\n r9 = 0\n r10 = 0\n r11 = 0\n r7 = r15\n r12 = r6\n r7.setImage((org.telegram.messenger.ImageLocation) r8, (java.lang.String) r9, (java.lang.String) r10, (android.graphics.drawable.Drawable) r11, (java.lang.Object) r12)\n goto L_0x0329\n L_0x01cb:\n int r4 = r6.currentAccount\n r23 = 100\n r24 = 100\n r25 = 1\n r26 = 15\n r27 = -1\n r18 = r4\n r19 = r9\n r21 = r11\n java.lang.String r4 = org.telegram.messenger.AndroidUtilities.formapMapUrl(r18, r19, r21, r23, r24, r25, r26, r27)\n r6 = 0\n r15.setImage(r4, r6, r6)\n goto L_0x0329\n L_0x01e7:\n int r3 = r6.type\n r4 = 2\n if (r3 != r4) goto L_0x0284\n java.util.ArrayList<android.view.ViewGroup> r3 = r0.audioViews\n int r3 = r3.size()\n r4 = 300(0x12c, float:4.2E-43)\n if (r3 <= 0) goto L_0x020e\n java.util.ArrayList<android.view.ViewGroup> r3 = r0.audioViews\n java.lang.Object r3 = r3.get(r5)\n android.view.ViewGroup r3 = (android.view.ViewGroup) r3\n java.util.ArrayList<android.view.ViewGroup> r7 = r0.audioViews\n r7.remove(r5)\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n android.view.View r4 = r3.findViewWithTag(r4)\n org.telegram.ui.Components.PopupAudioView r4 = (org.telegram.ui.Components.PopupAudioView) r4\n goto L_0x0270\n L_0x020e:\n android.widget.FrameLayout r3 = new android.widget.FrameLayout\n r3.<init>(r0)\n android.widget.FrameLayout r7 = new android.widget.FrameLayout\n r7.<init>(r0)\n int r8 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r9 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r10 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r11 = org.telegram.messenger.AndroidUtilities.dp(r15)\n r7.setPadding(r8, r9, r10, r11)\n android.graphics.drawable.Drawable r8 = org.telegram.ui.ActionBar.Theme.getSelectorDrawable(r5)\n r7.setBackgroundDrawable(r8)\n android.widget.FrameLayout$LayoutParams r8 = org.telegram.ui.Components.LayoutHelper.createFrame(r2, r13)\n r3.addView(r7, r8)\n android.widget.FrameLayout r8 = new android.widget.FrameLayout\n r8.<init>(r0)\n r9 = -1\n r10 = -1073741824(0xffffffffCLASSNAME, float:-2.0)\n r11 = 17\n r12 = 1101004800(0x41a00000, float:20.0)\n r13 = 0\n r14 = 1101004800(0x41a00000, float:20.0)\n r15 = 0\n android.widget.FrameLayout$LayoutParams r9 = org.telegram.ui.Components.LayoutHelper.createFrame(r9, r10, r11, r12, r13, r14, r15)\n r7.addView(r8, r9)\n org.telegram.ui.Components.PopupAudioView r7 = new org.telegram.ui.Components.PopupAudioView\n r7.<init>(r0)\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r7.setTag(r4)\n r8.addView(r7)\n r4 = 3\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3.setTag(r4)\n org.telegram.ui.PopupNotificationActivity$$ExternalSyntheticLambda4 r4 = new org.telegram.ui.PopupNotificationActivity$$ExternalSyntheticLambda4\n r4.<init>(r0)\n r3.setOnClickListener(r4)\n r4 = r7\n L_0x0270:\n r4.setMessageObject(r6)\n int r7 = r6.currentAccount\n org.telegram.messenger.DownloadController r7 = org.telegram.messenger.DownloadController.getInstance(r7)\n boolean r6 = r7.canDownloadMedia((org.telegram.messenger.MessageObject) r6)\n if (r6 == 0) goto L_0x0329\n r4.downloadAudioIfNeed()\n goto L_0x0329\n L_0x0284:\n java.util.ArrayList<android.view.ViewGroup> r3 = r0.textViews\n int r3 = r3.size()\n r4 = 301(0x12d, float:4.22E-43)\n if (r3 <= 0) goto L_0x029c\n java.util.ArrayList<android.view.ViewGroup> r3 = r0.textViews\n java.lang.Object r3 = r3.get(r5)\n android.view.ViewGroup r3 = (android.view.ViewGroup) r3\n java.util.ArrayList<android.view.ViewGroup> r7 = r0.textViews\n r7.remove(r5)\n goto L_0x0313\n L_0x029c:\n android.widget.FrameLayout r3 = new android.widget.FrameLayout\n r3.<init>(r0)\n android.widget.ScrollView r7 = new android.widget.ScrollView\n r7.<init>(r0)\n r9 = 1\n r7.setFillViewport(r9)\n android.widget.FrameLayout$LayoutParams r10 = org.telegram.ui.Components.LayoutHelper.createFrame(r2, r13)\n r3.addView(r7, r10)\n android.widget.LinearLayout r10 = new android.widget.LinearLayout\n r10.<init>(r0)\n r10.setOrientation(r5)\n android.graphics.drawable.Drawable r13 = org.telegram.ui.ActionBar.Theme.getSelectorDrawable(r5)\n r10.setBackgroundDrawable(r13)\n r13 = -2\n android.widget.FrameLayout$LayoutParams r14 = org.telegram.ui.Components.LayoutHelper.createScroll(r2, r13, r9)\n r7.addView(r10, r14)\n int r7 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r9 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r13 = org.telegram.messenger.AndroidUtilities.dp(r15)\n int r14 = org.telegram.messenger.AndroidUtilities.dp(r15)\n r10.setPadding(r7, r9, r13, r14)\n org.telegram.ui.PopupNotificationActivity$$ExternalSyntheticLambda2 r7 = new org.telegram.ui.PopupNotificationActivity$$ExternalSyntheticLambda2\n r7.<init>(r0)\n r10.setOnClickListener(r7)\n android.widget.TextView r7 = new android.widget.TextView\n r7.<init>(r0)\n r9 = 1\n r7.setTextSize(r9, r8)\n java.lang.Integer r8 = java.lang.Integer.valueOf(r4)\n r7.setTag(r8)\n int r8 = org.telegram.ui.ActionBar.Theme.getColor(r11)\n r7.setTextColor(r8)\n int r8 = org.telegram.ui.ActionBar.Theme.getColor(r11)\n r7.setLinkTextColor(r8)\n r7.setGravity(r12)\n r8 = -2\n android.widget.LinearLayout$LayoutParams r8 = org.telegram.ui.Components.LayoutHelper.createLinear((int) r2, (int) r8, (int) r12)\n r10.addView(r7, r8)\n java.lang.Integer r7 = java.lang.Integer.valueOf(r9)\n r3.setTag(r7)\n L_0x0313:\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n android.view.View r4 = r3.findViewWithTag(r4)\n android.widget.TextView r4 = (android.widget.TextView) r4\n int r7 = org.telegram.messenger.SharedConfig.fontSize\n float r7 = (float) r7\n r8 = 2\n r4.setTextSize(r8, r7)\n java.lang.CharSequence r6 = r6.messageText\n r4.setText(r6)\n L_0x0329:\n android.view.ViewParent r4 = r3.getParent()\n if (r4 != 0) goto L_0x0334\n android.view.ViewGroup r4 = r0.messageContainer\n r4.addView(r3)\n L_0x0334:\n r3.setVisibility(r5)\n if (r30 == 0) goto L_0x0373\n android.graphics.Point r4 = org.telegram.messenger.AndroidUtilities.displaySize\n int r4 = r4.x\n r5 = 1103101952(0x41CLASSNAME, float:24.0)\n int r5 = org.telegram.messenger.AndroidUtilities.dp(r5)\n int r4 = r4 - r5\n android.view.ViewGroup$LayoutParams r5 = r3.getLayoutParams()\n android.widget.FrameLayout$LayoutParams r5 = (android.widget.FrameLayout.LayoutParams) r5\n r6 = 51\n r5.gravity = r6\n r5.height = r2\n r5.width = r4\n int r2 = r0.currentMessageNum\n if (r1 != r2) goto L_0x035b\n r1 = 0\n r3.setTranslationX(r1)\n goto L_0x036d\n L_0x035b:\n int r6 = r2 + -1\n if (r1 != r6) goto L_0x0365\n int r1 = -r4\n float r1 = (float) r1\n r3.setTranslationX(r1)\n goto L_0x036d\n L_0x0365:\n r6 = 1\n int r2 = r2 + r6\n if (r1 != r2) goto L_0x036d\n float r1 = (float) r4\n r3.setTranslationX(r1)\n L_0x036d:\n r3.setLayoutParams(r5)\n r3.invalidate()\n L_0x0373:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.PopupNotificationActivity.getViewForMessage(int, boolean):android.view.ViewGroup\");\n }",
"@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5F8AC70EAA31A708E50D9F5DFCF1F3D66E86\");\n }",
"@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5AA0E73F9A1E9407C723B577DCD0EFFB\");\n }",
"@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5AA0E73F9A1E9407C723B577DCD0EFFB\");\n }",
"@Override\n\tpublic void sendHtmlEmail(MimeMessage mm) {\n\t\t\n\t}",
"public void elementView() {\n\t\tsetTitle(\"Envío de E-mail\");\n\t\tsetLocation(370, 150);\n\t\tsetBounds(100, 100, 600, 400);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBackground(UIManager.getColor(\"TextField.selectionBackground\"));\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\tJLabel lblNewLabel = new JLabel(model.getNameTags().get(0));\n\t\tlblNewLabel.setBounds(10, 11, 66, 14);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tto = new JTextField();\n\t\tto.setBounds(86, 8, 488, 20);\n\t\tcontentPane.add(to);\n\t\tto.setColumns(10);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(model.getNameTags().get(1));\n\t\tlblNewLabel_1.setBounds(10, 45, 66, 14);\n\t\tcontentPane.add(lblNewLabel_1);\n\t\t\n\t\tsubject = new JTextField();\n\t\tsubject.setBounds(86, 42, 488, 20);\n\t\tcontentPane.add(subject);\n\t\tsubject.setColumns(10);\n\t\t\n\t\tsend = new JButton(model.getNameButtons().get(0));\n\t\tsend.setBounds(10, 327, 89, 23);\n\t\tcontentPane.add(send);\n\t\t\n\t\tcloseProgram = new JButton(model.getNameButtons().get(1));\n\t\tcloseProgram.setBounds(213, 327, 150, 23);\n\t\tcontentPane.add(closeProgram);\n\t\t\n\t\tclearBox = new JButton(model.getNameButtons().get(2));\n\t\tclearBox.setBounds(424, 327, 150, 23);\n\t\tcontentPane.add(clearBox);\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 100, 564, 203);\n\t\tcontentPane.add(scrollPane);\n\t\t\n\t\tmessage = new JTextArea();\n\t\tscrollPane.setViewportView(message);\n\t}",
"public /* synthetic */ void lambda$getViewForMessage$6(View view) {\n openCurrentMessage();\n }",
"public void sendMessage(View view) {\n }",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"public ContactsViewHolder(@NonNull View itemView)\n {\n super(itemView);\n\n userName = itemView.findViewById(R.id.user_profile_name);\n userEmail = itemView.findViewById(R.id.user_email);\n lastMessage=itemView.findViewById(R.id.user_last_message);\n// profileImage = itemView.findViewById(R.id.users_profile_image);\n// onlineIcon = (ImageView) itemView.findViewById(R.id.user_online_status);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n setHasOptionsMenu(true);\n View v = inflater.inflate(R.layout.fragment_datum, container, false);\n textshow = (TextView) v.findViewById(R.id.textShow);\n //session Management\n session = new SessionManagement(getContext());\n user = session.getUserDetails();\n MainActivity.backFragment = null;\n\n // ============Gmail View starts here =======================\n // Gmail View.\n\n recyclerView = (RecyclerView) v.findViewById(R.id.recycler_view);\n swipeRefreshLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_refresh_layout);\n swipeRefreshLayout.setOnRefreshListener( new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n // onRefresh action here\n getGpsDatas();\n }\n });\n rAdapter = new GpsDataListAdapter(this.getContext(), gpsDatas, new GpsDataListAdapter.GpsDataListAdapterListener() {\n @Override\n public void onIconClicked(int position) {\n GpsData gpsData = gpsDatas.get(position);\n\n NewGpsDataFragment newGpsDataFragment = new NewGpsDataFragment();\n newGpsDataFragment.editingGps = gpsData;\n session.saveGpsData(gpsData);\n\n Fragment fragment = newGpsDataFragment;\n FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, \"registrations\");\n fragmentTransaction.commitAllowingStateLoss();\n }\n\n @Override\n public void onIconImportantClicked(int position) {\n //when you click ka-macho, it sould open for you the details of the gpsData\n GpsData gpsData = gpsDatas.get(position);\n session.saveGpsData(gpsData);\n Fragment fragment = new GpsDataViewFragment();\n FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, \"registrations\");\n fragmentTransaction.commitAllowingStateLoss();\n }\n\n @Override\n public void onMessageRowClicked(int position) {\n // go to view the gpsData\n GpsData gpsData = gpsDatas.get(position);\n session.saveGpsData(gpsData);\n Fragment fragment = new GpsDataViewFragment();\n FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, \"registrations\");\n fragmentTransaction.commitAllowingStateLoss();\n\n }\n\n @Override\n public void onRowLongClicked(int position) {\n\n //extract the clicked gpsData\n GpsData gpsData = gpsDatas.get(position);\n session.saveGpsData(gpsData);\n Fragment fragment;\n NewGpsDataFragment newGpsDataFragment = new NewGpsDataFragment();\n newGpsDataFragment.editingGps = gpsData;\n\n fragment = newGpsDataFragment;\n FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, \"registrations\");\n fragmentTransaction.commitAllowingStateLoss();\n }\n });\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.addItemDecoration(new DividerItemDecoration(getContext(), LinearLayoutManager.VERTICAL));\n recyclerView.setAdapter(rAdapter);\n actionModeCallback = new ActionModeCallback();\n swipeRefreshLayout.post(\n new Runnable(){\n @Override\n public void run(){\n getGpsDatas();\n }\n }\n );\n return v;\n }",
"public /* synthetic */ void lambda$getViewForMessage$8(View view) {\n openCurrentMessage();\n }",
"@Override\n public void onClick(View view) {\n Intent replyMailIntent = new Intent(\n EmailViewerActivity.this, MailEditorActivity.class);\n // Put message ID that this activity receive from InboxActivity\n replyMailIntent.putExtra(MailEditorActivity.KEY_REPLY,\n getIntent().getExtras().getInt(KEY_EXTRA));\n // Start the reply activity when this button is clicked\n startActivity(replyMailIntent);\n }",
"@Override\n public void onClick(View v) {\n if (v == btnView) {\n\n Button button = findViewById(R.id.btn_view);\n button.setText(R.string.load);\n\n Intent viewScreen;\n\n viewScreen = new Intent(this, viewScreen.class);\n viewScreen.putExtra(\"FILE\", \"M-\" + lv.getItemAtPosition(viewFilePos).toString());\n viewScreen.putExtra(\"GRAPHFILE\", \"G-\" + lv.getItemAtPosition(viewFilePos).toString());\n viewScreen.putExtra(\"IMAGE\", \"I-\" + lv.getItemAtPosition(viewFilePos).toString().substring(0, lv.getItemAtPosition(viewFilePos).toString().length() - 4) + \".png\");\n startActivity(viewScreen);\n\n }\n\n //All of the email functionality is written in here\n if (v == btnSend) {\n try {\n Context context = this;\n\n\n final Intent emailIntent = new Intent(\n\n Intent.ACTION_SEND_MULTIPLE);\n emailIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n List<ResolveInfo> resInfoList = context.getPackageManager().queryIntentActivities(emailIntent, PackageManager.MATCH_DEFAULT_ONLY);\n for (ResolveInfo resolveInfo : resInfoList) {\n String packageName = resolveInfo.activityInfo.packageName;\n context.grantUriPermission(packageName, listOfUri.get(0), Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_STREAM, listOfUri);\n if (URI != null) {\n emailIntent.putExtra(Intent.EXTRA_STREAM, URI);\n }\n emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, message);\n this.startActivity(Intent.createChooser(emailIntent,\n \"Sending email...\"));\n\n } catch (Throwable t) {\n Toast.makeText(this,\n \"Request failed try again: \" + t.toString(),\n Toast.LENGTH_LONG).show();\n }\n }\n\n }",
"@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment, com.zhihu.android.topic.fragment.StickyTabsFragment\n public String onSendView() {\n return C6969H.m41409d(\"G5AA0E73F9A1E9407C723B577DCD0EFFB\");\n }",
"public interface ProfileContactView {\n\n\n}",
"public interface GroupChatView {\n void enterText();\n void appendMsg(String chatName, String chatMessage, String chatTime, String chatDate);\n}",
"@Override\n protected void populateView(View v, Message model, int position) {\n TextView messageText = (TextView) v.findViewById(R.id.message_text);\n TextView messageTime = (TextView) v.findViewById(R.id.message_time);\n\n // Set their text\n messageText.setText(model.getContent());\n\n // Format the date before showing it\n messageTime.setText(model.getDate().toString());\n\n if (!model.getSenderId().equals(mParent.getUid())) {\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) messageText.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);\n params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, 0);\n messageText.setLayoutParams(params);\n messageText.setBackgroundResource(R.drawable.bg_bubble_white);\n\n params = (RelativeLayout.LayoutParams) messageTime.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_LEFT, R.id.message_text);\n messageTime.setLayoutParams(params);\n } else {\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) messageText.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_PARENT_LEFT, 0);\n params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, RelativeLayout.TRUE);\n messageText.setLayoutParams(params);\n messageText.setBackgroundResource(R.drawable.bg_bubble_gray);\n\n params = (RelativeLayout.LayoutParams) messageTime.getLayoutParams();\n params.addRule(RelativeLayout.ALIGN_RIGHT, R.id.message_text);\n messageTime.setLayoutParams(params);\n }\n }",
"private String getPlayerMail() {\n EditText mail = (EditText) findViewById(R.id.mail_edittext_view);\n return mail.getText().toString();\n }",
"@Override\n\tpublic String viewmessage_request() {\n\t\treturn null;\n\t}",
"private void showInbox(){\n getInbox();\n //display persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }",
"Observable<String> messageBodyRecipientTextViewText();",
"public interface AddPhotoView extends BaseView {\n\n void displayIMEINumber();\n\n void showLocationData();\n\n void showCurrentTime(String today);\n\n void showAddPhotoDialog();\n\n void sendEmail();\n\n}",
"public interface INotificationView extends IView {\n\n void setNotificationListAdapter(NotificationAdapter notificationAdapter);\n\n void navigateToLink(Uri data);\n}",
"public void viewInfo(View view){\n if(currentBook.ISBN13 != null){//If the data for ISBN has been retrieved\n //Open browser with information\n String bookLink = GOOGLE_BASE_LINK + currentBook.ISBN13;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n browserIntent.setData(Uri.parse(bookLink));\n startActivity(browserIntent);\n }else{\n Toast.makeText(this, \"Book is still loading...\", Toast.LENGTH_SHORT).show();\n }\n }",
"GmailClient getGmailClient(Credential credential);",
"@Override\r\n protected void populateView(View v, ChatMesso model, int position) {\n TextView messageText,messageUser,messageTime;\r\n messageText=(TextView)v.findViewById(R.id.message_text);\r\n messageUser=(TextView)v.findViewById(R.id.message_user);\r\n messageTime=(TextView)v.findViewById(R.id.message_time);\r\n\r\n messageText.setText(model.getMessageText());\r\n messageUser.setText(model.getMessageUser());\r\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\", model.getMessageTime()));\r\n\r\n }",
"@Override\n protected void populateView(View v, ChatMessage model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }",
"@Override\n protected void populateView(View v, ChatMessage model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }",
"public void addBehavior() {\n replyFab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // The intent to start reply activity\n Intent replyMailIntent = new Intent(\n EmailViewerActivity.this, MailEditorActivity.class);\n // Put message ID that this activity receive from InboxActivity\n replyMailIntent.putExtra(MailEditorActivity.KEY_REPLY,\n getIntent().getExtras().getInt(KEY_EXTRA));\n // Start the reply activity when this button is clicked\n startActivity(replyMailIntent);\n }\n });\n\n // Check network connection\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get network info\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n boolean isConnected = (activeNetwork != null) &&\n (activeNetwork.isConnectedOrConnecting());\n\n if (isConnected) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // Initialize the loader\n loaderManager.initLoader(MAIL_LOADER_ID, null, this);\n } else {\n // Show no internet warning if there is no internet connection\n emailViewer.loadDataWithBaseURL(null, getText(R.string.no_internet).toString(),\n \"text/html\", \"utf-8\", null);\n viewerSpinner.setVisibility(View.GONE);\n }\n }",
"public interface INotificationFgView {\r\n\r\n TextView getTVEmpty();\r\n RecyclerView getRVMessage();\r\n}",
"private void sendInvitationLink(){\n String invitationLink = mInvitationURL;\n String msg = \"Давайте вместе сыграем в Мюнхгаузена! Используйте мою реферерную ссылку: \"\n + invitationLink;\n\n System.out.println(msg);\n\n NSMutableArray<NSString> array = new NSMutableArray<NSString>();\n array.add(msg);\n\n UIActivityViewController activityViewController = new UIActivityViewController(array,null);\n UIViewController currentViewController = UIApplication.getSharedApplication().getKeyWindow().getRootViewController();\n\n if (isIpad()) {\n UIPopoverPresentationController popoverController = activityViewController.getPopoverPresentationController();\n popoverController.setSourceRect(new CGRect(UIScreen.getMainScreen().getBounds().getWidth()/2, UIScreen.getMainScreen().getBounds().getHeight()/2,0,0));\n popoverController.setSourceView(activityViewController.getView());\n popoverController.setPermittedArrowDirections(new UIPopoverArrowDirection(0));\n }\n\n currentViewController.presentViewController(activityViewController,true,null);\n\n// if (!MFMailComposeViewController.canSendMail()){\n// System.out.println(\"Device can't send email\")\n// return;\n// }\n//\n// MFMailComposeViewController mailer = new MFMailComposeViewController();\n// mailer.setMailComposeDelegate(new MFMailComposeViewControllerDelegate() {\n// @Override\n// public void didFinish(MFMailComposeViewController mfMailComposeViewController, MFMailComposeResult mfMailComposeResult, NSError nsError) {\n//\n// }\n// });\n//\n// mailer.setSubject(\"Invitation\");\n// mailer.setMessageBody(msg, true);\n// mailer.presentViewController(mailer, true, null);\n\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"[email protected]\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"[email protected]\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}",
"public interface MessageRemindView extends BaseView {\n void showRemindStatus(List<RemindApp> apps, boolean remind);\n\n void openLicensing();\n\n void openListChoice(boolean isCheck);\n\n void updateRemindStatus(List<RemindApp> apps, boolean remind);\n}",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n setContentView((int) R.layout.activity_message);\n this.recyclerView = (RecyclerView) findViewById(R.id.recycler_view);\n this.recyclerView.setHasFixedSize(true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);\n linearLayoutManager.setStackFromEnd(true);\n this.recyclerView.setLayoutManager(linearLayoutManager);\n this.username = (AppCompatTextView) findViewById(R.id.title);\n this.btn_send = (AppCompatImageButton) findViewById(R.id.btn_send);\n this.text_send = (AppCompatEditText) findViewById(R.id.text_send);\n this.img_view = (PhotoView) findViewById(R.id.img_preview);\n this.btn_doc = (AppCompatImageButton) findViewById(R.id.btn_doc);\n this.apiService = (APIService) Client.getClient(\"https://fcm.googleapis.com/\").create(APIService.class);\n this.layout = new LinearLayout(this);\n this.layout.setOrientation(LinearLayout.VERTICAL);\n this.layout.setGravity(17);\n this.layoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);\n this.customview = this.layoutInflater.inflate(R.layout.img_doc_dialog, (ViewGroup) null);\n this.img = (AppCompatButton) this.customview.findViewById(R.id.img);\n this.pdf = (AppCompatButton) this.customview.findViewById(R.id.pdf);\n this.cancel = (AppCompatTextView) this.customview.findViewById(R.id.cancel);\n this.popupWindow = new PopupWindow(this.customview, -1, -1);\n this.recyclerView.setVisibility(View.VISIBLE);\n this.img_view.setVisibility(View.GONE);\n this.intent = getIntent();\n this.dbname = this.intent.getStringExtra(\"path\");\n this.profile_url = this.intent.getStringExtra(Scopes.PROFILE);\n this.department = this.intent.getStringExtra(\"department\");\n this.semester = this.intent.getStringExtra(\"semester\");\n this.name = this.intent.getStringExtra(\"cname\");\n this.fuser = FirebaseAuth.getInstance().getCurrentUser();\n this.username.setText(getIntent().getStringExtra(\"name\"));\n this.btn_send.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.recyclerView.setVisibility(View.VISIBLE);\n DiscussionActivity.this.img_view.setVisibility(View.GONE);\n String obj = DiscussionActivity.this.text_send.getText().toString();\n if (!obj.equals(\"\")) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.sendMessage(discussionActivity.fuser.getUid(), obj);\n } else {\n Toast.makeText(DiscussionActivity.this, \"You Can't send empty message.\", Toast.LENGTH_SHORT).show();\n }\n DiscussionActivity.this.text_send.setText(\"\");\n }\n });\n this.btn_doc.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.showOptions();\n }\n });\n readMessage(this.fuser.getUid());\n }",
"public interface InvitesMvpView extends MvpView {\n void displayEmptyList();\n\n void displayError(String message);\n\n void displayError(int message);\n\n void displayInvites(List<Conference> conferences);\n\n void displayToast(String message);\n void displayToast(int messageID);\n}",
"@Override\n public void bindView(Chat item, List<Object> payloads) {\n\n setAvatar(item);\n setMessage(item);\n }",
"interface RedeemView extends BaseView {\n\n void LoadingReddemData (List<RedeemResponse> redeemResponses );\n void hide_refreshView();\n void show_errorView(boolean Isshow , String error);\n}",
"@RenderMapping(params = \"action=viewInboxMessage\")\n public String viewInboxMessage() {\n return JSP_DIR + VIEW_MESSAGE;\n }",
"public interface INetworkMailClient extends ICommonMailClient{\n void delete(String messageID);\n List<Message> getGoogleMessageList(String query) throws Exception;\n Message getMessageById(String messageId) throws Exception;\n List<Message> getGoogleMessageListWithLabels(List<String> labelIds) throws Exception;\n}",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"public void getResultsFromApi() {\n if (! isGooglePlayServicesAvailable()) {\n acquireGooglePlayServices();\n } else if (mCredential.getSelectedAccountName() == null) {\n mFragment.chooseAccount();\n } else if (! isDeviceOnline()) {\n // mOutputText.setText(\"No network connection available.\");\n } else if (mService == null){\n Log.d(Util.TAG_GOOGLE, mCredential.getSelectedAccountName());\n HttpTransport transport = AndroidHttp.newCompatibleTransport();\n JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();\n mService = new com.google.api.services.gmail.Gmail.Builder(\n transport, jsonFactory, mCredential)\n .setApplicationName(\"Gmail API Android Quickstart\")\n .build();\n mFragment.readEmails();\n }\n }",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"public interface LoginView extends BaseView {\n\n void onLoginError(String message);\n\n void firebaseAuthWithGoogle(AuthCredential credential);\n}",
"private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }",
"public abstract String getView();",
"public String sendEmail() {\n String to = theModel.getEmail();\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject( subject, \"text/html\");\n\n // Send the actual HTML message, as big as you like\n message.setContent( text , \"text/html\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n return \"UniLog.xhtml\";\n }",
"public interface MessageView extends BaseView{\r\n void messageSuccess(List<MessageBean.MessageBeansBean> messageBeansBeans);\r\n void messageError(String message);\r\n void messageFail(String message);\r\n}",
"public void handleSend() {\n model.sendMail();\n view.getChildren().clear();//it \"hides the display\" of the previous view\n }",
"public interface MainView {\n\n void setGifs(GifList list);\n void showError(String error);\n\n}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Log.i(TAG, \"result back from explicit intent activity\");\n // Check that it is OpenExplicitIntent with an ok result\n if(requestCode == EMAIL_ACTIVITY_RESULT_CODE) {\n if(resultCode == RESULT_OK) {\n\n // Get string data from the intent\n String returnContent = data.getStringExtra(\"keyName\");\n\n //input the email content into the textview at bottom of screen\n TextView textView = (TextView) findViewById(R.id.emailContent);\n textView.setText(returnContent);\n Button sendButton = (Button) findViewById(R.id.button);\n sendButton.setEnabled(true);\n }\n }\n }",
"@Override\n protected void populateView(View v, Comment model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n\n\n // Set their text\n messageText.setText(model.getCommentText());\n messageUser.setText(model.getCommentUser()); // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\", model.getCommentTime()));\n\n }",
"@Override\n protected void populateView(View v, ChatMensajes model, int position) {\n TextView messageText = (TextView)v.findViewById(R.id.message_text);\n TextView messageUser = (TextView)v.findViewById(R.id.message_user);\n TextView messageTime = (TextView)v.findViewById(R.id.message_time);\n\n // Set their text\n messageText.setText(model.getMessageText());\n messageUser.setText(model.getMessageUser());\n\n // Format the date before showing it\n messageTime.setText(DateFormat.format(\"dd-MM-yyyy (HH:mm:ss)\",\n model.getMessageTime()));\n }",
"public interface PrivateNotificationsView {\n\n Context getContext();\n Context getActivity();\n\n void clearList();\n void addNotificationsToList(List<Notification> notifications);\n void showEmpty(boolean showEmpty);\n\n}",
"public String getGmailAddress() {\r\n return GmailAddress;\r\n }",
"java.lang.String getView();",
"public interface MailPresenter {\n void loadConversation(final int conversationId);\n void unreadConversation(final String conversationId);\n void deleteConversation(final String conversationId);\n void reloadConversation(final int conversationId);\n void authorizeMessageView(final String messageId);\n void winkBack(String messageId);\n}",
"@Override\n public void onViewCreate() {\n }",
"public interface FingerprintPromptView extends BaseView {\n\n}",
"private void setupUserView(final TextView view) {\n final DatabaseManager db = DatabaseManager.getInstance();\n final String userID = Authenticator.getInstance().getCurrentUser().getUid();\n\n //Query firebase the user's information\n db.getUserWithIdentifier(UserKeys.ID, userID, new GetDataListener() {\n @Override\n public void onSuccess(DataSnapshot data) {\n User user = data.getValue(User.class);\n String text = \"\";\n\n if(user.getName().equals(\"\"))\n {\n user.setName(\"Anonymous\");\n db.updateUserWithID(userID, user);\n text += \"Name: Anonymous\" + \"\\n\";\n }\n else\n text += \"Name: \" + user.getName() + \"\\n\";\n\n text += \"Email: \" + user.getEmail() + \"\\n\";\n text += \"Latitude: \" + user.getLatitude() + \"\\n\";\n text += \"Longitude: \" + user.getLongitude() + \"\\n\";\n\n view.setText(text); //Display the user's information\n List<String> userGroupIDs = user.getGroups();\n\n //Query firebase to find the groups that the user is in\n for(String groupID : userGroupIDs) {\n db.getGroupWithIdentifier(GroupKeys.ID, groupID, new GetDataListener() {\n @Override\n public void onSuccess(DataSnapshot data) {\n //Add the group and refresh the page\n results.add(data.getValue(Group.class));\n refreshView();\n }\n\n @Override\n public void onFailure(DatabaseError error) {\n\n }\n });\n }\n }\n\n @Override\n public void onFailure(DatabaseError error) {\n\n }\n });\n }",
"public interface MyAttentionView extends BaseView {\n void attentionsuccess(MyAttentionBean myAttentionBean);\n void attentionerror();\n}",
"@Override\n\tpublic Viewboard WriteView(String message) {\n\t\treturn null;\n\t}",
"public interface MineMessageModifyView extends MvpView {\n\n void modifyMessage(Object connect);\n}",
"public interface IConversationView {\n\n //初始化我们的聊天视图\n void initConversationView(List<EMConversation> emConversationList);\n\n}",
"public void getGmailAtomFeed(final String access_token,final String token_type) {\n\t\tThread th = new Thread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tURL url = new URL(\"https://mail.google.com/mail/feed/atom\");\n\t\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\t\t\tconn.addRequestProperty(\"Authorization\", token_type + \" \"+access_token);\n\t\t\t\t\tint respCode = conn.getResponseCode();\n\t\t\t\t\tif (respCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\tInputStream is = conn.getInputStream();\n\t\t\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\t\t\t\t\tString str;\n\t\t\t\t\t\twhile((str = br.readLine()) != null) {\n\t\t\t\t\t\t\tsb.append(str).append(\"\\n\\r\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal String text = sb.toString();\n\t\t\t\t\t\tmHandler.post(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\ttextView.setText(text);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmHandler.post(new Runnable() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tToast.makeText(SampleGoogleOAuthActivity.this, \"������ ���� ����\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tth.start();\n\t}",
"public void sendMessage(View view) {\n new HttpRequestTask().execute();\n }",
"public String getView();",
"public String getView();",
"@Override\n protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n setContentView(R.layout.email_details_activity);\n\n try {\n // getActionBar().setBackgroundDrawable(\n // getResources().getDrawable(R.drawable.actionbarbg));\n //\n // getActionBar().setTitle(\"\");\n // // Enable ActionBar app icon to behave as action to toggle nav\n // // drawer\n // getActionBar().setLogo(R.drawable.action_icon);\n // getActionBar().setHomeButtonEnabled(true);\n // getActionBar().setDisplayHomeAsUpEnabled(true);\n\n Bundle bdl = getIntent().getExtras();\n if (bdl != null) {\n messageid = bdl.getString(\"messageid\");\n// SenderEmailId = bdl.getString(\"SenderEmailId\");\n// Subject = bdl.getString(\"Subject\");\n// Body = bdl.getString(\"Body\");\n// Time = bdl.getString(\"Time\");\n }\n\n txt_Sender_Email_Id = (TextView) findViewById(R.id.txt_Sender_Email_Id);\n txt_Subject = (TextView) findViewById(R.id.txt_Subject);\n txt_Body = (TextView) findViewById(R.id.txt_Body);\n txt_time = (TextView) findViewById(R.id.txt_time);\n webView = (WebView) findViewById(R.id.webView);\n\n\n webView.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n return true;\n }\n });\n webView.setLongClickable(false);\n webView.setHapticFeedbackEnabled(false);\n ActionBar mActionBar = getActionBar();\n mActionBar.setDisplayShowHomeEnabled(false);\n mActionBar.setDisplayShowTitleEnabled(false);\n LayoutInflater mInflater = LayoutInflater.from(this);\n View mCustomView = mInflater.inflate(R.layout.action_email_details,\n null);\n\n mActionBar.setBackgroundDrawable(getResources().getDrawable(\n R.drawable.actionbarbg));\n\n ImageView img_action_reply = (ImageView) mCustomView\n .findViewById(R.id.img_action_reply);\n ImageView img_action_forward = (ImageView) mCustomView\n .findViewById(R.id.img_action_forward);\n ImageView img_action_delete = (ImageView) mCustomView\n .findViewById(R.id.img_action_delete);\n ImageView img_action_block = (ImageView) mCustomView\n .findViewById(R.id.img_action_block);\n LinearLayout ll_back = (LinearLayout) mCustomView\n .findViewById(R.id.ll_back);\n\n img_action_reply.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n Bundle bdl = new Bundle();\n String emailid = txt_Sender_Email_Id.getText().toString().trim();\n String Subject = txt_Subject.getText().toString().trim();\n bdl.putString(\"mailid\", emailid);\n bdl.putString(\"subject\", Subject);\n bdl.putString(\"body\", EmailBody);\n Intent intent = new Intent(Emails_DetailsActivity.this,\n Email_Replay_Activity.class);\n intent.putExtras(bdl);\n startActivity(intent);\n }\n });\n img_action_forward.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n Bundle bdl = new Bundle();\n String emailid = txt_Body.getText().toString().trim();\n String Subject = txt_Subject.getText().toString().trim();\n bdl.putString(\"body\", EmailBody);\n bdl.putString(\"subject\", Subject);\n Intent intent1 = new Intent(Emails_DetailsActivity.this,\n Email_Forword_Activity.class);\n intent1.putExtras(bdl);\n startActivity(intent1);\n }\n });\n img_action_block.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n Block_Dialog();\n }\n });\n ll_back.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n Emails_DetailsActivity.this.finish();\n }\n });\n\n img_action_delete.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n DeleteEmail_Dialog();\n }\n });\n mActionBar.setCustomView(mCustomView);\n mActionBar.setDisplayShowCustomEnabled(true);\n mActionBar.setLogo(R.drawable.action_icon);\n\n\n// txt_Sender_Email_Id.setText(SenderEmailId);\n// txt_Subject.setText(Subject);\n// txt_Body.setText(Html.fromHtml(Body));\n// txt_time.setText(Time);\n Get_Email_details get_email_details = new Get_Email_details(messageid);\n get_email_details.execute();\n } catch (NotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void initView() {\n mEmailView = findViewById(R.id.edEmail);\n mPasswordView = findViewById(R.id.edPassword);\n\n //mEmailView.setText(\"[email protected]\");\n //mPasswordView.setText(\"Ek@kash1!125\");\n TextView tvForgotPassword = findViewById(R.id.tvForgotPass);\n TextView btnRegister = findViewById(R.id.btnRegister);\n Button mEmailSignInButton = findViewById(R.id.btnLogin);\n ImageView btnFacebook = findViewById(R.id.imgFacebook);\n ImageView btnGoogle = findViewById(R.id.imgGoogle);\n ImageView btnTwitter = findViewById(R.id.imgTwitter);\n btnLoginFacebook = findViewById(R.id.btnLoginFacebook);\n\n mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {\n if (id == EditorInfo.IME_ACTION_DONE) {\n attemptLogin();\n return true;\n }\n return false;\n }\n });\n\n //Forgot password Button\n tvForgotPassword.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showForgotPasswordScreen();\n }\n });\n\n //Register Button\n btnRegister.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showRegisterScreen();\n }\n });\n\n //Sign in Email Button\n mEmailSignInButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n attemptLogin();\n }\n });\n\n //Sign in Facebook Button\n btnFacebook.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n loginType = LOGIN_FACEBOOK;\n //btnLoginFacebook.performClick();\n //loginFacebook();\n showSimpleMessage(getString(R.string.message_next_phase));\n }\n });\n\n //Sign in Google Button\n btnGoogle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n loginType = LOGIN_GOOGLE;\n //loginGoogle();\n showSimpleMessage(getString(R.string.message_next_phase));\n }\n });\n\n btnTwitter.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n loginType = LOGIN_TWITTER;\n //loginTwitter();\n showSimpleMessage(getString(R.string.message_next_phase));\n }\n });\n }",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}",
"com.google.protobuf.ByteString\n getViewBytes();",
"public interface MessagesView {\n void setRecyclerView(RealmResults<Message> messages, Realm realm, int userId);\n}",
"public java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList() {\n if (viewsBuilder_ != null) {\n return viewsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(views_);\n }\n }",
"@View( VIEW_BOT )\r\n public XPage viewBot( HttpServletRequest request )\r\n {\r\n String strBotKey = request.getParameter( PARAMETER_BOT );\r\n if ( strBotKey == null )\r\n {\r\n // assuming the bot is the current session bot\r\n if ( _strBotKey == null )\r\n {\r\n // session is closed\r\n return redirectView( request, VIEW_LIST );\r\n }\r\n }\r\n else\r\n {\r\n if ( !strBotKey.equals( _strBotKey ) )\r\n {\r\n // new bot or bot has changed\r\n initSessionParameters( request, strBotKey );\r\n }\r\n }\r\n if ( _bot == null )\r\n {\r\n return redirectView( request, VIEW_BOT_NOT_FOUND );\r\n }\r\n boolean bTypedScript = AppPropertiesService.getPropertyBoolean( PROPERTY_TYPED_SCRIPT, DEFAULT_TYPED_SCRIPT );\r\n List<Post> listPosts = ChatService.getConversation( _strConversationId, _bot, _locale );\r\n Map<String, Object> model = getModel( );\r\n model.put( MARK_POSTS_LIST, listPosts );\r\n model.put( MARK_BOT_AVATAR, _bot.getAvatarUrl( ) );\r\n model.put( MARK_BASE_URL, AppPathService.getBaseUrl( request ) );\r\n model.put( MARK_BOT, _strBotKey );\r\n model.put( MARK_LANGUAGE, _locale.getLanguage( ) );\r\n model.put( MARK_STANDALONE, ( _bStandalone ) ? \"true\" : \"false\" );\r\n model.put( MARK_TYPED_SCRIPT, bTypedScript );\r\n\r\n String strTemplate = ( _bStandalone ) ? TEMPLATE_BOT_STANDALONE : TEMPLATE_BOT;\r\n XPage xpage = getXPage( strTemplate, request.getLocale( ), model );\r\n xpage.setTitle( _bot.getName( _locale ) );\r\n xpage.setPathLabel( _bot.getName( _locale ) );\r\n xpage.setStandalone( _bStandalone );\r\n\r\n return xpage;\r\n }",
"public void img_email(View view) {\n try {\n String txt = \"Good morning \\n\" + \"My suggestion is\";\n Intent sendemail = new Intent(Intent.ACTION_SEND);\n sendemail.setData( Uri.parse(\"mailto:\"));\n sendemail.setType((\"message/rfc822\"));\n sendemail.putExtra(Intent.EXTRA_EMAIL, \"[email protected]\");\n sendemail.putExtra(Intent.EXTRA_SUBJECT, \"Application Issam Drmas\");\n sendemail.putExtra(Intent.EXTRA_TEXT, txt);\n startActivity(sendemail);\n }catch (Exception e) {\n Toast.makeText(this,\"Sorry cannot find the application\", Toast.LENGTH_LONG).show();\n }\n }",
"private C_GetMailPageList(Builder builder) {\n super(builder);\n }",
"@Override\n\tpublic void hideMailDialog() {\n\t\t\n\t}",
"public interface ForgetMVP {\n\n\n public interface ForgetView\n {\n String getEmailId();\n\n\n void onSuccess(String message);\n void onFail(String message);\n void onError(Object t);\n\n void onEmailInvalid(String err);\n\n void showProgress();\n\n void hideProgress();\n void onNoInternetConnect(boolean b);\n void onInternetConnect(boolean b);\n }\n public interface ForgetPresenter\n {\n void onDestroy();\n void onSubmitButtonClicked(View view);\n void onNoInternetConnect(boolean b);\n void onInternetConnect(boolean b);\n\n\n }\n\n public interface ForgetModule\n {\n void onDestroy();\n void onFail(String message);\n void onSendForgetToServer(RetroController controller, String email, String url, ForgetPresenterImp listener);\n }\n\n public interface ForgetListener{\n void onSuccess(String message);\n void onFail(String message);\n void onError(Object t);\n\n void onEmailInvalid(String err);\n void showProgress();\n void hideProgress();\n void onNoInternetConnect(boolean b);\n void onInternetConnect(boolean b);\n\n }\n\n}",
"private S_GetMailPageList(Builder builder) {\n super(builder);\n }",
"public /* synthetic */ void m109039g(View view) {\n BaseMomentsFeedViewHolderZAUtils.m109182a(ZAUrlUtils.m91720a(this.f43819a.mo66965c(), new PageInfoType[0]), this.f77624m.getAttachedInfo(), this.f77624m.getContentModel().url);\n ZRouter.m72975c(this.f77762w.questionUrl).mo76351b(C6969H.m41409d(\"G7A8CC008BC358D3BE903\"), C6969H.m41409d(\"G418CD81FF203BE2BF50D8241E2F1CAD867\")).mo76346a(mo108898O());\n }",
"public void updateContent(View theView) {\n if (getArguments() != null) {\n Credentials credentials = (Credentials) getArguments().get(\"key\");\n EditText etEmail = theView.findViewById(R.id.edit_text_email);\n etEmail.setText(credentials.getEmail());\n\n EditText etPass = theView.findViewById(R.id.edit_text_password);\n etPass.setText(credentials.getPassword());\n }\n }",
"@SuppressLint(\"SetJavaScriptEnabled\")\r\n\t@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tmReciveOneMailDB = (ReciveOneMailDB) (savedInstanceState != null ? savedInstanceState\r\n\t\t\t\t.getSerializable(\"mReciveOneMail\") : getIntent()\r\n\t\t\t\t.getSerializableExtra(\"mReciveOneMail\"));\r\n\t\temailUsername = (savedInstanceState != null ? savedInstanceState\r\n\t\t\t\t.getString(\"emailUsername\") : getIntent().getStringExtra(\r\n\t\t\t\t\"emailUsername\"));\r\n\t\tif (mReciveOneMailDB == null) {\r\n\t\t\tfinish();\r\n\t\t}\r\n\t\tdialog = DialogUtils.showLoading(mContext,\r\n\t\t\t\tmContext.getString(R.string.dialog_loading), true);\r\n\t\tdialog.setCanceledOnTouchOutside(false);\r\n\t\tdialog.show();\r\n\t\temailUid = mReciveOneMailDB.getUserid();\r\n\t\tsjx_layout_006.setVisibility(View.GONE);\r\n\t\tString mSubject = TextUtils.isEmpty(mReciveOneMailDB.getSubject()) ? \"无标题文档\"\r\n\t\t\t\t: mReciveOneMailDB.getSubject();\r\n//\t\tString mFrom = TextUtils.isEmpty(mReciveOneMailDB.getForm()) ? \"\"\r\n//\t\t\t\t: mReciveOneMailDB.getForm();\r\n//\t\tString mTo = TextUtils.isEmpty(mReciveOneMailDB.getTopeople()) ? \"\"\r\n//\t\t\t\t: mReciveOneMailDB.getTopeople();\r\n//\t\tString mCC = TextUtils.isEmpty(mReciveOneMailDB.getCcpeople()) ? \"\"\r\n//\t\t\t\t: mReciveOneMailDB.getCcpeople();\r\n//\t\tString mTime = TextUtils.isEmpty(mReciveOneMailDB.getSentDate()) ? \"\"\r\n//\t\t\t\t: mReciveOneMailDB.getSentDate();\r\n\t\ttv_title.setText(mSubject);\r\n//\t\tsjx_yj_fjr.setText(mFrom);\r\n//\t\tsjx_yj_sjr.setText(mTo);\r\n//\t\tif (TextUtils.isEmpty(mCC)) {\r\n//\t\t\tfindViewById(R.id.lyout_caosong).setVisibility(View.GONE);\r\n//\t\t} else\r\n//\t\t\tsjx_yj_cs.setText(mCC);\r\n//\t\tsjx_yj_fssj.setText(mTime);\r\n\r\n\t\tpath = StorageUtils.getStorageFile().toString()\r\n\t\t\t\t+ Constants.ROOT_DIRECTION + \"/tmp\";\r\n\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t// String AppfileName = mReciveOneMailDB.getAppfileName();\r\n\t\t\t\tList<ATTACH> mAttachs = SQLiteUtils.getInstance(mContext)\r\n\t\t\t\t\t\t.getEmailAttachsFromDb(emailUsername, emailUid);\r\n\t\t\t\t// feed = readFile(path + \"/\" + AppfileName);\r\n\t\t\t\tmDetails = SQLiteUtils.getInstance(mContext)\r\n\t\t\t\t\t\t.getEmailDetailFromDb(emailUsername, emailUid);\r\n\t\t\t\tandroid.os.Message msg = mHandler.obtainMessage();\r\n\t\t\t\tmsg.what = 1;\r\n\t\t\t\tmsg.obj = mAttachs;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t}\r\n\t\t}).start();\r\n\t}",
"@SuppressLint(\"SetJavaScriptEnabled\")\n\tprotected void likeUsView() {\n\n\t\tDatabaseHandler db = new DatabaseHandler(MenuOptions.this);\n\t\tdb.setGameDataLikeUs(1);\n\t\tString url = \"https://touch.facebook.com/pages/2048-Number-Puzzle-Game/425926867544590\";\n\t\tWebView browser = new WebView(MenuOptions.this);\n\t\tbrowser.getSettings().setLoadsImagesAutomatically(true);\n\t\tbrowser.getSettings().setJavaScriptEnabled(true);\n\t\tbrowser.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);\n\t\tbrowser.loadUrl(url);\n\t\tsetContentView(browser);\n\t}",
"@Override\n public int getCount() {\n return messages.size();\n }"
]
| [
"0.70256853",
"0.66592836",
"0.6029168",
"0.5784111",
"0.57405126",
"0.5719769",
"0.56240016",
"0.5612972",
"0.55997264",
"0.5588278",
"0.5506579",
"0.5494724",
"0.5488094",
"0.5479976",
"0.5476381",
"0.5472593",
"0.5472593",
"0.5454107",
"0.5445826",
"0.544492",
"0.5429403",
"0.54174626",
"0.5414127",
"0.53861165",
"0.53706765",
"0.5357844",
"0.533315",
"0.53172433",
"0.53029144",
"0.5299731",
"0.5298958",
"0.5295402",
"0.5274315",
"0.525647",
"0.5237325",
"0.52201325",
"0.52188754",
"0.5216738",
"0.5209134",
"0.5207971",
"0.5204667",
"0.5203653",
"0.5203594",
"0.5192268",
"0.5190612",
"0.51853347",
"0.51853347",
"0.517594",
"0.5158419",
"0.5155568",
"0.5154903",
"0.5142061",
"0.51377404",
"0.51370543",
"0.51342714",
"0.51314914",
"0.5129992",
"0.5129258",
"0.5121982",
"0.5116631",
"0.51160324",
"0.51095206",
"0.51041526",
"0.51023036",
"0.5083426",
"0.5063275",
"0.5061876",
"0.50596356",
"0.5042955",
"0.50398934",
"0.503949",
"0.50391173",
"0.50373554",
"0.5030465",
"0.50286514",
"0.50271726",
"0.50267816",
"0.50254095",
"0.50249153",
"0.5014711",
"0.50084555",
"0.50084555",
"0.5004043",
"0.50015616",
"0.5001405",
"0.4990843",
"0.49817318",
"0.49815187",
"0.49706435",
"0.4966547",
"0.49649054",
"0.49626386",
"0.49623892",
"0.49543956",
"0.49477068",
"0.49365133",
"0.49353844",
"0.49336922",
"0.4925665",
"0.4914875",
"0.4910856"
]
| 0.0 | -1 |
/ Choose a random Color | private int getRandomMaterialColor(String typeColor) {
int returnColor = Color.GRAY;
int arrayId = getResources().getIdentifier("mdcolor_" + typeColor, "array", getContext().getPackageName());
if (arrayId != 0) {
TypedArray colors = getResources().obtainTypedArray(arrayId);
int index = (int) (Math.random() * colors.length());
returnColor = colors.getColor(index, Color.GRAY);
colors.recycle();
}
return returnColor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeRandColor(){}",
"private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}",
"public Color generateColor() { //function to generate a random color from the array of colors passed in\n Random rand = new Random();\n int randomNum = rand.nextInt((colorChoices.length));\n return colorChoices[randomNum];\n }",
"private Color getRandomColor()\r\n\t{\r\n\t\tColor randomColor = new Color ((float) Math.random(), (float) Math.random(), (float) Math.random());\r\n\t\treturn randomColor;\r\n\t}",
"private Color randomColor() {\r\n Random rand = new Random();\r\n float r = rand.nextFloat();\r\n float g = rand.nextFloat();\r\n float b = rand.nextFloat();\r\n\r\n randomColor = new Color(r, g, b, 1);\r\n return randomColor;\r\n }",
"private Color randomColor()\r\n {\r\n \tint randomNum = random.nextInt(5);\r\n \t\r\n \tif (randomNum == RED)\r\n \t\treturn Color.RED;\r\n \telse if (randomNum == GREEN)\r\n \t\treturn Color.GREEN;\r\n \telse if (randomNum == BLUE)\r\n \t\treturn Color.BLUE;\r\n \telse if (randomNum == BLACK)\r\n \t\treturn Color.BLACK;\r\n \telse \r\n \t\treturn Color.CYAN;\r\n \t\r\n\t\t\r\n }",
"public static Color getRandomColor(){\n int number = Math.abs(random.nextInt()) % getColorsTabLen();\n //Now I get the item from tab by drawing index\n //String colorName = colorNames[number];\n //In this case I get the color by index\n try {\n return COLORS[number];\n } catch (ArrayIndexOutOfBoundsException e){\n return getRandomColor();\n }\n }",
"public static Colores GetRandomColor(){\n Colores color=Colores.BLANCO;\n Random r=new Random();\n if(r.nextInt(2)==0){\n color=Colores.BLANCO;\n }else{\n color=Colores.NEGRO;\n }\n return color;\n }",
"protected Color randomColor()\n {\n // There are 256 possibilities for the red, green, and blue attributes\n // of a color. Generate random values for each color attribute.\n Random randNumGen = RandNumGenerator.getInstance();\n return new Color(randNumGen.nextInt(256), // amount of red\n randNumGen.nextInt(256), // amount of green\n randNumGen.nextInt(256)); // amount of blue\n }",
"public void randomizeColor() {\r\n\t\tArrayList<Integer> possibleColors = new ArrayList<Integer>();\r\n\t\tfor(int i = 1; i<=4; i++) {\r\n\t\t\tif(i!=colorType) { \r\n\t\t\t\tpossibleColors.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcolorType = possibleColors.get((int) (Math.random()*3));\r\n\t\t\r\n\t}",
"public static Color randomColor() {\n\t\tColor c = new Color(random.nextInt(256),random.nextInt(256),random.nextInt(256));\n\t\treturn c;\n\t}",
"public static Color RandomColor(){\n\t\n\tRandom rand = new Random();\n\tint red, green, blue;\n\tred = rand.nextInt(255);\n\tgreen = rand.nextInt(255);\n\tblue = rand.nextInt(255);\n\t\n\tColor color = new Color(red,green,blue);\n\treturn color;\n\t\n\t}",
"void testRandColor(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.randColor(), Color.ORANGE);\r\n t.checkExpect(this.game3.randColor(), Color.RED);\r\n t.checkExpect(this.game5.randColor(), Color.PINK);\r\n }",
"public void generateColor() {\n if (army < 0)\n color = Color.getHSBColor(0f, 1 - (float) Math.random() * 0.2f, 0.5f + (float) Math.random() * 0.5f);\n else if (army > 0)\n color = Color.getHSBColor(0.7f - (float) Math.random() * 0.2f, 1 - (float) Math.random() * 0.2f, 0.4f + (float) Math.random() * 0.25f);\n else color = Color.getHSBColor(0f, 0, 0.55f + (float) Math.random() * 0.25f);\n }",
"public int getRandomColor() {\n Random rand = new Random();\n\n int[] colors = new int[]{\n Color.argb(255, 255, 216, 0), //gold\n Color.argb(255, 0, 255, 255), //aqua\n Color.argb(255, 128, 255, 208), //aquamarine\n Color.argb(255, 176, 255, 48), //greenyellow\n Color.argb(255, 255, 104, 176), //hotpink\n Color.argb(255, 240, 128, 128), //lightcoral\n Color.argb(255, 255, 96, 64), //tomato\n Color.argb(255, 255, 255, 0) //yellow\n };\n return colors[rand.nextInt(colors.length)];\n }",
"public Color getRandomColor() {\n\t\tRandom rand = new Random();\n\t\tint i = rand.nextInt(3);\n\t\tif(i==0){\n\t\t\treturn Color.blue.darker();\n\t\t}else if(i==1) {\n\t\t\treturn Color.red.darker();\n\t\t}else\n\t\t\treturn Color.GREEN.darker();\n\t}",
"public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}",
"public Color randColor() {\r\n return this.loc.get(this.rand.nextInt(this.loc.size()));\r\n }",
"Color userColorChoose();",
"static void changeToRandomColor( int rowNum, int colNum ) {\n int red = ( int )( Math.random() * 256 );\n int green = ( int )( Math.random() * 256 );\n int blue = ( int )( Math.random() * 256 );\n Mosaic.setColor( rowNum, colNum, red, green, blue );\n\n }",
"public static TetriminoColor getRandomColor() {\n\t\treturn new TetriminoColor(random.nextInt(256), random.nextInt(256), random.nextInt(256));\n\t}",
"private void randomiseColors() {\n \t// Give the star a random color for normal circumstances...\n \tcolor.set((float) Random.nextDouble(),\n \t\t\t(float) Random.nextDouble(), (float) Random.nextDouble());\n \n // When the star is twinkling, we draw it twice, once in the color below \n // (not spinning) and then once in the main color defined above.\n twinkleColor.set((float) Random.nextDouble(),\n \t\t(float) Random.nextDouble(), (float) Random.nextDouble());\n }",
"public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public randomColorGenerator(Color[] colors){\n colorChoices = colors;\n }",
"private void getRandomColor(RGB rgb) {\n synchronized (frame_) {\n final int i = (int) (Math.random() * frame_.length);\n rgb.r = frame_[i].r;\n rgb.g = frame_[i].g;\n rgb.b = frame_[i].b;\n }\n }",
"private ChatColor randomRainbowColor() {\n\t\tswitch(random.nextInt(6)) {\n\t\t\tcase 0:\n\t\t\t\treturn ChatColor.AQUA;\n\t\t\tcase 1:\n\t\t\t\treturn ChatColor.GREEN;\n\t\t\tcase 2:\n\t\t\t\treturn ChatColor.LIGHT_PURPLE;\n\t\t\tcase 3:\n\t\t\t\treturn ChatColor.YELLOW;\n\t\t\tcase 4:\n\t\t\t\treturn ChatColor.RED;\n\t\t\tcase 5:\n\t\t\t\treturn ChatColor.GOLD;\n\t\t\tdefault:\n\t\t\t\treturn ChatColor.WHITE;\n\t\t}\n\t}",
"private void generateColors(){\n\t\tRandom r = new Random();\n\t\tcurrentIndex = 0;\n\t\tfor (int i = 0; i < colors.length; i++) {\n\t\t\tcolors[i] = COLORS_DEFAULT[r.nextInt(COLORS_DEFAULT.length)];\n\t\t}\n\t}",
"colorChoice(Vec3 color) {\n this.color = color;\n }",
"public RandomColorProvider() {\n\t\tcurrentColorValue = 0;\n\t}",
"public static Vector4f randomColor() {\n return new Vector4f(RANDOM.nextFloat(), RANDOM.nextFloat(), RANDOM.nextFloat(), 1);\n }",
"private void setRandomColors() {\n for(int i = 0; i< noOfColumns; i++) {\n for (int j = 0; j< noOfRows; j++) {\n if(cards[i][j].getCardState() != CardState.MATCHED){\n int randomNumber = (int) (Math.random()*4);\n cards[i][j].setColor(colors[randomNumber]);\n }\n }\n }\n }",
"public void setRandomCombi(){\r\n Random rand = new Random();\r\n\r\n for (int i = 0; i < COMBI_LENGTH; i++){\r\n //Take a random Color, put length - 1 to avoid picking EMPTY color\r\n this.combi[i] = Colors.values()[rand.nextInt(Colors.values().length - 1)];\r\n }\r\n }",
"@ReflectiveMethod(name = \"a\", types = {Random.class})\n public NMSEnumColor a(Random random){\n return new NMSEnumColor(NMSWrapper.getInstance().exec(nmsObject, random));\n }",
"static int getMondrianColour(int randomRange) {\n Random rand = new Random();\n int randomInt = rand.nextInt(randomRange);\n int colour = R.color.mondrian_white;\n switch (randomInt) {\n case 0:\n colour = R.color.mondrian_blue;\n break;\n case 1:\n colour = R.color.mondrian_red;\n break;\n case 2:\n colour = R.color.mondrian_yellow;\n break;\n }\n return colour;\n }",
"private Pair<Integer, Integer> getRandomColor(int level) {\n int red = (int)(Math.random() * 255);\n int green = (int)(Math.random() * 255);\n int blue = (int)(Math.random() * 255);\n\n // TODO: Improve the formula for alphas\n int alpha1 = 200 + (int)(Math.random() * 55);\n int delta = (10 - level) * 2;\n int alpha2 = alpha1 + delta * (alpha1 > 227 ? -1 : 1);\n\n int color1 = Color.argb(alpha1, red, green, blue);\n int color2 = Color.argb(alpha2, red, green, blue);\n\n return new Pair(color1, color2);\n }",
"static void fillWithRandomColors() {\n\n for ( int row = 0; row < ROWS; row++ ) {\n for ( int column = 0; column < COLUMNS; column++ ) {\n changeToRandomColor( row, column );\n }\n }\n }",
"public void actionPerformed(ActionEvent e) {\n float zufall = (float) Math.random(); \n Color grauton = new Color(zufall,zufall,zufall);\n c.setBackground(grauton); // Zugriff auf c moeglich, da\n }",
"public Color switchCol() {\n Color col = null;\n int rand_int = (int) (Math.random() * 15);\n switch (rand_int) {\n case 0:\n col = Color.DEEPSKYBLUE;\n break;\n case 1:\n col = Color.PINK;\n break;\n case 2:\n col = Color.TURQUOISE;\n break;\n case 3:\n col = Color.VIOLET;\n break;\n case 4:\n col = Color.ORANGE;\n break;\n case 5:\n col = Color.LIGHTSALMON;\n break;\n case 6:\n col = Color.LIGHTGREEN;\n break;\n case 7:\n col = Color.LIGHTCORAL;\n break;\n case 8:\n col = Color.PALETURQUOISE;\n break;\n case 9:\n col = Color.SPRINGGREEN;\n break;\n case 10:\n col = Color.MEDIUMORCHID;\n break;\n case 11:\n col = Color.MEDIUMPURPLE;\n break;\n case 12:\n col = Color.FUCHSIA;\n break;\n case 13:\n col = Color.AQUAMARINE;\n break;\n case 14:\n col = Color.DEEPPINK;\n break;\n default:\n col = Color.CYAN;\n break;\n }\n return col;\n }",
"@Test\r\n public void testPlayer_selectNewColor_dumb() {\r\n player2 = new Player(\"\", true);\r\n player2.setStrategy(Player.STRATEGY_DUMB);\r\n player2.setHand(strategyHand.getAllCards());\r\n player2.setLastPlayedCard(wild);\r\n String firstRandomColor = player2.selectNewColor();\r\n boolean differentColorFound = false;\r\n for(int i = 0; i < 25; i++) {\r\n String nextRandomColor = player2.selectNewColor();\r\n if(!nextRandomColor.equalsIgnoreCase(firstRandomColor)) {\r\n differentColorFound = true;\r\n }\r\n }\r\n assertTrue(differentColorFound);\r\n }",
"public void reset() {\n x = random(-2*width, 3*width); // set the x position\n y = random(-height, 2*height); // set the y position\n c[0] = color(random(150, 255), random(150, 255), random(150, 255)); // set the top color (a bit lighter)\n // randomly set the 4 colors in the base of the shape\n for (int i=1; i<5; i++) {\n c[i] = color(random(255), random(255), random(255)); // random RGB color\n }\n }",
"public void randomColor(int brightness) {\n PHBridge bridge = PHHueSDK.getInstance().getSelectedBridge();\n PHLightState lightState = new PHLightState();\n lightState.setOn(true);\n lightState.setBrightness(brightness);\n //generates a random HUE code to set the bulbs to a random color\n Random rand = new Random();\n lightState.setHue(rand.nextInt(65535));\n \n bridge.setLightStateForDefaultGroup(lightState);\n }",
"private void getRandomSprite(String type) {\n\t\tint randInt = new Random().nextInt(3);\n\t\tspriteNum = randInt;\n\t\tswitch(type){\n\t\tcase \"red\":\n\t\t\tspriteCol = 0;\n\t\t\tbreak;\n\t\tcase \"blue\":\n\t\t\tspriteCol = 1;\n\t\t\tbreak;\n\t\tcase \"green\":\n\t\t\tspriteCol = 2;\n\t\t\tbreak;\n\t\tcase \"black\":\n\t\t\tspriteCol = 3;\n\t\t\tbreak;\n\t\tcase \"grey\":\n\t\t\tspriteCol = 4;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tspriteCol =0;\n\t\t\tbreak;\n\t\t}\n\t}",
"public void randomPaint(Paint paint, Random random) {\n randomGradient(mRandom);\n paint.setStrokeWidth(mBrushSize);\n if(mRainbow != null) {\n paint.setShader(mRainbow);\n }\n }",
"public void random_init()\r\n\t{\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tchromosome[i] = random_generator.nextInt(num_colors)+1;\r\n\t\t}\r\n\t}",
"private Colors ingameColor() {\n\t\tList<Colors> colors = new ArrayList<Colors>();\n\t\tIterator<Sphere> it = this.spheres.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSphere s = it.next();\n\t\t\tif (!colors.contains(s.color())) {\n\t\t\t\tcolors.add(s.color());\n\t\t\t}\n\t\t}\n\t\treturn colors.get(MathUtils.random(colors.size() - 1));\n\t}",
"public void randBalloonColor(Graphics art)\n\t{\n\t\tart.setColor(Color.white);\n\t\tart.fillRect(0, 0, 900, 150);\n\t\tcount++;\n\t\tif(count % 100 == 0)\n\t\t{\n\t\t\trandomColor = colors[gen.nextInt(colors.length)];\n\t\t}\n\t\tart.setColor(Color.red);\n\t\tart.setColor(randomColor);\n\t\tart.fillOval(750, 47, 55, 70);\n\t\t\n\t}",
"private static Gremblin getRandomGrem(DMPlayer p){\n\t\tdouble ran = Math.random();\n\t\t//red\n\t\tif(ran<=.333){\n\t\t\treturn new Gremblin('r',p);\n\t\t}\n\t\t//blue\n\t\tif(ran<.667){\n\t\t\treturn new Gremblin('b',p);\n\t\t}\n\t\t//yellow\n\t\treturn new Gremblin('y',p);\n\t}",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"private void random() {\n\n\t}",
"RGB getNewColor();",
"private void initColorAr() {\n\t\tcolorAr = new ArrayList<Color>();\n\t\tcolorAr.add(Color.black);\n\t\tcolorAr.add(Color.green);\n\t\tcolorAr.add(Color.red);\n\t\tcolorAr.add(Color.blue);\n\t\tcolorAr.add(Color.white);\n\t\tcolorAr.add(Color.orange);\n\t\tcolorAr.add(Color.pink);\n\t\tcolorAr.add(Color.cyan);\n\t\tcolorAr.add(Color.darkGray);\n\t\tcolorAr.add(Color.gray);\n\t\tcolorAr.add(Color.magenta);\n\t\tcolorAr.add(Color.yellow);\n\t\tr = new Random();\n\t}",
"private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}",
"public static EnumCardNumber pickRandom() {\r\n\t\treturn values()[Tools.Numbers.randomInt(0, values().length - 1)];\r\n\t}",
"public Color getChosenColor(int index){\n\t\treturn this.colorSet[index];\n\t}",
"public Clue getRandomClue()\n {\n HashMap<String, Clue> usableClues = getUseableClues();\n ArrayList<Clue> list = new ArrayList<>(usableClues.values());\n int i = rand.nextInt(usableClues.size());\n return list.get(i);\n }",
"public void randomize()\n {\n a = (int)(Math.random()*(1110/15))*15 + 150; \n b = (int)(Math.random()*(480/15))*15 + 150; \n \n if(!specials || difficult.equals(\"GHOST\"))\n {\n dotColor = \"RED\";\n }\n else\n { \n double c = Math.random(); \n if(c < .65 || powerupTimer > 0 || hasItem)\n {\n dotColor = \"RED\";\n }\n else if(c>=.65 && c<.70 )\n \n {\n //dotColor = \"RED SHELL\";\n dotColor = \"RED\";\n }\n else if(c>=.70 && c<.75)\n {\n dotColor = \"TROLL\";\n }\n else if(c>=.75 && c <=.8)\n {\n dotColor = \"DOUBLE\";\n }\n else if(c>.8 && c<=.85 && powerupTimer <= 0)\n {\n dotColor = \"BLUE\"; \n }\n else if(c>.85 && c<=.90 && powerupTimer <= 0)\n {\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n { \n if(modeT)\n dotColor = \"CRYSTAL\";\n else\n dotColor = \"BLACK\";\n }\n else\n dotColor = \"RED\";\n }\n else if(c>.90 && c<=.93 && powerupTimer <= 0)\n {\n dotColor = \"RAINBOW\"; \n }\n else if(c>.93 && c<=.97 && powerupTimer <= 0)\n {\n dotColor = \"YELLOW\"; \n }\n else if(c>.97 && c<=1.0 && powerupTimer <= 0)\n {\n dotColor = \"WHITE\"; \n } \n else if(c>1.0 && c<=1.0 && powerupTimer <= 0)\n {\n dotColor = \"PURPLE\";\n } \n }\n }",
"public void setColor(Color choice) {\n circleColor = choice;\n\n }",
"public static Color chooseColor(int colorNumber) {\n\n\t\t// color variable that will be returned\n\t\tColor colorToReturn = null;\n\n\t\t// switch statement to set colorToReturn to the color based on whether colorNumber is 0-5\n\n\t\t\n\t\tswitch (colorNumber) {\n\t\tcase 0:\n\t\t\tcolorToReturn = Color.BLUE;\n\t\t\tglobalColor = \"blue\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tcolorToReturn = Color.YELLOW;\n\t\t\tglobalColor = \"yellow\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tcolorToReturn = Color.RED;\n\t\t\tglobalColor = \"red\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tcolorToReturn = Color.GREEN;\n\t\t\tglobalColor = \"green\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tcolorToReturn = Color.ORANGE;\n\t\t\tglobalColor = \"orange\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tcolorToReturn = Color.CYAN;\n\t\t\tglobalColor = \"cyan\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t//if any other number is found end the program\n\t\t\tSystem.out.println(\"Error while choosing a random color.\");\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t}\n\n\t\t//return color\n\t\treturn colorToReturn;\n\n\t}",
"private static Option pickRandom() {\n\t\treturn Option.values()[rand.nextInt(3)];\n\t}",
"private Color generateColor() {\r\n\t\tint length = nameColor.size();\r\n\t\tif(length == 0) return colorArray[0];\r\n\t\t\r\n\t\tColor lastColor = nameColor.get(length-1);\r\n\t\tint lastColorIndex = 0;\r\n\t\tfor(int i = 0; i<colorArray.length; i++) {\r\n\t\t\tif(lastColor == colorArray[i]) {\r\n\t\t\t\tlastColorIndex = i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tColor curColor = colorArray[(lastColorIndex+1)%3];\r\n\t\treturn curColor;\r\n\t}",
"@Override\n public void onChooseColor(int position, int color) {\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n Log.e(\"rgb\", \"\" + red + \" \" + green + \" \" + blue);\n }",
"private String getColor(String tagName) {\n if (labelColor.containsKey(tagName)) {\n return labelColor.get(tagName);\n } else {\n Random random = new Random();\n // create a big random number - maximum is ffffff (hex) = 16777215 (dez)\n int nextInt = random.nextInt(256 * 256 * 256);\n // format it as hexadecimal string (with hashtag and leading zeros)\n String colorCode = String.format(\"#%06x\", nextInt);\n labelColor.put(tagName, colorCode);\n return labelColor.get(tagName);\n }\n }",
"public Card()\r\n {\r\n rand = new Random();\r\n value = rand.nextInt(28); \r\n // Assigning value\r\n if (value >= 14) // Check if value is greater than 14 then value = value - 14;\r\n value -= 14;\r\n // Assigning color\r\n rand = new Random();\r\n // Switch statement for assigning different colors\r\n switch(rand.nextInt(4) )\r\n {\r\n case 0: color = \"Red\"; \r\n break;\r\n case 1: color = \"Green\"; \r\n break;\r\n case 2: color = \"Blue\"; \r\n break;\r\n case 3: color = \"Yellow\"; \r\n break;\r\n }\r\n // If the card is a wild card and value is greater than or equal to 13 then none value is assigned to color variable\r\n if (value >= 13)\r\n color = \"none\";\r\n }",
"public S getRandomState();",
"Chromosome getRandom();",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public void setRandom(Random r) {\n this.r = r;\n }",
"public int getColor();",
"public int getColor();",
"private Color spreadColor(Color oldColor){\r\n\t\tdouble spread = 0.8;\r\n\t\tColor newColor = new Color(oldColor.getRed()*(spread)*Math.random(),oldColor.getGreen()*\r\n\t\t\t\t(spread)*Math.random(),oldColor.getBlue()*(spread)*Math.random(),0.4*Math.random());\r\n\t\treturn newColor.brighter().brighter();\r\n\t}",
"public void throwDice() {\n\n Random r = new Random();\n\n if (color == DiceColor.NEUTRAL) {\n this.value = 0;\n } else {\n this.value = 1 + r.nextInt(6);\n }\n\n }",
"public Color getColor(String key) {\n\t\tif (mappings.containsKey(key)) {\n\t\t\t// return previously mapped color\n\t\t\treturn (Color) mappings.get(key);\n\t\t} else {\n\t\t\t// check for available standard color\n\t\t\tfor (int i = 0; i < assigned.length; i++) {\n\t\t\t\tif (assigned[i] == false) {\n\t\t\t\t\tassigned[i] = true;\n\t\t\t\t\tmappings.put(key, colors[i]);\n\t\t\t\t\treturn colors[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t// create random color\n\t\t\tColor random = new Color(rnd.nextInt(245), rnd.nextInt(245), rnd\n\t\t\t\t\t.nextInt(245));\n\t\t\tmappings.put(key, random);\n\t\t\treturn random;\n\t\t}\n\t}",
"public void keyPressed() {\n if (key == ' ') {\n int f = (int)random(2);\n a.colores(f);\n c.colores(f);\n m.colores(f);\n // println(f);\n }\n}",
"private Color geraCorAleatoria() {\n\t\tColor cor = null; Random rc = new Random();\n\t\tint codCor = rc.nextInt(6);\n\t\tswitch (codCor) {\n\t\tcase 0:\n\t\t\tcor = Color.BLUE;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tcor = Color.CYAN;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tcor = Color.RED;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tcor = Color.GREEN;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tcor = Color.MAGENTA;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tcor = Color.ORANGE;\n\t\t\tbreak;\n\t\t}\n\t\treturn cor;\n\t}",
"public int moviment(Tauler t, int color) {\n int col = (int) (8.0D * Math.random());\n while (!t.movpossible(col)) {\n col = (int) (8.0D * Math.random());\n }\n return col;\n }",
"Randomizer getRandomizer();",
"Boolean getRandomize();",
"@Test\n public void testGetColor() {\n assertEquals(r1.getColor(), new Color(255, 0, 0));\n assertEquals(r2.getColor(), new Color(255, 255, 255));\n assertEquals(r3.getColor(), new Color(255, 255, 0));\n assertEquals(r4.getColor(), new Color(200, 150, 133));\n }",
"public static char casillaRandom() {\r\n char pool[] = {'b', 'p', 's', 'd'};\r\n\r\n int indiceRandom = (int) (Math.random() * 4);\r\n\r\n char selected = pool[indiceRandom];\r\n\r\n return selected;\r\n }",
"public GameColor getColor();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint range = 6;\r\n\t\tint min = 1;\r\n for (int i = 0; i < 6; i++) { \r\n int rand = (int)(Math.random() * range) + min; \r\n \r\n //Output is different everytime this code is executed \r\n System.out.println(rand); \r\n int randomNu = 8;\r\n String color;\r\n switch (color) {\r\n case 1: color = \"o\";\r\n break;\r\n case 2: monthString = \"February\";\r\n break;\r\n case 3: monthString = \"March\";\r\n break;\r\n\r\n\t}\r\n\r\n\t}\r\n}",
"String getColor();",
"private void setRandomColor(EmailMessage stickyNote) throws Exception {\n\t\tUUID guid = UUID.fromString(PROPERTY_DEFINITION_UUID);\n\t\tExtendedPropertyDefinition prop = new ExtendedPropertyDefinition(guid, 0x8B00,\n\t\t\t\tMapiPropertyType.Integer);\n\t\tstickyNote.setExtendedProperty(prop, (int) (Math.random() * STICKY_NOTES_COLOURS_COUNT));\n\t}",
"public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }",
"public static ChatColor getColor(ChatColor... validChatcolors) {\n Random r = new Random(System.nanoTime());\n ChatColor[] colors;\n if (validChatcolors.length == 0)\n colors = ChatColor.values();\n else\n colors = validChatcolors;\n\n int i = r.nextInt(colors.length);\n while (!colors[i].isColor() || colors[i] == ChatColor.BLACK)\n i = r.nextInt(colors.length);\n ChatColor rc = colors[i];\n return rc;\n }",
"@Test\n public void testVictoryBlue(){\n for (Cell c: modelTest.grid) {\n if (c.getY() == 5)\n c.setColor(Color.BLUE);\n }\n\n modelTest.researchVictory(0,1);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.BLUE);\n }",
"public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }",
"void setColor(int r, int g, int b);",
"public static void randomInit(int r) { }",
"public void setColor(int color);",
"public void setColor(int color);",
"public void infectfirstpixel() {\r\n randompixel = r.nextInt(100);\r\n pixellist.get(randompixel).setBackground(Color.red);\r\n count++;\r\n storage.add(randompixel);\r\n\r\n }",
"public DrawComponent() {\n if (screen == null) {\n screen = Screen.getScreen();\n }\n\n // generate a random color\n color = screen.color(screen.random(255), screen.random(255), screen.random(255)); //random color\n }",
"private ElementColor selectColor() {\n\n\t\treturn Theme.defaultColor(); \n\t}",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"protected int getColor(int colornumber) {\n if(random){\n return colorMap.get((int)Math.floor(colorMap.size() * Math.random())).getRGB();\n }\n return colorMap.get(colornumber % colorMap.size()).getRGB();\n }",
"Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }",
"public void chooseBackgroundColor(){\n currentBackgroundColor = backgroundColorPicker.getValue();\n draw();\n }",
"private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}",
"RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }"
]
| [
"0.84957296",
"0.83569515",
"0.8287913",
"0.80710983",
"0.8060293",
"0.80573946",
"0.796281",
"0.79367685",
"0.78840446",
"0.7846415",
"0.7820392",
"0.7812455",
"0.7774086",
"0.77197",
"0.7650851",
"0.7620036",
"0.75582683",
"0.7556541",
"0.7411206",
"0.7332722",
"0.72385246",
"0.719495",
"0.71441513",
"0.707477",
"0.70693994",
"0.7056442",
"0.7035036",
"0.70341986",
"0.7016352",
"0.6976485",
"0.67912096",
"0.67444164",
"0.6676432",
"0.665227",
"0.6646635",
"0.6602849",
"0.6536662",
"0.64861965",
"0.64388156",
"0.64007455",
"0.6323913",
"0.63009036",
"0.6256869",
"0.6240407",
"0.62376666",
"0.6222901",
"0.6208255",
"0.62013274",
"0.6156205",
"0.613983",
"0.6134036",
"0.61178166",
"0.6089745",
"0.60868543",
"0.6073232",
"0.6060141",
"0.6043752",
"0.604002",
"0.6032593",
"0.60192305",
"0.5999666",
"0.5995504",
"0.59882987",
"0.5983634",
"0.5976644",
"0.597619",
"0.5948688",
"0.5939331",
"0.5939331",
"0.5932",
"0.5916062",
"0.59079605",
"0.5905578",
"0.5905474",
"0.5896585",
"0.58867854",
"0.58737445",
"0.58725965",
"0.5866068",
"0.5858465",
"0.5854737",
"0.58458847",
"0.58417267",
"0.5825658",
"0.5804847",
"0.58006805",
"0.5799358",
"0.57953024",
"0.57918555",
"0.57908213",
"0.57908213",
"0.578362",
"0.5777998",
"0.5774353",
"0.577285",
"0.5742275",
"0.5736722",
"0.57348764",
"0.57330567",
"0.5730273"
]
| 0.7157839 | 22 |
Send partnership accepted email. | @PostMapping(value = "/mailservice/email/partnership/valid/{organisationName}/{emailAddress}")
ResponseEntity<Void> sendPartnershipAcceptedEmail(@PathVariable("organisationName") String organisationName, @PathVariable("emailAddress") String emailAddress); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendInterest(View view) {\n Log.i(\"Send email\", \"\");\n String[] TO = {agentEmail};\n String[] CC = {\"\"};\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);\n emailIntent.putExtra(Intent.EXTRA_CC, CC);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"You have an interested buyer for \" + globals.chosenProp);\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"User: \" + globals.loggedUser + \" has shown interest in \" + globals.chosenProp + \". Respond to them via email to arrange a showing or to exchange information.\");\n\n try {\n startActivity(Intent.createChooser(emailIntent, \"Send mail...\"));\n finish();\n Log.i(\"Finished sending email...\", \"\");\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(property_view_standard.this, \"There is no email client installed.\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }",
"private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n\tpublic void notifyAcceptedOffer(Role role, String managerName,\n\t\t\tString managerEmail) {\n\t\tSystem.out.println(\"Send an email to \" + managerEmail + \" because \" + role.getTitle() + \" Accepted\");\n\t\t\n\t}",
"@Override\n public void sendEmail() {\n return;\n }",
"@Jpf.Action(forwards = { @Jpf.Forward(name = \"success\", action=\"verVacantes\"), @Jpf.Forward(name = \"start\", path = \"index.jsp\")})\n\tpublic Forward enviarVacantePorMail() throws Exception{\n\t\tForward forward = new Forward(\"success\");\n\t\t\n\t\tif(getCurrentUser()==null){\n\t\t\tforward = new Forward(\"start\");\n\t\t\tforward.addActionOutput(\"errors\", \"Necesitas registrarte para enviarte una vacante.\");\n\t\t\treturn forward;\n\t\t}else{\n\t\t\tif(getCurrentUser().getCurriculum()!=null){\n\t\t\t\tString nombreCompleto = getCurrentUser().getName()+\" \"+getCurrentUser().getLastname()+\" \"+getCurrentUser().getSecondlastname();\n\t\t\t\tif(getRequest().getParameter(\"idVacante\")!= null){\n\t\t\t\t\tUcmUtil.sendMailVacante(nombreCompleto, getCurrentUser().getEmail(), \n\t\t\t\t\t\t\tgetRequest().getParameter(\"idVacante\"), getRequest());\n\t\t\t\t\t\n\t\t\t\t\tforward.addActionOutput(\"mailOk\", getRequest().getParameter(\"idVacante\"));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tforward = new Forward(\"success\");\n\t\t\t\tforward.addActionOutput(\"errors\", \"Necesitas Actualizar tu Curiculum antes de enviarte una vacante\");\n\t\t\t}\n\t\t}\n\t\treturn forward;\n\t}",
"public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }",
"SendEmail() {\t\n\t}",
"private void sendApprovedEmail(ConnectionVO cvo, CampaignMessageSender emailer, RezDoxNotifier notifyUtil) {\n\t\tMap<String, Object> dataMap = new HashMap<>();\n\t\tMap<String, String> emailMap = new HashMap<>();\n\n\t\t// Pass the email map for the user we want to send the email/notification to\n\t\taddUserToMap(cvo.getSenderMemberId(), cvo.getSenderBusinessId(), \"senderName\", dataMap, emailMap);\n\t\taddUserToMap(cvo.getRecipientMemberId(), cvo.getRecipientBusinessId(), \"recipientName\", dataMap, null);\n\n\t\t//conver the map to a list\n\t\tList<EmailRecipientVO> rcpts = new ArrayList<>();\n\t\tfor (Map.Entry<String, String> entry : emailMap.entrySet())\n\t\t\trcpts.add(new EmailRecipientVO(entry.getKey(), entry.getValue(), EmailRecipientVO.TO));\n\n\t\t// Send the email notification\n\t\temailer.sendMessage(dataMap, rcpts, RezDoxUtils.EmailSlug.CONNECTION_APPROVED.name());\n\n\t\t// Add the browser notification\n\t\tString notifyProfileId = emailMap.entrySet().iterator().next().getKey();\n\t\tnotifyUtil.send(RezDoxNotifier.Message.CONNECTION_APPRVD, dataMap, null, notifyProfileId);\n\t}",
"void send(String emailName);",
"void sendMail(){\r\n String mailBody = getString(R.string.congratz_message, String.valueOf(playerScore));\r\n mailBody += \" \" + playerRating;\r\n\r\n Intent intent = new Intent(Intent.ACTION_SENDTO);\r\n intent.setData(Uri.parse(\"mailto:\")); //only email apps should handle this\r\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Sports Trivia score for \" + getPlayerName());\r\n intent.putExtra(intent.EXTRA_TEXT, mailBody);\r\n\r\n if(intent.resolveActivity(getPackageManager())!=null){\r\n startActivity(intent);\r\n }\r\n }",
"public void posaljiPromenaInformacijaMail(final PartnerDto partner, final PartnerAkcije partnerAkcije) {\n log.info(\"Slanje mejla za promenu informacije {} od strane korisnika {}\", partnerAkcije.getOpis(), partner.getNaziv());\n\n final var naslov = \"Obavestenje o promeni informacija korisnika\";\n final var template = \"promenaInformacija\";\n\n final Context context = popuniKontextRegistracionogEmaila(partner, partnerAkcije);\n sendEmail.pripremiIPosaljiEmail(Email.RADOV_EMAIL, naslov, template, context);\n\n }",
"public boolean enviarMailConfirmacion(Agente agente, Usuario usuario){\n\n try {\n\n //seteamos el asunto\n// message.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n//\n// //seteamos el mensaje que vamos a enviar\n// message.setContent(\"<html>\\n\" +\n// \"<body>\\n\" +\n// \"\\n Hola, para poder activar la cuenta haga click en el siguiente link ----> \" +\n// \"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\n// \"\\\">\\n\" +\n// \"Activar cuenta</a>\\n\" +\n// \"\\n\" +\n// \"En caso de no poder pegue en el browser lo siguiente\\n \"+\n// new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n// \"&hash=\"+usuario.getUsuarioclave()+\"\\n\"+\n// \"Muchas Gracias\"+\n// \"</body>\\n\" +\n// \"</html>\", \"text/html\");\n// //colocamos la direccion de donde enviamos el correo\n// Address address = new InternetAddress(agente.getEmail());\n// message.setFrom(address);\n// //Colocamos la direccion de la persona a enviar\n// Address send = new InternetAddress(agente.getOtroemail(),false);\n// message.addRecipient(Message.RecipientType.TO,send);\n// message.addRecipient(Message.RecipientType.BCC, new InternetAddress( agente.getOtroemail()));\n// //la persona que envia con la validacion de su cuenta.\n// Transport trans = session.getTransport(\"smtp\");\n// //Aca se autentifica que la direccion de la persona que envia sea válida\n// //trans.connect();\n// trans.connect(\"[email protected]\",\"sgap*9812\");\n// trans.sendMessage(message,message.getAllRecipients());\n// trans.close();\n Email email = new Email();\n email.setFromAddress(\"Nortia UNDEC\", \"[email protected]\");\n email.addRecipient(agente.getApellido(), agente.getEmail(), RecipientType.TO);\n email.addRecipient(agente.getApellido(), agente.getOtroemail(), RecipientType.BCC);\n email.setTextHTML(\"Hola \"+usuario.getUsuarionombre()+\", <br /> para poder activar la cuenta haga click en el siguiente link ----> \" +\n\"<a href=\\\"\"+new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n \"&hash=\"+usuario.getUsuarioclave() +\n\"\\\"> Activar cuenta </a> <br />\"+\n \n\"En caso de no poder pegue en el browser lo siguiente \" +\n new URLWEB().getAbsoluteApplicationUrl()+\"/activarcuenta.xhtml?username=\"+usuario.getUsuarionombre()+\n\"&hash=\"+usuario.getUsuarioclave()+\"<br />\" +\n\"Muchas Gracias\");\n email.setSubject(\"UNDEC - Activar Cuenta Nortia UNDEC\");\n \n // or:\n new Mailer(\"localhost\", 25, \"[email protected]\", \"sgap*9812\").sendMail(email);\n } catch (Exception ex) {\n\n ex.printStackTrace();\n //Si el correo tiene algun error lo retornaremos aca\n JsfUtil.addErrorMessage(ex,\"No se pudo crear el Usuario\");\n\n return false;\n\n// } catch (MalformedURLException ex) {\n// Logger.getLogger(EnviarMail.class.getName()).log(Level.SEVERE, null, ex);\n// return false;\n }\n //Correo tuvo exito dara una salida en este punto indicando que si se envio\n return true;\n \n }",
"public void sendEmail(View view) {\n //deckare enauk addresses\n String[] addresses = {\n \"[email protected]\",\n \"[email protected]\"\n };\n String subject = \"Coffee Order\";\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, addresses);\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, message);\n// if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n// }\n }",
"@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}",
"public void sendDiscrepancyEmail() throws Exception;",
"public void sendEmail(String recipient,String password);",
"void send(Email email);",
"public boolean approvePotentialDeliveryMan(final Parcel parcel, final String email);",
"public void sendMailAction(View view) {\n String name = getPlayerName();\n String message = createShortQuizSummary(finalScore, name);\n String mailto = \"mailto:\" + getPlayerMail() +\n \"?cc=\" + \"\" +\n \"&subject=\" + Uri.encode(name + getResources().getString(R.string.score_in_quiz)) +\n \"&body=\" + Uri.encode(message);\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(mailto));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n }\n\n }",
"@Override\n public void sendEmail(String newRecipient) {\n System.out.println(\"Email sent to _\" \n + newRecipient\n + \"_ Invalid RECIPIENTS\");\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"public void sendEmail(Author authorObject);",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"public void notifyCreation() {\n Player targetPlayer = this.getTarget().getPlayerReference(Player.class),\n senderPlayer = this.getToTeleport().getPlayerReference(Player.class);\n\n if (targetPlayer == null || senderPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_SENT\").sendTo(senderPlayer);\n\n if (this.type == TeleportType.TPA) {\n MainData.getIns().getMessageManager().getMessage(\"TPA_REQUESTED\")\n .format(\"%player%\", getToTeleport().getNameWithPrefix()).sendTo(targetPlayer);\n } else if (this.type == TeleportType.TPHERE) {\n MainData.getIns().getMessageManager().getMessage(\"TPHERE_REQUESTED\")\n .format(\"%player%\", getToTeleport().getNameWithPrefix()).sendTo(targetPlayer);\n }\n\n }",
"public abstract void sendConfirmationMessage(Player player);",
"void sendEmail(Task task, String taskTypeName, String plantName);",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\r\n\t\t\t{\n\t\t\t\tif (!internetConnection)\r\n\t\t\t\t{\r\n\t\t\t\t\tshowNoConnectionDialog();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\t// Get phoneId to attend in message\r\n\t\t\t TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);\r\n\t\t\t\tString phoneId = telephonyManager.getDeviceId(); \r\n\t\t\t \r\n\t\t\t\t// Send mail without blocking the GUI\r\n\t\t\t\tif (dataModel == null)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSendEmail sendEmail = new SendEmail(\"[email protected]\", \r\n\t\t\t \t\t\t\t\t\t\t\t\t\"AskMeAgain\", \r\n\t\t\t \t\t\t\t\t\t\t\t\tdataModel.getRecipientMail(),\r\n\t\t\t \t\t\t\t\t\t\t\t\tgetResources().getString(R.string.fogot_id_mail_subject),\r\n\t\t\t \t\t\t\t\t\t\t\t\tgetResources().getString(R.string.fogot_id_mail_text) + \" \" + phoneId + \".\");\r\n\t\t\t sendEmail.execute();\r\n\t\t\t}",
"public void submitOrder(View view) {\n\n String order = gatherOrder(view);\n\n Uri uri = Uri.parse(\"mailto:\" + \"[email protected]\")\n .buildUpon()\n .appendQueryParameter(\"to\", \"[email protected]\")\n .appendQueryParameter(\"subject\", \"Your pizza order\")\n .appendQueryParameter(\"body\", order)\n .build();\n\n sendEmail(uri, \"Select Email\");\n }",
"public void enviarCorreo() {\n try {\n\n // propuestaConvenio = propuestaConvenioService.getByIDPropuestaWithPersona(propuestaConvenio.getIdPropuesta());\n propuestaConvenio = propuestaConvenioService.getByIDPropuestaWithPersona(propuestaConvenio.getIdPropuesta());\n\n // Create data for template\n Map<String, Object> templateData = new HashMap<String, Object>();\n templateData.put(\"subJect\", \"Cambio Vigencia de Convenio\");\n\n //templateData.put(\"nameTemplate\", \"propuesta_convenio_mailTemplat.txt\");\n templateData.put(\"nameTemplate\", \"vigencia_convenio_mailTemplat.xhtml\");\n templateData.put(\"propuestaConvenio\", propuestaConvenio);\n templateData.put(\"propuestaConvenioTemp\", propuestaConvenioTemp);\n\n for (PersonaPropuesta p : propuestaConvenio.getPersonaPropuestaList()) {\n templateData.put(\"setToMail\", p.getPersona().getEmailPersona());\n mailService.sendEmailMap(templateData);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void sendApplicationApprovedMail(Application application, Applicant applicant, String message) throws MessagingException {\r\n\t\tMailSender ms = new MailSender(\"smtp.gmail.com\", 465, \"[email protected]\", \"fairsailtest\");\r\n\t\t\r\n\t\tms.sendMessage(\"[email protected]\", \"Application was approved\", \"Your application \" + application.getApplicationId() + \" has been successfully approved \\n\\n\" + message, applicant.getEmailAddress());\r\n\t}",
"public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }",
"private void sendEmailWithoutChooser() {\r\n String email = AppConstants.ADMIN_EMAIL;\r\n String feedback_msg = \"\";\r\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\r\n String aEmailList[] = {email};\r\n emailIntent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\r\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);\r\n emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(\"<i><font color='your color'>\" + feedback_msg + \"</font></i>\"));\r\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Request help from Customer Support\");\r\n\r\n PackageManager packageManager = getApplicationContext().getPackageManager();\r\n boolean isIntentSafe = emailIntent.resolveActivity(packageManager) != null;\r\n if (isIntentSafe) {\r\n startActivity(emailIntent);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Email app is not found\", Toast.LENGTH_SHORT).show();\r\n }\r\n }",
"private void enviarCorreo(Soda soda){\n String[] TO = {soda.getEmail()};\n Uri uri = Uri.parse(\"mailto:\" + soda.getEmail())\n .buildUpon()\n .appendQueryParameter(\"subject\", \"Consulta Soda Universitaria\")\n .appendQueryParameter(\"body\", \"Enviado desde SodaUniversitaria.\")\n .build();\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, uri);\n emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);\n startActivity(Intent.createChooser(emailIntent, \"Enviar vía correo\"));\n }",
"public void EnvoyerEmailSurveillant(Utilisateur user) {\n\t\t\t\t MimeMessage mimeMessage = mailSender.createMimeMessage(); \n\t\t\t try {\n\t\t\t MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true);\n\t\t\t mimeMessageHelper.setSubject(\"Compte Surveillant \");\n\t\t\t mimeMessageHelper.setFrom(\"[email protected]\");\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t\t String url =\"scolarity.dpc.com.tn\";\n\t\t String content = \"Bonjour Mr ( Mmme), \" + user.getNom()+\" + \" + user.getPrenom()\n\t\t + \", votre nom d'utilisateur par la platforme scolarity est : \\n \" + user.getUsername() +\" \\n\"+\"et votre mot de passe est : \\n\"+ user.getPassword()+\"\\n\"+\"vous pouvez accéder au espace surveillant via l'adresse suivante : \\n\"+url+\"\\n\"+\" \\n Cordialement.\";\n\t\t System.out.println(content);\n\n\t\t\t mimeMessageHelper.setTo(user.getEmail());\n\t\t mimeMessageHelper.setText(content);\n\t\t // Add a resource as an attachment\n\t\t mimeMessageHelper.setText(\"<html><body><p>\" + content + \"</p> <img src=\\\"http://207.180.211.158:/logodpc.bmp\\\" width=\\\"50\\\" alt=\\\"Apen\\\"></body></html>\", true);\n\n\t\t\t \n\t\t\t \n\t\t\t mailSender.send(mimeMessageHelper.getMimeMessage());\n\t\t\t } catch (MessagingException e) {\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t\t\t\t\n\t\t\t}",
"private void orderMoreFromSupplier() {\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.setData(Uri.parse(\"mailTo:\"));\n emailIntent.setType(\"text/plain\");\n emailIntent.putExtra(Intent.EXTRA_EMAIL, mSupplierEmail);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Order \" + mBrandEditText.getText().toString()\n + \" \" + mModelEditText.getText().toString());\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"Please ship a supply of \" + mQuantityEditText.getText().toString());\n\n if (emailIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(emailIntent);\n }\n }",
"private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }",
"public void refundConfirmation(String fName, String customerEmail, double price, int numOfTicket, int bookingNo){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t Session session = Session.getDefaultInstance(props, \r\n\t new Authenticator(){\r\n\t protected PasswordAuthentication getPasswordAuthentication() {\r\n\t return new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t \r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n\t \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n\t InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"Refund Confirmation - Receipt\");\r\n\t \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \\t\"+fName + \"!\\n\\n\"\r\n\t + \"You requested on booking #\" +bookingNo+\".\"\r\n\t + \"Your \"+numOfTicket+\" ticket(s)\"\r\n\t + \" will be refunded within few days.\\n\"\r\n\t + \"Total refund price: $\"+price+\"\\n\"\r\n\t + \"Thank you for using our service!\\n\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n\t \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t System.out.println(\"Error: \" + e);\r\n\t }\r\n\t \r\n\t }",
"public void sendReceipt(String fName, String customerEmail,int bookingNo, int numTicks,String movieTitle, String date, String timeslot){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t\t Session session = Session.getDefaultInstance(props, \r\n\t\t\t\t new Authenticator(){\r\n\t\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t \t\t\treturn new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t String slot;\r\n\t if(timeslot.equals(\"A\")) {\r\n\t\t slot = \"1 PM\";\r\n\t }else if(timeslot.equals(\"B\")) {\r\n\t\t slot = \"4 PM\";\r\n\t }else if(timeslot.equals(\"C\")) {\r\n\t\t slot = \"7 PM\";\r\n\t }else if(timeslot.equals(\"D\")) {\r\n\t\t slot = \"10 PM\";\r\n\t }else {\r\n\t\t slot = slot = \"Houston, we have a problem.\";\r\n\t }\r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"Order Confirmation - Receipt\");\r\n \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \\t\"+fName + \"!\\n\\nHere's your most recent booking for:\\t\"+movieTitle\r\n\t\t\t +\"\\nOrder Number:\\t\" + bookingNo\r\n\t\t\t +\"\\nNumber of tickets purchased:\\t\"+numTicks\r\n\t\t\t +\"\\nDate of showing:\\t\"+ date +\" at:\"+ slot\r\n\t\t\t +\"\\n\\n\\nThank you for choosing :^U\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t\t System.out.println(\"Error: \" + e);\r\n\t }\r\n }",
"public void waitingForPartner();",
"private void sendEmail() {\n String email = emailInput.getText().toString();\n String title = titleInput.getText().toString();\n String message = messageInput.getText().toString();\n\n if(email.isEmpty() ||title.isEmpty() ||message.isEmpty()){\n Toast.makeText(this, R.string.field_not_empty, Toast.LENGTH_SHORT).show();\n return;\n }\n\n if(!checkEmailPattern(email)){\n Toast.makeText(this,R.string.invalid_email,Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{email});\n emailIntent.putExtra(Intent.EXTRA_CC, new String[]{CC_CUPIC, CC_BAOTIC});\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, title);\n emailIntent.putExtra(Intent.EXTRA_TEXT, message);\n\n emailIntent.setType(\"message/rfc822\");\n\n try{\n startActivity(Intent.createChooser(emailIntent,\"\"));\n finish();\n }catch(ActivityNotFoundException ex){\n Toast.makeText(this,R.string.cant_send,Toast.LENGTH_SHORT).show();\n }\n }",
"public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }",
"@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}",
"public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"[email protected]\";\r\n\t\t\t\tString emailSubject = edittextEmailSubject.getText().toString();\r\n\t\t\t\tString emailText = edittextEmailText.getText().toString();\r\n\t\t\t\tString emailAddressList[] = {emailAddress};\r\n\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND); \r\n\t\t\t\tintent.setType(\"plain/text\");\r\n\t\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, emailAddressList); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, emailSubject); \r\n\t\t\t\tintent.putExtra(Intent.EXTRA_TEXT, emailText); \r\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Choice App to send email:\"));\r\n\t\t\t}",
"public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }",
"@Override\n\tpublic void showMailDialog() {\n\t\t\n\t}",
"private void enviarEmailAutor(final AutorProyectoDTO autorProyectoDTO) {\r\n FacesContext facesContext = FacesContext.getCurrentInstance();\r\n ResourceBundle bundle = facesContext.getApplication().getResourceBundle(facesContext, \"msg\");\r\n String mensaje = (bundle.getString(\"estimado\") + \": \"\r\n + autorProyectoDTO.getPersona().getNombres() + \" \" + autorProyectoDTO.getPersona().getApellidos() + \" \"\r\n + bundle.getString(\"asignacion_director_autor_a\") + \": \" + autorProyectoDTO.getAutorProyecto().getProyectoId().getTemaActual() + \" \"\r\n + \"\" + bundle.getString(\"asignacion_director_autor_b\") + \": \" + sessionProyecto.getProyectoSeleccionado().getDirectores());\r\n enviarEmail(autorProyectoDTO.getPersona(), mensaje);\r\n }",
"public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void sendEmail(String result){\n \t\n \tIntent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n \temailIntent.setType(\"plain/text\");\n \t\n \t//emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n \t/* Fill it with Data */\n \temailIntent.setType(\"plain/text\");\n \t//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"[email protected]\"});\n \temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Here's the code from FlipSHA\");\n \temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"After the coin is flipped and\" +\n \t\t\t\" you don't believe in your friend, check this hash \"+ result);\n\n \t/* Send it off to the Activity-Chooser */\n \tstartActivity(emailIntent); \n }",
"@Override\n\tpublic void sendRequest(String userEmail, String recipientEmail) {\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"insert into friendship (user_id_1, user_id_2, status) values (?, ?, ?)\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\n\t\t\tpstmt.setString(1, userEmail);\n\t\t\tpstmt.setString(2, recipientEmail);\n\t\t\tpstmt.setString(3, Constants.PENDING);\n\n\t\t\tpstmt.executeUpdate();\n\t\t} catch(SQLException sqlex) {\n\t\t\tsqlex.printStackTrace();\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionFactory.closeResources(set, pstmt, conn);\n\t\t}\n\n\t}",
"public void clickSendInvitationButton() throws Exception {\n\t\twdriver.findElement(By.xpath(locators.clickSendInvitationButton)).click();\n\t}",
"void createInvitation(OutgoingEMailInvitation invitation, Boolean notify);",
"public void sendMail(RegistrationData d) {}",
"private void send(String successMessage) throws MessagingException, IOException{\n disableDraft = true;\n \n List<Contact> recipientContacts = selected.getReceiverContacts();\n List<ContactGroup> recipientGroups = selected.getReceiverContactGroups();\n if(recipientContacts!=null){\n for (int i = 0; i < recipientContacts.size(); i++) {\n sendMessage(recipientContacts.get(i).getEmail(),\n selected.getSubject(),\n selected.getContent(),\n successMessage);\n }\n }\n \n if(recipientGroups!=null){\n for (int i = 0; i < recipientGroups.size(); i++) {\n List<Contact> tempContacts = recipientGroups.get(i).getContacts();\n for (int j = 0; j < tempContacts.size(); j++) {\n sendMessage(tempContacts.get(i).getEmail(),\n selected.getSubject(),\n selected.getContent(),\n successMessage);\n \n }\n }\n }\n //Reinicializamos valores\n contacts = new ArrayList<>();\n groups = new ArrayList<>();\n selected = new Email();\n disableDraft = false;\n }",
"public static void sendMail (String email, String name, String surname) throws AddressException,MessagingException {\n \n Properties props = new Properties();\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n\n Session session = Session.getDefaultInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\",\"progettoweb2018\");\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(email));\n message.setSubject(\"Benvenuto in Friday!\");\n message.setText(name+\" \"+surname+\", Benvenuto in Friday!\"+\n \"\\n\\n link di conferma : http://localhost:8080/Friday/confirmRegistrationServlet?email=\"+email);\n\n Transport.send(message);\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void mailPromo(String fname, String customerEmail, String promo, double discount){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t Session session = Session.getDefaultInstance(props, \r\n\t new Authenticator(){\r\n\t protected PasswordAuthentication getPasswordAuthentication() {\r\n\t return new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t \r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n\t \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n\t InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"New Promotion!\");\r\n\t \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \"+fname + \"!\\n\\n\"\r\n\t + \"We are emailing you to inform you that there is a new promotion.\\n\"\r\n\t + \"Use code -- \"+promo+\" -- to save $\" + discount + \"0 on your next purchase on CINEMA4050!\\n\"\r\n\t + \"Thank you for using our service!\\n\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n\t \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t System.out.println(\"Error: \" + e);\r\n\t }\r\n\t \r\n\t }",
"public void sendPrank(Prank p) throws IOException {\n if(p.getSender() == null || p.getReceivers().size() == 0){\n LOG.info(\"a prank need a sender and at least a receiver\\n\");\n return;\n }\n connect();\n\n sendMessage(SMTPProtocol.CMD_MAIL_FROM + p.getSender().getAddress() + \"\\r\\n\");\n if(!checkSuccess(br.readLine())) return;\n\n for (Person person : p.getReceivers()){\n sendMessage(SMTPProtocol.CMD_RCPT_TO + person.getAddress() + \"\\r\\n\");\n if(!checkSuccess(br.readLine())) return;\n }\n\n for (Person person : p.getReceiversCC()){\n sendMessage(SMTPProtocol.CMD_RCPT_TO + person.getAddress() + \"\\r\\n\");\n if(!checkSuccess(br.readLine())) return;\n }\n\n for (Person person : p.getReceiversBCC()){\n sendMessage(SMTPProtocol.CMD_RCPT_TO + person.getAddress() + \"\\r\\n\");\n if(!checkSuccess(br.readLine())) return;\n }\n\n sendMessage(SMTPProtocol.CMD_DATA);\n LOG.info(br.readLine());\n\n sendMessage(\"From: \" + p.getSender().getAddress() + \"\\r\\n\");\n sendMessage(\"To: \" + p.getReceivers().get(0).getAddress());\n for (int i = 1; i < p.getReceivers().size(); i++){\n sendMessage(\", \" + p.getReceivers().get(i).getAddress());\n }\n sendMessage(\"\\r\\n\");\n\n if(!p.getReceiversCC().isEmpty()) {\n sendMessage(\"Cc: \" + p.getReceiversCC().get(0).getAddress());\n for (int i = 1; i < p.getReceiversCC().size(); i++) {\n sendMessage(\", \" + p.getReceiversCC().get(i).getAddress());\n }\n sendMessage(\"\\r\\n\");\n }\n\n if(!p.getReceiversBCC().isEmpty()) {\n sendMessage(\"Bcc: \" + p.getReceiversBCC().get(0).getAddress());\n for (int i = 1; i < p.getReceiversBCC().size(); i++) {\n sendMessage(\", \" + p.getReceiversBCC().get(i).getAddress());\n }\n sendMessage(\"\\r\\n\");\n }\n\n sendMessage(p.getMessage() + SMTPProtocol.CMD_DATA_END);\n\n LOG.info(br.readLine());\n\n disconnect();\n\n }",
"private void processEmails(ConnectionVO cvo, ActionRequest req) throws ActionException {\n\t\tCampaignMessageSender emailer = new CampaignMessageSender(getAttributes());\n\t\tSiteVO site = (SiteVO) req.getAttribute(Constants.SITE_DATA);\n\t\tRezDoxNotifier notifyUtil = new RezDoxNotifier(site, getDBConnection(), getCustomSchema());\n\n\t\t//not yet approved and we have either a sending member or sending business.\n\t\tif (cvo.getApprovedFlag() == 0 && (!StringUtil.isEmpty(cvo.getSenderMemberId()) || !StringUtil.isEmpty(cvo.getSenderBusinessId()))) {\n\t\t\tsendRequestEmail(cvo, emailer, notifyUtil);\n\n\t\t} else if (cvo.getApprovedFlag() == 1) {\n\t\t\tsendApprovedEmail(cvo, emailer, notifyUtil);\n\n\t\t\t//award 25 points to the members involved in this transaction - we do not award points to businesses.\n\t\t\tRewardsAction ra = new RewardsAction(getDBConnection(), getAttributes());\n\t\t\tif (!StringUtil.isEmpty(cvo.getSenderMemberId()))\n\t\t\t\tra.applyReward(Reward.CONNECT.name(), cvo.getSenderMemberId(), req);\n\t\t\tif (!StringUtil.isEmpty(cvo.getRecipientMemberId()))\n\t\t\t\tra.applyReward(Reward.CONNECT.name(), cvo.getRecipientMemberId(), req);\n\t\t}\n\t}",
"public Boolean sendEmail(String sender, String receiver, String subject, String body) throws Exception;",
"@Override\n\tpublic void sendOrderConfirmationHtmlEmail(Order order) {\n\t\t\n\t}",
"void addPotentialDeliveryMan(final Parcel parcel, final String email);",
"public void submitOrder(View view) {\n EditText nameField = findViewById(R.id.userName);\n String name = nameField.getText().toString();\n\n CheckBox cramBox =findViewById(R.id.cream);\n boolean hascheamBox= cramBox.isChecked();\n\n CheckBox chocoBox=findViewById(R.id.chocolate);\n boolean haschoco=chocoBox.isChecked();\n\n int price = calculatePrice(hascheamBox,haschoco);\n String priceMessage =createOrderSummery(name, price, hascheamBox,haschoco);\n\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, email);\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Coffee Order for \"+name);\n intent.putExtra(Intent.EXTRA_TEXT, priceMessage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n\n displayMessage(priceMessage);\n\n\n\n\n\n }",
"public boolean accept(Set<Recipient> recipients, SmtpMessage message);",
"@Override\n public String sendMeetingEmail(String ssoRequester, MeetingBeanExtended thisMeeting) {\n String skipLine = \"\\n\";\n // Build the e-mail subject\n StringBuffer mailSubject = new StringBuffer(\"EFS DealPRO: \");\n mailSubject.append(thisMeeting.getMeetingBean().getMeetingTypeName());\n mailSubject.append(\" meeting(s) have been finalized for \");\n mailSubject.append(Constants.getSDateFormat().format(thisMeeting.getStartDateTime()));\n // Build the mail body\n StringBuffer mailBody = new StringBuffer();\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"Conference Room : \" + thisMeeting.getMeetingLocation() + skipLine);\n mailBody.append(\"Chairperson : \" + thisMeeting.getChairPersonName() + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"Call-in Number(s)/Comments: \" + skipLine);\n mailBody.append(\" \" + thisMeeting.getMeetingDescription());\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" Segment Deal Name Time\" + skipLine);\n mailBody.append(\" ____________________________________________________________________________________________________\" + skipLine);\n mailBody.append(\" \" + skipLine);\n if (thisMeeting.getMeetingBean().getMeetingAgendas() != null && !thisMeeting.getMeetingBean().getMeetingAgendas().isEmpty()) {\n for (MeetingAgendaBeanExtended mA : thisMeeting.getMeetingBean().getMeetingAgendas()) {\n\n String dSegment = mA.getDeal() != null ? mA.getDeal().getSegment().getParentSegmentName() : \"\";\n String dName = mA.getDeal() == null ? mA.getPqrOtherDetail() : !mA.getDeal().isRestricted() ? mA.getDealName() : (mA.getDeal().getDisplayName() != null ? mA.getDeal().getDisplayName() : \"Restricted Deal\") + \" | RESTRICTED\";\n String aTime = Constants.getTDateFormat().format(mA.getStartDateTime()) + \" \" + mA.getAgendaDescription();\n String aDocuments = \"\";\n if (mA.getAgendaDocumentsId() == null || mA.getAgendaDocumentsId().isEmpty()) {\n aDocuments = \"\\n Paperwork will be distributed at the meeting.\\n\";\n } else {\n aDocuments = \"\\n\";\n }\n\n mailBody.append(\" \" + dSegment);\n if (dSegment.length() > 0) {\n for (int i = dSegment.length() + 1; i < 37; i++) {\n mailBody.append(\" \");\n }\n } else {\n mailBody.append(\"\\t\\t\\t\\t\\t\\t \");\n }\n mailBody.append(dName);\n for (int i = dName.length() + 1; i < 37; i++) {\n mailBody.append(\" \");\n }\n mailBody.append(aTime);\n mailBody.append(aDocuments);\n }\n }\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"\\n\\nTo access DealPRO, please navigate to \" + getSparkURL() + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\" \" + skipLine);\n mailBody.append(\"This is an auto-generated e-mail. Please do not reply.\" + skipLine);\n\n if (sendMail(ssoRequester + \"@mail.ad.ge.com\", mailSubject.toString(), mailBody.toString(), true)) {\n StringBuffer sbMail = new StringBuffer(\"Meeting notification e-mail sent.\");\n sendMail(getEmailList(), \"-CC-\" + mailSubject.toString(), mailBody.toString(), true);\n return sbMail.toString();\n } else {\n return \"Failed to send the meeting notification e-mail; Please contact the DEALPRO Team at <a href='mailto:@SPARK Help'>@SPARK Help</a>.\";\n }\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(EmailSender.fr.getText().equals(\"\"))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(EmailSender.ES,\"Please Enter A Valid Email Address To Send From!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(EmailSender.t.getText().equals(\"\"))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Please Enter A Valid Email Address To Send To!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(EmailSender.subj.getText().contentEquals(\"\"))\r\n\t\t{\r\n\t\t\tint b = JOptionPane.showConfirmDialog(EmailSender.ES, \"Are you sure you want to send this without a subject?\");\r\n\t\t\t\r\n\t\t\tif(b==0)\r\n\t\t\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Email Sent\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint a = JOptionPane.showConfirmDialog(EmailSender.ES, \"Are you sure you want to send?\");\r\n\t\tif(a==0)// If yes button is pressed a is 0\r\n\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Email Sent\");\r\n\t\t\r\n\t\t\r\n\t}",
"public void sendButtonClick(View v){\n String title = getText(R.string.mail_title).toString();\n String mailto = \"mailto:\" + emailAdress;\n Intent openEmailApp = new Intent(Intent.ACTION_SENDTO);\n openEmailApp.setType(\"plain/text\");\n openEmailApp.setData(Uri.parse(mailto));\n openEmailApp.putExtra(Intent.EXTRA_SUBJECT, userName + title);\n openEmailApp.putExtra(Intent.EXTRA_TEXT, evaluationMessage);\n startActivity(openEmailApp);\n }",
"public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public void submitOrder(View view) {\n /* invoke email app and include order summary in the mail body */\n final Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, Constants.NEW_ORDER_SUBJECT);\n emailIntent.putExtra(Intent.EXTRA_TEXT, getOrderSummary());\n if (emailIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(emailIntent);\n }\n }",
"public void sendNewOrderAdmin(){\n final String username = \"[email protected]\";\n\n // change accordingly\n final String password = \"dcc59vez\";\n\n // Get system properties\n Properties props = new Properties();\n\n // enable authentication\n props.put(\"mail.smtp.auth\", \"true\");\n\n // enable STARTTLS\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n\n // Setup mail server\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\n // TLS Port\n props.put(\"mail.smtp.port\", \"587\");\n\n // creating Session instance referenced to\n // Authenticator object to pass in\n // Session.getInstance argument\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n //override the getPasswordAuthentication method\n protected PasswordAuthentication\n getPasswordAuthentication() {\n\n return new PasswordAuthentication(username,\n password);\n }\n });\n\n try {\n // compose the message\n // javax.mail.internet.MimeMessage class is\n // mostly used for abstraction.\n Message message = new MimeMessage(session);\n\n // header field of the header.\n message.setFrom(new InternetAddress(\"BallonkompagnietIVS\"));\n\n //Set admin email\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"New order on website\");\n\n message.setText(\"New order placed on your website\");\n\n //send Message\n Transport.send(message);\n System.out.println(\"Email sent to admin - New order\");\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendEmail(\n ActionRequest actionRequest, ActionResponse actionResponse)\n throws IOException, PortletException {\n }",
"void send(String emailName, Map model, EmailPreparator emailPreparator);",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendEmail();\n\t\t\t}",
"public boolean send() {\n\t\tAuthenticator auth = new Authenticator() {\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(props.getProperty(MAIL_USER), props.getProperty(MAIL_PASSWORD));\n\t\t\t}\n\t\t};\n\n\t\tSession session = Session.getInstance(props, auth);\n\n\t\ttry {\n\t\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t\tif (props.containsKey(MAIL_FROM)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_FROM));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addFrom(addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_REPLY_TO)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_REPLY_TO));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.setReplyTo(addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_TO)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_TO));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.TO, addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_CC)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_CC));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.CC, addresses);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (props.containsKey(MAIL_BCC)) {\n\t\t\t\tInternetAddress[] addresses = InternetAddress.parse(props.getProperty(MAIL_BCC));\n\n\t\t\t\tif ((addresses != null) && (addresses.length > 0)) {\n\t\t\t\t\tmessage.addRecipients(Message.RecipientType.BCC, addresses);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (props.containsKey(\"EPCX_ABSTIME\")) {\n\t\t\t\tmessage.setSentDate(Util.getDateFromAbstime(props.getProperty(\"EPCX_ABSTIME\")));\n\n\t\t\t} else if (props.containsKey(\"mail.sentdate\")) {\n\t\t\t\tmessage.setSentDate(Util.getDateFromAbstime(props.getProperty(\"mail.sentdate\")));\n\t\t\t}\n\n\t\t\t// Set subject.\n\t\t\t// Doc for setSubject method says the application must ensure that the subject does not contain any line breaks.\n\t\t\t// Need to default subject to UTF-8 as properties are Java strings, otherwise the setSubject method defaults to platform default encoding that may be an EBCDIC codepage. \n\t\t\tmessage.setSubject(props.getProperty(MAIL_SUBJECT).replaceAll(\"[\\\\n\\\\r]+\",\" \"), \"UTF-8\");\n\n\t\t\t// Create a multipart message to hold the message parts\n\t\t\tMultipart mimeMultipart = new MimeMultipart();\n\n\t\t\t// Add the mail body (content) as a message part.\n\t\t\taddBody(mimeMultipart);\n\n\t\t\t// Add the attachments as message parts to the mail.\n\t\t\taddAttachments(mimeMultipart);\n\n\t\t\tif (mimeMultipart.getCount() == 0) {\n\t\t\t\t// JavaMail requires at least a blank string to be set as the content, otherwise it will throw an exception when sending.\n\t\t\t\tmessage.setText(\"\");\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Add the multipart to the message.\n\t\t\t\tmessage.setContent(mimeMultipart);\n\t\t\t}\n\n\t\t\t// Add todays date\n\t\t\tmessage.setSentDate(new Date());\n\n\t\t\t// Change the default classloader to work around issues documented\n\t\t\t// at site\n\t\t\t// http://blog.hpxn.net/2009/12/02/tomcat-java-6-and-javamail-cant-load-dch/\n\t\t\tClassLoader cl = Thread.currentThread().getContextClassLoader();\n\t\t\ttry {\n\t\t\t\tThread.currentThread().setContextClassLoader(Transport.class.getClassLoader());\n\n\t\t\t\t// Send the message. Note this calls the saveChanges method on\n\t\t\t\t// the message before sending.\n\t\t\t\tTransport.send(message);\n\n\t\t\t} finally {\n\t\t\t\tThread.currentThread().setContextClassLoader(cl);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.warning(Emit.messages.getString(\"MailLogFail\") + \" - \" + getMessageSummary());\n\n\t\t\te.printStackTrace();\n\n\t\t\treturn false;\n\t\t}\n\n\t\tif (logger.isLoggable(Level.INFO)) {\n\t\t\tlogger.info(Emit.messages.getString(\"MailLogSuccess\") + \" - \" + getMessageSummary());\n\t\t}\n\n\t\treturn true;\n\t}",
"public void SendEmail(){\n //Dummy Email Bot\n String from = \"[email protected]\";\n String emailPW = \"thisiscz2002\";\n\n try{\n Session session = Session.getDefaultInstance(init(), new Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(from, emailPW);\n }});\n\n // -- Create a new message --\n Message msg = new MimeMessage(session);\n\n // -- Set the FROM and fields --\n msg.setFrom(new InternetAddress(from));\n msg.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(getRecipientEmail(),false));\n\n LocalDateTime myDateObj = LocalDateTime.now();\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n String formattedDate = myDateObj.format(myFormatObj);\n\n msg.setSubject(getEmailSubject());\n msg.setText(getMessage());\n msg.setSentDate(new Date());\n Transport.send(msg);\n\n //System.out.println(formattedDate + \" - Message sent.\");\n }catch (MessagingException e){\n System.out.println(\"Error: \" + e);\n }\n }",
"public void tradeEmail(Trade model, Activity view) {\n String subject = \"SSCTE Trade Completed\" ;\n String body = model.getOwner().getName() + \" has accepted a trade with \" + model.getBorrower().getName() + \".\\n\" +\n \"+=================================+\\n\" +\n \" \" + model.getOwner().getName() + \"'s cards traded:\\n\";\n for (Card card : model.getOwnerList()) {\n body = body + \" [\" + card.getQuantity() + \"] \" + card.getName() + \"\\n\";\n }\n body = body +\n \"+=====================+\\n\" +\n \" \" + model.getBorrower().getName() + \"'s cards traded:\\n\";\n for (Card card : model.getBorrowList()) {\n body = body + \" [\" + card.getQuantity() + \"] \" + card.getName() + \"\\n\";\n }\n body = body +\n \"+=================================+\\n\\n\" +\n \" [Add some comments for continuing trade here]\";\n\n\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\",model.getOwner().getEmail() + \",\"+model.getBorrower().getEmail(), null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n view.startActivity(Intent.createChooser(emailIntent, \"Send email...\"));\n }",
"private void sendProofEmail(String proof){\n \t\n \tIntent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n \temailIntent.setType(\"plain/text\");\n \t\n \t//emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n \t/* Fill it with Data */\n \temailIntent.setType(\"plain/text\");\n \t//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"[email protected]\"});\n \temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Here's the code from FlipSHA\");\n \temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"Looks like you don't believe your friend,\" +\n \t\t\t\" do a SHA1 of this string to see the proof \"+proof);\n \tstartActivity(emailIntent); \n }",
"public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\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 }",
"public void resendVerificationEmail(){\n progressDialog.setMessage(\"Please wait...\");\n progressDialog.show();\n mAuth.getCurrentUser().sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n alertDialogBuilderSentSuccessMessage(SignInActivity.this);\n Toast.makeText(SignInActivity.this,\"Sent email successfully.\",Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(SignInActivity.this,task.getException().getLocalizedMessage(),Toast.LENGTH_LONG).show();\n }\n\n progressDialog.dismiss();\n }\n });\n }",
"public SPResponse sendCalInvite(User user, Object[] params) {\n final SPResponse resp = new SPResponse();\n \n MeetingInviteForm inviteForm = (MeetingInviteForm) params[1];\n \n // String actionPlanId = (String) params[0];\n // Assert.hasText(actionPlanId, \"Organization Plan id is required.\");\n // ActionPlanDao actionPlan = getActionPlan(actionPlanId);\n // String stepId = (String) params[2];\n // String uid = (String) params[3];\n // if (StringUtils.isNotBlank(uid)) {\n // if (!actionPlan.validateUID(uid)) {\n // throw new DashboardRedirectException(MessagesHelper.getMessage(\"service.growl.message5\"));\n // }\n // }\n \n // validate the form\n inviteForm.validate();\n \n // add the current user to the to list\n inviteForm.getTo().add(user.getEmail());\n \n // get the parameters from the form and send the invite\n EmailParams emailParams = inviteForm.getEmailParam();\n emailParams.addParam(Constants.PARAM_FIRSTNAME, user.getFirstName());\n emailParams.addParam(Constants.PARAM_LASTNAME, user.getLastName());\n \n gateway.sendMessage(emailParams);\n \n return resp.isSuccess();\n }",
"@POST\n\t@Path(\"/SendFriendRequestService\")\n\tpublic String sendFriendRequest(@FormParam(\"recieverMail\") String recieverMail)\n\t{\n\t\tJSONObject object = new JSONObject();\n\t\tUserEntity user = UserEntity.currentUser;\n\t\tif(user == null)\n\t\t\tobject.put(\"Status\", \"Failed\");\n\t\telse\n\t\t{\n\t\t\tobject.put(\"Status\", \"OK\");\n\t\t\tuser.saveFriendRequest(recieverMail);\n\t\t}\n\t\treturn object.toString();\n\t}",
"private void sendInvitationLink(){\n String invitationLink = mInvitationURL;\n String msg = \"Давайте вместе сыграем в Мюнхгаузена! Используйте мою реферерную ссылку: \"\n + invitationLink;\n\n System.out.println(msg);\n\n NSMutableArray<NSString> array = new NSMutableArray<NSString>();\n array.add(msg);\n\n UIActivityViewController activityViewController = new UIActivityViewController(array,null);\n UIViewController currentViewController = UIApplication.getSharedApplication().getKeyWindow().getRootViewController();\n\n if (isIpad()) {\n UIPopoverPresentationController popoverController = activityViewController.getPopoverPresentationController();\n popoverController.setSourceRect(new CGRect(UIScreen.getMainScreen().getBounds().getWidth()/2, UIScreen.getMainScreen().getBounds().getHeight()/2,0,0));\n popoverController.setSourceView(activityViewController.getView());\n popoverController.setPermittedArrowDirections(new UIPopoverArrowDirection(0));\n }\n\n currentViewController.presentViewController(activityViewController,true,null);\n\n// if (!MFMailComposeViewController.canSendMail()){\n// System.out.println(\"Device can't send email\")\n// return;\n// }\n//\n// MFMailComposeViewController mailer = new MFMailComposeViewController();\n// mailer.setMailComposeDelegate(new MFMailComposeViewControllerDelegate() {\n// @Override\n// public void didFinish(MFMailComposeViewController mfMailComposeViewController, MFMailComposeResult mfMailComposeResult, NSError nsError) {\n//\n// }\n// });\n//\n// mailer.setSubject(\"Invitation\");\n// mailer.setMessageBody(msg, true);\n// mailer.presentViewController(mailer, true, null);\n\n }",
"@Override\n public void onClick(View arg0) {\n Intent email = new Intent(Intent.ACTION_SEND);\n // Put essentials like email address, subject & body text\n email.putExtra(Intent.EXTRA_EMAIL,\n new String[]{\"[email protected]\"});\n email.putExtra(Intent.EXTRA_SUBJECT,\n \"Daily Grades\");\n //email.putExtra(Intent.EXTRA_TEXT, mydb.getDailyGrade().toString());\n // This MIME type indicates email\n email.setType(\"message/rfc822\");\n // createChooser shows user a list of app that can handle\n // this MIME type, which is, email\n startActivity(Intent.createChooser(email,\n \"Choose an Email client :\"));\n\n }",
"public void sendMail(String to, String cc, String bcc, String subject, String text);",
"public void sendOrder(View view) {\n Intent gIntent = new Intent();\n gIntent.setAction(Intent.ACTION_SENDTO);\n gIntent.setData(Uri.parse(\"mailto:\"));\n gIntent.putExtra(Intent.EXTRA_SUBJECT, \"StarBox order for \" + order.getCustomerName());\n gIntent.putExtra(Intent.EXTRA_TEXT, getOrderDetails(order));\n gIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n startActivity(gIntent);\n }",
"@Override\n public ExtensionResult doSendMail(ExtensionRequest extensionRequest) {\n String recipient = getEasyMapValueByName(extensionRequest, \"recipient\");\n MailModel mailModel = new MailModel(recipient, \"3Dolphins SDK Mail Subject\", \"3Dolphins SDK mail content\");\n String sendMailResult = svcMailService.sendMail(mailModel);\n\n Map<String, String> output = new HashMap<>();\n output.put(OUTPUT, sendMailResult);\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }",
"public static void sendInvitationMail(String toMail, Group group){\n String invitationText = \"Hello!\\n\\n You have been invited to join a group on Household Manager. \" +\n \"Login to accept the invitation \\n\" +\n \"Invited to group: \"+group.getName()+ \"\\n Invited by: \"+group.getAdmin();\n sendMail(toMail,invitationText);\n }",
"public void sendMail(String to, String cc, String subject, String text);",
"public void sendMail() {\n String email = emailID.getText().toString();\n String subject = \"BlueBucket One-Time OTP\";\n otp=generateOTP();\n String message = \"\"+otp;\n\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }",
"public static void sendEmail(EmailSendable e, String message){\n\t\tSystem.out.println(\"Email-a bidali da: \"+message);\r\n\t}",
"public void sendMail(View view) {\n\n contentManager = new ContentManager(this);\n contentManager.sendEmail(helpBinding.mail.getText().toString(), new EmailListener() {\n @Override\n public void onSuccess(EmailResponse emailResponse) {\n showToast(emailResponse.getMessage());\n }\n\n @Override\n public void onFailed(String message, int responseCode) {\n showToast(message);\n }\n\n @Override\n public void startLoading(String requestId) {\n showToast(getString(R.string.sendEmail));\n }\n\n @Override\n public void endLoading(String requestId) {\n\n }\n });\n }",
"private void enviarEmailDirector(final DirectorProyectoDTO directorProyectoDTO) {\r\n FacesContext facesContext = FacesContext.getCurrentInstance();\r\n ResourceBundle bundle = facesContext.getApplication().getResourceBundle(facesContext, \"msg\");\r\n String mensaje = (bundle.getString(\"estimado\") + \": \"\r\n + directorProyectoDTO.getDirectorDTO().getPersona().getNombres() + \" \" + directorProyectoDTO.getDirectorDTO().getPersona().getApellidos() + \" \"\r\n + bundle.getString(\"asignacion_director\") + \": \" + directorProyectoDTO.getDirectorProyecto().getProyectoId().getTemaActual());\r\n enviarEmail(directorProyectoDTO.getDirectorDTO().getPersona(), mensaje);\r\n }",
"private void sendFeedback() {\n final String technicalInfo = commonsLogSender.getExtraInfo();\n\n final Intent feedbackIntent = new Intent(Intent.ACTION_SENDTO);\n feedbackIntent.setType(\"message/rfc822\");\n feedbackIntent.setData(Uri.parse(\"mailto:\"));\n feedbackIntent.putExtra(Intent.EXTRA_EMAIL,\n new String[]{CommonsApplication.FEEDBACK_EMAIL});\n feedbackIntent.putExtra(Intent.EXTRA_SUBJECT,\n CommonsApplication.FEEDBACK_EMAIL_SUBJECT);\n feedbackIntent.putExtra(Intent.EXTRA_TEXT, String.format(\n \"\\n\\n%s\\n%s\", CommonsApplication.FEEDBACK_EMAIL_TEMPLATE_HEADER, technicalInfo));\n try {\n startActivity(feedbackIntent);\n } catch (final ActivityNotFoundException e) {\n Toast.makeText(getActivity(), R.string.no_email_client, Toast.LENGTH_SHORT).show();\n }\n }",
"public int sendShipperOrderNotificationEmail(int customerID, int orderId, int confirmationNumber, Collection<OrderedProduct> orderedProducts, BigDecimal orderAmount, Date orderDate) {\r\n // SMTP Setting\r\n String smtpServer = \"smtp.gmail.com\";\r\n\r\n //Email Addresses\r\n String from = \"[email protected]\";\r\n String shipperEmail = null;\r\n \r\n // Look for the activated shipper and obtain thier email aaddress\r\n List<Shipper> shipperList = shipperFacade.findAll();\r\n for(Shipper shipper : shipperList){\r\n boolean shipperActivated = shipper.getShipperActivated();\r\n \r\n if(shipperActivated){\r\n shipperEmail = shipper.getShipperEmail().trim();\r\n }\r\n }\r\n \r\n String to = shipperEmail;\r\n String bcc = \"[email protected]\";\r\n\r\n //Message\r\n String subject = \"New Order for Collection: \" + orderId + \"|\" + \"Confirmation Number: \" + confirmationNumber;\r\n String message = \"Please liaise with the listed suppliers below to collect the orders for the subject customers.\";\r\n String productDetailsAndAssociatedSupplierDetails = null;\r\n\r\n for (OrderedProduct op : orderedProducts) {\r\n String productName = op.getProduct().getProductName();\r\n int productQuantity = op.getOrderedProductQuantity();\r\n String supplierName = op.getProduct().getSupplierID().getSupplierCompanyName();\r\n String supplierPhone = op.getProduct().getSupplierID().getSupplierPhone();\r\n String supplierEmail = op.getProduct().getSupplierID().getSupplierEmail();\r\n productDetailsAndAssociatedSupplierDetails += \"<tr><td>\" + productName + \"</td><td>\" + productQuantity + \"</td><td>\" + supplierName + \"</td><td>\" + supplierPhone + \"</td><td>\" + supplierEmail + \"</td></tr>\";\r\n }\r\n\r\n String messageBody\r\n = \"<table>\"\r\n + \"<tr><td colspan=5>\" + message + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Order Number:</td><td>\" + orderId + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Confirmation Number:</td><td>\" + confirmationNumber + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Amount:</td><td>\" + orderAmount + \"</td></tr>\"\r\n + \"<tr><td colspan=5>Order Date:</td><td>\" + orderDate + \"</td></tr>\"\r\n + \"<tr><td>Product Name</td><td>Quantity</td><td>Suplier Name</td><td>Supplier Phone</td><td>Supplier Email</td></tr>\"\r\n + productDetailsAndAssociatedSupplierDetails\r\n + \"</table>\";\r\n\r\n try {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.transport.protocol\", \"smtp\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", smtpServer);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n Authenticator authenticator = new SMTPAuthenticator();\r\n Session session = Session.getInstance(properties, authenticator);\r\n\r\n // Create a new messageBody\r\n Message mimeMessage = new MimeMessage(session);\r\n\r\n // Set the FROM and TO fields\r\n mimeMessage.setFrom(new InternetAddress(from));\r\n mimeMessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\r\n mimeMessage.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc, false)); // Change this to be hard-coded Peripherals email\r\n mimeMessage.setSubject(subject);\r\n mimeMessage.setContent(messageBody, \"text/html; charset=utf-8\");\r\n\r\n // Set some other header information\r\n mimeMessage.setHeader(\"Order Confirmation\", \"Peripherals\");\r\n mimeMessage.setSentDate(new Date());\r\n\r\n // Send the messageBody\r\n Transport.send(mimeMessage);\r\n System.out.println(\"Message sent successfully!\");\r\n return 0;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Exception \" + ex);\r\n return -1;\r\n }\r\n }",
"public void handleSend(ActionEvent actionEvent) {\r\n String to=textFieldTo.getText();\r\n try{\r\n Long idto = Long.parseLong(to);\r\n\r\n FriendshipRequest request = new FriendshipRequest();\r\n Tuple<Long,Long> f = new Tuple<>(user.getId(), idto);\r\n request.setId(f);\r\n\r\n service.addRequest(request);\r\n showMessage(Alert.AlertType.CONFIRMATION,\"Request sent!\",\"Request is now pending!\");\r\n\r\n textFieldTo.clear();\r\n\r\n\r\n }catch(NumberFormatException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }catch (ServiceException exception){\r\n showMessage(Alert.AlertType.ERROR,\"Error\",exception.toString());\r\n }\r\n }",
"public void acceptInvite(UserBean possibleOpponent, int possiblePiece)\n\t{\n\t\tthis.opponent = possibleOpponent;\n\t\tthis.piece = possiblePiece;\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tcontrolSocket = new Socket(opponent.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"ACCEPT\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\n\t\t\tSystem.out.println(\"Accepting invite\");\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\n\t\t\tcontrolSocket.close();\n\t\t\tthis.haveGame = true;\n\t\t\tSystem.out.println(\"Starting game\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"void transferOwnerShipToUser(List<String> list, String toEmail);",
"public void emailResult(View view) {\n // Getting username only\n Intent myIntent = getIntent();\n String nameOfUser = myIntent.getStringExtra(\"EditTextValue\");\n\n String result = \"Name: \" + nameOfUser;\n result += \"\\nMy score: \" + score;\n\n // Create a new intent to send information to any mailing app\n Intent myResult = new Intent(Intent.ACTION_SENDTO);\n myResult.setData(Uri.parse(\"mailto:\"));\n myResult.putExtra(Intent.EXTRA_SUBJECT, \"Quiz result for \" + nameOfUser);\n myResult.putExtra(Intent.EXTRA_TEXT, result);\n if (myResult.resolveActivity(getPackageManager()) != null) {\n startActivity(myResult);\n }\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"[email protected]\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\r\n\r\n\t\t\t\t\t\ti.setType(\"message/rfc822\");\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * i.setClassName(\"com.google.android.gm\",\r\n\t\t\t\t\t\t * \"com.google.android.gm.ComposeActivityGmail\");\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ti.putExtra(Intent.EXTRA_EMAIL,\r\n\t\t\t\t\t\t\t\tnew String[] { \"[email protected]\" });\r\n\r\n\t\t\t\t\t\tstartActivity(i);\r\n\r\n\t\t\t\t\t}"
]
| [
"0.61897856",
"0.6114528",
"0.6076542",
"0.5940547",
"0.5866539",
"0.58498776",
"0.5800888",
"0.57736677",
"0.5725755",
"0.5709316",
"0.57044643",
"0.5670396",
"0.5659876",
"0.56586117",
"0.5634021",
"0.5627309",
"0.56034184",
"0.5595605",
"0.5593002",
"0.5575637",
"0.55584174",
"0.5551834",
"0.55483645",
"0.55411386",
"0.55317724",
"0.5527938",
"0.552737",
"0.551458",
"0.5514334",
"0.5506428",
"0.5481928",
"0.5461735",
"0.5442753",
"0.54206705",
"0.54169154",
"0.5416392",
"0.54104394",
"0.5408503",
"0.54081106",
"0.54040754",
"0.5403347",
"0.54025275",
"0.53990155",
"0.539423",
"0.53909254",
"0.5389993",
"0.5371501",
"0.5355316",
"0.5354694",
"0.53456485",
"0.533803",
"0.5334916",
"0.5332209",
"0.5325784",
"0.53155446",
"0.52969235",
"0.5292128",
"0.5283131",
"0.52682716",
"0.52616006",
"0.52600455",
"0.5256728",
"0.52541125",
"0.52500916",
"0.5247717",
"0.5240135",
"0.5239083",
"0.52365035",
"0.52354306",
"0.5229237",
"0.52150977",
"0.52140963",
"0.5212728",
"0.5202215",
"0.5201126",
"0.519525",
"0.5193567",
"0.5191162",
"0.5187167",
"0.51581454",
"0.51536137",
"0.5153258",
"0.5152604",
"0.5142527",
"0.51424855",
"0.5141989",
"0.5140113",
"0.5137776",
"0.5137366",
"0.51359034",
"0.5134782",
"0.5134432",
"0.5130308",
"0.51280737",
"0.5121939",
"0.5121336",
"0.511836",
"0.51006335",
"0.50993824",
"0.50993824"
]
| 0.71320987 | 0 |
end region Get set | public int getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"boolean getSet();",
"public int getSet() {\n return set;\n }",
"public Region getRegion() {\n return region;\n }",
"public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"@Test\n public void testSetAndGetRegion() {\n System.out.println(\"getRegion\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getRegion());\n String expResult = \"region\";\n instance.setRegion(expResult);\n String result = instance.getRegion();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }",
"IRegion getRegion();",
"public EnumRegion getRegion()\n {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return this.region;\n }",
"public abstract java.util.Set getLocations();",
"int getRegionValue();",
"public String getRegion() {\n return region;\n }",
"public void testGetSetRegion() {\n exp = new Experiment(\"10\");\n GeoLocation location = new GeoLocation(50.0, 40.0);\n exp.setRegion(location);\n assertEquals(\"get/setRegion does not work\", 50.0, exp.getRegion().getLat());\n assertEquals(\"get/setRegion does not work\", 40.0, exp.getRegion().getLon());\n }",
"public TypeOfRegion getRegion();",
"public abstract String getSetSpec();",
"SetCommand getSetl();",
"public void setRegion(String region);",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"public IntSet getBackingSet() {\r\n return S;\r\n }",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"Region region();",
"Region region();",
"Region region();",
"Region region();",
"public Regions getRegions () {\n return this.regions;\n }",
"public void setdat()\n {\n }",
"public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}",
"public void setC_Region_ID (int C_Region_ID);",
"Set<T> get(Location loc);",
"public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}",
"public java.lang.String getREGION()\n {\n \n return __REGION;\n }",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public List<Region> gets() {\r\n return rdao.getAllRegion();\r\n }",
"protected HashSet getNoAccess(){\n return tester.noAccess;\n }",
"@Override\r\n\tpublic void getROI() {\n\t\t\r\n\t}",
"public String getRegionno() {\n return regionno;\n }",
"@Override\n\tpublic ArregloDinamico<V> valueSet() {\n\t\tArregloDinamico<V> respuesta = new ArregloDinamico<V>(N);\n\t\tfor(int i = 0; i<M ; i++)\n\t\t{\n\t\t\tArregloDinamico<NodoTabla<K,V>> temporal = map.darElemento(i).getAll();\n\t\t\tfor(int j=0 ; j < temporal.size() ; j++)\n\t\t\t{\n\t\t\t\tNodoTabla<K,V> elemento = temporal.darElemento(j);\n\t\t\t\tif(elemento != null && elemento.darLlave() != null)\n\t\t\t\t\trespuesta.addLast(elemento.darValor());\t\n\t\t\t}\n\t\t}\n\t\treturn respuesta;\n\t}",
"public int getRegionid() {\n\treturn regionid;\n}",
"public double GetSetpoint() {\n\t\treturn msc.GetSetpoint();\n\t}",
"public int getRegionid() {\n return regionid;\n }",
"String setValue();",
"public int getItuRegion() {\n return localItuRegion;\n }",
"public Set<T> getSet () {\r\n\t\treturn _set;\r\n\t}",
"HSet entrySet();",
"boolean isCustomiseSet();",
"public String getSetSpec();",
"private void t3() {\n // write to a super region, read from a subregion: only keep write\n writeProtected();\n readDefault();\n }",
"public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}",
"private void setSet(int[] set){\n this.set = set;\n }",
"private void t2() {\n // read from a super region, write to a sub region: keep both\n readProtected();\n writeDefault();\n }",
"public String getCodeset ()\r\n\t{\r\n\t\treturn codeset;\r\n\t}",
"private Set<T> getMemory() { return null; }",
"public int getRegionValue() {\n return region_;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setREGION(java.lang.String value)\n {\n if ((__REGION == null) != (value == null) || (value != null && ! value.equals(__REGION)))\n {\n _isDirty = true;\n }\n __REGION = value;\n }",
"public String getRegionNo() {\n return regionNo;\n }",
"public Set getReturned() {\n return returned;\n }",
"public Object set (int i, Object t)\r\n {\r\n }",
"public String[][] getBonusRegion(String endPath) {\r\n\t\tString[][] bonusRegion = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\tbonusRegion = cittaXml.getBonusRegion(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\tbonusRegion = null;\r\n\t\t}\r\n\r\n\t\treturn bonusRegion;// ritorna un array con i bonus della regione\r\n\t}",
"public void setRegion(Region region) {\n this.region = region;\n }",
"interface HyperRowSet extends RowSet {\n SelectionVector4 getSv4();\n }",
"public SetOfRanges() {\n RangeSet = new Vector();\n }",
"public void dataWasSet();",
"Set createSet();",
"@Test\n public void testSetAndGetResourceId() {\n System.out.println(\"getResourceId\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getResourceId());\n String expResult = \"resourceId\";\n instance.setResourceId(expResult);\n String result = instance.getResourceId();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getPageUrl());\n assertNull(instance.getRegion());\n assertNull(instance.getText());\n }",
"public RegionLocations get(byte[] startKey) {\n return cache.get(startKey);\n }",
"public java.util.Enumeration getRegion() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getRegion();\n }",
"public String getRegionid() {\n return regionid;\n }",
"public Set<Entry> getSet() {\n Set<Entry> litSet = this.litRegister;\n return litSet;\n }",
"@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}",
"public CoordinateRadius getRegion();",
"public int getC_Region_ID();",
"public static Set<String> getRegionCodeSet() {\n // The capacity is set to 321 as there are 241 different entries,\n // and this offers a load factor of roughly 0.75.\n Set<String> regionCodeSet = new HashSet<String>(321);\n\n regionCodeSet.add(\"AC\");\n regionCodeSet.add(\"AD\");\n regionCodeSet.add(\"AE\");\n regionCodeSet.add(\"AF\");\n regionCodeSet.add(\"AG\");\n regionCodeSet.add(\"AI\");\n regionCodeSet.add(\"AL\");\n regionCodeSet.add(\"AM\");\n regionCodeSet.add(\"AO\");\n regionCodeSet.add(\"AR\");\n regionCodeSet.add(\"AS\");\n regionCodeSet.add(\"AT\");\n regionCodeSet.add(\"AU\");\n regionCodeSet.add(\"AW\");\n regionCodeSet.add(\"AX\");\n regionCodeSet.add(\"AZ\");\n regionCodeSet.add(\"BA\");\n regionCodeSet.add(\"BB\");\n regionCodeSet.add(\"BD\");\n regionCodeSet.add(\"BE\");\n regionCodeSet.add(\"BF\");\n regionCodeSet.add(\"BG\");\n regionCodeSet.add(\"BH\");\n regionCodeSet.add(\"BI\");\n regionCodeSet.add(\"BJ\");\n regionCodeSet.add(\"BL\");\n regionCodeSet.add(\"BM\");\n regionCodeSet.add(\"BN\");\n regionCodeSet.add(\"BO\");\n regionCodeSet.add(\"BQ\");\n regionCodeSet.add(\"BR\");\n regionCodeSet.add(\"BS\");\n regionCodeSet.add(\"BT\");\n regionCodeSet.add(\"BW\");\n regionCodeSet.add(\"BY\");\n regionCodeSet.add(\"BZ\");\n regionCodeSet.add(\"CA\");\n regionCodeSet.add(\"CC\");\n regionCodeSet.add(\"CD\");\n regionCodeSet.add(\"CF\");\n regionCodeSet.add(\"CG\");\n regionCodeSet.add(\"CH\");\n regionCodeSet.add(\"CI\");\n regionCodeSet.add(\"CK\");\n regionCodeSet.add(\"CL\");\n regionCodeSet.add(\"CM\");\n regionCodeSet.add(\"CN\");\n regionCodeSet.add(\"CO\");\n regionCodeSet.add(\"CR\");\n regionCodeSet.add(\"CU\");\n regionCodeSet.add(\"CV\");\n regionCodeSet.add(\"CW\");\n regionCodeSet.add(\"CX\");\n regionCodeSet.add(\"CY\");\n regionCodeSet.add(\"CZ\");\n regionCodeSet.add(\"DE\");\n regionCodeSet.add(\"DJ\");\n regionCodeSet.add(\"DK\");\n regionCodeSet.add(\"DM\");\n regionCodeSet.add(\"DO\");\n regionCodeSet.add(\"DZ\");\n regionCodeSet.add(\"EC\");\n regionCodeSet.add(\"EE\");\n regionCodeSet.add(\"EG\");\n regionCodeSet.add(\"EH\");\n regionCodeSet.add(\"ER\");\n regionCodeSet.add(\"ES\");\n regionCodeSet.add(\"ET\");\n regionCodeSet.add(\"FI\");\n regionCodeSet.add(\"FJ\");\n regionCodeSet.add(\"FK\");\n regionCodeSet.add(\"FM\");\n regionCodeSet.add(\"FO\");\n regionCodeSet.add(\"FR\");\n regionCodeSet.add(\"GA\");\n regionCodeSet.add(\"GB\");\n regionCodeSet.add(\"GD\");\n regionCodeSet.add(\"GE\");\n regionCodeSet.add(\"GF\");\n regionCodeSet.add(\"GG\");\n regionCodeSet.add(\"GH\");\n regionCodeSet.add(\"GI\");\n regionCodeSet.add(\"GL\");\n regionCodeSet.add(\"GM\");\n regionCodeSet.add(\"GN\");\n regionCodeSet.add(\"GP\");\n regionCodeSet.add(\"GR\");\n regionCodeSet.add(\"GT\");\n regionCodeSet.add(\"GU\");\n regionCodeSet.add(\"GW\");\n regionCodeSet.add(\"GY\");\n regionCodeSet.add(\"HK\");\n regionCodeSet.add(\"HN\");\n regionCodeSet.add(\"HR\");\n regionCodeSet.add(\"HT\");\n regionCodeSet.add(\"HU\");\n regionCodeSet.add(\"ID\");\n regionCodeSet.add(\"IE\");\n regionCodeSet.add(\"IL\");\n regionCodeSet.add(\"IM\");\n regionCodeSet.add(\"IN\");\n regionCodeSet.add(\"IQ\");\n regionCodeSet.add(\"IR\");\n regionCodeSet.add(\"IS\");\n regionCodeSet.add(\"IT\");\n regionCodeSet.add(\"JE\");\n regionCodeSet.add(\"JM\");\n regionCodeSet.add(\"JO\");\n regionCodeSet.add(\"JP\");\n regionCodeSet.add(\"KE\");\n regionCodeSet.add(\"KG\");\n regionCodeSet.add(\"KH\");\n regionCodeSet.add(\"KI\");\n regionCodeSet.add(\"KM\");\n regionCodeSet.add(\"KN\");\n regionCodeSet.add(\"KP\");\n regionCodeSet.add(\"KR\");\n regionCodeSet.add(\"KW\");\n regionCodeSet.add(\"KY\");\n regionCodeSet.add(\"KZ\");\n regionCodeSet.add(\"LA\");\n regionCodeSet.add(\"LB\");\n regionCodeSet.add(\"LC\");\n regionCodeSet.add(\"LI\");\n regionCodeSet.add(\"LK\");\n regionCodeSet.add(\"LR\");\n regionCodeSet.add(\"LS\");\n regionCodeSet.add(\"LT\");\n regionCodeSet.add(\"LU\");\n regionCodeSet.add(\"LV\");\n regionCodeSet.add(\"LY\");\n regionCodeSet.add(\"MA\");\n regionCodeSet.add(\"MC\");\n regionCodeSet.add(\"MD\");\n regionCodeSet.add(\"ME\");\n regionCodeSet.add(\"MF\");\n regionCodeSet.add(\"MG\");\n regionCodeSet.add(\"MH\");\n regionCodeSet.add(\"MK\");\n regionCodeSet.add(\"ML\");\n regionCodeSet.add(\"MM\");\n regionCodeSet.add(\"MN\");\n regionCodeSet.add(\"MO\");\n regionCodeSet.add(\"MP\");\n regionCodeSet.add(\"MQ\");\n regionCodeSet.add(\"MR\");\n regionCodeSet.add(\"MS\");\n regionCodeSet.add(\"MT\");\n regionCodeSet.add(\"MU\");\n regionCodeSet.add(\"MV\");\n regionCodeSet.add(\"MW\");\n regionCodeSet.add(\"MX\");\n regionCodeSet.add(\"MY\");\n regionCodeSet.add(\"MZ\");\n regionCodeSet.add(\"NA\");\n regionCodeSet.add(\"NC\");\n regionCodeSet.add(\"NE\");\n regionCodeSet.add(\"NF\");\n regionCodeSet.add(\"NG\");\n regionCodeSet.add(\"NI\");\n regionCodeSet.add(\"NL\");\n regionCodeSet.add(\"NO\");\n regionCodeSet.add(\"NP\");\n regionCodeSet.add(\"NR\");\n regionCodeSet.add(\"NU\");\n regionCodeSet.add(\"NZ\");\n regionCodeSet.add(\"OM\");\n regionCodeSet.add(\"PA\");\n regionCodeSet.add(\"PE\");\n regionCodeSet.add(\"PF\");\n regionCodeSet.add(\"PG\");\n regionCodeSet.add(\"PH\");\n regionCodeSet.add(\"PK\");\n regionCodeSet.add(\"PL\");\n regionCodeSet.add(\"PM\");\n regionCodeSet.add(\"PR\");\n regionCodeSet.add(\"PS\");\n regionCodeSet.add(\"PT\");\n regionCodeSet.add(\"PW\");\n regionCodeSet.add(\"PY\");\n regionCodeSet.add(\"QA\");\n regionCodeSet.add(\"RE\");\n regionCodeSet.add(\"RO\");\n regionCodeSet.add(\"RS\");\n regionCodeSet.add(\"RU\");\n regionCodeSet.add(\"RW\");\n regionCodeSet.add(\"SA\");\n regionCodeSet.add(\"SB\");\n regionCodeSet.add(\"SC\");\n regionCodeSet.add(\"SD\");\n regionCodeSet.add(\"SE\");\n regionCodeSet.add(\"SG\");\n regionCodeSet.add(\"SH\");\n regionCodeSet.add(\"SI\");\n regionCodeSet.add(\"SJ\");\n regionCodeSet.add(\"SK\");\n regionCodeSet.add(\"SL\");\n regionCodeSet.add(\"SM\");\n regionCodeSet.add(\"SN\");\n regionCodeSet.add(\"SO\");\n regionCodeSet.add(\"SR\");\n regionCodeSet.add(\"SS\");\n regionCodeSet.add(\"ST\");\n regionCodeSet.add(\"SV\");\n regionCodeSet.add(\"SX\");\n regionCodeSet.add(\"SY\");\n regionCodeSet.add(\"SZ\");\n regionCodeSet.add(\"TC\");\n regionCodeSet.add(\"TD\");\n regionCodeSet.add(\"TG\");\n regionCodeSet.add(\"TH\");\n regionCodeSet.add(\"TJ\");\n regionCodeSet.add(\"TL\");\n regionCodeSet.add(\"TM\");\n regionCodeSet.add(\"TN\");\n regionCodeSet.add(\"TO\");\n regionCodeSet.add(\"TR\");\n regionCodeSet.add(\"TT\");\n regionCodeSet.add(\"TV\");\n regionCodeSet.add(\"TW\");\n regionCodeSet.add(\"TZ\");\n regionCodeSet.add(\"UA\");\n regionCodeSet.add(\"UG\");\n regionCodeSet.add(\"US\");\n regionCodeSet.add(\"UY\");\n regionCodeSet.add(\"UZ\");\n regionCodeSet.add(\"VA\");\n regionCodeSet.add(\"VC\");\n regionCodeSet.add(\"VE\");\n regionCodeSet.add(\"VG\");\n regionCodeSet.add(\"VI\");\n regionCodeSet.add(\"VN\");\n regionCodeSet.add(\"VU\");\n regionCodeSet.add(\"WF\");\n regionCodeSet.add(\"WS\");\n regionCodeSet.add(\"XK\");\n regionCodeSet.add(\"YE\");\n regionCodeSet.add(\"YT\");\n regionCodeSet.add(\"ZA\");\n regionCodeSet.add(\"ZM\");\n regionCodeSet.add(\"ZW\");\n\n return regionCodeSet;\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public float getSetpoint() {\r\n return m_setpoint;\r\n }",
"public void get() {\n }",
"private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}",
"public long getRegionId() {\r\n return regionId;\r\n }",
"public WorldRegions getWorldRegions()\n {\n return regions;\n }",
"public Set method_54(Object var1) {\n return this.method_1560(var1);\n }",
"HSet keySet();",
"@IID(\"{5BBB5891-F832-497C-BE92-76A242809E67}\")\npublic interface ITestSet extends com.gc.IBaseFieldEx {\n\t// Methods:\n\t/**\n\t * <p>\n\t * The test set name.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Name\"\n\t * </p>\n\t * \n\t * @return Returns a value of type java.lang.String\n\t */\n\n\t@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tjava.lang.String name();\n\n\t/**\n\t * <p>\n\t * The test set name.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Name\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory java.lang.String parameter.\n\t */\n\n\t@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid name(java.lang.String pVal);\n\n\t/**\n\t * <p>\n\t * The test set status.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Status\"\n\t * </p>\n\t * \n\t * @return Returns a value of type java.lang.String\n\t */\n\n\t@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tjava.lang.String status();\n\n\t/**\n\t * <p>\n\t * The test set status.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Status\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory java.lang.String parameter.\n\t */\n\n\t@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(26)\n\tvoid status(java.lang.String pVal);\n\n\t/**\n\t * <p>\n\t * The factory object for the current test set.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"TSTestFactory\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(16)\n\t// = 0x10. The runtime will prefer the VTID if present\n\t@VTID(27)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject tsTestFactory();\n\n\t/**\n\t * <p>\n\t * The condition factory object for the current test set.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"ConditionFactory\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(17)\n\t// = 0x11. The runtime will prefer the VTID if present\n\t@VTID(28)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject conditionFactory();\n\n\t/**\n\t * <p>\n\t * Builds test set summary graph.\n\t * </p>\n\t * \n\t * @param xAxisField\n\t * Optional parameter. Default value is \"\"\n\t * @param groupByField\n\t * Optional parameter. Default value is \"\"\n\t * @param sumOfField\n\t * Optional parameter. Default value is \"\"\n\t * @param maxCols\n\t * Optional parameter. Default value is 0\n\t * @param filter\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param forceRefresh\n\t * Optional parameter. Default value is false\n\t * @param showFullPath\n\t * Optional parameter. Default value is false\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(18)\n\t// = 0x12. The runtime will prefer the VTID if present\n\t@VTID(29)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildSummaryGraph(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String xAxisField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);\n\n\t/**\n\t * <p>\n\t * Builds test set progress graph.\n\t * </p>\n\t * \n\t * @param groupByField\n\t * Optional parameter. Default value is \"\"\n\t * @param sumOfField\n\t * Optional parameter. Default value is \"\"\n\t * @param majorSkip\n\t * Optional parameter. Default value is 0\n\t * @param minorSkip\n\t * Optional parameter. Default value is 1\n\t * @param maxCols\n\t * Optional parameter. Default value is 0\n\t * @param filter\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param frDate\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param forceRefresh\n\t * Optional parameter. Default value is false\n\t * @param showFullPath\n\t * Optional parameter. Default value is false\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(19)\n\t// = 0x13. The runtime will prefer the VTID if present\n\t@VTID(30)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildProgressGraph(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"0\") int majorSkip,\n\t\t\t@Optional @DefaultValue(\"1\") int minorSkip,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object frDate,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);\n\n\t/**\n\t * <p>\n\t * Starts the execution controller.\n\t * </p>\n\t * \n\t * @param serverName\n\t * Mandatory java.lang.String parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(20)\n\t// = 0x14. The runtime will prefer the VTID if present\n\t@VTID(31)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject startExecution(java.lang.String serverName);\n\n\t/**\n\t * <p>\n\t * Purges all the running executions within the test set.\n\t * </p>\n\t */\n\n\t@DISPID(21)\n\t// = 0x15. The runtime will prefer the VTID if present\n\t@VTID(32)\n\tvoid purgeExecutions();\n\n\t/**\n\t * <p>\n\t * Obsolete. Do not invoke.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"ExecEventNotifyByMailSettings\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(22)\n\t// = 0x16. The runtime will prefer the VTID if present\n\t@VTID(33)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject execEventNotifyByMailSettings();\n\n\t/**\n\t * <p>\n\t * Gets the execution settings for the test set.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"ExecutionSettings\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(23)\n\t// = 0x17. The runtime will prefer the VTID if present\n\t@VTID(34)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject executionSettings();\n\n\t/**\n\t * <p>\n\t * Gets default execution settings for tests.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"TestDefaultExecutionSettings\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(24)\n\t// = 0x18. The runtime will prefer the VTID if present\n\t@VTID(35)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject testDefaultExecutionSettings();\n\n\t/**\n\t * <p>\n\t * Creates graph that shows the test set changes over time.\n\t * </p>\n\t * \n\t * @param groupByField\n\t * Optional parameter. Default value is \"\"\n\t * @param sumOfField\n\t * Optional parameter. Default value is \"\"\n\t * @param maxCols\n\t * Optional parameter. Default value is 0\n\t * @param filter\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param frDate\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param forceRefresh\n\t * Optional parameter. Default value is false\n\t * @param showFullPath\n\t * Optional parameter. Default value is false\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(25)\n\t// = 0x19. The runtime will prefer the VTID if present\n\t@VTID(36)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildTrendGraph(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object frDate,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);\n\n\t/**\n\t * <p>\n\t * Creates Performance Graph.\n\t * </p>\n\t * \n\t * @param groupByField\n\t * Optional parameter. Default value is \"\"\n\t * @param sumOfField\n\t * Optional parameter. Default value is \"\"\n\t * @param maxCols\n\t * Optional parameter. Default value is 0\n\t * @param filter\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param frDate\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param forceRefresh\n\t * Optional parameter. Default value is false\n\t * @param showFullPath\n\t * Optional parameter. Default value is false\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(26)\n\t// = 0x1a. The runtime will prefer the VTID if present\n\t@VTID(37)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildPerfGraph(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object frDate,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);\n\n\t/**\n\t * <p>\n\t * Sets the status of each test in the test set to 'No Run'.\n\t * </p>\n\t * \n\t * @param deleteRuns\n\t * Mandatory boolean parameter.\n\t */\n\n\t@DISPID(27)\n\t// = 0x1b. The runtime will prefer the VTID if present\n\t@VTID(38)\n\tvoid resetTestSet(boolean deleteRuns);\n\n\t/**\n\t * <p>\n\t * Gets information about the instances of the specified test in this test\n\t * set.\n\t * </p>\n\t * \n\t * @param testIDs\n\t * Mandatory java.lang.String parameter.\n\t * @return Returns a value of type java.lang.String\n\t */\n\n\t@DISPID(28)\n\t// = 0x1c. The runtime will prefer the VTID if present\n\t@VTID(39)\n\tjava.lang.String checkTestInstances(java.lang.String testIDs);\n\n\t/**\n\t * <p>\n\t * Builds test set progress graph.\n\t * </p>\n\t * \n\t * @param groupByField\n\t * Optional parameter. Default value is \"\"\n\t * @param sumOfField\n\t * Optional parameter. Default value is \"\"\n\t * @param byHistory\n\t * Optional parameter. Default value is false\n\t * @param majorSkip\n\t * Optional parameter. Default value is 0\n\t * @param minorSkip\n\t * Optional parameter. Default value is 1\n\t * @param maxCols\n\t * Optional parameter. Default value is 0\n\t * @param filter\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param frDate\n\t * Optional parameter. Default value is\n\t * com4j.Variant.getMissing()\n\t * @param forceRefresh\n\t * Optional parameter. Default value is false\n\t * @param showFullPath\n\t * Optional parameter. Default value is false\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(29)\n\t// = 0x1d. The runtime will prefer the VTID if present\n\t@VTID(40)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildProgressGraphEx(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"-1\") boolean byHistory,\n\t\t\t@Optional @DefaultValue(\"0\") int majorSkip,\n\t\t\t@Optional @DefaultValue(\"1\") int minorSkip,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object frDate,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);\n\n\t/**\n\t * <p>\n\t * The test set's parent node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"TestSetFolder\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(30)\n\t// = 0x1e. The runtime will prefer the VTID if present\n\t@VTID(41)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject testSetFolder();\n\n\t/**\n\t * <p>\n\t * The test set's parent node.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"TestSetFolder\"\n\t * </p>\n\t * \n\t * @param pNode\n\t * Mandatory java.lang.Object parameter.\n\t */\n\n\t@DISPID(30)\n\t// = 0x1e. The runtime will prefer the VTID if present\n\t@VTID(42)\n\tvoid testSetFolder(@MarshalAs(NativeType.VARIANT) java.lang.Object pNode);\n\n\t// Properties:\n}",
"protected void set(int start, int end) {\n \t\t\tfStart= start;\n \t\t\tfEnd= end;\n \t\t\tfText= null;\n \t\t\tfPreservedText= null;\n \t\t}",
"public String getOperateRegion() {\r\n return operateRegion;\r\n }",
"@Override\n public void get() {}",
"@Test\n public void testSetLrs() {\n System.out.println(\"setLrs\");\n Set<LineaDeReceta> aux = new HashSet();\n aux.add(new LineaDeReceta(new Alimento(\"nom2\", \"inst2\", \"tempC2\"), \"u2\", 4.0F));\n Receta instance = new Receta();\n instance.getLrs().add(new LineaDeReceta(new Alimento(\"nom1\", \"inst1\", \"tempC1\"), \"u1\", 3.0F));\n instance.setLrs(aux);\n Set<LineaDeReceta> expResult = aux;\n Set<LineaDeReceta> result = instance.getLrs();\n assertEquals(expResult, result);\n }",
"public GeoPoint getEnd(){\n return end;\n }",
"public int getRegionValue() {\n return region_;\n }",
"public java.math.BigDecimal getH_set1() throws java.rmi.RemoteException;"
]
| [
"0.70404994",
"0.63113534",
"0.61441326",
"0.60386235",
"0.58859795",
"0.58636105",
"0.58636105",
"0.58636105",
"0.5801584",
"0.5773613",
"0.5733115",
"0.572222",
"0.572222",
"0.5704749",
"0.5704749",
"0.5704749",
"0.5704749",
"0.5704749",
"0.5703421",
"0.5688614",
"0.5687861",
"0.5684275",
"0.5664399",
"0.56616336",
"0.5635601",
"0.56165254",
"0.55785316",
"0.5534161",
"0.5524101",
"0.5523843",
"0.55224806",
"0.55224806",
"0.55224806",
"0.55224806",
"0.55145633",
"0.54466146",
"0.5428912",
"0.54181105",
"0.54117644",
"0.5406535",
"0.5398195",
"0.5397709",
"0.53630435",
"0.53505737",
"0.5345776",
"0.5339844",
"0.5334476",
"0.53279227",
"0.53247297",
"0.5317655",
"0.5315763",
"0.5307562",
"0.52975297",
"0.5281815",
"0.52781105",
"0.5273834",
"0.52687675",
"0.5237015",
"0.5222168",
"0.52210903",
"0.5220789",
"0.5215616",
"0.5214711",
"0.5210951",
"0.5200943",
"0.5195449",
"0.51896924",
"0.51885104",
"0.51874316",
"0.51742846",
"0.5172173",
"0.5159659",
"0.51594466",
"0.5149343",
"0.5138623",
"0.5137336",
"0.51315796",
"0.5128846",
"0.51270795",
"0.5113814",
"0.51083934",
"0.50920147",
"0.5087735",
"0.5086415",
"0.5086415",
"0.5086415",
"0.5082913",
"0.5080827",
"0.5075202",
"0.5074142",
"0.50733817",
"0.5069215",
"0.5060758",
"0.5060555",
"0.505904",
"0.5055284",
"0.5054057",
"0.5048983",
"0.5048722",
"0.5042381",
"0.5042235"
]
| 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.