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 |
|---|---|---|---|---|---|---|
Get the component id for the given compName | public static int getComponentId(final String compName, final String parentCompName) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria componentCriteria = session.createCriteria(ComponentEntity.class);
componentCriteria.createCriteria("parentComponent", "pc");
componentCriteria.add(Restrictions.eq("componentName",compName));
componentCriteria.add(Restrictions.eq("pc.componentName",parentCompName));
componentCriteria.setMaxResults(1);
ComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();
int compId = 0;
if(com != null){
compId = com.getComponentId();
}
txn.commit();
return compId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getComponentIdFromCompName(String compName){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public String getComponentId() {\n \t\treturn componentId;\n \t}",
"public String getComponentId();",
"public long checkComponent(String name) {\n\t\tif(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().size()>0){\n\t\t\treturn ((Component)(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().get(0))).getId();\n\t\t}\n\t\treturn -1;\n\t}",
"protected Component generateComp(String compName) {\n\t\treturn null;\n\t}",
"public Integer getCompId() {\n return compId;\n }",
"public UUID getComponentId();",
"public int getComponentID() {\n return COMPONENT_ID;\n }",
"String getId(IApiComponent component) throws CoreException {\n StringBuffer buffer = new StringBuffer();\n //$NON-NLS-1$\n buffer.append(component.getSymbolicName()).append(\" \").append('(').append(component.getVersion()).append(')');\n return buffer.toString();\n }",
"public Long getCompId() {\n return compId;\n }",
"public Long getCompId() {\n return compId;\n }",
"public org.apache.axis.types.Token getComponentID() {\n return componentID;\n }",
"public int getThreadPoolChooserNumericId(String componentId);",
"public static int getCollectionId(Connection c, String name) throws SQLException {\r\n\t\tPreparedStatement s = c.prepareStatement(\"select \"+quote(FC_ID_FIELD.name)+\" from \"+quote(FC_TABLE_NAME)+\" where \"+quote(FC_NAME_FIELD.name)+\"=\"+\"?\");\r\n\t\ts.setString(1, name);\r\n\t\tResultSet rs = s.executeQuery();\r\n\t\trs.next();\r\n\t\tint id = rs.getInt(1);\r\n\t\ts.close();\r\n\t\treturn id;\r\n\t}",
"private int findComp(Component cmpnt) {\n\n for (int i = 0; i < compList.length; i++) {\n if (compList[i].equals(cmpnt)) {\n return i;\n }\n }\n\n return 0;\n }",
"public abstract Component getComponentByName(String name);",
"public int getComponentId(int v) {\n return ids[v];\n }",
"public StrColumn getLabelCompId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_comp_id\", StrColumn::new) :\n getBinaryColumn(\"label_comp_id\"));\n }",
"public String getComponentName() {\n\t\treturn componentName;\n\t}",
"public void setCompId(Integer compId) {\n this.compId = compId;\n }",
"protected int getIndex(String compName, final Collection<? extends NamedElement> elements) {\n\t\tint idx = 0;\n\n\t\tfor (NamedElement e : elements) {\n\t\t\tif (e.getName().equalsIgnoreCase(compName)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tidx++;\n\t\t\t}\n\t\t}\n\t\treturn idx;\n\t}",
"public int getIdCompI() {\n\t\treturn ID_COMP_I;\n\t}",
"public String componentName(int index) {\n\treturn(comp[index]);\n }",
"public Component getComponent(String name) {\n Optional<Component> component = elements.getComponent(name);\n\n if(component.isPresent()) {\n return component.get();\n } else {\n Assert.fail(\"Missing component \" + name);\n return null;\n }\n\n }",
"@VisibleForTesting\n ComponentName getComponentName() {\n return mComponentName;\n }",
"public Integer getCompid() {\n return compid;\n }",
"String constructComponentName() {\n return base + nameCounter++;\n }",
"String getComponentName();",
"String getComponentName();",
"public abstract Integer getCompteId();",
"public Object load(String compName) {\n\t\tif (this.preLoaded) {\n\t\t\treturn this.cachedOnes.get(compName);\n\t\t}\n\t\tString fileName = componentFolder + this.folder\n\t\t\t\t+ compName.replace(DELIMITER, FOLDER_CHAR) + EXTN;\n\t\tException exp = null;\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tobj = this.cls.newInstance();\n\t\t\tif (XmlUtil.xmlToObject(fileName, obj) == false) {\n\t\t\t\t/*\n\t\t\t\t * load failed. obj is not valid any more.\n\t\t\t\t */\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texp = e;\n\t\t}\n\n\t\tif (exp != null) {\n\t\t\tTracer.trace(exp, \"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\tif (obj == null) {\n\t\t\tTracer.trace(\"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\t/*\n\t\t * we insist that components be stored with the right naming convention\n\t\t */\n\t\tComponent comp = (Component) obj;\n\t\tString fullName = comp.getQualifiedName();\n\n\t\tif (compName.equalsIgnoreCase(fullName) == false) {\n\t\t\tTracer.trace(\"Component has a qualified name of \" + fullName\n\t\t\t\t\t+ \" that is different from its storage name \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\treturn comp;\n\t}",
"public void removeComponent(String compName) {\n\t\tif (this.cachedOnes != null) {\n\t\t\tthis.cachedOnes.remove(compName);\n\t\t}\n\t}",
"public String getCompName() {\n return (String) getAttributeInternal(COMPNAME);\n }",
"public String getNamedId();",
"public void setCompId(Long compId) {\n this.compId = compId;\n }",
"public void setCompId(Long compId) {\n this.compId = compId;\n }",
"public int getId(String name){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tif(myGraph[i].name.compareToIgnoreCase(name) == 0){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"BaseComponent getComponentName();",
"public static Component findComponentByName(DialogComponentProvider provider,\n\t\t\tString componentName) {\n\t\treturn findComponentByName(provider.getComponent(), componentName, false);\n\t}",
"public int getId(String name)\n {\n List<Category> list = c.list();\n for(int i = 0; i < list.size(); ++i)\n {\n if(list.get(i).getName().equals(name))\n {\n return list.get(i).getId();\n }\n }\n return 0;\n }",
"public void setCompid(Integer compid) {\n this.compid = compid;\n }",
"public int getProgramIdFromUI(String programName) throws ParseException;",
"private String getUniqueId(JCas jCas) {\n return ConsumerUtils.getExternalId(getDocumentAnnotation(jCas), contentHashAsId);\n }",
"public QName getComponentName() {\n return _componentName;\n }",
"@Override\n public AbstractProcess getComponent(String name)\n {\n return components.get(name);\n }",
"public static int getComponentByNameAndParent(final String name, final int parentId, final int componentTypeId, String platform) {\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria healthCheckCriteria = session.createCriteria(ComponentEntity.class, \"c\");\n\t\thealthCheckCriteria.createCriteria(\"c.componentType\",\"ct\");\n\t\tif(parentId != 0){\n\t\t\thealthCheckCriteria.createCriteria(\"c.parentComponent\", \"prnt\");\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"prnt.componentId\", parentId));\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"c.platform\", platform));\n\t\t} else {\n\t\t\thealthCheckCriteria.add(Restrictions.isNull(\"c.parentComponent\"));\n\t\t}\n\t\thealthCheckCriteria.add(Restrictions.eq(\"c.componentName\", name));\n\t\thealthCheckCriteria.add(Restrictions.eq(\"ct.componentTypeId\", componentTypeId));\n\t\t\n\t\thealthCheckCriteria.setMaxResults(1);\n\t\tComponentEntity comp = (ComponentEntity) healthCheckCriteria.uniqueResult();\n\t\ttxn.commit();\n\t\t\n\t\tif(comp == null){\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tif(comp.getDelInd() == 1){\n\t\t\tDBQueryUtil.setDelIndOfComponent(comp.getComponentId(), 0);\n\t\t}\n\t\treturn comp.getComponentId();\n\t}",
"public ComponentName getComponentName() {\n return mInternal.getComponentName();\n }",
"private static int insertParentComponent(final String appName, final ComponentType compType, String platform) {\n\t\tint appId = getComponentByNameAndParent(appName, 0, compType.getComponentTypeId(), platform);\n\t\tif (appId == 0) {\n\t\t\tinsertComponent(appName, 0, compType.getComponentTypeId(), false, platform);\n\t\t\tappId = getComponentByNameAndParent(appName, 0, compType.getComponentTypeId(), platform);\n\t\t}\n\t\treturn appId;\n\t}",
"public String getCustomPowerComponentName(int componentId) {\n return mPowerComponents.getCustomPowerComponentName(componentId);\n }",
"String getIdFieldName(String collectionName) {\n HashMap<String,Object> collection = getCollectionConfig(collectionName);\n if (collection == null || !collection.containsKey(\"idField\")) return null;\n String indexField = collection.get(\"idField\").toString();\n if (!collection.containsKey(\"fields\")) return null;\n HashMap<String,Object> fields = (HashMap<String,Object>)collection.get(\"fields\");\n if (!fields.containsKey(indexField)) return null;\n return indexField;\n }",
"public static int getContactId(String contactName)\n {\n int contactID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String contactIdQuery = \"SELECT Contact_ID FROM contacts WHERE Contact_Name='\" + contactName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(contactIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n contactID = rs.getInt(\"Contact_ID\");\n return contactID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return contactID;\n }",
"public int getTemplateId(Statement stmt, String templateName){\n\t\tint templateId = 0;\n\t\tString query = \"select templateId from ExporterTemplates where templateName ='\"+templateName + \"'\";\n\t\ttry{\n\t\t\trs = stmt.executeQuery(query);\n\t\t\trs.next();\n\t\t\ttemplateId = rs.getInt(\"templateId\");\n\t\t}catch(SQLException se){\n\t\t\tSystem.out.println(\"Error to fetch Template ID\");\n\t\t\tSystem.err.println(se.getMessage());\n\t\t\t\n\t\t}\n\t\treturn templateId;\n\t}",
"@DisplayName(\"The Target Comp ID for the Marketcetera Exchange Server\")\n public String getTargetCompID();",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }",
"public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }",
"public Object[] getNameComponentIDs() {\n\t\tif (_nameComponentIDs != null)\n\t\t\treturn _nameComponentIDs.toArray();\n\t\telse\n\t\t\treturn null;\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public int getCT_CompLifeCycleModel_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_CT_CompLifeCycleModel_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}",
"public String getCompoId() {\n\t return compoId;\r\n\t }",
"protected String getMessageId(Exchange exchange) {\n switch (component) {\n case \"aws-sns\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSnsMessageId\");\n case \"aws-sqs\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSqsMessageId\");\n case \"ironmq\":\n return (String) exchange.getIn().getHeader(\"CamelIronMQMessageId\");\n case \"jms\":\n return (String) exchange.getIn().getHeader(\"JMSMessageID\");\n default:\n return null;\n }\n }",
"public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public CompilerSpecID getOldCompilerSpecID() {\n\t\tCollection<CompilerSpecDescription> compatibleCompilerSpecDescriptions =\n\t\t\tlangDescription.getCompatibleCompilerSpecDescriptions();\n\t\tif (!compatibleCompilerSpecDescriptions.isEmpty()) {\n\t\t\treturn compatibleCompilerSpecDescriptions.iterator().next().getCompilerSpecID();\n\t\t}\n\t\treturn null;\n\t}",
"public ServiceResultInterface getComponentByName(String name) {\n\t\tfor (ServiceResultInterface res : components) {\n\t\t\tif (res.getName().equals(name)) {\n\t\t\t\treturn res;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getContextId(String contextName) throws Exception {\n return getContextInfo(contextName).getValue(\"id\").toString();\n }",
"String getImplicitBundleIdentifier(int columnIndex);",
"public PxProductInfo getComboId() {\n return comboId;\n }",
"public static String getHDRCompFromLHSComp(String fsCompName)\n {\n String lsHDRComp=null;\n int liFirstIndex=-1;\n\n liFirstIndex=fsCompName.indexOf(UNDER_SCORE_CHAR);\n lsHDRComp=fsCompName.substring(0,liFirstIndex)+HDR_SUFFIX;\n return lsHDRComp;\n }",
"public int getIdForName(String name)\n\t{\n\t\tint id = 0;\n\t\ttry\n\t\t{\n\t\t\tif (database==null)\n\t\t\t\tdatabase = this.getWritableDatabase();\n\t\t\t\n\t\t\tCursor c = database.rawQuery(\"SELECT * FROM \"+PLAYERS_TABLE_NAME+\" WHERE \"+PLAYER_NAME+\" = \\\"\"+name+\"\\\";\", null);\n\n\t\t\tc.moveToFirst();\n\t\t\tif (c != null) \n\t\t\t{\n\t\t\t\tid = c.getInt(c.getColumnIndex(PLAYER_ID));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\t Log.e(\"Error\", \"Error\", e);\n\t\t} \n\t\treturn id;\n\t}",
"java.lang.String getIdentifier();",
"public java.lang.String getBeanIdentifier();",
"public java.lang.String getCatalogId() {\n java.lang.Object ref = catalogId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n catalogId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public static String parseElId(String name) {\n String patternString = \"(^[GT]\\\\w+\\\\.?\\\\w*):\";\n Pattern pattern = Pattern.compile(patternString);\n java.util.regex.Matcher matcher = pattern.matcher(name);\n if (matcher.find())\n return matcher.group(1);\n else\n return null;\n }",
"public synchronized String getIdentifier(String adaptorFullPath_p, String owBootstrapName_p)\r\n {\r\n String result = null;\r\n FileInputStream propStream = null;\r\n try\r\n {\r\n Properties currentProperties = adapter2PropsMap.get(adaptorFullPath_p);\r\n if (currentProperties == null)\r\n {\r\n currentProperties = new Properties();\r\n File propFile = new File(getPropertiesFullPath(adaptorFullPath_p));\r\n if (propFile.exists())\r\n {\r\n propStream = new FileInputStream(propFile);\r\n currentProperties.load(propStream);\r\n }\r\n }\r\n result = currentProperties.getProperty(owBootstrapName_p);\r\n }\r\n catch (Exception e)\r\n {\r\n LOG.error(\"Cannot read the mappings!\", e);\r\n }\r\n finally\r\n {\r\n if (propStream != null)\r\n {\r\n try\r\n {\r\n propStream.close();\r\n }\r\n catch (IOException e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}",
"String constructComponentName() {\n synchronized (Button.class) {\n return base + nameCounter++;\n }\n }",
"public ResultSet retrivecompname(String compname)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select compname from company where comp_id=\"+compname+\"\");\r\n\treturn rs;\r\n}",
"public String getId() {\n String id = name.replaceAll(\" \", \"-\");\n id = id.replaceAll(\"_\", \"-\");\n return id.toLowerCase();\n }",
"public long getId() {\n\t\treturn graphicFrame.getNvGraphicFramePr().getCNvPr().getId();\n\t}",
"String componentTypeName();",
"Object getElementID(String elementName) throws Exception;",
"public Component getComponent(int componentId) {\r\n if (opened != null && opened.getId() == componentId) {\r\n return opened;\r\n }\r\n if (chatbox != null && chatbox.getId() == componentId) {\r\n return chatbox;\r\n }\r\n if (singleTab != null && singleTab.getId() == componentId) {\r\n return singleTab;\r\n }\r\n if (overlay != null && overlay.getId() == componentId) {\r\n return overlay;\r\n }\r\n for (Component c : tabs) {\r\n if (c != null && c.getId() == componentId) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }",
"public String getComponent() {\n return this.component;\n }",
"public JPanel getComponentAt( String name) {\n Component comp = null;\n for (Component child : this.getContentPane().getComponents()) {\n if (child.getName().equals(name)) {\n comp = child;\n }\n }\n return (JPanel)comp;\n }",
"public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}",
"public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}",
"private String getContentTypeId(Collection<CMAContentType> contentTypes, String name) {\n return contentTypes.stream()\n .filter(contentType -> contentType.getName().equals(name))\n .findFirst()\n .orElseThrow(() -> new IllegalStateException(\"ContentType not found for [\" + name + \"]\")).getId();\n }",
"public String getScriptID(String scriptName) throws MDSException {\r\n\r\n\t\tString scriptID = null;\r\n\t\tString key = scriptName.toUpperCase();\r\n\t\tscriptID = (String) scriptMap.get(key);\r\n\t\tif (scriptID == null || scriptID == \"\") {\r\n\t\t\tscriptID = \"\";\r\n\t\t\t//logger.warn(\"script : \" + scriptName + \" is not loaded !\");\r\n\t\t}\r\n\t\treturn scriptID;\r\n\t}",
"@DisplayName(\"The Sender Comp ID for the Marketcetera Exchange Server\")\n public String getSenderCompID();",
"private static Oid getSchemaId(String schemaName) throws SQLException\n\t{\n\t\tResultSet rs = null;\n\t\tPreparedStatement stmt = SQLUtils.getDefaultConnection()\n\t\t\t.prepareStatement(\"SELECT oid FROM pg_namespace WHERE nspname = ?\");\n\t\ttry\n\t\t{\n\t\t\tstmt.setString(1, schemaName);\n\t\t\trs = stmt.executeQuery();\n\t\t\tif(!rs.next())\n\t\t\t\treturn null;\n\t\t\treturn (Oid)rs.getObject(1);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSQLUtils.close(rs);\n\t\t\tSQLUtils.close(stmt);\n\t\t}\n\t}"
] | [
"0.8033892",
"0.66470885",
"0.6584119",
"0.64666456",
"0.63458407",
"0.6168695",
"0.61537844",
"0.6122199",
"0.60918254",
"0.60608566",
"0.60608566",
"0.5979069",
"0.5938179",
"0.5884796",
"0.5882395",
"0.5824549",
"0.5736128",
"0.5734452",
"0.57273406",
"0.5718237",
"0.5702936",
"0.5665917",
"0.5597975",
"0.5597093",
"0.55334467",
"0.5530352",
"0.55028486",
"0.5489843",
"0.5489843",
"0.54779184",
"0.5454556",
"0.5450756",
"0.54381686",
"0.53988653",
"0.53915346",
"0.53915346",
"0.53708214",
"0.5363113",
"0.5357334",
"0.534897",
"0.53290325",
"0.53150374",
"0.5304763",
"0.52918035",
"0.52871656",
"0.52385193",
"0.5211851",
"0.52088535",
"0.5207657",
"0.520009",
"0.51743335",
"0.51587737",
"0.5155741",
"0.51520324",
"0.51520324",
"0.51520324",
"0.51520324",
"0.51520324",
"0.5143383",
"0.5143115",
"0.5128699",
"0.51164603",
"0.51164603",
"0.51164603",
"0.51164603",
"0.51164603",
"0.51000565",
"0.50909853",
"0.50807655",
"0.5072708",
"0.50660115",
"0.5051063",
"0.5040551",
"0.50337094",
"0.5023945",
"0.501849",
"0.5009585",
"0.5006751",
"0.5006069",
"0.5004761",
"0.49999768",
"0.49989715",
"0.4996609",
"0.49946788",
"0.49935445",
"0.4981592",
"0.4972173",
"0.49702835",
"0.4959596",
"0.49593958",
"0.4956804",
"0.49548683",
"0.49501356",
"0.49394265",
"0.4939259",
"0.49215087",
"0.49213037",
"0.49212092",
"0.49197072",
"0.49182624"
] | 0.7780624 | 1 |
Get All the APPS with the launch date null | public static Set<Integer> getAppsLauchDateNull(int envId) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria healthCheckCriteria = session.createCriteria(HealthCheckEntity.class, "health");
healthCheckCriteria.createCriteria("health.component", "component");
healthCheckCriteria.add(Restrictions.isNull("health.createdDate"));
healthCheckCriteria.add(Restrictions.eq("health.environment.environmentId", envId));
ProjectionList projectionList = Projections.projectionList();
projectionList.add(Projections.property("component.componentId"));
healthCheckCriteria.setProjection(projectionList);
Set<Integer> compSet = new HashSet<Integer>();
@SuppressWarnings("unchecked")
List<Integer> resultList = (List<Integer>) healthCheckCriteria.list();
compSet.addAll(resultList);
txn.commit();
return compSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getDateofLaunch() {\n\treturn null;\n}",
"public List<ApInfo> findAllAps() {\n List<ApInfo> apInfos = new ArrayList<>();\n Cursor cursor = null;\n try {\n cursor = this.db.rawQuery(\"SELECT SSID,MAC,UPTIME FROM MOBILE_AP WHERE 1 = 1\", null);\n while (cursor.moveToNext()) {\n apInfos.add(new ApInfo(cursor.getString(cursor.getColumnIndexOrThrow(\"SSID\")), cursor.getString(cursor.getColumnIndexOrThrow(\"MAC\")), cursor.getString(cursor.getColumnIndexOrThrow(\"UPTIME\"))));\n }\n } catch (IllegalArgumentException e) {\n LogUtil.d(\"SELECT SSID,MAC,UPTIME FROM MOBILE_AP WHERE 1 = 1\");\n LogUtil.e(\"findAllAps IllegalArgumentException: \" + e.getMessage());\n } catch (Exception e2) {\n LogUtil.e(\"findAllAps Exception: \" + e2.getMessage());\n if (cursor != null) {\n cursor.close();\n }\n return apInfos;\n } catch (Throwable th) {\n if (cursor != null) {\n cursor.close();\n }\n throw th;\n }\n }",
"@Override\n public MarathonDeployedAppList get(Application application, Component component, Environment environment) {\n return null;\n }",
"List<Appointment> getCurrentlyAppointment();",
"public List<Application> getVisibleApplications() {\n return null;\r\n }",
"@Override\n\tpublic List<Appointment> getUpcomingAppointments() {\n\t\treturn mobileDao.getUpcomingAppointments();\n\t}",
"@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}",
"@Override\n public MarathonDeployedAppList get(String componentName) {\n return null;\n }",
"@Override\n public List<String[]> getAppSchedulerData()\n {\n return null;\n }",
"public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }",
"private ArrayList<App> getApps() {\n PackageManager manager = getPackageManager();\n Intent i = new Intent(Intent.ACTION_MAIN, null);\n i.addCategory(Intent.CATEGORY_LAUNCHER);\n\n List<ResolveInfo> availableActivities = manager.queryIntentActivities(\n i, 0);\n ArrayList<App> temp = new ArrayList<App>();\n for (ResolveInfo ri : availableActivities) {\n App app = new App();\n app.packname = ri.activityInfo.packageName;\n app.appName = app.packname\n .substring(app.packname.lastIndexOf(\".\") + 1);\n app.icon = ri.activityInfo.loadIcon(manager);\n temp.add(app);\n }\n return temp;\n }",
"boolean isNilAppointmentsToIgnore();",
"public static void clearAppList() {\n }",
"private void createAllApnList() {\n allApns = new ArrayList<ApnSetting>();\n String operator = phone.mSIMRecords.getSIMOperatorNumeric();\n\n if (operator != null) {\n String selection = \"numeric = '\" + operator + \"'\";\n\n Cursor cursor = phone.getContext().getContentResolver().query(\n Telephony.Carriers.CONTENT_URI, null, selection, null, null);\n\n if (cursor != null) {\n if (cursor.getCount() > 0) {\n allApns = createApnList(cursor);\n // TODO: Figure out where this fits in. This basically just \n // writes the pap-secrets file. No longer tied to PdpConnection\n // object. Not used on current platform (no ppp).\n //PdpConnection pdp = pdpList.get(pdp_name);\n //if (pdp != null && pdp.dataLink != null) {\n // pdp.dataLink.setPasswordInfo(cursor);\n //}\n }\n cursor.close();\n }\n }\n\n if (allApns.isEmpty()) {\n if (DBG) log(\"No APN found for carrier: \" + operator);\n notifyNoData(PdpConnection.PdpFailCause.BAD_APN);\n }\n }",
"public List<PackageInfo> getActiveApps() {\n\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningAppProcessInfo> tasks = activityManager.getRunningAppProcesses();\n\n List<PackageInfo> installedApps = getInstalledApps(true);\n List<String> runningAppProcesses = new ArrayList<>();\n\n List<PackageInfo> activeApps = new ArrayList<>();\n\n //get the running processes\n for(ActivityManager.RunningAppProcessInfo i : tasks){\n runningAppProcesses.add(i.processName);\n }\n\n //Check which ones of those processes correspond to a process of one installed app\n // is excluded this way all the system processes\n for(PackageInfo app : installedApps){\n String pName = app.applicationInfo.processName;\n\n if(runningAppProcesses.contains(pName)){\n activeApps.add(app);\n }\n }\n return activeApps;\n }",
"public String getAllRunningActivities() {\n return \"\";\n }",
"@JsonIgnore\n public List<Application> getIncludedApplications()\n {\n List<Application> actual = new ArrayList<Application>();\n\n for (Application app : _apps) {\n if (!app.isSkipped()) {\n actual.add(app);\n }\n }\n\n return actual;\n }",
"public List<AppInfo>selectAppInfo(){\n\t\tList<AppInfo> mAppList = new ArrayList<AppInfo>();\n\t\tCursor c = db.rawQuery(\"select mapName,packageName,className from \"+ RECENT_TABLE_NAME,null);\n\t\twhile (c.moveToNext()) {\n\t\t\tAppInfo item =new AppInfo();\n\t\t\tString mapName = c.getString(0);\n\t\t\tString packageName = c.getString(1);\n\t\t\tString className =c.getString(2);\n\n\t\t\t//L.v(mapName+\"&&\"+packageName+\"&&\"+className );\n\t\t\titem.setAppName(mapName);\n\t\t\titem.setClassName(className);\n\t\t\titem.setPackageName(packageName);\n\n\t\t\tmAppList.add(item);\n\t\t}\n\t\treturn mAppList;\n\n\t}",
"List<ExamPackage> getListExpired();",
"@Query(value = \"Select t From TestReport t where t.testResult = null\")\n\tpublic List<TestReport> getPendingUpdateTestReports();",
"@Query(\"select a from Appointment a where a.patient.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByPatient(int patientId);",
"@Override\n\tpublic List<Airport> getDefaultAirports() {\n\t\tList<Airport> airports = AirportDaoObject.getDefaultAirports();\n\t\treturn airports;\n\t}",
"public Appointments(){\n\t\tsetDate(0);\n\t\tsetTime(0);\n\t\tsetClient(null);\n\t\tappointmentStatus = false;\n\t}",
"@Transactional(readOnly = true) \n public List<DepositoryInfoDTO> findAllWhereApplicationProspectIsNull() {\n log.debug(\"Request to get all depositoryInfos where ApplicationProspect is null\");\n return StreamSupport\n .stream(depositoryInfoRepository.findAll().spliterator(), false)\n .filter(depositoryInfo -> depositoryInfo.getApplicationProspect() == null)\n .map(depositoryInfoMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public void printApp(Date dat)\n {\n if(cal.containsKey(dat)){\n List x = [];\n x = cal.get(dat);\n System.out.println(\"Your appointments for \" + dat + \"are: \\n\");\n for(int i = 0; i<x.size(); i++){\n System.out.println(x.get(i).getStartTime() + x.get(i).getEndTime() + x.get(i).getDescription());\n }\n }else{\n System.out.println(\"No appointments\");\n }\n \n }",
"List<WorkingSchedule> getAll();",
"public ArrayList<String> getAllRunningApp() {\n\t\tArrayList<String> apps = new ArrayList<String>();\n\t\tActivityManager activityManager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);\n\t\tList<RunningAppProcessInfo> runningAppProcesses = activityManager.getRunningAppProcesses();\n\t\t\n\t\tfor (RunningAppProcessInfo runningAppProcessInfo : hgf)\n\t\t{\n\t\t apps.add(runningAppProcessInfo.processName);\n\t\t}\n\t\treturn apps;\n\t}",
"public void showAppointments()\n {\n System.out.println(\"=== Day \" + dayNumber + \" ===\");\n int time = START_OF_DAY;\n for(Appointment appointment : appointments) {\n System.out.print(time + \": \");\n if(appointment != null) {\n System.out.println(appointment.getDescription());\n }\n else {\n System.out.println();\n }\n time++;\n }\n }",
"private void loadApps() {\n\t\tIntent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n\t\tmainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\tmApps = getPackageManager().queryIntentActivities(mainIntent, 0);\n\t}",
"@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);",
"public void displayAppointmentsOnDate(Date date) {\n ArrayList<Appointment> appts = new ArrayList<>();\n String doctorID = getIntent().getStringExtra(\"doctorID\");\n\n // Get doctor's availableAppointmentIDs\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_USERS)\n .child(doctorID)\n .child(Constants.FIREBASE_PATH_USERS_APPTS_AVAILABLE)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot availableApptIDsSnapshot) {\n for (DataSnapshot availableApptIDChild : availableApptIDsSnapshot.getChildren()) { // Loop through all of doctor's availableApptIDs\n String availableApptID = availableApptIDChild.getValue(String.class);\n\n // For each availableAppointmentID, get the Appointment object\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_APPOINTMENTS)\n .child(availableApptID)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot availableApptSnapshot) {\n Appointment appt = availableApptSnapshot.getValue(Appointment.class);\n if (appt != null && !appt.isBooked() && !appt.isPassed() && DateUtility.isSameDay(appt.getDate(), date)) {\n appts.add(appt);\n displayAppointments(appts);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: Appointment associated w/ availableAppointmentID not found\n Toast.makeText(getApplicationContext(), \"Error: Couldn't find available appointment\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: No availableAppointmentIDs found\n Toast.makeText(getApplicationContext(), \"Error: No available appointments\", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"void setNilAppointmentsToIgnore();",
"private void loadApps() {\n\n Intent i = new Intent(Intent.ACTION_MAIN, null);\n i.addCategory(Intent.CATEGORY_LAUNCHER);\n\n switch ((int) tabId) {\n case 1:\n // Tab 1 is a special tab and includes all except for the ones in other tabs\n // Retrieve all installed apps on the device\n List<ResolveInfo> availableActivities = mPacMan.queryIntentActivities(i, 0);\n\n // And only add those that are not in the database\n for (int j = 0; j < availableActivities.size(); j++) {\n ResolveInfo ri = availableActivities.get(j);\n\n if (sqlHelper.containsApp(ri.activityInfo.name))\n continue;\n\n AppDetail app = new AppDetail();\n app.label = ri.loadLabel(mPacMan);\n app.packageName = ri.activityInfo.packageName;\n app.activityName = ri.activityInfo.name;\n\n\n // Load the icon later in an async task.\n app.icon = null;\n\n appsList.add(app);\n }\n break;\n default:\n // All other tabs just query the apps from the database\n List<AppTable> apps = sqlHelper.getAppsForTab(tabId);\n for (AppTable app : apps) {\n\n boolean success = addAppToList(app);\n // If the app could not be added then it was probably uninstalled,\n // so we have to remove it from the database\n if (!success) {\n Log.d(\"DB\", \"Removing app \" + app.getPackageName() + \" from db\");\n sqlHelper.removeAppFromTab(app);\n }\n }\n\n // show the empty category notice if this tab is empty\n if (apps.size() == 0) {\n showEmptyCategoryNotice();\n }\n }\n }",
"@Override\n\t\tpublic List<Customer> ViewPendingApplications() {\n\t\t\treturn null;\n\t\t}",
"List<Program> findAllPrograms(String date, String application, List<String> channels);",
"public Observable<List<AppDetail>> getAllInstalledApps() {\n return ObservableUtils.from(() -> {\n Intent i = new Intent(Intent.ACTION_MAIN, null);\n i.addCategory(Intent.CATEGORY_LAUNCHER);\n Context context = AppPreferences.getApplicationContext();\n PackageManager manager = context.getPackageManager();\n List<ResolveInfo> availableActivities = manager.queryIntentActivities(i, 0);\n List<AppDetail> apps = new ArrayList<>();\n IconFinder finder = new IconFinder(context);\n for (ResolveInfo ri : availableActivities) {\n AppDetail app = getAppDetail(ri, manager, finder);\n apps.add(app);\n }\n Collections.sort(apps, APP_DETAIL_COMPARATOR);\n return apps;\n });\n }",
"@Override\r\n\tpublic ArrayList<Activitat> getAllNoSenior() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME + \" WHERE SENIOR = FALSE\";\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\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\treturn llistaActivitats;\r\n\t}",
"private void showOrLoadApplications() {\n //nocache!!\n GetAppList getAppList = new GetAppList();\n if (plsWait == null && (getAppList.getStatus() == AsyncTask.Status.PENDING || getAppList.getStatus() == AsyncTask.Status.FINISHED)) {\n getAppList.setContext(this).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore getAppointmentsToIgnore();",
"public ArrayList getDailyPunchList(Badge b, long ts){\n try{\n ArrayList<Punch> punches = new ArrayList<>();\n String originalTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd\").format(ts);\n query = \"SELECT * FROM punch WHERE badgeid = '\" + b.getId() + \"' ORDER BY originaltimestamp\" ;\n pstSelect = conn.prepareStatement(query);\n pstSelect.execute();\n resultset = pstSelect.getResultSet();\n resultset.first();\n \n while(resultset.next()){\n String timestamp = resultset.getString(4);\n if(timestamp.contains(originalTimeStamp) ){\n int dbPunchID = resultset.getInt(1);\n int termID = resultset.getInt(2);\n String badgeID = resultset.getString(3);\n Timestamp dbTS = resultset.getTimestamp(4);\n long longTS = dbTS.getTime();\n int punchType = resultset.getInt(5);\n String otStamp = dbTS.toString();\n\n Punch p = new Punch(b, longTS, punchType, otStamp, dbPunchID, termID);\n\n punches.add(p);\n }\n }\n \n \n \n return punches;\n }\n \n catch(Exception e){\n System.err.println(\"** getDailyPunchList: \" + e.toString());\n }\n \n \n return null;\n }",
"public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }",
"Collection<GameEnvironment> getPendingGames();",
"private void loadAppointmentList(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n appointments.clear();\n ArrayList<String> myApps = new ArrayList<String>();\n\n appointments.addAll(dbHandler.getAllAppointmentFromServiceProvider(companyID));\n\n for(Appointment appointment: appointments)\n myApps.add(dbHandler.getServiceTypeName(appointment.getServiceType_id()) + \" / \" +\n getDayName(appointment.getDay_id()) + \" at \" +\n appointment.getStart_time() + \" to \" +\n appointment.getEnd_time()\n );\n\n if(myApps.size()==0) {\n myApps.add(EMPTY_TEXT_LV2);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myApps);\n lv_Appointment.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }",
"public void killRecentPackage() {\n IActivityManager activityManager = ActivityManager.getService();\n int userIdProcess = Process.myUserHandle().hashCode();\n List<ActivityManager.RecentTaskInfo> recentlist = new ArrayList<>();\n try {\n recentlist = activityManager.getRecentTasks(100, 1, userIdProcess).getList();\n } catch (Exception e) {\n loge(\"killRecentPackage\", e);\n }\n for (int i = 0; i < recentlist.size(); i++) {\n ActivityManager.RecentTaskInfo info = recentlist.get(i);\n String pakg = info.baseIntent.getComponent().getPackageName();\n int userId = info.userId;\n if (!mAppWhiteList.contains(pakg) && !inputMethodList.contains(pakg) && !pakg.contains(\"com.oppo.autotest\") && !pakg.contains(\"com.oppo.qe\")) {\n logd(\" killRecentPackage_forceStopPackage = \" + pakg + \" , userId = \" + userId);\n try {\n activityManager.forceStopPackage(pakg, userId);\n } catch (Exception e2) {\n loge(\"Failed killRecentPackage_forceStopPackage = \" + pakg + \" , userId = \" + userId, e2);\n }\n }\n }\n }",
"public List<String> getFreeLaunchers() {\n return persistence.getFreeLauncherUrls();\n }",
"private ILaunch findLaunch() throws CoreException {\n ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();\n for (ILaunch launch : manager.getLaunches()) {\n\n // TODO: figure out a more correct way of doing this\n if ( launch.getLaunchMode().equals(ILaunchManager.DEBUG_MODE)\n && launch.getLaunchConfiguration() != null\n && launch.getLaunchConfiguration().getAttribute(\"launchable-adapter-id\", \"\")\n .equals(\"com.amazonaws.eclipse.wtp.elasticbeanstalk.launchableAdapter\")\n && launch.getLaunchConfiguration().getAttribute(\"module-artifact\", \"\")\n .contains(moduleToPublish.getName()) ) {\n return launch;\n }\n }\n return null;\n }",
"private final List<ActivityManager.AppTask> m881c() {\n List<ActivityManager.AppTask> appTasks = ((ActivityManager) this.f1350b.getSystemService(\"activity\")).getAppTasks();\n return appTasks == null ? Collections.emptyList() : appTasks;\n }",
"public void loadApplications() {\n PackageManager manager = context.getPackageManager();\n\n Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\n final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0);\n Collections.sort(apps, new ResolveInfo.DisplayNameComparator(manager));\n\n if (apps != null) {\n applications.clear();\n\n for (ResolveInfo app : apps) {\n App application = new App();\n\n application.name = app.loadLabel(manager).toString();\n application.setActivity(new ComponentName(\n app.activityInfo.applicationInfo.packageName,\n app.activityInfo.name),\n Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n application.icon = app.activityInfo.loadIcon(manager);\n\n applications.add(application);\n }\n }\n }",
"public List<Appointment> getAllDetailsRecp();",
"private List<AppDetails> getAppDetailsFromDatabase() {\r\n SQLiteAccessLayer sqLiteAccessLayer = new SQLiteAccessLayer(this);\r\n List<AppDetails> appDetailsList = new ArrayList<>();\r\n PackageManager packageManager = getPackageManager();\r\n\r\n if (sqLiteAccessLayer.isDatabaseEmpty()) { // database empty\r\n List<PackageInfo> installedApps = RawAppInfo.getAllInstalledApps(this);\r\n List<ResolveInfo> systemApps = RawAppInfo.getSystemApps(this);\r\n\r\n for (PackageInfo packageInfo : installedApps) {\r\n AppDetails appDetails = new AppDetails(\r\n packageInfo.applicationInfo.uid,\r\n packageInfo.applicationInfo.packageName,\r\n String.valueOf(packageInfo.applicationInfo.loadLabel(packageManager)),\r\n RawAppInfo.INSTALLED_APP\r\n );\r\n\r\n SQLiteAccessLayer sqLiteAccessLayerForInsert = new SQLiteAccessLayer(this, appDetails);\r\n sqLiteAccessLayerForInsert.insertIntoAppDetails();\r\n appDetailsList.add(appDetails);\r\n }\r\n for (ResolveInfo resolveInfo : systemApps) {\r\n ApplicationInfo applicationInfo = resolveInfo.activityInfo.applicationInfo;\r\n AppDetails appDetails = new AppDetails(\r\n applicationInfo.uid, //uid\r\n applicationInfo.packageName, //packagename\r\n String.valueOf(applicationInfo.loadLabel(packageManager)), // applicationName\r\n RawAppInfo.SYSTEM_APP //applicationType\r\n );\r\n SQLiteAccessLayer sqLiteAccessLayerForInsert = new SQLiteAccessLayer(this, appDetails);\r\n sqLiteAccessLayerForInsert.insertIntoAppDetails();\r\n appDetailsList.add(appDetails);\r\n }\r\n } else {\r\n appDetailsList = new ArrayList<>(new SQLiteAccessLayer(this).queryAppDetails());\r\n }\r\n sqLiteAccessLayer.closeDatabaseConnection();\r\n return appDetailsList;\r\n }",
"List<NotificationEntity> findUnseenRecentByLogin(String login, Date date);",
"@GetMapping(\"/getPendingMultiplayerGames\")\n public List<MultiplayerGame> getPendingMultiplayerGames() {\n return getAllMultiplayerGames()\n .stream()\n .filter(g -> g.getStatus().equals(\"pending\"))\n .collect(Collectors.toList());\n }",
"public List<AppState> getApps()\n {\n return apps;\n }",
"public List listAllByDate(Date minDate) {\n\t\treturn null;\n\t}",
"public void onAppManagerReady() {\n/* mAppList = mAppManager.getHouseApplications();\n if (mAppList.size() == 0) {\n return;\n }\n mFirstApp = mAppList.get(0);\n mFirstAppIcon.setImageResource(R.drawable.house_first);\n mFirstAppLabel.setText(mFirstApp.getTitle());\n Log.d(TAG, mAppList.toString());\n sortByInstallTime(mAppList);*/\n \n mTempAppList.clear();\n String[] labelArray = getResources().getStringArray(R.array.scenario_array);\n Log.d(TAG, \"titles:\"+labelArray.toString());\n for (int i = 0; i < labelArray.length; i++) {\n ApplicationInfo ai = new ApplicationInfo();\n ai.mIcon = getResources().getDrawable(mTempResIds[i]);\n ai.mTitle = labelArray[i];\n mTempAppList.add(ai);\n }\n \n mFirstApp = mTempAppList.get(0);\n mFirstAppIcon.setImageResource(R.drawable.house_first);\n mFirstAppLabel.setText(mFirstApp.getTitle());\n Iterator<ApplicationInfo> iter = mTempAppList.iterator();\n while (iter.hasNext()) {\n ApplicationInfo app = iter.next();\n if (app.mTitle.equals(mFirstApp.mTitle)) {\n iter.remove();\n }\n }\n \n mAdapter = new CustomApplicationsAdapter(this, mTempAppList);\n\n mGrid.setAdapter(mAdapter);\n mGrid.setSelection(0);\n mGrid.setOnItemClickListener(new OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \tIntent intent = new Intent();\n \tintent.setClass(SmartAppsGridActivity.this, SmartDetialActivity.class);\n \tintent.putExtra(\"title\", mTempAppList.get(position).mTitle);\n \tstartActivity(intent);\n// Toast.makeText(getApplicationContext(), R.string.alert, Toast.LENGTH_SHORT).show();\n// mAppList.get(position).startApplication(HouseAppsGridActivity.this);\n }\n });\n }",
"public static AppointmentTable getDefaultAppointments() {\n AppointmentTable def = new AppointmentTable();\n return def;\n }",
"boolean isSetAppointmentsToIgnore();",
"@GET(\"planetary/apod\")\n Call<APOD> getApod(\n @Query(\"date\") String date,\n @Query(\"api_key\") String API_KEY\n );",
"void unsetAppointmentsToIgnore();",
"public ArrayList<Task> listNotStarted() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 0) {\n tasks.add(t);\n }\n }\n return tasks;\n }",
"public synchronized long[] getAppRecentUsedTime(String packageName, int flag) {\n if (TextUtils.isEmpty(packageName)) {\n return null;\n }\n NeuronAppRecord appUsage = (NeuronAppRecord) this.mAppUsageMap.get(packageName);\n if (appUsage == null) {\n return null;\n }\n boolean needResume = (flag & 2) > 0;\n boolean needPause = (flag & 1) > 0;\n int resumeSize = needResume ? appUsage.lastestResumeTime.getSize() : 0;\n int pauseSize = needPause ? appUsage.latestPauseTime.getSize() : 0;\n int size = resumeSize + pauseSize;\n if (needResume && needPause && resumeSize > pauseSize) {\n size++;\n }\n if (size == 0) {\n return null;\n }\n int i;\n int i2;\n long[] result = new long[size];\n if (needResume) {\n i = 0;\n while (i < resumeSize) {\n if (needPause) {\n i2 = i * 2;\n } else {\n i2 = i;\n }\n try {\n result[i2] = ((Long) appUsage.lastestResumeTime.get(i)).longValue();\n i++;\n } catch (ArrayIndexOutOfBoundsException e) {\n Log.e(TAG, \"some thing wrong when get pkg:\" + packageName + \" record\", e);\n return null;\n }\n }\n }\n if (pauseSize > 0) {\n int shift = 0;\n if (needResume) {\n Long lastResume = (Long) appUsage.lastestResumeTime.getLatest();\n Long lastPause = (Long) appUsage.latestPauseTime.getLatest();\n if (!(lastResume == null || lastPause == null || lastResume.longValue() <= lastPause.longValue())) {\n shift = 2;\n }\n }\n i = 0;\n while (i < pauseSize && (!needResume || ((i * 2) + 1) + shift < size)) {\n if (needResume) {\n i2 = ((i * 2) + 1) + shift;\n } else {\n i2 = i;\n }\n try {\n result[i2] = ((Long) appUsage.latestPauseTime.get(i)).longValue();\n i++;\n } catch (ArrayIndexOutOfBoundsException e2) {\n Log.e(TAG, \"some thing wrong when get pkg:\" + packageName + \" record\", e2);\n return null;\n }\n }\n }\n }",
"@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public ApplicationInfo getApplicationInfo() {\n return null;\n }",
"protected boolean findDefault(DisplayResolveInfo info) {\r\n List<IntentFilter> intentList = new ArrayList<IntentFilter>();\r\n List<ComponentName> prefActList = new ArrayList<ComponentName>();\r\n final String packageName = info.ri.activityInfo.packageName;\r\n \r\n mPm.getPreferredActivities(intentList, prefActList, packageName);\r\n if (prefActList.size() <= 0) {\r\n \treturn false;\r\n } // End of if\r\n \treturn true;\r\n }",
"List<UserActivityTable> getListUserActivatesOfSpecificPoint(String platform) {\n return daoInterface.getListUserActivatesOfSpecificPoint(platform);\n\n }",
"@Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);",
"@Headers({\n \"Content-Type:application/json; charset=utf-8\"\n })\n @GET(\"entity/applications\")\n Call<List<Application>> getApplications(\n @Query(\"startTimestamp\") Long startTimestamp, @Query(\"endTimestamp\") Long endTimestamp, @Query(\"relativeTime\") String relativeTime, @Query(\"tag\") List<String> tag, @Query(\"entity\") List<String> entity\n );",
"public List<NacAlarm> getActiveAlarmsNow()\n\t{\n\t\tFuture<?> future = this.doGetActiveAlarmsNow();\n\n\t\treturn NacRepository.getAlarmListFromFuture(future);\n\t}",
"@Test\n public void listAppsTest() throws ApiException {\n Boolean _public = null;\n String name = null;\n String executionSystem = null;\n String tags = null;\n String filter = null;\n String naked = null;\n Long limit = null;\n Long offset = null;\n // List<ApplicationSummary> response = api.listApps(_public, name, executionSystem, tags, filter, naked, limit, offset);\n\n // TODO: test validations\n }",
"@Override\n public String toString() {\n return packageName + \" \" + launchingTime;\n }",
"@Override\n\tpublic List<AppointmentDto> getPastAppointmentByUserId(int userId) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_PAST_APPOINTMENTS, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), userId, rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"),rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t}, userId);\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public List<LeaveApplication> getAll();",
"public List<User_apps> getUserAppsList() {\n\t\treturn Arrays.asList(conf.getUser_apps());\n\t}",
"public List<String> getEligibleForAutoApproval(Date todayAtMidnight);",
"public List<TaskVersion1> getDefaultTasks();",
"public TreeMap<String, Integer> build_apps_list() {\n return this.ntfcn_items.build_apps_list();\n }",
"public MauiApplication [] getCachedMauiApplications ()\n\t{\n\t\tMauiApplication [] retVal = new MauiApplication [applications.size ()];\n\t\tEnumeration theApplications = applications.elements ();\n\t\tint i = 0;\n\t\twhile (theApplications.hasMoreElements ())\n\t\t{\n\t\t\tretVal [i++] = (MauiApplication) theApplications.nextElement ();\n\t\t}\n\t\treturn retVal;\n\t}",
"public void setGetAppNoResult(java.lang.String param) {\r\n localGetAppNoResultTracker = param != null;\r\n\r\n this.localGetAppNoResult = param;\r\n }",
"@Override\n\tpublic List<Application> getLatestActivity(int maxResults) {\n\t\treturn wrapApplication(flatPushMessageInformationDao.findLatestActivity(loginName.get(), maxResults));\n\t}",
"@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tList<IiotAppList> selectAll();",
"@Override\r\n\tpublic List<Cita> getAppointmentList() {\r\n\r\n\t\t// find all users\r\n\t\tList<User> users = (List<User>) userService.findAll();\r\n\t\t// create a new arrayList of appointments\r\n\t\tList<Cita> appointments = new ArrayList<>();\r\n\r\n\t\t// iterate over the list of all the users\r\n\t\tfor (Iterator<User> user = users.iterator(); user.hasNext();) {\r\n\t\t\t// get the user from the forEach\r\n\t\t\tUser getUser = user.next();\r\n\r\n\t\t\t// iterate over the AppointmentList\r\n\t\t\tfor (Cita item : getUser.getCitas()) {\r\n\r\n\t\t\t\t// check if the class is not empty\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tappointments.add(item);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn appointments;\r\n\t}",
"public List<Activity> getAllActivities();",
"@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}",
"protected void getApps(){\n DBPermissions db =new DBPermissions();\n this.apps=db.getApps();\n db.close();\n }",
"private List<String> listPolicyExemptAppsUnchecked() {\n String[] core = mContext.getResources().getStringArray(R.array.policy_exempt_apps);\n String[] vendor = mContext.getResources().getStringArray(R.array.vendor_policy_exempt_apps);\n\n int size = core.length + vendor.length;\n Set<String> apps = new ArraySet<>(size);\n for (String app : core) {\n apps.add(app);\n }\n for (String app : vendor) {\n apps.add(app);\n }\n\n return new ArrayList<>(apps);\n }",
"@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\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\treturn llistaActivitats;\r\n\t}",
"private void filterApps(int i) {\n Set<PackageInfoData> returnList = new HashSet<>();\n List<PackageInfoData> inputList = new ArrayList<>();\n List<PackageInfoData> allApps = Api.getApps(getApplicationContext(), null);\n if (i >= 0) {\n for (PackageInfoData infoData : allApps) {\n if (infoData != null) {\n if (infoData.appType == i) {\n returnList.add(infoData);\n }\n }\n }\n inputList = new ArrayList<>(returnList);\n } else {\n if (null != allApps) {\n inputList = allApps;\n }\n }\n\n try {\n Collections.sort(inputList, new PackageComparator());\n } catch (Exception e) {\n LogUtil.setTagI(Api.TAG, \"Exception in filter Sorting\");\n }\n\n ArrayAdapter appAdapter = new AppListArrayAdapter(this, getApplicationContext(), inputList);\n this.listview.setAdapter(appAdapter);\n appAdapter.notifyDataSetChanged();\n // restore\n this.listview.setSelectionFromTop(index, top);\n }",
"public List<EihApps> getListByQuery(SessionFactory factory, String query) {\n\t\treturn null;\n\t}",
"ObservableList<Appointment> getFilteredAppointmentList();",
"public static Collection getAllActivities() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getJobHandler().getAllActivities();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }",
"@GetMapping(\"/opportunities\")\n @Timed\n public List<OpportunityDTO> getAllOpportunities(@RequestParam(required = false) String filter) {\n if (\"proposal-is-null\".equals(filter)) {\n log.debug(\"REST request to get all Opportunitys where proposal is null\");\n return opportunityService.findAllWhereProposalIsNull();\n }\n log.debug(\"REST request to get all Opportunities\");\n return opportunityService.findAll();\n }",
"public void clearDefault() {\r\n \tfor (DisplayResolveInfo info : mList) {\r\n \t\tif (true == info.bDefault) {\r\n \t\t\tmPm.clearPackagePreferredActivities(info.ri.activityInfo.packageName);\r\n \t\t\tinfo.bDefault = false;\r\n \t\t} // End of if\r\n \t} // End of for \t\r\n }",
"public ArrayList<GamesItemHome> getTopAppsData() {\n\n ArrayList<GamesItemHome> data = new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + DATABASE_TABLE_TOP_APPS + \" ;\", null);\n StringBuffer stringBuffer = new StringBuffer();\n GamesItemHome gamesItem = null;\n while (cursor.moveToNext()) {\n gamesItem = new GamesItemHome();\n String id =cursor.getString(cursor.getColumnIndexOrThrow(\"_id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title\"));\n String category = cursor.getString(cursor.getColumnIndexOrThrow(\"category\"));\n String image = cursor.getString(cursor.getColumnIndexOrThrow(\"image\"));\n String featured_image= cursor.getString(cursor.getColumnIndexOrThrow(\"featured_image\"));\n\n gamesItem.setID(id);\n gamesItem.setTitle(title);\n gamesItem.setCategory(category);\n gamesItem.setImage(image);\n gamesItem.setFeautred_image(featured_image);\n\n stringBuffer.append(gamesItem);\n data.add(gamesItem);\n }\n\n\n return data;\n }",
"public List<Activity> getActivities() {\n getRoutesFromDao();\n updateOverridenRoutes();\n List<Activity> activities = new ArrayList<>();\n for(Route route: routes){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n for(Route route: overrideTeamRoutes.values()){\n if(route.getActivity().isExist()){\n activities.add(route.getActivity());\n }\n }\n Collections.sort(activities, (a,b) -> {\n return ActivityUtils.stringToTime(a.getDetail(Activity.DATE))\n .compareTo(ActivityUtils.stringToTime(b.getDetail(Activity.DATE)));\n });\n return activities;\n }",
"@GetMapping(\"/items\")\n public List<Items> getAllItems(@RequestParam(required = false) String filter) {\n if (\"reviewreveals-is-null\".equals(filter)) {\n log.debug(\"REST request to get all Itemss where reviewReveals is null\");\n return StreamSupport\n .stream(itemsRepository.findAll().spliterator(), false)\n .filter(items -> items.getReviewReveals() == null)\n .collect(Collectors.toList());\n }\n log.debug(\"REST request to get all Items\");\n return itemsRepository.findAll();\n }",
"private static List<? extends AForecast> extractDataForThePast(List<? extends AForecast> data) {\n return extractDataForDate(data, TimeUtil.convertDateFromISOString(data.get(0).getApplicableDate()));\n }",
"public ArrayList<PomoDaily> getDaily(String userId) {\r\n PomoServer server = new PomoServer();\r\n String parameters = PomoServer.MODE_SELECT + \"&\" + \"userid=\" + userId;\r\n String url = PomoServer.DOMAIN_URL + PomoServer.SERVLET_DAILY;\r\n String data = server.get(url, parameters);\r\n ArrayList<PomoDaily> list = new ArrayList<>();\r\n if (data.equals(\"0\")) {\r\n return list;\r\n }\r\n String[] dailies = data.split(\";\");\r\n for (String d : dailies) {\r\n String[] attributes = d.split(\"&\");\r\n String id = attributes[0];\r\n String date = attributes[1];\r\n int plan = Integer.parseInt(attributes[2]);\r\n list.add(new PomoDaily(id, date, plan, userId));\r\n }\r\n return list;\r\n }",
"@Override\r\npublic List<ThirdPartyAppsList> findAll()\r\n{\nArrayList<ThirdPartyAppsList> appsList = new ArrayList<>();\r\n//adding providers to the List\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"My Data My Health\" ,\"Naveen\",\"Regidtered since: Dec-2020\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Virtual Viewer\",\"Snow bound\",\"Regidtered since: Mar-2017\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"hapi.fhir\",\"Apache\",\"Regidtered since: June-2017\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Dummy Heading3\",\"Dummy Owner Name\",\"Regidtered since: Aug-2016\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Dummy Heading4\",\"Dummy Owner Name\",\"Regidtered since: Sep-2018\"));\r\nappsList.add(new ThirdPartyAppsList(\"15645367\",\"Aetna\",\"Dummy Heading5\",\"Owner Name\",\"Regidtered since: Oct-2019\"));\r\nreturn appsList;\r\n}",
"public List<Task> getCesarTasksExpiringToday() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\tcalendar.setTime(date);\n\t\tint dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\tList<Task> tasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDay(date,\n\t\t\t\tTVSchedulerConstants.CESAR, true);\n\t\tif (tasks.size() == 0) {\n\t\t\tTask task;\n\t\t\tswitch (dayOfWeek) {\n\t\t\tcase Calendar.SATURDAY:\n\t\t\t\ttask = new Task(\"Mettre la table\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Faire le piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"jeu de Société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.SUNDAY:\n\t\t\t\ttask = new Task(\"Faire du sport (piscine/footing)\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jouer tout seul\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jeu de société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"S'habiller\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.MONDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.TUESDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.WEDNESDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.THURSDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.FRIDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn tasks;\n\t}",
"public static ResultSet getAppointments(String currentDate,String partner){\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Appointment WHERE Date = ? AND Partner = ? ORDER BY Start ASC;\");\r\n\t\t\tstmt.setString(1, currentDate);\r\n\t\t\tstmt.setString(2, partner);\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}"
] | [
"0.58822685",
"0.5564602",
"0.5497081",
"0.54248565",
"0.53866327",
"0.5359508",
"0.5313191",
"0.52380764",
"0.51955503",
"0.51106405",
"0.50679994",
"0.5063675",
"0.5036909",
"0.5024673",
"0.5013088",
"0.49568895",
"0.49397525",
"0.49038208",
"0.4903632",
"0.48909327",
"0.48537093",
"0.4839383",
"0.48346102",
"0.48065192",
"0.48040363",
"0.47957718",
"0.47930434",
"0.47923535",
"0.47789744",
"0.47784898",
"0.47686982",
"0.47601378",
"0.4757728",
"0.47457868",
"0.47447848",
"0.4736403",
"0.47276548",
"0.47188574",
"0.47180852",
"0.47153145",
"0.4713925",
"0.47041908",
"0.46829993",
"0.4674056",
"0.46704832",
"0.46671817",
"0.46511",
"0.46457496",
"0.46449083",
"0.46385214",
"0.4625492",
"0.4623692",
"0.46197596",
"0.46116722",
"0.46016535",
"0.45952272",
"0.45914534",
"0.4575435",
"0.4570395",
"0.45586672",
"0.45562592",
"0.4545831",
"0.45447233",
"0.45431283",
"0.45425233",
"0.45356518",
"0.45347744",
"0.45257065",
"0.4525454",
"0.4523834",
"0.45226753",
"0.45211515",
"0.4520434",
"0.45192626",
"0.4512056",
"0.45056233",
"0.45038873",
"0.4503862",
"0.4498446",
"0.44945163",
"0.44931653",
"0.44864535",
"0.44825712",
"0.44802004",
"0.4474932",
"0.44742003",
"0.44699207",
"0.44691443",
"0.4465435",
"0.44628128",
"0.44625095",
"0.44619453",
"0.4461191",
"0.4452277",
"0.44443074",
"0.44359577",
"0.44349083",
"0.4434131",
"0.44330624",
"0.44260123"
] | 0.48166794 | 23 |
Load the data to the container_status table | public static void loadApiStatus(final int envId, String compName, int numOfApi) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
final int compId = getComponentIdFromCompName(compName);
if(compId == 0){
logger.info("Component Name = " + compName + "; is not available in the DB");
return;
}
int prevNumApis = getPreiousNumApis(compId, todayDate, envId);
final int deltaVal = prevNumApis == 0 ? 0 : numOfApi - prevNumApis;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
ApiStatusEntity apiStatus = new ApiStatusEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(envId);
apiStatus.setEnvironment(environment);
apiStatus.setStatusDate(todayDate);
ComponentEntity component = new ComponentEntity();
component.setComponentId(compId);
apiStatus.setComponent(component);
apiStatus.setTotalApi(numOfApi);
apiStatus.setDeltaValue(deltaVal);
session.save(apiStatus);
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadStatus (){\n\t}",
"public static void loadContainerStatus(final int envId, int compId, final int instanceNum) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n//\t\tfinal int compId = getComponentId(compName, parentCompName);\n//\t\tif(compId == 0){\n//\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n//\t\t\treturn 0;\n//\t\t}\n\n\t\tint prevNumInstance = getPreiousNumInstance(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumInstance == 0 ? 0 : instanceNum - prevNumInstance;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tContainerStatsEntity contStat = new ContainerStatsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatsDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tcontStat.setComponent(component);\n\t\tcontStat.setTotalContainer(instanceNum);\n\t\tcontStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"public void loadContainer() throws SQLException\n\t{\n\n\t\ttry \n\t\t{\n\t\t\tsuper.connect();\n\t\t\tsuper.configuationObjects.clear();\n\n\t\t\tResultSet rs1 = super.pst.executeQuery(sqlSelect1);\n\t\t\twhile (rs1.next())\n\t\t\t{\n\t\t\t\tInteger id \t\t\t= rs1.getInt(\"id\");\n\t\t String descr \t\t\t= rs1.getString(\"descr\");\n\t\t Integer deviceTypeId = rs1.getInt(\"device_type_id\");\n\t\t String ipAddress \t\t= rs1.getString(\"ip_address\");\n\t\t String macAddress \t\t= rs1.getString(\"mac_address\");\n\t\t String serial\t \t\t= rs1.getString(\"serial\");\n\t\t Timestamp timestamp \t= rs1.getTimestamp(\"create_date\");\n\t\t \t\t \n\t\t DeviceType deviceType = (DeviceType) this.getReferencedObject(\"DeviceType\", deviceTypeId);\n\t\t \n\t\t MonitoringDevice object = new MonitoringDevice(id);\n\t\t object.setDescr(descr);\n\t\t object.setIp_address(ipAddress);\n\t\t object.setMac_addres(macAddress);\n\t\t object.setSerial(serial);\n\t\t object.setType(deviceType);\n\t\t object.setCreate_date(timestamp.toLocalDateTime());\n\t\t \n\t\t super.configuationObjects.put(id, object);\n\t\t \n\t\t if (macAddress != null){\n\t\t\t if (!macAddress.isEmpty())\n\t\t\t \tindexByMac.put(macAddress,id);\n\t\t }\n\t\t \n\t\t if (ipAddress != null){\n\t\t\t if (!ipAddress.isEmpty())\n\t\t\t \tindexByIpAddress.put(ipAddress, id);\n\t\t }\n\t\t \n\t\t if (serial != null){\n\t\t\t if (!serial.isEmpty())\n\t\t\t \tindexBySerial.put(serial,id);\n\t\t }\n\t\t\t}\n\t\t\t\n\t\t\trs1.close();\n\t\t\t\n\t\t\tResultSet rs2 = super.pst.executeQuery(sqlSelect2);\n\t\t\twhile (rs2.next())\n\t\t\t{\t\t \n\n\t\t\t\tInteger id \t\t\t= rs2.getInt(\"id\"); \n\t\t String transformation\t= rs2.getString(\"transformation_text\");\n\t\t Integer deviceId \t= rs2.getInt(\"device_id\");\n\t\t Integer signalTypeId\t= rs2.getInt(\"signal_type_id\");\n\t\t String portLabel\t\t= rs2.getString(\"port_label\");\n\t\t Integer refreshTimeMs = rs2.getInt(\"refresh_time_ms\");\n\t\t Integer measuredEntityId = rs2.getInt(\"measured_entity_id\");\n\t\t \t\t \n\t\t MonitoringDevice device= (MonitoringDevice) this.getObject(deviceId);\n\t\t Signal signal = (Signal) this.getReferencedObject(\"Signal\", signalTypeId);\n\t\t \n\t\t InputOutputPort port = new InputOutputPort(id);\n\t\t port.setSignalType(signal);\n\t\t port.setTransformationText(transformation);\n\t\t port.setPortLabel(portLabel);\n\t\t port.setMeasuringEntity(measuredEntityId);\n\t\t port.setRefreshTimeMs(refreshTimeMs);\n\t\t \n\t\t device.putInputOutputPort(port);\n\t\t\t}\n\t\t\t\n\t\t\trs2.close();\n\t\t\t\n\t\t\tsuper.disconnect();\n\t\t\t\n\t\t} catch (ClassNotFoundException e){\n \tString error = \"Could not find the driver class - Error\" + e.getMessage(); \n \tlogger.error(error);\n \te.printStackTrace();\n \tthrow new SQLException(error);\n } catch (SQLException e) {\n \tString error = \"Container:\" + this.getClass().getName() + \"Error connecting to the database - error:\" + e.getMessage();\n \tlogger.error(error);\n \te.printStackTrace(); \t\n \tthrow new SQLException(error);\n }\n\t\t\n\t}",
"public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sApiStatusEntity apiStatus = new K8sApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void preOperation(\n Map<String, Object> req, String userId, Map<String, Integer> contentStateHolder)\n throws ParseException {\n\n SimpleDateFormat simpleDateFormat = ProjectUtil.getDateFormatter();\n simpleDateFormat.setLenient(false);\n\n Util.DbInfo dbInfo = Util.dbInfoMap.get(JsonKey.LEARNER_CONTENT_DB);\n req.put(JsonKey.ID, generatePrimaryKey(req, userId));\n contentStateHolder.put(\n (String) req.get(JsonKey.ID), ((BigInteger) req.get(JsonKey.STATUS)).intValue());\n Response response =\n cassandraOperation.getRecordById(\n dbInfo.getKeySpace(), dbInfo.getTableName(), (String) req.get(JsonKey.ID));\n\n List<Map<String, Object>> resultList =\n (List<Map<String, Object>>) response.getResult().get(JsonKey.RESPONSE);\n\n if (!(resultList.isEmpty())) {\n Map<String, Object> result = resultList.get(0);\n int currentStatus = (int) result.get(JsonKey.STATUS);\n int requestedStatus = ((BigInteger) req.get(JsonKey.STATUS)).intValue();\n\n Integer currentProgressStatus = 0;\n if (isNotNull(result.get(JsonKey.CONTENT_PROGRESS))) {\n currentProgressStatus = (Integer) result.get(JsonKey.CONTENT_PROGRESS);\n }\n if (isNotNull(req.get(JsonKey.CONTENT_PROGRESS))) {\n Integer requestedProgressStatus =\n ((BigInteger) req.get(JsonKey.CONTENT_PROGRESS)).intValue();\n if (requestedProgressStatus > currentProgressStatus) {\n req.put(JsonKey.CONTENT_PROGRESS, requestedProgressStatus);\n } else {\n req.put(JsonKey.CONTENT_PROGRESS, currentProgressStatus);\n }\n } else {\n req.put(JsonKey.CONTENT_PROGRESS, currentProgressStatus);\n }\n\n Date accessTime = parseDate(result.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n Date requestAccessTime = parseDate(req.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n\n Date completedDate = parseDate(result.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n Date requestCompletedTime = parseDate(req.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n\n int completedCount;\n if (!(isNullCheck(result.get(JsonKey.COMPLETED_COUNT)))) {\n completedCount = (int) result.get(JsonKey.COMPLETED_COUNT);\n } else {\n completedCount = 0;\n }\n int viewCount;\n if (!(isNullCheck(result.get(JsonKey.VIEW_COUNT)))) {\n viewCount = (int) result.get(JsonKey.VIEW_COUNT);\n } else {\n viewCount = 0;\n }\n\n if (requestedStatus >= currentStatus) {\n req.put(JsonKey.STATUS, requestedStatus);\n if (requestedStatus == 2) {\n req.put(JsonKey.COMPLETED_COUNT, completedCount + 1);\n req.put(JsonKey.LAST_COMPLETED_TIME, compareTime(completedDate, requestCompletedTime));\n } else {\n req.put(JsonKey.COMPLETED_COUNT, completedCount);\n }\n req.put(JsonKey.VIEW_COUNT, viewCount + 1);\n req.put(JsonKey.LAST_ACCESS_TIME, compareTime(accessTime, requestAccessTime));\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n\n } else {\n req.put(JsonKey.STATUS, currentStatus);\n req.put(JsonKey.VIEW_COUNT, viewCount + 1);\n req.put(JsonKey.LAST_ACCESS_TIME, compareTime(accessTime, requestAccessTime));\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n req.put(JsonKey.COMPLETED_COUNT, completedCount);\n }\n\n } else {\n // IT IS NEW CONTENT SIMPLY ADD IT\n Date requestCompletedTime = parseDate(req.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n if (null != req.get(JsonKey.STATUS)) {\n int requestedStatus = ((BigInteger) req.get(JsonKey.STATUS)).intValue();\n req.put(JsonKey.STATUS, requestedStatus);\n if (requestedStatus == 2) {\n req.put(JsonKey.COMPLETED_COUNT, 1);\n req.put(JsonKey.LAST_COMPLETED_TIME, compareTime(null, requestCompletedTime));\n req.put(JsonKey.COMPLETED_COUNT, 1);\n } else {\n req.put(JsonKey.COMPLETED_COUNT, 0);\n }\n\n } else {\n req.put(JsonKey.STATUS, ProjectUtil.ProgressStatus.NOT_STARTED.getValue());\n req.put(JsonKey.COMPLETED_COUNT, 0);\n }\n\n int progressStatus = 0;\n if (isNotNull(req.get(JsonKey.CONTENT_PROGRESS))) {\n progressStatus = ((BigInteger) req.get(JsonKey.CONTENT_PROGRESS)).intValue();\n }\n req.put(JsonKey.CONTENT_PROGRESS, progressStatus);\n\n req.put(JsonKey.VIEW_COUNT, 1);\n Date requestAccessTime = parseDate(req.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n\n if (requestAccessTime != null) {\n req.put(JsonKey.LAST_ACCESS_TIME, (String) req.get(JsonKey.LAST_ACCESS_TIME));\n } else {\n req.put(JsonKey.LAST_ACCESS_TIME, ProjectUtil.getFormattedDate());\n }\n }\n }",
"@Override\n public void load(String filename, DatasourceSchema datasourceSchema)\n throws BigQueryLoaderException {\n GcsFileToBqTableLoader gcsFileToBqTableLoader = new GcsFileToBqTableLoader(\n bigQueryRepository, filename, datasourceSchema);\n gcsFileToBqTableLoader.load();\n\n // 2- crée la table si elle n'existe pas\n if (bigQueryRepository.tableExists(datasourceSchema.getTableId())) {\n LOGGER.info(\"Table \" + datasourceSchema.getFullTableName() + \" already exists\");\n } else {\n try {\n bigQueryRepository\n .runDDLQuery(\"CREATE TABLE \" + datasourceSchema.getFullTableName() + \" AS \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM \" + datasourceSchema\n .getFullTableTmpName() + \" LIMIT 0\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot create table \" + datasourceSchema.getFullTableTmpName(), e);\n }\n }\n\n // 3- déverse tout la table cible avec le champ load date time\n try {\n bigQueryRepository.runDDLQuery(\"INSERT INTO `\" + datasourceSchema.getFullTableName() + \"` \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM `\" + datasourceSchema\n .getFullTableTmpName() + \"`\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot insert from \" + datasourceSchema.getFullTableTmpName()\n + \" into destination table \" + datasourceSchema.getFullTableName(), e);\n }\n\n // 4- drop la table temporaire\n bigQueryRepository.dropTable(datasourceSchema.getTmpTableId());\n }",
"public void loadStatus() {\r\n\r\n\t\ttry {\r\n\t\t\tRemoteOffice objRemoteOffice = Application.UNITY_CLIENT_APPLICATION.getreRemoteOffice();\r\n\t\t\tif (objRemoteOffice != null) {\r\n\t\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"Going to load the status of the components from broadworks.\");\r\n\r\n\t\t\t\tboolean isActive = objRemoteOffice.isActive();\r\n\t\t\t\tString phnumber = objRemoteOffice.getPhoneNumber();\r\n\t\t\t\tobjRemoteOfficeEnableJCheckBox.setSelected(isActive);\r\n\t\t\t\tobjRemoteOfficeJTextField.setText(phnumber);\r\n\r\n\t\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(true);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(false);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"component status loaded successfully\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"component status not loaded successfully\");\r\n\t\t}\r\n\t}",
"private void loadRecords() {\r\n\t\tpanContent.updateContent();\r\n\t}",
"private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"void onContainerStatusReceived(ContainerId containerId,\n ContainerStatus containerStatus);",
"void onGetContainerStatusError(ContainerId containerId, Throwable t);",
"public void initLoadTable(){\n movies.clear();\n try {\n Connection conn = ConnectionFactory.getConnection();\n try (Statement stmt = conn.createStatement()) {\n String str=\"select title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,img from movies \";\n ResultSet rs= stmt.executeQuery(str);\n while(rs.next()){\n String title=rs.getString(\"title\");\n String director=rs.getString(\"director\");\n int prodYear=rs.getInt(\"prodYear\");\n boolean lent=rs.getBoolean(\"lent\"); \n int lentCount=rs.getInt(\"lentCount\");\n boolean original=rs.getBoolean(\"original\");\n String storageType=rs.getString(\"storageType\");\n int movieLength=rs.getInt(\"movieLength\");\n String mainCast=rs.getString(\"mainCast\");\n Blob blob = rs.getBlob(\"img\");\n InputStream inputStream = blob.getBinaryStream();\n OutputStream outputStream = new FileOutputStream(\"resources/\"+title+director+\".jpg\");\n int bytesRead = -1;\n byte[] buffer = new byte[1];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n inputStream.close();\n outputStream.close();\n System.out.println(\"File saved\"); \n File image = new File(\"resources/\"+title+director+\".jpg\");\n \n movies.add(new Movie(title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,image));\n }\n rs.close();\n stmt.close(); \n }\n conn.close();\n } catch (Exception ex) {\n System.err.println(ex.toString());\n } \n \n fireTableDataChanged();\n }",
"private void populateStatus() {\n\t\t\n\t\tstatusList.add(new Status(MainActivity.profileUrls[1], \"Mohamed\", \"14 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[4], \"Ahmed Adel\", \"10 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[0], \"Manar\", \"Yesterday, 5:08 PM\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[5], \"Ramadan\", \"Today, 10:30 AM\"));\n\t\t\n\t}",
"void setDataStatus(String dataStatus);",
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"@GET\n \t@Path(\"/getAllConceptStatus\")\n \t@Produces({MediaType.APPLICATION_JSON})\n \tpublic ExtJsonFormLoadData<List<GenericStatusView>> getAllConceptStatus() throws BusinessException {\n \t\tList<GenericStatusView> listOfStatus = new ArrayList<GenericStatusView>();\n \t\t\n \t\ttry {\n \t\t\tResourceBundle res = ResourceBundle.getBundle(\"labels\", new EncodedControl(\"UTF-8\"));\n \t\t\tString availableStatusIds[] = res.getString(\"concept-status\").split(\",\");\n \t\t\t\n \t\t\tif (\"\".equals(availableStatusIds[0])) {\n \t\t\t\t//Ids of status for concepts are not set correctly\n \t\t\t\tthrow new BusinessException(\"Error with property file - check values of identifier concept status\", \"check-values-of-concept-status\");\n \t\t\t}\n \t\t\t\n \t for (String id : availableStatusIds) {\n \t \tGenericStatusView conceptStatusView = new GenericStatusView();\n\t \tconceptStatusView.setStatus(Integer.valueOf(id));\n \t \t\n \t \tString label = res.getString(\"concept-status[\"+ id +\"]\");\n \t \tif (label.isEmpty()) {\n \t \t\t//Labels of status are not set correctly\n \t \t\tthrow new BusinessException(\"Error with property file - check values of identifier concept status\", \"check-values-of-concept-status\");\n \t\t\t\t} else {\n \t\t\t\t\tconceptStatusView.setStatusLabel(label);\n \t\t\t\t}\n \t \tlistOfStatus.add(conceptStatusView);\n \t\t\t}\n \t\t} catch (MissingResourceException e) {\n \t\t\tthrow new BusinessException(\"Error with property file - check values of concept status\", \"check-values-of-concept-status\", e);\n \t\t}\n \t\tExtJsonFormLoadData<List<GenericStatusView>> result = new ExtJsonFormLoadData<List<GenericStatusView>>(listOfStatus);\n result.setTotal((long) listOfStatus.size());\n \t\treturn result;\n \t}",
"private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }",
"private void monitorHBase() {\n if (hadoopRetrieveService == null) {\n return;\n }\n // logger.info(\"Checking Hbase health status ...\");\n List<PVTypeInfo> pvInfos = new ArrayList<>(aaRetrieveService.getAllPVInfo());\n if (pvInfos.isEmpty()) {\n // logger.info(\"No archving PV.\");\n return;\n }\n // Use the first PV for the checking\n String pv = pvInfos.get(0).getPvName();\n Calendar end = Calendar.getInstance();\n end.setTime(new Date());\n end.add(Calendar.YEAR, -10);\n Calendar start = Calendar.getInstance();\n start.setTime(end.getTime());\n start.add(Calendar.MINUTE, -30);\n try {\n hadoopRetrieveService.getData(pv, new Timestamp(start.getTime().getTime()),\n new Timestamp(end.getTime().getTime()), PostProcessing.FIRSTSAMPLE, 60, false, 1.0);\n } catch (IOException e) {\n logger.warn(\"HBase is down.\");\n hadoopRetrieveService = null;\n scheduledService.scheduleAtFixedRate(() -> reInitializeHBase(), 1000,\n SiteConfigUtil.getHbaseCheckingInterval(), TimeUnit.MILLISECONDS);\n }\n }",
"public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"public void setrowStatus(Integer value){\n\t}",
"protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }",
"private void loadData(){\n Dh.refresh();\n }",
"public abstract void onContainerStatusReceived(ContainerId containerId,\n ContainerStatus containerStatus);",
"private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }",
"private void updateMetrics(ContainerStatus status) {\n if (status != null) {\n switch (status.getExitStatus()) {\n case SUCCESS:\n componentMetrics.containersSucceeded.incr();\n scheduler.getServiceMetrics().containersSucceeded.incr();\n return;\n case PREEMPTED:\n componentMetrics.containersPreempted.incr();\n scheduler.getServiceMetrics().containersPreempted.incr();\n break;\n case DISKS_FAILED:\n componentMetrics.containersDiskFailure.incr();\n scheduler.getServiceMetrics().containersDiskFailure.incr();\n break;\n default:\n break;\n }\n }\n\n // containersFailed include preempted, disks_failed etc.\n componentMetrics.containersFailed.incr();\n scheduler.getServiceMetrics().containersFailed.incr();\n\n if (status != null && Apps.shouldCountTowardsNodeBlacklisting(\n status.getExitStatus())) {\n String host = scheduler.getLiveInstances().get(status.getContainerId())\n .getNodeId().getHost();\n failureTracker.incNodeFailure(host);\n currentContainerFailure.getAndIncrement();\n }\n }",
"public abstract void onGetContainerStatusError(\n ContainerId containerId, Throwable t);",
"protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }",
"public void setStatus(byte[] status) {\r\n this.status = status;\r\n }",
"public void starttestDBStatus(\r\n org.tempuri.HISWebServiceStub.TestDBStatus testDBStatus54,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[27].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/TestDBStatus\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n testDBStatus54,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"testDBStatus\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"TestDBStatus\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.TestDBStatusResponse.class);\r\n callback.receiveResulttestDBStatus((org.tempuri.HISWebServiceStub.TestDBStatusResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrortestDBStatus(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"TestDBStatus\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"TestDBStatus\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"TestDBStatus\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrortestDBStatus(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrortestDBStatus(f);\r\n }\r\n } else {\r\n callback.receiveErrortestDBStatus(f);\r\n }\r\n } else {\r\n callback.receiveErrortestDBStatus(f);\r\n }\r\n } else {\r\n callback.receiveErrortestDBStatus(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrortestDBStatus(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[27].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[27].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }",
"public void setStatus(BatchStatus value) {\n this.status = value;\n }",
"public static List getStatusList() \n {\n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"select status from Alumni_data group by status\").list();\n session.close();\n return li;\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"private void reDrowStatusCard() {\n \t\tint currentInstance= Storage_access.getCurrentProjectInstanceBDDID() ;\n \t\t\n \t\tdispatcher.execute(new GetActivityStateAction(currentInstance), new AsyncCallback<GetActivityStateActionResult>() {\n \n \t\n \n \t\t\t@Override public void onFailure(Throwable arg0) {\n \t\t\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!!!**** failed to get activities status\");\n \n \t\t\t}\n \n \t\t\t@Override public void onSuccess(GetActivityStateActionResult result) {\n \t\t\t\tfor (int i=0; i< Storage_access.getNumberOfCard(); i++) {\n \t\t\t\t\tString card = Storage_access.getCard(i);\n \t\t\t\t\tActivityState_dto a = result.getActivitiesState().get(\"\"+Storage_access.getBddIdCard(card));\n \t\t\t\t\tif (a == null) \n \t\t\t\t\t\tStorage_access.revoveFromSlot(i);\t\n \t\t\t\t\telse \n \t\t\t\t\t\tStorage_access.setSlotCard(i, a.getDay(), a.getPeriod());\t\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\teventBus.fireEvent( \n \t\t\t\t\t\tnew BoardViewChangedEvent(getView().getCombo_viewChoice1().getSelectedIndex(),\n \t\t\t\t\t\t\t\t\t\t\t\t getView().getCombo_viewChoice2().getSelectedIndex())\n \t\t\t\t\t\t);\n \t\t\t\t//Storage_access.printStorage();\n \t\t\t}\n \n \t\t\t});\n \n \t\t\n \t}",
"protected void init_status(String id) {\n\t\tstatus.put(id, 1);\n\t\t\n\t}",
"private void loadDescribedTemplateData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> DescribedTemplateCore.loadDescribedTemplateData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n String strDTNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n\r\n // acquire described template info; note: template to described_template is 1 to many, so from described_template to template is 1:1\r\n resultSet = statement.executeQuery( \"SELECT fk_version_set, fk_template, description_hash, synchronized, hash, enabled, steps \" +\r\n \"FROM described_template \" +\r\n \"JOIN template ON fk_template = pk_template \" +\r\n \"WHERE pk_described_template = \" + strDTNum );\r\n\r\n if ( resultSet.next() ) {\r\n dbDescribedTemplate.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n dbDescribedTemplate.fk_template = resultSet.getLong(\"fk_template\");\r\n dbDescribedTemplate.description_hash = resultSet.getBytes(\"description_hash\");\r\n dbDescribedTemplate.dtSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.template_hash = resultSet.getBytes(\"hash\");\r\n dbDescribedTemplate.enabled = resultSet.getBoolean(\"enabled\");\r\n dbDescribedTemplate.steps = resultSet.getString(\"steps\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads data from described template record \" + pk_described_template);\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n } else {\r\n throw new Exception(\"described template data not present\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // acquire matching run info\r\n try {\r\n String strTemplateNum = String.valueOf(dbDescribedTemplate.fk_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_run, artifacts, start_time, ready_time, end_time, passed \" +\r\n \"FROM run \" +\r\n \"WHERE fk_template = \" + strTemplateNum );\r\n while ( resultSet.next() ) {\r\n DBRun dbRun = new DBRun(resultSet.getLong(\"pk_run\"));\r\n dbRun.artifacts = resultSet.getBytes(\"artifacts\");\r\n dbRun.start_time = resultSet.getDate(\"start_time\");\r\n dbRun.ready_time = resultSet.getDate(\"ready_time\");\r\n dbRun.end_time = resultSet.getDate(\"end_time\");\r\n dbRun.passed = resultSet.getBoolean(\"passed\");\r\n dbDescribedTemplate.pkdtToDBRun.put(pk_described_template, dbRun);\r\n System.out.println(\" <internal> TemplateCore.loadTemplateData() loads data from described_template-matched run record \" + dbRun.pk_run);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n \r\n // acquire matching test_instance info; note: described_template to test_instance is 1:1\r\n try {\r\n String strDescribedTemplateNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_test_instance, fk_run, due_date, phase, synchronized \" +\r\n \"FROM test_instance \" +\r\n \"WHERE fk_described_template = \" + strDescribedTemplateNum);\r\n while ( resultSet.next() ) {\r\n DBTestInstance dbTestInstance = new DBTestInstance(resultSet.getLong(\"pk_test_instance\"));\r\n dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n dbTestInstance.iSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.pkdtToDBTestInstance.put(pk_described_template, dbTestInstance);\r\n System.out.println(\" <internal> TemplateCore.loadDescribedTemplateData() loads data from described_template-matched test_instance record \" + dbTestInstance.pk_test_instance);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n\r\n // acquire corresponding multiple lines of data\r\n try {\r\n String strPKDT = String.valueOf(dbDescribedTemplate.pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n \"FROM dt_line \" +\r\n \"WHERE fk_described_template = \" + strPKDT );\r\n while ( resultSet.next() ) {\r\n DBDTLine dtLine = new DBDTLine();\r\n dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n dtLine.line = resultSet.getInt(\"line\");\r\n dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n\r\n dbDescribedTemplate.pkdtToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n \"FROM artifact_to_dt_line \" +\r\n \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n \"WHERE fk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n dtLine.reason = resultSet.getString(\"reason\");\r\n dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding version information; not every dtLine has corresponding version information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n \"FROM version \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.version = resultSet.getString(\"version\");\r\n dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding content information; not every dtLine has corresponding content information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n \"FROM content \" +\r\n \"JOIN artifact ON fk_content = pk_content \" +\r\n \"WHERE pk_artifact = \" + strPKArtifact );\r\n if ( resultSet.next() ) {\r\n dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding component information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT name \" +\r\n \"FROM component \" +\r\n \"JOIN version ON fk_component = pk_component \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.componentName = resultSet.getString(\"name\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n }\r\n\r\n // get corresponding resource information; not every dtLine has corresponding resource information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n \"FROM dt_line \" +\r\n \"JOIN resource ON fk_resource = pk_resource \" +\r\n \"WHERE pk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n dtLine.resourceName = resultSet.getString(\"name\");\r\n dtLine.resourceDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n }",
"public DacGetStatusResponse() {\n super();\n this.setStatusInfoList(new LazyArrayList<StatusInfo>());\n }",
"private synchronized void performOperations() {\r\n\t\ttry {\r\n\t\t\tswitch (operationStatus) {\r\n\t\t\tcase TRUNCATE_DATA:\r\n\t\t\t\tHibernateUtil.rawQuery(\"TRUNCATE csv;\");\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\tcase APPEND_DATA:\r\n\t\t\t\tparseData(false);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase UPDATE_DATA:\r\n\t\t\t\tparseData(true);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase ARRANGE_DATA:\r\n\t\t\t\tarrangeData();\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public ScreenStatus(ComponentContainer container) {\n\t\tsuper(container);\n\t\t// TODO Auto-generated constructor stub\n\t\tform.registerForOnDestroy(this);\n\t\t \n\t\tmainUIThreadActivity = container.$context();\n\t\tLog.i(TAG, \"Before create probe\");\n\t\tgson = new GsonBuilder().registerTypeAdapterFactory(\n\t\t\t\tFunfManager.getProbeFactory(mainUIThreadActivity)).create();\n\t\tJsonObject config = new JsonObject();\n\n\t\tprobe = gson.fromJson(config, ScreenProbe.class);\n\n\t\tinterval = SCHEDULE_INTERVAL;\n\t\tduration = SCHEDULE_DURATION;\n\t\t\t\n\t}",
"private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n loadStates();\n } catch ( final IOException e ) {\n throw new RuntimeException( e );\n }\n }\n }).start();\n }",
"void setContainerStatusInProgress(RuleContextContainer rccContext)\r\n throws StorageProviderException;",
"public CreateStatus(DataMap data)\n {\n super(data, null);\n }",
"private void loadMasterData()\r\n\t{\r\n\t\tlistOfMasterStud.clear();\r\n\t\tString qu = \"SELECT * FROM MASTERSTUDENT\";\r\n\t\tResultSet resultM = databaseHandler.execQuery(qu);\r\n\t\ttry {\r\n\t\t\t// retrieve student information form database\r\n\t\t\twhile(resultM.next())\r\n\t\t\t{\r\n\t\t\t\tString studIDM = resultM.getString(\"studentNoM\");\r\n\t\t\t\tString studNameM = resultM.getString(\"nameM\");\r\n\t\t\t\tString studSurnameM = resultM.getString(\"surnameM\");\r\n\t\t\t\tString studSupervisorM = resultM.getString(\"supervisorM\");\r\n\t\t\t\tString studEmailM = resultM.getString(\"emailM\");\r\n\t\t\t\tString studCellphoneM = resultM.getString(\"cellphoneNoM\");\r\n\t\t\t\tString studStationM = resultM.getString(\"stationM\");\r\n\t\t\t\tString studCourseM = resultM.getString(\"courseM\");\r\n\r\n\t\t\t\tlistOfMasterStud.add(new StudentProperty(studIDM, studNameM, studSurnameM,\r\n\t\t\t\t\t\tstudSupervisorM, studEmailM, studCellphoneM, studStationM, studCourseM));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tmasterStudTable.setItems(listOfMasterStud);\r\n\t}",
"private void loadData(){\n updateDateTimeText();\n\n mLoadingDialog = DialogUtil.createLoadingDialog(getActivity(), getString(R.string.loading_dialog_in_progress));\n mLoadingDialog.show();\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }",
"private void loadDataOnFirst(){\n updateDateTimeText();\n\n mPbLoading.setVisibility(View.VISIBLE);\n mCalendarListView.setVisibility(View.GONE);\n\n // Call API to get the schedules\n mPresenter.loadAllExaminationSchedulesForSpecificDate(mMyDate.generateDateString(AppConstants.DATE_FORMAT_YYYY_MM_DD));\n }",
"private static void statusCommand() {\n String lineFormat = \"%-8s | %-15s | %s\\n\";\n\n List<Job> neededJobs = fetchNeededJobs();\n\n // table header\n if (neededJobs.size() < 2) {\n System.out.printf(lineFormat, \"STATE\", \"START TIME\", \"JOB DIRECTORY\");\n for (int i = 0; i < 78; i++) {\n System.out.print(((9 == i || 27 == i) ? \"+\" : \"-\"));\n }\n System.out.println();\n }\n\n // table rows\n ObjectCounter<JobState> counter = new ObjectCounter<JobState>();\n for (Job job : neededJobs) {\n Date startDate = job.getStartDate();\n JobState state = job.getState();\n counter.add(state);\n String startDateStr = (null == startDate) ? \"N/A\" : new SimpleDateFormat(\"yyyyMMdd HHmmss\").format(startDate);\n System.out.printf(lineFormat, state.toString(), startDateStr, job.getDir());\n }\n\n // table footer\n System.out.println();\n String sumFormat = \"%6d %s\\n\";\n System.out.printf(sumFormat, heritrix.getJobs().size(), \"TOTAL JOBS\");\n for (JobState state : JobState.values()) {\n if (counter.getMap().keySet().contains(state)) {\n System.out.printf(sumFormat, counter.get(state), state.toString());\n }\n }\n }",
"private void getStatus() {\n\t\t\n\t}",
"public void loadExistingRecords_old(){\n\nString selectAllRecords = \" select URP_ID, \\n\" +\n\" (select DNAME from DEPARTMENTS WHERE DID in ( DEPTID )) as 'Department' ,\\n\" +\n\" (select RSNAME from RESOURCE WHERE RSID in ( RESID )) as 'Resource' , (select RoleName from userRoles WHERE Role_ID in ( ROLE )) AS 'Role' ,\t\\n\" +\n\" CASE WHEN `READ` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Read' ,\tCASE WHEN `EDIT` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Edit' ,\tCASE \\n\" +\n\" WHEN `DISABLE` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Disable' ,\tCASE WHEN `EXPORT` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Export' ,\tCASE \\n\" +\n\" WHEN `CREATENEW` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Create' ,\tCASE WHEN `IMPORT` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Import', CASE WHEN `ACCESS_ON_MOBILE` = 1 THEN 'Yes' ELSE 'No' END AS 'Can Access Mobile' from USERROLEPERM \" ;\n\n ResultSet rs = DB_Operations.executeSingle ( selectAllRecords ) ;\n \n try{\n \n ResultSetMetaData metaData = rs.getMetaData ();\n // names of columns\n Vector<String> columnNames = new Vector<String> ();\n int columnCount = metaData.getColumnCount ();\n for ( int column = 1 ; column <= columnCount ; column ++ ) {\n columnNames.add ( metaData.getColumnName ( column ) );\n }\n\n // data of the table\n Vector<Vector<Object>> data = new Vector<Vector<Object>> ();\n while ( rs.next () ) {\n\n Vector<Object> vector = new Vector<Object> ();\n for ( int columnIndex = 1 ; columnIndex <= columnCount ; columnIndex ++ ) {\n vector.add ( rs.getObject ( columnIndex ) );\n }\n data.add ( vector );\n }\n \n jTable1.setModel( new DefaultTableModel ( data, columnNames ) ) ;\n jTable1.getColumnModel ().getColumn ( 0 ).setMinWidth ( 0 );\n jTable1.getColumnModel ().getColumn ( 0 ).setMaxWidth ( 0 );\n \n \n }catch(SQLException e){\n StaticValues.writer.writeExcel ( UserRolePermissionMaster.class.getSimpleName () , UserRolePermissionMaster.class.getSimpleName () , e.getClass ().toString () , Thread.currentThread ().getStackTrace ()[ 1 ].getLineNumber () + \"\" , e.getMessage () , StaticValues.sdf2.format ( Calendar.getInstance ().getTime () ) ); \n }\n }",
"protected abstract void loadData();",
"private void loadTestInstanceData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> TemplateCore.loadTestInstanceData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n// try {\r\n// String strINum = String.valueOf(pk_test_instance);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT fk_described_template, fk_run, due_date, phase, test_instance.synchronized, fk_version_set, fk_template, description_hash, described_template.synchronized, hash, enabled, steps \" +\r\n// \"FROM test_instance \" +\r\n// \"JOIN described_template ON fk_described_template = pk_described_template \" +\r\n// \"JOIN template ON fk_template = pk_test_instance \" +\r\n// \"WHERE pk_test_instance = \" + strINum );\r\n // everything in this query is 1:1 relationship, so resultSet has exactly 1 or 0 entry\r\n\r\n// if ( resultSet.next() ) {\r\n// dbTestInstance.pk_described_template = resultSet.getLong(\"fk_described_template\"); // null entry returns 0\r\n// dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n// dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n// dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n// dbTestInstance.iSynchronized = resultSet.getBoolean(\"test_instance.synchronized\");\r\n//\r\n// dbTestInstance.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n// dbTestInstance.fk_template = resultSet.getLong(\"fk_template\"); // null entry returns 0\r\n// dbTestInstance.description_hash = resultSet.getBytes(\"description_hash\");\r\n// dbTestInstance.dtSynchronized = resultSet.getBoolean(\"described_template.synchronized\");\r\n//\r\n// dbTestInstance.template_hash = resultSet.getBytes(\"hash\");\r\n// dbTestInstance.enabled = resultSet.getBoolean(\"enabled\");\r\n// dbTestInstance.steps = resultSet.getString(\"steps\");\r\n//\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads 1:1 data from test_instance \" + dbTestInstance.pk_test_instance + \", pk_described_template \" + dbTestInstance.pk_described_template +\r\n// \", pk_test_instance \" + dbTestInstance.fk_template + (dbTestInstance.fk_run!=0 ? \", TEST RESULT ALREADY STORED\" : \"\"));\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// } else {\r\n// throw new Exception(\"instance data not present\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding multiple lines of data\r\n// try {\r\n// String strPKDT = String.valueOf(dbTestInstance.pk_described_template);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n// \"FROM dt_line \" +\r\n// \"WHERE fk_described_template = \" + strPKDT );\r\n// while ( resultSet.next() ) {\r\n// DBDTLine dtLine = new DBDTLine();\r\n// dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n// dtLine.line = resultSet.getInt(\"line\");\r\n// dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// dbTestInstance.pkToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n// \"FROM artifact_to_dt_line \" +\r\n// \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n// \"WHERE fk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n// dtLine.reason = resultSet.getString(\"reason\");\r\n// dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n// dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding version information; not every dtLine has corresponding version information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n// \"FROM version \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.version = resultSet.getString(\"version\");\r\n// dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n// dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n// dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding content information; not every dtLine has corresponding content information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n// \"FROM content \" +\r\n// \"JOIN artifact ON fk_content = pk_content \" +\r\n// \"WHERE pk_artifact = \" + strPKArtifact );\r\n// if ( resultSet.next() ) {\r\n// dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n// dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding component information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT name \" +\r\n// \"FROM component \" +\r\n// \"JOIN version ON fk_component = pk_component \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.componentName = resultSet.getString(\"name\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// }\r\n//\r\n// // get corresponding resource information; not every dtLine has corresponding resource information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n// \"FROM dt_line \" +\r\n// \"JOIN resource ON fk_resource = pk_resource \" +\r\n// \"WHERE pk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n// dtLine.resourceName = resultSet.getString(\"name\");\r\n// dtLine.resourceDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n }",
"private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}",
"public void reloadPackagingContainerTab3(int planId) {\n\n Helper.startSession();\n String query_str = String.format(\n HQLHelper.GET_LOAD_PLAN_EXT_PACKAGING_AND_CONTAINER,\n planId, planId);\n SQLQuery query = Helper.sess.createSQLQuery(query_str);\n\n query.addScalar(\"destination\", StandardBasicTypes.STRING);\n query.addScalar(\"pack_item\", StandardBasicTypes.STRING);\n query.addScalar(\"quantity\", StandardBasicTypes.DOUBLE);\n\n List<Object[]> result = query.list();\n Helper.sess.getTransaction().commit();\n\n System.out.println(\"result lines \" + result.size());\n\n //Reset table content\n total_packages_data = new Vector();\n total_packages_header = new Vector<String>() {\n };\n total_packages_header.add(\"Destination\");\n total_packages_header.add(\"Pack Item\");\n total_packages_header.add(\"Quantity\");\n\n jtable_total_packages.setModel(new DefaultTableModel(total_packages_data, total_packages_header));\n\n //Populate jtable rows\n for (Object[] o : result) {\n Vector<Object> oneRow = new Vector<Object>();\n oneRow.add((String) o[0]);\n oneRow.add((String) o[1]);\n oneRow.add(String.valueOf(String.format(\"%1$,.2f\", Double.valueOf(o[2].toString()))));\n System.out.println(\"one row \" + oneRow.toString());\n total_packages_data.add(oneRow);\n }\n\n System.out.println(\"reloadPackagingContainerTab3 query Total packaging \\n\\n\" + query_str);\n jtable_total_packages.setModel(new DefaultTableModel(total_packages_data, total_packages_header));\n setTotalPackagingTableRowsStyle();\n\n }",
"public void mDeptLocationStatuses() {\n System.out.println(\"Inside mDeptLocationStatuses\");\n PersistenceManager pm = PMF.get().getPersistenceManager(); \n mDeptLocationStatuses.clear();\n for (int d=0; d<mDeptLocations.size(); d++) {\n System.out.println(\"mDeptLocation qty: \" + mDeptLocations.size());\n// dLocationStatuses.clear();\n if (mDeptLocations.get(d) != null) {\n for (int l=0; l<mDeptLocations.get(d).size(); l++) {\n List<Status> dLocationStatuses = new ArrayList<Status>();\n List<Long> keys = new ArrayList<Long>();\n keys.addAll(mDeptLocations.get(d).get(l).getstatusKeys());\n Query q = pm.newQuery(Status.class, \":p.contains(id)\");\n dLocationStatuses.addAll((List<Status>) pm.newQuery(q).execute(keys)); \n mDeptLocationStatuses.put(mDeptLocations.get(d).get(l).getid(), dLocationStatuses);\n System.out.println(\"dLocationStatuses in deptLocStat: \" + dLocationStatuses.size());\n }\n }\n }\n System.out.println(\"mDeptLocationStatuses qty: \" + mDeptLocationStatuses.size());\n System.out.println(\"Exit: mDeptLocationStatuses\");\n }",
"void fetchStartHousesData();",
"protected void loadData()\n {\n }",
"@Override\r\n\tpublic void onLoad() {\n\t\tRunnable onLoadCallback = new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tTable table = new Table(createTable(), createOptions());\r\n\t\t\t\tmainPanel.add(table);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Load the visualization api, passing the onLoadCallback to be called\r\n\t\t// when loading is done.\r\n\t\tVisualizationUtils.loadVisualizationApi(onLoadCallback, Table.PACKAGE);\r\n\r\n\t}",
"private void fetchDashboardList() {\n /*\n * Ensures a loader is initialized and active. If the loader doesn't already exist, one is\n * created and (if the activity/fragment is currently started) starts the loader. Otherwise\n * the last created loader is re-used.\n */\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<List<VehiclesTotalRunningCosts>> theDashboardDbLoader = loaderManager.getLoader(DASHBOARD_LOADER_ID);\n\n if (theDashboardDbLoader == null) {\n loaderManager.initLoader(DASHBOARD_LOADER_ID, null, this);\n } else {\n loaderManager.restartLoader(DASHBOARD_LOADER_ID, null, this);\n }\n\n\n\n }",
"public void loadDaemonStatus(Integer plnID, String boxIpAddress) throws SQLException{\n\t\tConnection dbConnection = null;\n\t\tPreparedStatement preparedStatement=null;\n\t\tService service = null;\n\t\tList<AuWsResult> ausFromCurrentBox = null; \n\t\tList<RepositorySpaceWsResult> repositoryBox = null;\n\t\tList<PeerWsResult> peersBox = null;\n\t\tList<RepositoryWsResult> repo = null;\n\t\tPlatformConfigurationWsResult boxConfiguration = null;\n\t\tInteger boxId=null;\n\t\tMap<String, String> headers = null;\n\n\n\t\ttry {\n\n\t\t\t// Call the service and get results of the queries.\n\n\t\t\t// Get credentials from database for current box\n\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\tString getcredentialsQuery = \"SELECT username, password from plnmonitor.lockss_box as box INNER JOIN plnmonitor.lockss_box_info AS info \"\n\t\t\t\t\t\t+ \"ON box.id = info.box WHERE box.ipaddress = ? AND box.pln = ?\"; // WHERE pln=\" + plnID;\n\n\t\t\t\tdbConnection = getDBConnection();\n\n\t\t\t\tpreparedStatement = dbConnection.prepareStatement(getcredentialsQuery, Statement.KEEP_CURRENT_RESULT);\n\n\t\t\t\tpreparedStatement.setString(1, boxIpAddress);\n\t\t\t\tpreparedStatement.setInt(2, plnID);\n\n\t\t\t\tResultSet rs=preparedStatement.executeQuery();\n\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\tusername = rs.getString(\"username\");\n\t\t\t\t\tpassword = rs.getString(\"password\");\n\t\t\t\t} \n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t} finally {\n\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\tdbConnection.close();\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tthis.authenticate(username, password); //basic authentication (inline)\n\n\n\t\t\tString boxHostname = boxIpAddress;\n\n\t\t\t//ugly fix for UGent - please ignore this\n\t\t\t//if (boxIpAddress.matches(\"157.193.230.142\")) {\n\t\t\t//\tboxHostname = \"shaw.ugent.be\";\n\t\t\t//}\n\t\t\tString serviceAddress=prefixDSS+boxHostname+postfixDSS; \n\n\t\t\ttry {\n\n\t\t\t\tservice = Service.create(new URL(serviceAddress), new QName(\n\t\t\t\t\t\tTARGET_NAMESPACE, SERVICE_NAME));\n\n\t\t\t}\n\n\t\t\tcatch (WebServiceException e) {\n\t\t\t\tLOGGER.error(e.toString());\n\t\t\t\tLOGGER.error(\"\\u001B[31m Nothing to do connection unavailable... \\u001B[0m\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (service != null) { //if service available, get all data from the LOCKSS box\n\t\t\t\t\tDaemonStatusService dss = service.getPort(DaemonStatusService.class);\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Getting platform configuration...\\u001B[0m\");\n\t\t\t\t\tboxConfiguration = dss.getPlatformConfiguration();\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Getting repository spaces status...\\u001B[0m\");\n\t\t\t\t\trepositoryBox = dss.queryRepositorySpaces(\"select *\");\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Getting AUs status... \\u001B[0m\");\n\t\t\t\t\tausFromCurrentBox = dss.queryAus(QUERY);\n\t\t\t\t\t\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Getting peers status...\\u001B[0m\");\n\t\t\t\t\tpeersBox = dss.queryPeers(\"select *\");\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Getting repository status...\\u001B[0m\");\n\t\t\t\t\trepo = dss.queryRepositories(\"select *\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (WebServiceException e) {\n\t\t\t\tLOGGER.error(e.toString());\n\t\t\t}\n\n\t\t\tLOGGER.info(\"\\u001B[32m Updating LOCKSS boxes configurations in the database \\u001B[0m\");\n\t\t\t// if data from plaftorm configuration is available, update the LOCKSS box table accordingly in the database\n\t\t\tif (boxConfiguration!=null){\n\t\t\t\t//update LOCKSS box config in the LOCKSS_box database\n\t\t\t\t//upsert: if box date identified by (ipaddress+pln id) is already in the database, update entry otherwise insert \n\t\t\t\t//upsert is not available in Postgres 9.4\n\t\t\t\ttry {\n\n\t\t\t\t\tString insertTableSQL = \n\t\t\t\t\t\t\t\"WITH upsert AS \" +\n\t\t\t\t\t\t\t\t\t\"(UPDATE plnmonitor.lockss_box \" +\n\t\t\t\t\t\t\t\t\t\"SET uiport = ?, \" +\n\t\t\t\t\t\t\t\t\t\"groups = ?, \" +\n\t\t\t\t\t\t\t\t\t\"v3identity = ?, \" +\n\t\t\t\t\t\t\t\t\t\"uptime = ?, \" +\n\t\t\t\t\t\t\t\t\t\"admin_email = ?, \" +\n\t\t\t\t\t\t\t\t\t\"disks = ?, \" +\n\t\t\t\t\t\t\t\t\t\"\\\"current_time\\\" = ?, \" +\n\t\t\t\t\t\t\t\t\t\"daemon_full_version = ?, \" +\n\t\t\t\t\t\t\t\t\t\"java_version = ?, \" +\n\t\t\t\t\t\t\t\t\t\"platform = ? \" +\n\t\t\t\t\t\t\t\t\t\"WHERE ipaddress=? and pln=? RETURNING *), \" +\n\n\t\t\t\t\t\t\t\"inserted AS (\"+\n\t\t\t\t\t\t\t\"INSERT INTO plnmonitor.lockss_box \" +\n\t\t\t\t\t\t\t\"(ipaddress,uiport,pln,groups,v3identity,uptime,admin_email,disks,\\\"current_time\\\", daemon_full_version, java_version, platform) \"+\n\t\t\t\t\t\t\t\"SELECT ?,?,?,?,?,?,?,?,?,?,?,? WHERE NOT EXISTS \"+\n\t\t\t\t\t\t\t\"(SELECT * FROM upsert) \"+\n\t\t\t\t\t\t\t\"RETURNING *) \"+\n\t\t\t\t\t\t\t\"SELECT * \" +\n\t\t\t\t\t\t\t\"FROM upsert \" +\n\t\t\t\t\t\t\t\"union all \" +\n\t\t\t\t\t\t\t\"SELECT * \" +\n\t\t\t\t\t\t\t\"FROM inserted\";\n\n\t\t\t\t\tdbConnection = getDBConnection();\n\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL, Statement.KEEP_CURRENT_RESULT);\n\t\t\t\t\tpreparedStatement.setString(1, \"8081\");\n\t\t\t\t\tpreparedStatement.setString(2, boxConfiguration.getGroups().get(0).replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(3, boxConfiguration.getV3Identity().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setLong(4, boxConfiguration.getUptime());\n\t\t\t\t\tpreparedStatement.setString(5, boxConfiguration.getAdminEmail().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(6, boxConfiguration.getDisks().get(0).replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setLong(7, boxConfiguration.getCurrentTime());\n\t\t\t\t\tpreparedStatement.setString(8, boxConfiguration.getDaemonVersion().toString().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(9, boxConfiguration.getJavaVersion().toString().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(10, boxConfiguration.getPlatform().toString().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\n\t\t\t\t\tpreparedStatement.setString(11, boxIpAddress);\n\t\t\t\t\tpreparedStatement.setInt(12, plnID);\n\n\t\t\t\t\tpreparedStatement.setString(13, boxIpAddress);\n\t\t\t\t\tpreparedStatement.setString(14, \"8081\");\n\t\t\t\t\tpreparedStatement.setInt(15, plnID);\n\t\t\t\t\tpreparedStatement.setString(16, boxConfiguration.getGroups().get(0).replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(17, boxConfiguration.getV3Identity().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setLong(18, boxConfiguration.getUptime());\n\t\t\t\t\tpreparedStatement.setString(19, boxConfiguration.getAdminEmail().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(20, boxConfiguration.getDisks().get(0).replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setLong(21, boxConfiguration.getCurrentTime());\n\t\t\t\t\tpreparedStatement.setString(22, boxConfiguration.getDaemonVersion().toString().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(23, boxConfiguration.getJavaVersion().toString().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tpreparedStatement.setString(24, boxConfiguration.getPlatform().toString().replaceAll(\"\\\\[|\\\\]\", \"\"));\n\t\t\t\t\tResultSet rs=preparedStatement.executeQuery();\n\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\tboxId = rs.getInt(\"id\");\n\t\t\t\t\t}\n\t\t\t\t\tLOGGER.info(\"Entry for pln: \"+ plnID + \" with IP address \"+boxIpAddress + \" ----- \" + boxConfiguration.getIpAddress() + \"V3 identity:\" + boxConfiguration.getV3Identity() + \" is inserted/updated into LOCKSS_BOX table at position \"+ boxId);\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tLOGGER.error(e.getMessage());\n\n\t\t\t\t} finally {\n\t\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t}\n\t\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\t\tdbConnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\n\n\t\t\t// if repository box data is collected for the current LOCKSS Box identified by box id and repository_space_lockss_id\n\t\t\t// insert the results in the table lockss_box_data_current\n\n\t\t\tLOGGER.info(\"\\u001B[32m Updating LOCKSS boxes respository space in the database... \\u001B[0m\");\n\n\t\t\tif (repositoryBox != null) {\n\t\t\t\tfor (RepositorySpaceWsResult currentBoxResult : repositoryBox) {\n\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\t\t\tString insertTableSQL = \"WITH upsert AS (UPDATE plnmonitor.lockss_box_data_current \" +\n\t\t\t\t\t\t\t\t\"SET used = ?, \" +\n\t\t\t\t\t\t\t\t\"size = ?, \" +\n\t\t\t\t\t\t\t\t\"free = ?, \" +\n\t\t\t\t\t\t\t\t\"percentage = ?, \" +\n\t\t\t\t\t\t\t\t\"active_aus = ?, \" +\n\t\t\t\t\t\t\t\t\"deleted_aus = ?, \" +\n\t\t\t\t\t\t\t\t\"inactive_aus = ?, \" +\n\t\t\t\t\t\t\t\t\"orphaned_aus = ? \" +\n\t\t\t\t\t\t\t\t\"WHERE box=? and repository_space_lockss_id=? RETURNING *)\" +\n\t\t\t\t\t\t\t\t\"INSERT INTO plnmonitor.lockss_box_data_current\" +\n\t\t\t\t\t\t\t\t\"(box,used,size,free,percentage,active_aus, repository_space_lockss_id, deleted_aus, inactive_aus, orphaned_aus) \"+\n\t\t\t\t\t\t\t\t\"SELECT ?,?,?,?,?,?,?,?,?,? WHERE NOT EXISTS \"+\n\t\t\t\t\t\t\t\t\"(SELECT * FROM upsert)\";\n\n\t\t\t\t\t\tdbConnection = getDBConnection();\n\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL);\n\t\t\t\t\t\tpreparedStatement.setLong(1, currentBoxResult.getUsed());\n\t\t\t\t\t\tpreparedStatement.setLong(2, currentBoxResult.getSize());\n\t\t\t\t\t\tpreparedStatement.setLong(3, currentBoxResult.getFree());\n\t\t\t\t\t\tpreparedStatement.setDouble(4, currentBoxResult.getPercentageFull());\n\t\t\t\t\t\tpreparedStatement.setLong(5, currentBoxResult.getActiveCount());\n\t\t\t\t\t\tpreparedStatement.setLong(6, currentBoxResult.getDeletedCount());\n\t\t\t\t\t\tpreparedStatement.setLong(7, currentBoxResult.getInactiveCount());\n\t\t\t\t\t\tpreparedStatement.setLong(8, currentBoxResult.getOrphanedCount());\n\n\t\t\t\t\t\tpreparedStatement.setLong(9, boxId );\n\t\t\t\t\t\tpreparedStatement.setString(10, currentBoxResult.getRepositorySpaceId());\n\n\t\t\t\t\t\tpreparedStatement.setLong(11, boxId );\n\t\t\t\t\t\tpreparedStatement.setLong(12, currentBoxResult.getUsed());\n\t\t\t\t\t\tpreparedStatement.setLong(13, currentBoxResult.getSize());\n\t\t\t\t\t\tpreparedStatement.setLong(14, currentBoxResult.getFree());\n\t\t\t\t\t\tpreparedStatement.setDouble(15, currentBoxResult.getPercentageFull());\n\t\t\t\t\t\tpreparedStatement.setLong(16, currentBoxResult.getActiveCount());\n\t\t\t\t\t\tpreparedStatement.setString(17, currentBoxResult.getRepositorySpaceId());\n\t\t\t\t\t\tpreparedStatement.setLong(18,currentBoxResult.getDeletedCount());\n\t\t\t\t\t\tpreparedStatement.setLong(19,currentBoxResult.getInactiveCount());\n\t\t\t\t\t\tpreparedStatement.setLong(20, currentBoxResult.getOrphanedCount());\n\n\t\t\t\t\t\t//System.out.println(preparedStatement.toString());\n\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\n\t\t\t\t\t\t//LOGGER.info(\"Record is inserted and updated into database table LOCKSS_box_data_current for boxId\" + boxId + \" Repository Id: \" + currentBoxResult.getRepositorySpaceId());\n\n\t\t\t\t\t} catch (SQLException e) {\n\n\t\t\t\t\t\tLOGGER.error(e.getMessage());\n\n\t\t\t\t\t} finally {\n\n\t\t\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\t\t\tdbConnection.close();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t\t\t// if peers box data is collected from the LOCKSS Box, insert the results in the table Peers\n\t\t\t\tLOGGER.info(\"\\u001B[32m Updating peers status in the database... \\u001B[0m\");\n\n\t\t\t\tif (peersBox != null) {\n\n\t\t\t\t\tfor (PeerWsResult currentPeer : peersBox) {\n\n\t\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString insertTableSQL = \"WITH upsert AS (UPDATE plnmonitor.peer \" +\n\t\t\t\t\t\t\t\t\t\"SET box = ?, \" +\n\t\t\t\t\t\t\t\t\t\"last_poll = ?, \" +\n\t\t\t\t\t\t\t\t\t\"polls_called = ?, \" +\n\t\t\t\t\t\t\t\t\t\"last_invitation = ?, \" +\n\t\t\t\t\t\t\t\t\t\"last_vote = ?, \" +\n\t\t\t\t\t\t\t\t\t\"peer_lockss_id = ?, \" +\n\t\t\t\t\t\t\t\t\t\"last_message = ?, \" +\n\t\t\t\t\t\t\t\t\t\"invitation_count = ?, \" +\n\t\t\t\t\t\t\t\t\t\"message_count = ?, \" +\n\t\t\t\t\t\t\t\t\t\"message_type = ?, \" +\n\t\t\t\t\t\t\t\t\t\"polls_rejected = ?, \" +\n\t\t\t\t\t\t\t\t\t\"votes_cast = ? \" + \n\t\t\t\t\t\t\t\t\t\"WHERE box=? and peer_lockss_id=? RETURNING *)\" +\n\t\t\t\t\t\t\t\t\t\"INSERT INTO plnmonitor.peer \" +\n\t\t\t\t\t\t\t\t\t\"(box,last_poll,polls_called,last_invitation,last_vote,peer_lockss_id,last_message, invitation_count, message_count, message_type, polls_rejected, votes_cast) \"+\n\t\t\t\t\t\t\t\t\t\"SELECT \" +\n\t\t\t\t\t\t\t\t\t\"?,?,?,?,? ,?,?,?,?,? ,?,? WHERE NOT EXISTS \"+\n\t\t\t\t\t\t\t\t\t\"(SELECT * FROM upsert)\";\n\n\t\t\t\t\t\t\tdbConnection = getDBConnection();\n\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL);\n\t\t\t\t\t\t\tpreparedStatement.setLong(1, boxId);\n\t\t\t\t\t\t\tpreparedStatement.setLong(2, currentPeer.getLastPoll());\n\t\t\t\t\t\t\tpreparedStatement.setLong(3, currentPeer.getPollsCalled());\n\t\t\t\t\t\t\tpreparedStatement.setLong(4, currentPeer.getLastInvitation());\n\t\t\t\t\t\t\tpreparedStatement.setLong(5, currentPeer.getLastVote());\n\t\t\t\t\t\t\tpreparedStatement.setString(6, currentPeer.getPeerId());\n\t\t\t\t\t\t\tpreparedStatement.setLong(7, currentPeer.getLastMessage());\n\t\t\t\t\t\t\tpreparedStatement.setLong(8, currentPeer.getInvitationCount());\n\t\t\t\t\t\t\tpreparedStatement.setLong(9, currentPeer.getMessageCount());\n\t\t\t\t\t\t\tpreparedStatement.setString(10, currentPeer.getMessageType());\n\t\t\t\t\t\t\tpreparedStatement.setLong(11, currentPeer.getPollsRejected());\n\t\t\t\t\t\t\tpreparedStatement.setLong(12, currentPeer.getVotesCast() );\n\n\t\t\t\t\t\t\tpreparedStatement.setLong(13, boxId );\n\t\t\t\t\t\t\tpreparedStatement.setString(14, currentPeer.getPeerId() );\n\n\t\t\t\t\t\t\tpreparedStatement.setLong(15, boxId);\n\t\t\t\t\t\t\tpreparedStatement.setLong(16, currentPeer.getLastPoll());\n\t\t\t\t\t\t\tpreparedStatement.setLong(17, currentPeer.getPollsCalled());\n\t\t\t\t\t\t\tpreparedStatement.setLong(18, currentPeer.getLastInvitation());\n\t\t\t\t\t\t\tpreparedStatement.setLong(19, currentPeer.getLastVote());\n\t\t\t\t\t\t\tpreparedStatement.setString(20, currentPeer.getPeerId());\n\t\t\t\t\t\t\tpreparedStatement.setLong(21, currentPeer.getLastMessage());\n\t\t\t\t\t\t\tpreparedStatement.setLong(22, currentPeer.getInvitationCount());\n\t\t\t\t\t\t\tpreparedStatement.setLong(23, currentPeer.getMessageCount());\n\t\t\t\t\t\t\tpreparedStatement.setString(24, currentPeer.getMessageType());\n\t\t\t\t\t\t\tpreparedStatement.setLong(25, currentPeer.getPollsRejected());\n\t\t\t\t\t\t\tpreparedStatement.setLong(26, currentPeer.getVotesCast() );\n\t\t\t\t\t\t\t//preparedStatement.setInt(28, currentPeer.getPeerId().hashCode() );\n\n\t\t\t\t\t\t\t//System.out.println(preparedStatement.toString());\n\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\n\t\t\t\t\t\t\t//LOGGER.info(\"Record is inserted into Peers table!\");\n\n\t\t\t\t\t\t} catch (SQLException e) {\n\n\t\t\t\t\t\t\tLOGGER.error(e.getMessage());\n\n\t\t\t\t\t\t} finally {\n\n\t\t\t\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\t\t\t\tdbConnection.close();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// if AUs box data is collected from the LOCKSS Box, insert the results in the table AU_current\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Updating AU status in the database... \\u001B[0m\");\n\n\t\t\t\t\tif (ausFromCurrentBox != null) {\n\t\t\t\t\t\tfor (AuWsResult currentAU : ausFromCurrentBox) {\n\t\t\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString insertTableSQL = \"WITH upsert AS (UPDATE plnmonitor.au_current \" +\n\t\t\t\t\t\t\t\t\t\t\"SET box = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"name = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"plugin_name = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"tdb_year = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"access_type = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"content_size = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"recent_poll_agreement = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"creation_time = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"au_lockss_id = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"tdb_publisher = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"volume = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"disk_usage = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"last_completed_crawl = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"last_completed_poll = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"last_crawl = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"last_poll = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"crawl_pool = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"crawl_proxy = ? ,\" + \n\t\t\t\t\t\t\t\t\t\t\"crawl_window = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"last_crawl_result = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"last_poll_result = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"publishing_platform = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"repository_path = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"subscription_status = ?, \" +\n\t\t\t\t\t\t\t\t\t\t\"substance_state = ?, \" + \n\t\t\t\t\t\t\t\t\t\t\"available_from_publisher = ? \" + \n\t\t\t\t\t\t\t\t\t\t\"WHERE box=? and au_lockss_id=? RETURNING *)\" +\n\t\t\t\t\t\t\t\t\t\t\"INSERT INTO plnmonitor.au_current \" +\n\t\t\t\t\t\t\t\t\t\t\"(box,name,plugin_name,tdb_year,access_type,content_size,recent_poll_agreement,creation_time,au_lockss_id,tdb_publisher,volume,disk_usage,last_completed_crawl,last_completed_poll,last_crawl,last_poll,crawl_pool,crawl_proxy,crawl_window,last_crawl_result,last_poll_result,publishing_platform,repository_path,subscription_status,substance_state,available_from_publisher)\" + \n\t\t\t\t\t\t\t\t\t\t\"SELECT \" +\n\t\t\t\t\t\t\t\t\t\t\"?,?,?,?,? ,?,?,?,?,? ,?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ? WHERE NOT EXISTS \"+\n\t\t\t\t\t\t\t\t\t\t\"(SELECT * FROM upsert)\";\n\n\t\t\t\t\t\t\t\tdbConnection = getDBConnection();\n\t\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(1, boxId);\n\t\t\t\t\t\t\t\tpreparedStatement.setString(2, currentAU.getName());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(3, currentAU.getPluginName());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(4, currentAU.getTdbYear());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(5, currentAU.getAccessType());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(6, currentAU.getContentSize());\n\t\t\t\t\t\t\t\tpreparedStatement.setDouble(7, (currentAU.getRecentPollAgreement()!=null)?currentAU.getRecentPollAgreement():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(8, currentAU.getCreationTime());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(9, currentAU.getAuId());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(10, currentAU.getTdbPublisher());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(11, currentAU.getVolume());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(12, (currentAU.getDiskUsage()!=null)?currentAU.getDiskUsage():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(13, (currentAU.getLastCompletedCrawl()!=null)?currentAU.getLastCompletedCrawl():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(14, (currentAU.getLastCompletedPoll()!=null)? currentAU.getLastCompletedPoll():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(15, (currentAU.getLastCrawl()!=null)? currentAU.getLastCrawl():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(16, (currentAU.getLastPoll()!= null)?currentAU.getLastPoll():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setString(17, currentAU.getCrawlPool());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(18, (currentAU.getCrawlProxy()!=null)?currentAU.getCrawlProxy():\"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(19, (currentAU.getCrawlWindow()!=null)?currentAU.getCrawlWindow():\"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(20, currentAU.getLastCrawlResult());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(21, currentAU.getLastPollResult());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(22, currentAU.getPublishingPlatform());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(23, (currentAU.getRepositoryPath()!=null)?currentAU.getRepositoryPath():\"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(24, (currentAU.getSubscriptionStatus()!=null)?currentAU.getSubscriptionStatus(): \"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(25, currentAU.getSubstanceState());\n\t\t\t\t\t\t\t\tpreparedStatement.setBoolean(26, currentAU.getAvailableFromPublisher());\n\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(27, boxId);\n\t\t\t\t\t\t\t\tpreparedStatement.setString(28, currentAU.getAuId());\n\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(29, boxId);\n\t\t\t\t\t\t\t\tpreparedStatement.setString(30, currentAU.getName());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(31, currentAU.getPluginName());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(32, currentAU.getTdbYear());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(33, currentAU.getAccessType());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(34, currentAU.getContentSize());\n\t\t\t\t\t\t\t\tpreparedStatement.setDouble(35, (currentAU.getRecentPollAgreement()!=null)?currentAU.getRecentPollAgreement():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(36, currentAU.getCreationTime());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(37, currentAU.getAuId());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(38, currentAU.getTdbPublisher());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(39, currentAU.getVolume());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(40, currentAU.getDiskUsage());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(41, currentAU.getLastCompletedCrawl());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(42, (currentAU.getLastCompletedPoll()!=null)? currentAU.getLastCompletedPoll():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(43, currentAU.getLastCrawl());\n\t\t\t\t\t\t\t\tpreparedStatement.setLong(44, (currentAU.getLastPoll()!= null)?currentAU.getLastPoll():0);\n\t\t\t\t\t\t\t\tpreparedStatement.setString(45, currentAU.getCrawlPool());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(46, (currentAU.getCrawlProxy()!=null)?currentAU.getCrawlProxy():\"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(47, (currentAU.getCrawlWindow()!=null)?currentAU.getCrawlWindow():\"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(48, currentAU.getLastCrawlResult());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(49, currentAU.getLastPollResult());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(50, currentAU.getPublishingPlatform());\n\t\t\t\t\t\t\t\tpreparedStatement.setString(51, (currentAU.getRepositoryPath()!=null)?currentAU.getRepositoryPath():\"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(52, (currentAU.getSubscriptionStatus()!=null)?currentAU.getSubscriptionStatus(): \"\");\n\t\t\t\t\t\t\t\tpreparedStatement.setString(53, currentAU.getSubstanceState());\n\t\t\t\t\t\t\t\tpreparedStatement.setBoolean(54, currentAU.getAvailableFromPublisher());\n\n\t\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\t\t\t\t\t\t\t\t//LOGGER.info(preparedStatement.toString());\n\t\t\t\t\t\t\t\t//LOGGER.info(\"Record \"+ currentAU.getName() + \" is inserted into AU_current table.\");\n\n\t\t\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t\t\tLOGGER.error(e.getMessage());\n\n\t\t\t\t\t\t\t} finally {\n\n\t\t\t\t\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\t\t\t\t\tdbConnection.close();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// if AUs box data is collected from the LOCKSS Box, insert the results in the table AU_current\n\t\t\t\t\tLOGGER.info(\"\\u001B[32m Updating AU summary status in the database... \\u001B[0m\");\n\n\t\t\t\t\t\n\t\t\t\t\t// select distinct(tdb_publisher) from au_current; \n\t\t\t\t\t// for each tdb_publisher get total size\n\t\t\t\t\t//WITH distinctAU AS (SELECT name, tdb_publisher, MAX(content_size)as content_size FROM au_current GROUP BY name, tdb_publisher) select SUM(CASE WHEN tdb_publisher = 'Universiteit Gent' THEN content_size/2 END) AS \"Universiteit Gent\" from distinctAU;\n\t\t\t\t\t\n\t\t\t\t\t// upsert (tdb_publisher, size) to table\n\t\t\t\t\ttry {\t\t\t\t\t\t\t\n\n\t\t\t\t\t\tArrayList<String> tdbPublishers = new ArrayList<String>();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tString queryTableSQL = \"SELECT distinct(tdb_publisher) FROM plnmonitor.au_current\"; \n\n\t\t\t\t\t\tdbConnection = getDBConnection();\n\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(queryTableSQL, Statement.KEEP_CURRENT_RESULT);\n\n\t\t\t\t\t\tResultSet rs=preparedStatement.executeQuery();\n\n\t\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\t\ttdbPublishers.add(rs.getString(\"tdb_publisher\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t\tString SQLRequest;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tdbPublishers != null) {\n\t\t\t\t\t\t\tSQLRequest = \"DROP TABLE IF EXISTS content_per_tdb_publisher\"; \n\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(SQLRequest);\n\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSQLRequest = \"CREATE TABLE content_per_tdb_publisher(id serial primary key)\";\n\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(SQLRequest);\n\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\n\t\t\t\t\t\t\t//TODO: Replace ID=1 by PLNid \n\t\t\t\t\t\t\tSQLRequest = \"INSERT INTO content_per_tdb_publisher(id) VALUES (1)\";\n\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(SQLRequest);\n\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (String tdbPublisher : tdbPublishers) {\n\t\t\t\t\t\t\tif (tdbPublisher != null && !tdbPublisher.isEmpty()) {\n\t\t\t\t\t\t\t\tqueryTableSQL = \"WITH distinctAU AS (SELECT name, tdb_publisher, MAX(content_size) as content_size FROM au_current GROUP BY name, tdb_publisher) select SUM(CASE WHEN tdb_publisher = \\'\" + tdbPublisher + \"\\' THEN content_size END) as content_size from distinctAU\";\n\t\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(queryTableSQL, Statement.KEEP_CURRENT_RESULT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLong contentSize=(long) 0;\n\t\t\t\t\t\t\t\tResultSet tdbResults=preparedStatement.executeQuery();\n\t\t\t\t\t\t\t\tif (tdbResults.next()) {\n\t\t\t\t\t\t\t\t\tcontentSize = tdbResults.getLong(\"content_size\");\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\tString insertTableSQL = \"WITH upsert AS (UPDATE plnmonitor.au_per_publisher \" +\n//\t\t\t\t\t\t\t\t\t\"SET tdb_publisher = ?, \" +\n//\t\t\t\t\t\t\t\t\t\"content_size = ? \" + \n//\t\t\t\t\t\t\t\t\t\"WHERE tdb_publisher=? RETURNING *)\" +\n//\t\t\t\t\t\t\t\t\t\"INSERT INTO plnmonitor.au_per_publisher \" +\n//\t\t\t\t\t\t\t\t\t\"(tdb_publisher,content_size)\" + \n//\t\t\t\t\t\t\t\t\t\"SELECT \" +\n//\t\t\t\t\t\t\t\t\t\"?,? WHERE NOT EXISTS \"+\n//\t\t\t\t\t\t\t\t\t\"(SELECT * FROM upsert)\";\n//\n//\t\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL);\n//\t\t\t\t\t\t\t\tpreparedStatement.setString(1, tdbPublisher);\n//\t\t\t\t\t\t\t\tpreparedStatement.setLong(2, contentSize);\n//\n//\t\t\t\t\t\t\t\tpreparedStatement.setString(3, tdbPublisher);\n//\n//\t\t\t\t\t\t\t\tpreparedStatement.setString(4, tdbPublisher);\n//\t\t\t\t\t\t\t\tpreparedStatement.setLong(5, contentSize);\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\tSystem.out.println(preparedStatement.toString());\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\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\tSQLRequest =\"ALTER TABLE content_per_tdb_publisher add column \\\"\" + tdbPublisher + \"\\\" bigint\";\n\t\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(SQLRequest);\n\t\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t//TODO: replace id=1 by PLN ID\n\t\t\t\t\t\t\t\tSQLRequest = \"UPDATE content_per_tdb_publisher set \\\"\" + tdbPublisher + \"\\\"= \" + contentSize + \" where id=1\";\n\t\t\t\t\t\t\t\tpreparedStatement = dbConnection.prepareStatement(SQLRequest);\n\t\t\t\t\t\t\t\tpreparedStatement.executeUpdate();\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\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tLOGGER.error(e.getMessage());\n\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t\t\t}\n\t\t\t\t\tif (dbConnection != null) {\n\t\t\t\t\t\tdbConnection.close();\n\t\t\t\t\t}\n\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\n\t\t\t}\n\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace() ;\n\t\t}\n\n\n\t}",
"List<Status> getStatusAlteraveis() throws ServiceException;",
"void loadJobDetails() {\n if (!enabled.get()) {\n LOGGER.info(\"Skip loading scheduled jobs\");\n return;\n }\n loadJobsInCurrentChunk()\n .filter(j -> !scheduler.scheduled(j.getId()).isPresent())//not consider already scheduled jobs\n .flatMapRsPublisher(t -> ErrorHandling.skipErrorPublisher(scheduler::schedule, t))\n .forEach(a -> LOGGER.debug(\"Loaded and scheduled job {}\", a))\n .run()\n .whenComplete((v, t) -> Optional.ofNullable(t)\n .map(ex -> {\n LOGGER.error(\"Error Loading scheduled jobs!\", ex);\n return null;\n })\n .orElseGet(() -> {\n LOGGER.info(\"Loading scheduled jobs completed !\");\n return null;\n }));\n }",
"private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"private void containerDataCenterChanged() {\n storage_pool dataCenter = (storage_pool) getContainer().getDataCenter().getSelectedItem();\n Version ver31 = new Version(3, 1);\n\n boolean available = dataCenter != null && (dataCenter.getcompatibility_version().compareTo(ver31) >= 0 || dataCenter.getId().equals(Guid.Empty));\n\n getVersion().setIsAvailable(available);\n getRetransmissions().setIsAvailable(available);\n getTimeout().setIsAvailable(available);\n }",
"@Override\n protected void loadData() {\n setUpLoadingViewVisibility(true);\n callImageList = RetrofitGenerator.createService(ApiService.class)\n .getAllPubImage();\n callImageList.enqueue(callbackImageList);\n }",
"private void fillInTable() {\r\n // Firstly clean up panel.\r\n myOuterPanel.clear();\r\n LabelModel theLabelModel;\r\n for (LabelUUID theLabelUUID : myCaseItem.getLabels()) {\r\n theLabelModel = myLabelDataSource.getLabel(theLabelUUID.getValue());\r\n // The only reason it could be null is that the label has been\r\n // renamed and the case has not yet been updated.\r\n if (theLabelModel != null && theLabelModel.hasToBeDisplayed()) {\r\n // Check if the label has to be displayed.\r\n // Add the label in the panel.\r\n try {\r\n myOuterPanel.add(myLabelTable.get(theLabelUUID.getValue()));\r\n } catch (Exception theE) {\r\n GWT.log(\"label not found: \" + theLabelUUID.getValue() + \",\" + theLabelUUID.getOwner().getValue(), theE);\r\n }\r\n }\r\n }\r\n }",
"private String getStatusTableName(String studyId) {\n return studyId + \"-status\";\n }",
"private void loadPersistantWatchLists()\r\n {\r\n\r\n debug(\"loadPersistantWatchLists() called - \");\r\n\r\n expungeAllHistoricFiles();\r\n\r\n final int watchListCount =\r\n ParseData.parseNum(appProps.getProperty(getString(\"WatchListTableModule.application_watchlist_count_key_title\")), 0);\r\n\r\n for (int index = 0; index < watchListCount; index++)\r\n {\r\n // Create a NEW header Vector\r\n Vector headers = new Vector();\r\n headers.removeAllElements();\r\n for (int i = 0; i < StockData.columns.length; i++)\r\n {\r\n headers.addElement(StockData.columns[i]);\r\n }\r\n\r\n // Create a new DATA Vector\r\n Vector data = new Vector();\r\n data.removeAllElements();\r\n // Are we in DEMO mode ior in Live Mode\r\n // Populate the Vectors\r\n if (DEMO_MODE)\r\n {\r\n getDemoData(data);\r\n }\r\n else\r\n {\r\n //getDemoData(data);\r\n getLiveData(data, index);\r\n }\r\n\r\n // Create a new Table Model with our headers and data\r\n StockDataTableModel tableModel = new StockDataTableModel(headers, data);\r\n\r\n // Create a new Table with our Tablemodel\r\n JTable table = new HGTable(tableModel);\r\n\r\n // This method will add a timer ( via the index ) the table and tableModel\r\n // the appropriate vector containers.\r\n addDataToVectorContainers(table, tableModel, index);\r\n // This Method will add the Popup menu to the this table\r\n addPopupMenuToTable(table);\r\n // Create a new ScrollPane and add our table to it\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.getViewport().add(table);\r\n JPanel panel = new JPanel(new BorderLayout());\r\n\r\n // Creae a new Vertical Panel and add our Menu and JScrollPane Table\r\n JPanel lblPanel = createVerticalPanel(true);\r\n\r\n lblPanel.add(createDropDownMenu());\r\n panel.add(lblPanel, BorderLayout.NORTH);\r\n panel.add(scrollPane, BorderLayout.CENTER);\r\n\r\n // Create a default name for that tab and tab name lookup\r\n String tabName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n // Get the WatchList title via Properties\r\n // Get the Property\r\n tabName = appProps.getProperty(tabName, tabName);\r\n tabPane.addTab(tabName, null, panel, new String(\"Click here to view \" + tabName));\r\n\r\n // Set the selected index to the first in the list\r\n tabPane.setSelectedIndex(0);\r\n // Repaint the tabpane with the current data\r\n tabPane.repaint();\r\n\r\n // Load the Historical Data on the Util Event Thread as \r\n // to get our primary data up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes class instance method loadHistoricData(index);\r\n // NOTE: Startup Initial delay of 5 seconds, give the application,\r\n // Time to load.\r\n TimerTask historicDataTask = new LoadHistoricListDataTask(index);\r\n Timer timer = new Timer(true);\r\n timer.schedule(historicDataTask, ONE_SECOND ); // ONE_SECOND * 6);\r\n\r\n this.setStatusBar(\"Loading watch list [\" + index + \"] complete.\");\r\n }\r\n\r\n this.MODULE_READY = true;\r\n\r\n this.monitorTask = new WatchListMonitorTask();\r\n Timer timer = new Timer(true); // Non-Deamon\r\n timer.scheduleAtFixedRate(monitorTask, MONITOR_DELAY, MONITOR_DELAY);\r\n\r\n debug(\"loadPersistantWatchLists() complete - \");\r\n\r\n }",
"private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }",
"private void loadData() {\r\n\t\talert(\"Loading data ...\\n\");\r\n \r\n // ---- categories------\r\n my.addCategory(new Category(\"1\", \"VIP\"));\r\n my.addCategory(new Category(\"2\", \"Regular\"));\r\n my.addCategory(new Category(\"3\", \"Premium\"));\r\n my.addCategory(new Category(\"4\", \"Mierder\"));\r\n \r\n my.loadData();\r\n \r\n\t }",
"public void initializeStatusFields(NbaUserVO user, NbaLob lob, RequirementInfo requirementInfo) throws NbaBaseException {\n initializeStatusFields(user, lob, null, requirementInfo); \n}",
"private void loadData() {\n this.financeDataList = new ArrayList<>();\n }",
"@Override\n protected void loadAndFormatData()\n {\n // Create an object to hold the log data\n final Object[][] tableLogList = new Object[perfLog.getPerfLogData().size()][NUM_COLUMNS];\n int row = 0;\n\n // Create the output format string for the time stamps so that\n // the decimals align with the text centered\n String timeFormat = \"%\"\n + (String.valueOf((int) (plotPrefs.isShowDataGaps(false)\n ? perfLog.getMaximumTimeStamp()\n : perfLog.getAdjustedDataTimeSpan())).length()\n + TIME_PRECISION + 1)\n + TIME_FORMAT.substring(1);\n\n // Collect the log data and format it for the table cells\n for (PerfLog log : perfLog.getPerfLogData())\n {\n // Get the performance ID object associated with the log ID\n PerformanceID pid = perfIDs.getPerfID(log.getPerfID());\n\n tableLogList[row][INDEX] = row;\n tableLogList[row][ID] = perfIDs.convertIDToHexString(log.isEntryEvent()\n ? pid.getPerfID()\n : pid.getPerfID()\n | EXIT_MASK);\n tableLogList[row][NAME] = pid.getPerfIDName(false);\n tableLogList[row][TIME] = String.format(timeFormat, log.getTimeStamp());\n tableLogList[row][ENT_EX] = log.isEntryEvent();\n tableLogList[row][SEQ_ERR] = log.isSequenceError();\n tableLogList[row][OVER] = log.getOverrun() == 0.0\n ? \"\"\n : String.format(TIME_FORMAT,\n log.getOverrun());\n tableLogList[row][NOTES] = log.getNotes();\n\n row++;\n }\n\n // Place the log data into the table model along with the\n // column names, set up the editors and renderers for the table\n // cells, set up the table grid lines, and calculate the\n // minimum width required to display the table information\n int totalWidth = setUpdatableCharacteristics(tableLogList,\n new String[] {\"Index\",\n \"ID\",\n \"Name\",\n \"<html><center>Time Stamp<br>(sec)\",\n \"<html><center>Entry/<br>Exit\",\n \"<html><center>Seq<br>Err\",\n \"<html><center>Overrun<br>(sec)\",\n \"<html><center>Notes\"},\n true,\n true,\n true);\n\n // Fit the dialog to the table and set the minimum size based\n // on the column widths\n setDialogMinimumSize(totalWidth);\n\n // Set the dialog's title so that it includes the log file\n // name(s)\n setTitle(\"Log Data: \"\n + perfLog.getLogFileName(perfMain.getPreference(PERF_LOG_FILE)));\n }",
"public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }",
"public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sPodsContainersEntity podStat = new K8sPodsContainersEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpodStat.setEnvironment(environment);\n\t\tpodStat.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpodStat.setComponent(component);\n\t\tpodStat.setTotalPods(numPods);\n\t\tpodStat.setTotalContainers(numCont);\n\t\tsession.save(podStat);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public void setStatusTableName(String name)\n\t{\n\t\tm_statusTableName = name;\n\t}",
"@Override\n\t\t\tprotected PaginationResponseData load() {\n\t\t\t\treturn null;\n\n\t\t\t}",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"private void loadPreviousStatuses(String userUid) {\n final String token = prefs.getString(getString(R.string.v_token), \"\");\n final String state = prefs.getString(getString(R.string.v_state), \"\");\n final String pin = prefs.getString(getString(R.string.v_pin), \"\");\n final long expiry = prefs.getLong(getString(R.string.v_expiry), 0);\n final int registrationCnt = prefs.getInt(getString(R.string.v_registered), 0);\n\n final String path = userUid + \"/\" + getString(R.string.firebase_path) + state + \"/\" + pin + \"/\" + token;\n\n FirebaseAnalytics.getInstance(this).setUserProperty(\"COVIDDetection\", token);\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n dbRef = database.getReference(path + \"/\" + getString(R.string.firebase_path_registration));\n\n Map<String, Object> registration = new HashMap<>();\n registration.put(\"token\", token);\n registration.put(\"state\", state);\n registration.put(\"pin\", pin);\n registration.put(\"time\", new Date().getTime());\n registration.put(\"expTime\", expiry);\n dbRef.child(Integer.toString(registrationCnt)).setValue(registration);\n\n dbRef = database.getReference(path);\n dbRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n if (snapshot != null) {\n for (DataSnapshot userData : snapshot.getChildren()) {\n if(userData.getKey() == getString(R.string.firebase_path_location)) {\n for (DataSnapshot userLocations : userData.getChildren()) {\n personStatuses.add(Integer.parseInt(userLocations.getKey()), (Map<String, Object>) userLocations.getValue());\n }\n }\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // TODO: Handle gracefully\n }\n });\n\n LocationRequest request = new LocationRequest();\n //Specify how often your app should request the device’s location//\n request.setInterval(remoteConfig.getLong(\"LOCATION_REQUEST_INTERVAL\"));\n request.setFastestInterval(remoteConfig.getLong(\"LOCATION_REQUEST_INTERVAL_FASTEST\"));\n //Get the most accurate location data available//\n request.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n FusedLocationProviderClient client = LocationServices.getFusedLocationProviderClient(this);\n int permission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n //If the app currently has access to the location permission...//\n if (permission == PackageManager.PERMISSION_GRANTED) {\n //...then request location updates//\n setStatusMessage(R.string.tracking);\n\n // Hold a partial wake lock to keep CPU awake when the we're tracking location.\n PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);\n mWakelock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"myapp:MyWakelockTag\");\n mWakelock.acquire();\n\n client.requestLocationUpdates(request, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n //Get a reference to the database, so your app can perform read and write operations//\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }\n }, null);\n }\n }",
"public void updateStatus (DataSource pool,String status) throws SQLException {\r\n this.setStatus(status);\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set status = ? \"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatus. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getStatus());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n conn.close();\r\n conn=null;\r\n }catch(SQLException e){\r\n \r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }"
] | [
"0.65027106",
"0.60809565",
"0.55890524",
"0.54142815",
"0.52304864",
"0.52293843",
"0.52108806",
"0.51891804",
"0.517973",
"0.5155963",
"0.5139667",
"0.5133652",
"0.50974834",
"0.50542754",
"0.5025258",
"0.5021178",
"0.50084746",
"0.49834922",
"0.49809325",
"0.49807382",
"0.4978316",
"0.49718654",
"0.4969687",
"0.4907663",
"0.49067798",
"0.49048334",
"0.48892158",
"0.48875946",
"0.48821348",
"0.48798797",
"0.48722726",
"0.4857495",
"0.48382032",
"0.4818967",
"0.4810594",
"0.47724602",
"0.4771896",
"0.47718233",
"0.4765825",
"0.4762008",
"0.47392517",
"0.47340238",
"0.47339293",
"0.47331852",
"0.47329077",
"0.47288355",
"0.4724212",
"0.471766",
"0.47163236",
"0.47143134",
"0.47127643",
"0.47071508",
"0.46888295",
"0.4688013",
"0.46792448",
"0.46757415",
"0.46732897",
"0.46684098",
"0.46651495",
"0.4655002",
"0.46511936",
"0.4647624",
"0.46469",
"0.46432504",
"0.4642004",
"0.4636118",
"0.46354392",
"0.46352443",
"0.46250156",
"0.46241218",
"0.46201575",
"0.46200392",
"0.46190882",
"0.46145996",
"0.46111462",
"0.46097672",
"0.4596559",
"0.45960888",
"0.45836532",
"0.45812094",
"0.45805323",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858",
"0.4579858"
] | 0.47554022 | 40 |
Gets the Component Id from Component Name. | private static int getComponentIdFromCompName(String compName){
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria componentCriteria = session.createCriteria(ComponentEntity.class);
componentCriteria.add(Restrictions.eq("componentName",compName));
componentCriteria.add(Restrictions.eq("delInd", 0));
componentCriteria.setMaxResults(1);
ComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();
int compId = 0;
if(com != null){
compId = com.getComponentId();
}
txn.commit();
return compId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getComponentId();",
"public String getComponentId() {\n \t\treturn componentId;\n \t}",
"public static int getComponentId(final String compName, final String parentCompName) {\n\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.createCriteria(\"parentComponent\", \"pc\");\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"pc.componentName\",parentCompName));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public UUID getComponentId();",
"public long checkComponent(String name) {\n\t\tif(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().size()>0){\n\t\t\treturn ((Component)(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().get(0))).getId();\n\t\t}\n\t\treturn -1;\n\t}",
"String getId(IApiComponent component) throws CoreException {\n StringBuffer buffer = new StringBuffer();\n //$NON-NLS-1$\n buffer.append(component.getSymbolicName()).append(\" \").append('(').append(component.getVersion()).append(')');\n return buffer.toString();\n }",
"public int getComponentID() {\n return COMPONENT_ID;\n }",
"public org.apache.axis.types.Token getComponentID() {\n return componentID;\n }",
"public abstract Component getComponentByName(String name);",
"public String getNamedId();",
"@VisibleForTesting\n ComponentName getComponentName() {\n return mComponentName;\n }",
"public String getId() {\n String id = name.replaceAll(\" \", \"-\");\n id = id.replaceAll(\"_\", \"-\");\n return id.toLowerCase();\n }",
"public int getComponentId(int v) {\n return ids[v];\n }",
"public String getComponentName() {\n\t\treturn componentName;\n\t}",
"String constructComponentName() {\n return base + nameCounter++;\n }",
"String getComponentName();",
"String getComponentName();",
"java.lang.String getIdentifier();",
"public int getThreadPoolChooserNumericId(String componentId);",
"BaseComponent getComponentName();",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"protected String getComponentName() {\n return (component == null) ? \"*No Name*\" : component.toString();\n }",
"public String getScriptID(String scriptName) throws MDSException {\r\n\r\n\t\tString scriptID = null;\r\n\t\tString key = scriptName.toUpperCase();\r\n\t\tscriptID = (String) scriptMap.get(key);\r\n\t\tif (scriptID == null || scriptID == \"\") {\r\n\t\t\tscriptID = \"\";\r\n\t\t\t//logger.warn(\"script : \" + scriptName + \" is not loaded !\");\r\n\t\t}\r\n\t\treturn scriptID;\r\n\t}",
"String getIdentifierName(String name, String type);",
"public String getIdentifier() {\n try {\n return keyAlias + \"-\" + toHexString(\n MessageDigest.getInstance(\"SHA1\").digest(keyStoreManager.getIdentifierKey(keyAlias).getEncoded()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public String getContextId(String contextName) throws Exception {\n return getContextInfo(contextName).getValue(\"id\").toString();\n }",
"public int getId(String name){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tif(myGraph[i].name.compareToIgnoreCase(name) == 0){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public int getProgramIdFromUI(String programName) throws ParseException;",
"private String getUniqueId(JCas jCas) {\n return ConsumerUtils.getExternalId(getDocumentAnnotation(jCas), contentHashAsId);\n }",
"public static String parseElId(String name) {\n String patternString = \"(^[GT]\\\\w+\\\\.?\\\\w*):\";\n Pattern pattern = Pattern.compile(patternString);\n java.util.regex.Matcher matcher = pattern.matcher(name);\n if (matcher.find())\n return matcher.group(1);\n else\n return null;\n }",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"String getIdentifier();",
"public int getIdForName(String name)\n\t{\n\t\tint id = 0;\n\t\ttry\n\t\t{\n\t\t\tif (database==null)\n\t\t\t\tdatabase = this.getWritableDatabase();\n\t\t\t\n\t\t\tCursor c = database.rawQuery(\"SELECT * FROM \"+PLAYERS_TABLE_NAME+\" WHERE \"+PLAYER_NAME+\" = \\\"\"+name+\"\\\";\", null);\n\n\t\t\tc.moveToFirst();\n\t\t\tif (c != null) \n\t\t\t{\n\t\t\t\tid = c.getInt(c.getColumnIndex(PLAYER_ID));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\t Log.e(\"Error\", \"Error\", e);\n\t\t} \n\t\treturn id;\n\t}",
"public static int getComponentByNameAndParent(final String name, final int parentId, final int componentTypeId, String platform) {\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria healthCheckCriteria = session.createCriteria(ComponentEntity.class, \"c\");\n\t\thealthCheckCriteria.createCriteria(\"c.componentType\",\"ct\");\n\t\tif(parentId != 0){\n\t\t\thealthCheckCriteria.createCriteria(\"c.parentComponent\", \"prnt\");\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"prnt.componentId\", parentId));\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"c.platform\", platform));\n\t\t} else {\n\t\t\thealthCheckCriteria.add(Restrictions.isNull(\"c.parentComponent\"));\n\t\t}\n\t\thealthCheckCriteria.add(Restrictions.eq(\"c.componentName\", name));\n\t\thealthCheckCriteria.add(Restrictions.eq(\"ct.componentTypeId\", componentTypeId));\n\t\t\n\t\thealthCheckCriteria.setMaxResults(1);\n\t\tComponentEntity comp = (ComponentEntity) healthCheckCriteria.uniqueResult();\n\t\ttxn.commit();\n\t\t\n\t\tif(comp == null){\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tif(comp.getDelInd() == 1){\n\t\t\tDBQueryUtil.setDelIndOfComponent(comp.getComponentId(), 0);\n\t\t}\n\t\treturn comp.getComponentId();\n\t}",
"public Object[] getNameComponentIDs() {\n\t\tif (_nameComponentIDs != null)\n\t\t\treturn _nameComponentIDs.toArray();\n\t\telse\n\t\t\treturn null;\n\t}",
"public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}",
"public static Object getIdentificationFor(String playerName) {\n try {\n return UUIDFetcher.getUUIDOf(playerName);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return playerName;\n }",
"protected UUID getId(String name) {\n\t\treturn names.get(name);\n\t}",
"public ComponentName getComponentName() {\n return mInternal.getComponentName();\n }",
"public String getControlId() throws PixSourceException {\n\t\t\n\t\tSegment seg = getSegments().getByCodeAndIndex(MSA, 1);\n\t\tint fieldIndex = 1;\n\t\t\n\t\ttry {\n\t\t\treturn seg.forceField(fieldIndex).getAsString();\n\t\t} catch (HL7V2Exception e) {\n\t\t\tthrow new PixSourceException(e);\n\t\t}\n\t}",
"public int getId(String name)\n {\n List<Category> list = c.list();\n for(int i = 0; i < list.size(); ++i)\n {\n if(list.get(i).getName().equals(name))\n {\n return list.get(i).getId();\n }\n }\n return 0;\n }",
"public QName getComponentName() {\n return _componentName;\n }",
"public String getCustomPowerComponentName(int componentId) {\n return mPowerComponents.getCustomPowerComponentName(componentId);\n }",
"public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name = constructComponentName();\n }\n }\n return name;\n }",
"String getUniqueId();",
"protected Component generateComp(String compName) {\n\t\treturn null;\n\t}",
"@Override\n public AbstractProcess getComponent(String name)\n {\n return components.get(name);\n }",
"private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }",
"public Component getComponent(String name) {\n Optional<Component> component = elements.getComponent(name);\n\n if(component.isPresent()) {\n return component.get();\n } else {\n Assert.fail(\"Missing component \" + name);\n return null;\n }\n\n }",
"public static int getCollectionId(Connection c, String name) throws SQLException {\r\n\t\tPreparedStatement s = c.prepareStatement(\"select \"+quote(FC_ID_FIELD.name)+\" from \"+quote(FC_TABLE_NAME)+\" where \"+quote(FC_NAME_FIELD.name)+\"=\"+\"?\");\r\n\t\ts.setString(1, name);\r\n\t\tResultSet rs = s.executeQuery();\r\n\t\trs.next();\r\n\t\tint id = rs.getInt(1);\r\n\t\ts.close();\r\n\t\treturn id;\r\n\t}",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"String getUniqueID();",
"public java.lang.String getBeanIdentifier();",
"String constructComponentName() {\n synchronized (Button.class) {\n return base + nameCounter++;\n }\n }",
"public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}",
"public int numericName()\n {\n return Factory.getID(this);\n }",
"public String getUniqueId() {\n return getCurrentInstance().getViewRoot().createUniqueId();\n }",
"public String getIdentifier();",
"public String getIdentifier();",
"public static String getModuleId(ComponentModule module) {\n\t\tif(module instanceof NSFComponentModule) {\n\t\t\treturn ((NSFComponentModule)module).getDatabasePath();\n\t\t} else {\n\t\t\treturn Integer.toHexString(System.identityHashCode(module));\n\t\t}\n\t}",
"public native String getIdentifier();",
"public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public static Integer getParameterNameId(String parameterName) {\n \n String tenantDatstoreCacheName = getCacheNameForTenantDatastore();\n ConcurrentHashMap<String,Integer> currentDsMap;\n Integer parameterNameId = null;\n \n if (enabled) {\n currentDsMap = parameterNameIdMaps.putIfAbsent(tenantDatstoreCacheName, new ConcurrentHashMap<String,Integer>());\n if (currentDsMap == null) {\n log.fine(\"getParameterNameId() - Added new cache map for tennantDatastore=\" + tenantDatstoreCacheName);\n }\n currentDsMap = parameterNameIdMaps.get(tenantDatstoreCacheName);\n parameterNameId = currentDsMap.get(parameterName);\n }\n \n return parameterNameId;\n \n }",
"Object getElementID(String elementName) throws Exception;",
"public StrColumn getLabelCompId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_comp_id\", StrColumn::new) :\n getBinaryColumn(\"label_comp_id\"));\n }",
"java.lang.String getID();",
"String getServiceId();",
"protected String getMessageId(Exchange exchange) {\n switch (component) {\n case \"aws-sns\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSnsMessageId\");\n case \"aws-sqs\":\n return (String) exchange.getIn().getHeader(\"CamelAwsSqsMessageId\");\n case \"ironmq\":\n return (String) exchange.getIn().getHeader(\"CamelIronMQMessageId\");\n case \"jms\":\n return (String) exchange.getIn().getHeader(\"JMSMessageID\");\n default:\n return null;\n }\n }",
"public static int getContactId(String contactName)\n {\n int contactID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String contactIdQuery = \"SELECT Contact_ID FROM contacts WHERE Contact_Name='\" + contactName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(contactIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n contactID = rs.getInt(\"Contact_ID\");\n return contactID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return contactID;\n }",
"@Override\n public int getVisaIdByName(String name) throws SQLException, ClassNotFoundException {\n return dao.getId(name);\n }",
"int getIdentifier();",
"public void setComponentId(String id) {\n \t\tthis.componentId = id;\n \t}",
"String getService_id();",
"public String getOrganizationId(String orgName) {\r\n \tString orgId = \"\";\r\n HashMap map;\r\n \tfor(int g=0; g<this.organizations.size(); g++) {\r\n \tmap = (HashMap) this.organizations.get(g);\r\n \tif (orgName.equals(map.get(\"LOCATION_NAME\"))) {\r\n \t\torgId = (String) map.get(\"ORGANIZATION_ID\");\r\n \t}\r\n }\r\n return orgId;\r\n }",
"ModuleIdentifier getId();",
"@Override\n\tpublic String findId(String name) throws Exception {\n\t\treturn null;\n\t}",
"public int getIdentifier();",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n identifier_ = s;\n }\n return s;\n }\n }",
"String componentTypeName();",
"public String getIdFromRootElement(final String xml) {\r\n String result = null;\r\n // FIXME PATTERN_OBJID_ATTRIBUTE is static field !\r\n // FIXME this pattern does not work for componentId\r\n Pattern patternObjidAttributeJustForThisMethod = Pattern.compile(\"href=\\\"/ir/[^/]+/([^\\\"]*)\\\"\");\r\n Matcher m1 = patternObjidAttributeJustForThisMethod.matcher(xml);\r\n if (m1.find()) {\r\n result = m1.group(1);\r\n }\r\n\r\n return result;\r\n }",
"java.lang.String getLegacyId();",
"public String getNameId() {\r\n\t\treturn nameId;\r\n\t}",
"private static Oid getSchemaId(String schemaName) throws SQLException\n\t{\n\t\tResultSet rs = null;\n\t\tPreparedStatement stmt = SQLUtils.getDefaultConnection()\n\t\t\t.prepareStatement(\"SELECT oid FROM pg_namespace WHERE nspname = ?\");\n\t\ttry\n\t\t{\n\t\t\tstmt.setString(1, schemaName);\n\t\t\trs = stmt.executeQuery();\n\t\t\tif(!rs.next())\n\t\t\t\treturn null;\n\t\t\treturn (Oid)rs.getObject(1);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSQLUtils.close(rs);\n\t\t\tSQLUtils.close(stmt);\n\t\t}\n\t}",
"public String getComponent() {\n return this.component;\n }",
"public String getIdentifierString();"
] | [
"0.6895345",
"0.68771607",
"0.67961425",
"0.6587508",
"0.6441743",
"0.63470316",
"0.6320471",
"0.62193364",
"0.60489017",
"0.5835499",
"0.580457",
"0.574183",
"0.5702607",
"0.56816906",
"0.56739324",
"0.56104434",
"0.56104434",
"0.5595169",
"0.5587031",
"0.5539127",
"0.5513553",
"0.5513553",
"0.5513553",
"0.5513553",
"0.5513553",
"0.55119467",
"0.55014634",
"0.5478588",
"0.5475287",
"0.54743725",
"0.5474367",
"0.5436125",
"0.5436125",
"0.5436125",
"0.5436125",
"0.5436125",
"0.54237664",
"0.5404009",
"0.5401779",
"0.53952235",
"0.53952235",
"0.53952235",
"0.53952235",
"0.53952235",
"0.53952235",
"0.53952235",
"0.53710586",
"0.53488666",
"0.53483915",
"0.5346635",
"0.53160083",
"0.5312987",
"0.5310711",
"0.5307738",
"0.52787066",
"0.5269069",
"0.5262832",
"0.5260282",
"0.5252489",
"0.5243778",
"0.52401006",
"0.523175",
"0.52267385",
"0.52204424",
"0.5217458",
"0.5207884",
"0.5200161",
"0.51885855",
"0.51835907",
"0.5175041",
"0.51659137",
"0.516135",
"0.516135",
"0.51519114",
"0.51473194",
"0.5140694",
"0.51366544",
"0.5129026",
"0.51278514",
"0.5111918",
"0.5105172",
"0.5097799",
"0.50888115",
"0.5083875",
"0.508141",
"0.5076615",
"0.50717866",
"0.5061366",
"0.5050952",
"0.5048411",
"0.5048382",
"0.50474495",
"0.5043128",
"0.50398415",
"0.5039778",
"0.5027719",
"0.5026247",
"0.50218886",
"0.50138843",
"0.5011756"
] | 0.7304643 | 0 |
Get the previous days number of apis for a particular component | private static int getPreiousNumApis(final int compId, final Date date, final int envId) {
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.add(Calendar.DATE, -1);
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, "as");
ctrStsCrit.add(Restrictions.eq("as.component.componentId",compId));
ctrStsCrit.add(Restrictions.eq("as.environment.environmentId",envId));
ctrStsCrit.add(Restrictions.eq("as.statusDate", new java.sql.Date(cal.getTimeInMillis()) ));
ctrStsCrit.setMaxResults(1);
ApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();
int totalApi = 0;
if(apiSts != null){
totalApi = apiSts.getTotalApi();
}
txn.commit();
return totalApi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, Long sinceTime);",
"public int getNumDaysForComponent(Record record);",
"public int getNumberOfNewerOnActivityFeed(Identity ownerIdentity, Long sinceTime);",
"public int getNumberOfOlderOnActivitiesOfConnections(Identity ownerIdentity, Long sinceTime);",
"public int getNumberOfOlderOnSpaceActivities(Identity ownerIdentity, Long sinceTime);",
"public int getNumberOfOlderOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime);",
"public int getNumberOfOlderOnUserActivities(Identity ownerIdentity, Long sinceTime);",
"private void previousDay() {\r\n tmp.setDay(tmp.getDay() - 1);\r\n int nd = tmp.getDayOfWeek();\r\n nd--;\r\n if (nd == 0) nd = daysInWeek;\r\n tmp.setDayOfWeek(nd);\r\n upDMYcountDMYcount();\r\n }",
"public abstract int getPreviousTerminationCount(SniperCrawler.InstanceGroup group, Date after);",
"public int getNumberOfDaysInPreviousMonth() {\n if (month > 1) {\n return getNumberOfDaysOfAMonth(month - 1, year);\n }\n return getNumberOfDaysOfAMonth(11, year);\n }",
"private int getLatestWickets() {\n // return 2 for simplicity\n return 2;\n }",
"public int getNumberOfOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public int getNumberOfOlderOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"private void previousWeek() {\r\n tmp.setDay(tmp.getDay() - daysInWeek);\r\n upDMYcountDMYcount();\r\n }",
"public int getLBR_ProtestDays();",
"public int getNumberOfOlderOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public int getNumberOfOlderOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public int getNumberOfNewerOnUserActivities(Identity ownerIdentity, Long sinceTime);",
"public static String previousworkingdate() {\n\t\tLocalDate lastbusinessday = getLastWorkingDayOfMonth(LocalDate.now());\n\t\tint x = lastbusinessday.getDayOfMonth();\n\t\tString y = String.valueOf(x);\n\t\tif (y.length() == 1)\n\t\t\ty = \"0\" + y;\n\t\treturn String.valueOf(y);\n\n\t}",
"public int getNumberOfNewerOnSpaceActivities(Identity spaceIdentity, Long sinceTime);",
"public int getNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime);",
"public String getPrevDate() \n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() -1);\n\t\treturn getTodayDate();\n\t}",
"public int getLBR_CollectionReturnDays();",
"public int getNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime);",
"int getMessageCounterHistoryDayLimit();",
"String getPreviousCloseDate();",
"public int getNumberOfNewerOnActivitiesOfConnections(Identity ownerIdentity, Long sinceTime);",
"public int getNumberOfOlderOnSpaceActivities(Identity spaceIdentity,\n ExoSocialActivity baseActivity);",
"long getSince();",
"@Override\n\tpublic int getDaysSinceLastLogin() {\n\t\tDate now = sabre.getTimeNow();\n\t\tlong timeDiff = now.getTime() - lastLogin.getTime();\n\t\tlong diffDays = TimeUnit.DAYS.convert(timeDiff, TimeUnit.MILLISECONDS);\n\t\treturn (int)diffDays;\n\t}",
"public int daysOverdue(int today);",
"public int getToday() {\n \treturn 0;\n }",
"int getNumberDays();",
"@Override\n\tpublic long getPreviousVersionId() {\n\t\treturn _scienceApp.getPreviousVersionId();\n\t}",
"public double getPrevCount()\n {\n\n return this.prevCount;\n }",
"public int getNoPaymentsUpToDate(){\n\t\t// payment_ratio will check how many payments the client needs to do on average\n\t\tdouble payment_ratio = no_payments_yearly * 1.0 / 12;\n\t\t\n\t\t// Calculate no. of Payments up to date\n\t\tint counter = (int)Math.floor((getMonthsPast()) * payment_ratio);\n\t\treturn counter;\n\t}",
"public int getCycleYearsForComponent(Record record);",
"public String getOldNum(){\n return cal.getOldNum();\n }",
"private void changePreviousDay(){\n\t\tplanet.getClimate().prevDay();\n\t}",
"private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }",
"public int getNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime);",
"public long getSystemTotalPrevious() {\n\t\t\treturn mSystemPrevious + mIntrPrevious + mSoftIrqPrevious;\n\t\t}",
"public int getNumberOfOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment);",
"public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}",
"public int getLBR_LatePaymentPenaltyDays();",
"public int getPrevMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger()-2);\n\t\t\n\t\treturn (getMonthInteger()-1);\n\n\t}",
"public int getPrevious() {\n\t\treturn this.previous;\n\t}",
"public Version getPrev(){\n\t\treturn prev;\n\t}",
"public int getNumberOfNewerOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public int getNumberOfActivitesOnActivityFeedForUpgrade(Identity ownerIdentity);",
"private LocalDate findPreviousWeekDate() throws IOException {\n\n\t\t/* Iterate historyFolder */\n\t\treturn Files.list(Paths.get(baseHistoryPath)).map(filePath -> {\n\t\t\tString fileName = FilenameUtils.getBaseName(filePath.getFileName().toString()).replace(\"SonarQube_\", \"\");\n\t\t\tString[] splitter = fileName.split(\"-\");\n\t\t\tfinal int year = Integer.parseInt(splitter[0]);\n\t\t\tfinal int month = Integer.parseInt(splitter[1]);\n\t\t\tfinal int dayOfMonth = Integer.parseInt(splitter[2]);\n\n\t\t\treturn LocalDate.of(year, month, dayOfMonth);\n\t\t}).max((final LocalDate d1, final LocalDate d2) -> d1.compareTo(d2)).get();\n\n\t}",
"public int getUpDays() {\n return (int)(_uptime / 86400000);\n }",
"private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}",
"private static int getDaysSinceNewYear() {\n\t\tGregorianCalendar now = new GregorianCalendar();\n\n\t\treturn now.get(GregorianCalendar.DAY_OF_YEAR);\n\t}",
"@Override\n\tpublic long getTotalTopicOld(long date, String forumPatch) {\n\t\treturn 0;\n\t}",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"public int getFulfillmentTimeInDays () {\n return 0;\n }",
"String getPrevious();",
"public int getBSCA_PriceChangePrev_ID();",
"private byte getPreviousApduType() \r\n \t //@ requires [?f]previousApduType |-> ?thePreviousApduType &*& thePreviousApduType != null &*& thePreviousApduType.length == 1 &*& is_transient_byte_array(thePreviousApduType) == true &*& transient_byte_arrays(?ta) &*& foreachp(ta, transient_byte_array);\r\n \t //@ ensures [f]previousApduType |-> thePreviousApduType &*& transient_byte_arrays(ta) &*& foreachp(ta, transient_byte_array);\r\n\t{\r\n\t\t//@ transient_byte_arrays_mem(thePreviousApduType);\r\n\t\t//@ foreachp_remove(thePreviousApduType, ta);\r\n\t\t//@ open transient_byte_array(thePreviousApduType);\r\n\t\treturn previousApduType[0];\r\n\t\t//@ close transient_byte_array(thePreviousApduType);\r\n\t\t//@ foreachp_unremove(thePreviousApduType, ta);\r\n\t}",
"private Date getYestoday() {\n\t\tDate dNow = new Date(); // 当前时间\n\t\tDate dBefore = new Date();\n\t\tCalendar calendar = Calendar.getInstance(); // 得到日历\n\t\tcalendar.setTime(dNow);// 把当前时间赋给日历\n\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1); // 设置为前一天\n\t\tdBefore = calendar.getTime(); // 得到前一天的时间\n\t\treturn dBefore;\n\t}",
"public Integer getPreviousValue() {\n return this.previousValue;\n }",
"public int getNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public int getHowManyInPeriod();",
"public int getCurrentDay() {\n return daysPassed;\n }",
"public List<ExoSocialActivity> getOlderUserSpacesActivities(Identity owner, Long sinceTime, int limit);",
"public int getNumberOfNewerOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"private static int getPreiousNumInstance(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ContainerStatsEntity.class, \"cs\");\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.statsDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tContainerStatsEntity conSts =(ContainerStatsEntity) ctrStsCrit.uniqueResult();\n\t\tint totalContainer = 0;\n\t\tif(conSts != null){\n\t\t\ttotalContainer = conSts.getTotalContainer();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalContainer;\n\t\t\t\t\t\n\t}",
"public List<ExoSocialActivity> getOlderFeedActivities(Identity owner, Long sinceTime, int limit);",
"public int getUDays() {\n return uDays;\n }",
"public List<ExoSocialActivity> getOlderUserActivities(Identity owner, Long sinceTime, int limit);",
"public int getNumberOfUpdatedOnActivityFeed(Identity owner, ActivityUpdateFilter filter);",
"public Integer getRenewalperiodbeforeexp() {\n return (Integer) getAttributeInternal(RENEWALPERIODBEFOREEXP);\n }",
"public Date getBestBeforeDate(int days) {\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.setTime(productionDate);\r\n\t\tc.add(Calendar.DATE, days); //adds 30 days to productionDate\r\n\t\treturn c.getTime();\r\n\t}",
"public int activeDays() {return activeDay;}",
"public int getNumberOfNewerOnSpaceActivities(Identity spaceIdentity,\n ExoSocialActivity baseActivity);",
"public List<ExoSocialActivity> getOlderSpaceActivities(Identity owner, Long sinceTime, int limit);",
"@Override\n public Long getRunningTimeInDays() {\n return null;\n }",
"public Index previous() {\n return Index.valueOf(value - 1);\n }",
"Integer getDaysSpanned();",
"Date getPriorDate();",
"Date PrevEvent(Date d);",
"public int getMonthsPast(){\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tint c_month = calendar.get(Calendar.MONTH);\n\t\tint c_day = calendar.get(Calendar.DAY_OF_MONTH);\n\t\tString[] date = start_date.split(\"-\");\n\t\tint month = Integer.parseInt(date[1]);\n\t\tint day = Integer.parseInt(date[2]);\n\t\t\n\t\tint current_count = c_day;\n\t\tint client_count = day;\n\t\t\n\t\tswitch (c_month - 1){\n\t\tcase 11:\n\t\t\tcurrent_count += 31;\n\t\tcase 10: \n\t\t\tcurrent_count += 30;\n\t\tcase 9:\n\t\t\tcurrent_count += 31;\n\t\tcase 8:\n\t\t\tcurrent_count += 30;\n\t\tcase 7:\n\t\t\tcurrent_count += 31;\n\t\tcase 6:\n\t\t\tcurrent_count += 31;\n\t\tcase 5: \n\t\t\tcurrent_count += 30;\n\t\tcase 4: \n\t\t\tcurrent_count += 31;\n\t\tcase 3:\n\t\t\tcurrent_count += 30;\n\t\tcase 2: \n\t\t\tcurrent_count += 31;\n\t\tcase 1: \n\t\t\tcurrent_count += 28;\n\t\tcase 0: \n\t\t\tcurrent_count += 31;\n\t\t\tbreak;\n\t\t\t\n\t}\n\t\n\t\tswitch (month - 2){\n\t\tcase 11:\n\t\t\tclient_count += 31;\n\t\tcase 10: \n\t\t\tclient_count += 30;\n\t\tcase 9:\n\t\t\tclient_count += 31;\n\t\tcase 8:\n\t\t\tclient_count += 30;\n\t\tcase 7:\n\t\t\tclient_count += 31;\n\t\tcase 6:\n\t\t\tclient_count += 31;\n\t\tcase 5: \n\t\t\tclient_count += 30;\n\t\tcase 4: \n\t\t\tclient_count += 31;\n\t\tcase 3:\n\t\t\tclient_count += 30;\n\t\tcase 2: \n\t\t\tclient_count += 31;\n\t\tcase 1: \n\t\t\tclient_count += 28;\n\t\tcase 0: \n\t\t\tclient_count += 31;\n\t\t\tbreak;\n\t}\n\t\t\n\treturn current_count-client_count;\n\t}",
"@Override\n public int getTopComponentPreviousIndex(String tcID) {\n synchronized(LOCK_TC_CONTEXTS) {\n return getContextSubModel().getTopComponentPreviousIndex(tcID);\n }\n }",
"public static String GetPreviousProjects() {\n\t\tString previousProjects = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"previousProjects\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tpreviousProjects = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn previousProjects;\n\t}",
"public List<ExoSocialActivity> getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit);",
"public Date getPreviousWeekStartDate(Date date) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(getWeekStartDate(date));\n cal.add(Calendar.WEEK_OF_YEAR, -1);\n return cal.getTime();\n }",
"String getDayofservice();",
"public int getNumberOfLastDayEvents() {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n for (int i = 0; i < records.length; i++) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n return counter;\n }",
"public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}",
"public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}",
"public Date getPreviousWeekEnd() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, cal.getFirstDayOfWeek());\n cal.add(Calendar.DATE, -1);\n Date previousWeekEnd = cal.getTime();\n\n return previousWeekEnd;\n }",
"public Date getPreviousWeekStart() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, cal.getFirstDayOfWeek());\n cal.add(Calendar.DATE, -7);\n Date previousWeekStart = cal.getTime();\n\n return previousWeekStart;\n }",
"public int getNumberOfUpdatedOnSpaceActivities(Identity owner, ActivityUpdateFilter filter);",
"private int backDays(Calendar startDate, int delta) {\n Calendar newDate = (Calendar) startDate.clone();\n newDate.add(Calendar.DAY_OF_MONTH, -delta);\n return DateUtil.convertCalToInt(newDate);\n }",
"public int getDaysAdded() {\n return daysAdded;\n }",
"public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }",
"public int getNumberOfNewerOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity);",
"public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n\t}",
"public IEvent getPreviousEvent();"
] | [
"0.58082885",
"0.57032454",
"0.5636932",
"0.5540428",
"0.5528238",
"0.55121195",
"0.5511742",
"0.5502328",
"0.5478336",
"0.54266053",
"0.5408677",
"0.53901863",
"0.53564954",
"0.53455925",
"0.53433645",
"0.53406674",
"0.53014576",
"0.5291331",
"0.52891684",
"0.5282282",
"0.524784",
"0.5247182",
"0.5223686",
"0.5206043",
"0.5205939",
"0.519693",
"0.51825607",
"0.51696837",
"0.5157131",
"0.51509184",
"0.5137082",
"0.5074511",
"0.50668454",
"0.5066838",
"0.50421965",
"0.5030937",
"0.5001501",
"0.499544",
"0.4985379",
"0.49764574",
"0.49746656",
"0.49553126",
"0.49408522",
"0.49207467",
"0.49120173",
"0.49090576",
"0.48984286",
"0.4867241",
"0.48641008",
"0.48173484",
"0.4806343",
"0.4795931",
"0.47781166",
"0.4769095",
"0.47593054",
"0.47459432",
"0.474288",
"0.47419736",
"0.47313398",
"0.47280687",
"0.4725129",
"0.47244784",
"0.47231647",
"0.47225598",
"0.47129494",
"0.47110245",
"0.46997705",
"0.46996006",
"0.4689667",
"0.46837953",
"0.46742406",
"0.46655384",
"0.46579126",
"0.4653424",
"0.46463525",
"0.46449187",
"0.46395934",
"0.46362567",
"0.4634213",
"0.46272328",
"0.46187383",
"0.46089163",
"0.4605785",
"0.46009266",
"0.45984858",
"0.45952588",
"0.4592815",
"0.4591315",
"0.45870236",
"0.4584324",
"0.4584324",
"0.45821324",
"0.457784",
"0.45772606",
"0.45697185",
"0.45660734",
"0.4564312",
"0.45621368",
"0.45617104",
"0.45613748"
] | 0.59034485 | 0 |
Get the current api details of the environment | public static Map<String, Integer> getCurrentApiDetails(int envId) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria apiCriteria = session.createCriteria(ApiStatusEntity.class, "apiSts");
apiCriteria.add(Restrictions.eq("apiSts.statusDate", todayDate ));
apiCriteria.add(Restrictions.eq("apiSts.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<ApiStatusEntity> apiEntityList = apiCriteria.list();
Map<String, Integer> mapApiSts = new HashMap<String, Integer>();
for(ApiStatusEntity apiStsEntity : apiEntityList){
if(apiStsEntity.getComponent() != null){
mapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());
}
}
txn.commit();
return mapApiSts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ApiInfo getApiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"Online Salon Appointment API\").version(\"1.0\")\n\t\t\t\t.description(\"API for online salon appointment.\").contact(new Contact(\"TEAM 1\",\n\t\t\t\t\t\t\"http://localhost:8100/OnlineSalonAppointment/swagger-ui/\", \"salonservice.office@gmail.com\"))\n\t\t\t\t.license(\"Apache License Version 2.0\").build();\n\t}",
"private ApiInfo apiDetails() {\n\t\tApiInfo apiInfo= new ApiInfoBuilder()\n\t\t\t\t.title(\"AuthorizationMicroservice Documentation\")\n\t\t\t\t.description(\"Gets the login details and checks the login details if yes it will generate a JWT token which we can use to validate the user.\")\n\t\t\t\t.termsOfServiceUrl(\"Help\")\n\t\t\t\t.license(\"Audit Management System 1.0\")\n\t\t\t\t.contact(new Contact(\"Souraj Mukhopadhyay\",\"cognizant.com\",\"907390@cognizant.com\"))\n\t\t\t\t.version(\"1.0\")\t\t\n\t\t\t\t.build();\n\t\tlog.debug(\"API Info{}:\", apiInfo);\n\t\treturn apiInfo;\n\t}",
"private ApiInfo apiInfo() {\n\t\treturn new ApiInfo(\"Langton ant app\", \"rest api for langton ant app\", version, null,\n\t\t\t\tnew Contact(\"leclerc\", \"N/A\", \"leclerc.cyril@hotmail.fr\"), null, null, Collections.EMPTY_LIST);\n\t}",
"private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"inferno@mckesson.com\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }",
"private ApiInfo apiInfo() {\n return new ApiInfo(\n \"ORDER REST API\",\n \"Springboot + Mysql + REST API aplicación basada en Ordenes, productos y Monedas.\",\n \"0.1\",\n \"All rights otorged\",\n new Contact(\"Ing. Andrés Pesántez\", \"www.javadesarrrollo.com\", \"pesantezandres@hotmail.com\"),\n \"API license\",\n \"http://www.google.es\",\n Collections.emptyList());\n }",
"private ApiInfo getApiInfo()\n {\n Contact contact = new Contact(\"Melchior Vrolijk\", \"\",\"vrol0004@gmail.com\");\n\n return new ApiInfo(\n \"Spring boot secure API documentation\",\n \"This is the demo spring boot secure api project documentation\",\n \"1.0\",\"\",contact,\n \"\",\"\",Collections.emptyList());\n }",
"public String getAPIName() {\r\n return apiName;\r\n }",
"public ApiContext getApiContext() {\n return this.apiContext;\n }",
"String getApiName();",
"public String getApiMode() {\n return this.apiMode;\n }",
"public String getApiBase() {\n\t\treturn apiBase;\n\t}",
"private ApiInfo apiInfo() {\n return new ApiInfoBuilder()\n .title(title)\n .description(description)\n .termsOfServiceUrl(serviceUrl)\n .license(license)\n .licenseUrl(licenseUrl)\n .version(version)\n .build();\n }",
"public String getAPIContext(String uuid) throws APIManagementException {\n return apiMgtDAO.getAPIContext(uuid);\n }",
"private ApiInfo apiInfo() {\n Contact contact = new Contact(\"Hanchuanjun\", \"\", \"han@inhand.com.cn\");\n ApiInfo apiInfo = new ApiInfo(\n \"GEHC SmartX SSO-OAuth模块api\",\n \"GEHC SmartX SSO-OAuth模块服务api\",\n \"v0.0.1\",\n \"初始化版本\",\n contact,\n \"\",\n \"\");\n return apiInfo;\n }",
"@GetMapping(\"/api/info\")\n\tpublic InfoResponse info() {\n\t\tGoogle google = Core.instance.google;\n\t\treturn new InfoResponse(google.login.getLoginUrl(), google.getServerGoogleClientID(), google.getAPIKey());\n\t}",
"private CloudStackApi getApi() {\n if (_eng == null) {\n _eng = new CloudStackApi(managementServer, cloudAPIPort, false);\n }\n // regardless of whether _eng is initialized, we must make sure\n // access/secret keys are current with what's in the UserCredentials\n _eng.setApiKey(UserContext.current().getAccessKey());\n _eng.setSecretKey(UserContext.current().getSecretKey());\n return _eng;\n }",
"@SuppressWarnings(\"unused\")\n public abstract T getApi();",
"public Map<String, String> getEnvironment();",
"String getEnvironment();",
"public static String getApiUrl() {\n return API_URL;\n }",
"public MCBouncerAPI getAPI() {\n return api;\n }",
"public IWDContext wdGetAPI() {\r\n return getContext();\r\n }",
"protected RemoteApi getRemoteApi() {\n return getLockssDaemon().getRemoteApi();\n }",
"public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(K8sApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public String getApiUrl();",
"java.lang.String getApiUrl();",
"public API getApi()\n\t{\n\t\treturn new API(this);\n\t}",
"public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }",
"String getApiKey() {\n return interceptorManager.isPlaybackMode() ? \"apiKeyInPlayback\"\n : Configuration.getGlobalConfiguration().get(AZURE_FORM_RECOGNIZER_API_KEY);\n }",
"IWDViewController wdGetAPI();",
"public Object externalApiKeys() {\n return this.externalApiKeys;\n }",
"@Override\r\n\tpublic InfoApi getInfoApi() {\r\n\t\treturn this;\r\n\t}",
"public Apis getApi() {\n //logging requests and responses in verbose\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //build retrofit object\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://srishti-systems.info/projects/ForteBank/api/\")\n .addConverterFactory(GsonConverterFactory.create())\n .client(client).build();\n\n //connect api class with this builder\n\n Apis apis = retrofit.create(Apis.class);\n return apis;\n }",
"@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();",
"Properties getEnvironment();",
"Properties getEnvironment();",
"public String getApiMethod() {\n return apiMethod;\n }",
"public ApiConfiguration getApiConfiguration() {\n return apiConfiguration;\n }",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"public String apiAccessLevel() {\n return this.apiAccessLevel;\n }",
"public Api getApiResponse() {\n\t\tWebResource webResource = client.resource(\"https://\" + server).path(\"/api/\");\n\t\tClientResponse response = webResource.header(HttpHeaders.USER_AGENT, \"jersey-client\").accept(CFEngineMimeType.CFENGINE).get(ClientResponse.class);\n\n\t\treturn response.getEntity(Api.class);\n\t}",
"@GetMapping({\"/\", \"actuator/info\"})\n public ResponseEntity<String> info() {\n // Indicate the request succeeded and return the\n // application name and thread name.\n return ResponseEntity\n .ok(mApplicationContext.getId()\n + \" is alive and running on \"\n + Thread.currentThread()\n + \"\\n\");\n }",
"public String getAPIKey()\r\n {\r\n return APIKey;\r\n }",
"public String apiId() {\n return this.innerProperties() == null ? null : this.innerProperties().apiId();\n }",
"public String getEnvironment() {\n return environment;\n }",
"public SemuxApiService getApi() {\n return api;\n }",
"public String getApiToken() {\n return apiToken;\n }",
"public String getApiKey() {\n return apiKey;\n }",
"private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}",
"ApiPackage getApiPackage();",
"private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"Spring Boot REST API for Testing Project\")\n .version(\"v1.0\")\n .contact(new Contact(\"Blagovest Anev\", \"https://www.linkedin.com/in/blagovestanev/\", \"blagovestanev@gmail.com\"))\n .build();\n }",
"public String getAPIClassName()\n {\n return _apiClass.getName();\n }",
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"protected String getApiKey() {\r\n\t\treturn apiKey;\r\n\t}",
"public FxEnvironment getEnvironment() {\n return CacheAdmin.getFilteredEnvironment();\n }",
"protected String getApiKey()\n\t{\n\t\treturn apiKey;\n\t}",
"public DiscordApi getApi() {\n\treturn api;\n }",
"private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"\\\"Spring Boot REST API for Vertica Developer Training\\\"\")\n .version(\"1.0.0\")\n .license(\"Apache License Version 2.0\")\n .licenseUrl(\"https://www.apache.org/licenses/LICENSE-2.0\\\"\")\n .contact(new Contact(\"Thingtrack\", \"https://www.thingtrack.com\", \"miguel@thingtrack.com\"))\n .build();\n }",
"String apiVersion();",
"public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.getProperties(env);\n }",
"public String getApiKey() {\n\t\treturn this.apiKey;\t// may return null, this is fine.\n\t}",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"@Test\n public void getAppDetailsTest() throws ApiException {\n String appId = null;\n Boolean naked = null;\n // Application response = api.getAppDetails(appId, naked);\n\n // TODO: test validations\n }",
"public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }",
"public String getApiKey(){\n\t\treturn apiKey;\n\t}",
"public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}",
"public Environment environment()\n {\n return theEnv;\n }",
"public String getApiKey() {\n\t\treturn apiKey;\n\t}",
"public APIOperation getAPIOperation()\n {\n return apiOperation;\n }",
"API createAPI();",
"public Long getAPIID()\r\n {\r\n return APIID;\r\n }",
"public static void showVersion() {\r\n String apiTitle = ImdbApi.class.getPackage().getSpecificationTitle();\r\n \r\n if (StringUtils.isNotBlank(apiTitle)) {\r\n String apiVersion = ImdbApi.class.getPackage().getSpecificationVersion();\r\n String apiRevision = ImdbApi.class.getPackage().getImplementationVersion();\r\n StringBuilder sv = new StringBuilder();\r\n sv.append(apiTitle).append(\" \");\r\n sv.append(apiVersion).append(\" r\");\r\n sv.append(apiRevision);\r\n LOGGER.debug(sv.toString());\r\n } else {\r\n LOGGER.debug(\"API-IMDB version/revision information not available\");\r\n }\r\n }",
"public String getAPIkey() {\n\t\treturn key1;\r\n\t}",
"private String getApiKey() throws IOException {\n Properties prop = new Properties();\n InputStream loader = getClass().getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(loader);\n\n return prop.getProperty(\"apiKey\");\n }",
"public Map<String, String> getEnv()\n {\n return env;\n }",
"public DropboxAPI getAPI() {\n \treturn api;\n }",
"public Single<EnvironmentInfo> getDeviceInfo() {\n return Single.just(EnvironmentInfo.create(Build.VERSION.RELEASE,\n String.format(\"%s(%s)\", BuildConfig.VERSION_NAME,\n BuildConfig.VERSION_CODE), Build.MODEL));\n }",
"public Environment getEnvironment() {\n \n \t\treturn this.environment;\n \t}",
"public String getAPI()\n {\n ResponseEntity<String> person;\n\n /*\n\t\t * Headers for the response type if we want to return JSON response then we\n\t\t * require to add.\n */\n HttpHeaders headers = new HttpHeaders();\n\n /*\n\t\t * Adding of the response header with application/json type\n */\n headers.add(\"Accept\", \"application/json\");\n\n /*\n\t\t * Creation of the Entity object for the adding the headers into request.\n */\n entity = new HttpEntity<>(headers);\n\n /*\n\t\t * Creation of REST TEMPLET object for the executing of the REST calls.\n */\n restTemplate = new RestTemplate();\n\n /*\n\t\t * Adding the basic type of authentication on the REST TEMPLETE.\n */\n restTemplate.getInterceptors()\n .add(new BasicAuthorizationInterceptor(\"Administrator\", \"Oneeight@admin18\"));\n\n /*\n\t\t * Execution of the REST call with basic authentication and JSON response type\n */\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/login?username=Administrator&password=Oneeight@admin18\", HttpMethod.POST, entity, String.class);\n System.out.println(\"\"+person.toString());\n //headers.add(\"Cookie\", \"JSESSIONID=0FC37952D64B545C46969EFEC0E4FD12\");\n headers.add(\"Cookie\", person.getHeaders().getFirst(HttpHeaders.SET_COOKIE));\n entity = new HttpEntity<>(headers);\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/analytics/v1.0.0/data/provider/tenants/OneEight/features/SDWAN/?qt=summary&start-date=1daysAgo&end-date=today&q=linkusage(site)&metrics=volume-rx&metrics=volume-tx&metrics=volume-rx&metrics=volume-tx&metrics=bandwidth&ds=aggregate&count=10\", HttpMethod.GET, entity, String.class);\n\n /*\n\t\t * Returning the response body with string format that easily readable.\n */\n return person.getBody();\n }",
"public abstract String globalInfo();",
"public String getApiBaseUrl() {\n return this.apiBaseUrl;\n }",
"public interface ApiScope {\n /**\n * Whether to allow the request or not in this scope.\n *\n * @param request the current request. The body can be read repeatedly via {@link javax.servlet.http.HttpServletRequest#getInputStream()}\n * @return {@code true} if allowed\n */\n boolean allow(HttpServletRequest request);\n\n Iterable<ApiResourceInfo> getApiResourceInfos();\n}",
"public API getApi() {\n return retrofit.create(API.class);\n }",
"@GetMapping\n @RequestMapping(\"/\")\n public Map getStatus() {\n Map map = new HashMap<String,String>();\n map.put(\"app-version\",appVersion);\n return map;\n }",
"public Integer getApiVersion()\n {\n return apiVersion;\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = {\"/api/\", \"/api\"}, method = RequestMethod.GET)\n \tpublic HttpEntity<String> getAll() {\n \t\treturn toJsonHttpEntity(agentManagerService.getAllVisibleAgentInfoFromDB());\n \t}",
"@Override\r\n public List<ResourceProvider> getAspectsAPI() {\n return ResourceProvider.getResourcesFromEnum(\r\n Arrays.asList(LaraAPIResources.class, LaraCommonLanguageApiResource.class, KadabraAPIResources.class,\r\n LaraCoreApiResource.class,\r\n LaraWeaverApiResource.class));\r\n\r\n // return ResourceProvider.getResources(LaraAPIResources.class);\r\n }",
"public void getRequest_withBasicAuth() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n }",
"public String getAPIManagerName()\n {\n return apiManagerName;\n }",
"public interface Api {\n String APP_DOMAIN = \"https://devapi.90sbid.com\";\n String RequestSuccess = \"0\";\n}",
"public ApplicationInfo getApplicationInfo() {\n return getActivityInfo().applicationInfo;\n }",
"private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }",
"public String getApiVersion();",
"Environment getEnvironment() {\n return recordingEnv;\n }",
"public Map<String, String> getEnv(IProject project) throws CoreException;",
"public ApiResponseSet getContextInfo(String contextName) throws Exception {\n ApiResponseSet context;\n try {\n context = (ApiResponseSet) api.context.context(contextName);\n } catch (ClientApiException e) {\n throw new UnicornZapException(\"Zap exception while getting info for context: \" + contextName, e);\n }\n return context;\n }",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"public String getApiForecast() {\n\t\treturn apiForecast;\n\t}",
"public String getAPISetting(){\n if(!apiSetting.equals(\"true\")){\n apiSetting = \"false\";\n }\n return apiSetting;\n }",
"public static ApplicationEnvironment getEnvironment (){\n\t\treturn _applicationEnvironment;\n\t}"
] | [
"0.69400585",
"0.6879959",
"0.6876057",
"0.6730298",
"0.65999854",
"0.65677696",
"0.65206283",
"0.65064067",
"0.64848065",
"0.64798194",
"0.647054",
"0.64205235",
"0.6276441",
"0.6273749",
"0.6254325",
"0.616075",
"0.61563593",
"0.6152028",
"0.6143624",
"0.61319584",
"0.60581106",
"0.60555476",
"0.6040084",
"0.60165006",
"0.60159206",
"0.5970105",
"0.5945391",
"0.58828694",
"0.58799",
"0.5872708",
"0.583873",
"0.5827729",
"0.5801845",
"0.5788962",
"0.57867205",
"0.57867205",
"0.5779538",
"0.5770648",
"0.5766601",
"0.57251793",
"0.5713241",
"0.5684679",
"0.5683832",
"0.5673441",
"0.5673375",
"0.5665916",
"0.56594557",
"0.5641886",
"0.5640645",
"0.562714",
"0.5624551",
"0.5617397",
"0.56169784",
"0.5609935",
"0.55997133",
"0.559846",
"0.5589269",
"0.5584864",
"0.55602443",
"0.55589336",
"0.55414486",
"0.55256623",
"0.5516295",
"0.55152833",
"0.54920197",
"0.54848254",
"0.54776055",
"0.5470868",
"0.546053",
"0.5457356",
"0.5452558",
"0.5446781",
"0.5445202",
"0.54428643",
"0.54405236",
"0.5432505",
"0.5431926",
"0.54192173",
"0.54158807",
"0.5403586",
"0.54013616",
"0.53921324",
"0.5370797",
"0.5358901",
"0.53509647",
"0.5337314",
"0.5320377",
"0.5317367",
"0.5317242",
"0.5315962",
"0.53122354",
"0.53067243",
"0.5300923",
"0.5297984",
"0.5297745",
"0.5290367",
"0.52896017",
"0.52881557",
"0.52832276",
"0.5278889"
] | 0.6014763 | 25 |
Update the api_status/k8s_api_status table with latest number of apis | public static void updateApiDetails(final int envId, String compName, int numOfApi, String platform){
final int compId = getComponentIdFromCompName(compName);
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
if(compId == 0){
logger.info("Component Name = " + compName + "; is not available in the DB");
return;
}
String updateApiStsQry = null;
if(platform.equalsIgnoreCase("Mesos")){
updateApiStsQry = HQLConstants.UPDATE_API_DETAILS;
}else if(platform.equalsIgnoreCase("K8s")){
updateApiStsQry = HQLConstants.UPDATE_K8S_API_DETAILS;
}
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(updateApiStsQry);
query.setInteger("numOfApi", numOfApi);
query.setLong("compId", compId);
query.setLong("environmentId", envId);
query.setDate("stsDate", todayDate);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sApiStatusEntity apiStatus = new K8sApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"public static void loadApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tint prevNumApis = getPreiousNumApis(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumApis == 0 ? 0 : numOfApi - prevNumApis;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tApiStatusEntity apiStatus = new ApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tapiStatus.setDeltaValue(deltaVal);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"private static void checkForUpgrades(@Nullable List<UpdatablePackage> completedChanges) {\n if (completedChanges == null) {\n return;\n }\n int highestNewApiLevel = 0;\n for (UpdatablePackage updated : completedChanges) {\n TypeDetails details = updated.getRepresentative().getTypeDetails();\n if (details instanceof DetailsTypes.PlatformDetailsType) {\n int api = ((DetailsTypes.PlatformDetailsType)details).getApiLevel();\n if (api > highestNewApiLevel) {\n highestNewApiLevel = api;\n }\n }\n }\n if (highestNewApiLevel > 0) {\n // TODO: Fix this code after we delete WizardConstants\n PropertiesComponent.getInstance().setValue(WizardConstants.NEWLY_INSTALLED_API_KEY.name, highestNewApiLevel, -1);\n }\n }",
"private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}",
"public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(K8sApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"private void updateAppsFromAPI(ApiResponse apiResponse) {\n List<Entry> api_entries = apiResponse.getFeed().getEntry();\n\n List<Artist> db_artists = new ArrayList<>();\n List<Category> db_Categories = new ArrayList<>();\n List<App> db_Apps = new ArrayList<>();\n List<AppImage> db_AppImages = new ArrayList<>();\n\n for (Entry e : api_entries) {\n Artist artist = new Artist();\n artist.setHref(e.getImArtist().getAttributes().getHref());\n artist.setName(e.getImArtist().getLabel());\n db_artists.add(artist);\n\n Category category = new Category();\n category.setId(e.getCategory().getAttributes().getImId());\n category.setLabel(e.getCategory().getAttributes().getLabel());\n category.setScheme(e.getCategory().getAttributes().getScheme());\n category.setTerm(e.getCategory().getAttributes().getTerm());\n db_Categories.add(category);\n\n App appEntry = new App();\n appEntry.setArtist(artist);\n appEntry.setCategory(category);\n appEntry.setCurrency(e.getImPrice().getAttributes().getAmount());\n appEntry.setCurrencyType(e.getImPrice().getAttributes().getCurrency());\n appEntry.setId(e.getId().getAttributes().getImId());\n appEntry.setId_package(e.getId().getAttributes().getImBundleId());\n appEntry.setName(e.getImName().getLabel());\n appEntry.setReleaseDate(e.getImReleaseDate().getAttributes().getLabel());\n appEntry.setReleaseTimestamp(e.getImReleaseDate().getLabel());\n appEntry.setRights(e.getRights().getLabel());\n appEntry.setSummary(e.getSummary().getLabel());\n appEntry.setTitle(e.getTitle().getLabel());\n appEntry.setWeb_link(e.getLink().getAttributes().getHref());\n appEntry.setMain_image(e.getImImage().get(2).getLabel());\n db_Apps.add(appEntry);\n\n for (ImImage imImage : e.getImImage()) {\n AppImage image = new AppImage();\n image.setApp(appEntry);\n image.setHeight(imImage.getAttributes().getHeight());\n image.setSource(imImage.getLabel());\n db_AppImages.add(image);\n }\n }\n\n // Indicador de actualizaciones completadas en la BD (Se Limpian)\n for (int i = 0; i < updates.length; i++) {\n updates[i] = false;\n }\n\n //Construccion de las sentencias de actualizacion asincronas\n DatabaseDefinition database = FlowManager.getDatabase(AppsCatalogDatabase.class);\n\n ProcessModelTransaction<Artist> artistProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<Artist>() {\n @Override\n public void processModel(Artist artist, DatabaseWrapper wrapper) {\n if (!artist.exists(wrapper)) {\n artist.save(wrapper);\n }\n }\n }).addAll(db_artists).build();\n\n ProcessModelTransaction<Category> categoryProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<Category>() {\n @Override\n public void processModel(Category category, DatabaseWrapper wrapper) {\n if (!category.exists(wrapper)) {\n category.save(wrapper);\n }\n }\n }).addAll(db_Categories).build();\n\n ProcessModelTransaction<App> appProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<App>() {\n @Override\n public void processModel(App app, DatabaseWrapper wrapper) {\n if (!app.exists()) {\n app.save(wrapper);\n }\n }\n }).addAll(db_Apps).build();\n\n ProcessModelTransaction<AppImage> imageProcessModelTransaction =\n new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<AppImage>() {\n @Override\n public void processModel(AppImage image, DatabaseWrapper wrapper) {\n if (!image.exists()) {\n image.save(wrapper);\n }\n }\n }).addAll(db_AppImages).build();\n\n // Definicion de Callbacks para actualizaciones cuando sean exitosas y cuando hayan errores\n Transaction t1 = database.beginTransactionAsync(artistProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[0] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n\n Transaction t2 = database.beginTransactionAsync(categoryProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[1] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n Transaction t3 = database.beginTransactionAsync(appProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[2] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n Transaction t4 = database.beginTransactionAsync(imageProcessModelTransaction)\n .success(new Transaction.Success() {\n @Override\n public void onSuccess(Transaction transaction) {\n updates[3] = true;\n verifyCompleteUpdate(updates);\n }\n }).error(new Transaction.Error() {\n @Override\n public void onError(Transaction transaction, Throwable error) {\n error.printStackTrace();\n post(error.getLocalizedMessage(), AppslistEvent.UPDATE_APPLIST_EVENT);\n }\n }).build();\n\n // Ejecutar\n t1.execute();\n t2.execute();\n t3.execute();\n t4.execute();\n\n }",
"public static Map<String, Integer> getNumOfActiveApisOfApp(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_NUM_APP_APIS);\n\t\tnumApisQuery.setParameter(\"envId\", envId);\n\t\tnumApisQuery.setParameter(\"platform\", platform);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> totTps = numApisQuery.list();\n\t\tMap<String, Integer> mapNumApis = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : totTps) {\n\t\t\tmapNumApis.put((String)tRow[0], ((Long)tRow[1]).intValue());\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapNumApis;\n\t}",
"private void updateAPIResources(API api, int tenantId) throws APIManagementException {\n\n String tenantDomain = APIUtil.getTenantDomainFromTenantId(tenantId);\n APIIdentifier apiIdentifier = api.getId();\n // Get the new URI templates for the API\n Set<URITemplate> uriTemplates = api.getUriTemplates();\n // Get the existing local scope keys attached for the API\n Set<String> oldLocalScopeKeys = apiMgtDAO.getAllLocalScopeKeysForAPI(api.getUuid(), tenantId);\n // Get the existing URI templates for the API\n Set<URITemplate> oldURITemplates = apiMgtDAO.getURITemplatesOfAPI(api.getUuid());\n // Get the new local scope keys from URI templates\n Set<Scope> newLocalScopes = getScopesToRegisterFromURITemplates(api.getId().getApiName(), api.getOrganization(), uriTemplates);\n Set<String> newLocalScopeKeys = newLocalScopes.stream().map(Scope::getKey).collect(Collectors.toSet());\n // Get the existing versioned local scope keys attached for the API\n Set<String> oldVersionedLocalScopeKeys = apiMgtDAO.getVersionedLocalScopeKeysForAPI(api.getUuid(), tenantId);\n // Get the existing versioned local scope keys which needs to be removed (not updated) from the current updating\n // API and remove them from the oldLocalScopeKeys set before sending to KM, so that they will not be removed\n // from KM and can be still used by other versioned APIs.\n Iterator oldLocalScopesItr = oldLocalScopeKeys.iterator();\n while (oldLocalScopesItr.hasNext()) {\n String oldLocalScopeKey = (String) oldLocalScopesItr.next();\n // if the scope is used in versioned APIs and it is not in new local scope key set\n if (oldVersionedLocalScopeKeys.contains(oldLocalScopeKey)\n && !newLocalScopeKeys.contains(oldLocalScopeKey)) {\n //remove from old local scope key set which will be send to KM\n oldLocalScopesItr.remove();\n }\n }\n validateAndUpdateURITemplates(api, tenantId);\n apiMgtDAO.updateURITemplates(api, tenantId);\n if (log.isDebugEnabled()) {\n log.debug(\"Successfully updated the URI templates of API: \" + apiIdentifier + \" in the database\");\n }\n // Update the resource scopes of the API in KM.\n // Need to remove the old local scopes and register new local scopes and, update the resource scope mappings\n // using the updated URI templates of the API.\n deleteScopes(oldLocalScopeKeys, tenantId);\n addScopes(newLocalScopes, tenantId);\n Map<String, KeyManagerDto> tenantKeyManagers = KeyManagerHolder.getTenantKeyManagers(tenantDomain);\n for (Map.Entry<String, KeyManagerDto> keyManagerDtoEntry : tenantKeyManagers.entrySet()) {\n KeyManager keyManager = keyManagerDtoEntry.getValue().getKeyManager();\n if (keyManager != null) {\n try {\n keyManager.updateResourceScopes(api, oldLocalScopeKeys, newLocalScopes, oldURITemplates,\n uriTemplates);\n if (log.isDebugEnabled()) {\n log.debug(\"Successfully updated the resource scopes of API: \" + apiIdentifier +\n \" in Key Manager \"+ keyManagerDtoEntry.getKey()+\" .\");\n }\n } catch (APIManagementException e) {\n log.error(\"Error while updating resource to scope attachment in Key Manager \" +\n keyManagerDtoEntry.getKey(), e);\n }\n }\n }\n }",
"Status updateStatus(StatusUpdate latestStatus) throws TwitterException;",
"private void populateAPILevelPolicies(API api) throws APIManagementException {\n List<OperationPolicy> apiPolicyMapping = apiMgtDAO.getAPIPolicyMapping(api.getUuid(), null);\n if (!apiPolicyMapping.isEmpty()) {\n api.setApiPolicies(apiPolicyMapping);\n }\n }",
"int getUpdateCountsCount();",
"public int getUpdateCount();",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body, \n @QueryMap ReplaceAPIServerStatus queryParameters);",
"long getUpdateCount();",
"private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Map<String, Integer> getCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"private void updateAPI(API api, int tenantId, String username) throws APIManagementException {\n\n apiMgtDAO.updateAPI(api, username);\n if (log.isDebugEnabled()) {\n log.debug(\"Successfully updated the API: \" + api.getId() + \" metadata in the database\");\n }\n updateAPIResources(api, tenantId);\n }",
"@Override\n public boolean updateAPIsInExternalAPIStores(API api, Set<APIStore> apiStoreSet, boolean apiOlderVersionExist)\n throws APIManagementException {\n Set<APIStore> publishedStores = getPublishedExternalAPIStores(api.getUuid());\n Set<APIStore> notPublishedAPIStores = new HashSet<APIStore>();\n Set<APIStore> updateApiStores = new HashSet<APIStore>();\n Set<APIStore> removedApiStores = new HashSet<APIStore>();\n StringBuilder errorStatus = new StringBuilder(\"Failed to update External Stores : \");\n boolean failure = false;\n if (publishedStores != null) {\n removedApiStores.addAll(publishedStores);\n removedApiStores.removeAll(apiStoreSet);\n }\n for (APIStore apiStore : apiStoreSet) {\n boolean publishedToStore = false;\n if (publishedStores != null) {\n for (APIStore store : publishedStores) { //If selected external store in edit page is already saved in db\n if (store.equals(apiStore)) { //Check if there's a modification happened in config file external store definition\n try {\n if (!isAPIAvailableInExternalAPIStore(api, apiStore)) {\n // API is not available\n continue;\n }\n } catch (APIManagementException e) {\n failure = true;\n log.error(e);\n errorStatus.append(store.getDisplayName()).append(',');\n }\n publishedToStore = true; //Already the API has published to external APIStore\n\n //In this case,the API is already added to external APIStore,thus we don't need to publish it again.\n //We need to update the API in external Store.\n //Include to update API in external APIStore\n updateApiStores.add(APIUtil.getExternalAPIStore(store.getName(), tenantId));\n }\n }\n }\n if (!publishedToStore) { //If the API has not yet published to selected external APIStore\n notPublishedAPIStores.add(APIUtil.getExternalAPIStore(apiStore.getName(), tenantId));\n }\n }\n //Publish API to external APIStore which are not yet published\n try {\n publishToExternalAPIStores(api, notPublishedAPIStores, apiOlderVersionExist);\n } catch (APIManagementException e) {\n handleException(\"Failed to publish API to external Store. \", e);\n }\n //Update the APIs which are already exist in the external APIStore\n updateAPIInExternalAPIStores(api, updateApiStores);\n //Update database saved published APIStore details\n updateExternalAPIStoresDetails(api.getUuid(), updateApiStores);\n\n deleteFromExternalAPIStores(api, removedApiStores);\n if (failure) {\n throw new APIManagementException(errorStatus.substring(0, errorStatus.length() - 2));\n }\n return true;\n }",
"public int getApiGroupsCount() {\n return apiGroups_.size();\n }",
"public int getApiGroupsCount() {\n return apiGroups_.size();\n }",
"long getUpdateCounts(int index);",
"public void updateBallCount() {\n mBallCount = (int) NetworkTableInstance.getDefault().getTable(\"SmartDashboard\").getEntry(\"Driver/Set Ball Count\")\n .getDouble(3);\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"public static void updateAPISwaggerDocs(String apiDocJson, String[] docResourcePaths,\n Registry registry) throws ParseException, RegistryException {\n\n JSONParser parser = new JSONParser();\n JSONObject apiDoc11 = (JSONObject) parser.parse(apiDocJson);\n\n Map<String, JSONArray> allParameters = ResourceUtil.getAllParametersForResources(apiDoc11);\n Map<String, JSONObject> allOperations = ResourceUtil.getAllOperationsForResources(apiDoc11);\n Map<String, JSONObject> apisByPath = ResourceUtil.getAllAPIsByResourcePath(apiDoc11);\n\n //this collection holds description given for each resource against the resource name.\n //descriptions added resources in an api in AM 1.7 are stored in api-doc 1.1. this desciption\n //is showed in am 1.7 api console in the store applicatoin. AM 1.8 uses descriptions in\n // api-doc in 1.2 resource folder. following map collects this value from api-doc 1.1 and\n // store it to add to api-doc 1.2\n Map<String, String> descriptionsForResource = new HashMap<String, String>();\n\n String basePath = (String) apiDoc11.get(Constants.API_DOC_11_BASE_PATH);\n String resourcePath = (String) apiDoc11.get(Constants.API_DOC_11_RESOURCE_PATH);\n String apiVersion = (String) apiDoc11.get(Constants.API_DOC_11_API_VERSION);\n\n resourcePath = resourcePath.endsWith(\"/\") ? resourcePath : resourcePath + \"/\";\n String basePathForResource = basePath + resourcePath + apiVersion;\n\n String apidoc12path = \"\";\n\n //update each resource in the 1.2 folder except the api-doc resource\n for (String docResourcePath : docResourcePaths) {\n String resourceName = docResourcePath.substring(docResourcePath.lastIndexOf(\"/\"));\n\n if (resourceName.equals(APIConstants.API_DOC_1_2_RESOURCE_NAME)) {\n //store api-doc in 1.2 folder for future use\n apidoc12path = docResourcePath;\n continue;\n }\n\n Resource resource = registry.get(docResourcePath);\n JSONObject apiDoc =\n (JSONObject) parser.parse(new String((byte[]) resource.getContent()));\n\n\n String description = \"\";\n //generate the key to query the descriptionsForResource map\n JSONArray apisInResource = (JSONArray) apiDoc.get(Constants.API_DOC_12_APIS);\n JSONObject apiTemp = (JSONObject) apisInResource.get(0);\n String path = (String) apiTemp.get(Constants.API_DOC_12_PATH);\n\n String key = \"\";\n if (path.equals(\"/*\")) {\n key = basePathForResource;\n } else {\n key = basePathForResource + path;\n }\n\n\n //get the description for that resource. query the api list generated using api-doc 1.1\n if (apisByPath.containsKey(key)) {\n JSONObject apiInfo = apisByPath.get(key);\n description = (String) apiInfo.get(\"description\");\n descriptionsForResource.put(resourceName, description);\n }\n\n String updatedJson =\n ResourceUtil.getUpdatedSwagger12Resource(apiDoc, allParameters, allOperations,\n basePathForResource);\n log.info(\"\\t update \" + resourceName.substring(1));\n Resource res = registry.get(docResourcePath);\n res.setContent(updatedJson);\n //update the registry\n registry.put(docResourcePath, res);\n }\n\n //update the api-doc. add the descriptions to each api resource\n ResourceUtil.updateSwagger12APIdoc(apidoc12path, descriptionsForResource, registry, parser);\n }",
"public static void updateCount(String url) {\n if(sites.isEmpty()) {\n sites.add(new SiteStats(url, 1));\n } else {\n //access via new for-loop\n for(Object object : sites) {\n SiteStats element = (SiteStats) object;\n if ((element.getUrl().equalsIgnoreCase(url))) {\n element.setNumVisits(element.getNumVisits() + 1);\n return;\n }\n }\n sites.add(new SiteStats(url, 1));\n }\n }",
"private void updateAPIPolicies(API api, String tenantDomain) throws APIManagementException {\n // Validate API level and operation level policies\n validateAPIPolicyParameters(api, tenantDomain);\n // Update API level and operation level policies\n apiMgtDAO.updateAPIPoliciesMapping(api.getUuid(), api.getUriTemplates(), api.getApiPolicies(), tenantDomain);\n }",
"private void deleteAPIFromDB(API api) throws APIManagementException {\n\n APIIdentifier apiIdentifier = api.getId();\n int tenantId = APIUtil.getTenantId(APIUtil.replaceEmailDomainBack(apiIdentifier.getProviderName()));\n String tenantDomain = APIUtil.getTenantDomainFromTenantId(tenantId);\n // Get local scopes for the given API which are not already assigned for different versions of the same API\n Set<String> localScopeKeysToDelete = apiMgtDAO.getUnversionedLocalScopeKeysForAPI(api.getUuid(), tenantId);\n // Get the URI Templates for the given API to detach the resources scopes from\n Set<URITemplate> uriTemplates = apiMgtDAO.getURITemplatesOfAPI(api.getUuid());\n // Detach all the resource scopes from the API resources in KM\n Map<String, KeyManagerDto> tenantKeyManagers = KeyManagerHolder.getTenantKeyManagers(tenantDomain);\n for (Map.Entry<String, KeyManagerDto> keyManagerDtoEntry : tenantKeyManagers.entrySet()) {\n KeyManager keyManager = keyManagerDtoEntry.getValue().getKeyManager();\n if (keyManager != null) {\n try {\n keyManager.detachResourceScopes(api, uriTemplates);\n if (log.isDebugEnabled()) {\n log.debug(\"Resource scopes are successfully detached for the API : \" + apiIdentifier\n + \" from Key Manager :\" + keyManagerDtoEntry.getKey() + \".\");\n }\n // remove the local scopes from the KM\n for (String localScope : localScopeKeysToDelete) {\n keyManager.deleteScope(localScope);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Local scopes are successfully deleted for the API : \" + apiIdentifier\n + \" from Key Manager : \" + keyManagerDtoEntry.getKey() + \".\");\n }\n } catch (APIManagementException e) {\n log.error(\"Error while Detach and Delete Scope from Key Manager \" + keyManagerDtoEntry.getKey(), e);\n }\n }\n }\n deleteScopes(localScopeKeysToDelete, tenantId);\n apiMgtDAO.deleteAPI(api.getUuid());\n if (log.isDebugEnabled()) {\n log.debug(\"API : \" + apiIdentifier + \" is successfully deleted from the database and Key Manager.\");\n }\n }",
"@PostMapping(\"/updateAPI\")\r\n\tpublic void updateAPI(@RequestBody ApiDto apiDTO) {\r\n\t\tAPI preAPI = persistenceService.findAPIById(apiDTO.getId());\r\n\t\tpersistenceService.updateAPI(apiDTO);\r\n\t\ttenantAPIService.updateAPI(apiDTO, tenantAPIService.findAPIbyURL(preAPI.getApiUrl()));\r\n\t}",
"int getStatusCount();",
"public void versionController(JSONArray jsonArray) {\n JSONObject jsonObject = null;\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n int count = 0;\n jsonObject = jsonArray.getJSONObject(i);\n Cursor cursor = database.rawQuery(\"select count(appid_staffid) from app_version_controller where appid_staffid = \\\"\" + jsonObject.getString(\"appid_staffid\") + \"\\\"\", null);\n cursor.moveToFirst();\n if (!cursor.isAfterLast()) {\n count = cursor.getInt(cursor.getPosition());\n\n }\n\n if (count == 0) {\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"appid_staffid\", jsonObject.getString(\"appid_staffid\"));\n contentValues.put(\"staff_id\", jsonObject.getString(\"staff_id\"));\n contentValues.put(\"staff_name\", jsonObject.getString(\"staff_name\"));\n contentValues.put(\"app_id\", jsonObject.getString(\"app_id\"));\n contentValues.put(\"app_name\", jsonObject.getString(\"app_name\"));\n contentValues.put(\"access_control_version\", jsonObject.getString(\"access_control_version\"));\n contentValues.put(\"supervisor_id\", jsonObject.getString(\"supervisor_id\"));\n contentValues.put(\"lead_id\", jsonObject.getString(\"lead_id\"));\n contentValues.put(\"user_app_version\", jsonObject.getString(\"user_version\"));\n database.insert(\"app_version_controller\", null, contentValues);\n\n\n } else {\n\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(\"staff_id\", jsonObject.getString(\"staff_id\"));\n contentValues.put(\"staff_name\", jsonObject.getString(\"staff_name\"));\n contentValues.put(\"app_id\", jsonObject.getString(\"app_id\"));\n contentValues.put(\"app_name\", jsonObject.getString(\"app_name\"));\n contentValues.put(\"access_control_version\", jsonObject.getString(\"access_control_version\"));\n contentValues.put(\"supervisor_id\", jsonObject.getString(\"supervisor_id\"));\n contentValues.put(\"lead_id\", jsonObject.getString(\"lead_id\"));\n contentValues.put(\"user_app_version\", jsonObject.getString(\"user_version\"));\n\n String where = \"appid_staffid =?\";\n String[] whereArgs = new String[]{String.valueOf(jsonObject.getString(\"appid_staffid\"))};\n\n database.update(\"app_version_controller\", contentValues, where, whereArgs);\n\n }\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n\n\n }",
"private static void updateHealthCheckStatus(final HealthCheckVO healthCheckVO, final int currentFailedCount) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\t\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n\t\tif ((healthCheckVO.getCurrentStatus() == null && status == Status.UP) || status == healthCheckVO.getCurrentStatus()\n\t\t\t\t|| (status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) ) {\n\t\t\tString queryString = HQLConstants.UPDATE_HEALTH_CHECK_NO_CHANGE_WITH_STATUS;\n\t\t\tif (healthCheckVO.getCurrentStatus() == null\n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) {\n\t\t\t\tqueryString = HQLConstants.UPDATE_HEALTH_CHECK_NO_CHANGE;\n\t\t\t}\n\t\t\tStatusEntity sts = new StatusEntity();\n\t\t\tQuery query = session.createQuery(queryString)\n\t\t\t\t\t.setTimestamp(\"updateTime\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setInteger(\"failedCount\", (currentFailedCount >= SurveillerConstants.DB_MAX_FAILED_COUNT) ? SurveillerConstants.DB_MAX_FAILED_COUNT : currentFailedCount)\n\t\t\t\t\t.setInteger(\"healthCheckId\", healthCheckVO.getHealthCheckId().intValue());\n\t\t\tif (healthCheckVO.getCurrentStatus() != null \n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()){\n\t\t\t\t/*NOT - First time status check. Failed but did not cross max-retry count */\n\t\t\t\tsts.setStatusId(healthCheckVO.getCurrentStatus().getStatusId());\n\t\t\t\tquery.setEntity(\"status\", sts);\n\t\t\t} else if (!(healthCheckVO.getCurrentStatus() == null\n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue())) {\n\t\t\t\t/* First time status check. Status changed and max-retry count is crossed. No need to update lastStatusChange */\n\t\t\t\tsts.setStatusId(status.getStatusId());\n\t\t\t\tquery.setEntity(\"status\", sts);\n\t\t\t}\n\t\t\tquery.executeUpdate();\n\t\t} else {\n\t\t\tQuery query = session.createQuery(HQLConstants.UPDATE_HEALTH_CHECK_CHANGE)\n\t\t\t\t\t.setTimestamp(\"updateTime\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setTimestamp(\"lastStatusChange\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setInteger(\"failedCount\", (currentFailedCount >= SurveillerConstants.DB_MAX_FAILED_COUNT) ? SurveillerConstants.DB_MAX_FAILED_COUNT : currentFailedCount)\n\t\t\t\t\t.setInteger(\"healthCheckId\", healthCheckVO.getHealthCheckId().intValue());\n\t\t\tStatusEntity sts = new StatusEntity();\n\t\t\tsts.setStatusId(status.getStatusId());\n\t\t\tquery.setEntity(\"status\", sts);\n\t\t\tquery.executeUpdate();\n\t\t}\n\t\ttxn.commit();\n\t}",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> patchAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body);",
"int getMockUpdatesCount();",
"public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}",
"public int getStatusCount() {\n return status_.size();\n }",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> patchAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body, \n @QueryMap PatchAPIServerStatus queryParameters);",
"private void updateMetrics(ContainerStatus status) {\n if (status != null) {\n switch (status.getExitStatus()) {\n case SUCCESS:\n componentMetrics.containersSucceeded.incr();\n scheduler.getServiceMetrics().containersSucceeded.incr();\n return;\n case PREEMPTED:\n componentMetrics.containersPreempted.incr();\n scheduler.getServiceMetrics().containersPreempted.incr();\n break;\n case DISKS_FAILED:\n componentMetrics.containersDiskFailure.incr();\n scheduler.getServiceMetrics().containersDiskFailure.incr();\n break;\n default:\n break;\n }\n }\n\n // containersFailed include preempted, disks_failed etc.\n componentMetrics.containersFailed.incr();\n scheduler.getServiceMetrics().containersFailed.incr();\n\n if (status != null && Apps.shouldCountTowardsNodeBlacklisting(\n status.getExitStatus())) {\n String host = scheduler.getLiveInstances().get(status.getContainerId())\n .getNodeId().getHost();\n failureTracker.incNodeFailure(host);\n currentContainerFailure.getAndIncrement();\n }\n }",
"private void updateAPIInExternalAPIStores(API api, Set<APIStore> apiStoreSet)\n throws APIManagementException {\n if (apiStoreSet != null && !apiStoreSet.isEmpty()) {\n StringBuilder errorStatus = new StringBuilder(\"Failed to update External Stores : \");\n boolean failure = false;\n for (APIStore store : apiStoreSet) {\n try {\n APIPublisher publisher = store.getPublisher();\n publisher.updateToStore(api, store);\n } catch (APIManagementException e) {\n failure = true;\n log.error(e);\n errorStatus.append(store.getDisplayName()).append(',');\n }\n }\n\n if (failure) {\n throw new APIManagementException(errorStatus.substring(0, errorStatus.length() - 2));\n }\n }\n\n\n }",
"private Integer getStatus(Map<String, Object> info) {\n return 200;\n }",
"private void updateOsMetrics()\n {\n Driver.updateOsMetric();\n }",
"public void setApiVersion(Integer apiVersion)\n {\n this.apiVersion = apiVersion;\n }",
"@ApiModelProperty(value = \"The number of up to date versioned process groups in the NiFi.\")\r\n public Integer getUpToDateCount() {\r\n return upToDateCount;\r\n }",
"int updateByPrimaryKey(StatusReplies record);",
"public void defaultUpdateCount(AcBatchFlight e)\n {\n }",
"public void updateStatus() {\n var taskStatuses = new ArrayList<OptimizationTaskStatus>();\n\n synchronized (tasks) {\n for (var task : tasks.values()) {\n taskStatuses.add(task.getStatus());\n }\n }\n\n wrapper.setStatus(JsonSerializer.toJson(new OptimizationToolStatus(taskStatuses)));\n }",
"List<String> apiVersions();",
"public int getStatusCount() {\n return status_.size();\n }",
"@Override\n public APIStateChangeResponse changeLifeCycleStatus(String orgId, ApiTypeWrapper apiTypeWrapper, String action,\n Map<String, Boolean> checklist) throws APIManagementException{\n APIStateChangeResponse response = new APIStateChangeResponse();\n try {\n PrivilegedCarbonContext.startTenantFlow();\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(this.username);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(this.tenantDomain, true);\n\n String targetStatus;\n String providerName;\n String apiName;\n String apiContext;\n String apiType;\n String apiVersion;\n String currentStatus;\n String uuid;\n int apiOrApiProductId;\n boolean isApiProduct = apiTypeWrapper.isAPIProduct();\n String workflowType;\n\n if (isApiProduct) {\n APIProduct apiProduct = apiTypeWrapper.getApiProduct();\n providerName = apiProduct.getId().getProviderName();\n apiName = apiProduct.getId().getName();\n apiContext = apiProduct.getContext();\n apiType = apiProduct.getType();\n apiVersion = apiProduct.getId().getVersion();\n currentStatus = apiProduct.getState();\n uuid = apiProduct.getUuid();\n apiOrApiProductId = apiMgtDAO.getAPIProductId(apiTypeWrapper.getApiProduct().getId());\n workflowType = WorkflowConstants.WF_TYPE_AM_API_PRODUCT_STATE;\n } else {\n API api = apiTypeWrapper.getApi();\n providerName = api.getId().getProviderName();\n apiName = api.getId().getApiName();\n apiContext = api.getContext();\n apiType = api.getType();\n apiVersion = api.getId().getVersion();\n currentStatus = api.getStatus();\n uuid = api.getUuid();\n apiOrApiProductId = apiMgtDAO.getAPIID(uuid);\n workflowType = WorkflowConstants.WF_TYPE_AM_API_STATE;\n }\n String gatewayVendor = apiMgtDAO.getGatewayVendorByAPIUUID(uuid);\n\n WorkflowStatus apiWFState = null;\n WorkflowDTO wfDTO = apiMgtDAO.retrieveWorkflowFromInternalReference(Integer.toString(apiOrApiProductId),\n workflowType);\n if (wfDTO != null) {\n apiWFState = wfDTO.getStatus();\n }\n\n // if the workflow has started, then executor should not fire again\n if (!WorkflowStatus.CREATED.equals(apiWFState)) {\n response = executeStateChangeWorkflow(currentStatus, action, apiName, apiContext, apiType,\n apiVersion, providerName, apiOrApiProductId, uuid, gatewayVendor, workflowType);\n // get the workflow state once the executor is executed.\n wfDTO = apiMgtDAO.retrieveWorkflowFromInternalReference(Integer.toString(apiOrApiProductId),\n workflowType);\n if (wfDTO != null) {\n apiWFState = wfDTO.getStatus();\n response.setStateChangeStatus(apiWFState.toString());\n } else {\n response.setStateChangeStatus(WorkflowStatus.APPROVED.toString());\n }\n }\n\n // only change the lifecycle if approved\n // apiWFState is null when simple wf executor is used because wf state is not stored in the db.\n if (WorkflowStatus.APPROVED.equals(apiWFState) || apiWFState == null) {\n LifeCycleUtils.changeLifecycle(this.username, this, orgId, apiTypeWrapper, action, checklist);\n JSONObject apiLogObject = new JSONObject();\n apiLogObject.put(APIConstants.AuditLogConstants.NAME, apiName);\n apiLogObject.put(APIConstants.AuditLogConstants.CONTEXT, apiContext);\n apiLogObject.put(APIConstants.AuditLogConstants.VERSION, apiVersion);\n apiLogObject.put(APIConstants.AuditLogConstants.PROVIDER, providerName);\n APIUtil.logAuditMessage(APIConstants.AuditLogConstants.API, apiLogObject.toString(),\n APIConstants.AuditLogConstants.LIFECYCLE_CHANGED, this.username);\n }\n } catch (APIPersistenceException e) {\n handleException(\"Error while accessing persistence layer\", e);\n } finally {\n PrivilegedCarbonContext.endTenantFlow();\n }\n return response;\n }",
"private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }",
"int getVersionsCount();",
"@Operation(\n\t\t\tsummary=\t\"Increment percent complete within specified maximum\"\n\t\t\t)\n\t@CrossOrigin\n\t@RequestMapping(value=\"/incrementPercentComplete\", method= RequestMethod.POST)\n\tpublic JSONObject incrementPercentComplete(@RequestBody StatusRequestBodyIncrement requestBody, @RequestHeader HttpHeaders headers) {\n\t\tfinal String ENDPOINT = \"incrementPercentComplete\";\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t\t LocalLogger.logToStdOut(\"Status Service/\" + ENDPOINT + \" increment=\" + requestBody.increment + \" JobId=\" + jobId);\n\t\n\t\t try {\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.incrementPercentComplete(jobId, requestBody.increment, requestBody.max);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, ENDPOINT, e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", ENDPOINT + \" exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service \" + ENDPOINT + \" exception message=\" + e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t\t \n\t}",
"public int countByG_UT_ST(long groupId, String urlTitle, int[] statuses);",
"private void updateNumVisits(String url)\r\n\t{\r\n\t\tfor(int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (webVisited[0][i].equals(url))\t\t\t\t\t\t\t\t\t//if the url is found in the array\r\n\t\t\t{\r\n\t\t\t\twebVisited[1][i] = (int)webVisited[1][i] + 1;\t\t\t\t\t//increment the number of times user visited the site\r\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//break out of the loop\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"static int lastSchemaUpdate(Configuration conf) {\n return conf.getInt(SCHEMA_UPDATE_PROP, 0);\n }",
"java.util.List<java.lang.Long> getUpdateCountsList();",
"public void setUpdateOften(int i){\n countNum = i;\n }",
"@Before(\"forDaoPackage()\")\r\n\tpublic void performApiAnalytics() {\r\n\t\tSystem.out.println(\"\\n=======>>>>> Performing API analytics\");\r\n\t}",
"public HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> getStatus(String region) throws IOException {\r\n String currentData;\r\n\r\n try {\r\n baseURL = StaticData.buildURL(region);\r\n currentData = getUrlData();\r\n networkOK = true;\r\n }\r\n catch(UnknownHostException e) {\r\n currentData = \"\";\r\n networkOK = false;\r\n throw e;\r\n }\r\n \r\n JsonElement jelem = new JsonParser().parse(currentData);\r\n JsonObject jobj = jelem.getAsJsonObject();\r\n JsonArray servicesArr = jobj.getAsJsonArray(\"services\");\r\n JsonArray incidentsArr;\r\n JsonArray updatesArr;\r\n \r\n String service, status;\r\n HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> statusInfo = new HashMap();\r\n HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>> statusValues = new HashMap();\r\n ArrayList<HashMap<String, HashMap<String, String>>> services = new ArrayList();\r\n HashMap<String, HashMap<String, String>> incidents = new HashMap();\r\n HashMap<String, String> content = new HashMap();\r\n\r\n for(int i = 0; i < servicesArr.size(); i++) {\r\n jobj = servicesArr.get(i).getAsJsonObject();\r\n \r\n service = formatOutput(jobj.get(\"name\").toString());\r\n status = formatOutput(jobj.get(\"status\").toString()); \r\n\r\n incidentsArr = jobj.getAsJsonArray(\"incidents\");\r\n \r\n // If there are any incidents, store them.\r\n if(incidentsArr.size() > 0) {\r\n // Get each incident.\r\n for(int j = 0; j < incidentsArr.size(); j++) {\r\n jobj = incidentsArr.get(j).getAsJsonObject();\r\n updatesArr = jobj.getAsJsonArray(\"updates\");\r\n \r\n // Get information for each update.\r\n if(updatesArr.size() > 0) {\r\n for(int k = 0; k < updatesArr.size(); k++) {\r\n jobj = updatesArr.get(k).getAsJsonObject();\r\n\r\n // Add id\r\n content.put(\"id\", formatOutput(jobj.get(\"id\").toString()));\r\n // Add severity\r\n content.put(\"severity\", formatOutput(jobj.get(\"severity\").toString()));\r\n // Add updated_at\r\n content.put(\"updated_at\", formatOutput(jobj.get(\"updated_at\").toString()));\r\n // Add content\r\n content.put(\"content\", formatOutput(jobj.get(\"content\").toString()));\r\n \r\n incidents.put(service, (HashMap)content.clone());\r\n services.add((HashMap)incidents.clone());\r\n }\r\n }\r\n }\r\n }\r\n \r\n Collections.reverse(services); // Flip incidents ArrayList to have the newest first.\r\n statusValues.put(status, (ArrayList)services.clone());\r\n services.clear(); // Make sure old incidents aren't copied if current service has no incidents.\r\n statusInfo.put(service, (HashMap)statusValues.clone());\r\n statusValues.clear(); // Make sure old statuses aren't copied if current service has no incidents.\r\n }\r\n \r\n return statusInfo;\r\n }",
"private static void updateStatus(final int increment) {\n if (splash != null) {\n splash.advance();\n }\n }",
"public int getNumberOfMultiUpdated(Identity owner, Map<String, Long> sinceTimes);",
"public Builder setUpdateCount(long value) {\n \n updateCount_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic int upAccountStatus(List<Long> ids, String status) {\n\t\treturn auMapper.upAccountStatus(ids, status);\n\t}",
"@Override\n public WorkflowResponse complete(WorkflowDTO workflowDTO) throws WorkflowException {\n if (log.isDebugEnabled()) {\n log.debug(\"Completing API State change Workflow..\");\n }\n workflowDTO.setUpdatedTime(System.currentTimeMillis());\n super.complete(workflowDTO);\n String externalWorkflowRef = workflowDTO.getExternalWorkflowReference();\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n Workflow workflow = apiMgtDAO.getworkflowReferenceByExternalWorkflowReference(externalWorkflowRef);\n String apiName = workflow.getMetadata(\"ApiName\");\n String action = workflow.getMetadata(\"Action\");\n String providerName = workflow.getMetadata(\"ApiProvider\");\n String version = workflow.getMetadata(\"ApiVersion\");\n String invoker = workflow.getMetadata(\"Invoker\");\n String currentStatus = workflow.getMetadata(\"CurrentState\");\n int tenantId = workflowDTO.getTenantId();\n try {\n //tenant flow is already started from the rest api service impl. no need to start from here\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(invoker);\n Registry registry = ServiceReferenceHolder.getInstance().getRegistryService()\n .getGovernanceUserRegistry(invoker, tenantId);\n APIIdentifier apiIdentifier = new APIIdentifier(providerName, apiName, version);\n GenericArtifact apiArtifact = APIUtil.getAPIArtifact(apiIdentifier, registry);\n if (WorkflowStatus.APPROVED.equals(workflowDTO.getStatus())) {\n String targetStatus;\n apiArtifact.invokeAction(action, APIConstants.API_LIFE_CYCLE);\n targetStatus = apiArtifact.getLifecycleState();\n if (!currentStatus.equals(targetStatus)) {\n apiMgtDAO.recordAPILifeCycleEvent(apiIdentifier, currentStatus.toUpperCase(),\n targetStatus.toUpperCase(), invoker, tenantId);\n }\n if (log.isDebugEnabled()) {\n String logMessage = \"API Status changed successfully. API Name: \" + apiIdentifier.getApiName()\n + \", API Version \" + apiIdentifier.getVersion() + \", New Status : \" + targetStatus;\n log.debug(logMessage);\n }\n }\n } catch (RegistryException e) {\n String errorMsg = \"Could not complete api state change workflow\";\n log.error(errorMsg, e);\n throw new WorkflowException(errorMsg, e);\n }\n } catch (APIManagementException e) {\n String errorMsg = \"Could not complete api state change workflow\";\n log.error(errorMsg, e);\n }\n return new GeneralWorkflowResponse();\n }",
"public int getUpdateCountsCount() {\n return updateCounts_.size();\n }",
"public static void crdStatusHasUpdatedStorageVersions(KubernetesClient client) {\n for (String kind : AbstractCommand.STRIMZI_KINDS) {\n String crdName = CrdUpgradeCommand.CRD_NAMES.get(kind);\n CustomResourceDefinition crd = client.apiextensions().v1beta1().customResourceDefinitions().withName(crdName).get();\n\n assertThat(crd.getStatus().getStoredVersions(), hasItem(\"v1beta2\"));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(not(\"v1beta1\")));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(not(\"v1alpha1\")));\n }\n }",
"private GeobatchRunInfo updateRunInfoStatus(GeobatchRunInfo runInfo) {\n RESTConsumerStatus status = null;\n try {\n status = getFlowService().getConsumerStatus(\n runInfo.getFlowUid());\n } catch (Exception e) {\n // status it's FAIL\n }\n runInfo.setFlowStatus(status != null ? status.getStatus().name()\n : \"FAIL\");\n runInfo = updateRunInfo(runInfo);\n return runInfo;\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<APIServer> readAPIServerStatus(\n @Path(\"name\") String name);",
"@Override\n public void updateBottomBarCount() {\n updateBottomToolbar();\n }",
"private void updateDeploymentCounts(final List<ToscaConceptIdentifier> runningPolicies,\n final List<ToscaPolicy> policies) {\n final var statisticsManager = ApexPolicyStatisticsManager.getInstanceFromRegistry();\n if (statisticsManager == null || policies == null || policies.isEmpty()) {\n return;\n }\n var policiesToDeploy = policies.stream()\n .map(ToscaWithTypeAndObjectProperties::getIdentifier).collect(Collectors.toList());\n\n var policiesSuccessfullyDeployed = new ArrayList<>(policiesToDeploy);\n policiesSuccessfullyDeployed.retainAll(runningPolicies);\n policiesSuccessfullyDeployed.forEach(policy -> statisticsManager.updatePolicyDeployCounter(true));\n\n var policiesFailedToDeploy = new ArrayList<>(policiesToDeploy);\n policiesFailedToDeploy.removeIf(runningPolicies::contains);\n policiesFailedToDeploy.forEach(policy -> statisticsManager.updatePolicyDeployCounter(false));\n }",
"private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }",
"private void addUpdateAPI(FunctionGenerator fg) throws EQException\n\t{\n\t\tAPIFieldSet apiFieldSet = FunctionToolbox.getAPIFieldSet(session, \"LID\", \"MCD\", \"G01M\", \"Maintain Customer Details\", \"M\");\n\t\tfg.addUpdateAPIFieldSet(apiFieldSet);\n\t}",
"public void recordOverallStatus(int status) {\n mOverallStatusHistogram.put(status, mOverallStatusHistogram.get(status) + 1);\n }",
"@Test\n\tpublic void assertRowCountWithAPIDataSize() throws Exception\n\t{\n\t\ttry {\n\t\t\tint actualRowCount = dashboardPage.getActualRows().size();\n\t\t\tresponsePage = new APIResponsePageObject(driver);\n\t\t\tint expectedRowCount = responsePage.getRateDataFromAPI().size();\n\t\t\terrorMessage = \"The table row count doesnt match with api rate data count. Not all the currencies are fetched in the table from api\";\n\t\t\tAssert.assertEquals(actualRowCount, expectedRowCount, errorMessage);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t}",
"void updateList(List<PackageInfo> apps);",
"public abstract void updateStatus() throws Throwable;",
"public void updateTableStatus(int id){\n tableRef.child(storeID)\n .orderByChild(\"id\")\n .equalTo(id)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String tableID = null;\n for(DataSnapshot data: dataSnapshot.getChildren())\n tableID = data.getKey();\n\n if (tableID != null) {\n tableRef.child(storeID)\n .child(tableID)\n .child(\"status\")\n .setValue(\"ORDER_TAKEN\");\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"private int update(surfstore.SurfStoreBasic.FileInfo request, String method) {\n int updated = 0;\n for (int i = 0; i < metadataStubList.size(); i++) {\n MetadataStoreGrpc.MetadataStoreBlockingStub metaStub = metadataStubList.get(i);\n metaStub.ping(Empty.newBuilder().build());\n // 1st phase\n\t\t\tif (metaStub.updateLog(LogInfo.newBuilder().setLog(method).setFilename(request.getFilename()).build()).getAnswer() == false) { // not crashed\n\t\t\t\t// 2nd phase\n\t\t\t\tif (metaStub.updateFollower(request).getResult() == WriteResult.Result.OK) {\n\t\t\t\t\tfollowerMapList.get(i).put(request.getFilename(), request.getVersion());\n\t\t\t\t\tupdated++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"heartbeat update follower numbers \" + Integer.toString(updated));\n\t\treturn updated;\n\t}",
"private void appStartCountIncrease(int currentAppStartCount) {\n\t\tPrefs p = new Prefs(c);\n\t\tp.save(\"app_start_count\", currentAppStartCount + 1);\n\t}",
"private void updateBathCount() {\n // Create thread for database fetch\n new Thread(new Runnable() {\n @Override\n public void run() {\n sitesCount = database.bathingSiteDao().getTotalBathingSites();\n // Update on UI thread\n activity.runOnUiThread(new Runnable(){\n @Override\n public void run() {\n displaySitesCount();\n }\n });\n }\n }).start();\n }",
"long countByExample(StatusRepliesExample example);",
"public Builder addUpdateCounts(long value) {\n ensureUpdateCountsIsMutable();\n updateCounts_.add(value);\n onChanged();\n return this;\n }",
"public void processUpdates() {\n List<Update> updates = getUpdates(lastId, updateLimit, timeout);\n\n lastId = updates.stream()\n .map(Update::getId)\n .max(Long::compareTo)\n .orElse(lastId-1) + 1;\n\n updates.parallelStream().forEach(this::processUpdate);\n }",
"private void updateExpectedTotalOffices() {\n mExpectedTotalOffices++;\n }",
"public int getUpdateCountsCount() {\n return updateCounts_.size();\n }",
"void onStatusUpdate(int status);",
"private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}",
"public void refresh() {\n if (this.monitorApiKey.length() == 0) {\n return;\n }\n String params =\n String.format(\"api_key=%s&format=xml&custom_uptime_ratios=1-7-30-365\", this.monitorApiKey);\n byte[] xml = loadPageWithRetries(params);\n Match doc;\n try {\n doc = $(new ByteArrayInputStream(xml));\n } catch (SAXException | IOException e) {\n throw new CouldNotRefresh(e);\n }\n String[] customRatios = doc.find(\"monitor\").attr(\"custom_uptime_ratio\").split(\"-\");\n this.last24HoursUptimeRatio = customRatios[0];\n this.last7DaysUptimeRatio = customRatios[1];\n this.last30DaysUptimeRatio = customRatios[2];\n this.last365DaysUptimeRatio = customRatios[3];\n }",
"Update withReplicaCount(int count);",
"public void incrementActiveRequests() \n {\n ++requests;\n }",
"@Test\n public void shouldListExpectedApi() {\n OrgApisListPage theApiPage = open(OrgApisListPage.class, organization.getName());\n theApiPage.entriesContainer().shouldHave(text(api.getName()));\n }",
"public Integer getApiVersion()\n {\n return apiVersion;\n }",
"void updateLastAccessed(int id);",
"@Update({ \"update iiot_app_list\", \"set app_name = #{appName,jdbcType=VARCHAR},\", \"node = #{node,jdbcType=VARCHAR},\",\n\t\t\t\"status = #{status,jdbcType=INTEGER},\", \"restart_times = #{restartTimes,jdbcType=CHAR},\",\n\t\t\t\"up_time = #{upTime,jdbcType=VARCHAR},\", \"template = #{template,jdbcType=VARCHAR},\",\n\t\t\t\"owner = #{owner,jdbcType=VARCHAR},\", \"note = #{note,jdbcType=VARCHAR},\",\n\t\t\t\"rest3 = #{rest3,jdbcType=VARCHAR},\", \"rest4 = #{rest4,jdbcType=VARCHAR},\",\n\t\t\t\"rest5 = #{rest5,jdbcType=VARCHAR},\", \"create_time = #{createTime,jdbcType=TIMESTAMP},\",\n\t\t\t\"uuid = #{uuid,jdbcType=CHAR}\", \"where app_id = #{appId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(IiotAppList record);",
"String getLoginapihitcount();",
"@Override\r\n\tpublic void updateCounter(CounterModel cm) {\n\t\thomedao.updateCounter(cm);\r\n\t}",
"private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}",
"int updateByPrimaryKeySelective(StatusReplies record);",
"private static List<OperationPolicy> extractAndDropAPILevelPoliciesFromAPI(API api) {\n List<OperationPolicy> policies = new ArrayList<>();\n if (api.getApiPolicies() != null && !api.getApiPolicies().isEmpty()) {\n policies = api.getApiPolicies();\n api.setApiPolicies(null);\n }\n return policies;\n }"
] | [
"0.592648",
"0.5648759",
"0.5378868",
"0.5372997",
"0.53540254",
"0.53163576",
"0.5289135",
"0.5287562",
"0.51812553",
"0.5139304",
"0.51193285",
"0.507519",
"0.507431",
"0.5071422",
"0.505056",
"0.50138116",
"0.4995644",
"0.49832702",
"0.49777523",
"0.49651533",
"0.49164844",
"0.49162763",
"0.49160168",
"0.49150944",
"0.49150944",
"0.48985818",
"0.48923042",
"0.4874245",
"0.4862328",
"0.4801196",
"0.47921067",
"0.4784469",
"0.4769553",
"0.47689965",
"0.47614375",
"0.47431234",
"0.4734547",
"0.47330457",
"0.47309056",
"0.47183004",
"0.47143054",
"0.4704382",
"0.46917954",
"0.4665139",
"0.4665078",
"0.46445033",
"0.46415392",
"0.4636599",
"0.46170396",
"0.46160984",
"0.45892212",
"0.45866928",
"0.45832065",
"0.4561264",
"0.45604825",
"0.455075",
"0.45502293",
"0.45405066",
"0.45376566",
"0.4534566",
"0.45344576",
"0.45189238",
"0.45101097",
"0.4498108",
"0.44906068",
"0.44871703",
"0.44865143",
"0.4481249",
"0.44794792",
"0.44754094",
"0.44667852",
"0.44663778",
"0.44663447",
"0.44614345",
"0.44585386",
"0.4457026",
"0.4456069",
"0.4456033",
"0.44524336",
"0.44497886",
"0.4446293",
"0.4445815",
"0.44416794",
"0.44293138",
"0.44268945",
"0.44099274",
"0.44084954",
"0.44081086",
"0.44034824",
"0.43990424",
"0.4382953",
"0.4382743",
"0.43782747",
"0.43710223",
"0.4368652",
"0.43628153",
"0.4362405",
"0.4356094",
"0.43552643",
"0.43548712"
] | 0.5523364 | 2 |
Get the current api details of the environment | public static Map<String, Integer> getCurrentContainerDetails(int envId) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria apiCriteria = session.createCriteria(ContainerStatsEntity.class, "contSts");
apiCriteria.add(Restrictions.eq("contSts.statsDate", todayDate ));
apiCriteria.add(Restrictions.eq("contSts.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<ContainerStatsEntity> contEntityList = apiCriteria.list();
Map<String, Integer> mapApiSts = new HashMap<String, Integer>();
for(ContainerStatsEntity contStsEntity : contEntityList){
if(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){
String fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + "/" + contStsEntity.getComponent().getComponentName();
mapApiSts.put(fullAppName, contStsEntity.getTotalContainer());
}else if(contStsEntity.getComponent() != null){
mapApiSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainer());
}
}
txn.commit();
return mapApiSts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ApiInfo getApiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"Online Salon Appointment API\").version(\"1.0\")\n\t\t\t\t.description(\"API for online salon appointment.\").contact(new Contact(\"TEAM 1\",\n\t\t\t\t\t\t\"http://localhost:8100/OnlineSalonAppointment/swagger-ui/\", \"salonservice.office@gmail.com\"))\n\t\t\t\t.license(\"Apache License Version 2.0\").build();\n\t}",
"private ApiInfo apiDetails() {\n\t\tApiInfo apiInfo= new ApiInfoBuilder()\n\t\t\t\t.title(\"AuthorizationMicroservice Documentation\")\n\t\t\t\t.description(\"Gets the login details and checks the login details if yes it will generate a JWT token which we can use to validate the user.\")\n\t\t\t\t.termsOfServiceUrl(\"Help\")\n\t\t\t\t.license(\"Audit Management System 1.0\")\n\t\t\t\t.contact(new Contact(\"Souraj Mukhopadhyay\",\"cognizant.com\",\"907390@cognizant.com\"))\n\t\t\t\t.version(\"1.0\")\t\t\n\t\t\t\t.build();\n\t\tlog.debug(\"API Info{}:\", apiInfo);\n\t\treturn apiInfo;\n\t}",
"private ApiInfo apiInfo() {\n\t\treturn new ApiInfo(\"Langton ant app\", \"rest api for langton ant app\", version, null,\n\t\t\t\tnew Contact(\"leclerc\", \"N/A\", \"leclerc.cyril@hotmail.fr\"), null, null, Collections.EMPTY_LIST);\n\t}",
"private ApiInfo apiInfo()\r\n\t {\r\n\t ApiInfo apiInfo = new ApiInfo(\r\n\t \"My Project's REST API\",\r\n\t \"This is a description of your API.\",\r\n\t \"version-1\",\r\n\t \"API TOS\",\r\n\t \"inferno@mckesson.com\",\r\n\t \"API License\",\r\n\t \"API License URL\"\r\n\t );\r\n\t return apiInfo;\r\n\t }",
"private ApiInfo apiInfo() {\n return new ApiInfo(\n \"ORDER REST API\",\n \"Springboot + Mysql + REST API aplicación basada en Ordenes, productos y Monedas.\",\n \"0.1\",\n \"All rights otorged\",\n new Contact(\"Ing. Andrés Pesántez\", \"www.javadesarrrollo.com\", \"pesantezandres@hotmail.com\"),\n \"API license\",\n \"http://www.google.es\",\n Collections.emptyList());\n }",
"private ApiInfo getApiInfo()\n {\n Contact contact = new Contact(\"Melchior Vrolijk\", \"\",\"vrol0004@gmail.com\");\n\n return new ApiInfo(\n \"Spring boot secure API documentation\",\n \"This is the demo spring boot secure api project documentation\",\n \"1.0\",\"\",contact,\n \"\",\"\",Collections.emptyList());\n }",
"public String getAPIName() {\r\n return apiName;\r\n }",
"public ApiContext getApiContext() {\n return this.apiContext;\n }",
"String getApiName();",
"public String getApiMode() {\n return this.apiMode;\n }",
"public String getApiBase() {\n\t\treturn apiBase;\n\t}",
"private ApiInfo apiInfo() {\n return new ApiInfoBuilder()\n .title(title)\n .description(description)\n .termsOfServiceUrl(serviceUrl)\n .license(license)\n .licenseUrl(licenseUrl)\n .version(version)\n .build();\n }",
"public String getAPIContext(String uuid) throws APIManagementException {\n return apiMgtDAO.getAPIContext(uuid);\n }",
"private ApiInfo apiInfo() {\n Contact contact = new Contact(\"Hanchuanjun\", \"\", \"han@inhand.com.cn\");\n ApiInfo apiInfo = new ApiInfo(\n \"GEHC SmartX SSO-OAuth模块api\",\n \"GEHC SmartX SSO-OAuth模块服务api\",\n \"v0.0.1\",\n \"初始化版本\",\n contact,\n \"\",\n \"\");\n return apiInfo;\n }",
"@GetMapping(\"/api/info\")\n\tpublic InfoResponse info() {\n\t\tGoogle google = Core.instance.google;\n\t\treturn new InfoResponse(google.login.getLoginUrl(), google.getServerGoogleClientID(), google.getAPIKey());\n\t}",
"private CloudStackApi getApi() {\n if (_eng == null) {\n _eng = new CloudStackApi(managementServer, cloudAPIPort, false);\n }\n // regardless of whether _eng is initialized, we must make sure\n // access/secret keys are current with what's in the UserCredentials\n _eng.setApiKey(UserContext.current().getAccessKey());\n _eng.setSecretKey(UserContext.current().getSecretKey());\n return _eng;\n }",
"@SuppressWarnings(\"unused\")\n public abstract T getApi();",
"public Map<String, String> getEnvironment();",
"String getEnvironment();",
"public static String getApiUrl() {\n return API_URL;\n }",
"public MCBouncerAPI getAPI() {\n return api;\n }",
"public IWDContext wdGetAPI() {\r\n return getContext();\r\n }",
"protected RemoteApi getRemoteApi() {\n return getLockssDaemon().getRemoteApi();\n }",
"public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(K8sApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public String getApiUrl();",
"public static Map<String, Integer> getCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"java.lang.String getApiUrl();",
"public API getApi()\n\t{\n\t\treturn new API(this);\n\t}",
"public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }",
"String getApiKey() {\n return interceptorManager.isPlaybackMode() ? \"apiKeyInPlayback\"\n : Configuration.getGlobalConfiguration().get(AZURE_FORM_RECOGNIZER_API_KEY);\n }",
"IWDViewController wdGetAPI();",
"public Object externalApiKeys() {\n return this.externalApiKeys;\n }",
"@Override\r\n\tpublic InfoApi getInfoApi() {\r\n\t\treturn this;\r\n\t}",
"public Apis getApi() {\n //logging requests and responses in verbose\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //build retrofit object\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://srishti-systems.info/projects/ForteBank/api/\")\n .addConverterFactory(GsonConverterFactory.create())\n .client(client).build();\n\n //connect api class with this builder\n\n Apis apis = retrofit.create(Apis.class);\n return apis;\n }",
"@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();",
"Properties getEnvironment();",
"Properties getEnvironment();",
"public String getApiMethod() {\n return apiMethod;\n }",
"public ApiConfiguration getApiConfiguration() {\n return apiConfiguration;\n }",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"public String apiAccessLevel() {\n return this.apiAccessLevel;\n }",
"public Api getApiResponse() {\n\t\tWebResource webResource = client.resource(\"https://\" + server).path(\"/api/\");\n\t\tClientResponse response = webResource.header(HttpHeaders.USER_AGENT, \"jersey-client\").accept(CFEngineMimeType.CFENGINE).get(ClientResponse.class);\n\n\t\treturn response.getEntity(Api.class);\n\t}",
"@GetMapping({\"/\", \"actuator/info\"})\n public ResponseEntity<String> info() {\n // Indicate the request succeeded and return the\n // application name and thread name.\n return ResponseEntity\n .ok(mApplicationContext.getId()\n + \" is alive and running on \"\n + Thread.currentThread()\n + \"\\n\");\n }",
"public String getAPIKey()\r\n {\r\n return APIKey;\r\n }",
"public String apiId() {\n return this.innerProperties() == null ? null : this.innerProperties().apiId();\n }",
"public String getEnvironment() {\n return environment;\n }",
"public SemuxApiService getApi() {\n return api;\n }",
"public String getApiToken() {\n return apiToken;\n }",
"public String getApiKey() {\n return apiKey;\n }",
"private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}",
"ApiPackage getApiPackage();",
"private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"Spring Boot REST API for Testing Project\")\n .version(\"v1.0\")\n .contact(new Contact(\"Blagovest Anev\", \"https://www.linkedin.com/in/blagovestanev/\", \"blagovestanev@gmail.com\"))\n .build();\n }",
"public String getAPIClassName()\n {\n return _apiClass.getName();\n }",
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"protected String getApiKey() {\r\n\t\treturn apiKey;\r\n\t}",
"public FxEnvironment getEnvironment() {\n return CacheAdmin.getFilteredEnvironment();\n }",
"protected String getApiKey()\n\t{\n\t\treturn apiKey;\n\t}",
"public DiscordApi getApi() {\n\treturn api;\n }",
"private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"\\\"Spring Boot REST API for Vertica Developer Training\\\"\")\n .version(\"1.0.0\")\n .license(\"Apache License Version 2.0\")\n .licenseUrl(\"https://www.apache.org/licenses/LICENSE-2.0\\\"\")\n .contact(new Contact(\"Thingtrack\", \"https://www.thingtrack.com\", \"miguel@thingtrack.com\"))\n .build();\n }",
"String apiVersion();",
"public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.getProperties(env);\n }",
"public String getApiKey() {\n\t\treturn this.apiKey;\t// may return null, this is fine.\n\t}",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"@Test\n public void getAppDetailsTest() throws ApiException {\n String appId = null;\n Boolean naked = null;\n // Application response = api.getAppDetails(appId, naked);\n\n // TODO: test validations\n }",
"public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }",
"public String getApiKey(){\n\t\treturn apiKey;\n\t}",
"public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}",
"public Environment environment()\n {\n return theEnv;\n }",
"public String getApiKey() {\n\t\treturn apiKey;\n\t}",
"public APIOperation getAPIOperation()\n {\n return apiOperation;\n }",
"API createAPI();",
"public Long getAPIID()\r\n {\r\n return APIID;\r\n }",
"public static void showVersion() {\r\n String apiTitle = ImdbApi.class.getPackage().getSpecificationTitle();\r\n \r\n if (StringUtils.isNotBlank(apiTitle)) {\r\n String apiVersion = ImdbApi.class.getPackage().getSpecificationVersion();\r\n String apiRevision = ImdbApi.class.getPackage().getImplementationVersion();\r\n StringBuilder sv = new StringBuilder();\r\n sv.append(apiTitle).append(\" \");\r\n sv.append(apiVersion).append(\" r\");\r\n sv.append(apiRevision);\r\n LOGGER.debug(sv.toString());\r\n } else {\r\n LOGGER.debug(\"API-IMDB version/revision information not available\");\r\n }\r\n }",
"public String getAPIkey() {\n\t\treturn key1;\r\n\t}",
"private String getApiKey() throws IOException {\n Properties prop = new Properties();\n InputStream loader = getClass().getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(loader);\n\n return prop.getProperty(\"apiKey\");\n }",
"public Map<String, String> getEnv()\n {\n return env;\n }",
"public DropboxAPI getAPI() {\n \treturn api;\n }",
"public Single<EnvironmentInfo> getDeviceInfo() {\n return Single.just(EnvironmentInfo.create(Build.VERSION.RELEASE,\n String.format(\"%s(%s)\", BuildConfig.VERSION_NAME,\n BuildConfig.VERSION_CODE), Build.MODEL));\n }",
"public Environment getEnvironment() {\n \n \t\treturn this.environment;\n \t}",
"public String getAPI()\n {\n ResponseEntity<String> person;\n\n /*\n\t\t * Headers for the response type if we want to return JSON response then we\n\t\t * require to add.\n */\n HttpHeaders headers = new HttpHeaders();\n\n /*\n\t\t * Adding of the response header with application/json type\n */\n headers.add(\"Accept\", \"application/json\");\n\n /*\n\t\t * Creation of the Entity object for the adding the headers into request.\n */\n entity = new HttpEntity<>(headers);\n\n /*\n\t\t * Creation of REST TEMPLET object for the executing of the REST calls.\n */\n restTemplate = new RestTemplate();\n\n /*\n\t\t * Adding the basic type of authentication on the REST TEMPLETE.\n */\n restTemplate.getInterceptors()\n .add(new BasicAuthorizationInterceptor(\"Administrator\", \"Oneeight@admin18\"));\n\n /*\n\t\t * Execution of the REST call with basic authentication and JSON response type\n */\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/login?username=Administrator&password=Oneeight@admin18\", HttpMethod.POST, entity, String.class);\n System.out.println(\"\"+person.toString());\n //headers.add(\"Cookie\", \"JSESSIONID=0FC37952D64B545C46969EFEC0E4FD12\");\n headers.add(\"Cookie\", person.getHeaders().getFirst(HttpHeaders.SET_COOKIE));\n entity = new HttpEntity<>(headers);\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/analytics/v1.0.0/data/provider/tenants/OneEight/features/SDWAN/?qt=summary&start-date=1daysAgo&end-date=today&q=linkusage(site)&metrics=volume-rx&metrics=volume-tx&metrics=volume-rx&metrics=volume-tx&metrics=bandwidth&ds=aggregate&count=10\", HttpMethod.GET, entity, String.class);\n\n /*\n\t\t * Returning the response body with string format that easily readable.\n */\n return person.getBody();\n }",
"public abstract String globalInfo();",
"public String getApiBaseUrl() {\n return this.apiBaseUrl;\n }",
"public interface ApiScope {\n /**\n * Whether to allow the request or not in this scope.\n *\n * @param request the current request. The body can be read repeatedly via {@link javax.servlet.http.HttpServletRequest#getInputStream()}\n * @return {@code true} if allowed\n */\n boolean allow(HttpServletRequest request);\n\n Iterable<ApiResourceInfo> getApiResourceInfos();\n}",
"public API getApi() {\n return retrofit.create(API.class);\n }",
"@GetMapping\n @RequestMapping(\"/\")\n public Map getStatus() {\n Map map = new HashMap<String,String>();\n map.put(\"app-version\",appVersion);\n return map;\n }",
"public Integer getApiVersion()\n {\n return apiVersion;\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = {\"/api/\", \"/api\"}, method = RequestMethod.GET)\n \tpublic HttpEntity<String> getAll() {\n \t\treturn toJsonHttpEntity(agentManagerService.getAllVisibleAgentInfoFromDB());\n \t}",
"@Override\r\n public List<ResourceProvider> getAspectsAPI() {\n return ResourceProvider.getResourcesFromEnum(\r\n Arrays.asList(LaraAPIResources.class, LaraCommonLanguageApiResource.class, KadabraAPIResources.class,\r\n LaraCoreApiResource.class,\r\n LaraWeaverApiResource.class));\r\n\r\n // return ResourceProvider.getResources(LaraAPIResources.class);\r\n }",
"public void getRequest_withBasicAuth() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n }",
"public String getAPIManagerName()\n {\n return apiManagerName;\n }",
"public interface Api {\n String APP_DOMAIN = \"https://devapi.90sbid.com\";\n String RequestSuccess = \"0\";\n}",
"public ApplicationInfo getApplicationInfo() {\n return getActivityInfo().applicationInfo;\n }",
"private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }",
"public String getApiVersion();",
"Environment getEnvironment() {\n return recordingEnv;\n }",
"public Map<String, String> getEnv(IProject project) throws CoreException;",
"public ApiResponseSet getContextInfo(String contextName) throws Exception {\n ApiResponseSet context;\n try {\n context = (ApiResponseSet) api.context.context(contextName);\n } catch (ClientApiException e) {\n throw new UnicornZapException(\"Zap exception while getting info for context: \" + contextName, e);\n }\n return context;\n }",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"public String getApiForecast() {\n\t\treturn apiForecast;\n\t}",
"public String getAPISetting(){\n if(!apiSetting.equals(\"true\")){\n apiSetting = \"false\";\n }\n return apiSetting;\n }",
"public static ApplicationEnvironment getEnvironment (){\n\t\treturn _applicationEnvironment;\n\t}"
] | [
"0.69400585",
"0.6879959",
"0.6876057",
"0.6730298",
"0.65999854",
"0.65677696",
"0.65206283",
"0.65064067",
"0.64848065",
"0.64798194",
"0.647054",
"0.64205235",
"0.6276441",
"0.6273749",
"0.6254325",
"0.616075",
"0.61563593",
"0.6152028",
"0.6143624",
"0.61319584",
"0.60581106",
"0.60555476",
"0.6040084",
"0.60165006",
"0.60159206",
"0.6014763",
"0.5970105",
"0.5945391",
"0.58828694",
"0.58799",
"0.5872708",
"0.583873",
"0.5827729",
"0.5801845",
"0.5788962",
"0.57867205",
"0.57867205",
"0.5779538",
"0.5770648",
"0.5766601",
"0.57251793",
"0.5713241",
"0.5684679",
"0.5683832",
"0.5673441",
"0.5673375",
"0.5665916",
"0.56594557",
"0.5641886",
"0.5640645",
"0.562714",
"0.5624551",
"0.5617397",
"0.56169784",
"0.5609935",
"0.55997133",
"0.559846",
"0.5589269",
"0.5584864",
"0.55602443",
"0.55589336",
"0.55414486",
"0.55256623",
"0.5516295",
"0.55152833",
"0.54920197",
"0.54848254",
"0.54776055",
"0.5470868",
"0.546053",
"0.5457356",
"0.5452558",
"0.5446781",
"0.5445202",
"0.54428643",
"0.54405236",
"0.5432505",
"0.5431926",
"0.54192173",
"0.54158807",
"0.5403586",
"0.54013616",
"0.53921324",
"0.5370797",
"0.5358901",
"0.53509647",
"0.5337314",
"0.5320377",
"0.5317367",
"0.5317242",
"0.5315962",
"0.53122354",
"0.53067243",
"0.5300923",
"0.5297984",
"0.5297745",
"0.5290367",
"0.52896017",
"0.52881557",
"0.52832276",
"0.5278889"
] | 0.0 | -1 |
Update the container_status table with latest number of apis | public static void updateContainerDetails(final int envId, int compId, int numOfcont){
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(HQLConstants.UPDATE_CONTAINER_DETAILS);
query.setInteger("numOfContainers", numOfcont);
query.setLong("compId", compId);
query.setLong("environmentId", envId);
query.setDate("stsDate", todayDate);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateMetrics(ContainerStatus status) {\n if (status != null) {\n switch (status.getExitStatus()) {\n case SUCCESS:\n componentMetrics.containersSucceeded.incr();\n scheduler.getServiceMetrics().containersSucceeded.incr();\n return;\n case PREEMPTED:\n componentMetrics.containersPreempted.incr();\n scheduler.getServiceMetrics().containersPreempted.incr();\n break;\n case DISKS_FAILED:\n componentMetrics.containersDiskFailure.incr();\n scheduler.getServiceMetrics().containersDiskFailure.incr();\n break;\n default:\n break;\n }\n }\n\n // containersFailed include preempted, disks_failed etc.\n componentMetrics.containersFailed.incr();\n scheduler.getServiceMetrics().containersFailed.incr();\n\n if (status != null && Apps.shouldCountTowardsNodeBlacklisting(\n status.getExitStatus())) {\n String host = scheduler.getLiveInstances().get(status.getContainerId())\n .getNodeId().getHost();\n failureTracker.incNodeFailure(host);\n currentContainerFailure.getAndIncrement();\n }\n }",
"int getStatusCount();",
"private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}",
"public int getStatusCount() {\n return status_.size();\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }",
"public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sApiStatusEntity apiStatus = new K8sApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"void onStatusUpdate(int status);",
"com.google.container.v1beta1.Operation.Status getStatus();",
"public int getStatusCount() {\n return status_.size();\n }",
"long getUpdateCount();",
"int getUpdateCountsCount();",
"public void updateStatus (DataSource pool,String status) throws SQLException {\r\n this.setStatus(status);\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set status = ? \"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatus. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getStatus());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n conn.close();\r\n conn=null;\r\n }catch(SQLException e){\r\n \r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}",
"public int getUpdateCount();",
"public static void loadApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tint prevNumApis = getPreiousNumApis(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumApis == 0 ? 0 : numOfApi - prevNumApis;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tApiStatusEntity apiStatus = new ApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tapiStatus.setDeltaValue(deltaVal);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"public void updateStatus() {\n var taskStatuses = new ArrayList<OptimizationTaskStatus>();\n\n synchronized (tasks) {\n for (var task : tasks.values()) {\n taskStatuses.add(task.getStatus());\n }\n }\n\n wrapper.setStatus(JsonSerializer.toJson(new OptimizationToolStatus(taskStatuses)));\n }",
"@Override\n public void onStatusChange(int status) {\n }",
"public static void crdStatusHasUpdatedStorageVersions(KubernetesClient client) {\n for (String kind : AbstractCommand.STRIMZI_KINDS) {\n String crdName = CrdUpgradeCommand.CRD_NAMES.get(kind);\n CustomResourceDefinition crd = client.apiextensions().v1beta1().customResourceDefinitions().withName(crdName).get();\n\n assertThat(crd.getStatus().getStoredVersions(), hasItem(\"v1beta2\"));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(not(\"v1beta1\")));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(not(\"v1alpha1\")));\n }\n }",
"@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }",
"public abstract void updateStatus() throws Throwable;",
"private static void updateStatus(final int increment) {\n if (splash != null) {\n splash.advance();\n }\n }",
"Status updateStatus(StatusUpdate latestStatus) throws TwitterException;",
"public static void loadContainerStatus(final int envId, int compId, final int instanceNum) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n//\t\tfinal int compId = getComponentId(compName, parentCompName);\n//\t\tif(compId == 0){\n//\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n//\t\t\treturn 0;\n//\t\t}\n\n\t\tint prevNumInstance = getPreiousNumInstance(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumInstance == 0 ? 0 : instanceNum - prevNumInstance;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tContainerStatsEntity contStat = new ContainerStatsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatsDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tcontStat.setComponent(component);\n\t\tcontStat.setTotalContainer(instanceNum);\n\t\tcontStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body, \n @QueryMap ReplaceAPIServerStatus queryParameters);",
"private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }",
"private Integer getStatus(Map<String, Object> info) {\n return 200;\n }",
"private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}",
"private void incrConnectionCount() {\n connectionCount.inc();\n }",
"public void refreshQueueCount(){\n queueCountLabel.setText(\"Count: \" + String.valueOf(builder.size()));\n }",
"public int countByG_UT_ST(long groupId, String urlTitle, int[] statuses);",
"private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}",
"private GeobatchRunInfo updateRunInfoStatus(GeobatchRunInfo runInfo) {\n RESTConsumerStatus status = null;\n try {\n status = getFlowService().getConsumerStatus(\n runInfo.getFlowUid());\n } catch (Exception e) {\n // status it's FAIL\n }\n runInfo.setFlowStatus(status != null ? status.getStatus().name()\n : \"FAIL\");\n runInfo = updateRunInfo(runInfo);\n return runInfo;\n }",
"private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void updateContainerDetails(final int envId, String compName, int numOfcont, String parentCompName, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tString updateApiStsQry = null;\n\t\tif(platform.equalsIgnoreCase(\"Mesos\")){\n\t\t\tupdateApiStsQry = HQLConstants.UPDATE_CONTAINER_DETAILS;\n\t\t}\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"numOfContainers\", numOfcont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"long getUpdateCounts(int index);",
"public int getNumberOfMultiUpdated(Identity owner, Map<String, Long> sinceTimes);",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"public int getNumberOfUpdatedOnUserSpacesActivities(Identity owner, ActivityUpdateFilter filter);",
"void onContainerStatusReceived(ContainerId containerId,\n ContainerStatus containerStatus);",
"public interface StatusUpdateInterface {\n\tvoid setActualStatus(String status);\n}",
"public int countByStatus(int status);",
"long countJobsWithStatus(JobStatus status);",
"long countByExample(StatusRepliesExample example);",
"public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}",
"public int countByG_UT_ST(long groupId, String urlTitle, int status);",
"private static void updateHealthCheckStatus(final HealthCheckVO healthCheckVO, final int currentFailedCount) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\t\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n\t\tif ((healthCheckVO.getCurrentStatus() == null && status == Status.UP) || status == healthCheckVO.getCurrentStatus()\n\t\t\t\t|| (status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) ) {\n\t\t\tString queryString = HQLConstants.UPDATE_HEALTH_CHECK_NO_CHANGE_WITH_STATUS;\n\t\t\tif (healthCheckVO.getCurrentStatus() == null\n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) {\n\t\t\t\tqueryString = HQLConstants.UPDATE_HEALTH_CHECK_NO_CHANGE;\n\t\t\t}\n\t\t\tStatusEntity sts = new StatusEntity();\n\t\t\tQuery query = session.createQuery(queryString)\n\t\t\t\t\t.setTimestamp(\"updateTime\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setInteger(\"failedCount\", (currentFailedCount >= SurveillerConstants.DB_MAX_FAILED_COUNT) ? SurveillerConstants.DB_MAX_FAILED_COUNT : currentFailedCount)\n\t\t\t\t\t.setInteger(\"healthCheckId\", healthCheckVO.getHealthCheckId().intValue());\n\t\t\tif (healthCheckVO.getCurrentStatus() != null \n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()){\n\t\t\t\t/*NOT - First time status check. Failed but did not cross max-retry count */\n\t\t\t\tsts.setStatusId(healthCheckVO.getCurrentStatus().getStatusId());\n\t\t\t\tquery.setEntity(\"status\", sts);\n\t\t\t} else if (!(healthCheckVO.getCurrentStatus() == null\n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue())) {\n\t\t\t\t/* First time status check. Status changed and max-retry count is crossed. No need to update lastStatusChange */\n\t\t\t\tsts.setStatusId(status.getStatusId());\n\t\t\t\tquery.setEntity(\"status\", sts);\n\t\t\t}\n\t\t\tquery.executeUpdate();\n\t\t} else {\n\t\t\tQuery query = session.createQuery(HQLConstants.UPDATE_HEALTH_CHECK_CHANGE)\n\t\t\t\t\t.setTimestamp(\"updateTime\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setTimestamp(\"lastStatusChange\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setInteger(\"failedCount\", (currentFailedCount >= SurveillerConstants.DB_MAX_FAILED_COUNT) ? SurveillerConstants.DB_MAX_FAILED_COUNT : currentFailedCount)\n\t\t\t\t\t.setInteger(\"healthCheckId\", healthCheckVO.getHealthCheckId().intValue());\n\t\t\tStatusEntity sts = new StatusEntity();\n\t\t\tsts.setStatusId(status.getStatusId());\n\t\t\tquery.setEntity(\"status\", sts);\n\t\t\tquery.executeUpdate();\n\t\t}\n\t\ttxn.commit();\n\t}",
"int getMockUpdatesCount();",
"@Override\n public void updateStatus(Status status) {\n this.status = status;\n }",
"org.hl7.fhir.ObservationStatus addNewStatus();",
"public int getNumberOfUpdatedOnActivitiesOfConnections(Identity owner, ActivityUpdateFilter filter);",
"java.util.List<java.lang.Long> getUpdateCountsList();",
"public static Map<String, Integer> getNumOfActiveApisOfApp(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_NUM_APP_APIS);\n\t\tnumApisQuery.setParameter(\"envId\", envId);\n\t\tnumApisQuery.setParameter(\"platform\", platform);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> totTps = numApisQuery.list();\n\t\tMap<String, Integer> mapNumApis = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : totTps) {\n\t\t\tmapNumApis.put((String)tRow[0], ((Long)tRow[1]).intValue());\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapNumApis;\n\t}",
"public void recordOverallStatus(int status) {\n mOverallStatusHistogram.put(status, mOverallStatusHistogram.get(status) + 1);\n }",
"void refresh()\n {\n try {\n getConnectiondb();\n String getaudid = (\"SELECT * FROM Auditoriums\");\n Statement stgetaudid = myConn.createStatement();\n\nResultSet rsgetaudid = stgetaudid.executeQuery(getaudid);\n while(rsgetaudid.next())\n {\n String aud_id = rsgetaudid.getString(\"Aud_ID\");\n System.out.println(\"audid = \"+aud_id);\n String updateaud = \"update Auditoriums set status = \\\"N\\\" where Aud_ID = ?\";\n PreparedStatement pst1 = myConn.prepareStatement(updateaud);\n pst1.setString(1, aud_id);\n \n\n\n pst1.execute();\n\n\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ModifyEvents.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ModifyEvents.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n try {\n getConnectiondb();\n //select aud_id from ahase\n \n \n String sql = (\"SELECT * FROM AHASE\");\n Statement st = myConn.createStatement();\n\nResultSet rs = st.executeQuery(sql);\n while(rs.next())\n {\n String aud_id = rs.getString(\"Aud_ID\");\n System.out.println(\"final audid = \"+aud_id);\n String updateaud = \"update Auditoriums set status = \\\"Y\\\" where Aud_ID = ?\";\n PreparedStatement pst = myConn.prepareStatement(updateaud);\n pst.setString(1, aud_id);\n pst.execute();\n \n\n\n }\n \n\n\n \n } catch (SQLException ex) {\n Logger.getLogger(ModifyEvents.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ModifyEvents.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public void updateStatusVisible (DataSource pool,String status) throws SQLException {\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set status = ?, visible = 1\"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatusVisible. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getStatus());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n }catch(SQLException e){\r\n \r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}",
"int getNodeStatusListCount();",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body);",
"public static void updateCount(String url) {\n if(sites.isEmpty()) {\n sites.add(new SiteStats(url, 1));\n } else {\n //access via new for-loop\n for(Object object : sites) {\n SiteStats element = (SiteStats) object;\n if ((element.getUrl().equalsIgnoreCase(url))) {\n element.setNumVisits(element.getNumVisits() + 1);\n return;\n }\n }\n sites.add(new SiteStats(url, 1));\n }\n }",
"@HEAD\n public Response getStats() throws CloudException {\n\n long containerCount = 0;\n long bytesUsed = 0;\n\n log.warn(\"Container stats not implemented\");\n\n ResponseBuilder response = Response.noContent();\n response.header(\"X-Account-Container-Count\", Long.toString(containerCount));\n response.header(\"X-Account-Bytes-Used\", Long.toString(bytesUsed));\n response.header(\"Date\", new Date());\n return response.build();\n\n }",
"int getVersionsCount();",
"void incrementAddedCount() {\n addedCount.incrementAndGet();\n }",
"@ApiModelProperty(value = \"The number of up to date versioned process groups in the NiFi.\")\r\n public Integer getUpToDateCount() {\r\n return upToDateCount;\r\n }",
"private void updateSessionCounter(HttpSessionEvent httpSessionEvent){\n httpSessionEvent.getSession().getServletContext()\r\n .setAttribute(\"activeSession\", counter.get());\r\n LOG.info(\"Total active session are {} \",counter.get());\r\n }",
"@After\n public void status() {\n }",
"KeeperContainerTokenStatusResponse refreshKeeperContainerTokenStatus(KeeperContainerTokenStatusRequest request);",
"private void updateOsMetrics()\n {\n Driver.updateOsMetric();\n }",
"private synchronized void updateLogCount() {\n this.logCount++;\n }",
"public HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> getStatus(String region) throws IOException {\r\n String currentData;\r\n\r\n try {\r\n baseURL = StaticData.buildURL(region);\r\n currentData = getUrlData();\r\n networkOK = true;\r\n }\r\n catch(UnknownHostException e) {\r\n currentData = \"\";\r\n networkOK = false;\r\n throw e;\r\n }\r\n \r\n JsonElement jelem = new JsonParser().parse(currentData);\r\n JsonObject jobj = jelem.getAsJsonObject();\r\n JsonArray servicesArr = jobj.getAsJsonArray(\"services\");\r\n JsonArray incidentsArr;\r\n JsonArray updatesArr;\r\n \r\n String service, status;\r\n HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> statusInfo = new HashMap();\r\n HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>> statusValues = new HashMap();\r\n ArrayList<HashMap<String, HashMap<String, String>>> services = new ArrayList();\r\n HashMap<String, HashMap<String, String>> incidents = new HashMap();\r\n HashMap<String, String> content = new HashMap();\r\n\r\n for(int i = 0; i < servicesArr.size(); i++) {\r\n jobj = servicesArr.get(i).getAsJsonObject();\r\n \r\n service = formatOutput(jobj.get(\"name\").toString());\r\n status = formatOutput(jobj.get(\"status\").toString()); \r\n\r\n incidentsArr = jobj.getAsJsonArray(\"incidents\");\r\n \r\n // If there are any incidents, store them.\r\n if(incidentsArr.size() > 0) {\r\n // Get each incident.\r\n for(int j = 0; j < incidentsArr.size(); j++) {\r\n jobj = incidentsArr.get(j).getAsJsonObject();\r\n updatesArr = jobj.getAsJsonArray(\"updates\");\r\n \r\n // Get information for each update.\r\n if(updatesArr.size() > 0) {\r\n for(int k = 0; k < updatesArr.size(); k++) {\r\n jobj = updatesArr.get(k).getAsJsonObject();\r\n\r\n // Add id\r\n content.put(\"id\", formatOutput(jobj.get(\"id\").toString()));\r\n // Add severity\r\n content.put(\"severity\", formatOutput(jobj.get(\"severity\").toString()));\r\n // Add updated_at\r\n content.put(\"updated_at\", formatOutput(jobj.get(\"updated_at\").toString()));\r\n // Add content\r\n content.put(\"content\", formatOutput(jobj.get(\"content\").toString()));\r\n \r\n incidents.put(service, (HashMap)content.clone());\r\n services.add((HashMap)incidents.clone());\r\n }\r\n }\r\n }\r\n }\r\n \r\n Collections.reverse(services); // Flip incidents ArrayList to have the newest first.\r\n statusValues.put(status, (ArrayList)services.clone());\r\n services.clear(); // Make sure old incidents aren't copied if current service has no incidents.\r\n statusInfo.put(service, (HashMap)statusValues.clone());\r\n statusValues.clear(); // Make sure old statuses aren't copied if current service has no incidents.\r\n }\r\n \r\n return statusInfo;\r\n }",
"@Override\r\n\tpublic void updateCounter(CounterModel cm) {\n\t\thomedao.updateCounter(cm);\r\n\t}",
"void onStatusChanged(Status newStatus);",
"public int getNumberOfUpdatedOnSpaceActivities(Identity owner, ActivityUpdateFilter filter);",
"@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}",
"@Override\n public APIStateChangeResponse changeLifeCycleStatus(String orgId, ApiTypeWrapper apiTypeWrapper, String action,\n Map<String, Boolean> checklist) throws APIManagementException{\n APIStateChangeResponse response = new APIStateChangeResponse();\n try {\n PrivilegedCarbonContext.startTenantFlow();\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(this.username);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(this.tenantDomain, true);\n\n String targetStatus;\n String providerName;\n String apiName;\n String apiContext;\n String apiType;\n String apiVersion;\n String currentStatus;\n String uuid;\n int apiOrApiProductId;\n boolean isApiProduct = apiTypeWrapper.isAPIProduct();\n String workflowType;\n\n if (isApiProduct) {\n APIProduct apiProduct = apiTypeWrapper.getApiProduct();\n providerName = apiProduct.getId().getProviderName();\n apiName = apiProduct.getId().getName();\n apiContext = apiProduct.getContext();\n apiType = apiProduct.getType();\n apiVersion = apiProduct.getId().getVersion();\n currentStatus = apiProduct.getState();\n uuid = apiProduct.getUuid();\n apiOrApiProductId = apiMgtDAO.getAPIProductId(apiTypeWrapper.getApiProduct().getId());\n workflowType = WorkflowConstants.WF_TYPE_AM_API_PRODUCT_STATE;\n } else {\n API api = apiTypeWrapper.getApi();\n providerName = api.getId().getProviderName();\n apiName = api.getId().getApiName();\n apiContext = api.getContext();\n apiType = api.getType();\n apiVersion = api.getId().getVersion();\n currentStatus = api.getStatus();\n uuid = api.getUuid();\n apiOrApiProductId = apiMgtDAO.getAPIID(uuid);\n workflowType = WorkflowConstants.WF_TYPE_AM_API_STATE;\n }\n String gatewayVendor = apiMgtDAO.getGatewayVendorByAPIUUID(uuid);\n\n WorkflowStatus apiWFState = null;\n WorkflowDTO wfDTO = apiMgtDAO.retrieveWorkflowFromInternalReference(Integer.toString(apiOrApiProductId),\n workflowType);\n if (wfDTO != null) {\n apiWFState = wfDTO.getStatus();\n }\n\n // if the workflow has started, then executor should not fire again\n if (!WorkflowStatus.CREATED.equals(apiWFState)) {\n response = executeStateChangeWorkflow(currentStatus, action, apiName, apiContext, apiType,\n apiVersion, providerName, apiOrApiProductId, uuid, gatewayVendor, workflowType);\n // get the workflow state once the executor is executed.\n wfDTO = apiMgtDAO.retrieveWorkflowFromInternalReference(Integer.toString(apiOrApiProductId),\n workflowType);\n if (wfDTO != null) {\n apiWFState = wfDTO.getStatus();\n response.setStateChangeStatus(apiWFState.toString());\n } else {\n response.setStateChangeStatus(WorkflowStatus.APPROVED.toString());\n }\n }\n\n // only change the lifecycle if approved\n // apiWFState is null when simple wf executor is used because wf state is not stored in the db.\n if (WorkflowStatus.APPROVED.equals(apiWFState) || apiWFState == null) {\n LifeCycleUtils.changeLifecycle(this.username, this, orgId, apiTypeWrapper, action, checklist);\n JSONObject apiLogObject = new JSONObject();\n apiLogObject.put(APIConstants.AuditLogConstants.NAME, apiName);\n apiLogObject.put(APIConstants.AuditLogConstants.CONTEXT, apiContext);\n apiLogObject.put(APIConstants.AuditLogConstants.VERSION, apiVersion);\n apiLogObject.put(APIConstants.AuditLogConstants.PROVIDER, providerName);\n APIUtil.logAuditMessage(APIConstants.AuditLogConstants.API, apiLogObject.toString(),\n APIConstants.AuditLogConstants.LIFECYCLE_CHANGED, this.username);\n }\n } catch (APIPersistenceException e) {\n handleException(\"Error while accessing persistence layer\", e);\n } finally {\n PrivilegedCarbonContext.endTenantFlow();\n }\n return response;\n }",
"public void defaultUpdateCount(AcBatchFlight e)\n {\n }",
"public void updateBallCount() {\n mBallCount = (int) NetworkTableInstance.getDefault().getTable(\"SmartDashboard\").getEntry(\"Driver/Set Ball Count\")\n .getDouble(3);\n }",
"public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(K8sApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public int getStatus()\n {\n return status;\n }",
"@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}",
"public static void updateApiDetails(final int envId, String compName, int numOfApi, String platform){\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tString updateApiStsQry = null;\n\t\tif(platform.equalsIgnoreCase(\"Mesos\")){\n\t\t\tupdateApiStsQry = HQLConstants.UPDATE_API_DETAILS;\n\t\t}else if(platform.equalsIgnoreCase(\"K8s\")){\n\t\t\tupdateApiStsQry = HQLConstants.UPDATE_K8S_API_DETAILS;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"numOfApi\", numOfApi);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"@Override\n\tpublic void onStatusUpdate(String arg0, int arg1, String arg2) {\n\t}",
"@PutMapping(\"/containers\")\n\tpublic Container updateContainer(@RequestBody Container container) {\n\t\tcontainerDAO.save(container);\n\t\t\n\t\treturn container;\n\t\t//despite postman returning the updated data, i could not get mysql to reflect the changes\n\t\t//until i added @Transactional to the \"save\" method in the Service layer. \n\t\t//i did not have any issues adding a container prior to adding @transactional, however\n\t}",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"@Override\n\t\tpublic int getStatus() {\n\t\t\treturn 0;\n\t\t}",
"public void processUpdates() {\n List<Update> updates = getUpdates(lastId, updateLimit, timeout);\n\n lastId = updates.stream()\n .map(Update::getId)\n .max(Long::compareTo)\n .orElse(lastId-1) + 1;\n\n updates.parallelStream().forEach(this::processUpdate);\n }",
"private void updateStatus() {\n String statusString = dataModel.getStatus().toString();\n if (dataModel.getStatus() == DefinitionStatus.MARKER_DEFINITION) {\n statusString += \" Number of markers: \" + dataModel.getNumberOfMarkers() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n if (dataModel.getStatus() == DefinitionStatus.POINTS_DEFINITION) {\n statusString += \" Number of point fields: \" + dataModel.getNumberOfPoints() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n statusLabel.setText(statusString);\n }",
"@ApiModelProperty(required = true, value = \"The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.\")\n\n public Long getRefCount() {\n return refCount;\n }",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> patchAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body, \n @QueryMap PatchAPIServerStatus queryParameters);",
"@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }",
"public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }",
"java.util.List<java.lang.Integer> getStatusList();",
"static int lastSchemaUpdate(Configuration conf) {\n return conf.getInt(SCHEMA_UPDATE_PROP, 0);\n }",
"private static void checkForUpgrades(@Nullable List<UpdatablePackage> completedChanges) {\n if (completedChanges == null) {\n return;\n }\n int highestNewApiLevel = 0;\n for (UpdatablePackage updated : completedChanges) {\n TypeDetails details = updated.getRepresentative().getTypeDetails();\n if (details instanceof DetailsTypes.PlatformDetailsType) {\n int api = ((DetailsTypes.PlatformDetailsType)details).getApiLevel();\n if (api > highestNewApiLevel) {\n highestNewApiLevel = api;\n }\n }\n }\n if (highestNewApiLevel > 0) {\n // TODO: Fix this code after we delete WizardConstants\n PropertiesComponent.getInstance().setValue(WizardConstants.NEWLY_INSTALLED_API_KEY.name, highestNewApiLevel, -1);\n }\n }",
"@Override\n\tpublic int getStatus();",
"@Override\n\tpublic int getStatus();"
] | [
"0.60037965",
"0.533973",
"0.52968925",
"0.5249589",
"0.52407956",
"0.52407956",
"0.5186295",
"0.51548666",
"0.51273775",
"0.5122567",
"0.5119748",
"0.50845075",
"0.5067735",
"0.5067262",
"0.50602305",
"0.5058062",
"0.49858904",
"0.49837422",
"0.49707183",
"0.49423835",
"0.49068174",
"0.4890414",
"0.48800814",
"0.48771146",
"0.48737943",
"0.4847279",
"0.48464015",
"0.48450434",
"0.48447365",
"0.48435017",
"0.4837241",
"0.483114",
"0.48014393",
"0.47938153",
"0.47624037",
"0.4752261",
"0.47481102",
"0.47413182",
"0.47358647",
"0.47272146",
"0.47251707",
"0.4720312",
"0.47202328",
"0.4719912",
"0.4709705",
"0.4705919",
"0.47010222",
"0.46987918",
"0.4696983",
"0.4696037",
"0.4691297",
"0.46896383",
"0.46700275",
"0.46611306",
"0.46512148",
"0.46451023",
"0.4638323",
"0.4634381",
"0.4624419",
"0.4612729",
"0.46093252",
"0.46082485",
"0.45902744",
"0.45891783",
"0.45874074",
"0.45855343",
"0.4575244",
"0.45725343",
"0.45703128",
"0.45644185",
"0.45601928",
"0.45595568",
"0.4559498",
"0.45590577",
"0.4553415",
"0.45516855",
"0.45510557",
"0.4542802",
"0.4533829",
"0.45197254",
"0.45193538",
"0.45189616",
"0.4515512",
"0.45132163",
"0.45132163",
"0.45132163",
"0.45132163",
"0.45132163",
"0.4512034",
"0.45049748",
"0.45027208",
"0.45026946",
"0.44985062",
"0.44961616",
"0.449439",
"0.44902667",
"0.44892135",
"0.4488589",
"0.448538",
"0.448538"
] | 0.4649576 | 55 |
Get the current prom_lookup details of the environment | public static Map<String, String> getPromLookupDetails(int envId, String platform) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria promLookCriteria = session.createCriteria(PromLookupEntity.class, "promLook");
promLookCriteria.createCriteria("promLook.component", "comp");
promLookCriteria.add(Restrictions.eq("comp.platform", platform));
promLookCriteria.add(Restrictions.eq("promLook.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<PromLookupEntity> promLookEntityList = promLookCriteria.list();
Map<String, String> mapPromLook = new HashMap<String, String>();
for(PromLookupEntity promLookEntity : promLookEntityList){
if(promLookEntity.getComponent() != null){
if(platform.equals(SurveillerConstants.K8S_PLATFORM)){
mapPromLook.put(promLookEntity.getComponent().getComponentName()+"/"+promLookEntity.getHttpPath(), promLookEntity.getHttpPath());
}else{
mapPromLook.put(promLookEntity.getComponent().getParentComponent().getComponentName()+"/"+promLookEntity.getComponent().getComponentName(), promLookEntity.getHttpPath());
}
}
}
txn.commit();
return mapPromLook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, String> getEnvironment();",
"public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.getProperties(env);\n }",
"public org.openejb.config.sys.Lookup getLookup() {\n return this._lookup;\n }",
"String getEnvironment();",
"Properties getEnvironment();",
"Properties getEnvironment();",
"public abstract Map<String, String> getEnvironment(NIOWorker nw);",
"public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }",
"public PythonInterpreter getEnvironment(String name) {return environments.get(name);}",
"public TreeMap<String,String> \n getEnvironment()\n {\n return pEnvironment;\n }",
"private static Map<String, Environment> getEnvironments() {\n Map<String, Environment> environmentMap = new HashMap<String, Environment>();\n Environment prodEnv = new Environment();\n prodEnv.setName(PROD_1);\n prodEnv.setPassword(PROD_1_PASSWORD);\n\n Environment sandBoxEnv = new Environment();\n sandBoxEnv.setName(SND_1);\n sandBoxEnv.setPassword(SND_1_PASSWORD);\n\n environmentMap.put(PROD_1, prodEnv);\n environmentMap.put(SND_1, sandBoxEnv);\n return environmentMap;\n }",
"javax.management.ObjectName getStateManager();",
"public Map<String, String> getEnv(IProject project) throws CoreException;",
"public static String getSymbolLookupProjectName() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\tString name = prefs.getString(GHIDRA_SYMBOL_LOOKUP_PROJECT_NAME);\n\t\tif (name.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn name;\n\t}",
"public Map<String, String> getEnv()\n {\n return env;\n }",
"private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}",
"public synchronized Map<String, String> getenv() {\n return System.getenv();\n }",
"private void cmdInfoVars() throws NoSystemException {\n MSystem system = system();\n \n System.out.print(system.getVariableEnvironment());\n }",
"private static Lookup getUserCatalogsLookup() {\n if (userCatalogLookup == null) {\n userCatalogLookup = Lookups.forPath(REGISTRATIONS);\n }\n return userCatalogLookup;\n }",
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public String getEnvironment(String env) {\n\t\treturn environment.get(env);\n\t}",
"String getMetaServerAddress(Env targetEnv);",
"String getEnvironmentProperty(String key);",
"public Environment environment()\n {\n return theEnv;\n }",
"public static assesment.persistence.question.QuestionReportHome getHome( java.util.Hashtable environment ) throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportHome) lookupHome(environment, assesment.persistence.question.QuestionReportHome.COMP_NAME, assesment.persistence.question.QuestionReportHome.class);\n }",
"public Map<String, String> getEnv(URI uri) throws CoreException;",
"public FxEnvironment getEnvironment() {\n return CacheAdmin.getFilteredEnvironment();\n }",
"public String getEnvironment() {\n return environment;\n }",
"public int[][] getEnvironment() {\n return this.environment;\n }",
"@Override\n\tpublic List<Map<String, String>> selectProessionInfo(String appId) {\n\t\treturn getSqlMap().queryForList(NAMESPACES + \"queryProessionInfo\", appId);\n\t}",
"public List<Provider> getProName() {\n\t\treturn userDao.getProName();\r\n\t}",
"java.lang.String getEnv(int index);",
"@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }",
"public static Map<String, Integer> getPromLookupHttpPath(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria promLookCriteria = session.createCriteria(PromLookupEntity.class, \"promLook\");\n\t\tpromLookCriteria.createCriteria(\"promLook.component\", \"comp\");\n\t\tpromLookCriteria.add(Restrictions.eq(\"comp.platform\", platform));\n\t\tpromLookCriteria.add(Restrictions.eq(\"promLook.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<PromLookupEntity> promLookEntityList = promLookCriteria.list();\n\t\tMap<String, Integer> mapPromLook = new HashMap<String, Integer>();\n\t\tfor(PromLookupEntity promLookEntity : promLookEntityList){\n\t\t\tif(promLookEntity.getComponent() != null){\n\t\t\t\tmapPromLook.put(promLookEntity.getHttpPath(), promLookEntity.getComponent().getComponentId());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapPromLook;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static Hashtable<?, ?> getInitialEnvironment(Hashtable<?, ?> env) throws NamingException {\n String[] props = VersionHelper.PROPS; // system/applet properties\n if (env == null) {\n env = new Hashtable<>(11);\n }\n Object applet = env.get(Context.APPLET);\n\n // Merge property values from env param, applet params, and system\n // properties. The first value wins: there's no concatenation of\n // colon-separated lists.\n // Read system properties by first trying System.getProperties(),\n // and then trying System.getProperty() if that fails. The former\n // is more efficient due to fewer permission checks.\n //\n String[] jndiSysProps = helper.getJndiProperties();\n for (int i = 0; i < props.length; i++) {\n Object val = env.get(props[i]);\n if (val == null) {\n if (applet != null) {\n val = AppletParameter.get(applet, props[i]);\n }\n if (val == null) {\n // Read system property.\n val = (jndiSysProps != null) ? jndiSysProps[i] : helper.getJndiProperty(i);\n }\n if (val != null) {\n ((Hashtable<String, Object>) env).put(props[i], val);\n }\n }\n }\n\n // Return without merging if application resource files lookup\n // is disabled.\n String disableAppRes = (String) env.get(DISABLE_APP_RESOURCE_FILES);\n if (disableAppRes != null && disableAppRes.equalsIgnoreCase(\"true\")) {\n return env;\n }\n\n // Merge the above with the values read from all application\n // resource files. Colon-separated lists are concatenated.\n mergeTables((Hashtable<Object, Object>) env, getApplicationResources());\n return env;\n }",
"private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }",
"private DevLibProperties probeActiveDevLibLocation()\r\n\t\t\tthrows NotAvailableSDLException {\r\n\r\n\t\tString preDevLib = getPreferedDevLibLocation();\r\n\t\tDevLibProperties devLibProp = DevLibPluginController.getInstance()\r\n\t\t\t\t.findDevLibPropFromLabel(preDevLib);\r\n\r\n\t\tif (devLibProp == null) {\r\n\t\t\tSet<DevLibProperties> devLibPropertiesSet = DevLibPluginController\r\n\t\t\t\t\t.getInstance().getDevLibPropertiesSet();\r\n\t\t\tif (devLibPropertiesSet.isEmpty()) {\r\n\t\t\t\tthrow new NotAvailableSDLException(\r\n\t\t\t\t\t\tMessagesConstants.NO_VALID_DEVELOPER_LIBRARY + \":\"\r\n\t\t\t\t\t\t\t\t+ preDevLib);\r\n\t\t\t} else {\r\n\t\t\t\tIterator<DevLibProperties> it = devLibPropertiesSet.iterator();\r\n\t\t\t\tdevLibProp = it.next();\r\n\t\t\t\tString msg = MessagesConstants.PREVIOUS_DEVLIB_NOTFOUND\r\n\t\t\t\t\t\t+ preDevLib + \" \" + MessagesConstants.NEW_DEVLIB_USED\r\n\t\t\t\t\t\t+ devLibProp.getUserFriendlyName();\r\n\t\t\t\tsetPreferedDevLibLocation(devLibProp);\r\n\t\t\t\tDialogHelper.displayErrorDialog(msg);\r\n\t\t\t\tLogger.logWarn(msg);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn devLibProp;\r\n\t}",
"String process_mgr_name () throws BaseException;",
"public String getEnv() {\n\n return env;\n }",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"@Transient\r\n\tpublic Map<String, Object> getLookups() {\r\n\t\tMap<String,Object> map = new HashMap<String,Object>();\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ID, getId());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_DOCUMENT, getRegistry().getDocument());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_NAME, getRegistry().getName());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_SURNAME, getRegistry().getSurname());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ALIAS, getRegistry().getAlias());\r\n return map;\r\n\t}",
"public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p.toString().split(\",\");\r\n\r\n for (String string : split) {\r\n pw.println(string);\r\n }\r\n\r\n return sw.toString();\r\n }",
"public String getDescribePro() {\n return describePro;\n }",
"public Env getEnv() {\n\t\treturn _env;\n\t}",
"private static String mode() {\n return System.getProperty(SYSTEM_PROPERTY_NAME, System.getenv(ENV_VARIABLE_NAME));\n }",
"public String getManager()\n {\n return (String) getProperty(PropertyIDMap.PID_MANAGER);\n }",
"java.util.List<java.lang.String>\n getEnvList();",
"public String getSystemProperties(String key) {\n // Whether EDGE, UMTS, etc...\n return SystemProperties.get(key);\n }",
"public String getSystemProperties() {\n return systemProperties;\n }",
"public String getCurrentHome(){\r\n \tfor (DisplayResolveInfo info : mList) {\r\n \t\tif (true == info.bDefault) {\r\n \t\t\tmPm.clearPackagePreferredActivities(info.ri.activityInfo.packageName);\r\n\t\t\t\t\r\n\t\t\t\treturn info.ri.activityInfo.packageName;\r\n \t\t} \r\n \t} \t\r\n\t\treturn null;\r\n\t}",
"public static BeanManager lookupBeanManager() {\n BeanManager beanManager = getCDIBeanManager(\"java:comp\");\n if (beanManager == null) {\n beanManager = getCDIBeanManager(\"java:comp/env\");\n }\n if (beanManager == null) {\n beanManager = getOSGICDIBeanManager();\n }\n return beanManager;\n }",
"private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }",
"public interface Environment {\n\tpublic Object resolveVariable(String name);\n\tpublic List<String> getRegisteredVariableNames();\n}",
"private static Map<String,String> getEnvVars() {\n return new TreeMap<>(System.getenv());\n }",
"public Entry[] getLookupAttributes() throws RemoteException {\n\t\treturn mgr.getAttributes();\n\t}",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}",
"public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}",
"public String getBundleSymbolicName() {\r\n Class<?> c = grammarAccess.getClass();\r\n return getBundleSymbolicName(c);\r\n }",
"public Querytool getQuery() {\n return localQuerytool;\n }",
"protected static String lookup(ComponentContext context, String property) {\n if (context.getBundleContext().getProperty(property) != null) {\n return context.getBundleContext().getProperty(property);\n }\n\n if (context.getProperties().get(property) != null) {\n return context.getProperties().get(property).toString();\n }\n return null;\n }",
"public Environment getEnvironment() {\n \n \t\treturn this.environment;\n \t}",
"private String getPropertyCatalog() {\n return this.property;\n }",
"public static Map<String, Object> getAllKnownProperties(Environment env) {\n\t Map<String, Object> rtn = new HashMap<>();\n\t if (env instanceof ConfigurableEnvironment) {\n\t for (PropertySource<?> propertySource : ((ConfigurableEnvironment) env).getPropertySources()) {\n\t if (propertySource instanceof EnumerablePropertySource) {\n\t for (String key : ((EnumerablePropertySource) propertySource).getPropertyNames()) {\n\t rtn.put(key, propertySource.getProperty(key));\n\t }\n\t }\n\t }\n\t }\n\t return rtn;\n\t}",
"public PDDeviceNProcess getProcess() {\n/* 93 */ COSDictionary process = (COSDictionary)this.dictionary.getDictionaryObject(COSName.PROCESS);\n/* 94 */ if (process == null)\n/* */ {\n/* 96 */ return null;\n/* */ }\n/* 98 */ return new PDDeviceNProcess(process);\n/* */ }",
"public String getEasyCoopURI() {\r\n String uri = \"\";\r\n\r\n try {\r\n javax.naming.Context ctx = new javax.naming.InitialContext();\r\n uri = (String) ctx.lookup(\"java:comp/env/easycoopbaseurl\");\r\n //BASE_URI = uri; \r\n } catch (NamingException nx) {\r\n System.out.println(\"Error number exception\" + nx.getMessage().toString());\r\n }\r\n\r\n return uri;\r\n }",
"public static synchronized GraphicsEnvironment getLocalGraphicsEnvironment() {\n return Toolkit.getDefaultToolkit().getLocalGraphicsEnvironment();\n }",
"private static RuntimeManager getRuntimeManager(String process) {\n JBPMHelper.startH2Server();\n JBPMHelper.setupDataSource();\n\n // for external database\n // setupDataSource();\n\n Properties properties = new Properties();\n properties.setProperty(\"krisv\", \"\");\n properties.setProperty(\"mary\", \"\");\n properties.setProperty(\"john\", \"\");\n UserGroupCallback userGroupCallback = new JBossUserGroupCallbackImpl(properties);\n\n emf = Persistence.createEntityManagerFactory(\"org.jbpm.persistence.jpa\", null);\n\n RuntimeEnvironment environment = RuntimeEnvironmentBuilder.getDefault().persistence(true)\n .entityManagerFactory(emf).userGroupCallback(userGroupCallback)\n .addAsset(ResourceFactory.newClassPathResource(process), ResourceType.BPMN2).get();\n return RuntimeManagerFactory.Factory.get().newPerProcessInstanceRuntimeManager(environment);\n\n }",
"@Override\n\tpublic WeakHashMap<String, double[]> getCurrentProfiles()\n\t{\n\t\tWeakHashMap<String, double[]> returnMap = new WeakHashMap<String, double[]>();\n\t\treturnMap.put(\"HeatPump\", this.optimisedSetPointProfile);\n\t\treturnMap.put(\"WaterHeat\", this.waterHeatDemandProfile);\n\t\treturn returnMap;\n\t}",
"public Map<String, String> environmentVariables() {\n return this.environmentVariables;\n }",
"String getLookupKey();",
"public Properties getJndiEnvironment() {\n return this.jndiEnvironment;\n }",
"public String getSystemEnv() {\n return \"\";\n }",
"private Map<String, Object> collectGlobals() {\n ImmutableMap.Builder<String, Object> envBuilder = ImmutableMap.builder();\n MethodLibrary.addBindingsToBuilder(envBuilder);\n Runtime.addConstantsToBuilder(envBuilder);\n return envBuilder.build();\n }",
"public Map getENC()\n throws NamingException\n {\n // save context classloader\n Thread thread= Thread.currentThread();\n ClassLoader lastContextLoader= thread.getContextClassLoader();\n \n //set the classloader up as this webapp's loader\n thread.setContextClassLoader(getClassLoader());\n Map map = null;\n try\n {\n map = Util.flattenBindings ((Context)_initialCtx.lookup(\"java:comp\"), \"env\");\n }\n finally\n {\n //replace the classloader\n thread.setContextClassLoader(lastContextLoader);\n }\n \n return map;\n }",
"@Override public String toString() {\n Lookup.Template template = new Lookup.Template<CatalogReader>(CatalogReader.class);\n Lookup.Result result = getUserCatalogsLookup().lookup(template); \n return \"CatalogSettings[ global-scope: \" + result.allInstances() + \n \", project-scope: \" + mountedCatalogs + \" ]\";\n }",
"public String getProducerApplication();",
"private static String m29548a(Context context) {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(\"activity\");\n int myPid = Process.myPid();\n for (RunningAppProcessInfo runningAppProcessInfo : activityManager.getRunningAppProcesses()) {\n if (runningAppProcessInfo.pid == myPid) {\n return runningAppProcessInfo.processName;\n }\n }\n return null;\n }",
"public abstract String globalInfo();",
"public java.lang.String getEnv(int index) {\n return env_.get(index);\n }",
"public Single<EnvironmentInfo> getDeviceInfo() {\n return Single.just(EnvironmentInfo.create(Build.VERSION.RELEASE,\n String.format(\"%s(%s)\", BuildConfig.VERSION_NAME,\n BuildConfig.VERSION_CODE), Build.MODEL));\n }",
"public java.lang.String getEnv(int index) {\n return env_.get(index);\n }",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"EnvironmentmmFactory getEnvironmentmmFactory();",
"public com.google.protobuf.ProtocolStringList\n getEnvList() {\n return env_;\n }",
"public Path getProvLocation() {\n return getSimulationLocation().resolve(FileManager.PROV_FOLDER_NAME);\n }",
"@Override\n public Environment getEnvironment(XYCoord coord)\n {\n return master.getEnvironment(coord);\n }",
"public com.google.protobuf.ProtocolStringList\n getEnvList() {\n return env_.getUnmodifiableView();\n }",
"Map<String, Object> getContext();",
"public String getPROG_REF() {\r\n return PROG_REF;\r\n }",
"public static int getSymbolLookupPort() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\ttry {\n\t\t\treturn Integer.parseInt(prefs.getString(GHIDRA_SYMBOL_LOOKUP_PORT_NUMBER));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\treturn -1;\n\t\t}\n\t}",
"private Object readResolve() {\n return getApplication(name);\n }",
"public static void printSystemVariables() {\n\t\tMap<String, String> env = System.getenv();\n\t\tfor (Map.Entry<String, String> entry : env.entrySet()) {\n\t\t\tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\n\t\t}\n\t}",
"public static List<IProcedure> getSystemProcedures() {\r\n\t\treturn systemProcedures;\r\n\t}",
"public long getCurrentProteins() {\n return currentProteins;\n }",
"public String getJMXURL() {\n try {\n final JMXServiceURL url = \n JmxServiceUrlFactory.forRmiWithJndiInAppserver(getHost(), Integer.parseInt(getPort()));\n return ( url.toString() );\n }\n catch (final Exception e) {\n throw new RuntimeException (e);\n }\n }",
"public java.lang.String[] getMessageContexts(){\n return localMessageContexts;\n }",
"public LookupInterimResult getLookupInterimResult() {\n return lookupInterimResult;\n }"
] | [
"0.6207141",
"0.60623133",
"0.58513385",
"0.58200693",
"0.57774144",
"0.57774144",
"0.5590386",
"0.55420727",
"0.55387366",
"0.5527661",
"0.5481778",
"0.5440839",
"0.54150957",
"0.53927755",
"0.5392665",
"0.5391868",
"0.5340094",
"0.5315732",
"0.5312364",
"0.52694255",
"0.5266944",
"0.5254787",
"0.5242515",
"0.5189209",
"0.5158877",
"0.51479465",
"0.5139274",
"0.512654",
"0.5120023",
"0.5108598",
"0.5096691",
"0.5078997",
"0.5064327",
"0.505567",
"0.50524575",
"0.50475764",
"0.5037546",
"0.5033661",
"0.5026673",
"0.49802122",
"0.49792406",
"0.49746007",
"0.49710262",
"0.49554914",
"0.494493",
"0.4932042",
"0.49289525",
"0.49262637",
"0.49238127",
"0.4920966",
"0.4919471",
"0.4909165",
"0.49066836",
"0.49030057",
"0.48936674",
"0.48930946",
"0.4891086",
"0.4889211",
"0.4884717",
"0.48786983",
"0.48727226",
"0.48676848",
"0.48555714",
"0.48550874",
"0.4834852",
"0.4834344",
"0.4832295",
"0.48270512",
"0.48213556",
"0.48176882",
"0.48041856",
"0.4802248",
"0.4794979",
"0.47898367",
"0.47896785",
"0.47852206",
"0.47807387",
"0.47709453",
"0.47678572",
"0.47658864",
"0.47656912",
"0.47570154",
"0.4744864",
"0.47433951",
"0.47430286",
"0.47423974",
"0.47400862",
"0.47377938",
"0.47371337",
"0.47316825",
"0.47254354",
"0.47181895",
"0.4717738",
"0.47091204",
"0.46997032",
"0.469225",
"0.46890214",
"0.4684592",
"0.4680978",
"0.46749678"
] | 0.5666045 | 6 |
Load the data to the prom_lookup table | public static int loadPromLookup(final int envId, int compId, String httpPath) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
PromLookupEntity promLook = new PromLookupEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(envId);
promLook.setEnvironment(environment);
promLook.setLastUpdated(new java.sql.Timestamp(System.currentTimeMillis()));
ComponentEntity component = new ComponentEntity();
component.setComponentId(compId);
promLook.setComponent(component);
promLook.setLaunchDate(new java.sql.Timestamp(System.currentTimeMillis()));
promLook.setHttpPath(httpPath);
session.save(promLook);
txn.commit();
return compId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmShutdown()\n .encryptionEnable(\"password\")\n .make();\n\n // open existing an collection (or create new)\n poemIndexToPoemMap_ = mapdb_.getTreeMap(\"Poems\");\n \n constructPoems();\n }",
"private void loadData(ApplicationMode appMode) {\n rowKeys = new HashMap<Integer, Integer>();\n ptnKeys = new HashMap<Integer, Integer>();\n pattern = new byte[patternSize];\n ptnLink = new int[patternSize * rowSize * 2];\n\n String filepath = FileProperties.getFilepathWD();\n try (FileInputStream fin = new FileInputStream(filepath);\n FileChannel inChannel = fin.getChannel();) {\n ByteBuffer buf = inChannel.map(FileChannel.MapMode.READ_ONLY, 0, inChannel.size());\n buf.get(pattern);\n\n for (int i = 0; i < keySize; i++) {\n rowKeys.put(buf.getInt(), buf.getInt());\n }\n\n for (int i = 0; i < patternSize; i++) {\n ptnKeys.put(buf.getInt(), buf.getInt());\n }\n\n for (int i = 0; i < ptnLink.length; i++) {\n ptnLink[i] = buf.getInt();\n }\n } catch (BufferUnderflowException | IOException ex) {\n if (appMode == ApplicationMode.GUI) {\n System.err.println(\"\\n\\t*** Data files missing or corrupted, please download \"\n + \"from cloud drive. ***\");\n System.err.println(\"\\thttps://my.pcloud.com/publink/show?\"\n + \"code=kZSoaLZgNeLhO2eu0RQcu9D2aXeOFgtioUV\\n\");\n throw new UnsupportedOperationException();\n }\n int[] keyLink = genKeys();\n genPattern(keyLink);\n saveData(filepath);\n }\n }",
"private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }",
"void populateData();",
"private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}",
"@Override\r\n\tpublic void loadData() {\r\n\t\t// Get Session\r\n\r\n\t\tSession ses = HibernateUtil.getSession();\r\n\r\n\t\tQuery query = ses.createQuery(\"FROM User\");\r\n\r\n\t\tList<User> list = null;\r\n\t\tSet<PhoneNumber> phone = null;\r\n\t\tlist = query.list();\r\n\t\tfor (User u : list) {\r\n\t\t\tSystem.out.println(\"Users are \" + u);\r\n\t\t\t// Getting phones for for a particular user Id\r\n\t\t\tphone = u.getPhone();\r\n\t\t\tfor (PhoneNumber ph : phone) {\r\n\t\t\t\tSystem.out.println(\"Phones \" + ph);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"protected abstract void loadData();",
"private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}",
"protected void loadPopulationIntoDatabase(IPopulation<? extends ADemoEntity, Attribute<? extends IValue>> pop) {\n\t\tassert this.connection != null;\n\t\tassert pop != null;\n\t\t\n\t\t// create the attributes \n\t\t// we don't know the entity type for this population\n\t\tString entityType = DEFAULT_ENTITY_TYPE;\n\t\tthis.entityType2attributes.put(entityType, new HashSet<>(pop.getPopulationAttributes()));\n\t\t\n\t\t// create internal structure\n\t\ttry {\n\t\t\tcreateInitialTables();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\"error creating the tables to store the population in database: \"+e.getMessage(), e);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tstoreEntities(entityType, pop);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\"error while inserting the population in database: \"+e.getMessage(), e);\n\t\t\t\n\t\t}\n\t}",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}",
"public static void loadPOTables(){\n\t\ttry {\n\t\t\tfor(TableInfo tableInfo:tables.values()){\n\t\t\t\tClass c = Class.forName(DBManager.getConfiguration().getPoPackage()+\".\"+StringUtils.firstCharUpperCase(tableInfo.getTname()));\n\t\t\t\tpoClassTableMap.put(c, tableInfo);\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tprotected Map<String, List<ProcedureParamSrc>> loadProcedures(String databaseName) throws SQLException {\n\t\t Map<String, List<ProcedureParamSrc>> ret=new HashMap<>();\n\t\t Map<String, StringBuffer> textMap=new HashMap<>();\n\t\tString sql=\"SELECT NAME,TEXT FROM ALL_SOURCE WHERE TYPE='PROCEDURE' \"\n\t\t\t\t+ \"and OWNER='\"+databaseName.toUpperCase()+\"'\"\n\t\t\t\t;\n\t\tsql+=\" order by NAME,LINE asc\";\n try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\twhile(resultSet.next()) {\n\t\t String key=resultSet.getString(1)\n\t\t\t\t ,line=resultSet.getString(2)\n\t\t\t\t ;\n\t\t StringBuffer sbr=textMap.get(key);\n\t\t if(sbr==null) {\n\t\t\t sbr=new StringBuffer(\"\");\n\t\t\t textMap.put(key, sbr);\n\t\t\t \n\t\t }\n\t\t if(line.contains(\"--\")) {\n\t\t\t line=line.substring(0,line.indexOf(\"--\"));\n\t\t\t line.replace(\"\\n\", \"\");\n\t\t }\n\t\t sbr.append(line);\n\t\t}\n }\n \n for(Entry<String, StringBuffer> ent:textMap.entrySet()) {\n \t\n \tList<ProcedureParamSrc> paramSrcs=ret.get(ent.getKey());\n \t\n \tString procName=ent.getKey();\n \tif(paramSrcs==null) {\n \t\tparamSrcs=new ArrayList<>();\n \t\tret.put(procName, paramSrcs);\n \t}\n \t\n \tString text=ent.getValue().toString(),t=text.toLowerCase(),p=\"\";\n \tint s=0,e=0;\n \ts=t.indexOf(procName.toLowerCase())+procName.length();\n \tt=t.substring(s);\n \t\n \t\n \ts=t.indexOf(\"(\");\n \t\n \tif(s>=0&&s<5) {\n \t s++;\n \t \n \t \n \t e=t.indexOf(\")\");\n \t\n \t \n \t \n \t p=t.substring(s,e-1);\n \t}\n \t\n \t\n \t\n \tString[] params=p.split(\",\");\n \tfor(String param: params) {\n \t\t// (is_used OUT number, data_ratio OUT number, clob_rest OUT clob)\n if(param.trim().length()==0)continue;\n \t\tString[] subParams=param.trim().split(\" \");\n \t\t\n \t\tObject[] _params= Stream.of(subParams)\n \t\t\t\t.filter(str->!str.isEmpty()).toArray();\n \t\t\n \t\t//System.out.println(param);\n \t\tString name=_params[0].toString().trim()\n \t\t\t\t,io=\"in\"\n \t\t\t\t,type=\"varchar2\"\n \t\t\t\t;\n \t\tif(_params.length==3) {\n \t\t\tio=_params[1].toString().trim();\n \t\ttype=_params[2].toString().trim();\n \t\t}\n \t\tProcedureParamSrc src=new ProcedureParamSrc();\n \t\tsrc.isOutput=io.toUpperCase().equals(\"out\");\n \t\tsrc.paramName=name;\n \t\tif(\"number\".equals(type)) {\n \t\t\tsrc.sqlType=Types.DOUBLE;\n \t\tsrc.cls=Double.class;\n \t\t}\n \t\telse if(\"date\".equals(type)) {\n \t\t\tsrc.sqlType=Types.DATE;\n \t\tsrc.cls=Date.class;\n \t\t}else {\n \t\t\tsrc.sqlType=Types.VARCHAR;\n \t\tsrc.cls=String.class;\n \t\t}\n \t\t\n \t\tparamSrcs.add(src);\n \t}\n \t\n }\n\t\t\n\t\t\n\t\treturn ret;\n\t}",
"protected void loadData()\n {\n }",
"private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }",
"private void LoadingDatabasePoolLocation() {\n\n\t\tCursor cursor = helper.getDataAll(PooltableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tPOOL_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_POOL_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_POOL_LCOATION_COLUMN);\n\t\t\tString isCouponUsed = cursor.getString(COUPON_IS_USED_COLUMN);\n\n\t\t\tPOOL_LIST.add(new poolLocation(ID, Description,\n\t\t\t\t\tisUsed(isCouponUsed), ThumbNailFactory.create()\n\t\t\t\t\t\t\t.getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"private void tableLoad() {\n try{\n String sql=\"SELECT * FROM salary\";\n pst = conn.prepareStatement(sql);\n rs = pst.executeQuery();\n \n table1.setModel(DbUtils.resultSetToTableModel(rs));\n \n \n }\n catch(SQLException e){\n \n }\n }",
"public void loadObjectData(String datafile) {\n\t\tProperties databaseAddData = new Properties();\n\t\ttry {\n\t\t\tdatabaseAddData.load(new FileInputStream(langFile));\n\t\t} catch (Exception e) {}\n\t\t//put values from the properties file into hashmap\n\t\tthis.properties.put(\"PROPERTY\", databaseAddData.getProperty(\"PROPERTY\"));\n\t}",
"private void loadDescribedTemplateData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> DescribedTemplateCore.loadDescribedTemplateData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n String strDTNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n\r\n // acquire described template info; note: template to described_template is 1 to many, so from described_template to template is 1:1\r\n resultSet = statement.executeQuery( \"SELECT fk_version_set, fk_template, description_hash, synchronized, hash, enabled, steps \" +\r\n \"FROM described_template \" +\r\n \"JOIN template ON fk_template = pk_template \" +\r\n \"WHERE pk_described_template = \" + strDTNum );\r\n\r\n if ( resultSet.next() ) {\r\n dbDescribedTemplate.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n dbDescribedTemplate.fk_template = resultSet.getLong(\"fk_template\");\r\n dbDescribedTemplate.description_hash = resultSet.getBytes(\"description_hash\");\r\n dbDescribedTemplate.dtSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.template_hash = resultSet.getBytes(\"hash\");\r\n dbDescribedTemplate.enabled = resultSet.getBoolean(\"enabled\");\r\n dbDescribedTemplate.steps = resultSet.getString(\"steps\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads data from described template record \" + pk_described_template);\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n } else {\r\n throw new Exception(\"described template data not present\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // acquire matching run info\r\n try {\r\n String strTemplateNum = String.valueOf(dbDescribedTemplate.fk_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_run, artifacts, start_time, ready_time, end_time, passed \" +\r\n \"FROM run \" +\r\n \"WHERE fk_template = \" + strTemplateNum );\r\n while ( resultSet.next() ) {\r\n DBRun dbRun = new DBRun(resultSet.getLong(\"pk_run\"));\r\n dbRun.artifacts = resultSet.getBytes(\"artifacts\");\r\n dbRun.start_time = resultSet.getDate(\"start_time\");\r\n dbRun.ready_time = resultSet.getDate(\"ready_time\");\r\n dbRun.end_time = resultSet.getDate(\"end_time\");\r\n dbRun.passed = resultSet.getBoolean(\"passed\");\r\n dbDescribedTemplate.pkdtToDBRun.put(pk_described_template, dbRun);\r\n System.out.println(\" <internal> TemplateCore.loadTemplateData() loads data from described_template-matched run record \" + dbRun.pk_run);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n \r\n // acquire matching test_instance info; note: described_template to test_instance is 1:1\r\n try {\r\n String strDescribedTemplateNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_test_instance, fk_run, due_date, phase, synchronized \" +\r\n \"FROM test_instance \" +\r\n \"WHERE fk_described_template = \" + strDescribedTemplateNum);\r\n while ( resultSet.next() ) {\r\n DBTestInstance dbTestInstance = new DBTestInstance(resultSet.getLong(\"pk_test_instance\"));\r\n dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n dbTestInstance.iSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.pkdtToDBTestInstance.put(pk_described_template, dbTestInstance);\r\n System.out.println(\" <internal> TemplateCore.loadDescribedTemplateData() loads data from described_template-matched test_instance record \" + dbTestInstance.pk_test_instance);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n\r\n // acquire corresponding multiple lines of data\r\n try {\r\n String strPKDT = String.valueOf(dbDescribedTemplate.pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n \"FROM dt_line \" +\r\n \"WHERE fk_described_template = \" + strPKDT );\r\n while ( resultSet.next() ) {\r\n DBDTLine dtLine = new DBDTLine();\r\n dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n dtLine.line = resultSet.getInt(\"line\");\r\n dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n\r\n dbDescribedTemplate.pkdtToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n \"FROM artifact_to_dt_line \" +\r\n \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n \"WHERE fk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n dtLine.reason = resultSet.getString(\"reason\");\r\n dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding version information; not every dtLine has corresponding version information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n \"FROM version \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.version = resultSet.getString(\"version\");\r\n dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding content information; not every dtLine has corresponding content information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n \"FROM content \" +\r\n \"JOIN artifact ON fk_content = pk_content \" +\r\n \"WHERE pk_artifact = \" + strPKArtifact );\r\n if ( resultSet.next() ) {\r\n dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding component information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT name \" +\r\n \"FROM component \" +\r\n \"JOIN version ON fk_component = pk_component \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.componentName = resultSet.getString(\"name\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n }\r\n\r\n // get corresponding resource information; not every dtLine has corresponding resource information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n \"FROM dt_line \" +\r\n \"JOIN resource ON fk_resource = pk_resource \" +\r\n \"WHERE pk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n dtLine.resourceName = resultSet.getString(\"name\");\r\n dtLine.resourceDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n }",
"public void load(int p_id) {\n\t\tCachedRowSet l_rs;\n\t\tString sqlString;\n\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\n\t\t\tsqlString = \"SELECT * FROM country WHERE \" + \"countryid=\" + p_id;\n\t\t\tl_rs = m_db.runSQL(sqlString, stmt);\n\n\t\t\tif (l_rs.next()) {\n\t\t\t\t// Reset the object\n\t\t\t\tinitialise();\n\n\t\t\t\t// Setup the new data\n\t\t\t\tm_country_id = l_rs.getInt(\"countryid\");\n\t\t\t\tm_country_name = l_rs.getString(\"countryname\");\n\n\t\t\t}\n\t\t\tl_rs.close();\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in loadResource().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}",
"public String loadPropositions() {\n System.out.println(\"inside loadPropositions ::\");\n logger.info(PropValApproveBean.class, \"PropValApproveBean()\", \"Start loadPropositions\", null);\n Integer pgWUId = null;\n //This should work from the BPM UI Task.\n pgWUId = (Integer) JSFUtils.resolveExpression(\"#{bindings.WorkUnitId.inputValue}\");\n \n //This is for testing on local\n if(AdfFacesContext.getCurrentInstance().getPageFlowScope().get(\"workUnitId\")!= null) { \n pgWUId = Integer.parseInt(AdfFacesContext.getCurrentInstance().getPageFlowScope().get(\"workUnitId\").toString());\n } \n DCBindingContainer bindings = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();\n\n DCIteratorBinding iter1 = (DCIteratorBinding) bindings.findIteratorBinding(\"PropertyIdentificationIterator\");\n iter1.executeQuery();\n Row row1 = iter1.getCurrentRow();\n\n String ain = (String) row1.getAttribute(\"AIN\");\n \n System.out.println(\"ain -----\"+ain);\n ADFUtils.setPageFlowValue(\"ain\", ain);\n logger.info(PropValApproveBean.class, \"PropValApproveBean()\", \"End loadPropositions\", null);\n return \"loadProp\";\n }",
"@Override\n protected void loadAndFormatData()\n {\n // Place the data into the table model along with the column\n // names, set up the editors and renderers for the table cells,\n // set up the table grid lines, and calculate the minimum width\n // required to display the table information\n setUpdatableCharacteristics(getScriptAssociationData(allowSelectDisabled, parent),\n AssociationsTableColumnInfo.getColumnNames(),\n null,\n new Integer[] {AssociationsTableColumnInfo.AVAILABLE.ordinal()},\n null,\n AssociationsTableColumnInfo.getToolTips(),\n true,\n true,\n true,\n true);\n }",
"public RecordSet loadAllProcessingDetail(Record inputRecord);",
"public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"private void doLookup(int key)\n {\n String value = getLocalValue(key);\n if (value != null)\n {\n display(key, value);\n }\n else\n {\n getValueFromDB(key);\n } \n }",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"private void initiaLizeRequirements() {\n\n\t\ttry {\n\t\t\tstFoodDataEntry = cnFoodDataEntry.createStatement();\n\n\t\t\tString sql = \"select energysourceid, unit, conversionfactor from energysourcedetail where energysourceid in (select sourceid from energysource where energytypeid =\"\n\t\t\t\t\t+ FOOD + \") order by energysourceid asc\";\n\t\t\trsFoodDataEntry = stFoodDataEntry.executeQuery(sql);\n\n\t\t\tMap<String, Double> unitConversionF = null;\n\t\t\t// List<Map<String, Double>> listUnitConversionF;\n\t\t\tenergySourceDetail = new LinkedHashMap<Integer, Map<String, Double>>();\n\n\t\t\tint energysourceId;\n\t\t\tString unit;\n\t\t\tDouble coversionFactor;\n\n\t\t\twhile (rsFoodDataEntry.next()) {\n\t\t\t\tenergysourceId = rsFoodDataEntry.getInt(\"energysourceid\");\n\t\t\t\tunit = rsFoodDataEntry.getString(\"unit\");\n\t\t\t\tcoversionFactor = rsFoodDataEntry.getDouble(\"conversionfactor\");\n\n\t\t\t\tif (energySourceDetail.containsKey(energysourceId)) {\n\t\t\t\t\tenergySourceDetail.remove(energysourceId);\n\t\t\t\t} else {\n\t\t\t\t\tunitConversionF = new LinkedHashMap<String, Double>();\n\t\t\t\t}\n\t\t\t\tunitConversionF.put(unit, coversionFactor);\n\t\t\t\tenergySourceDetail.put(energysourceId, unitConversionF);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void loadSupplierTable()\n {\n final String QUERY = \"SELECT * FROM Suppliers\";\n\n DefaultTableModel dtm = (DefaultTableModel) new SupplierDatabase().selectTable(QUERY);\n supplierTable.setModel(dtm);\n }",
"public abstract void loadData();",
"public abstract void loadData();",
"void loadData();",
"void loadData();",
"public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }",
"public static void populateData() {\n\n }",
"public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"private void populateTable(Vector data) {\n Vector columnNames = ViewStrings.getShareColumnNames();\n ((ShareTraderTable) table).updateTable(data, columnNames);\n }",
"public void populateDataToTable() throws SQLException {\n model = (DefaultTableModel) tblOutcome.getModel();\n List<Outcome> ouc = conn.loadOutcome();\n int i = 1;\n for (Outcome oc : ouc) {\n Object[] row = new Object[5];\n row[0] = i++;\n row[1] = oc.getCode_outcome();\n row[2] = oc.getTgl_outcome();\n row[3] = oc.getJml_outcome();\n row[4] = oc.getKet_outcome();\n model.addRow(row);\n }\n }",
"public void loadData() {\n String[] header = {\"Tên Cty\", \"Mã Cty\", \"Cty mẹ\", \"Giám đốc\", \"Logo\", \"Slogan\"};\n model = new DefaultTableModel(header, 0);\n List<Enterprise> list = new ArrayList<Enterprise>();\n list = enterpriseBN.getAllEnterprise();\n for (Enterprise bean : list) {\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(bean.getEnterpriseParent()); // Lấy ra 1 Enterprise theo mã\n Person person1 = personBN.getPersonByID(bean.getDirector());\n Object[] rows = {bean.getEnterpriseName(), bean.getEnterpriseID(), enterprise, person1, bean.getPicture(), bean.getSlogan()};\n model.addRow(rows);\n }\n listEnterprisePanel.getTableListE().setModel(model);\n setupTable();\n }",
"public void load2() throws Exception {\n String query = \"select * from catalog_snapshot where item_id = \" + item_id + \" and facility_id = '\" + facility_id + \"'\";\n query += \" and fac_item_id = '\" + this.fac_item_id + \"'\";\n DBResultSet dbrs = null;\n ResultSet rs = null;\n try {\n dbrs = db.doQuery(query);\n rs = dbrs.getResultSet();\n if (rs.next()) {\n setItemId( (int) rs.getInt(\"ITEM_ID\"));\n setFacItemId(rs.getString(\"FAC_ITEM_ID\"));\n setMaterialDesc(rs.getString(\"MATERIAL_DESC\"));\n setGrade(rs.getString(\"GRADE\"));\n setMfgDesc(rs.getString(\"MFG_DESC\"));\n setPartSize( (float) rs.getFloat(\"PART_SIZE\"));\n setSizeUnit(rs.getString(\"SIZE_UNIT\"));\n setPkgStyle(rs.getString(\"PKG_STYLE\"));\n setType(rs.getString(\"TYPE\"));\n setPrice(BothHelpObjs.makeBlankFromNull(rs.getString(\"PRICE\")));\n setShelfLife( (float) rs.getFloat(\"SHELF_LIFE\"));\n setShelfLifeUnit(rs.getString(\"SHELF_LIFE_UNIT\"));\n setUseage(rs.getString(\"USEAGE\"));\n setUseageUnit(rs.getString(\"USEAGE_UNIT\"));\n setApprovalStatus(rs.getString(\"APPROVAL_STATUS\"));\n setPersonnelId( (int) rs.getInt(\"PERSONNEL_ID\"));\n setUserGroupId(rs.getString(\"USER_GROUP_ID\"));\n setApplication(rs.getString(\"APPLICATION\"));\n setFacilityId(rs.getString(\"FACILITY_ID\"));\n setMsdsOn(rs.getString(\"MSDS_ON_LINE\"));\n setSpecOn(rs.getString(\"SPEC_ON_LINE\"));\n setMatId( (int) rs.getInt(\"MATERIAL_ID\"));\n setSpecId(rs.getString(\"SPEC_ID\"));\n setMfgPartNum(rs.getString(\"MFG_PART_NO\"));\n\n //trong 3-27-01\n setCaseQty(BothHelpObjs.makeZeroFromNull(rs.getString(\"CASE_QTY\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n HelpObjs.monitor(1,\n \"Error object(\" + this.getClass().getName() + \"): \" + e.getMessage(), null);\n throw e;\n } finally {\n dbrs.close();\n }\n return;\n }",
"private void loadTestInstanceData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> TemplateCore.loadTestInstanceData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n// try {\r\n// String strINum = String.valueOf(pk_test_instance);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT fk_described_template, fk_run, due_date, phase, test_instance.synchronized, fk_version_set, fk_template, description_hash, described_template.synchronized, hash, enabled, steps \" +\r\n// \"FROM test_instance \" +\r\n// \"JOIN described_template ON fk_described_template = pk_described_template \" +\r\n// \"JOIN template ON fk_template = pk_test_instance \" +\r\n// \"WHERE pk_test_instance = \" + strINum );\r\n // everything in this query is 1:1 relationship, so resultSet has exactly 1 or 0 entry\r\n\r\n// if ( resultSet.next() ) {\r\n// dbTestInstance.pk_described_template = resultSet.getLong(\"fk_described_template\"); // null entry returns 0\r\n// dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n// dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n// dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n// dbTestInstance.iSynchronized = resultSet.getBoolean(\"test_instance.synchronized\");\r\n//\r\n// dbTestInstance.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n// dbTestInstance.fk_template = resultSet.getLong(\"fk_template\"); // null entry returns 0\r\n// dbTestInstance.description_hash = resultSet.getBytes(\"description_hash\");\r\n// dbTestInstance.dtSynchronized = resultSet.getBoolean(\"described_template.synchronized\");\r\n//\r\n// dbTestInstance.template_hash = resultSet.getBytes(\"hash\");\r\n// dbTestInstance.enabled = resultSet.getBoolean(\"enabled\");\r\n// dbTestInstance.steps = resultSet.getString(\"steps\");\r\n//\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads 1:1 data from test_instance \" + dbTestInstance.pk_test_instance + \", pk_described_template \" + dbTestInstance.pk_described_template +\r\n// \", pk_test_instance \" + dbTestInstance.fk_template + (dbTestInstance.fk_run!=0 ? \", TEST RESULT ALREADY STORED\" : \"\"));\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// } else {\r\n// throw new Exception(\"instance data not present\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding multiple lines of data\r\n// try {\r\n// String strPKDT = String.valueOf(dbTestInstance.pk_described_template);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n// \"FROM dt_line \" +\r\n// \"WHERE fk_described_template = \" + strPKDT );\r\n// while ( resultSet.next() ) {\r\n// DBDTLine dtLine = new DBDTLine();\r\n// dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n// dtLine.line = resultSet.getInt(\"line\");\r\n// dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// dbTestInstance.pkToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n// \"FROM artifact_to_dt_line \" +\r\n// \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n// \"WHERE fk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n// dtLine.reason = resultSet.getString(\"reason\");\r\n// dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n// dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding version information; not every dtLine has corresponding version information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n// \"FROM version \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.version = resultSet.getString(\"version\");\r\n// dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n// dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n// dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding content information; not every dtLine has corresponding content information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n// \"FROM content \" +\r\n// \"JOIN artifact ON fk_content = pk_content \" +\r\n// \"WHERE pk_artifact = \" + strPKArtifact );\r\n// if ( resultSet.next() ) {\r\n// dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n// dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding component information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT name \" +\r\n// \"FROM component \" +\r\n// \"JOIN version ON fk_component = pk_component \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.componentName = resultSet.getString(\"name\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// }\r\n//\r\n// // get corresponding resource information; not every dtLine has corresponding resource information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n// \"FROM dt_line \" +\r\n// \"JOIN resource ON fk_resource = pk_resource \" +\r\n// \"WHERE pk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n// dtLine.resourceName = resultSet.getString(\"name\");\r\n// dtLine.resourceDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n }",
"private void loadData() {\n\n // connect the table column with the attributes of the patient from the Queries class\n id_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"pstiantID\"));\n name_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n date_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveDate\"));\n time_In_editTable.setCellValueFactory(new PropertyValueFactory<>(\"reserveTime\"));\n\n try {\n\n // database related code \"MySql\"\n ps = con.prepareStatement(\"select * from visitInfo \");\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n // load data to the observable list\n editOL.add(new Queries(new SimpleStringProperty(rs.getString(\"id\")),\n new SimpleStringProperty(rs.getString(\"patiantID\")),\n new SimpleStringProperty(rs.getString(\"patiant_name\")),\n new SimpleStringProperty(rs.getString(\"visit_type\")),\n new SimpleStringProperty(rs.getString(\"payment_value\")),\n new SimpleStringProperty(rs.getString(\"reserve_date\")),\n new SimpleStringProperty(rs.getString(\"reserve_time\")),\n new SimpleStringProperty(rs.getString(\"attend_date\")),\n new SimpleStringProperty(rs.getString(\"attend_time\")),\n new SimpleStringProperty(rs.getString(\"payment_date\")),\n new SimpleStringProperty(rs.getString(\"attend\")),\n new SimpleStringProperty(rs.getString(\"attend_type\"))\n\n ));\n }\n\n // assigning the observable list to the table\n table_view_in_edit.setItems(editOL);\n\n ps.close();\n rs.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic Map<String, String> loadTablesPks(String databaseName) throws SQLException {\n\t\tMap<String,String> tablePks=new HashMap<String,String>();\n\t\tString sql=\"select cu.table_name,cu.column_name from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' \";\n\t\ttry(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t\t\t\tResultSet resultSet=preparedStatement.executeQuery();\n\t\t\t\t){\n\t\t\n\t\n\t\twhile(resultSet.next()) {\n\t\t String table=resultSet.getString(1).toUpperCase();\n\t\t String pkName=resultSet.getString(2).toUpperCase();\n\t\t if(table.startsWith(\"BIN$\"))continue;\n\t\t tablePks.put(table, pkName);\n\t\t}\n\t\t}\n\t\treturn tablePks;\n\t}",
"private void loadSchoolInfo() {\r\n \r\n try {\r\n // Get fine ammount to be incurred by retrieving data from the database. \r\n String sql3 = \"SELECT * FROM schoolInfo \";\r\n pstmt = con.prepareStatement(sql3);\r\n\r\n ResultSet rs3=pstmt.executeQuery();\r\n if (rs3.next()) {\r\n schoolName = rs3.getString(\"name\");\r\n schoolContact = rs3.getString(\"contact\");\r\n schoolAddress = rs3.getString(\"address\");\r\n schoolRegion = rs3.getString(\"region\");\r\n schoolEmail = rs3.getString(\"email\");\r\n schoolWebsite = rs3.getString(\"website\");\r\n } \r\n \r\n pstmt.close();\r\n \r\n } catch (SQLException e) {\r\n }\r\n \r\n //////////////////////////////////// \r\n }",
"public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}",
"private void populateDataAndVerify(ReplicatedEnvironment masterEnv) {\n createTestData();\n populateDB(masterEnv, dbName, keys);\n readDB(masterEnv, dbName, startKey, numKeys);\n logger.info(numKeys + \" records (start key: \" +\n startKey + \") have been populated into db \" +\n dbName + \" and verified\");\n }",
"public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"public static void loadPurchaseTable()\n {\n final String QUERY = \"SELECT Purchases.purchaseId, Purchases.ProductId, Suppliers.FirstName, Suppliers.LastName, Products.ProductName, Purchases.Stock, Purchases.FinalPrice \"\n + \"FROM Purchases,Products,Suppliers WHERE Purchases.ProductId=Products.ProductId AND Purchases.SupplierId=Suppliers.SupplierId\";\n\n DefaultTableModel dtm = (DefaultTableModel) new PurchaseDatabase().selectTable(QUERY);\n purchaseTable.setModel(dtm);\n }",
"private void LoadingDatabaseScores() {\n\n\t\tCursor cursor = helper.getDataAll(ScoretableName);\n\n\t\t// id_counter = cursor.getCount();\n\t\tSCORE_LIST = new ArrayList<gameModel>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_MAXSCORE_COLUMN);\n\t\t\tString Score = cursor.getString(SCORE_MAXSCORE_COLUMN);\n\n\t\t\tSCORE_LIST.add(new gameModel(ID, Integer.parseInt(Score),\n\t\t\t\t\tThumbNailFactory.create().getThumbNail(ID)));\n\n\t\t} // travel to database result\n\n\t}",
"private void loadPersistedData() {\n IntegerRange storedAutoStartOnDisconnectDelayRange =\n AUTOSTART_ON_DISCONNECT_DELAY_RANGE_SETTING.load(mDeviceDict);\n if (storedAutoStartOnDisconnectDelayRange != null) {\n mPilotingItf.getAutoStartOnDisconnectDelay().updateBounds(storedAutoStartOnDisconnectDelayRange);\n }\n\n DoubleRange endingHoveringAltitudeRange = ENDING_HOVERING_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (endingHoveringAltitudeRange != null) {\n mPilotingItf.getEndingHoveringAltitude().updateBounds(endingHoveringAltitudeRange);\n }\n\n DoubleRange minAltitudeRange = MIN_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (minAltitudeRange != null) {\n mPilotingItf.getMinAltitude().updateBounds(minAltitudeRange);\n }\n\n applyPresets();\n }",
"private void loadCriteriaList() {\n DataBaseManager DBM = new DataBaseManager();\n criteriaList = DBM.loadCriteriaList(pantallaIdentificacion.this);\n }",
"public void loadData() {\n\t\tempsList.add(\"Pankaj\");\r\n\t\tempsList.add(\"Raj\");\r\n\t\tempsList.add(\"David\");\r\n\t\tempsList.add(\"Lisa\");\r\n\t}",
"public void populate(java.util.Map properties) throws LexComponentException;",
"private void loadTableProperties(Annotated instance) {\n parseClass(instance);\n DefaultTableModel model = createTableModel(properties);\n jTable1.setModel(model);\n }",
"private static void loadDiscoveryDataFromProtexServer(\r\n\t\t\tProjectDiscoveryController pProjectDiscoveryController, \r\n\t\t\tUIResponseObserver observer) {\n\t\tString projectName = pProjectDiscoveryController.getProjectName();\r\n\t\tIdentificationDBManager.init(projectName);\r\n\t\tReportAPIWrapper.discardAllDataForProject(projectName);\r\n\t\t\r\n\t\tlog.debug(\"@@@ table generation start (loading from Protex Server- \"+new java.util.Date());\r\n\t\t\r\n\t\tobserver.setMessageHeader(\"Update Identification Table from Protex Server...\\n\");\r\n\t\tobserver.pushMessageWithHeader(\" > Generating Match Table from Protex Server.\\n\");\r\n\t\tlog.debug(\" > Generating Match Table.\");\r\n\t\t\r\n\t\tReportEntityList identifiedFiles = ReportAPIWrapper.getIdentifiedFiles(projectName, new DefaultUIResponseObserver(), true);\r\n\t\tReportEntityList stringSearch = ReportAPIWrapper.getStringSearches(projectName, new DefaultUIResponseObserver(), true);\r\n\t\tReportEntityList compareCodeMatches = ReportAPIWrapper.getCompareCodeMatches(projectName,observer, true);\r\n//\t\tReportEntityList codeMatchesPrecision = ReportAPIWrapper.getCodeMatchesPrecision(projectName,observer, true);\r\n\t\tReportEntityList codeMatchesPrecision = ReportAPIWrapper.precessCodeMatchesPrecision(projectName,observer, true);\r\n\t\tReportEntityList patternMatchesPendingFiles = ReportAPIWrapper.getPatternMatchesPendingFiles(projectName, new DefaultUIResponseObserver(), true);\r\n\t\t\r\n\t\tArrayList<DiscoveryControllerLoaderThread> discoveryDataLoader = new ArrayList<DiscoveryControllerLoaderThread>();\r\n\t\t\r\n\t\tdiscoveryDataLoader.add(\r\n\t\t\t\tnew StringSearchDiscoveryControllerLoaderThread(\r\n\t\t\t\t\t\tpProjectDiscoveryController,\r\n\t\t\t\t\t\tobserver,\r\n\t\t\t\t\t\tidentifiedFiles, \r\n\t\t\t\t\t\tstringSearch,\r\n\t\t\t\t\t\tcompareCodeMatches,\r\n\t\t\t\t\t\tcodeMatchesPrecision,\r\n\t\t\t\t\t\tpatternMatchesPendingFiles\r\n\t\t\t\t\t\t));\r\n\t\t\r\n\t\tdiscoveryDataLoader.add(\r\n\t\t\t\tnew CodeMatchDiscoveryControllerLoaderThread(\r\n\t\t\t\t\t\tpProjectDiscoveryController,\r\n\t\t\t\t\t\tobserver,\r\n\t\t\t\t\t\tidentifiedFiles, \r\n\t\t\t\t\t\tstringSearch,\r\n\t\t\t\t\t\tcompareCodeMatches,\r\n\t\t\t\t\t\tcodeMatchesPrecision,\r\n\t\t\t\t\t\tpatternMatchesPendingFiles\r\n\t\t\t\t\t\t));\r\n\t\t\r\n\t\tdiscoveryDataLoader.add(\r\n\t\t\t\tnew PatternMatchDiscoveryControllerLoaderThread(\r\n\t\t\t\t\t\tpProjectDiscoveryController,\r\n\t\t\t\t\t\tobserver,\r\n\t\t\t\t\t\tidentifiedFiles, \r\n\t\t\t\t\t\tstringSearch,\r\n\t\t\t\t\t\tcompareCodeMatches,\r\n\t\t\t\t\t\tcodeMatchesPrecision,\r\n\t\t\t\t\t\tpatternMatchesPendingFiles\r\n\t\t\t\t\t\t));\t\t\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// starting loaders\r\n\t\t\tfor(int i=0; i<discoveryDataLoader.size(); i++) {\r\n\t\t\t\tdiscoveryDataLoader.get(i).start();\r\n\t\t\t}\r\n\t\t\t// waiting for finishing loaders.\r\n\t\t\tfor(int i=0; i<discoveryDataLoader.size(); i++) {\r\n\t\t\t\tlog.debug(\"@@@ DiscoveryControllerThread joining : \" + discoveryDataLoader.get(i).getClass().getName());\r\n\t\t\t\tdiscoveryDataLoader.get(i).join();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.warn(e);\r\n\t\t}\r\n\t\tlog.debug(\"@@@ table generate end - \"+new java.util.Date());\r\n\t}",
"public abstract void loadFromDatabase();",
"public void loadSources( int messageId )\n {\n for (Source src : srcs) {\n src.fetchData(bklist, messageId );\n }\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"private void allocateValues(Hashtable<String, Double> data) {\n\t\tfor(String key:data.keySet()) {\n\t\t\tif(this.salesByPromo.containsKey(key)) {\n\t\t\t\tdouble input = this.salesByPromo.get(key)+ data.get(key);\n\t\t\t\tthis.setSalesByPromo(key, input);\n\t\t\t} else {\n\t\t\t\tthis.setSalesByPromo(key, data.get(key));\n\t\t\t}\n\t\t}\n\t}",
"private void LoadingDatabaseTotalScore() {\n\n\t\tCursor cursor = helper.getDataAll(TotalScoretableName);\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_TOTAL_SCORE_COLUMN);\n\t\t\tString totalPoint = cursor.getString(POINT_TOTAL_SCORE_COLUMN);\n\t\t\t\n\t\t\ttotalScore = Integer.parseInt(totalPoint);\t\t\t\t\t// store total score from database to backup value\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"private Object[] lookupValues(RowMetaInterface rowMeta, Object[] row) throws KettleException\n\t{\n\t\tif (isStopped()) return null;\n\t\t\n\t\tif ( data.lookupColumnIndex == null ) \n\t\t{\n\t\t\tString names[] = data.lookupMeta.getFieldNames();\n\t\t\tdata.lookupColumnIndex = new int[names.length];\n\t\t\t\n\t\t\tfor( int i=0; i<names.length; i++ ) \n\t\t\t{\n\t\t\t\tdata.lookupColumnIndex[i] = rowMeta.indexOfValue(names[i]);\n\t\t\t\tif ( data.lookupColumnIndex[i] < 0 ) \n\t\t\t\t{\n\t\t\t\t\t// we should not get here\n\t\t\t\t\tthrow new KettleStepException( \"The lookup column '\"+names[i]+\"' could not be found\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Copy value references to lookup table.\n\t\t//\n Object[] lu = new Object[data.keynrs.length];\n for (int i=0;i<data.keynrs.length;i++) {\n \t// If the input is binary storage data, we convert it to normal storage.\n \t//\n \tif (data.convertKeysToNative[i]) {\n \t\tlu[i] = data.lookupMeta.getValueMeta(i).convertBinaryStringToNativeType((byte[])row[data.keynrs[i]]);\n \t} else {\n \t\tlu[i] = row[data.keynrs[i]];\n \t}\n }\n\n // Handle conflicting types (Number-Integer-String conversion to lookup type in hashtable)\n if (data.keyTypes!=null)\n {\n for (int i=0;i<data.lookupMeta.size();i++)\n {\n ValueMetaInterface inputValue = data.lookupMeta.getValueMeta(i);\n ValueMetaInterface lookupValue = data.keyTypes.getValueMeta(i);\n if (inputValue.getType()!=lookupValue.getType())\n {\n try\n {\n \t// Change the input value to match the lookup value\n \t//\n lu[i] = lookupValue.convertDataCompatible(inputValue, lu[i]);\n }\n catch (KettleValueException e)\n {\n throw new KettleStepException(\"Error converting data while looking up value\", e);\n }\n }\n }\n }\n \n Object[] add = null;\n \n\t\tif (data.hasLookupRows) \n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (meta.getKeystream().length>0)\n\t\t\t\t{\n\t\t\t\t\tadd=getFromCache(data.keyTypes, lu);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Just take the first element in the hashtable...\n\t\t\t\t\tthrow new KettleStepException(BaseMessages.getString(PKG, \"StreamLookup.Log.GotRowWithoutKeys\")); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tthrow new KettleStepException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (add==null) // nothing was found, unknown code: add the specified default value...\n\t\t{\n\t\t\tadd=data.nullIf;\n\t\t} \n\t\t\n return RowDataUtil.addRowData(row, rowMeta.size(), add);\n\t}",
"private void loadData() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n String fromSymbols = sharedPreferences.getString(getString(R.string.cryto_key), getString(R.string.cryto_value));\n String toSymbols = sharedPreferences.getString(getString(R.string.currencies_key), getString(R.string.currencies_value));\n new FetchUrlTask().execute(fromSymbols, toSymbols);\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }",
"private void loadMasterData()\r\n\t{\r\n\t\tlistOfMasterStud.clear();\r\n\t\tString qu = \"SELECT * FROM MASTERSTUDENT\";\r\n\t\tResultSet resultM = databaseHandler.execQuery(qu);\r\n\t\ttry {\r\n\t\t\t// retrieve student information form database\r\n\t\t\twhile(resultM.next())\r\n\t\t\t{\r\n\t\t\t\tString studIDM = resultM.getString(\"studentNoM\");\r\n\t\t\t\tString studNameM = resultM.getString(\"nameM\");\r\n\t\t\t\tString studSurnameM = resultM.getString(\"surnameM\");\r\n\t\t\t\tString studSupervisorM = resultM.getString(\"supervisorM\");\r\n\t\t\t\tString studEmailM = resultM.getString(\"emailM\");\r\n\t\t\t\tString studCellphoneM = resultM.getString(\"cellphoneNoM\");\r\n\t\t\t\tString studStationM = resultM.getString(\"stationM\");\r\n\t\t\t\tString studCourseM = resultM.getString(\"courseM\");\r\n\r\n\t\t\t\tlistOfMasterStud.add(new StudentProperty(studIDM, studNameM, studSurnameM,\r\n\t\t\t\t\t\tstudSupervisorM, studEmailM, studCellphoneM, studStationM, studCourseM));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tmasterStudTable.setItems(listOfMasterStud);\r\n\t}",
"public void loadTroubleMarker(HashMap<Integer, TroubleMarker> TroubleMarker_HASH){\r\n \r\n try {\r\n Scanner scanner = new Scanner(new File(file_position+\"TroubleMarker.csv\"));\r\n Scanner dataScanner = null;\r\n int index = 0;\r\n \r\n while (scanner.hasNextLine()) {\r\n dataScanner = new Scanner(scanner.nextLine());\r\n \r\n if(TroubleMarker_HASH.size() == 0){\r\n dataScanner = new Scanner(scanner.nextLine());\r\n }\r\n \r\n dataScanner.useDelimiter(\",\");\r\n TroubleMarker troubleMarker = new TroubleMarker(-1, -1);\r\n \r\n while (dataScanner.hasNext()) {\r\n String data = dataScanner.next();\r\n if (index == 0) {\r\n troubleMarker.setId(Integer.parseInt(data));\r\n } else if (index == 1) {\r\n troubleMarker.setAreaNumber(Integer.parseInt(data));\r\n } else {\r\n System.out.println(\"invalid data::\" + data);\r\n }\r\n index++;\r\n }\r\n \r\n TroubleMarker_HASH.put(troubleMarker.getId(), troubleMarker);\r\n index = 0;\r\n }\r\n \r\n scanner.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"Error: FileNotFound - loadTroubleMarker\");\r\n }\r\n \r\n }",
"protected final boolean loadMapping() {\r\n if (_loaded) { return false; }\r\n _loaded = true;\r\n return true;\r\n }",
"public void load() throws FileNotFoundException, IOException, ClassNotFoundException, DBAppException {\n ArrayList<Tuple> data = new ArrayList<Tuple>();\n int pageIndex = myTable.getCurPageIndex();\n for (int i = 0; i <= pageIndex; i++) {\n // Student_0.class\n\n\n String name = dataPath + tableName + \"_\" + i + \".class\";\n\n ObjectInputStream ois = new ObjectInputStream(new FileInputStream(name));\n Page page = (Page) ois.readObject();\n ois.close();\n for (Tuple t : page.getTuples()) {\n int indexKeyPos = t.getIndex(indexkey);\n int primaryKeyPos = t.getIndex(primarykey);\n Object[] values = new Object[3];\n values[0] = t.get()[indexKeyPos];\n values[1] = t.get()[primaryKeyPos];\n values[2] = i;\n\n String[] types = new String[3];\n types[0] = t.getTypes()[indexKeyPos];\n types[1] = t.getTypes()[primaryKeyPos];\n types[2] = \"java.lang.integer\";\n\n String[] colName = new String[3];\n colName[0] = t.colName[indexKeyPos];\n colName[1] = t.colName[primaryKeyPos];\n colName[2] = \"page.number\";\n\n Tuple newTuple = new Tuple(values, types, colName, 0);\n\n data.add(newTuple);\n }\n }\n\n Collections.sort(data);\n if (data.isEmpty())\n return;\n Page curPage = createPage();\n for (int i = 0; i < data.size(); i++) {\n if (curPage.isFull()) {\n curPage.savePage();\n curPage = createPage();\n }\n curPage.insert(data.get(i), true);\n }\n curPage.savePage();\n }",
"public void loadDB(){\n ////////////// Code that builds stores with their items lists and builds carts /////////////////////////////////////////////////////////////\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n sampleData = new HashMap<>(); //Make 1 hashmap per store (each has that store's items)\n //storeB_Data = new HashMap<>(); //Hashmap that has items of store B\n\n //Add new item to HashMap of items\n sampleData.put(\"026229211706\", new InventoryItem(1.99, \"Notebook\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"026229211706\"));\n sampleData.put(\"096619756803\", new InventoryItem(2.99, \"Water Bottle\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"096619756803\"));\n sampleData.put(\"9781491962299\", new InventoryItem(4.99, \"Machine Learning\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"9781491962299\"));\n sampleData.put(\"1297432524354\", new InventoryItem(4.99, \"Item\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"1297432524354\"));\n sampleData.put(\"857263004111\", new InventoryItem(79.99, \"Trendy Jacket\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"857263004111\"));\n\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(49.99,\"Hands On Machine Learning\",\"https://m.media-amazon.com/images/S/aplus-media/vc/11714e04-b1a6-439d-9482-87e757822f94.jpg\",\"Others\",\"1\",1));\n\n //This data will be populated into instance objects on each scan and \"add to cart\" /////////////////////////////\n //LAST INPUT (in this case, 1) IS THE QUANTITY. SHOULD BE SET TO WHATEVER IS ASSIGNED FROM THE DIALOGUE BOX\n //CartItem notebook = new CartItem(sampleData.get(\"026229212703\").getPrice(), sampleData.get(\"026229212703\").getName(), sampleData.get(\"026229212703\").getImage(), sampleData.get(\"026229212703\").getSalesTaxGroup(), sampleData.get(\"026229212703\").getItemKey(), 1);\n //CartItem water = new CartItem(sampleData.get(\"096619756803\").getPrice(), sampleData.get(\"096619756803\").getName(), sampleData.get(\"096619756803\").getImage(), sampleData.get(\"096619756803\").getSalesTaxGroup(), sampleData.get(\"096619756803\").getItemKey(), 1);\n //CartItem mints = new CartItem(sampleData.get(\"030242940017\").getPrice(), sampleData.get(\"030242940017\").getName(), sampleData.get(\"030242940017\").getImage(), sampleData.get(\"030242940017\").getSalesTaxGroup(), sampleData.get(\"030242940017\").getItemKey(), 1);\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n //CartListOfItems cart = new CartListOfItems();\n //cart.addToCart(notebook);\n //cart.addToCart(toyCar);\n }",
"@SuppressWarnings({\"unchecked\"})\n private void loadDataFromOSM() {\n try {\n System.out.println(\">> Attempting to load data from OSM database...\");\n // Load JDBC driver and establish connection\n Class.forName(\"org.postgresql.Driver\");\n String url = \"jdbc:postgresql://localhost:5432/osm_austria\";\n mConn = DriverManager.getConnection(url, \"geo\", \"geo\");\n // Add geometry types to the connection\n PGConnection c = (PGConnection) mConn;\n c.addDataType(\"geometry\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGgeometry\"));\n c.addDataType(\"box2d\", (Class<? extends PGobject>) Class.forName(\"org.postgis.PGbox2d\"));\n\n // Create statement and execute query\n Statement s = mConn.createStatement();\n\n // Get boundary types\n String query = \"SELECT * FROM boundary_area AS a WHERE a.type IN (8001,8002,8003,8004);\";\n executeSQL(query, s);\n\n query = \"SELECT * FROM landuse_area AS a WHERE a.type IN (5001, 5002);\";\n executeSQL(query, s);\n\n /* // Get landuse types\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n\n // Get natural types\n query = \"SELECT * FROM natural_area AS a WHERE a.type IN (6001, 6002, 6005);\";\n\n r = s.executeQuery(query);\n\n while (r.next()) {\n String id = r.getString(\"id\");\n int type = r.getInt(\"type\");\n PGgeometry geom = (PGgeometry) r.getObject(\"geom\");\n\n switch (geom.getGeoType()) {\n case Geometry.POLYGON:\n String wkt = geom.toString();\n org.postgis.Polygon p = new org.postgis.Polygon(wkt);\n if (p.numRings() >= 1) {\n Polygon poly = new Polygon();\n LinearRing ring = p.getRing(0);\n for (int i = 0; i < ring.numPoints(); i++) {\n org.postgis.Point pPG = ring.getPoint(i);\n poly.addPoint((int) pPG.x, (int) pPG.y);\n }\n mObjects.add(new GeoObject(id, type, poly));\n }\n break;\n default:\n break;\n }\n }\n */\n\n s.close();\n mConn.close();\n } catch (Exception _e) {\n System.out.println(\">> Loading data failed!\\n\" + _e.toString());\n }\n\n }",
"private void assignMatchingProteins(List<PeptideSpectrumMatchNoFDR> psmList) {\n \n MsSearchResultProteinDAO protDao = DAOFactory.instance().getMsProteinMatchDAO();\n \n long s = System.currentTimeMillis();\n // map of protein accession and protein\n Map<String, Protein> proteinMap = new HashMap<String, Protein>();\n \n for(PeptideSpectrumMatchNoFDR psm: psmList) {\n \n // read the matching proteins from the database now\n List<MsSearchResultProtein> msProteinList = protDao.loadResultProteins(psm.getHitId());\n\n for (MsSearchResultProtein protein: msProteinList) {\n // we could have multiple accessions, keep the first one only\n String[] accessionStrings = protein.getAccession().split(\"\\\\cA\");\n \n Protein prot = proteinMap.get(accessionStrings[0]);\n // If we have not already seen this protein create a new entry\n if(prot == null) {\n prot = new Protein(accessionStrings[0], -1);\n proteinMap.put(accessionStrings[0], prot);\n }\n psm.getPeptideHit().addProtein(prot);\n }\n }\n \n long e = System.currentTimeMillis();\n log.info(\"\\tTime to get matching proteins: \"+TimeUtils.timeElapsedSeconds(s,e)+\" seconds.\");\n }",
"private void populateDictionary() throws IOException {\n populateDictionaryByLemmatizer();\n// populateDictionaryBySynonyms();\n }",
"@EventListener(ApplicationReadyEvent.class)\n\tpublic void loadData() {\n\t\tList<AppUser> allUsers = appUserRepository.findAll();\n\t\tList<Customer> allCustomers = customerRepository.findAll();\n\t\tList<Part> allPArts = partRepository.findAll();\n\n\t\tif (allUsers.size() == 0 && allCustomers.size() == 0 && allPArts.size() == 0) {\n\t\t\tSystem.out.println(\"Pre-populating the database with test data\");\n\n\t\t\tResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator(\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\t\"UTF-8\",\n\t\t\t\tnew ClassPathResource(\"data.sql\"));\n\t\t\tresourceDatabasePopulator.execute(dataSource);\n\t\t}\n\t\tSystem.out.println(\"Application successfully started!\");\n\t}",
"public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }",
"private void loadMap(MultiHashMap map) {\n\r\n int numRows = sMapPairs.length;\r\n int maxCols = 0;\r\n for (int ii = 0; ii < sMapPairs.length; ii++) {\r\n if (sMapPairs[ii].length > maxCols) {\r\n maxCols = sMapPairs[ii].length;\r\n }\r\n }\r\n for (int ii = 0; ii < maxCols; ii++) {\r\n for (int jj = 0; jj < numRows; jj++) {\r\n if (ii < sMapPairs[jj].length) {\r\n map.put(sMapPairs[jj][ii].mKey, sMapPairs[jj][ii].mValue);\r\n //---------------------------------------------------------\r\n }\r\n }\r\n }\r\n assertTrue(map.size() == sMapPairs.length);\r\n }",
"public void loadNew(Integer pr_number) throws Exception {\n String query = \"select * from pr_history_view where item_id = \" + item_id + \" and facility_id = '\" + facility_id + \"'\";\n query += \" and fac_part_no = '\" + this.fac_item_id + \"'\";\n query += \" and pr_number = \" + pr_number.intValue();\n DBResultSet dbrs = null;\n ResultSet rs = null;\n try {\n dbrs = db.doQuery(query);\n rs = dbrs.getResultSet();\n if (rs.next()) {\n setType(rs.getString(\"ITEM_TYPE\"));\n setPrice(BothHelpObjs.makeBlankFromNull(rs.getString(\"UNIT_PRICE\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n HelpObjs.monitor(1,\n \"Error object(\" + this.getClass().getName() + \"): \" + e.getMessage(), null);\n throw e;\n } finally {\n dbrs.close();\n }\n return;\n }",
"protected void loadData(final Map<String, Object> values) {\n\t\tmodel.loadRecord(new SingleStaticDataSet(values));\n\t}",
"RecordSet loadAllMemberContribution (Record inputRecord);",
"@Test\r\n public void testLookup() {\r\n AvlPuu puu = new AvlPuu();\r\n Noodi noodi = new Noodi(0,0);\r\n noodi.setMatkaJaljella(10);\r\n noodi.setTehtyMatka(0);\r\n PuuSolmu solmu = new PuuSolmu(noodi);\r\n puu.insert(noodi);\r\n assertTrue(puu.lookup(noodi)); \r\n }",
"public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}",
"public void populate(){\n salesRepRepository.save(new SalesRep(\"Maddy\"));\n salesRepRepository.save(new SalesRep(\"Jegor\"));\n salesRepRepository.save(new SalesRep(\"Natalia\"));\n salesRepRepository.save(new SalesRep(\"Joao\"));\n }",
"private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}",
"@Override\n\tpublic void load(DataKey arg0) throws NPCLoadException {\n\t\t\n\t}",
"private void LoadingDatabaseGameLocation() {\n\n\t\tCursor cursor = helper.getDataAll(GamelocationTableName);\n\n\t\t// id_counter = cursor.getCount();\n\n\t\tGAME_LIST.clear();\n\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// loading each element from database\n\t\t\tString ID = cursor.getString(ID_GAME_LCOATION_COLUMN);\n\t\t\tString Description = cursor\n\t\t\t\t\t.getString(DESCRIPTION_GAME_LCOATION_COLUMN);\n\t\t\tString isGameVisited = cursor.getString(GAME_IS_VISITED_COLUMN);\n\n\t\t\tGAME_LIST.add(new gameLocation(ID, Description,\n\t\t\t\t\tisUsed(isGameVisited)));\n\t\t\t\n\t\t\tLog.d(TAG, \"game ID : \"+ ID);\n\t\t\t\n\t\t} // travel to database result\n\n\t}",
"public static void loadStorageTable()\n {\n // Selects the StorageId, ProductName, ProductDescription, Supplier's TaxRegister, Product's SellingPrice and Product's Stock\n final String QUERY = \"SELECT Storage.StorageId, Storage.ProductId, Suppliers.TaxRegister, Products.ProductName, Products.ProductDescription, Products.MeasurementUnit, Products.Weight, Products.Stock, Products.SellingPrice \"\n + \"FROM Storage,Products,Suppliers,SuppliersProducts WHERE Storage.ProductId = Products.ProductId AND Products.ProductId = SuppliersProducts.ProductId AND \"\n + \"SuppliersProducts.SupplierId = Suppliers.SupplierId\";\n DefaultTableModel dtm = (DefaultTableModel) new StorageDatabase().selectTable(QUERY);\n storageTable.setModel(dtm);\n }",
"private void load() {\n Uri poiUri = Uri.withAppendedPath(Wheelmap.POIs.CONTENT_URI_POI_ID,\r\n String.valueOf(poiID));\r\n\r\n // Then query for this specific record:\r\n Cursor cur = getActivity().managedQuery(poiUri, null, null, null, null);\r\n\r\n if (cur.getCount() < 1) {\r\n cur.close();\r\n return;\r\n }\r\n\r\n cur.moveToFirst();\r\n\r\n WheelchairState state = POIHelper.getWheelchair(cur);\r\n String name = POIHelper.getName(cur);\r\n String comment = POIHelper.getComment(cur);\r\n int lat = (int) (POIHelper.getLatitude(cur) * 1E6);\r\n int lon = (int) (POIHelper.getLongitude(cur) * 1E6);\r\n int nodeTypeId = POIHelper.getNodeTypeId(cur);\r\n int categoryId = POIHelper.getCategoryId(cur);\r\n\r\n NodeType nodeType = mSupportManager.lookupNodeType(nodeTypeId);\r\n // iconImage.setImageDrawable(nodeType.iconDrawable);\r\n\r\n setWheelchairState(state);\r\n // nameText.setText(name);\r\n\r\n String category = mSupportManager.lookupCategory(categoryId).localizedName;\r\n // categoryText.setText(category);\r\n nodetypeText.setText(nodeType.localizedName);\r\n commentText.setText(comment);\r\n addressText.setText(POIHelper.getAddress(cur));\r\n websiteText.setText(POIHelper.getWebsite(cur));\r\n phoneText.setText(POIHelper.getPhone(cur));\r\n\r\n /*\r\n * POIMapsforgeOverlay overlay = new POIMapsforgeOverlay();\r\n * overlay.setItem(name, comment, nodeType, state, lat, lon);\r\n * mapView.getOverlays().clear(); mapView.getOverlays().add(overlay);\r\n * mapController.setCenter(new GeoPoint(lat, lon));\r\n */\r\n }",
"private void populateProfession() {\n try {\n vecProfessionKeys = new Vector();\n StringTokenizer stk = null;\n vecProfessionLabels = new Vector();\n //MSB -09/01/05 -- Changed configuration file.\n // config = new ConfigMgr(\"customer.cfg\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"PROFESSION\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n if (stk != null) {\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecProfessionKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecProfessionLabels.add(value);\n }\n }\n cbxProfession.setModel(new DefaultComboBoxModel(vecProfessionLabels));\n } catch (Exception e) {}\n }",
"private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}",
"private static void load(List<Opinion> opinionList) {\n System.out.println(\"Loading...\");\n clearDB();\n opinionDAO.openConnection();\n if (opinionDAO.dbDropped) {\n opinionDAO.createTables();\n }\n opinionList.forEach(opinion -> opinionDAO.insertOpinion(opinion));\n System.out.println(opinionList.size() + \" opinions loaded to database.\");\n opinionDAO.closeConnection();\n }",
"private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }",
"void fetchStartHousesData();",
"private void initializeExportTable() {\n\t\tif (this.libraryName.equals(\"mapistub.dll\")) {\n\t\t\texportTable.put(\"fixmapi\", (long) (baseAddress + Math.random() * Math.pow(10, 2)));\n\t\t}\n\t}",
"private void loadPatient() {\n patient = PatientsDatabaseAccessObject.getInstance().getPatients();\n table.getItems().clear();\n for (int i = 0; i < patient.size(); ++i) {\n table.getItems().add(patient.get(i));\n }\n table.refresh();\n }",
"private void loadDataMap() throws IOException {\n\t\tDaySleepDurationMap.getInstance().clear();\n\n\t\t// List of entries\n\t\tList<SleepEntry> entries = new ArrayList<SleepEntry>();\n\t\t\n\t\t// Get CSV file\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(DATA_LOCATION)));\n\t\tString line = \"\";\n\n\t\t// Ignore the first line (CSV header)\n\t\tbr.readLine();\n\n\t\twhile (((line = br.readLine()) != null)){\n\t\t\t// Convert the line from CSV to a SleepEntry\n\t\t\tSleepEntry se = SleepEntry.parseFromCSV(line);\n\t\t\t// Add it to the entry list\n\t\t\tentries.add(se);\n\t\t}\n\t\t\n\t\tfor (SleepEntry se : entries){\n\t\t\t// Add data from list to the map\n\t\t\tDaySleepDurationMap.getInstance().addToDay(se.getEffectiveDate(), se.getDuration());\n\t\t}\n\t\t\n\n\t\tbr.close();\n\t\t\n\t}",
"public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}",
"public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }",
"private static HashMap<String, Object> fetchReferralRecruitmentData(HashMap<String, Object> parameterMap) {\n\t\t//BEGIN-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\tPsPersonalApplicantReferral psReferralSource = PsPersonalApplicantReferral.findByEmployeeIdAndEffectiveDate((String)parameterMap.get(\"employeeId\"), (Date)parameterMap.get(\"effectiveDate\")); //PS_PERS_APPL_REF\n\t\tBigInteger referralSourceId = psReferralSource.getSourceId();\n\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findBySourceId(referralSourceId); //PS_HRS_SOURCE_I\n\t\tString referralSourceDescription = psRecruitmentSource.getSourceDescription();\n//\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findByRecruitmentSourceId(recruitmentSourceId); //PS_HRS_SOURCE_I\n\t\t//LET $PSRecruit_Source_Code = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n\t\tString referralSourceName = psRecruitmentSource.getSourceName();\n\t\tString psSpecificReferralSource = \"\";\n\t\t//DO HR05-FORMAT-REFERRAL-SOURCE \n\t\t\t//BEGIN-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t\t//Let $Found = 'N' !Initialize the found indicator\n\t\t\t//!Based on the value in the PeopleSoft Recruit Source Code assign the\n\t\t\t//!corresponding legacy system code that will be passed.\n\t\t\t//Let $PSReferral_Source = &CPT101.ZHRF_LEGRECRUITSRC\n\t\t\tString referralSource = CrossReferenceReferralSource.findActiveLegacyRecruiterSourceByReferralSource(referralSourceName); //PS_ZHRT_RFSRC_CREF\n\t\t\t//IF ($Found = 'N')\n\t\t\tif(referralSource == null) {\n\t\t\t\t//LET $PSReferral_Source = ' '\n\t\t\t\treferralSource = \"\";\n\t\t\t\t//IF $PSRecruit_Source_Code = ' ' !If the Referral Source code was not entered in PS\n\t\t\t\tif(referralSourceName == null || referralSourceName.isEmpty()) {\n\t\t\t\t\tparameterMap.put(\"errorProgram\", \"ZHRI105A\");\n\t\t\t\t\t//LET $ErrorMessageParm = 'Referral source not selected in PeopleSoft.'\n\t\t\t\t\tparameterMap.put(\"errorMessage\", \"Referral source not selected in PeopleSoft.\");\n\t\t\t\t\t//DO Prepare-Error-Parms ! JHV 09/11/02 fix Date Mask error ZHR_PRDSPT_INTF_ERROR\n\t\t\t\t\t//DO Call-Error-Routine !From ZHRI100A.SQR\n\t\t\t\t\tMain.doErrorCommand(parameterMap);\n\t\t\t\t}\n\t\t\t\t//ELSE\n\t\t\t\telse {\n\t\t\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35)\n\t\t\t\t\tpsSpecificReferralSource = referralSourceDescription;\n//\t\t\t\t\tPSSpecific_Refer_Src = PSRefSourceDescr;\n\t\t\t\t//END-IF !$PSRecruit_Source_Code = ' '\n\t\t\t\t}\n\t\t\t//END-IF !$Found = 'N'\n\t\t\t}\n\t\t\t//!Make sure not less than 35 long\n\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) \n\t\t\t//TODO: //LET $PSSpecific_Refer_Src = RPAD($PSSpecific_Refer_Src,35,' ')\n\t\t\tpsSpecificReferralSource = psSpecificReferralSource.substring(0, 35);\n\t\t\tString recruitmentSourceId = psRecruitmentSource.getSourceDescription();\n\t\t\tif(recruitmentSourceId != null) {\n\t\t\t\trecruitmentSourceId = recruitmentSourceId.trim();\n\t\t\t\trecruitmentSourceId = String.format(\"%1$-35s\", recruitmentSourceId);\n\t\t\t}\n\t\t\tparameterMap.put(\"recruitmentSourceId\", recruitmentSourceId);\n\t\t\t//END-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t//Let $PSReferralSource = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n//\t\tString PSReferralSource = psRecruitmentSource.getSourceName();\n\t\t//END-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\treferralSource = referralSource != null ? referralSource.trim() : referralSource;\n\t\tparameterMap.put(\"referralSource\", referralSource);\n\t\treturn parameterMap;\n\t}",
"private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"public void loadModel() throws SQLException {\n\t\tObject rs = MysqlConnection.getDbConnection().getQueryData(query);\n\t\tclassifier = (FilteredClassifier)rs;\n\t}",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"public void loadData(Object[] columnData);",
"RecordSet loadAllComponents(Record record, RecordLoadProcessor recordLoadProcessor);"
] | [
"0.5793432",
"0.5611402",
"0.5466591",
"0.5444755",
"0.5436001",
"0.53873324",
"0.53786665",
"0.5362938",
"0.53612846",
"0.5338338",
"0.5242738",
"0.51994044",
"0.51972234",
"0.51331097",
"0.5117166",
"0.5102547",
"0.509115",
"0.5088826",
"0.5085958",
"0.50715643",
"0.5070223",
"0.50692254",
"0.50668585",
"0.5059714",
"0.50564235",
"0.5055527",
"0.5044272",
"0.5043813",
"0.50317526",
"0.50317526",
"0.501269",
"0.501269",
"0.50105524",
"0.4994681",
"0.49945045",
"0.49823108",
"0.4981578",
"0.49609616",
"0.4960508",
"0.49488774",
"0.49448562",
"0.49442005",
"0.49430528",
"0.49422964",
"0.49213624",
"0.49210277",
"0.4918279",
"0.49117917",
"0.4896083",
"0.48871106",
"0.4885382",
"0.48833245",
"0.4881815",
"0.48778194",
"0.48775148",
"0.4870131",
"0.48699945",
"0.48496458",
"0.48493293",
"0.48425555",
"0.48411322",
"0.48367634",
"0.4828224",
"0.48204416",
"0.48163155",
"0.48126814",
"0.48099077",
"0.48088416",
"0.4803605",
"0.47975874",
"0.47927418",
"0.47881708",
"0.47786197",
"0.47785622",
"0.4777197",
"0.477696",
"0.47723672",
"0.4759976",
"0.4758883",
"0.47549132",
"0.4745461",
"0.4742604",
"0.473601",
"0.47359255",
"0.47276342",
"0.4725598",
"0.4724814",
"0.4723991",
"0.4723676",
"0.47195756",
"0.47179562",
"0.47175357",
"0.47170678",
"0.4717037",
"0.47133338",
"0.47125053",
"0.47100216",
"0.47085166",
"0.47071028",
"0.47040898"
] | 0.48145226 | 65 |
Update the prom_lookup table with latest http path. | public static void updatePromLookup(final int envId, int compId, String httpPath){
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(HQLConstants.UPDATE_PROM_LOOKUP_DETAILS);
query.setString("httpPath", httpPath);
query.setTimestamp("lastUpdateDate", new java.sql.Timestamp(System.currentTimeMillis()));
query.setLong("compId", compId);
query.setLong("environmentId", envId);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int loadPromLookup(final int envId, int compId, String httpPath) {\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tPromLookupEntity promLook = new PromLookupEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpromLook.setEnvironment(environment);\n\t\tpromLook.setLastUpdated(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpromLook.setComponent(component);\n\t\tpromLook.setLaunchDate(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\tpromLook.setHttpPath(httpPath);\n\t\tsession.save(promLook);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public void updatePath (DataSource pool,String path) throws SQLException {\r\n this.setPath(path);\r\n Connection conn=null;\r\n\t\ttry{\r\n conn=pool.getConnection();\r\n String query = \r\n \"update gene_list_analyses \"+\r\n \"set path = ? \"+\r\n \"where analysis_id = ?\";\r\n\r\n log.debug(\"in updateStatus. analysis = \"+this.getDescription());\r\n PreparedStatement pstmt = conn.prepareStatement(query, \r\n ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n pstmt.setString(1, this.getPath());\r\n pstmt.setInt(2, this.getAnalysis_id());\t\r\n pstmt.executeUpdate();\r\n conn.close();\r\n conn=null;\r\n }catch(SQLException e){\r\n throw e;\r\n }finally{\r\n if (conn != null) {\r\n try { conn.close(); } catch (SQLException e) { ; }\r\n conn = null;\r\n }\r\n }\r\n\t}",
"public static Map<String, Integer> getPromLookupHttpPath(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria promLookCriteria = session.createCriteria(PromLookupEntity.class, \"promLook\");\n\t\tpromLookCriteria.createCriteria(\"promLook.component\", \"comp\");\n\t\tpromLookCriteria.add(Restrictions.eq(\"comp.platform\", platform));\n\t\tpromLookCriteria.add(Restrictions.eq(\"promLook.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<PromLookupEntity> promLookEntityList = promLookCriteria.list();\n\t\tMap<String, Integer> mapPromLook = new HashMap<String, Integer>();\n\t\tfor(PromLookupEntity promLookEntity : promLookEntityList){\n\t\t\tif(promLookEntity.getComponent() != null){\n\t\t\t\tmapPromLook.put(promLookEntity.getHttpPath(), promLookEntity.getComponent().getComponentId());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapPromLook;\n\t}",
"private void updateRepFromLog(URI phyOntURI) {\r\n\t\t// first get ontology whose physical uri matches \r\n\t\tURI logOntURI = null;\r\n\t\tfor (Iterator iter = swoopModel.getOntologies().iterator(); iter.hasNext();) {\r\n\t\t\tOWLOntology ont = (OWLOntology) iter.next(); \r\n\t\t\ttry {\r\n\t\t\t\tif (ont.getPhysicalURI().equals(phyOntURI)) {\r\n\t\t\t\t\tlogOntURI = ont.getLogicalURI();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (OWLException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (logOntURI==null) {\r\n\t\t\tSystem.out.println(\"No Ontology in Swoop has physical URI: \"+phyOntURI);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// get changes from swoopModel.changeCache\r\n\t\tList changes = swoopModel.getChangesCache().getChangeList(logOntURI);\r\n\t\tList allRepChanges = this.getDescendantChanges(repRoot);\r\n\t\tallRepChanges.removeAll(this.getDescendantChanges(newCommitNode));\r\n\t\tfor (Iterator iter = new ArrayList(changes).iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tif (this.isPresent(allRepChanges, swc)) changes.remove(swc);\r\n\t\t}\r\n\t\t\r\n\t\tthis.sortChanges(changes);\r\n\t\t\r\n\t\t// add (new) repChanges to newCommit node directly\r\n\t\tnewCommitNode.children = new Vector();\r\n\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t}\t\t\t\t\t\r\n\t\tthis.refreshRepTreeTable(true);\t\r\n\t}",
"public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}",
"protected void handleLookUp(Message m) {\n for(IP routeIP: m.getRoutePath()) {\n if(ip.getAddr().equals(routeIP.getAddr()) && ip.getPort() == routeIP.getPort()) {\n return;\n }\n }\n\n // dont spread if step over MAX_HOP\n if( m.getHop() >= m.MAX_HOP ){\n return;\n }\n m.hopAddOne();\n\n m.routePathAddRear(this.ip);\n spread(m);\n }",
"public void updateRecentRelationships(String encoded) {\n String strs[] = RTPrefs.retrieveStrings(RECENT_RELATIONSHIPS_PREF_STR);\n String new_strs[];\n if (strs == null || strs.length == 0) {\n // Make a default one\n new_strs = new String[1]; new_strs[0] = Utils.encToURL(encoded) + BundlesDT.DELIM + System.currentTimeMillis();\n } else {\n // Transfer existing to a map for recency/set update\n Map<String,Long> map = new HashMap<String,Long>();\n long earliest = 0L;\n for (int i=0;i<strs.length;i++) { StringTokenizer st = new StringTokenizer(strs[i], BundlesDT.DELIM);\n String str = st.nextToken(); long ts = Long.parseLong(st.nextToken());\n\t\t\t\t\tif (earliest == 0L) earliest = ts; else if (ts < earliest) earliest = ts;\n\t\t\t\t\tmap.put(str,ts); }\n // Add the new one\n map.put(Utils.encToURL(encoded),System.currentTimeMillis());\n // Only keep 20 or less based on recency\n if (map.keySet().size() > 20) {\n Iterator<String> it = map.keySet().iterator();\n\twhile (it.hasNext()) {\n\t String str = it.next(); if (earliest == map.get(str)) it.remove();\n\t}\n }\n // Transfer to a set of strings\n new_strs = new String[map.keySet().size()];\n Iterator<String> it = map.keySet().iterator();\n for (int i=0;i<new_strs.length;i++) {\n String str = it.next(); long ts = map.get(str);\n\tnew_strs[i] = str + BundlesDT.DELIM + ts;\n }\n }\n // Store it off and update the menu // Note that this won't go across other RTGraphPanel windows -- will need a restart\n RTPrefs.store(RECENT_RELATIONSHIPS_PREF_STR, new_strs);\n fillCommonRelationshipsMenu();\n }",
"public static void updateDatabase(){\n\t\ttry {\n\t\t\tPrintWriter pwFLU = new PrintWriter(filePath);\n\t\t\tfor(Entry<String, Pair<FileID, Integer>> entry : Peer.fileList.entrySet()){\n\t\t\t\tString path = entry.getKey();\n\t\t\t\tPair<FileID, Integer> pair = entry.getValue();\n\t\t\t\tpwFLU.println(path + \"|\" + pair.getFirst().toString() + \"|\" + pair.getSecond());\n\t\t\t}\n\t\t\tpwFLU.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\t * UPDATE THE CHUNKS\n\t\t */\n\t\ttry {\n\t\t\tPrintWriter pwCLU = new PrintWriter(chunkPath);\n\t\t\tfor(ChunkInfo ci : Peer.chunks){\n\t\t\t\tpwCLU.println(ci.getFileId() + \"|\" + ci.getChunkNo() + \"|\" + ci.getDesiredRD() + \"|\" + ci.getActualRD());\n\t\t\t}\n\t\t\tpwCLU.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void update(String page, Collection<String> paths, Collection<String> refreshPaths);",
"private void updateMhoLocationList() {\n\n\t\t//clear all the mhos in mhoLocations\n\t\tmhoLocations.clear();\n\n\t\t//add the locations of all the mhos in mhoLocations\n\t\tfor (int i = 1; i < 11; i++)\n\t\t\tfor (int j = 1; j < 11; j++) \n\t\t\t\tif(newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmhoLocations.add(i);\n\t\t\t\t\tmhoLocations.add(j);\n\t\t\t\t}\n\t}",
"public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }",
"void updatePathListings() {\n\t\tpathSelector.updatePathListings();\n\t}",
"public void rescanBGPTable() {\n if (this.isWardenAS() && this.poisonMode != AS.ReversePoisonMode.NONE) {\n if (!this.locRib.containsKey(this.asn * -1)) {\n this.advPath(new BGPPath(this.getASN() * -1));\n } else {\n this.dirtyDest.add(this.getASN() * -1);\n }\n }\n\n for (int tDest : this.locRib.keys()) {\n this.recalcBestPath(tDest);\n }\n\n /*\n * If we're a warden and we're in a mode where we're playing around with\n * MPLS games clear out the MPLS table for this round\n */\n if (this.isWardenAS() && this.avoidMode == AS.AvoidMode.LEGACY) {\n this.mplsRoutes.clear();\n }\n }",
"private void updateHighLevelInfo() {\n\t\t// update activities mapping at high level petri net\n\t\tfor (HLActivity activity : process.getActivities()) {\n\t\t\t// update the choice node itself\n\t\t\tTransition transNode = (Transition) highLevelPN.findModelGraphVertexForActivity(activity.getID());\n\t\t\tColoredTransition transNsim = (ColoredTransition) this.findTransition(transNode);\n\t\t\thighLevelPN.replaceModelGraphVertexForActivity(transNode, transNsim);\n\t\t}\n\t\t// update choices mapping at high level petri net\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\t// update the choice node itself\n\t\t\tPlace choiceNode = (Place) highLevelPN.findModelGraphVertexForChoice(choice.getID());\n\t\t\tColoredPlace choiceNsim = (ColoredPlace) this.findPlace(choiceNode.getIdentifier());\n\t\t\thighLevelPN.replaceModelGraphVertexForChoice(choiceNode, choiceNsim);\n\t\t}\n\t\t// update the hlActivity links at the ColoredTransition\n\t\tIterator it = this.getTransitions().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tColoredTransition simTrans = (ColoredTransition) it.next();\n\t\t\tHLActivity hlTrans = highLevelPN.findActivity(simTrans);\n\t\t\tsimTrans.setHighLevelTransition(hlTrans);\n\t\t}\n\t\t\n\t\t// Add the group for all resources to each transition and to the process\n\t\t// the group for all resources may only be attached to a transition in the case\n\t\t// that no group has been defined for that transition\n\t\tArrayList<HLID> allResourceIDs = new ArrayList<HLID>();\n\t\tIterator<HLResource> resourceIt = process.getResources().iterator();\n\t\twhile (resourceIt.hasNext()) {\n\t\t\tallResourceIDs.add(resourceIt.next().getID());\n\t\t}\n\t}",
"private void updateTargetProductGeocoding() {\n }",
"private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}",
"private void reverseLookupAD_Org_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverese Look up AD_Org ID From JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"AD_Org_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Org_Value\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET AD_Org_ID=(SELECT AD_Org_ID FROM AD_org p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value=p.Value AND (p.AD_Client_ID=i.AD_Client_ID or p.AD_Client_ID=0) ) \")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t\t//Invalid JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Invalid\")+Msg.getElement(getCtx(), \"JP_Org_Value\");\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP \")\r\n\t\t\t.append(\"SET I_ErrorMsg='\"+ msg + \"'\")\r\n\t\t\t.append(\" WHERE AD_Org_ID = 0 AND JP_Org_Value IS NOT NULL AND JP_Org_Value <> '0' \")\r\n\t\t\t.append(\" AND I_IsImported<>'Y'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg +\" : \" + sql );\r\n\t\t}\r\n\r\n\t\tif(no > 0)\r\n\t\t{\r\n\t\t\tcommitEx();\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg );\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void update(Promocion prm) {\n promocionRepository.update(prm);\n }",
"public void updateDetail(String proid) {\n\t\tsqlSession.update(\"product.updateDetail\", proid);\n\t}",
"public void update(){\r\n\t\tthis.loadRecords();\r\n\t}",
"public void updateLocations() throws IOException {\n Path path = new Path(getPath());\n FileSystem fs = path.getFileSystem(FileFactory.getConfiguration());\n RemoteIterator<LocatedFileStatus> iter = fs.listLocatedStatus(path);\n LocatedFileStatus fileStatus = iter.next();\n location = fileStatus.getBlockLocations()[0].getHosts();\n length = fileStatus.getLen();\n }",
"private void initProperties(URL url) {\n if(null == url) {\n LOGGER.error(\"Can Load empty path.\");\n return;\n }\n\n Properties invProperties = getProperties(url);\n if(null == invProperties || invProperties.isEmpty()) {\n LOGGER.error(\"Load invsvr.properties failed !\");\n return;\n }\n\n INVTABLEPREFIX = invProperties.getProperty(\"tableprefix\");\n EXTENSIONTABLEPOSTFIX = invProperties.getProperty(\"exttablepostfix\");\n RELATIONTABLEPOSTFIX = invProperties.getProperty(\"relationtablepostfix\");\n CHANGESETAUTHOR = invProperties.getProperty(\"changesetauthor\");\n DEFAULTSCHEMA = invProperties.getProperty(\"defaultschema\");\n BASICTABLEFIXEDCOLIMN = invProperties.getProperty(\"basictablefixedcolumn\").split(\"/\");\n EXRENSIONTABLECOLUMN = invProperties.getProperty(\"exttablecolumn\").split(\"/\");\n EXTENDINDEXS = invProperties.getProperty(\"exttableindex\").split(\"/\");\n RELATIONTABLECOLUMN = invProperties.getProperty(\"relationtablecolumn\").split(\"/\");\n RELATIONINDEXS = invProperties.getProperty(\"relationtableindex\").split(\"/\");\n\n INFOMODELPREFIX = invProperties.getProperty(\"infomodelprefix\");\n DATAMODELPREFIX = invProperties.getProperty(\"datamodelprefix\");\n RELAMODELPREFIX = invProperties.getProperty(\"relamodelprefix\");\n RELATIONTYPEVALUES = getRelationTypeValues(invProperties.getProperty(\"relationtypevalue\"));\n }",
"public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}",
"public static void updatePOFiles(){\n\t\tfor(TableInfo tableInfo: tables.values()){\n\t\t\tJavaFileUtils.createJavaPOFile(tableInfo,new MySQLTypeConvertor());\n\t\t}\n\t}",
"public static Map<String, String> getPromLookupDetails(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria promLookCriteria = session.createCriteria(PromLookupEntity.class, \"promLook\");\n\t\tpromLookCriteria.createCriteria(\"promLook.component\", \"comp\");\n\t\tpromLookCriteria.add(Restrictions.eq(\"comp.platform\", platform));\n\t\tpromLookCriteria.add(Restrictions.eq(\"promLook.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<PromLookupEntity> promLookEntityList = promLookCriteria.list();\n\t\tMap<String, String> mapPromLook = new HashMap<String, String>();\n\t\tfor(PromLookupEntity promLookEntity : promLookEntityList){\n\t\t\tif(promLookEntity.getComponent() != null){\n\t\t\t\tif(platform.equals(SurveillerConstants.K8S_PLATFORM)){\n\t\t\t\t\tmapPromLook.put(promLookEntity.getComponent().getComponentName()+\"/\"+promLookEntity.getHttpPath(), promLookEntity.getHttpPath());\n\t\t \t}else{\n\t\t \t\tmapPromLook.put(promLookEntity.getComponent().getParentComponent().getComponentName()+\"/\"+promLookEntity.getComponent().getComponentName(), promLookEntity.getHttpPath());\n\t\t \t}\t\t \n\t\t\t}\n\t }\n\t\ttxn.commit();\n\t\treturn mapPromLook;\n\t}",
"public void updatePlatformMap() {\n\n logger.info(\"Updating platform maps\");\n\n PreparedStatement ps = db.prepareStatement(connId, SELECT_QUERY);\n ResultSet rs = null;\n\n try {\n rs = ps.executeQuery();\n\n while (rs != null && rs.next()) {\n Platform platform = populatePlatform(rs);\n\n if (platform.getToTime() == null)\n platformUpdateMap.put(platform.getStaticId(), platform);\n\n int pId = platform.getId();\n synchronized (platform1stQueryMap) {\n if (platform1stQueryMap.get(pId) == null)\n platform1stQueryMap.put(pId, platform);\n }\n\n if (platform.getToTime() == null) {\n Integer contribId = Integer.valueOf(platform.getContribId());\n synchronized (platform2ndQueryMap) {\n HashMap<String, TimeVariantMetadata> map = platform2ndQueryMap.get(contribId);\n if (map == null)\n map = new HashMap<>();\n\n map.put(platform.getPlatformCode(), platform);\n platform2ndQueryMap.put(contribId, map);\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n } finally {\n try {\n rs.close();\n rs = null;\n ps.close();\n ps = null;\n } catch (SQLException se) {\n // ignore\n }\n }\n\n logger.info(\"Finished updating platform maps\");\n }",
"private void updateRoutingTable(){\n\tint[] current = new int[RouterSimulator.NUM_NODES];\n\tArrays.fill(current, RouterSimulator.INFINITY);\n\t\n\t//iterate through neighbours distance tables\n\t\n\tfor(int i=0;i<myNeighboursDistTable[myID].length;i++){\n\t //if shortest path goes through current node\n\t if(i==myID){\n\t\tcurrent[i] = myDistTable[i];\n\t\troute[i] = i;\n\t\tcontinue;\n\t }\n\t //iterate through neighbours\n\t for(int j = 0; j < neighbours.length; j++){\n\t\t//if a neighbour exist\n\t\tif(neighbours[j]){\n\t\t int cost = costs[j] + myNeighboursDistTable[j][i];\n\t\t //if shorter path found\n\t\t if(cost < current[i]){\n\t\t\tcurrent[i] = cost;\n\t\t\troute[i] = j;\n \t\t }\n\t\t}\n\t\t\n\t }\n\t}\n\t//if better path found, send new routingtable to neighbours\n\tif(!Arrays.equals(current, myDistTable)){\n\t System.arraycopy(current, 0, myDistTable, 0, RouterSimulator.NUM_NODES);\n\t send();\n\t}\n }",
"private RendezVousPropagateMessage updatePropHeader(RendezVousPropagateMessage propHdr, int maxTTL) {\r\n int msgTTL = propHdr.getTTL();\r\n URI me = group.getPeerID().toURI();\r\n int useTTL = msgTTL;\r\n if (!propHdr.isVisited(me)) {\r\n // only reduce TTL if message has not previously visited us.\r\n useTTL--;\r\n }\r\n // ensure TTL does not exceed maxTTL\r\n useTTL = Math.min(useTTL, maxTTL);\r\n propHdr.setTTL(useTTL);\r\n // Add this peer to the path.\r\n propHdr.addVisited(me);\r\n // If message came in with TTL one or less, it was last trip. It can not go any further.\r\n return (useTTL <= 0) ? null : propHdr;\r\n }",
"private void processUrls(){\n // Strip quoted tweet URL\n if(quotedTweetId > 0){\n if(entities.urls.size() > 0 &&\n entities.urls.get(entities.urls.size() - 1)\n .expandedUrl.endsWith(\"/status/\" + String.valueOf(quotedTweetId))){\n // Match! Remove that bastard.\n entities.urls.remove(entities.urls.size() - 1);\n }\n }\n\n // Replace minified URLs\n for(Entities.UrlEntity entity : entities.urls){\n // Find the starting index for this URL\n entity.indexStart = text.indexOf(entity.minifiedUrl);\n // Replace text\n text = text.replace(entity.minifiedUrl, entity.displayUrl);\n // Find the last index for this URL\n entity.indexEnd = entity.indexStart + entity.displayUrl.length();\n }\n }",
"public static void updateChildren(String path, Map<String, Object> map,\n final Callback<Boolean> gc) {\n DatabaseReference ref = getBase();\n\n if (!path.equals(Paths.SL)) {\n ref = ref.child(path);\n }\n\n ref.updateChildren(map, new CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n if (databaseError == null) {\n gc.onComplete(true);\n } else {\n gc.onError(databaseError.getCode(), databaseError.getMessage());\n }\n }\n });\n }",
"protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"void updateLinks() {\n\t\tdouble x1, x2, y1, y2;\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tPNode node1 = links.get(i).getNode1();\n\t\t\tPNode node2 = links.get(i).getNode2();\n\t\t\tx1 = node1.getFullBoundsReference().getCenter2D().getX() + node1.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty1 = node1.getFullBoundsReference().getCenter2D().getY() + node1.getParent().getFullBounds().getOrigin().getY();\n\t\t\tx2 = node2.getFullBoundsReference().getCenter2D().getX() + node2.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty2 = node2.getFullBoundsReference().getCenter2D().getY() + node2.getParent().getFullBounds().getOrigin().getY();\n\t\t\t\n\t\t\t/*\n\t\t\tLine2D line = new Line2D.Double(x1,y1,x2,y2);\n\t\t\tlinks.get(i).getPPath().setPathTo(line);\n */\n\t\t\tsetPolyLine(links.get(i).getPPath(), (float)x1, (float)y1, (float)x2, (float)y2);\n\t\t\t}\n\t\t}",
"private void processPrdDetails(String url,boolean firstTime )\n {\n ResponseEntity<?> responseEntity = processRequest(url, HttpMethod.GET, getRepoPrTypRef());\n List<GitRepoDetails> prlist = (List<GitRepoDetails>) responseEntity.getBody();\n String relLink=getRelLink(responseEntity.getHeaders(),firstTime);\n if(firstTime && !\"Not Found\".equalsIgnoreCase(relLink))\n { responseCount +=calulatedCount;}\n else\n {responseCount +=prlist.size();}\n firstTime=false;\n if(!\"Not Found\".equalsIgnoreCase(relLink)){\n processPrdDetails(relLink,firstTime);\n }\n }",
"void requestMapChange(String path);",
"public NewReferenceValueStrategy replaceWithFullUrl() {\n return update -> linkProperties.r4().readUrl(update.resourceType(), update.newResourceId());\n }",
"private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }",
"public synchronized void update() {\n // set lastCheck first to reduce risk of recursive calls\n this.lastCheck = System.currentTimeMillis();\n if (getChecksum() != this.lastChecksum) {\n // First collect properties into a temporary collection,\n // in a second step copy over new properties,\n // and in the final step delete properties which have gone.\n ResourceProperties temp = new ResourceProperties();\n temp.setIgnoreCase(this.ignoreCase);\n\n // first of all, properties are load from default properties\n if (this.defaultProperties != null) {\n this.defaultProperties.update();\n temp.putAll(this.defaultProperties);\n }\n\n // next we try to load properties from the application's\n // repositories, if we belong to any application\n if (this.resourceName != null) {\n Iterator iterator = this.app.getRepositories().iterator();\n while (iterator.hasNext()) {\n try {\n RepositoryInterface repository = (RepositoryInterface) iterator.next();\n ResourceInterface res = repository.getResource(this.resourceName);\n if (res != null && res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // if these are subproperties, reload them from the parent properties\n if (this.parentProperties != null && this.prefix != null) {\n this.parentProperties.update();\n Iterator it = this.parentProperties.entrySet().iterator();\n int prefixLength = this.prefix.length();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String key = entry.getKey().toString();\n if (key.regionMatches(this.ignoreCase, 0, this.prefix, 0, prefixLength)) {\n temp.put(key.substring(prefixLength), entry.getValue());\n }\n }\n\n }\n\n // at last we try to load properties from the resource list\n if (this.resources != null) {\n Iterator iterator = this.resources.iterator();\n while (iterator.hasNext()) {\n try {\n ResourceInterface res = (ResourceInterface) iterator.next();\n if (res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // Copy over new properties ...\n putAll(temp);\n // ... and remove properties which have been removed.\n Iterator it = super.keySet().iterator();\n while (it.hasNext()) {\n if (!temp.containsKey(it.next())) {\n it.remove();\n }\n }\n // copy new up-to-date keyMap to ourself\n this.keyMap = temp.keyMap;\n\n this.lastChecksum = getChecksum();\n this.lastCheck = this.lastModified = System.currentTimeMillis();\n }\n }",
"private void updateMatches(){\n getContext().getContentResolver().delete(MatchesContract.BASE_CONTENT_URI, null, null);\n\n // Fetch new data\n new FetchScoreTask(getContext()).execute();\n }",
"public void hyperlinkUpdate(HyperlinkEvent event) {\r\n\t\t// TODO add open link in default browser\r\n\t\tif (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n\t\t\ttry {\r\n\t\t\t\th.setPage(event.getURL());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tioe.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void refresh()\n {\n PropertyManager.getInstance().refresh();\n init(this.path);\n }",
"private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}",
"String resolvePath(String root_url, Enumeration path)\n {\n if (! root_url.endsWith(URL_PATH_SEPARATOR))\n root_url = root_url+URL_PATH_SEPARATOR;\n\n StringBuffer sb = new StringBuffer();\n while (path.hasMoreElements())\n {\n sb.append(path.nextElement());\n sb.append(URL_PATH_SEPARATOR);\n }\n String p = sb.toString();\n if (p.startsWith(URL_PATH_SEPARATOR))\n p = p.substring(1);\n\n return root_url + p;\n }",
"public void sync(){\n\t\tDHTNode myNode = dynamoRing.getNode(MY_ADDRESS);\n\t\tArrayList<DHTNode> dependentNodes = dynamoRing.getNPredecessors(myNode, REPLICATION_COUNT-1);\n\t\tdependentNodes.add(myNode);\n\t\tSparseArray<String> dependentNodeMap = new SparseArray<String>();\n\t\tHashMap<String, KeyVal> resultMap = new HashMap<String, KeyVal>();\n\t\tfor(int i=0;i<dependentNodes.size();i++)\t// Ideally it should contact only N-1 successors and N-1 predecessors\n\t\t\t\t\t\t\t\t\t\t\t\t\t// but for total node count = 5 and replica count = 2, this\n\t\t\t\t\t\t\t\t\t\t\t\t\t// number spans through all the nodes\n\t\t\tdependentNodeMap.put(dependentNodes.get(i).getAddress(), dependentNodes.get(i).getId());\n\t\t\n\t\tArrayList<DHTNode> nodeList = dynamoRing.getAllNodes();\n\t\tfor(int i=0;i<nodeList.size();i++){\n\t\t\tif(nodeList.get(i)==myNode)\n\t\t\t\tcontinue;\n\t\t\tArrayList<KeyVal> keyValList = readDHTAllFromNode(nodeList.get(i));\n\t\t\tfor(int j=0;j<keyValList.size();j++){\n\t\t\t\tKeyVal keyVal = keyValList.get(j);\n\t\t\t\tint responsibleNodeAddress = dynamoRing.getResponsibleNode(keyVal.getKey()).getAddress();\n\t\t\t\tif(dependentNodeMap.get(responsibleNodeAddress)==null)\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tif(resultMap.get(keyVal.getKey())==null){\n\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tint oldVersion = Integer.parseInt(resultMap.get(keyVal.getKey()).getVersion());\n\t\t\t\t\t\tint newVersion = Integer.parseInt(keyVal.getVersion());\n\t\t\t\t\t\tif(newVersion > oldVersion)\n\t\t\t\t\t\t\tresultMap.put(keyVal.getKey(), keyVal);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tIterator<Entry<String, KeyVal>> resultIterator = resultMap.entrySet().iterator();\n\t\twhile(resultIterator.hasNext()){\n\t\t\tEntry<String, KeyVal> nextEntry = resultIterator.next();\n\t\t\tKeyVal keyVal = nextEntry.getValue();\n\t\t\twriteLocalKeyVal(keyVal.getKey(), keyVal.getVal(), keyVal.getVersion());\n\t\t}\n\t\t\n\t}",
"public void advPath(BGPPath incPath) {\n this.incUpdateQueue.add(new BGPUpdate(incPath));\n }",
"@Override\n\tpublic String addNewValueToGlobalURLList(String longUrl){\n\t\t\n\t\tString shortUrl = shortenUrl(longUrl);\n\t\tString SQL = \"insert into GlobalUrlDB (shortUrl, longUrl, visitCount) values (?, ?, ?)\";\n\t\tObject[] params = new Object[] { shortUrl, longUrl, 0 };\n\t\ttry{\n\t\t\tjdbcTemplateObject.update( SQL, params);\n\t\t\treturn shortUrl;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Exception occured while user tried to shorten URL\");\n\t\t\t/*Put Stack trace into logger file*/\n\t\t\tSystem.out.println(e);\n\t\t\treturn null;\n\t\t}\n\t}",
"public void refreshBrowserLocation() {\n initBrowserLocationSection();\n }",
"protected void refreshHome()\r\n/* 48: */ throws NamingException\r\n/* 49: */ {\r\n/* 50:121 */ synchronized (this.homeMonitor)\r\n/* 51: */ {\r\n/* 52:122 */ Object home = lookup();\r\n/* 53:123 */ if (this.cacheHome)\r\n/* 54: */ {\r\n/* 55:124 */ this.cachedHome = home;\r\n/* 56:125 */ this.createMethod = getCreateMethod(home);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }",
"private int update(surfstore.SurfStoreBasic.FileInfo request, String method) {\n int updated = 0;\n for (int i = 0; i < metadataStubList.size(); i++) {\n MetadataStoreGrpc.MetadataStoreBlockingStub metaStub = metadataStubList.get(i);\n metaStub.ping(Empty.newBuilder().build());\n // 1st phase\n\t\t\tif (metaStub.updateLog(LogInfo.newBuilder().setLog(method).setFilename(request.getFilename()).build()).getAnswer() == false) { // not crashed\n\t\t\t\t// 2nd phase\n\t\t\t\tif (metaStub.updateFollower(request).getResult() == WriteResult.Result.OK) {\n\t\t\t\t\tfollowerMapList.get(i).put(request.getFilename(), request.getVersion());\n\t\t\t\t\tupdated++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"heartbeat update follower numbers \" + Integer.toString(updated));\n\t\treturn updated;\n\t}",
"public void saveURL(URLValue url)\n\t{\n\t\tthis.accessor.getPrimaryIndex().put(new URLEntity(url.getKey(), url.getURL(), url.getUpdatingPeriod()));\n\t}",
"@Override\n\tpublic void refreshAvailableProcedures()\n\t{\n\t\tm_models.obtainAvailableProcedures(true);\n\t}",
"public void setURL(String aURL)\n{\n if(RMUtils.equals(aURL, getURL())) return; // If value already set, just return\n Object oldValue = put(\"RMShapeURL\", RMStringUtils.min(aURL)); // Cache old value\n firePropertyChange(\"RMShapeURL\", oldValue, aURL, -1); // Set new value and fire PropertyChange\n}",
"public void loadPRIConfiguration()\r\n\t{\r\n\t\tString httpId = (String) globalConfigurationService.getProperty(\"sapproductrecommendation_httpdest\");\t\t\r\n\t\tthis.setHttpDestinationId(httpId);\r\n\t\tloadHTTPDestination();\r\n\t}",
"public static void refreshDomain()\n\t{\n\t API_APP_INFO = \"https://\"+DOMAIN+\"/api/a/iGET/app/oinfo?app_key=\";\n\t API_LOG_DEVICE_INFO = \"https://\"+DOMAIN+\"/api/a/POST/mobile/LogInstall?type=0\";\n\t API_GCM_REGISTER = \"https://\"+DOMAIN+\"/api/a/POST/Push/RegisterDevice\";\n\t API_EXCHANGE_TOKEN = \"https://\"+DOMAIN+\"/api/a/GET/me/exchangetoken?\";\n\t}",
"private NameValue<String, String> removeURL(Map<String, List<ReplicaCatalogEntry>> m) {\n if (m == null || m.keySet().isEmpty()) {\n return null;\n }\n\n // Return the first url from the EntrySet\n Iterator it = m.entrySet().iterator();\n Map.Entry<String, List<ReplicaCatalogEntry>> entry = (Map.Entry) it.next();\n // remove this entry\n it.remove();\n // returning the first element. No need for a check as\n // population of the list is controlled\n return new NameValue(entry.getKey(), entry.getValue().get(0).getPFN());\n }",
"private void updateQueue(String url)\r\n\t{\r\n\t\tQueue temp = new Queue(SIZE);\r\n\t\tObject temp2 = ' ';\r\n\t\tObject target = ' ';\r\n\t\t\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\ttemp2 = rChronological.dequeue();\r\n\t\t\tif (!url.equals(temp2))\r\n\t\t\t\ttemp.enqueue(temp2);\r\n\t\t\telse\r\n\t\t\t\ttarget = temp2;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < siteVisited - 1; i++)\r\n\t\t\trChronological.enqueue(temp.dequeue());\r\n\t\trChronological.enqueue(target);\r\n\t}",
"public void setLookup(org.openejb.config.sys.Lookup lookup) {\n this._lookup = lookup;\n }",
"public void processUrl() {\n try {\n\n JsonNode rootNode = getJsonRootNode(getJsonFromURL()); // todo: pass url in this method (to support multi-urls)\n getValuesFromJsonNodes(rootNode);\n setAndFormatValues();\n\n } catch (Exception e) {\n System.out.println(\"ERROR: caught error in processUrl()\");\n e.printStackTrace();\n }\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"private Route lookupRoute(Prefix pfx) {\n\t\tRoute match = null;\n\t\tif (pfxList.contains(pfx)){\n\t\t\tint index = pfxList.indexOf(pfx);\n\t\t\tmatch = rteTbl.get(index);\n\t\t}\n\t\treturn match;\n\t}",
"private void updateLruWithNewNode(PageId pid, Page retrievedPage) {\n Node node = new Node(pid, retrievedPage);\n changeHead(node);\n bufferedPages.put(pid, node);\n }",
"public void updateMbsProFile(File driveFile, DocumentFile mbsProFile) throws IOException\n {\n mDrive.downloadFile(driveFile.getId(), mContext.getContentResolver().openOutputStream(mbsProFile.getUri()));\n }",
"@Override\r\n public void resolve() {\r\n ste1.pointsTo.forEach(\r\n pO -> {\r\n pO.updateHeap(id2, ste3.pointsTo);\r\n }\r\n );\r\n this.resolveThis(id1, ste1);\r\n // System.out.print(\"After store: \");\r\n // ste1.print();\r\n // System.out.print(\"Nfter store: \");\r\n // ste3.print();\r\n }",
"public synchronized void updateHosts() throws Exception {\r\n getHelper().update();\r\n }",
"void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }",
"void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }",
"public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}",
"public static void updateOWL(String pSPARQLPath, String pServerURL) {\n\t\tSystem.out.println(\"Methode Update\");\n\t\tString stringBuilder = readFile(pSPARQLPath);\n\t\ttry {\n\t\t\tUpdateProcessor updateProcessor = UpdateExecutionFactory\n\t\t\t.createRemote(UpdateFactory.create(String.format(\n\t\t\t\t\tstringBuilder)),\n\t\t\t\t\tpServerURL\n\t\t\t\t\t);\n\t\t\tupdateProcessor.execute();\n\t\t\tSystem.out.println(\"OWL updated\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Map lookup(Set lfns, String handle) {\n //Map indexed by lrc url and each value a collection\n //of lfns that the RLI says are present in it.\n Map lrc2lfn = this.getLRC2LFNS(lfns);\n if(lrc2lfn == null){\n //probably RLI is not connected!!\n return null;\n }\n\n // now query the LRCs with the LFNs they are responsible for\n // and aggregate stuff.\n String key = null,message = null;\n Map result = new HashMap(lfns.size());\n for(Iterator it = lrc2lfn.entrySet().iterator();it.hasNext();){\n Map.Entry entry = (Map.Entry)it.next();\n key = (String)entry.getKey();\n message = \"Querying LRC \" + key;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,key);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + key,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n\n //query the lrc\n try{\n Map m = lrc.lookup((Set)entry.getValue(),handle);\n for(Iterator mit = m.entrySet().iterator();mit.hasNext();){\n entry = (Map.Entry)mit.next();\n //merge the entries into the main result\n key = (String)entry.getKey(); //the lfn\n if(result.containsKey(key)){\n //right now no merging of RCE being done on basis\n //on them having same pfns. duplicate might occur.\n ((Set)result.get(key)).addAll((Set)entry.getValue());\n }\n else{\n result.put(key,entry.getValue());\n }\n }\n }\n catch(Exception ex){\n mLogger.log(\"lookup(Set,String)\",ex,\n LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n //disconnect\n lrc.close();\n }\n\n\n mLogger.log(message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n return result;\n\n\n }",
"public static void deletePromLookup(int envId, int compId, String lookupVaule) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.DB_QUERY_DELETE_PROM_LOOKUP);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"envId\", envId);\n\t\tquery.setString(\"lookupVaule\", lookupVaule);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }",
"public void update_routing_window() {\n Log2(\"update_routing_window\\n\");\n Iterator<RouteEntry> iter= null;\n if (main_rtab!=null) {\n iter= main_rtab.iterator();\n }\n\n // update window\n for (int i= 0; i<tableObj.getRowCount(); i++) {\n if ((main_rtab != null) && iter.hasNext()) {\n RouteEntry next= iter.next();\n tableObj.setValueAt(\"\"+next.dest,i,0);\n tableObj.setValueAt(\"\"+next.next_hop,i,1);\n tableObj.setValueAt(\"\"+next.next_hop_area,i,2);\n tableObj.setValueAt(\"\"+next.dist,i,3);\n } else {\n tableObj.setValueAt(\"\",i,0);\n tableObj.setValueAt(\"\",i,1);\n tableObj.setValueAt(\"\",i,2);\n tableObj.setValueAt(\"\",i,3);\n }\n }\n }",
"private void updateToFile(PQNode node) throws Exception{\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n int replaceIndex = node.getPqIndex()-bufStart;\n\n nodes.set(replaceIndex,node);\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n storeToFile(file,nodes, false);\n }",
"public void updateDatabaseRefBackwards() {\n // we want to do this twice, since we go from children attribute to folder\n // and then folder to actual parent dir\n myRef = myRef.getParent().getParent();\n }",
"private void updateProtoParser() throws ExternalCallException {\n UpdateBQTableRequest request = new UpdateBQTableRequest(appConfig.getGCPProject(), proto, appConfig.getTable(), appConfig.getDataset());\n String protoMapping = updateTableService.getProtoMappingFromRemoteURL(protoMappingConfig.getProtoColumnMappingURL(), proto);\n updateTableService.updateBigQuerySchema(protoMappingConfig.getUpdateBQTableURL(), request);\n protoMappingConfig.setProperty(\"PROTO_COLUMN_MAPPING\", protoMapping);\n setProtoParser(protoMappingConfig.getProtoColumnMapping());\n }",
"public void map()\n\t{\n\t // key is the documentId\n\t\t// value is the url\n\t\t//fetch the document using the documentId\n\t\t\n\t}",
"private void updateOntChanges() {\r\n\t\ttry {\r\n\t\t\tString status = \"Status: [ACTION - Update Local Ontology]...\";\r\n\t\t\tstatusBar.setText(status);\r\n\t\t\tif (existingOntRadio.isSelected()) {\r\n\t\t\t\tOWLOntology ont = (OWLOntology) ontBox.getSelectedItem();\r\n\t\t\t\tList changes = swoopModel.getChangesCache().getChangeList(ont.getURI());\r\n\t\t\t\tfor (int i=0; i<changes.size(); i++) {\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) changes.get(i);\r\n\t\t\t\t\tif (!isPresent(ontChanges, swc)) ontChanges.add(swc.clone());\r\n\t\t\t\t}\r\n\t\t\t\tthis.sortChanges(ontChanges);\r\n\t\t\t\tthis.refreshOntTreeTable(); \r\n\t\t\t}\r\n\t\t\tstatusBar.setText(status+\"DONE\");\r\n\t\t}\r\n\t\tcatch (OWLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"public void update() {\n manager.update();\n }",
"@Override\n public void update(String key) {\n lName = key;\n if (nTable != null)\n value = nTable.getNumber(key, 0);\n }",
"public Map<String, URLValue> loadAllURLs()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tMap<String, URLValue> urls = new HashMap<String, URLValue>();\n\t\tURLValue url;\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turl = new URLValue(entity.getKey(), entity.getURL(), entity.getUpdatingPeriod());\n\t\t\turls.put(url.getKey(), url);\n\t\t}\n\t\tresults.close();\n\t\treturn urls;\n\t}",
"public void init_lookup(){\n for(int i =0 ; i< MAX ; i++){\n lookup[i] =0;\n }\n }",
"private void updateProperties(){\n loadProperties();\n GameModel gameModel = GameModel.getInstance();\n int level = gameModel.getCurrentLevelIndex();\n //int health = gameModel.getPlayer().getLives();\n //int ammo = gameModel.getPlayer().getAmmunition();\n int highestReachedLevel = getHighestLevelFromProperties();\n\n //checks if player has reached a higher level than before\n if (level>=highestReachedLevel){\n properties.setProperty(\"highestReachedLevel\", Integer.toString(level));\n gameModel.setHighestCompletedLevel(level); //gives model the new highest completed level\n } else {\n properties.setProperty(\"highestReachedLevel\", Integer.toString(highestReachedLevel));\n gameModel.setHighestCompletedLevel(highestReachedLevel);\n }\n\n System.out.println(\"Saved Highest reached levl: \"+properties.getProperty(\"highestReachedLevel\"));\n\n properties.setProperty(\"level\", Integer.toString(level));\n //properties.setProperty(\"health\", Integer.toString(health));\n //properties.setProperty(\"ammo\", Integer.toString(ammo));\n }",
"public String[] rehashQuadraticProbing(String[] oldHashTable){\n String tempArr[] = Arrays.copyOf(oldHashTable, oldHashTable.length);\n oldHashTable = new String[findNextPrime(2*tempArr.length)];\n System.out.println(\"Increasing the table size to \" +oldHashTable.length);\n for(String tempStr: tempArr){\n if(tempStr!=null){\n insertQuadraticProbing(tempStr);\n }\n }\n return oldHashTable;\n }",
"void fetchingInfo(String remotePath);",
"private void loadURL() throws IOException{\n\t\tLOGGER.debug(\"BEGIN\");\n\t\t\t\t\t\n\t\ttry {\n\t\t\tinitCassandra();\n\t\t\tInitialContext initCtx = new InitialContext();\n\t\t\tString location = (String) initCtx.lookup(PropertiesConstants.PROPERTY_URL_JNDI);\n\t\t\tfileInputStream = new FileInputStream(new File(location));\n\t\t\t\n\t\t\tloadPropertyFile(fileInputStream);\n\t\t\t\n\t\t\tLOGGER.debug(\"Loading Property File\" + location);\n\t\t}catch (Exception e) {\n\t\t\tLOGGER.debug(\"No JNDI Settings found. \" + e);\t\t\t\n\t\t}\n\t\tsetLogLevel(getInt(PropertiesConstants.LOG_LEVEL));\n\t\tLOGGER.debug(\"END\");\n\t}",
"@Override\n protected void onProgressUpdate(String... values) {\n wordMatches.getMatches().add(values[0]);\n //only update the UI for the first page or so of results\n if (wordMatches.getMatches().size()<=TABLE_MAX_COUNT_TO_RELOAD)\n {\n matchObservable.setValue(values[0]);\n }\n }",
"public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }",
"DefinedProperty relChangeProperty( long relId, int propertyKey, Object value );",
"private void checkForUpdates() {\n File dbFile = new File(peopleDBPath + \"people.protostuff\");\n try {\n BasicFileAttributes readAttributes = Files.readAttributes(dbFile.toPath(), BasicFileAttributes.class);\n if (lastModifiedDate.getTime() < readAttributes.lastModifiedTime().toMillis()) {\n // db = MAPPER.readValue(dbFile, PeopleDB.class);\n db = daoProtostuff.load(dbFile.getAbsolutePath(), PeopleDB.class);\n System.out.println(\"DB loaded\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private synchronized void refreshProductModel(String pm_id)\r\n {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n for (int i=0; i < products_listmodel.size(); i++) {\r\n ProductModel pm = (ProductModel) products_listmodel.get(i);\r\n if (pm.getId().equals(pm_id)) {\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm_id, false);\r\n products_listmodel.set(i, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n break;\r\n }\r\n }\r\n }",
"void reapplyBreakpoints()\n\t{\n\t\t// give us a bit of time to process the newly loaded swf\n\t\tif (propertyGet(METADATA_ATTEMPTS) > 0)\n\t\t\ttry { waitForMetaData(80); } catch(InProgressException ipe) { }\n\n\t\tint count = breakpointCount();\n\t\tfor(int i=0; i<count; i++)\n\t\t{\n\t\t\tBreakAction a = breakpointAt(i);\n\t\t\ta.clearHits();\n\t\t\ta.setStatus(BreakAction.UNRESOLVED);\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tresolveBreakpoints(sb);\n\t\tout(sb.toString());\n\t}",
"public void checkAndUpdateIPAddresses() {\n\n List<IPAddresses> ipAddressesFromDB = ipAddressRepository.findAll();\n String ipAddressesFromPropertyFile = environment.getProperty(\"ipAddresses\");\n LinkedList<String> ipAddList = new LinkedList<String>(Arrays.asList(ipAddressesFromPropertyFile.split(\",\")));\n\n List<String> dbIPAddresses = new ArrayList<String>();\n\n ipAddressesFromDB.forEach(ipAddressObj -> {\n dbIPAddresses.add(ipAddressObj.getIpaddress());\n });\n\n CMADLogger.logInfo(this.getClass().getName(), \"dbIPAddresses \" + dbIPAddresses);\n CMADLogger.logInfo(this.getClass().getName(), \"ipAddList \" + ipAddList);\n\n ipAddList.removeAll(dbIPAddresses);\n\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddresses to Save is: \" + ipAddList);\n\n List<IPAddresses> ipAddressesToSave = new ArrayList<IPAddresses>();\n\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddress will update to db are:\");\n\n ipAddList.forEach(ipAddress -> {\n IPAddresses ipAddressObject = new IPAddresses();\n CMADLogger.logInfo(this.getClass().getName(), ipAddress.trim());\n ipAddressObject.setIpaddress(ipAddress.trim());\n ipAddressesToSave.add(ipAddressObject);\n });\n CMADLogger.logInfo(this.getClass().getName(), \"IPAddress update to db done.\");\n\n if (ipAddressesToSave.size() > 0) {\n ipAddressRepository.saveAll(ipAddressesToSave);\n latch1.countDown();\n }\n\n try {\n latch1.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public boolean updateVertexIconURLs(TimeFrame ptf, Map<Integer, String> pmapVertexIconURLs){\n for(int vertexId : pmapVertexIconURLs.keySet()){\n this.getGraph(ptf).getVertex(vertexId).updateIconURL(pmapVertexIconURLs.get(vertexId), ptf);\n }\n return true;\n }",
"public void updateEntry(InetAddress destNtwk, String desthostname, RoutingTableKey nextipHost, int nexthop, Port p, int cost, int myPort) {\r\n synchronized (lockRoutingTable) {\r\n RoutingTableKey ipHost = new RoutingTableKey(destNtwk, desthostname);\r\n // RoutingTableKey nextipHost = new RoutingTableKey(nextdestNtwk, nextdesthostname);\r\n this.myObjDate = LocalTime.now();\r\n this.routingEntries.get(ipHost).setCost(cost);\r\n this.routingEntries.get(ipHost).setNextipHost(nextipHost);\r\n this.routingEntries.get(ipHost).setPortclass(p);\r\n this.routingEntries.get(ipHost).setNextHop(nexthop);\r\n this.routingEntries.get(ipHost).setPort(myPort);\r\n }\r\n }",
"@SuppressWarnings(\"PMD.UnusedPrivateMethod\")\n private void updateMetadata(final PolicyRefsMetadata childPolicyRefsMetadata)\n {\n assert childPolicyRefsMetadata != null;\n\n // Modify refPolicies\n refPolicies.addAll(childPolicyRefsMetadata.getRefPolicies());\n\n /*\n * update the longest policy ref chain depending on the length of the longest in this child policy element\n */\n final List<String> childLongestPolicyRefChain = childPolicyRefsMetadata.getLongestPolicyRefChain();\n if (childLongestPolicyRefChain.size() > longestPolicyRefChain.size())\n {\n longestPolicyRefChain.clear();\n longestPolicyRefChain.addAll(childLongestPolicyRefChain);\n }\n }",
"public void update_unified_rp__search__rep_pept__generic_lookup_table( \n\t\t\tSearchDTO_Importer search,\n\t\t\tSearcherCutoffValuesSearchLevel searcherCutoffValuesSearchLevel ) throws Exception {\n\n\t\tif ( ! search.isHasScanData() ) {\n\t\t\t// No Scan data so unable to compute unique psm count\n\t\t\tif ( log.isInfoEnabled() ) {\n\t\t\t\tlog.info( \"Skip populating num_unique_psm_at_default_cutoff since no scans loaded\" );\n\t\t\t}\n\t\t\treturn; // EARLY EXIT\n\t\t}\n\t\t\n\t\tint searchId = search.getId();\n\t\t\n\t\t// Commit all inserts executed to this point\n\t\tImportDBConnectionFactory.getInstance().commitInsertControlCommitConnection();\n\t\t\n\t\tList<Integer> reportedPeptideIdList = getReportedPeptidesForRecordsWhereUniquePSMCountIsNULL( searchId );\n\n\t\tfor ( Integer reportedPeptideId : reportedPeptideIdList ) {\n\t\t\tint num_unique_psm_at_default_cutoff = \n\t\t\t\t\tPsmCountForUniquePSM_SearchIdReportedPeptideId_Searcher.getInstance()\n\t\t\t\t\t.getPsmCountForUniquePSM_SearchIdReportedPeptideId( reportedPeptideId, searchId, searcherCutoffValuesSearchLevel );\n\n\t\t\tUnifiedRepPep_Search_ReportedPeptide__Generic_Lookup__DAO.getInstance()\n\t\t\t.update_num_unique_psm_at_default_cutoff( searchId, reportedPeptideId, num_unique_psm_at_default_cutoff );\n\t\t}\n\t\t\n\t}",
"private void getPathsForSameNodeAndMaxLatency(Node target, int maxLatency, String prefix) {\n LinkedList<Edge> edges = target.getEdges();\n for (Edge e : edges) {\n String newPrefix = prefix + e.getDestination().getName();\n temp = getPathWeight(newPrefix);\n if(temp<maxLatency) {\n if (e.getDestination().getName().equalsIgnoreCase(endNode.getName())) {\n paths.put(newPrefix, temp);\n }\n getPathsForSameNodeAndMaxLatency(e.getDestination(),maxLatency,newPrefix);\n }\n }\n }",
"public void afterPropertiesSet()\r\n/* 39: */ throws NamingException\r\n/* 40: */ {\r\n/* 41:106 */ super.afterPropertiesSet();\r\n/* 42:107 */ if (this.lookupHomeOnStartup) {\r\n/* 43:109 */ refreshHome();\r\n/* 44: */ }\r\n/* 45: */ }",
"void update(String pathString, CacheEntry cacheEntry);"
] | [
"0.53113633",
"0.50864553",
"0.5049174",
"0.4993602",
"0.49196956",
"0.47402343",
"0.4720788",
"0.4650197",
"0.4628977",
"0.46153837",
"0.45959333",
"0.45612565",
"0.45578194",
"0.4506769",
"0.45008427",
"0.44847277",
"0.44324264",
"0.43597934",
"0.43451774",
"0.4333423",
"0.432922",
"0.43262917",
"0.43215123",
"0.43194467",
"0.43175265",
"0.4303907",
"0.43038076",
"0.42905557",
"0.4261127",
"0.42580962",
"0.42514563",
"0.42473432",
"0.42439264",
"0.4227012",
"0.42243537",
"0.42235076",
"0.42205513",
"0.4213515",
"0.42099568",
"0.42054108",
"0.42050752",
"0.4199809",
"0.41960132",
"0.419081",
"0.4189999",
"0.4183285",
"0.41774106",
"0.41727477",
"0.41595373",
"0.41513547",
"0.41473135",
"0.41458136",
"0.41442245",
"0.4142509",
"0.4141784",
"0.41350573",
"0.41346228",
"0.41270494",
"0.41240838",
"0.41240838",
"0.41233468",
"0.41169134",
"0.41141388",
"0.4108171",
"0.4108049",
"0.4107652",
"0.4107652",
"0.4105194",
"0.41041124",
"0.41031748",
"0.41005972",
"0.40883875",
"0.4083959",
"0.4083092",
"0.40791103",
"0.40740877",
"0.40711084",
"0.40703148",
"0.4069652",
"0.40664324",
"0.40596724",
"0.40535837",
"0.4052446",
"0.4049462",
"0.40493578",
"0.40487713",
"0.40416008",
"0.4040139",
"0.4033952",
"0.4030005",
"0.40236506",
"0.40236172",
"0.40212095",
"0.40208292",
"0.40175912",
"0.40153405",
"0.40066037",
"0.40057138",
"0.40035748",
"0.39980477"
] | 0.65402603 | 0 |
Get the current prom_lookup details of the environment | public static Map<String, Integer> getPromLookupHttpPath(int envId, String platform) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria promLookCriteria = session.createCriteria(PromLookupEntity.class, "promLook");
promLookCriteria.createCriteria("promLook.component", "comp");
promLookCriteria.add(Restrictions.eq("comp.platform", platform));
promLookCriteria.add(Restrictions.eq("promLook.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<PromLookupEntity> promLookEntityList = promLookCriteria.list();
Map<String, Integer> mapPromLook = new HashMap<String, Integer>();
for(PromLookupEntity promLookEntity : promLookEntityList){
if(promLookEntity.getComponent() != null){
mapPromLook.put(promLookEntity.getHttpPath(), promLookEntity.getComponent().getComponentId());
}
}
txn.commit();
return mapPromLook;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, String> getEnvironment();",
"public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.getProperties(env);\n }",
"public org.openejb.config.sys.Lookup getLookup() {\n return this._lookup;\n }",
"String getEnvironment();",
"Properties getEnvironment();",
"Properties getEnvironment();",
"public static Map<String, String> getPromLookupDetails(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria promLookCriteria = session.createCriteria(PromLookupEntity.class, \"promLook\");\n\t\tpromLookCriteria.createCriteria(\"promLook.component\", \"comp\");\n\t\tpromLookCriteria.add(Restrictions.eq(\"comp.platform\", platform));\n\t\tpromLookCriteria.add(Restrictions.eq(\"promLook.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<PromLookupEntity> promLookEntityList = promLookCriteria.list();\n\t\tMap<String, String> mapPromLook = new HashMap<String, String>();\n\t\tfor(PromLookupEntity promLookEntity : promLookEntityList){\n\t\t\tif(promLookEntity.getComponent() != null){\n\t\t\t\tif(platform.equals(SurveillerConstants.K8S_PLATFORM)){\n\t\t\t\t\tmapPromLook.put(promLookEntity.getComponent().getComponentName()+\"/\"+promLookEntity.getHttpPath(), promLookEntity.getHttpPath());\n\t\t \t}else{\n\t\t \t\tmapPromLook.put(promLookEntity.getComponent().getParentComponent().getComponentName()+\"/\"+promLookEntity.getComponent().getComponentName(), promLookEntity.getHttpPath());\n\t\t \t}\t\t \n\t\t\t}\n\t }\n\t\ttxn.commit();\n\t\treturn mapPromLook;\n\t}",
"public abstract Map<String, String> getEnvironment(NIOWorker nw);",
"public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }",
"public PythonInterpreter getEnvironment(String name) {return environments.get(name);}",
"public TreeMap<String,String> \n getEnvironment()\n {\n return pEnvironment;\n }",
"private static Map<String, Environment> getEnvironments() {\n Map<String, Environment> environmentMap = new HashMap<String, Environment>();\n Environment prodEnv = new Environment();\n prodEnv.setName(PROD_1);\n prodEnv.setPassword(PROD_1_PASSWORD);\n\n Environment sandBoxEnv = new Environment();\n sandBoxEnv.setName(SND_1);\n sandBoxEnv.setPassword(SND_1_PASSWORD);\n\n environmentMap.put(PROD_1, prodEnv);\n environmentMap.put(SND_1, sandBoxEnv);\n return environmentMap;\n }",
"javax.management.ObjectName getStateManager();",
"public Map<String, String> getEnv(IProject project) throws CoreException;",
"public static String getSymbolLookupProjectName() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\tString name = prefs.getString(GHIDRA_SYMBOL_LOOKUP_PROJECT_NAME);\n\t\tif (name.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn name;\n\t}",
"private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}",
"public Map<String, String> getEnv()\n {\n return env;\n }",
"public synchronized Map<String, String> getenv() {\n return System.getenv();\n }",
"private void cmdInfoVars() throws NoSystemException {\n MSystem system = system();\n \n System.out.print(system.getVariableEnvironment());\n }",
"private static Lookup getUserCatalogsLookup() {\n if (userCatalogLookup == null) {\n userCatalogLookup = Lookups.forPath(REGISTRATIONS);\n }\n return userCatalogLookup;\n }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public String getEnvironment(String env) {\n\t\treturn environment.get(env);\n\t}",
"String getMetaServerAddress(Env targetEnv);",
"String getEnvironmentProperty(String key);",
"public Environment environment()\n {\n return theEnv;\n }",
"public static assesment.persistence.question.QuestionReportHome getHome( java.util.Hashtable environment ) throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportHome) lookupHome(environment, assesment.persistence.question.QuestionReportHome.COMP_NAME, assesment.persistence.question.QuestionReportHome.class);\n }",
"public Map<String, String> getEnv(URI uri) throws CoreException;",
"public FxEnvironment getEnvironment() {\n return CacheAdmin.getFilteredEnvironment();\n }",
"public String getEnvironment() {\n return environment;\n }",
"public int[][] getEnvironment() {\n return this.environment;\n }",
"@Override\n\tpublic List<Map<String, String>> selectProessionInfo(String appId) {\n\t\treturn getSqlMap().queryForList(NAMESPACES + \"queryProessionInfo\", appId);\n\t}",
"public List<Provider> getProName() {\n\t\treturn userDao.getProName();\r\n\t}",
"java.lang.String getEnv(int index);",
"@SuppressWarnings(\"unchecked\")\n public Map<String, String> getMapContextPath() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n ExternalContext extenalContext = facesContext.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) extenalContext.getRequest();\n return (Map<String, String>) request.getSession().getAttribute(\"MAP_CONTEXT_PATH\");\n //xxx_temp end\n }",
"@SuppressWarnings(\"unchecked\")\n public static Hashtable<?, ?> getInitialEnvironment(Hashtable<?, ?> env) throws NamingException {\n String[] props = VersionHelper.PROPS; // system/applet properties\n if (env == null) {\n env = new Hashtable<>(11);\n }\n Object applet = env.get(Context.APPLET);\n\n // Merge property values from env param, applet params, and system\n // properties. The first value wins: there's no concatenation of\n // colon-separated lists.\n // Read system properties by first trying System.getProperties(),\n // and then trying System.getProperty() if that fails. The former\n // is more efficient due to fewer permission checks.\n //\n String[] jndiSysProps = helper.getJndiProperties();\n for (int i = 0; i < props.length; i++) {\n Object val = env.get(props[i]);\n if (val == null) {\n if (applet != null) {\n val = AppletParameter.get(applet, props[i]);\n }\n if (val == null) {\n // Read system property.\n val = (jndiSysProps != null) ? jndiSysProps[i] : helper.getJndiProperty(i);\n }\n if (val != null) {\n ((Hashtable<String, Object>) env).put(props[i], val);\n }\n }\n }\n\n // Return without merging if application resource files lookup\n // is disabled.\n String disableAppRes = (String) env.get(DISABLE_APP_RESOURCE_FILES);\n if (disableAppRes != null && disableAppRes.equalsIgnoreCase(\"true\")) {\n return env;\n }\n\n // Merge the above with the values read from all application\n // resource files. Colon-separated lists are concatenated.\n mergeTables((Hashtable<Object, Object>) env, getApplicationResources());\n return env;\n }",
"private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }",
"private DevLibProperties probeActiveDevLibLocation()\r\n\t\t\tthrows NotAvailableSDLException {\r\n\r\n\t\tString preDevLib = getPreferedDevLibLocation();\r\n\t\tDevLibProperties devLibProp = DevLibPluginController.getInstance()\r\n\t\t\t\t.findDevLibPropFromLabel(preDevLib);\r\n\r\n\t\tif (devLibProp == null) {\r\n\t\t\tSet<DevLibProperties> devLibPropertiesSet = DevLibPluginController\r\n\t\t\t\t\t.getInstance().getDevLibPropertiesSet();\r\n\t\t\tif (devLibPropertiesSet.isEmpty()) {\r\n\t\t\t\tthrow new NotAvailableSDLException(\r\n\t\t\t\t\t\tMessagesConstants.NO_VALID_DEVELOPER_LIBRARY + \":\"\r\n\t\t\t\t\t\t\t\t+ preDevLib);\r\n\t\t\t} else {\r\n\t\t\t\tIterator<DevLibProperties> it = devLibPropertiesSet.iterator();\r\n\t\t\t\tdevLibProp = it.next();\r\n\t\t\t\tString msg = MessagesConstants.PREVIOUS_DEVLIB_NOTFOUND\r\n\t\t\t\t\t\t+ preDevLib + \" \" + MessagesConstants.NEW_DEVLIB_USED\r\n\t\t\t\t\t\t+ devLibProp.getUserFriendlyName();\r\n\t\t\t\tsetPreferedDevLibLocation(devLibProp);\r\n\t\t\t\tDialogHelper.displayErrorDialog(msg);\r\n\t\t\t\tLogger.logWarn(msg);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn devLibProp;\r\n\t}",
"String process_mgr_name () throws BaseException;",
"public String getEnv() {\n\n return env;\n }",
"@Transient\r\n\tpublic Map<String, Object> getLookups() {\r\n\t\tMap<String,Object> map = new HashMap<String,Object>();\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ID, getId());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_DOCUMENT, getRegistry().getDocument());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_NAME, getRegistry().getName());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_SURNAME, getRegistry().getSurname());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ALIAS, getRegistry().getAlias());\r\n return map;\r\n\t}",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p.toString().split(\",\");\r\n\r\n for (String string : split) {\r\n pw.println(string);\r\n }\r\n\r\n return sw.toString();\r\n }",
"public String getDescribePro() {\n return describePro;\n }",
"public Env getEnv() {\n\t\treturn _env;\n\t}",
"private static String mode() {\n return System.getProperty(SYSTEM_PROPERTY_NAME, System.getenv(ENV_VARIABLE_NAME));\n }",
"public String getManager()\n {\n return (String) getProperty(PropertyIDMap.PID_MANAGER);\n }",
"java.util.List<java.lang.String>\n getEnvList();",
"public String getSystemProperties(String key) {\n // Whether EDGE, UMTS, etc...\n return SystemProperties.get(key);\n }",
"public String getSystemProperties() {\n return systemProperties;\n }",
"public String getCurrentHome(){\r\n \tfor (DisplayResolveInfo info : mList) {\r\n \t\tif (true == info.bDefault) {\r\n \t\t\tmPm.clearPackagePreferredActivities(info.ri.activityInfo.packageName);\r\n\t\t\t\t\r\n\t\t\t\treturn info.ri.activityInfo.packageName;\r\n \t\t} \r\n \t} \t\r\n\t\treturn null;\r\n\t}",
"public static BeanManager lookupBeanManager() {\n BeanManager beanManager = getCDIBeanManager(\"java:comp\");\n if (beanManager == null) {\n beanManager = getCDIBeanManager(\"java:comp/env\");\n }\n if (beanManager == null) {\n beanManager = getOSGICDIBeanManager();\n }\n return beanManager;\n }",
"private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }",
"public Entry[] getLookupAttributes() throws RemoteException {\n\t\treturn mgr.getAttributes();\n\t}",
"public interface Environment {\n\tpublic Object resolveVariable(String name);\n\tpublic List<String> getRegisteredVariableNames();\n}",
"private static Map<String,String> getEnvVars() {\n return new TreeMap<>(System.getenv());\n }",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}",
"public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}",
"public String getBundleSymbolicName() {\r\n Class<?> c = grammarAccess.getClass();\r\n return getBundleSymbolicName(c);\r\n }",
"public Querytool getQuery() {\n return localQuerytool;\n }",
"protected static String lookup(ComponentContext context, String property) {\n if (context.getBundleContext().getProperty(property) != null) {\n return context.getBundleContext().getProperty(property);\n }\n\n if (context.getProperties().get(property) != null) {\n return context.getProperties().get(property).toString();\n }\n return null;\n }",
"public Environment getEnvironment() {\n \n \t\treturn this.environment;\n \t}",
"public PDDeviceNProcess getProcess() {\n/* 93 */ COSDictionary process = (COSDictionary)this.dictionary.getDictionaryObject(COSName.PROCESS);\n/* 94 */ if (process == null)\n/* */ {\n/* 96 */ return null;\n/* */ }\n/* 98 */ return new PDDeviceNProcess(process);\n/* */ }",
"private String getPropertyCatalog() {\n return this.property;\n }",
"public static Map<String, Object> getAllKnownProperties(Environment env) {\n\t Map<String, Object> rtn = new HashMap<>();\n\t if (env instanceof ConfigurableEnvironment) {\n\t for (PropertySource<?> propertySource : ((ConfigurableEnvironment) env).getPropertySources()) {\n\t if (propertySource instanceof EnumerablePropertySource) {\n\t for (String key : ((EnumerablePropertySource) propertySource).getPropertyNames()) {\n\t rtn.put(key, propertySource.getProperty(key));\n\t }\n\t }\n\t }\n\t }\n\t return rtn;\n\t}",
"public String getEasyCoopURI() {\r\n String uri = \"\";\r\n\r\n try {\r\n javax.naming.Context ctx = new javax.naming.InitialContext();\r\n uri = (String) ctx.lookup(\"java:comp/env/easycoopbaseurl\");\r\n //BASE_URI = uri; \r\n } catch (NamingException nx) {\r\n System.out.println(\"Error number exception\" + nx.getMessage().toString());\r\n }\r\n\r\n return uri;\r\n }",
"private static RuntimeManager getRuntimeManager(String process) {\n JBPMHelper.startH2Server();\n JBPMHelper.setupDataSource();\n\n // for external database\n // setupDataSource();\n\n Properties properties = new Properties();\n properties.setProperty(\"krisv\", \"\");\n properties.setProperty(\"mary\", \"\");\n properties.setProperty(\"john\", \"\");\n UserGroupCallback userGroupCallback = new JBossUserGroupCallbackImpl(properties);\n\n emf = Persistence.createEntityManagerFactory(\"org.jbpm.persistence.jpa\", null);\n\n RuntimeEnvironment environment = RuntimeEnvironmentBuilder.getDefault().persistence(true)\n .entityManagerFactory(emf).userGroupCallback(userGroupCallback)\n .addAsset(ResourceFactory.newClassPathResource(process), ResourceType.BPMN2).get();\n return RuntimeManagerFactory.Factory.get().newPerProcessInstanceRuntimeManager(environment);\n\n }",
"public static synchronized GraphicsEnvironment getLocalGraphicsEnvironment() {\n return Toolkit.getDefaultToolkit().getLocalGraphicsEnvironment();\n }",
"@Override\n\tpublic WeakHashMap<String, double[]> getCurrentProfiles()\n\t{\n\t\tWeakHashMap<String, double[]> returnMap = new WeakHashMap<String, double[]>();\n\t\treturnMap.put(\"HeatPump\", this.optimisedSetPointProfile);\n\t\treturnMap.put(\"WaterHeat\", this.waterHeatDemandProfile);\n\t\treturn returnMap;\n\t}",
"public Map<String, String> environmentVariables() {\n return this.environmentVariables;\n }",
"String getLookupKey();",
"public Properties getJndiEnvironment() {\n return this.jndiEnvironment;\n }",
"public String getSystemEnv() {\n return \"\";\n }",
"private Map<String, Object> collectGlobals() {\n ImmutableMap.Builder<String, Object> envBuilder = ImmutableMap.builder();\n MethodLibrary.addBindingsToBuilder(envBuilder);\n Runtime.addConstantsToBuilder(envBuilder);\n return envBuilder.build();\n }",
"public Map getENC()\n throws NamingException\n {\n // save context classloader\n Thread thread= Thread.currentThread();\n ClassLoader lastContextLoader= thread.getContextClassLoader();\n \n //set the classloader up as this webapp's loader\n thread.setContextClassLoader(getClassLoader());\n Map map = null;\n try\n {\n map = Util.flattenBindings ((Context)_initialCtx.lookup(\"java:comp\"), \"env\");\n }\n finally\n {\n //replace the classloader\n thread.setContextClassLoader(lastContextLoader);\n }\n \n return map;\n }",
"@Override public String toString() {\n Lookup.Template template = new Lookup.Template<CatalogReader>(CatalogReader.class);\n Lookup.Result result = getUserCatalogsLookup().lookup(template); \n return \"CatalogSettings[ global-scope: \" + result.allInstances() + \n \", project-scope: \" + mountedCatalogs + \" ]\";\n }",
"public String getProducerApplication();",
"private static String m29548a(Context context) {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(\"activity\");\n int myPid = Process.myPid();\n for (RunningAppProcessInfo runningAppProcessInfo : activityManager.getRunningAppProcesses()) {\n if (runningAppProcessInfo.pid == myPid) {\n return runningAppProcessInfo.processName;\n }\n }\n return null;\n }",
"public abstract String globalInfo();",
"public java.lang.String getEnv(int index) {\n return env_.get(index);\n }",
"public IMApplicationInfo getIMApplicationInfo(){\n\t\treturn this.getApplicationContextFactory().getApplicationContext().getRequestContext().getIMApplicationInfo();\n\t}",
"public Single<EnvironmentInfo> getDeviceInfo() {\n return Single.just(EnvironmentInfo.create(Build.VERSION.RELEASE,\n String.format(\"%s(%s)\", BuildConfig.VERSION_NAME,\n BuildConfig.VERSION_CODE), Build.MODEL));\n }",
"EnvironmentmmFactory getEnvironmentmmFactory();",
"public java.lang.String getEnv(int index) {\n return env_.get(index);\n }",
"public Path getProvLocation() {\n return getSimulationLocation().resolve(FileManager.PROV_FOLDER_NAME);\n }",
"public com.google.protobuf.ProtocolStringList\n getEnvList() {\n return env_;\n }",
"@Override\n public Environment getEnvironment(XYCoord coord)\n {\n return master.getEnvironment(coord);\n }",
"public com.google.protobuf.ProtocolStringList\n getEnvList() {\n return env_.getUnmodifiableView();\n }",
"Map<String, Object> getContext();",
"public String getPROG_REF() {\r\n return PROG_REF;\r\n }",
"public static int getSymbolLookupPort() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\ttry {\n\t\t\treturn Integer.parseInt(prefs.getString(GHIDRA_SYMBOL_LOOKUP_PORT_NUMBER));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\treturn -1;\n\t\t}\n\t}",
"private Object readResolve() {\n return getApplication(name);\n }",
"public static void printSystemVariables() {\n\t\tMap<String, String> env = System.getenv();\n\t\tfor (Map.Entry<String, String> entry : env.entrySet()) {\n\t\t\tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\n\t\t}\n\t}",
"public static List<IProcedure> getSystemProcedures() {\r\n\t\treturn systemProcedures;\r\n\t}",
"public long getCurrentProteins() {\n return currentProteins;\n }",
"public String getJMXURL() {\n try {\n final JMXServiceURL url = \n JmxServiceUrlFactory.forRmiWithJndiInAppserver(getHost(), Integer.parseInt(getPort()));\n return ( url.toString() );\n }\n catch (final Exception e) {\n throw new RuntimeException (e);\n }\n }",
"public java.lang.String[] getMessageContexts(){\n return localMessageContexts;\n }",
"public String getCurrentPrintJob()\n {\n return printerSimulator.getCurrentPrintJob();\n }"
] | [
"0.6202827",
"0.60588753",
"0.58503425",
"0.58157885",
"0.5773402",
"0.5773402",
"0.56665283",
"0.5587355",
"0.55381364",
"0.5534527",
"0.552391",
"0.54778385",
"0.5439601",
"0.54117334",
"0.5394599",
"0.5392582",
"0.53884584",
"0.5336288",
"0.5313395",
"0.53122187",
"0.5266164",
"0.5265073",
"0.5251541",
"0.52391803",
"0.51872957",
"0.5155753",
"0.5143346",
"0.51386887",
"0.5123141",
"0.51158553",
"0.51041365",
"0.5092392",
"0.508176",
"0.50659513",
"0.50519645",
"0.50519586",
"0.50357366",
"0.5030773",
"0.50274825",
"0.498253",
"0.4975151",
"0.4971147",
"0.4970601",
"0.49535376",
"0.49465472",
"0.4927823",
"0.49269772",
"0.49267846",
"0.49199292",
"0.49196666",
"0.4919002",
"0.49098167",
"0.49055967",
"0.4904056",
"0.4890591",
"0.48897657",
"0.48894867",
"0.4888372",
"0.48801962",
"0.4875444",
"0.4872293",
"0.48676503",
"0.4855652",
"0.48504984",
"0.48353848",
"0.48348477",
"0.4832917",
"0.48255265",
"0.48190913",
"0.48190045",
"0.4803997",
"0.47978982",
"0.4795133",
"0.47876298",
"0.47871566",
"0.4783305",
"0.4780238",
"0.4769988",
"0.47696137",
"0.47675014",
"0.4765288",
"0.47530836",
"0.4743659",
"0.47426316",
"0.47403198",
"0.47394642",
"0.47374442",
"0.473634",
"0.47327393",
"0.47281015",
"0.47247005",
"0.47206044",
"0.47191215",
"0.4710244",
"0.46968916",
"0.4694259",
"0.46900594",
"0.46838897",
"0.46810448",
"0.4675851"
] | 0.5048184 | 36 |
Get the current tps_service details of the environment | public static List<Integer> getAllCurrentTPS(int envId, String platform) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria tpsCriteria = session.createCriteria(TpsServiceEntity.class, "tps");
tpsCriteria.createCriteria("tps.component", "comp");
tpsCriteria.add(Restrictions.eq("comp.platform", platform));
tpsCriteria.add(Restrictions.eq("tps.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<TpsServiceEntity> tpsEntityList = tpsCriteria.list();
List<Integer> listOfComp = new ArrayList<Integer>();
for(TpsServiceEntity tpsEntity : tpsEntityList){
if(tpsEntity.getComponent() != null){
listOfComp.add(tpsEntity.getComponent().getComponentId());
}
}
txn.commit();
return listOfComp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getService() {\n\t\treturn service.get();\n\t}",
"public java.lang.String getServiceName(){\n return localServiceName;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public https.LnpSdStructure[] getService_details() {\n return service_details;\n }",
"public TTSService getService() {\n return TTSService.this;\n }",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"public String getServiceName();",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"String getServiceName();",
"String getServiceName();",
"@Override\n\tpublic String printServiceInfo() {\n\t\treturn serviceName;\n\t}",
"public String getServiceName()\r\n {\r\n return serviceName;\r\n }",
"public String getServiceName()\n {\n return serviceName;\n }",
"public String getService(){\n\t\t return service;\n\t}",
"public String getServiceSn() {\n return serviceSn;\n }",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }",
"public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }",
"public YangString getServiceValue() throws JNCException {\n return (YangString)getValue(\"service\");\n }",
"public YangString getServiceValue() throws JNCException {\n return (YangString)getValue(\"service\");\n }",
"public String getServiceName() {\n return serviceName;\n }",
"public String getServiceName() {\r\n return this.serviceName;\r\n }",
"public abstract String getServiceName();",
"public String getServiceName() {\n return this.serviceName;\n }",
"public ServiceDetails getServiceDetails()\n {\n return data.serviceDetails;\n }",
"public String getServiceName() {\n return serviceName;\n }",
"public Service getService() {\n\t\treturn _service;\n\t}",
"public String getServiceName() {\n return this.serviceName;\n }",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"public List<Service> getService() {\n\t\treturn ServiceInfo.listService;\n\t}",
"public String getServiceName(){\n return serviceName;\n }",
"public go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder() {\n return getService();\n }",
"public go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder() {\n return getService();\n }",
"public go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder() {\n return getService();\n }",
"public java.lang.String getServicename() {\n\treturn servicename;\n}",
"public String getDevelopmentToolingandEnvironmentServiceName() {\n return developmentToolingandEnvironmentServiceName;\n }",
"public String toString() {\n return getServiceId();\n }",
"public java.lang.CharSequence getService() {\n return service;\n }",
"public String getTypeOfService(){\n\t\treturn typeOfService;\n\t}",
"public String getServiceName()\n {\n return this.mServiceName;\n }",
"public String getDevelopmentToolingandEnvironmentServiceType() {\n return developmentToolingandEnvironmentServiceType;\n }",
"public Object getService() {\n return service;\n }",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"public java.lang.CharSequence getService() {\n return service;\n }",
"public String getDevelopmentToolingandEnvironmentServiceDescription() {\n return developmentToolingandEnvironmentServiceDescription;\n }",
"public String getAllRunningServices() {\n return \"\";\n }",
"public String getTypeOfService(){\n\treturn typeOfService;\n}",
"public String getServiceDescription()\n {\n return serviceDescription;\n }",
"public String serviceInfo(){\n String msj = \"\";\n\n msj = \"Nombre del servicio: \" + serviceName;\n msj = \"Costo: \" + cost;\n msj = \"Fecha de realizacion: \" + date;\n msj = \"La ID de la mascota es: \" + petID;\n msj = \"La ID del cliente es: \" + clientID;\n\n return msj;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@RequestMapping(value = \"/info\", method = RequestMethod.GET)\n public String info() {\n return serviceName;\n }",
"public EPPService getService() {\n\t\treturn service;\n\t}",
"public boolean getUseGlobalService();",
"public ServiceName getServiceName() {\n return serviceName;\n }",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"private Service getService() {\n return service;\n }",
"protected abstract String getATiempoServiceName();",
"public Text getService() {\n return service;\n }",
"protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n }\n }",
"public java.lang.String getService() {\n java.lang.Object ref = service_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n service_ = s;\n return s;\n }\n }",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();",
"go.micro.runtime.RuntimeOuterClass.ServiceOrBuilder getServiceOrBuilder();",
"public List<String> getServices() {\n return runtimeClient.getServices();\n }",
"public Object _getLSservices(CommandInterpreter ci) {\n\t\tSet<Registration> regs = identityManager.getLocalServices();\n\t\tci.print(\"Local Services:\\n------------------\\n\");\n\t\tfor (Registration r : regs) {\n\t\t\tci.print(\"> Service with VA \" + r.getVirtualAddress().toString() + \" \\n\");\n\t\t\tfor (Part p : r.getAttributes()) {\n\t\t\t\tci.println(\"\\t\" + p.getKey() + \": \" + p.getValue());\n\t\t\t}\n\t\t}\n\n\t\tregs = identityManager.getRemoteServices();\n\t\tci.print(\"Remote Services:\\n------------------\\n\");\n\t\tfor (Registration r : regs) {\n\t\t\tci.print(\"> Service with VA \" + r.getVirtualAddress().toString() + \" \\n\");\n\t\t\tfor (Part p : r.getAttributes()) {\n\t\t\t\tci.println(\"\\t\" + p.getKey() + \": \" + p.getValue());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public Service getService()\n {\n return (Service) getSource();\n }",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"DeliverySystem getPseService();",
"public Service getService() {\n return serviceInstance;\n }",
"public String getDevelopmentToolingandEnvironmentServiceWorkProduct() {\n return developmentToolingandEnvironmentServiceWorkProduct;\n }",
"default Map<String, String> get() {\n Map<String, String> tags = new HashMap<>();\n tags.put(\"application\", serviceInfo().getServiceName());\n tags.put(\"host\", serviceInfo().getHost());\n tags.put(\"environment\", serviceInfo().getEnvironment());\n return tags;\n }",
"public Object getService(String serviceName);",
"Object getService(String serviceName);",
"public AbstractService getService() {\n return service;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }",
"public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p.toString().split(\",\");\r\n\r\n for (String string : split) {\r\n pw.println(string);\r\n }\r\n\r\n return sw.toString();\r\n }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"String getEnvironment();"
] | [
"0.6645277",
"0.6427837",
"0.6378025",
"0.6378025",
"0.6378025",
"0.6369882",
"0.6350313",
"0.6350313",
"0.6350313",
"0.627427",
"0.62590045",
"0.6179095",
"0.6179095",
"0.6173394",
"0.6158147",
"0.6158147",
"0.6158147",
"0.61511844",
"0.61511844",
"0.60634273",
"0.6031606",
"0.60216606",
"0.6019738",
"0.60109055",
"0.60098696",
"0.60098696",
"0.6004617",
"0.6004617",
"0.59653646",
"0.59653646",
"0.5947665",
"0.59396815",
"0.5934392",
"0.5921736",
"0.5915091",
"0.5908141",
"0.58941406",
"0.58878946",
"0.5879594",
"0.58614326",
"0.5860526",
"0.58571106",
"0.58571106",
"0.58571106",
"0.5835066",
"0.5804009",
"0.5798716",
"0.5763248",
"0.5759731",
"0.57565755",
"0.57526493",
"0.5737665",
"0.5717948",
"0.5717948",
"0.5717948",
"0.5693933",
"0.5671721",
"0.5663093",
"0.56424934",
"0.562818",
"0.562497",
"0.5623664",
"0.5623664",
"0.5623664",
"0.56175166",
"0.56175166",
"0.56175166",
"0.5609286",
"0.5595984",
"0.5578734",
"0.5565721",
"0.5561379",
"0.55596286",
"0.5557297",
"0.5550731",
"0.5544052",
"0.5542843",
"0.55426425",
"0.55426425",
"0.55426425",
"0.5526638",
"0.5526638",
"0.5526638",
"0.5518597",
"0.5511341",
"0.5504712",
"0.5487965",
"0.5476053",
"0.5473851",
"0.5453041",
"0.5442481",
"0.54340166",
"0.5432721",
"0.54235536",
"0.5421992",
"0.54202336",
"0.54202336",
"0.54202336",
"0.5417611",
"0.5414653",
"0.540495"
] | 0.0 | -1 |
Update the tps_service table with latest tps values. | public static void updateTpsService(final int envId, int componentId, float tpsVaule, float latencyValue){
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(HQLConstants.UPDATE_TPS_SERVICE_DETAILS);
query.setFloat("tpsVaule", tpsVaule);
query.setFloat("latencyValue", latencyValue);
query.setTimestamp("lastUpdateDate", new java.sql.Timestamp(System.currentTimeMillis()));
query.setLong("compId", componentId);
query.setLong("environmentId", envId);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void updateTpsLatHistory(final int envId, int componentId, float tpsVaule, float latencyValue, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());\n\t\t\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setFloat(\"tpsVaule\", tpsVaule);\n\t\tquery.setFloat(\"latencyValue\", latencyValue);\n\t\tquery.setLong(\"compId\", componentId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public void runTableUpdateService() {\n tableUpdateService.restart();\n }",
"public void updateStoredServices() {\n\t\ttableModelStoredServices.setData(((PswGenCtl) ctl).getServices().getServices());\n\t}",
"private void updatePrescaleService() {\n\t\ttableModel.updatePrescaleService(config);\n\t}",
"private void updLTMST() \n\t{\n\t\ttry{\n\t\t\tM_strSQLQRY = \"Update PR_LTMST set \";\n\t\t\tM_strSQLQRY += \"LT_DSPQT = LT_DSPQT - \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"LT_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"LT_LUSBY = '\"+ cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"LT_LUPDT = '\"+ M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where lt_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lt_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_rclno = '\"+strRCLNO+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update pr_ltmst table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"setLCLUPD\");\n\t\t}\n\t}",
"public void setOriginalServiceData (Timestamp OriginalServiceData);",
"public void setTsUpdate(java.lang.Long value) {\n this.ts_update = value;\n }",
"public void testUpdate() {\n Random random = new Random();\n ContentValues originalValues = makeServiceStateValues(random, mBaseDb);\n final long rowId = mBaseDb.insert(TBL_SERVICE_STATE, null, originalValues);\n\n // update state and timestamp\n ServiceStateTuple tuple = new ServiceStateTuple();\n tuple.put(COL_STATE, String.valueOf(random.nextGaussian()));\n tuple.put(COL_TIMESTAMP, random.nextLong());\n\n // update table\n ServiceStateTable table = new ServiceStateTable();\n int updated = table.update(mTestContext, tuple, null, null);\n assertEquals(1, updated);\n\n // query and verify using base db\n Cursor cursor = mBaseDb.query(TBL_SERVICE_STATE, null, null, null, null, null, null);\n assertNotNull(cursor);\n assertTrue(cursor.moveToFirst());\n assertEquals(1, cursor.getCount());\n // original values\n assertEquals(rowId, cursor.getLong(cursor.getColumnIndex(COL_ID)));\n assertEquals(TestHelper.getLong(originalValues, COL_FK_MONITOR_SESSION),\n cursor.getLong(cursor.getColumnIndex(COL_FK_MONITOR_SESSION)));\n // updated values\n try {\n assertEquals(tuple.getString(COL_STATE),\n cursor.getString(cursor.getColumnIndex(COL_STATE)));\n assertEquals(tuple.getLong(COL_TIMESTAMP),\n cursor.getLong(cursor.getColumnIndex(COL_TIMESTAMP)));\n } catch (IllegalArgumentException iae) {\n fail(iae.toString());\n }\n cursor.close();\n }",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"private RFSServiceSummary processService(Service service) {\n \t\tIMonitoringSummary serviceSummary = monitoringStateModel\n \t\t\t\t.summary(service);\n\t\tserviceSummary.addContextObject(new ObjectContext<DateTimeRange>(\n\t\t\t\tgetPeriod()));\n \t\tserviceSummary.compute(new NullProgressMonitor());\n \n \t\tif (serviceSummary instanceof RFSServiceSummary) {\n \n \t\t\tfinal ReportingEngine engine = (ReportingEngine) getEngine();\n \t\t\tengine.setService(service);\n \t\t\tengine.setServiceSummary((RFSServiceSummary) serviceSummary);\n \t\t\tengine.setJobMonitor(getJobMonitor());\n \t\t\tengine.setDataProvider(this.getDataProvider());\n \t\t\tengine.setPeriod(getPeriod());\n \t\t\tengine.execute();\n \t\t\tif (engine.getFailures().size() > 0) {\n \t\t\t\t// Don't add anmy\n \t\t\t\tthis.getFailures().addAll(engine.getFailures());\n \t\t\t}\n \t\t\treturn (RFSServiceSummary) serviceSummary;\n \t\t}\n \t\treturn null;\n \t}",
"private void updateTestEnd() {\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"UPDATE runs set `id_status`=?,`time_end`=now() where `id_run` =?\");\r\n\t\t\tpStat.setInt(1, Conf.getTestStatus());\r\n\t\t\tpStat.setInt(2, Conf.getRunId());\r\n\t\t\tpStat.execute();\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}",
"long getTsUpdate();",
"@Override\n\tpublic void updateSelective(TblMulitData t) throws SQLException {\n\n\t}",
"private void updSTMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update FG_STMST set \";\n\t\t\tM_strSQLQRY += \"ST_STKQT = ST_STKQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"ST_ALOQT = ST_ALOQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"ST_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"ST_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"ST_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where st_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and st_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY+= \" and st_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"updSTMST\");\n\t\t}\n\t}",
"private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }",
"public void updateMax(TimestampVector tsVector){\n\t\tfor (Enumeration<String> pids = timestampVector.keys(); pids.hasMoreElements();) {\n\t\t\tString pid = pids.nextElement();\n\t\t\tif (!tsVector.getLast(pid).isNullTimestamp())\n\t\t\t\tif (getLast(pid).isNullTimestamp() || getLast(pid).compare(tsVector.getLast(pid)) < 0) {\n\t\t\t\t\ttimestampVector.replace(pid, getLast(pid), tsVector.getLast(pid));\n\t\t\t\t}\n\t\t}\n\t}",
"public static void loadTpsService(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsServiceEntity tpsService = new TpsServiceEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsService.setEnvironment(environment);\n\t\ttpsService.setLastUpdated(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsService.setComponent(component);\n\t\ttpsService.setLaunchDate(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\ttpsService.setTpsValue(tpsVaule);\n\t\ttpsService.setLatencyValue(latencyValue);\n\t\tsession.save(tpsService);\n\t\ttxn.commit();\n\t}",
"@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}",
"public List<ServiceType> getAllByUpdate() {\n\t\t// TODO Auto-generated method stub\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList <ServiceType> lst =(List<ServiceType>) session.createCriteria(ServiceType.class)\n\t\t.add(Restrictions.ne(\"updateDate\", \"\"))\n\t\t.list();\n\t\tsession.close();\n\t\treturn lst;\n\t}",
"private void updPRMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update CO_PRMST set \";\n\t\t\tM_strSQLQRY += \"PR_CSTQT = PR_CSTQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"PR_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"PR_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"PR_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update COprmt table :\"+M_strSQLQRY);\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updPRMST\");\n\t\t}\n\t}",
"public void updateWithTestStats() {\n\t\tBasicDBObject updateQuery = new BasicDBObject(); \n\t\tBasicDBObject fieldSets = new BasicDBObject(); \n\t\tfieldSets.put(\"numFailedTests\", numFailedTests); \n\t\tfieldSets.put(\"numPassedTests\", numPassedTests); \n\t\tfieldSets.put(\"testSuiteName\", testSuiteName); \n\t\tfieldSets.put(\"testEndTime\", testEndTime); \n\t\tupdateQuery.put( \"$set\", fieldSets); \n\t\tappendData(updateQuery);\n\t}",
"public synchronized void updateTransdailyData() {\n Instant startTime = Instant.now();\n log.debug(\"start updateTransdailyData startTime:{}\", startTime.toEpochMilli());\n try {\n\n // query all group statistical info\n List<StatisticalGroupTransInfo> groupStatisticalList = groupService\n .queryLatestStatisticalTrans();\n\n // traverse group list\n traverseNetList(groupStatisticalList);\n\n } catch (Exception ex) {\n log.error(\"fail updateTransdailyData\", ex);\n }\n log.debug(\"end updateTransdailyData useTime:{}\",\n Duration.between(startTime, Instant.now()).toMillis());\n }",
"public void update(Triplet t) throws DAOException;",
"public Value.Builder setTsUpdate(long value) {\n validate(fields()[11], value);\n this.ts_update = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public void processUpdates() {\n List<Update> updates = getUpdates(lastId, updateLimit, timeout);\n\n lastId = updates.stream()\n .map(Update::getId)\n .max(Long::compareTo)\n .orElse(lastId-1) + 1;\n\n updates.parallelStream().forEach(this::processUpdate);\n }",
"@Override\r\n\tpublic int update(PtHrUserBak t) {\n\t\treturn 0;\r\n\t}",
"private void exeSTMST()\n\t{\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tM_strSQLQRY = \"Select IST_WRHTP,IST_PRDTP,IST_LOTNO,IST_RCLNO,IST_MNLCD,IST_PKGTP,sum(IST_ISSQT) LM_SUMQT\";\n\t\t\t\tM_strSQLQRY += \" from FG_ISTRN where IST_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and IST_STSFL = '1' and isnull(IST_ISSQT,0)>0 \";\n\t\t\t\tM_strSQLQRY += \" group by IST_WRHTP,IST_PRDTP,IST_LOTNO,IST_RCLNO,IST_PKGTP,IST_MNLCD\";\n\t\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\t\tM_rstRSSET = cl_dat.exeSQLQRY1(M_strSQLQRY);\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t strWRHTP = M_rstRSSET.getString(\"IST_WRHTP\");\n\t\t\t\t\tstrPRDTP = M_rstRSSET.getString(\"IST_PRDTP\");\n\t\t\t\t\tstrLOTNO = M_rstRSSET.getString(\"IST_LOTNO\");\n\t\t\t\t\tstrRCLNO = M_rstRSSET.getString(\"IST_RCLNO\");\n\t\t\t\t\tstrMNLCD = M_rstRSSET.getString(\"IST_MNLCD\");\n\t\t\t\t\tstrPKGTP = M_rstRSSET.getString(\"IST_PKGTP\");\n\t\t\t\t\tstrISAQT = M_rstRSSET.getString(\"LM_SUMQT\");\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tupdSTMST1();\n\t\t\t\t\t}\n\t\t\t\tif(M_rstRSSET != null)\n\t\t\t\t\tM_rstRSSET.close();\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"exeSTMST\");\n\t\t\t}\n\t\t}\n\t}",
"Source updateDatasourceZ3950Timestamp(Source ds) throws RepoxException;",
"public ProductionPowersUpdateData(ProductionPowers pp, String p) {\n this.pp = pp;\n this.p = p;\n }",
"@Override\n\tpublic boolean update(Produto t) {\n\t\treturn true;\n\t}",
"@Test\n public void testSubsequentUpdateTimestamp() {\n Product newProduct = TestUtil.createProduct();\n productCurator.create(newProduct);\n Pool pool = createPoolAndSub(owner, newProduct, 1L,\n TestUtil.createDate(2011, 3, 30),\n TestUtil.createDate(2022, 11, 29));\n \n pool = poolCurator.create(pool);\n \n // set updated to 10 minutes ago\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.MINUTE, -10);\n pool.setUpdated(calendar.getTime());\n \n Date updated = (Date) pool.getUpdated().clone();\n pool.setQuantity(23L);\n pool = poolCurator.merge(pool);\n \n assertFalse(updated.getTime() == pool.getUpdated().getTime());\n }",
"public void insert(int serverId, \n List<ServiceInfo> serviceList, \n ServiceRuntimeRegistry runtimeRegistry) throws Exception {\n \n conn = pool.getConnection();\n logger.debug(\"Query : \" + INSERT_SERVICE_SQL);\n PreparedStatement pstmt = conn.prepareStatement(INSERT_SERVICE_SQL, \n Statement.RETURN_GENERATED_KEYS);\n ResultSet resultSet = null;\n \n try {\n for(int i = 0; i < serviceList.size(); i++) {\n ServiceInfo info = serviceList.get(i);\n \n DbUtil.setValue2Pstmt(pstmt, logger, 1, serverId);\n DbUtil.setValue2Pstmt(pstmt, logger, 2, info.getUrl());\n DbUtil.setValue2Pstmt(pstmt, logger, 3, \"not supported\");\n DbUtil.setValue2Pstmt(pstmt, logger, 4, info.getClassName());\n \n \n if(info.getMBeanClassName() == null) {\n DbUtil.setNull2Pstmt(pstmt, logger, 5, Types.VARCHAR);\n \n } else {\n DbUtil.setValue2Pstmt(pstmt, logger, 5, info.getMBeanClassName());\n }\n DbUtil.setValue2Pstmt(pstmt, logger, 6, info.getExecType());\n \n pstmt.executeUpdate();\n \n int newId;\n resultSet = pstmt.getGeneratedKeys();\n \n if(resultSet.next()) {\n newId = resultSet.getInt(1);\n } else {\n throw new SQLException(\"auto id is not retievied.\");\n }\n \n ServiceRuntimeInfo runInfo = runtimeRegistry.getServiceRuntimeInfo(info.getUrl());\n runInfo.setServiceRuntimeId(newId);\n }\n conn.commit();\n \n } catch(Exception e) {\n DbUtil.rollback(conn, pstmt);\n\t logger.error(\"Query : \" + INSERT_SERVICE_SQL);\n\t throw e;\n } finally {\n DbUtil.closeAll(conn, pstmt);\n }\n \n }",
"public void updateEditService(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tint serviceId = Integer.parseInt(params.get(\"serviceId\"));\r\n\t\tthis.getLog().info(\"serviceId:\" + serviceId);\r\n\t\t\r\n\t\tif(serviceId == 0){\r\n\t\t\teditService = new ServiceDTO();\r\n\t\t}else{\r\n\t\t\tfor (ServiceDTO s : this.getServiceList().getAvailableServiceList()) {\r\n\t\t\t\tif(s.getId() == serviceId){\r\n\t\t\t\t\teditService = s;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"void loadCurrentPrices() {\n for(SecurityRow row : allSecurities) {\n row.updateCurrentPrice();\n }\n fireTableRowsUpdated(0, allSecurities.size()-1);\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"private void lastUpdate(LocalDateTime ldt) {\n\n lastUpdated = timeFormatter(ldt);\n }",
"public java.lang.Long getTsUpdate() {\n return ts_update;\n }",
"@Override\n\tpublic void streamingServiceListUpdate() {\n\t\t\n\t}",
"public void updateAllSuggestionValuesForActivityRemoval(String serviceID){\n \n //For each previously included service\n for(Iterator it=listOfIncludedServices.iterator();it.hasNext();){\n ServiceInfo info = (ServiceInfo) it.next();\n //For each suggestionValue of each input of serviceInfo\n for(Iterator itInput = info.getInput().iterator();itInput.hasNext();){\n for(Iterator itSug = ((Input) itInput.next()).getSuggestedValue().iterator();itSug.hasNext();){\n SuggestionValue suggestionValue = (SuggestionValue) itSug.next();\n //If valueID of suggestionValue references some input/output of service being removed, remove it\n if(suggestionValue.getValueID().contains(serviceID))\n itSug.remove();\n }\n }\n }\n \n }",
"public double getUpdatePrice(double total) {\n\t\treturn 0;\n\t}",
"public static void saveTuvs(Connection p_connection, Collection<Tuv> p_tuvs, long p_jobId)\n throws Exception\n {\n PreparedStatement ps = null;\n\n try\n {\n Job job = ServerProxy.getJobHandler().getJobById(p_jobId);\n if (job != null && Job.JOB_TYPE_BLAISE.equals(job.getJobType()))\n {\n try\n {\n // For Blaise job, call method which is synchronized.\n saveTuvsForBlaiseJob(p_connection, p_tuvs, p_jobId);\n }\n catch (Exception be)\n {\n logger.error(\"Error when save TUVs \" + be.getMessage(), be);\n }\n return;\n }\n\n // Update the TUV sequence first despite below succeeding or\n // failure.\n SegmentTuTuvIndexUtil.updateTuvSequence(p_connection);\n\n String sql = SAVE_TUVS_SQL.replace(TUV_TABLE_PLACEHOLDER,\n BigTableUtil.getTuvTableJobDataInByJobId(p_jobId));\n ps = p_connection.prepareStatement(sql);\n\n Set<Long> tuIds = new HashSet<Long>();\n int batchUpdate = 0;\n List<TuTuvAttributeImpl> sidAttibutes = new ArrayList<TuTuvAttributeImpl>();\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n tuIds.add(tuv.getTuId());\n\n ps.setLong(1, tuv.getId());\n ps.setLong(2, tuv.getOrder());\n ps.setLong(3, tuv.getLocaleId());\n ps.setLong(4, tuv.getTu(p_jobId).getId());\n ps.setString(5, tuv.getIsIndexed() ? \"Y\" : \"N\");\n\n ps.setString(6, tuv.getSegmentClob());\n ps.setString(7, tuv.getSegmentString());\n ps.setInt(8, tuv.getWordCount());\n ps.setLong(9, tuv.getExactMatchKey());\n ps.setString(10, tuv.getState().getName());\n\n ps.setString(11, tuv.getMergeState());\n ps.setTimestamp(12, new java.sql.Timestamp(tuv.getTimestamp().getTime()));\n ps.setTimestamp(13, new java.sql.Timestamp(tuv.getLastModified().getTime()));\n ps.setString(14, tuv.getLastModifiedUser());\n ps.setTimestamp(15, new java.sql.Timestamp(tuv.getCreatedDate().getTime()));\n\n ps.setString(16, tuv.getCreatedUser());\n ps.setString(17, tuv.getUpdatedProject());\n // Since 8.6.1, always save SID into \"value_text\" column\n // of \"translation_tu_tuv_attr_x\" table, regardless its length.\n ps.setString(18, null);\n if (StringUtil.isNotEmpty(tuv.getSid()))\n {\n // Also save it in original table if not too long.\n if (tuv.getSid().length() < 254)\n {\n ps.setString(18, tuv.getSid());\n }\n\n TuTuvAttributeImpl sidAttr = new TuTuvAttributeImpl(tuv.getId(),\n TuTuvAttributeImpl.OBJECT_TYPE_TUV, TuTuvAttributeImpl.SID);\n sidAttr.setTextValue(tuv.getSid());\n sidAttibutes.add(sidAttr);\n }\n ps.setString(19, tuv.getSrcComment());\n ps.setLong(20, tuv.getRepetitionOfId());\n ps.setString(21, tuv.isRepeated() ? \"Y\" : \"N\");\n\n ps.addBatch();\n batchUpdate++;\n if (batchUpdate > DbUtil.BATCH_INSERT_UNIT)\n {\n ps.executeBatch();\n batchUpdate = 0;\n }\n }\n\n // execute the rest of the added batch\n if (batchUpdate > 0)\n {\n ps.executeBatch();\n }\n\n // Cache the TUVs for large pages when create jobs.\n if (tuIds.size() > 800)\n {\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n setTuvIntoCache(tuv);\n }\n }\n p_connection.commit();\n\n // Save SID into \"translation_tu_tuv_xx\" table.\n if (sidAttibutes.size() > 0)\n {\n SegmentTuTuvAttributeUtil.saveTuTuvAttributes(p_connection, sidAttibutes, p_jobId);\n }\n }\n catch (Exception e)\n {\n logger.error(\"Error when save TUVs \" + e.getMessage(), e);\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n removeTuvFromCache(tuv.getId());\n }\n throw e;\n }\n finally\n {\n DbUtil.silentClose(ps);\n }\n\n saveTuvPerplexity(p_connection, p_tuvs);\n }",
"public void saveService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().info(\" addService()\");\r\n\t \t\t\tserviceList.addNewServiceToDB(editService.getDisplayServiceName(), editService.getServiceName(), editService.getUrl());\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" updateService(\" + id + \")\");\r\n\t \t\t\tserviceList.updateAlgorithmParameterToDB(editService);\r\n\t \t\t}\r\n\t \t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"void updateProvisionedThroughput(DynamoTableConfig table) {\n\n\t\tif (table == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tProvisionedThroughput provisionedThroughput = this.getProvisionedThroughput(table);\n\t\tUpdateTableRequest request = new UpdateTableRequest()\n\t\t\t\t.withTableName(table.getTableName())\n\t\t\t\t.withProvisionedThroughput(provisionedThroughput);\n\n\t\tthis.dynamoClient.updateTable(request);\n\t}",
"@Override\r\n\tpublic int updateByPrimaryKeySelective(shopPet t) {\n\t\treturn 0;\r\n\t}",
"public Builder setTsUpdate(long value) {\n bitField0_ |= 0x00000400;\n tsUpdate_ = value;\n onChanged();\n return this;\n }",
"public void testUpdate() throws SQLException, ClassNotFoundException {\r\n\t\t// create an instance to be test\r\n\t\tDate d = Date.valueOf(\"2017-01-01\");\r\n\t\tService ser = new Service(\"employee\", 1, \"variation\", \"note\", d, d, 1, 1);\r\n\t\tmodelDS.insert(ser); \r\n\t\tint id = -1;\r\n\t\tLinkedList<Service> list = modelDS.findAll();\r\n\t\tfor (Service a : list) {\r\n\t\t\tif (a.equals(ser))\r\n\t\t\t\tid = a.getId();\r\n\t\t}\r\n\r\n\t\tService service = modelDS.findByKey(id);\r\n\t\tservice.setEmployee(\"newEmployee\");\r\n\t\tmodelDS.update(service);\r\n\r\n\t\t// database extrapolation\r\n\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT * FROM \" + TABLE_NAME + \" WHERE id = ?\");\r\n\t\tps.setInt(1, id);\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tService expected = null;\r\n\t\twhile (rs.next()) {\r\n\t\t\texpected = new Service();\r\n\t\t\texpected.setId(rs.getInt(\"id\"));\r\n\t\t\texpected.setEmployee(rs.getString(\"employee\"));\r\n\t\t\texpected.setQuantity(rs.getInt(\"quantity\"));\r\n\t\t\texpected.setVariation(rs.getString(\"variation\"));\r\n\t\t\texpected.setNote(rs.getString(\"note\"));\r\n\t\t\texpected.setReceiptDate(rs.getDate(\"receipt_date\"));\r\n\t\t\texpected.setReturnDate(rs.getDate(\"return_date\"));\r\n\t\t\texpected.setArticleId(rs.getInt(\"article_id\"));\r\n\t\t\texpected.setCustomerId(rs.getInt(\"customer_id\"));\r\n\t\t}\r\n\r\n\t\t// compare database result with the method tested\r\n\t\tassertNotNull(expected);\r\n\t\tassertNotNull(service);\r\n\t\tassertEquals(expected, service);\r\n\r\n\t\tmodelDS.remove(expected.getId()); // return to the initial state of the\r\n\t\t\t\t\t\t\t\t\t\t\t// database before test\r\n\t}",
"public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsList().get(i);\n attractionPrices += attraction.getPrice();\n }\n hotelPrice = diff(getEndDate(), getStartDate());\n price = getTravel().getPrice() + getHotel().getPrice()*(hotelPrice) \n + getTransport().getPrice()*getTravel().getDistance()\n + attractionPrices;\n }",
"@Transactional\r\n\tpublic void updateScore(Trip trip) {\n\t\t\r\n\t}",
"@Override\n\tpublic void updateSeatTable(seatTable st) {\n\t\t userdao.updateSeatTable(st);\n\t}",
"public java.lang.Long getTsUpdate() {\n return ts_update;\n }",
"public UpdatePricingRuleResult withService(String service) {\n setService(service);\n return this;\n }",
"public void populateHiveTable(GenericService genericService, String nonce) {\n // Get the current method name\n String methodName = new Throwable().getStackTrace()[0].getMethodName();\n\n // To time how long function takes to run\n Stopwatch stopwatch = Stopwatch.createStarted();\n\n String numberColName = \"number\";\n if (!genericService.getTableName().equals(\"blocks\")\n && !genericService.getTableName().equals(\"block_timestamp_mapping\")) {\n numberColName = \"block_number\";\n }\n\n String liveTableCols = genericService.getFieldDescriptors().stream()\n .map(s -> String.format(\"`%s`\", s.getName()))\n .collect(Collectors.joining(\",\"));\n\n // Generate all columns of table\n String columns = genericService.getFieldDescriptors().stream()\n .map(s -> String.format(\"a.`%s`\", s.getName()))\n .collect(Collectors.joining(\",\"));\n\n // Strict mode insertion (for multi-user environment)\n // Use this mode when multiple imports are happening at once\n// String sql =\n// \"INSERT INTO %s.%s (%s) \"\n// + \"SELECT %s FROM %s a \"\n// + \"LEFT OUTER JOIN %s.%s b ON a.%s = b.%s \"\n// + \"WHERE b.%s IS NULL\";\n// String query = String.format(\n// sql,\n// schema,\n// genericService.getTableName(),\n// liveTableCols,\n// columns,\n// genericService.getTmpTableName() + \"_\" + nonce,\n// schema,\n// genericService.getTableName(),\n// numberColName,\n// numberColName,\n// numberColName\n// );\n\n // Non-strict mode insertion\n String sql =\n \"INSERT INTO %s.%s (%s) \"\n + \"SELECT %s FROM %s a\";\n String query = String.format(\n sql,\n schema,\n genericService.getTableName(),\n liveTableCols,\n columns,\n genericService.getTmpTableName() + \"_\" + nonce\n );\n \n jdbcTemplate.execute(query);\n\n stopwatch.stop(); // Optional\n log.info(\"[{} - {}] -> Time elapsed: [{}] ms\",\n genericService.getTableName(),\n methodName,\n stopwatch.elapsed(TimeUnit.MILLISECONDS)\n );\n }",
"private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }",
"public static synchronized void saveTuvsForBlaiseJob(Connection p_connection,\n Collection<Tuv> p_tuvs, long p_jobId) throws Exception\n {\n PreparedStatement ps = null;\n\n try\n {\n // Update the TUV sequence first despite below succeeding or\n // failure.\n SegmentTuTuvIndexUtil.updateTuvSequence(p_connection);\n\n String sql = SAVE_TUVS_SQL.replace(TUV_TABLE_PLACEHOLDER,\n BigTableUtil.getTuvTableJobDataInByJobId(p_jobId));\n ps = p_connection.prepareStatement(sql);\n\n Set<Long> tuIds = new HashSet<Long>();\n int batchUpdate = 0;\n List<TuTuvAttributeImpl> sidAttibutes = new ArrayList<TuTuvAttributeImpl>();\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n tuIds.add(tuv.getTuId());\n\n ps.setLong(1, tuv.getId());\n ps.setLong(2, tuv.getOrder());\n ps.setLong(3, tuv.getLocaleId());\n ps.setLong(4, tuv.getTu(p_jobId).getId());\n ps.setString(5, tuv.getIsIndexed() ? \"Y\" : \"N\");\n\n ps.setString(6, tuv.getSegmentClob());\n ps.setString(7, tuv.getSegmentString());\n ps.setInt(8, tuv.getWordCount());\n ps.setLong(9, tuv.getExactMatchKey());\n ps.setString(10, tuv.getState().getName());\n\n ps.setString(11, tuv.getMergeState());\n ps.setTimestamp(12, new java.sql.Timestamp(tuv.getTimestamp().getTime()));\n ps.setTimestamp(13, new java.sql.Timestamp(tuv.getLastModified().getTime()));\n ps.setString(14, tuv.getLastModifiedUser());\n ps.setTimestamp(15, new java.sql.Timestamp(tuv.getCreatedDate().getTime()));\n\n ps.setString(16, tuv.getCreatedUser());\n ps.setString(17, tuv.getUpdatedProject());\n // Since 8.6.1, always save SID into \"value_text\" column\n // of \"translation_tu_tuv_attr_x\" table, regardless its length.\n ps.setString(18, null);\n if (StringUtil.isNotEmpty(tuv.getSid()))\n {\n // Also save it in original table if not too long.\n if (tuv.getSid().length() < 254)\n {\n ps.setString(18, tuv.getSid());\n }\n\n TuTuvAttributeImpl sidAttr = new TuTuvAttributeImpl(tuv.getId(),\n TuTuvAttributeImpl.OBJECT_TYPE_TUV, TuTuvAttributeImpl.SID);\n sidAttr.setTextValue(tuv.getSid());\n sidAttibutes.add(sidAttr);\n }\n ps.setString(19, tuv.getSrcComment());\n ps.setLong(20, tuv.getRepetitionOfId());\n ps.setString(21, tuv.isRepeated() ? \"Y\" : \"N\");\n\n ps.addBatch();\n batchUpdate++;\n if (batchUpdate > DbUtil.BATCH_INSERT_UNIT)\n {\n ps.executeBatch();\n batchUpdate = 0;\n }\n }\n\n // execute the rest of the added batch\n if (batchUpdate > 0)\n {\n ps.executeBatch();\n }\n\n // Cache the TUVs for large pages when create jobs.\n if (tuIds.size() > 800)\n {\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n setTuvIntoCache(tuv);\n }\n }\n p_connection.commit();\n\n // Save SID into \"translation_tu_tuv_xx\" table.\n if (sidAttibutes.size() > 0)\n {\n SegmentTuTuvAttributeUtil.saveTuTuvAttributes(p_connection, sidAttibutes, p_jobId);\n }\n }\n catch (Exception e)\n {\n logger.error(\"Error when save TUVs \" + e.getMessage(), e);\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n removeTuvFromCache(tuv.getId());\n }\n throw e;\n }\n finally\n {\n DbUtil.silentClose(ps);\n }\n\n saveTuvPerplexity(p_connection, p_tuvs);\n }",
"public long getTsUpdate() {\n return tsUpdate_;\n }",
"protected void StoreTPS(int id)\n\t{\n\t\t/*\n\t\t * called every second to store transactions count in that second and is fed to the \n\t\t * plotting framework later\n\t\t */\n\t\tTPSmethod1.put(id,Method1.invocationCounter);\n\t\tTPSmethod2.put(id,Method2.invocationCounter);\n\t\tTPSmethod3.put(id,Method3.invocationCounter);\n\t\tTPSmethod4.put(id,Method4.invocationCounter);\n\t\tTPSmethod5.put(id,Method5.invocationCounter);\n\t\tTPSmethod6.put(id,Method6.invocationCounter);\n\t}",
"public long getTsUpdate() {\n return tsUpdate_;\n }",
"@Override\n\tpublic Integer updateServices(com.easybooking.model.BookedServices services) {\n\t\tint i = 0 ;\n\t\tSessionFactory factory = HibernateUtil.getSesssionFactory();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(services);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\tfactory.close();\n\t\treturn i;\n\t}",
"private void updateStatsSCE(Customer currentCustomer){\n\t\tupdateQueueSize();\n\n\t\t/*\n\t\t * @TODO Step 4.2 - set the currentCustomer.serviceEndTime\n\t\t * Hint: use this.getSimTime() to get the current Time\n\t\t */\n\t}",
"public Timestamp getOriginalServiceData();",
"public void allActualValuesUpdated ();",
"private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}",
"public void updateTimestamp(@NotNull DataSource dataSource) {\n mySourceTimestamp = dataSource.getTimestamp();\n }",
"public void testUpdate() {\n TUpdate_Input[] PriceLists_update_in = new TUpdate_Input[] { PriceList_update };\n TUpdate_Return[] PriceLists_update_out = priceListService.update(PriceLists_update_in);\n // test if update was successful\n assertEquals(\"update result set\", 1, PriceLists_update_out.length);\n\n TUpdate_Return PriceList_update_out = PriceLists_update_out[0];\n assertNoError(PriceList_update_out.getError());\n assertEquals(\"updated?\", true, PriceList_update_out.getUpdated());\n }",
"public void fetchServices() {\n serviciosTotales.clear();\n for (String serviceId : serviceList) {\n databaseServiceReference.child(serviceId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Servicio servicioTemp = dataSnapshot.getValue(Servicio.class);\n serviciosTotales.add(servicioTemp);\n servicesAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n\n\n }",
"@Override\r\n\tpublic int updateByPrimaryKey(shopPet t) {\n\t\treturn 0;\r\n\t}",
"public final void updateLast() {\n if (this.lastQuestionnaire != null) {\n this.updateBy(this.lastQuestionnaire);\n }\n\n }",
"public void updateDistributionPointTSLData(Long tslDataId, String newDP) throws TSLManagingException {\n\n\t\ttry {\n\n\t\t\t// Obtenemos el TSLData de la BD.\n\t\t\tTslData td = null;\n\t\t\ttry {\n\t\t\t\ttd = ManagerPersistenceServices.getInstance().getManagerPersistenceConfigurationServices().getTslDataService().getTslDataById(tslDataId, false, false);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL190, new Object[ ] { tslDataId, newDP }), e);\n\t\t\t}\n\n\t\t\t// Si se encuentra en la BD se actualiza...\n\t\t\tif (td != null) {\n\t\t\t\t// Recuperamos la TSL Data de la caché.\n\t\t\t\tTSLDataCacheObject tdco = ConfigurationCacheFacade.tslGetTSLDataCacheObject(tslDataId);\n\n\t\t\t\t// Lo actualizamos en base de datos.\n\t\t\t\ttd.setUriTslLocation(newDP);\n\t\t\t\ttd = ManagerPersistenceServices.getInstance().getManagerPersistenceConfigurationServices().getTslDataService().saveTSL(td);\n\n\t\t\t\t// Lo actualizamos en la caché comaprtida.\n\t\t\t\tConfigurationCacheFacade.tslAddUpdateTSLData(td, tdco.getTslObject());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL190, new Object[ ] { tslDataId, newDP }), e);\n\t\t}\n\t}",
"public static void readResults(Service service, String jobsid, String serToken, String latestFile,\r\n\t\t\tResourceBundle props) {\r\n\r\n\t\tJob job = service.getJob(jobsid);\r\n\t\tint resultCount = job.getResultCount();\r\n\t\tlogger.info(\"Result count of job is: \" + resultCount);\r\n\t\tfloat runDuration = job.getRunDuration();\r\n\t\tfloat doneProgress = job.getDoneProgress();\r\n\t\tlogger.debug(\"Job done progress: \"+doneProgress);\r\n\t\t\r\n\t\tint offset = 0; // Start at result 0\r\n\t\tint count = 200000; // Get sets of 200000 results at a time\r\n\r\n\t\tString latestFileLocation = props.getString(\"latestLocation\") + latestFile;\r\n\t\tlogger.info(\"Location of latest file : \" + latestFileLocation);\r\n\t\tPrintWriter write;\r\n\r\n\t\ttry {\r\n\t\t\twrite = new PrintWriter(latestFileLocation);\r\n\t\t\twrite.write(\"UserId,IP_Address, Time\\n\");\r\n\r\n\t\t\t// Loop through each set of results\r\n\t\t\twhile (offset < resultCount) {\r\n\r\n\t\t\t\tservice.setToken(serToken);\r\n\t\t\t\tJobResultsArgs resultsArgs = new JobResultsArgs();\r\n\t\t\t\tresultsArgs.setOutputMode(JobResultsArgs.OutputMode.JSON);\r\n\t\t\t\tresultsArgs.setCount(count);\r\n\t\t\t\tresultsArgs.setOffset(offset);\r\n\r\n\t\t\t\t// Get the search results\r\n\t\t\t\tInputStream results = job.getResults(resultsArgs);\r\n\t\t\t\tResultsReaderJson resultsReader;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresultsReader = new ResultsReaderJson(results);\r\n\t\t\t\t\tHashMap<String, String> event;\r\n\t\t\t\t\twhile ((event = resultsReader.getNextEvent()) != null) {\r\n\r\n\t\t\t\t\t\tString resultEvent = \"\";\r\n\t\t\t\t\t\tfor (String key : event.keySet()) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Converting the time stamp attribute of splunk to\r\n\t\t\t\t\t\t\t * UTC from then to epoch format.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif ((\"_time\").equals(key)) {\r\n\t\t\t\t\t\t\t\tString sysTime = event.get(key);\r\n\t\t\t\t\t\t\t\tLocalDateTime ldt = LocalDateTime.parse(sysTime, DateTimeFormatter.ISO_ZONED_DATE_TIME);\r\n\t\t\t\t\t\t\t\tZoneId centralZoneId = ZoneId.of(\"US/Central\");\r\n\t\t\t\t\t\t\t\tZonedDateTime centralZonedDateTime = ldt.atZone(centralZoneId);\r\n\t\t\t\t\t\t\t\tZoneId UTCZoneId = ZoneId.of(\"UTC\");\r\n\t\t\t\t\t\t\t\tZonedDateTime UTCDateTime = centralZonedDateTime.withZoneSameInstant(UTCZoneId);\r\n\t\t\t\t\t\t\t\tString UTCTime = UTCDateTime.toString();\r\n\t\t\t\t\t\t\t\tLocalDateTime ldt2 = LocalDateTime.parse(UTCTime,\r\n\t\t\t\t\t\t\t\t\t\tDateTimeFormatter.ISO_ZONED_DATE_TIME);\r\n\t\t\t\t\t\t\t\tLong EpochTime = ldt2.toEpochSecond(ZoneOffset.UTC);\r\n\t\t\t\t\t\t\t\tresultEvent += EpochTime;\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tresultEvent += event.get(key) + \",\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\twrite.write(resultEvent);\r\n\t\t\t\t\t\twrite.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresultsReader.close();\r\n\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tlogger.error(\"Exception occrured in writing results to file : \" + e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Increase the offset to get the next set of results\r\n\t\t\t\toffset = offset + count;\r\n\t\t\t\tlogger.debug(\"Writing a set of \" + offset + \" results completed\");\r\n\t\t\t}\r\n\t\t\twrite.close();\r\n\t\t\tlogger.debug(\"Writing results completed\");\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tlogger.error(\" Output file not found : \" + e);\r\n\t\t}\r\n\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tHashMap<String, Object> messagesMap = (HashMap<String, Object>) job.get(\"messages\");// To get the errors and warnings of the job\r\n\r\n\t\t/*\r\n\t\t * Call to methods to compress file then gets the location of comressed\r\n\t\t * file and sendEmail method will use the location and sends an email to\r\n\t\t * the mailer.\r\n\t\t */\r\n\t\tString outputFileLocation = GZipFile.gzipIt(latestFileLocation);\r\n\t\tSendMail.sendEmail(outputFileLocation, resultCount, runDuration, doneProgress, messagesMap );\r\n\t}",
"public void update(long timestamp, double[] val)\n {\n SensorData old_data;\n SensorData new_data = new SensorData(timestamp, val);\n do {\n old_data = data.get();\n if (old_data != null && old_data.getTimestamp() >= new_data.getTimestamp()) {\n return; // could not update, other thread was faster\n }\n } while (!data.compareAndSet(old_data, new_data));\n\n }",
"@Override\n public void performUpdate() {\n this.getController().getDatabase().updateNumbersTest(\n this.getController().getPatID(), finalTime, 5);\n }",
"public void update(OpportunitiesPk pk, Opportunities dto) throws OpportunitiesDaoException\r\n\t{\r\n\t\tlong t1 = System.currentTimeMillis();\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\tStringBuffer sql = new StringBuffer();\r\n\t\t\tsql.append( \"UPDATE \" + getTableName() + \" SET \" );\r\n\t\t\tboolean modified = false;\r\n\t\t\tif (dto.isIdModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"id=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isSupplierIdModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"supplier_id=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isUniqueProductsModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"unique_products=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isPortfolioModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"portfolio=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isRecongnisationModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"recongnisation=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isKeyWordsModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"key_words=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateCreationModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"date_creation=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateModificationModified()) {\r\n\t\t\t\tif (modified) {\r\n\t\t\t\t\tsql.append( \", \" );\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\tsql.append( \"date_modification=?\" );\r\n\t\t\t\tmodified=true;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (!modified) {\r\n\t\t\t\t// nothing to update\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tsql.append( \" WHERE id=?\" );\r\n\t\t\tSystem.out.println( \"Executing \" + sql.toString() + \" with values: \" + dto );\r\n\t\t\tstmt = conn.prepareStatement( sql.toString() );\r\n\t\t\tint index = 1;\r\n\t\t\tif (dto.isIdModified()) {\r\n\t\t\t\tstmt.setInt( index++, dto.getId() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isSupplierIdModified()) {\r\n\t\t\t\tstmt.setInt( index++, dto.getSupplierId() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isUniqueProductsModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getUniqueProducts() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isPortfolioModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getPortfolio() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isRecongnisationModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getRecongnisation() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isKeyWordsModified()) {\r\n\t\t\t\tstmt.setString( index++, dto.getKeyWords() );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateCreationModified()) {\r\n\t\t\t\tstmt.setTimestamp(index++, dto.getDateCreation()==null ? null : new java.sql.Timestamp( dto.getDateCreation().getTime() ) );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif (dto.isDateModificationModified()) {\r\n\t\t\t\tstmt.setTimestamp(index++, dto.getDateModification()==null ? null : new java.sql.Timestamp( dto.getDateModification().getTime() ) );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tstmt.setInt( index++, pk.getId() );\r\n\t\t\tint rows = stmt.executeUpdate();\r\n\t\t\treset(dto);\r\n\t\t\tlong t2 = System.currentTimeMillis();\r\n\t\t\tSystem.out.println( rows + \" rows affected (\" + (t2-t1) + \" ms)\" );\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new OpportunitiesDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public void updateTask(int tid,String title,String detail,int money,String type,int total_num,int current_num,Timestamp start_time,Timestamp end_time,String state);",
"@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }",
"public void saveServiceStatusInfo(ServiceInfo serviceInfo){\n serviceInfoRepository.save(serviceInfo);\n }",
"boolean hasTsUpdate();",
"@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}",
"@Override\n protected ServiceWrapper doInBackground(ServiceWrapper... params) {\n ServiceWrapper serviceWrapper = null;\n\n for (ServiceWrapper tag : params) {\n saveService(tag, commonPersonObjectClient.entityId(), providerId, null);\n //list.add(tag);\n //serviceId=tag.getServiceType().getId()+\"\";\n //tag.getDbKey();\n ServiceSchedule.updateOfflineAlerts(tag.getType(), commonPersonObjectClient.entityId(), Utils.dobToDateTime(commonPersonObjectClient));\n serviceWrapper = tag;\n }\n return serviceWrapper;\n\n// RecurringServiceRecordRepository recurringServiceRecordRepository = ImmunizationLibrary.getInstance().recurringServiceRecordRepository();\n// List<ServiceRecord> serviceRecordList = recurringServiceRecordRepository.findByEntityId(commonPersonObjectClient.entityId());\n//\n// RecurringServiceTypeRepository recurringServiceTypeRepository = ImmunizationLibrary.getInstance().recurringServiceTypeRepository();\n// List<ServiceType> serviceTypes = recurringServiceTypeRepository.fetchAll();\n// String[] alertArray = VaccinateActionUtils.allAlertNames(serviceTypes);\n//\n// AlertService alertService = ImmunizationLibrary.getInstance().context().alertService();\n// List<Alert> alertList = alertService.findByEntityIdAndAlertNames(commonPersonObjectClient.entityId(), alertArray);\n//\n// return Triple.of(list, serviceRecordList, alertList);\n\n }",
"private void updates() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Update update: updates) {\n \tupdate.init();\n }\n }",
"public void update( long timestamp, Number value );",
"@Override\n synchronized public void resetTimestamps() {\n //TODO call TDS to reset timestamps\n }",
"public void testSaveTableByTimeWithTxTemplateInService() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 3\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksFailing2();\n\n\t\tCollection<Callable<Object>> tasks = new ArrayList<>();\n\t\ttasks.addAll(tasks1);\n\t\ttasks.addAll(tasks2);\n\n\t\trunTasks(executor, tasks);\n\n\t\tshutdownExecutor(executor);\n\t\tlogger.info(\"I have {} Tables saved\", getCountTableServiceFailing());\n\t}",
"@JsonSetter(\"product_timestamps\")\n public void setProductTimestamps (ProductTimestamps value) { \n this.productTimestamps = value;\n }",
"public void reback(){\n \n try{ \n cnx = DriverManager.getConnection(url, user,pass);\n String sql = \"SELECT DISTINCT (t1.codigo_producto),(t1.categoria),(t1.producto), t1.unidades FROM tabla_aux t1 INNER JOIN (SELECT producto, MAX(Unidades) as unidades FROM tabla_aux GROUP BY producto) t2 ON t1.producto = t2.producto AND t1.unidades = t2.unidades ORDER BY t1.producto DESC\";\n Statement st = cnx.prepareStatement(sql);\n ResultSet res = st.executeQuery(sql);\n \n while (res.next()){\n ID = res.getString(1); \n MK = res.getString(2); \n MD = res.getString(3); \n UD = res.getInt(4);\n Class.forName(\"com.mysql.jdbc.Driver\"); \n conI = DriverManager.getConnection(url, user,pass);\n String query = \"update producto set Unidades = ? where codigo_producto = ? && categoria = ? && producto = ?\";\n PreparedStatement preparedStmt = conI.prepareStatement(query);\n preparedStmt.setInt (1, UD);\n preparedStmt.setString (2, ID);\n preparedStmt.setString (3, MK);\n preparedStmt.setString (4, MD);\n preparedStmt.executeUpdate();\n }\n Connection conex = DriverManager.getConnection(url, user, pass);\n String Qury = \"TRUNCATE tabla_aux\";\n Statement sts = conex.createStatement();\n sts.executeUpdate(Qury);\n }\n catch(SQLException ex){JOptionPane.showMessageDialog(this,ex);} catch (ClassNotFoundException ex) {\n Logger.getLogger(hacer_ventas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\r\n\tpublic void update(snstatus sns) {\n\t\tsuper.getHibernateTemplate().update(sns); \r\n\t}",
"@Required\n\tpublic void setTargetService(TargetService service) {\n\t\tthis.targetService = service;\n\t}",
"public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}",
"@Test\n public void updateTest13() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setWifi(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true , servizio.isWifi() ,\"Should return true if update Servizio\");\n }",
"public void updateServiceNameList(){\n for(String key: serviceList.keySet()){\n serviceNameList.put(key, serviceList.get(key).getServiceName());\n }\n }",
"private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void addtoDB(String plate,String date,double km,ObservableList<Service> serv){\n \n plate = convertToDBForm(plate);\n \n try {\n stmt = conn.createStatement();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n if(!checkTableExists(plate)){ \n try {\n stmt.execute(\"CREATE TABLE \" + plate + \"(DATA VARCHAR(12),QNT DOUBLE,DESC VARCHAR(50),PRICE DOUBLE,KM DOUBLE);\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n for(int i=0;i<serv.size();i++){\n \n double qnt = serv.get(i).getQnt();\n String desc = serv.get(i).getDesc();\n double price = serv.get(i).getPrice();\n \n try {\n stmt.executeUpdate(\"INSERT INTO \" + plate + \" VALUES('\" + date + \"',\" + Double.toString(qnt) + \",'\" + desc + \"',\" + Double.toString(price) + \",\" + Double.toString(km) + \");\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n try {\n stmt.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }",
"public void updateLastNewAvaliableTSLFindData(long tslDataId, Date date) throws TSLManagingException {\n\n\t\ttry {\n\n\t\t\t// Obtenemos el TSLData de la BD.\n\t\t\tTslData td = null;\n\t\t\ttry {\n\t\t\t\ttd = ManagerPersistenceServices.getInstance().getManagerPersistenceConfigurationServices().getTslDataService().getTslDataById(tslDataId, false, false);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL192, new Object[ ] { tslDataId, UtilsDate.toString(UtilsDate.FORMAT_DATE, date) }), e);\n\t\t\t}\n\n\t\t\t// Si se encuentra en la BD se actualiza\n\t\t\tif (td != null) {\n\t\t\t\t// Recuperamos la TSL Data de la caché.\n\t\t\t\tTSLDataCacheObject tdco = ConfigurationCacheFacade.tslGetTSLDataCacheObject(tslDataId);\n\n\t\t\t\t// Lo actualizamos en base de datos.\n\t\t\t\ttd.setLastNewTSLAvailableFind(date);\n\t\t\t\ttd = ManagerPersistenceServices.getInstance().getManagerPersistenceConfigurationServices().getTslDataService().saveTSL(td);\n\n\t\t\t\t// Lo actualizamos en la caché comaprtida.\n\t\t\t\tConfigurationCacheFacade.tslAddUpdateTSLData(td, tdco.getTslObject());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL192, new Object[ ] { tslDataId, UtilsDate.toString(UtilsDate.FORMAT_DATE, date) }), e);\n\t\t}\n\n\t}",
"@Scheduled(fixedDelay = 10000)\n @Transactional\n @Override\n public void updatedExpiredTradesStatus() {\n tradeRepository.updateExpiredTradesStatus();\n }",
"protected Boolean updateSystemMetadata(SystemMetadata sysMeta, Map<String, String> tableMap)\n throws DataAccessException {\n\n Boolean updated = new Boolean(false);\n\n // Is the pid valid? (required)\n final Identifier pid = sysMeta.getIdentifier();\n if (pid.getValue() == null) {\n throw new DataAccessException(new InvalidSystemMetadata(\"0000\",\n \"Identifier cannot be null\"));\n\n }\n\n // Is the size set? (required)\n final BigInteger size = sysMeta.getSize();\n if (size == null) {\n throw new DataAccessException(new InvalidSystemMetadata(\"0000\", \"Size cannot be null\"));\n\n }\n\n // Is the checksum set? (required)\n final Checksum checksum = sysMeta.getChecksum();\n if (checksum == null) {\n throw new DataAccessException(new InvalidSystemMetadata(\"0000\",\n \"Checksum cannot be null\"));\n\n }\n\n final SystemMetadata finalSysMeta = sysMeta;\n final String sysMetaTable = tableMap.get(SYSMETA_TABLE);\n final String smReplPolicyTable = tableMap.get(SM_POLICY_TABLE);\n final String smReplStatusTable = tableMap.get(SM_STATUS_TABLE);\n final String xmlAccessTable = tableMap.get(ACCESS_TABLE);\n\n updated = txTemplate.execute(new TransactionCallback<Boolean>() {\n\n @Override\n public Boolean doInTransaction(TransactionStatus status) {\n\n boolean success = false;\n // update the system metadata table\n String sqlStatement = getSysMetaUpdateStatement(sysMetaTable);\n Map<String, Object> sysMetaMap = extractSystemMetadataAttrs(finalSysMeta,\n sysMetaTable);\n Object[] values = getSysMetaAttrValues(sysMetaMap);\n int[] types = getSysMetaAttrTypes();\n int sysMetaRows = jdbcTemplate.update(sqlStatement, values, types);\n if (sysMetaRows == 1) {\n success = true;\n }\n\n // Update the smreplicationpolicy table\n ReplicationPolicy replPolicy = finalSysMeta.getReplicationPolicy();\n int totalReplPolicies = 0;\n int updatedReplPolicies = 0;\n\n if (replPolicy != null) {\n List<NodeReference> preferredNodes = replPolicy.getPreferredMemberNodeList();\n List<NodeReference> blockedNodes = replPolicy.getBlockedMemberNodeList();\n\n // first remove listed policy entries\n if (preferredNodes != null || blockedNodes != null) {\n jdbcTemplate.update(\"DELETE FROM \" + smReplPolicyTable + \" WHERE guid = ?\",\n new Object[] { pid.getValue() });\n }\n\n // count the number of total policies needed to be updated\n if (preferredNodes != null) {\n totalReplPolicies = totalReplPolicies + preferredNodes.size();\n\n // then update the preferred entries\n for (NodeReference preferredNode : preferredNodes) {\n String preferredNodeStr = preferredNode.getValue();\n int preferredRows = jdbcTemplate.update(\"INSERT INTO \"\n + smReplPolicyTable\n + \" (guid, member_node, policy) VALUES (?, ?, ?);\",\n new Object[] { pid.getValue(), preferredNodeStr, \"preferred\" },\n new int[] { java.sql.Types.LONGVARCHAR, java.sql.Types.VARCHAR,\n java.sql.Types.VARCHAR });\n updatedReplPolicies += preferredRows;\n }\n\n }\n\n if (blockedNodes != null) {\n totalReplPolicies = totalReplPolicies + blockedNodes.size();\n\n // then update the blocked entries\n for (NodeReference blockedNode : blockedNodes) {\n int blockedRows = jdbcTemplate.update(\"INSERT INTO \"\n + smReplPolicyTable\n + \" (guid, member_node, policy) VALUES (?, ?, ?);\",\n new Object[] { pid.getValue(), blockedNode.getValue(),\n \"blocked\" }, new int[] { java.sql.Types.LONGVARCHAR,\n java.sql.Types.VARCHAR, java.sql.Types.VARCHAR });\n updatedReplPolicies += blockedRows;\n\n }\n\n }\n\n // did we update what we were supposed to?\n if (updatedReplPolicies == totalReplPolicies) {\n success = true;\n\n } else {\n success = false;\n log.error(\"For identifier \" + pid.getValue() + \", only \"\n + updatedReplPolicies + \"replication policies of \"\n + totalReplPolicies + \"were inserted.\");\n\n }\n }\n\n // Update the smreplicationstatus table\n List<Replica> replicas = finalSysMeta.getReplicaList();\n int totalReplicas = 0;\n int updatedReplicas = 0;\n\n if (replicas != null) {\n totalReplicas = totalReplicas + replicas.size();\n\n // first remove listed replicas\n jdbcTemplate.update(\"DELETE FROM \" + smReplStatusTable + \" WHERE guid = ?\",\n new Object[] { pid.getValue() });\n\n for (Replica replica : replicas) {\n int replicaRows = jdbcTemplate\n .update(\"INSERT INTO \"\n + smReplStatusTable\n + \" (guid, member_node, status, date_verified) VALUES (?, ?, ?, ?)\",\n new Object[] {\n pid.getValue(),\n (replica.getReplicaMemberNode().getValue()),\n replica.getReplicationStatus().toString(),\n new Timestamp(replica.getReplicaVerified()\n .getTime()) }, new int[] {\n java.sql.Types.LONGVARCHAR, java.sql.Types.VARCHAR,\n java.sql.Types.VARCHAR, java.sql.Types.TIMESTAMP });\n updatedReplicas += replicaRows;\n }\n\n }\n\n if (updatedReplicas == totalReplicas) {\n success = true;\n\n } else {\n success = false;\n log.error(\"For identifier \" + pid.getValue() + \", only \" + updatedReplicas\n + \"replicas of \" + totalReplicas + \"were inserted.\");\n\n }\n\n // Update the xml_access table\n AccessPolicy accessPolicy = finalSysMeta.getAccessPolicy();\n int updatedAccessRows = 0;\n int numberOfSubjects = 0;\n List<AccessRule> accessRules = new ArrayList<AccessRule>();\n\n if (accessPolicy != null) {\n accessRules = accessPolicy.getAllowList();\n\n // first delete existing rules for this pid\n jdbcTemplate.update(\"DELETE FROM \" + xmlAccessTable + \" WHERE guid = ?\",\n new Object[] { pid.getValue() });\n\n // add the new rules back in\n for (AccessRule accessRule : accessRules) {\n List<Subject> subjects = accessRule.getSubjectList();\n numberOfSubjects += subjects.size();\n List<Permission> permissions = accessRule.getPermissionList();\n // convert permissions from text to int\n Integer perm = null;\n for (Permission permission : permissions) {\n if (perm != null) {\n perm |= convertPermission(permission);\n\n } else {\n perm = convertPermission(permission);\n }\n\n }\n\n for (Subject subject : subjects) {\n int accessRows = jdbcTemplate.update(\"INSERT INTO \" + xmlAccessTable\n + \" (guid, principal_name, permission, perm_type, perm_order) \"\n + \" VALUES (?, ?, ?, ?, ?)\", new Object[] { pid.getValue(),\n subject.getValue(), perm, \"allow\", \"allowFirst\" }, new int[] {\n java.sql.Types.LONGVARCHAR, java.sql.Types.VARCHAR,\n java.sql.Types.INTEGER, java.sql.Types.VARCHAR,\n java.sql.Types.VARCHAR });\n updatedAccessRows += accessRows;\n }\n }\n\n // Determine success for access policy updates\n if (updatedAccessRows == numberOfSubjects) {\n success = true;\n\n } else {\n success = false;\n log.error(\"For identifier \" + pid.getValue() + \", only \"\n + updatedAccessRows + \"replicas of \" + numberOfSubjects\n + \"were inserted.\");\n\n }\n\n }\n\n // rollback if we don't succeed on all calls\n // status.setRollbackOnly(); // seems to only trigger rollback, no commit\n return new Boolean(success);\n }\n\n });\n\n return updated;\n\n }",
"DescribeServiceUpdatesResult describeServiceUpdates(DescribeServiceUpdatesRequest describeServiceUpdatesRequest);",
"@Test\n public void updateTest5() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setWifi(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isWifi() ,\"Should return true if update Servizio\");\n }",
"@Override\r\n\tpublic void updateInsPrdPeriod(TopInsPrdPeriodInfo topInsPrdPeriodInfo) {\n\t\ttopInsPrdPeriodInfoMapper.updateTopInsPeriodInfo(topInsPrdPeriodInfo);\r\n\t}",
"@Transactional\n\t@Override\n\tpublic Paradero update(Paradero t) throws Exception {\n\t\treturn paraderoRespository.save(t);\n\t}"
] | [
"0.53790355",
"0.51910925",
"0.51687723",
"0.51297283",
"0.51243293",
"0.51057816",
"0.49966383",
"0.49774867",
"0.4879725",
"0.48226067",
"0.47697613",
"0.475958",
"0.46911678",
"0.4683508",
"0.4671004",
"0.46609446",
"0.46520758",
"0.46447945",
"0.46345058",
"0.46340093",
"0.4632567",
"0.4578232",
"0.45769525",
"0.45728555",
"0.4567119",
"0.4550681",
"0.45307985",
"0.4517212",
"0.45171896",
"0.45068604",
"0.44934866",
"0.4488603",
"0.4476644",
"0.4463683",
"0.44620174",
"0.44620174",
"0.4459104",
"0.44494984",
"0.44460598",
"0.44405207",
"0.4430614",
"0.44242918",
"0.4420208",
"0.4416569",
"0.44106838",
"0.44075316",
"0.44043833",
"0.43938258",
"0.43902493",
"0.4387868",
"0.43865293",
"0.43802536",
"0.43799838",
"0.4370108",
"0.43552363",
"0.4351457",
"0.43513483",
"0.434757",
"0.4341649",
"0.4336753",
"0.43221754",
"0.4316985",
"0.43059638",
"0.43056676",
"0.4300108",
"0.42906973",
"0.42869022",
"0.42719164",
"0.42603493",
"0.4256356",
"0.4253808",
"0.42495075",
"0.4242956",
"0.4238597",
"0.4233688",
"0.4232411",
"0.42297527",
"0.42286813",
"0.42278478",
"0.42253888",
"0.4222449",
"0.42182827",
"0.42175335",
"0.4214397",
"0.42095992",
"0.420815",
"0.42079",
"0.4202791",
"0.42011848",
"0.42007363",
"0.41942596",
"0.41923162",
"0.41869432",
"0.4180943",
"0.41777772",
"0.41760045",
"0.41752198",
"0.4175038",
"0.4162932",
"0.41580978"
] | 0.61616606 | 0 |
Insert data to tps_service table | public static void loadTpsService(final int envId, int conponentId , float tpsVaule, float latencyValue) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
TpsServiceEntity tpsService = new TpsServiceEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(envId);
tpsService.setEnvironment(environment);
tpsService.setLastUpdated(new java.sql.Timestamp(System.currentTimeMillis()));
ComponentEntity component = new ComponentEntity();
component.setComponentId(conponentId);
tpsService.setComponent(component);
tpsService.setLaunchDate(new java.sql.Timestamp(System.currentTimeMillis()));
tpsService.setTpsValue(tpsVaule);
tpsService.setLatencyValue(latencyValue);
session.save(tpsService);
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert(Service servico){\n Database.servico.add(servico);\n }",
"public void addtoDB(String plate,String date,double km,ObservableList<Service> serv){\n \n plate = convertToDBForm(plate);\n \n try {\n stmt = conn.createStatement();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n if(!checkTableExists(plate)){ \n try {\n stmt.execute(\"CREATE TABLE \" + plate + \"(DATA VARCHAR(12),QNT DOUBLE,DESC VARCHAR(50),PRICE DOUBLE,KM DOUBLE);\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n for(int i=0;i<serv.size();i++){\n \n double qnt = serv.get(i).getQnt();\n String desc = serv.get(i).getDesc();\n double price = serv.get(i).getPrice();\n \n try {\n stmt.executeUpdate(\"INSERT INTO \" + plate + \" VALUES('\" + date + \"',\" + Double.toString(qnt) + \",'\" + desc + \"',\" + Double.toString(price) + \",\" + Double.toString(km) + \");\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n try {\n stmt.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }",
"public void insert(int serverId, \n List<ServiceInfo> serviceList, \n ServiceRuntimeRegistry runtimeRegistry) throws Exception {\n \n conn = pool.getConnection();\n logger.debug(\"Query : \" + INSERT_SERVICE_SQL);\n PreparedStatement pstmt = conn.prepareStatement(INSERT_SERVICE_SQL, \n Statement.RETURN_GENERATED_KEYS);\n ResultSet resultSet = null;\n \n try {\n for(int i = 0; i < serviceList.size(); i++) {\n ServiceInfo info = serviceList.get(i);\n \n DbUtil.setValue2Pstmt(pstmt, logger, 1, serverId);\n DbUtil.setValue2Pstmt(pstmt, logger, 2, info.getUrl());\n DbUtil.setValue2Pstmt(pstmt, logger, 3, \"not supported\");\n DbUtil.setValue2Pstmt(pstmt, logger, 4, info.getClassName());\n \n \n if(info.getMBeanClassName() == null) {\n DbUtil.setNull2Pstmt(pstmt, logger, 5, Types.VARCHAR);\n \n } else {\n DbUtil.setValue2Pstmt(pstmt, logger, 5, info.getMBeanClassName());\n }\n DbUtil.setValue2Pstmt(pstmt, logger, 6, info.getExecType());\n \n pstmt.executeUpdate();\n \n int newId;\n resultSet = pstmt.getGeneratedKeys();\n \n if(resultSet.next()) {\n newId = resultSet.getInt(1);\n } else {\n throw new SQLException(\"auto id is not retievied.\");\n }\n \n ServiceRuntimeInfo runInfo = runtimeRegistry.getServiceRuntimeInfo(info.getUrl());\n runInfo.setServiceRuntimeId(newId);\n }\n conn.commit();\n \n } catch(Exception e) {\n DbUtil.rollback(conn, pstmt);\n\t logger.error(\"Query : \" + INSERT_SERVICE_SQL);\n\t throw e;\n } finally {\n DbUtil.closeAll(conn, pstmt);\n }\n \n }",
"private void insertServiceRequest() {\n Random rand = new Random();\r\n service_id = rand.nextInt(Integer.MAX_VALUE);\r\n int tokenSeed = rand.nextInt(Integer.MAX_VALUE);\r\n current_token = md5(tokenSeed + \"\");\r\n\r\n Calendar cal = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\r\n String fecha = sdf.format(cal.getTime());\r\n\r\n int deliver_state = 1;\r\n\r\n int costo = (int) Math.round(destinations.get(0).total_price);\r\n\r\n ArrayList<String> param = new ArrayList<>();\r\n param.add(service_id + \"\");\r\n param.add(current_token);\r\n param.add(fecha);\r\n param.add(deliver_state + \"\");\r\n param.add(id_cliente + \"\");\r\n param.add(costo + \"\");\r\n param.add(\"0\");\r\n RestClient.get().executeCommand(\"8\", param.toString(), new Callback<Response>() {\r\n @Override\r\n public void success(Response response, retrofit.client.Response response2) {\r\n\r\n insertRoutes();\r\n }\r\n\r\n @Override\r\n public void failure(RetrofitError error) {\r\n hideOverlay();\r\n showDialog(\r\n getResources().getString(\r\n R.string.msg_serverError_title),\r\n getResources().getString(\r\n R.string.msg_serverError), false, false);\r\n }\r\n });\r\n\r\n\r\n }",
"void insert(ServiceSegmentModel serviceSegment);",
"private void insertServiceSQLite(ArrayList<ServiceModel> servicesModel) {\n db.execSQL(\"DELETE FROM \" + DBSQLite.TABLE_PRICE_SERVICE\n + \" WHERE \" + DBSQLite.KEY_PRICE_SERVICE_IS_OFFER + \"=0\");\n db.execSQL(\"DELETE FROM \" + DBSQLite.TABLE_SERVICE);\n\n for (ServiceModel serviceModel : servicesModel) {\n ContentValues serviceContent = new ContentValues();\n\n serviceContent.put(DBSQLite.KEY_SERVICE_ID, serviceModel.getId());\n serviceContent.put(DBSQLite.KEY_SERVICE_NAME, serviceModel.getName());\n serviceContent.put(DBSQLite.KEY_SERVICE_DESCRIPTION, serviceModel.getDescription());\n serviceContent.put(DBSQLite.KEY_SERVICE_IMAGE, serviceModel.getImage());\n serviceContent.put(DBSQLite.KEY_SERVICE_RESERVED, serviceModel.getReserved());\n serviceContent.put(DBSQLite.KEY_SERVICE_ID_TYPE, serviceModel.getIdType());\n serviceContent.put(DBSQLite.KEY_SERVICE_NAME_TYPE, serviceModel.getNameType());\n serviceContent.put(DBSQLite.KEY_SERVICE_VALUE_TYPE, serviceModel.getValueType());\n\n if (db.insert(DBSQLite.TABLE_SERVICE, null, serviceContent) == -1)\n System.out.println(\"Ocurrio un error al inserar la consulta en ServiceModel\");\n\n serviceServicePrice.insertServicePriceSQLite(serviceModel.getServicePrice());\n }\n }",
"@Override\n\tpublic Integer insertServices(com.easybooking.model.BookedServices services) {\n\t\tint i = 0 ;\n\t\tSessionFactory factory = HibernateUtil.getSesssionFactory();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(services);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\tfactory.close();\n\t\treturn i;\n\t}",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }",
"@Override\r\n\t@Transactional\r\n\tpublic void doService() {\n\t\tTbookingrecord booking = new Tbookingrecord();\r\n\t\tbooking.setId(Long.valueOf(31622L));\r\n\t\tbooking.setInstrumentid(2);\r\n\t\tbooking.setUserid(3);\r\n\t\tmappper.insertSelective(booking);\r\n\t\tlogger.debug(booking);\r\n\t\t//int i = 1/0;\r\n\t}",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }",
"@Override\n\tpublic int insertTrading(TradingVO tvo) {\n\t\treturn sql.insert(\"insertTrading\", tvo);\n\t}",
"private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }",
"@Override\n\tpublic void insertSanCtn(Map<String, String> params) throws SQLException {\n\t\t\n\t}",
"private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }",
"void batchInsert(@Param(\"serviceSegments\") List<ServiceSegmentModel> serviceSegments);",
"public static void insertTreatment(String trtName,int cost,String date,String start,String partner){\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"INSERT INTO Treatment VALUES(?,?,?,?,?);\");\r\n\t\t\tstmt.setString(1, trtName);\r\n\t\t\tstmt.setString(2, String.valueOf(cost));\r\n\t\t\tstmt.setString(3, date);\r\n\t\t\tstmt.setString(4, start);\r\n\t\t\tstmt.setString(5, partner);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }",
"private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }",
"public void insertSiteStats (SiteStatisticsVO data) throws DataServiceException;",
"private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }",
"@Override\n\tpublic int addStationstoServices(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceStationId(serviceDTO.getSourceStationId());\n\t\tserviceDomain.setDestinationStationId(serviceDTO.getDestinationStationId());\n\t\tserviceDomain.setServiceId(serviceDTO.getServiceId());\n\t\tSystem.out.println(serviceDTO.getServiceId());\n\t\t//System.out.println(serviceDTO.getDestinationStationId());\n\t\treturn iStationToService.addServiceToStation(serviceDomain);\n\t}",
"public void syncUpService(JSONObject obj) {\n ArrayList<ServiceModel> serviceModel = getServiceModelJSON(obj);\n insertServiceSQLite(serviceModel);\n }",
"public void insert(int id, String name,double cost,String description){\r\n \tService service = new Service();\r\n \tservice.setId(id);\r\n \tservice.setName(name);\r\n \tservice.setCost(cost);\r\n \tservice.setDescription(description);\r\n \tsession.save(service);\r\n \tsession.beginTransaction().commit();\r\n }",
"public void addStaff(String name, String dob, String email, String number, String address, String password) throws SQLException { //code for add-operation \n st.executeUpdate(\"INSERT INTO IOTBAY.STAFF \" + \"VALUES ('\" \n + name + \"', '\" + dob + \"', '\" \n + email + \"', '\" + number+ \"', '\" \n + address + \"', '\" + password + \"')\");\n\n }",
"public void insert(final Trip t) throws SQLException {\n long v;\n if(t.hasVehicle()) {\n v = t.getVehicle();\n if(v > vehicle) {\n vehicle = v + 1;\n }\n } else {\n v = vehicle++;\n }\n stmt.setLong(1, t.getPickupTime());\n stmt.setLong(2, v);\n stmt.setLong(3, t.getDropoffTime());\n stmt.setDouble(4, t.getPickupLat());\n stmt.setDouble(5, t.getPickupLon());\n stmt.setDouble(6, t.getDropoffLat());\n stmt.setDouble(7, t.getDropoffLon());\n stmt.executeUpdate();\n }",
"private void createStatementForServiceInformationMessages() {\n val epl = \"insert into ServiceInformationMessage(publisherID, serviceName, accuracy, measurementTime, availableAttributes, sourceLocationLatitude, sourceLocationLongitude, sourceLocationAltitude, sourceLocationAccuracy, sourceLocationTimestamp, gatewaySpeed, measurementInterval, numericalResolution) select publisherID, serviceName, avg(accuracy), avg(measurementTime), avg(availableAttributes), avg(sourceLocationLatitude), avg(sourceLocationLongitude), avg(sourceLocationAltitude), avg(sourceLocationAccuracy), avg(sourceLocationTimestamp),avg(gatewaySpeed), avg(measurementInterval), avg(numericalResolution) from Message.win:time(\" + TIME_WINDOW + \") group by publisherID, serviceName\";\n epsStatementServiceInformationMessages = epAdmin.createEPL(epl);\n epsStatementServiceInformationMessages.start();\n }",
"public void testInsert() throws SQLException, ClassNotFoundException {\r\n\t\t// create an instance to be test\r\n\t\tDate d = Date.valueOf(\"2017-01-01\");\r\n\t\tService service = new Service(\"employee\", 1, \"variation\", \"note\", d, d, 1, 1);\r\n\t\tmodelDS.insert(service); // method to test\r\n\r\n\t\t// database extrapolation\r\n\t\tPreparedStatement ps = connection.prepareStatement(\"SELECT * FROM \" + TABLE_NAME + \" WHERE employee = ?\");\r\n\t\tps.setString(1, \"employee\");\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\tService expected = null;\r\n\t\twhile (rs.next()) {\r\n\t\t\texpected = new Service();\r\n\t\t\texpected.setId(rs.getInt(\"id\"));\r\n\t\t\texpected.setEmployee(rs.getString(\"employee\"));\r\n\t\t\texpected.setQuantity(rs.getInt(\"quantity\"));\r\n\t\t\texpected.setVariation(rs.getString(\"variation\"));\r\n\t\t\texpected.setNote(rs.getString(\"note\"));\r\n\t\t\texpected.setReceiptDate(rs.getDate(\"receipt_date\"));\r\n\t\t\texpected.setReturnDate(rs.getDate(\"return_date\"));\r\n\t\t\texpected.setArticleId(rs.getInt(\"article_id\"));\r\n\t\t\texpected.setCustomerId(rs.getInt(\"customer_id\"));\r\n\t\t}\r\n\r\n\t\t// compare database result with the method tested\r\n\t\tassertNotNull(expected);\r\n\t\tassertNotNull(service);\r\n\t\tassertEquals(expected, service);\r\n\r\n\t\tmodelDS.remove(expected.getId()); // return to the initial state of the\r\n\t\t\t\t\t\t\t\t\t\t\t// database before test\r\n\t}",
"@Override\n\tpublic int insertOrderTrading(Order_TradingVO otvo) {\n\t\treturn sql.insert(\"insertOrderTrading\", otvo);\n\t}",
"@Override\r\n\tpublic void insert(List<MonitoredSupermarket> msList, int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"insert into monitored_supermarket(id_user,id_supermarket) values(?, ?)\";\r\n\r\n\t\tint insertsNumber = msList.size();\r\n\r\n\t\ttry{\r\n\t\t\tps = con.prepareStatement(query);\r\n\r\n\t\t\tfor(int i = 0; i < insertsNumber; i++){\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tps.setInt(1, userId);\r\n\t\t\t\t\tps.setInt(2, msList.get(i).getId_supermarket().getId_supermarket());\r\n\t\t\t\t\tps.executeUpdate();\r\n\t\t\t\t}catch (SQLException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} \t\r\n\t\t\t}\r\n\t\t} finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t\treturn;\r\n\r\n\t}",
"int insert(SvcStoreBeacon record);",
"public void insert(VRpHrStp record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_HR_STP.ibatorgenerated_insert\", record);\r\n }",
"int insertDptTask(DptTaskInfo dptTaskInfo);",
"void addService(Long orderId, Long serviceId);",
"int insert(CmstTransfdevice record);",
"int insert(R_dept_trade record);",
"public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\");\n\n Service serviceRequest = new ServiceCategories(serviceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.child(serviceName).setValue(serviceRequest);\n\n }",
"public void insert(VRpDyTrxTotal record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_TRX_TOTAL.ibatorgenerated_insert\", record);\r\n }",
"public void insert(taxi ta)throws ClassNotFoundException,SQLException\r\n {\n String taxino=ta.getTaxino();\r\n String drivername=ta.getDrivername();\r\n String driverno=ta.getDriverno();\r\n String taxitype=ta.getTaxitype();\r\n String state=ta.getState();\r\n String priority=ta.getPriority();\r\n connection= dbconnection.createConnection();\r\nString sqlString=\"INSERT INTO taxi (taxino,drivername,driverno,taxitype,state,priority) VALUES ('\"+taxino+\"','\"+drivername+\"','\"+driverno+\"','\"+taxitype+\"','\"+state+\"','\"+priority+\"')\";\r\n PreparedStatement preparedStmt = connection.prepareStatement(sqlString); \r\n preparedStmt.execute(); \r\n connection.close();\r\n \r\n }",
"protected void importIntoTable(HttpLogData data) throws Exception {\n Db db = getDb();\n st_insert_temp_table.setString(1, data.domain_name);\n st_insert_temp_table.setString(2, data.category);\n st_insert_temp_table.setString(3, data.site_name);\n st_insert_temp_table.setObject(4, null);\n st_insert_temp_table.setTimestamp(5, DateHelper.sql(data.datetime));\n st_insert_temp_table.setLong(6, data.time_taken);\n st_insert_temp_table.setInt(7, getOrCreateAuthorizationId(data.authorization));\n st_insert_temp_table.setLong(8, data.volume_client_to_server);\n st_insert_temp_table.setLong(9, data.volume_server_to_client);\n st_insert_temp_table.setInt(10, data.http_status);\n st_insert_temp_table.setString(11, data.user_agent);\n st_insert_temp_table.setString(12, data.agent_version);\n st_insert_temp_table.setInt(13, data.type);\n st_insert_temp_table.setString(14, data.ip_client);\n st_insert_temp_table.setString(15, obfuscateUsername(data.user_name));\n st_insert_temp_table.setString(16, data.mime_type);\n st_insert_temp_table.setBoolean(17, data.intranet);\n st_insert_temp_table.setString(18, data.path);\n st_insert_temp_table.setInt(19, data.specificFileWithoutReferer ? 1 : 0);\n st_insert_temp_table.setInt(20, data.robotsTxt ? 1 : 0);\n db.executeUpdate(st_insert_temp_table);\n }",
"int insert(TCpySpouse record);",
"void insert(CTelnetServers record);",
"public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;",
"int insert(TblBTSSysFunctionDO record);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();",
"private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }",
"public void saveService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().info(\" addService()\");\r\n\t \t\t\tserviceList.addNewServiceToDB(editService.getDisplayServiceName(), editService.getServiceName(), editService.getUrl());\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" updateService(\" + id + \")\");\r\n\t \t\t\tserviceList.updateAlgorithmParameterToDB(editService);\r\n\t \t\t}\r\n\t \t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"int insert(cskaoyan_mall_order_goods record);",
"int insertSelective(SvcStoreBeacon record);",
"int insert(AfterServiceSheet record);",
"@Transactional\n\tpublic void insert(UserMtl userMtl,Integer idt){\n\t\tTree pasteT = owsSession.getSourceT();\n\t\tlog.debug(idt);\n\t\tlog.debug(pasteT);\n\t\tinsert(idt,pasteT,idt);\n\t}",
"int insert(CptDataStore record);",
"private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }",
"public void insertOrdertable(int rorderId, java.util.Date rorderDate, int clientId, double totalPrice, String paymentMethod, String transactionId, String pinNumber, String address) throws SQLException {\r\n\r\n connection = Database.getConnection();\r\n String queryRo = \"insert into order_table (order_id, order_date, client_id, total_price, payment_method, transaction_id, pin_number, delivery_address, order_status)\"\r\n + \" values (?,?,?,?,?,?,?,?,?)\";\r\n PreparedStatement pstm1 = connection.prepareStatement(queryRo);\r\n pstm1.setInt(1, rorderId);\r\n pstm1.setDate(2, (Date) rorderDate);\r\n pstm1.setInt(3, clientId);\r\n pstm1.setDouble(4, totalPrice);\r\n pstm1.setString(5, paymentMethod);\r\n pstm1.setString(6, transactionId);\r\n pstm1.setString(7, pinNumber);\r\n pstm1.setString(8, address);\r\n pstm1.setString(9, \"Accepted\");\r\n\r\n int addRo = pstm1.executeUpdate();\r\n\r\n String qureyRol = \"INSERT INTO order_line (order_serial, order_id, client_id, product_id, quantity, total, date )\"\r\n + \"SELECT rorder_serial, rorder_id, client_id, product_id, quantity, total, date \\n\"\r\n + \"FROM requested_orderline\\n\"\r\n + \"WHERE (rorder_id=\" + rorderId + \")\";\r\n PreparedStatement pstm2 = connection.prepareStatement(qureyRol);\r\n int q = pstm2.executeUpdate();\r\n\r\n String update = \"update requested_order set order_status='Accepted' where rorderid=\"+rorderId+\"\";\r\n PreparedStatement pstm3 = connection.prepareStatement(update);\r\n int u = pstm3.executeUpdate();\r\n\r\n pstm1.close();\r\n pstm2.close();\r\n pstm3.close();\r\n\r\n Database.close(connection);\r\n //return arr2;\r\n }",
"private void insertData() {\n\n for (int i = 0; i < 3; i++) {\n ProveedorEntity proveedor = factory.manufacturePojo(ProveedorEntity.class);\n BonoEntity entity = factory.manufacturePojo(BonoEntity.class);\n int noOfDays = 8;\n Date dateOfOrder = new Date();\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n Date date = calendar.getTime();\n entity.setExpira(date);\n noOfDays = 1;\n calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n date = calendar.getTime();\n entity.setAplicaDesde(date);\n entity.setProveedor(proveedor);\n em.persist(entity);\n ArrayList lista=new ArrayList<>();\n lista.add(entity);\n proveedor.setBonos(lista);\n em.persist(proveedor);\n pData.add(proveedor);\n data.add(entity); \n }\n }",
"@Override\n\tpublic int addService(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceId(serviceDTO.getSourceId());\n\t\tserviceDomain.setDestinationId(serviceDTO.getDestinationId());\n\t\tserviceDomain.setNoOfSeats(serviceDTO.getNoOfSeats());\n\t\tserviceDomain.setFare(serviceDTO.getFare());\n\t\tserviceDomain.setDistance(serviceDTO.getDistance());\n\t\tserviceDomain.setJourneyDate(serviceDTO.getJourneyDate());\n\t\tserviceDomain.setArrivalTime(serviceDTO.getArrivalTime());\n\t\tserviceDomain.setDepartureTime(serviceDTO.getDepartureTime());\n\t\tserviceDomain.setStatus(serviceDTO.getStatus());\n\t\treturn iServiceDAO.addService(serviceDomain);\n\t}",
"void addService(ServiceInfo serviceInfo);",
"void insert(PaymentTrade record);",
"@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}",
"public void insertData(String tableName) {\n //SQL statement\n String query = \"insert into \" + tableName +\n \"(\" +\n \"myName, address) \" +\n \"values ('Michael', 'my adress'), \" +\n \"('Nanna', 'Her adress'), \" +\n \"('Mathias', 'Their adress'), \" +\n \"('Maja', 'Their adress')\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Data inserted into table \" + tableName + \"--\");\n } catch (SQLException ex) {\n //Handle SQL exceptions\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }",
"private void insertaTS(String sToken, int sTipo) {\n tSimbolos[tabla_idx] = new TablaSimbolos(sToken, sTipo, 1);\n tabla_idx++;\n }",
"public void addTicket(phonecallTicket ticket){\n try {\n \n System.out.println(\"Number of tickets? \" + (total()+1));\n String insert =\"INSERT INTO JEREMY.TICKET \"\n + \"(ID,NAME,PHONE,TAG,DATE,PROBLEM,NOTES,STATUS) \"\n + \"VALUES \"\n \n + \"(\" + (total() +1) +\",'\"\n +ticket.who+\"','\"\n +ticket.phone+\"','\"\n +ticket.tag+\"',' \"\n +ticket.date+\"',' \"\n +ticket.problem+\"',' \"\n +ticket.notes+\"','\"\n +\"NEW\"+\"')\";\n \n System.out.println(insert);\n \n stmt.executeUpdate(insert);\n \n rs = stmt.executeQuery(\"SELECT * FROM JEREMY.TICKET\");\n total();\n } catch (Exception e) {\n System.out.println(\"SQL problem \" + e);\n }\n tickets.add(ticket);\n }",
"public void addServiceType(ServiceType serviceType){\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\tsession.saveOrUpdate(serviceType);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t}",
"void insertCustomerDDPay(CustomerDDPay cddp);",
"int insert(FctWorkguide record);",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service ajoutService(sn.ucad.master.assurance.bo.Service service) {\n\t\treturn serviceRepository.save(service);\r\n\t}",
"public abstract void createTables() throws DataServiceException;",
"public void insertBillDrink(Bill billDrink) {\n\tString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n\n\ttry {\n\t\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\t\tps.setString(1, null);\n\t\t\tps.setInt(2, billDrink.getIdD());\n\t\t ps.setInt(3, billDrink.getIdE());\n\t\t\tps.setDouble(4, billDrink.getPrice());\n\t\t\tps.setString(5, billDrink.getSerialNumber());\n\t\t\tps.setDouble(6, billDrink.getTotal());\n\t\t\tps.execute();\n\t\t \n\t\t \n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\n}\n\t\n}",
"public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServiceBtn());\r\n\t\tselServiceBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ServicesPage\") , \"Services Page \");\r\n\t\tServicesPage svpage=new ServicesPage();\r\n\t\tsvpage.selectServices();\r\n\t\t\r\n\t}",
"public static synchronized boolean insert (Ticket t) {\n\t\t\t\n\t\tString firstName = t.getFirstName();\n\t\tString lastName = t.getLastName();\n\t\tint eventId = t.getEvent().getUniqueId();\n\t\tint numberOfSeats = t.getNumberOfSeats();\n\t\tboolean isSuccessful = false;\t\t\n\t\t\n\t\tif (TicketTDG.checkAvailableSeating(eventId, numberOfSeats)) {\n\t\t\ttry {\n\t\t\t\tisSuccessful = TicketTDG.insert(firstName, lastName, eventId, numberOfSeats);\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn isSuccessful;\n\t}",
"@Override\n\tpublic void insertTask(DetailedTask dt) throws SQLException, ClassNotFoundException\n\t{\n\t\t Gson gson = new Gson();\n\t\t Connection c = null;\n\t\t Statement stmt = null;\n\t\t \n\t\t Class.forName(\"org.postgresql.Driver\");\n\t\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t\t c.setAutoCommit(false);\n\t\t \n\t\t logger.info(\"Opened database successfully (insertTask)\");\n\n\t\t stmt = c.createStatement();\n\t\t String sql = \"INSERT INTO task (status, id, description, strasse, plz, ort, latitude, longitude,\"\n\t\t + \" typ, information, auftragsfrist, eingangsdatum, items, hilfsmittel, images) \"\n\t\t + \"VALUES ('\"+dt.getStatus()+\"', \"+dt.getId()+\", '\"+dt.getDescription()+\"', '\"\n\t\t +dt.getStrasse()+\"', \"+dt.getPlz()+\", '\"+dt.getOrt()+\"', \"+dt.getLatitude()+\", \"\n\t\t +dt.getLongitude()+\", '\"+dt.getType()+\"', '\"+dt.getInformation()+\"', \"+dt.getAuftragsfrist()\n\t\t +\", \"+dt.getEingangsdatum()+\", '\"+gson.toJson(dt.getItems())+\"', '\"\n\t\t +gson.toJson(dt.getHilfsmittel())+\"', '\"+dt.getImages()+\"' );\";\n\n\t\t stmt.executeUpdate(sql);\n\n\t\t stmt.close();\n\t\t c.commit();\n\t\t c.close();\n\t\t \n\t\t logger.info(\"Task inserted successfully\");\n\t }",
"public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"int insert(ProcurementSource record);",
"int insert(Assist_table record);",
"public void insertData() throws SQLException, URISyntaxException, FileNotFoundException {\n\t \t\t//On vide la base en premier\n\t \t\tdropDB();\n\t \t\t\n\t \t\t//Fichier contenant les jeux de test\n\t \t\tBufferedReader br = new BufferedReader(new FileReader(\"./data.txt\"));\n\t \t \n\t \t PreparedStatement pstmt = null;\n\t \t Connection conn = null;\n\t \t int id;\n\t \t String lastname, firstname, cardNumber, expirationMonth, expirationYear, cvv, query;\n\t \t try {\n\t \t conn = this.connectToBDD();\n\t \t \n\t \t String line = null;\n\t \t \n\t \t //On lit le fichier data.txt pour inserer en base\n\t \t while((line=br.readLine()) != null) {\n\t \t \t String tmp[]=line.split(\",\");\n\t \t \t id=Integer.parseInt(tmp[0]);\n\t\t\t \t lastname=tmp[1];\n\t\t\t \t firstname=tmp[2];\n\t\t\t \t cardNumber=tmp[3];\n\t\t\t \t expirationMonth=tmp[4];\n\t\t\t \t expirationYear=tmp[5];\n\t\t\t \t cvv=tmp[6];\n\t\t\t \t \n\t\t\t \t //Insertion des clients\n\t\t\t \t query = \"INSERT INTO consumer VALUES(\"+ id + \",'\" +firstname+\"','\"+lastname+\"')\";\n\t\t\t \t \n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t\t\t \t \n\t\t\t \t \n\t\t\t \t //Insertion des comptes\n\t\t\t \t query = \"INSERT INTO account (card_number, expiration_month, expiration_year, cvv, remain_balance, consumer_id) \"\n\t\t \t\t\t\t+ \"VALUES ('\"+cardNumber+\"','\"+expirationMonth+\"','\"+expirationYear+\"','\"+cvv+\"',300,\"+id+\")\";\n\t\t\t \t\n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t \t }\n\t \t \n\t \t \n\t \t } catch (Exception e) {\n\t \t System.err.println(\"Error: \" + e.getMessage());\n\t \t e.printStackTrace();\n\t \t }\n\t \t }",
"int insert(FinancialManagement record);",
"int insert(GoodsPo record);",
"int insert(TbSerdeParams record);",
"public int insertSensorData(DataValue dataVal) throws Exception;",
"private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }",
"public interface RecustomerTableService extends Service<RecustomerTable> {\n List<RecustomerTable> selectUsers();\n\n int insertByRebackUser(RecustomerTable recustomerTable);\n}",
"public void insertReservation(TestDto testDto) throws Exception;",
"public void insertBillFood(Bill billFood) {\nString sql = \"INSERT INTO bills ( Id_food, Id_drink, Id_employees, Price, Serial_Number_Bill, TOTAL ) VALUES (?,?,?,?,?,?)\";\n \ntry {\n\tPreparedStatement ps = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t \n\t\n\t\tps.setInt(1, billFood.getIdF());\n\t\tps.setString(2,null);\n\t ps.setInt(3, billFood.getIdE());\n\t\tps.setDouble(4, billFood.getPrice());\n\t\tps.setString(5, billFood.getSerialNumber());\n\t\tps.setDouble(6, billFood.getTotal());\n\t\tps.execute();\n\t\t\n\t\n\t \n} catch (SQLException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n}\n\n\t\n\t\n}",
"public void insert(AsxDataVO entity) {\n\t\tmongoTemplate.insert(entity); \r\n\t}",
"public void insertIntoDadoAws(String query, Double porcentagem, Integer fkHardware, Integer fkComputador) throws IOException {\n erro = false;\n try{\n conAws.update(query, porcentagem, fkHardware, fkComputador);\n } catch (CannotGetJdbcConnectionException ex) {\n //Logger.getLogger(ControllerDashboard.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Nao foi encontrado um banco de dados local.\");\n logger.gravarDadosLog(\"ERRO\",\"INSERT\" , \"Não foi possivel inserir dados no banco de dados local.\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n String hardware = \"\";\n switch (fkHardware) {\n case 1:\n hardware = \"CPU\";\n break;\n case 2:\n hardware = \"RAM\";\n break;\n case 3:\n hardware = \"GPU\";\n break;\n case 4:\n hardware = \"Disco 1\";\n break;\n case 5:\n hardware = \"Disco 2\";\n break;\n case 6:\n hardware = \"Disco 3\";\n break;\n }\n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"INSERT\" , \"O dado coletado de \" + hardware + \"(\" + porcentagem + \"%) foi registrado com sucesso no banco de dados local.\");\n }\n erro = false;\n }",
"@Override\n\tpublic int insert(Sptasts sptasts) {\n\t\tConnection conn = this.connectionManager.openConnection();\n\t\t//锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷\n\t\tTransactionManager.conn = conn;\n\t\tTransactionManager.beginTransaction();\n\t\t\n\t\t//锟斤拷锟斤拷锟斤拷锟�\n\n\t\t//Date posttime=sptasts.getPosttime();\n\t\tString saname =sptasts.getSaname();\n\t\tString satype =sptasts.getSatype();\n\t\tint sastate =sptasts.getSastate();\n\t\tString samark = sptasts.getSamark();\n\t\tString saresource =sptasts.getSaresource();\n\t\tint uid=sptasts.getUid();\n\t\t\n\t\t\n\t\t\n\t\n\t\t//锟斤拷锟斤拷锟接Qo拷锟斤拷锟斤拷模锟斤拷\n\t\tString strSQL = \"insert into sptasts values(null,now(),?,?,?,?,?,?)\";\n\t\tObject[] params = new Object[]{saname,satype,sastate,samark,saresource,uid};\n\t\t// 锟斤拷锟斤拷dbutils锟斤拷锟襟,诧拷锟斤拷锟斤拷execothers锟斤拷锟斤拷实锟斤拷锟斤拷菘锟斤拷锟斤拷硬锟斤拷锟斤拷锟�\n\t\tint affectedRows = this.dbUtils.execOthers(conn, strSQL, params);\n\t\t//锟斤拷锟斤拷锟揭伙拷锟斤拷慕锟斤拷锟斤拷锟斤拷锟接︼拷锟斤拷锟斤拷锟斤拷锟�\n\t\tif(affectedRows > 0){\n\t\t\t// 锟结交锟斤拷锟斤拷\n\t\t\tTransactionManager.commit();\n\t\t}else{\n\t\t\t// 锟截癸拷锟斤拷锟斤拷\n\t\t\tTransactionManager.rollback();\n\t\t}\n\t\treturn affectedRows;\n\t}",
"int insert(SPerms record);",
"int insert(DashboardGoods record);",
"int insert(SmtOrderProductAttributes record);",
"int insert(TblMotherSon record);",
"int insertSelective(CptDataStore record);",
"public abstract void insert(DataAction data, DataRequest source) throws ConnectorOperationException;",
"public void insert(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createInsert(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Insert \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t}",
"int insert(TmpUserPayAccount record);",
"void insert(IrpSignInfo record) throws SQLException;",
"void insertSelective(CTelnetServers record);",
"int insert(SysCode record);",
"int insert(TVmManufacturer record);",
"@Insert({\n \"insert into PURCHASE (ID, SDATE, \",\n \"STYPE, SMONEY, TOUCHING, \",\n \"ACCOUNT, CHECKSTATUS, \",\n \"DEMO1, DEMO2, DEMO3)\",\n \"values (#{id,jdbcType=DECIMAL}, #{sdate,jdbcType=TIMESTAMP}, \",\n \"#{stype,jdbcType=VARCHAR}, #{smoney,jdbcType=DECIMAL}, #{touching,jdbcType=VARCHAR}, \",\n \"#{account,jdbcType=VARCHAR}, #{checkstatus,jdbcType=DECIMAL}, \",\n \"#{demo1,jdbcType=DECIMAL}, #{demo2,jdbcType=VARCHAR}, #{demo3,jdbcType=DECIMAL})\"\n })\n int insert(Purchase record);",
"private void insertData() {\n for (int i = 0; i < 3; i++) {\n RecipeEntity books = factory.manufacturePojo(RecipeEntity.class);\n em.persist(books);\n data.add(books);\n }\n }",
"@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}",
"int insert(SysTeam record);"
] | [
"0.6506049",
"0.6410547",
"0.6279275",
"0.622018",
"0.6128207",
"0.61275387",
"0.610157",
"0.6094975",
"0.6043704",
"0.60269314",
"0.60137063",
"0.6013334",
"0.5968216",
"0.59435445",
"0.5926684",
"0.5925264",
"0.5906023",
"0.584411",
"0.5836716",
"0.581771",
"0.5784648",
"0.57343906",
"0.5725083",
"0.5710475",
"0.57070524",
"0.5690602",
"0.56754196",
"0.5644477",
"0.56216866",
"0.56181425",
"0.56084925",
"0.5608183",
"0.55878615",
"0.55591613",
"0.5558222",
"0.5557628",
"0.55440307",
"0.5541398",
"0.5540608",
"0.55398214",
"0.5535137",
"0.551772",
"0.5515858",
"0.551194",
"0.55043024",
"0.55035853",
"0.5501678",
"0.54935354",
"0.5492316",
"0.548383",
"0.5471794",
"0.546749",
"0.54534674",
"0.5445671",
"0.54420495",
"0.54367554",
"0.54362226",
"0.5433338",
"0.54313254",
"0.5428227",
"0.5409803",
"0.5405812",
"0.5400321",
"0.5394956",
"0.53946686",
"0.53890824",
"0.538519",
"0.53846693",
"0.5380049",
"0.5379708",
"0.5378636",
"0.5372579",
"0.53718525",
"0.53697693",
"0.5368554",
"0.53678775",
"0.53598297",
"0.53594947",
"0.53537714",
"0.53517",
"0.53450114",
"0.5342485",
"0.53351974",
"0.53242004",
"0.53187066",
"0.5316394",
"0.5313119",
"0.530848",
"0.53048253",
"0.5302561",
"0.5298865",
"0.5297842",
"0.5296797",
"0.52966857",
"0.5293993",
"0.5293784",
"0.52914816",
"0.52897054",
"0.5285404",
"0.52851605",
"0.528102"
] | 0.0 | -1 |
Get the current tps_latency_history details of the environment | public static Map<Integer, List<Float>> getTpsLatencyHsitory(int envId, String platform) {
String queryStr = null;
if(platform.equals("K8s")){
queryStr = HQLConstants.GET_K8S_TPS_LAT_HISTORY;
}else if(platform.equals("Mesos")){
queryStr = HQLConstants.GET_MESOS_TPS_LAT_HISTORY;
}else{
logger.error("Not a valid platform");
}
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(queryStr);
query.setInteger("envId", envId);
query.setDate("statusDate", todayDate);
@SuppressWarnings("unchecked")
List<Object[]> resultList = query.list();
txn.commit();
Map<Integer, List<Float>> mapTpsLat = new HashMap<Integer, List<Float>>();
List<Float> listTpsLat = null;
for(Object[] resultObj : resultList){
Float tpsValue = (Float)resultObj[0];
Float latencyValues = (Float)resultObj[1];
Integer comId = (Integer)resultObj[2];
listTpsLat = new ArrayList<Float>();
listTpsLat.add(tpsValue);
listTpsLat.add(latencyValues);
mapTpsLat.put(comId, listTpsLat);
}
return mapTpsLat;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadK8sTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sTpsLatHistoryEntity tpsLabHis = new K8sTpsLatHistoryEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsLabHis.setEnvironment(environment);\n\t\ttpsLabHis.setStatusDate(todayDate);\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsLabHis.setComponent(component);\n\t\ttpsLabHis.setTpsValue(tpsVaule);\n\t\ttpsLabHis.setLatencyValue(latencyValue);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"public static void loadTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsLatHistoryEntity tpsLabHis = new TpsLatHistoryEntity();\n\t\tsetTPSLatencyHistory(envId, conponentId, tpsVaule, latencyValue, todayDate, tpsLabHis);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"public String getTotal_latency() {\n return total_latency;\n }",
"public Long getTotal_latency() {\n return total_latency;\n }",
"public long getLatency() {\n return latency;\n }",
"public Double latency() {\n return this.latency;\n }",
"public String getAvg_latency() {\n return avg_latency;\n }",
"public abstract long getTrace();",
"java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();",
"public Long getAvg_latency() {\n return avg_latency;\n }",
"public static void updateTpsLatHistory(final int envId, int componentId, float tpsVaule, float latencyValue, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());\n\t\t\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setFloat(\"tpsVaule\", tpsVaule);\n\t\tquery.setFloat(\"latencyValue\", latencyValue);\n\t\tquery.setLong(\"compId\", componentId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public Integer getCurrentLapsTime() {\n\t\treturn this.currentAction.getCurrentLapsTime();\n\t}",
"public float[] getCountHistory() {\n return countMonitor.getHistory();\n }",
"public BigDecimal getTotalLatency() {\n return totalLatency;\n }",
"private double pingGetLatency(){\n\t\t int NUMBER_OF_PACKTETS=10;\n\t String pingCommand = \"/system/bin/ping -c \" + NUMBER_OF_PACKTETS + \" \" + ip;\n\t String inputLine = \"\";\n\t double avgRtt = 0;\n\n\t try {\n\t // execute the command on the environment interface\n\t Process process = Runtime.getRuntime().exec(pingCommand);\n\t // gets the input stream to get the output of the executed command\n\t BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t inputLine = bufferedReader.readLine();\n\t while ((inputLine != null)) {\n\t if (inputLine.length() > 0 && inputLine.contains(\"avg\")) { // when we get to the last line of executed ping command\n\t break;\n\t }\n//\t \t if (inputLine.length()>0) inputLine = bufferedReader.readLine();\n\t inputLine = bufferedReader.readLine();\n\t }\n\t }\n\t catch (IOException e){\n\t \t pingParameters=\"Error in ping\";\n\t e.printStackTrace();\n\t }\n\n\t // Extracting the average round trip time from the inputLine string\n\t String afterEqual = inputLine.substring(inputLine.indexOf(\"=\"), inputLine.length()).trim();\n\t String afterFirstSlash = afterEqual.substring(afterEqual.indexOf('/') + 1, afterEqual.length()).trim();\n\t String strAvgRtt = afterFirstSlash.substring(0, afterFirstSlash.indexOf('/'));\n\t avgRtt = Double.valueOf(strAvgRtt);\n\t pingParameters=inputLine;\n\t return avgRtt;\n\t }",
"com.google.protobuf.Timestamp getCurrentStateTime();",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }",
"org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry getTelemetry();",
"public Map<String, Map<String, List<Long>>> getLatenciesByInteraction() {\n return latenciesByStateAndInteraction;\n }",
"public String getMax_latency() {\n return max_latency;\n }",
"public int getLaps() {\n\t\treturn meanTimes.size() + 1;\n\t}",
"public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p.toString().split(\",\");\r\n\r\n for (String string : split) {\r\n pw.println(string);\r\n }\r\n\r\n return sw.toString();\r\n }",
"protected double[] getCurrentSteps() {\n// final int speedSteps = mPowerProfile.getNumSpeedSteps(); //amount of CPU working Frequents\n final int speedSteps = 10;\n final double[] powerCpuNormal = new double[speedSteps];\n for (int p = 0; p < speedSteps; p++) {\n// powerCpuNormal[p] = mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE, p);\n powerCpuNormal[p] = 100 * (p + 1);\n }\n\n return powerCpuNormal;\n }",
"public Long getMax_latency() {\n return max_latency;\n }",
"private List<Performance> quizHistory(){\n\t\treturn history;\n\t}",
"public java.util.List<java.lang.Integer> getTLLs() {\n return TLLs;\n }",
"public Long getLock_latency() {\n return lock_latency;\n }",
"public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }",
"public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}",
"public String getCurrentThreadTimeInfo() {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\tif(!bean.isCurrentThreadCpuTimeSupported())\n\t\t\treturn timeInfo;\n\t\tlong userTime = bean.getCurrentThreadUserTime();\n\t\tlong cpuTime = bean.getCurrentThreadCpuTime();\n\n\t\tsb.append(userTime).append(\"#\").append(cpuTime);\n\t\ttimeInfo = sb.toString();\n//\t\tSystem.out.println(\"lib: \" + timeInfo);\n\t\treturn timeInfo;\n\t}",
"public java.util.List<java.lang.Integer> getTLLs() {\n return TLLs;\n }",
"@Override\n\tpublic ITrace getCurrentTrace() {\n\t\treturn tracePerThread.get();\n\t}",
"public ArrayList<Integer> getPointsHistory() {\n return pointsHistory;\n }",
"public BigDecimal getAvgLatency() {\n return avgLatency;\n }",
"public String getOdlOpenflowMeterstats2() throws SnmpStatusException;",
"public static long getCumulativeLatencyMs() {\n\t\treturn requestsCumulativeLatency.longValue();\n\t}",
"public com.sybase.persistence.BigString getCvpOperationLobs()\n {\n \n if(__cvpOperationLobs==null)\n {\n \t__cvpOperationLobs = new com.sybase.persistence.internal.BigStringImpl(this, \"cvpOperationLobs\");\n }\n return __cvpOperationLobs;\n }",
"String getTraceabilityNotes();",
"public String getTrace() {\n return trace;\n }",
"public CallLog[] getCallHistoryForAddress(Address addr);",
"com.google.protobuf.TimestampOrBuilder getCurrentStateTimeOrBuilder();",
"public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry getTelemetry() {\n return telemetry_;\n }",
"@Override\n\tpublic String[] getUserPowerT() {\n\t\treturn um.getUserPowerT();\n\t}",
"public int getLastTimetable() {\n return lastTimetable;\n }",
"public List<TPStatsInfo> getTPStats() {\n List<TPStatsInfo> tpstats = new ArrayList<>();\n Iterator<Map.Entry<String, JMXEnabledThreadPoolExecutorMBean>> threads = nodeProbe.getThreadPoolMBeanProxies();\n while (threads.hasNext()) {\n Map.Entry<String, JMXEnabledThreadPoolExecutorMBean> thread = threads.next();\n JMXEnabledThreadPoolExecutorMBean threadPoolProxy = thread.getValue();\n tpstats.add(new TPStatsInfo(thread.getKey(), threadPoolProxy.getActiveCount(),\n threadPoolProxy.getPendingTasks(), threadPoolProxy.getCompletedTasks(),\n threadPoolProxy.getCurrentlyBlockedTasks(), threadPoolProxy.getTotalBlockedTasks()));\n }\n return tpstats;\n }",
"void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }",
"public String getLoadInfo()\n {\n return ssProxy.getLoadInfo();\n }",
"public CallLog[] getCallLogs();",
"public List<String> getTelemetryList() {\n List<String> telemetryList = new ArrayList<String>();\n if (this.getTelemetrys().isEmpty()) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n for (TelemetryChartRef chartRef : client.getChartIndex().getTelemetryChartRef()) {\n getTelemetrys().put(chartRef.getName(), client.getChartDefinition(chartRef.getName()));\n }\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n telemetryList.addAll(this.getTelemetrys().keySet());\n Collections.sort(telemetryList);\n return telemetryList;\n }",
"protected int[] getMacBatteryLevel() {\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(new String[]{\"pmset\",\"-g\",\"ps\"});\n\t\t\tp.waitFor();\n\t\t\ttry(BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()))) {\n\t\t\t\tbr.readLine();\n\t\t\t\tString line = br.readLine();\n\t\t\t\tline = line.substring(line.indexOf('\\t')+1);\n\t\t\t\tString[] data = line.split(\";\");\n\t\t\t\tint[] result = new int[3];\n\t\t\t\tresult[0] = Integer.parseInt(data[0].substring(0,data[0].indexOf('%')));\n\t\t\t\tresult[1] = (data[1].endsWith(\"discharging\")?1:(data[1].endsWith(\"charging\")?2:0));\n\t\t\t\tif(data[2].endsWith(\"remaining\")) {\n\t\t\t\t\tdata[2]=data[2].trim();\n\t\t\t\t\tdata[2]=data[2].substring(0,data[2].indexOf(' '));\n\t\t\t\t\tresult[2] = (Integer.parseInt(data[2].substring(0,data[2].indexOf(':')))*3600) + (Integer.parseInt(data[2].substring(data[2].indexOf(':')+1))*60);\n\t\t\t\t} else {\n\t\t\t\t\tresult[2]=-1;\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t} catch (IOException | InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }",
"public String getTraceInformation() {\n\t\treturn (traceInformation);\n\t}",
"public List<TrajectoryInfo> getAllTrajectories() {\n\t\treturn null;\n\t}",
"public Long getMaxLatency() {\n return maxLatency;\n }",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"public Integer getPswdHistoryCnt() {\r\n return pswdHistoryCnt;\r\n }",
"String getCurrentTrace(Channel channel);",
"public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}",
"public SpeedAlertsHistory() {\n this(DSL.name(\"speed_alerts_history\"), null);\n }",
"@Override\n public String getTrace() {\n return trace;\n }",
"public TraceInformation getTraceInformation() {\n\t\treturn this.traceInformation;\n\t}",
"public abstract void logTraceTime();",
"public String getPerformanceTime()\r\n {\r\n return performanceTime;\r\n }",
"public Long getStateTrac() {\n return stateTrac;\n }",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getPingTable()\n {\n return _pingTable;\n }",
"public TransmissionStats\n getSourceTransmissionStats();",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public Long getTraffic() {\n\t\treturn traffic;\n\t}",
"public int getTransitionLatency() {\n\t\t\tif (mTransitionLatency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + TRANSITION_LATENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmTransitionLatency = value;\t\t\t\n\t\t\t}\n\t\t\treturn mTransitionLatency;\n\t\t}",
"@GET(\"metrics\")\n Call<String> getMetrics(\n @retrofit2.http.Header(\"Zap-Trace-Span\") String zapTraceSpan\n );",
"protected LinkedList getBasicTraces() {\n\t\treturn traces;\n\t}",
"@Override\n\tpublic List<String> getEventLog() {\n\t\tif(network != null)\n\t\t\treturn Arrays.asList(\n\t\t\t\t\tnetwork.getErrorLog()\n\t\t\t\t\t.toArray(new String[0]));\n\t\telse\n\t\t\treturn new ArrayList<>();\n\t}",
"Object getTrace();",
"public String duplicateDetectionHistoryTimeWindow() {\n return this.duplicateDetectionHistoryTimeWindow;\n }",
"public int getSessionAverageAliveTime();",
"public String[] getCurrentTime(){\n return responseData;\n }",
"public org.auvua.utils.protobuffer.AUVprotocol.AUVState.TelemetryOrBuilder getTelemetryOrBuilder() {\n return telemetry_;\n }",
"private double getSystemCallStatistics()\n {\n return(-1);\n }",
"public SubscriberNumberMgmtHistory getHistory()\r\n {\r\n return history_;\r\n }",
"public Long getLostPackets() {\n return lostPackets;\n }",
"public int getSleepPoints() {\n return localSleepPoints;\n }",
"public void viewPerfHistory(View view) {\n \tPerformanceResults history = new PerformanceResults(PerfMeasure.imei);\n \talertbox(\"Performance History\", history.printList(history.getHistory()));\n }",
"public List<Weather> getHistory() {\n return weatherRepo.findAll();\n }",
"public org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry getTelemetry() {\n if (telemetryBuilder_ == null) {\n return telemetry_;\n } else {\n return telemetryBuilder_.getMessage();\n }\n }",
"public Long getMinLatency() {\n return minLatency;\n }",
"@GET\n @ApiOperation(\"Get process status history\")\n @javax.ws.rs.Path(\"/{instanceId}/history\")\n @Produces(MediaType.APPLICATION_JSON)\n @WithTimer\n public List<ProcessStatusHistoryEntry> getStatusHistory(@ApiParam @PathParam(\"instanceId\") UUID instanceId) throws IOException {\n ProcessKey pk = assertKey(instanceId);\n return queueDao.getStatusHistory(pk);\n }",
"public synchronized String liveness() {\n return getName();\n }",
"java.util.Map<java.lang.Long, org.tensorflow.proto.profiler.XEventMetadata>\n getEventMetadataMap();",
"public FlowLatencyDialog(Shell parentShell, final IPreferenceStore prefs) {\n\t\tsuper(parentShell);\n\t\t// FIXME: there should be help available, see https://github.com/osate/osate2/issues/1560\n\t\tsetHelpAvailable(false);\n\t\tlatencyPrefs = prefs;\n\t\tfor (String prefId : LAST_USED_PREF_IDS) {\n\t\t\tlocalValues.put(prefId, latencyPrefs.getString(prefId));\n\t\t}\n\t}",
"public List <Integer> getKeyFrameTimes() { return getKeyFrameTimes(null, true); }",
"org.auvua.utils.protobuffer.AUVprotocol.AUVState.TelemetryOrBuilder getTelemetryOrBuilder();",
"public Long get_cachetothits() throws Exception {\n\t\treturn this.cachetothits;\n\t}",
"public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }",
"public Long getCalls() {\r\n return calls;\r\n }",
"public String getTrainfo() {\n return trainfo;\n }",
"public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }",
"List<TrackerPayload> getBuffer();",
"public TimingSource getTimingSource() {\n return f_timingSource;\n }"
] | [
"0.6059462",
"0.60512084",
"0.56808573",
"0.55998325",
"0.55915517",
"0.54485154",
"0.5313695",
"0.52364266",
"0.52339864",
"0.51846546",
"0.514938",
"0.51173323",
"0.50841826",
"0.5080559",
"0.5062103",
"0.50598866",
"0.50361156",
"0.5035014",
"0.50068015",
"0.4976002",
"0.49460196",
"0.48961443",
"0.48942533",
"0.48923874",
"0.4890201",
"0.48796266",
"0.48569933",
"0.48565608",
"0.48545432",
"0.48512837",
"0.4848588",
"0.48341876",
"0.48318872",
"0.47976512",
"0.47940707",
"0.47796062",
"0.47503567",
"0.47458392",
"0.47384354",
"0.47258464",
"0.4720623",
"0.47143868",
"0.46918443",
"0.46873152",
"0.46857986",
"0.46838263",
"0.4682147",
"0.46720266",
"0.4668502",
"0.4657366",
"0.46538457",
"0.46502456",
"0.4646347",
"0.46420595",
"0.46331006",
"0.46324545",
"0.463236",
"0.46271566",
"0.46109632",
"0.46091545",
"0.45943466",
"0.45802355",
"0.45797712",
"0.45749995",
"0.45721793",
"0.45721793",
"0.45662025",
"0.45562962",
"0.45542505",
"0.45528683",
"0.45392463",
"0.45324263",
"0.4532242",
"0.45317927",
"0.45280987",
"0.45251718",
"0.45218784",
"0.45205528",
"0.4520089",
"0.451678",
"0.45109174",
"0.45017627",
"0.44991112",
"0.449581",
"0.4476478",
"0.44724405",
"0.44708553",
"0.4467876",
"0.4456721",
"0.44542012",
"0.44541696",
"0.44522962",
"0.4451075",
"0.44498768",
"0.444916",
"0.44464973",
"0.44461355",
"0.44413093",
"0.44379154",
"0.44367275"
] | 0.59346104 | 2 |
Insert data to tps_latency_history table | public static void loadTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
TpsLatHistoryEntity tpsLabHis = new TpsLatHistoryEntity();
setTPSLatencyHistory(envId, conponentId, tpsVaule, latencyValue, todayDate, tpsLabHis);
session.save(tpsLabHis);
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadK8sTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sTpsLatHistoryEntity tpsLabHis = new K8sTpsLatHistoryEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsLabHis.setEnvironment(environment);\n\t\ttpsLabHis.setStatusDate(todayDate);\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsLabHis.setComponent(component);\n\t\ttpsLabHis.setTpsValue(tpsVaule);\n\t\ttpsLabHis.setLatencyValue(latencyValue);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"public static void updateTpsLatHistory(final int envId, int componentId, float tpsVaule, float latencyValue, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());\n\t\t\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setFloat(\"tpsVaule\", tpsVaule);\n\t\tquery.setFloat(\"latencyValue\", latencyValue);\n\t\tquery.setLong(\"compId\", componentId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"protected void importIntoTable(HttpLogData data) throws Exception {\n Db db = getDb();\n st_insert_temp_table.setString(1, data.domain_name);\n st_insert_temp_table.setString(2, data.category);\n st_insert_temp_table.setString(3, data.site_name);\n st_insert_temp_table.setObject(4, null);\n st_insert_temp_table.setTimestamp(5, DateHelper.sql(data.datetime));\n st_insert_temp_table.setLong(6, data.time_taken);\n st_insert_temp_table.setInt(7, getOrCreateAuthorizationId(data.authorization));\n st_insert_temp_table.setLong(8, data.volume_client_to_server);\n st_insert_temp_table.setLong(9, data.volume_server_to_client);\n st_insert_temp_table.setInt(10, data.http_status);\n st_insert_temp_table.setString(11, data.user_agent);\n st_insert_temp_table.setString(12, data.agent_version);\n st_insert_temp_table.setInt(13, data.type);\n st_insert_temp_table.setString(14, data.ip_client);\n st_insert_temp_table.setString(15, obfuscateUsername(data.user_name));\n st_insert_temp_table.setString(16, data.mime_type);\n st_insert_temp_table.setBoolean(17, data.intranet);\n st_insert_temp_table.setString(18, data.path);\n st_insert_temp_table.setInt(19, data.specificFileWithoutReferer ? 1 : 0);\n st_insert_temp_table.setInt(20, data.robotsTxt ? 1 : 0);\n db.executeUpdate(st_insert_temp_table);\n }",
"int insert(HotspotLog record);",
"int insert(ParseTableLog record);",
"int insert(TemperatureMeasureHitchEvent record);",
"void addLogToBatch(TelemetryData log) throws IOException;",
"public void insertStatistic(Object[] newParamArray) {\n\t\tString sql=\"insert statistics values(null,?,?,?,?,?)\";\n\t\tupdate(sql, newParamArray);\n\t}",
"@Override\n\tpublic void insertRecordWithTimeRange(LiveInfoEntity liveInfo, long starttime, long endtime) {\n\n\t}",
"public int insertSensorData(DataValue dataVal) throws Exception;",
"int insert(Miss_control_log record);",
"static void addRecordToDBQueue(HashMap<String, String> data, String tablename) {\r\n try {\r\n String sql;\r\n StringJoiner sqlRowsWithValues = new StringJoiner(\",\");\r\n StringJoiner sqlValues = new StringJoiner(\",\");\r\n\r\n sql = \"INSERT INTO `\" + tablename + \"` (\";\r\n\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n sqlRowsWithValues.add(\" `\" + entry.getKey() + \"`\");\r\n sqlValues.add(\"'\" + entry.getValue() + \"'\");\r\n }\r\n\r\n Run.statement.addBatch(sql + sqlRowsWithValues.toString() + \")\" + \" VALUES( \" + sqlValues.toString() + \")\");\r\n }\r\n catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }",
"void insert(VRpHrFeedback record);",
"public void insert(Node newNode)\r\n {\n newNode.prev = prev;\r\n prev.next = newNode;\r\n prev = newNode;\r\n System.out.println(\"Node with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" Inserted before Node with Traffic Data \" + Arrays.toString(trafficEntry.toStringArray()));\r\n }",
"int insertSelective(HotspotLog record);",
"@Override\n\tpublic String insertTable(String sql, String pointid, String type) {\n\t\treturn \"insert into history_table_view(sqltext,pointid,type) values('\"+sql+ \"','\"+ pointid +\"','\"+ type +\"')\";\n\t}",
"int insert(UvStatDay record);",
"void insertBatch(List<TABLE41> recordLst);",
"public static void addGpsLogDataPoint( Connection connection, OmsGeopaparazziProject3To4Converter.GpsPoint point,\n long gpslogId ) throws Exception {\n Date timestamp = TimeUtilities.INSTANCE.TIME_FORMATTER_LOCAL.parse(point.utctime);\n\n String insertSQL = \"INSERT INTO \" + TableDescriptions.TABLE_GPSLOG_DATA + \"(\" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_ID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName() + //\n \") VALUES\" + \"(?,?,?,?,?,?)\";\n try (PreparedStatement writeStatement = connection.prepareStatement(insertSQL)) {\n writeStatement.setLong(1, point.id);\n writeStatement.setLong(2, gpslogId);\n writeStatement.setDouble(3, point.lon);\n writeStatement.setDouble(4, point.lat);\n writeStatement.setDouble(5, point.altim);\n writeStatement.setLong(6, timestamp.getTime());\n\n writeStatement.executeUpdate();\n }\n }",
"private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }",
"@Override\n\tpublic int insert(TfLoss record) {\n\t\tif(record.getLossId()==null || record.getLossId().equals(\"\")){\n\t\t\trecord.setLossId(UUID.randomUUID().toString());\n\t\t}\n\t\treturn tfLossMapper.insert(record);\n\t}",
"public void PushEventStatisticsFromDB() {\n\t\tmyDBUtil.open();\n\t\tCursor mCursor = myDBUtil.queryMarkIsZero();\n\t\tmCursor.moveToFirst();\n\t\tdo {\n\t\t\tfinal EventStatisticsData eventStatisticsData = new EventStatisticsData();\n\t\t\tString[] colums = new String[]{\n\t\t\t\t\t\"behavior\", \"appId\", \"appSrc\", \"packageName\", \"client\", \"listenArea\",\n\t\t\t\t\t\"listenContextId\", \"listenContextSrc\", \"clientVersion\", \"referenceId\",\n\t\t\t\t\t\"appName\", \"appVersion\"};\n\t\t\tint index;\n\t\t\tString value;\n\t\t\tfor (int i = 0; i < colums.length; i++) {\n\t\t\t\tindex = mCursor.getColumnIndex(colums[i]);\n\t\t\t\tvalue = mCursor.getString(index);\n\t\t\t\teventStatisticsData.SetParamFromApp(i, value);\n\t\t\t}\n\t\t\tindex = mCursor.getColumnIndex(\"_id\");\n\t\t\tfinal int id = mCursor.getInt(index);\n\t\t\tGetIPFromServer(new GetIpCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void solve(String result) {\n\t\t\t\t\tif (result != null && eventStatisticsData != null) {\n\t\t\t\t\t\tpushStatisticsEvent(eventStatisticsData, false, id);\n\t\t\t\t\t\tLog.d(TAG, \"im here don't insert to db,just update\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} while (mCursor.moveToNext());\n\t\tmCursor.close();\n\t\tmyDBUtil.close();\n\t}",
"public void insertHistory(RecordDTO recordDTO);",
"void insert(HrHBscCpuQos record);",
"int insert(BasicInfoAnodeBurningLossRate record);",
"int insertSelective(ParseTableLog record);",
"public void insertHistory(AirTimeHistory _airtime) {\n\t // Create a new row of values to insert.\n\t // Insert the row.\n\t SQLiteDatabase db;\n db = SQLiteDatabase.openDatabase(context.getDatabasePath(\"coreairtime.db\").getAbsolutePath(), null, SQLiteDatabase.CREATE_IF_NECESSARY);\n \n String sql = \"INSERT INTO airtime_history (email, phonenumber, network, amount, datetime, networkindex, transactionid, transactionstatus, \" +\n \t\t \"country, countryindex, chosenamountindex, currency, topupstatus, servertime, gatewayid, amountcharged, payurl) VALUES('\" + _airtime.getEmail() + \"','\" \n + _airtime.getPhoneNumber() + \"','\"\n + _airtime.getNetwork() + \"','\"\n + _airtime.getAmount() + \"','\"\n + _airtime.getDateTime() + \"','\"\n + _airtime.getNetworkIndex() + \"','\"\n + _airtime.getTransactionID() + \"','\"\n + _airtime.getTransactionStatus() + \"','\"\n + _airtime.getCountry() + \"','\"\n + _airtime.getCountryIndex() + \"','\"\n + _airtime.getChosenAmountIndex() + \"','\"\n + _airtime.getCurrency() + \"','\"\n + _airtime.getTopupStatus() + \"','\"\n + _airtime.getServerTime() + \"','\"\n + _airtime.getGatewayID() + \"','\"\n + _airtime.getAmountCharged() + \"','\" \n + _airtime.getPayUrl() + \"');\";\n db.execSQL(sql);\n db.close();\n }",
"public void insert(final Trip t) throws SQLException {\n long v;\n if(t.hasVehicle()) {\n v = t.getVehicle();\n if(v > vehicle) {\n vehicle = v + 1;\n }\n } else {\n v = vehicle++;\n }\n stmt.setLong(1, t.getPickupTime());\n stmt.setLong(2, v);\n stmt.setLong(3, t.getDropoffTime());\n stmt.setDouble(4, t.getPickupLat());\n stmt.setDouble(5, t.getPickupLon());\n stmt.setDouble(6, t.getDropoffLat());\n stmt.setDouble(7, t.getDropoffLon());\n stmt.executeUpdate();\n }",
"protected void insertDataIntoRecordings(Collection<Track> tracks) {\n\t\t// what happens if data already there?\n\t\t// big issue :(\n\t\t\n\t\t\ttry {\n\t\t\t\tPreparedStatement prep = conn.prepareStatement(\"INSERT INTO Recordings values (?, ?);\");\n\t\t\t\t\n\t\t\t\tfor (Track t : tracks) {\n\t\t\t\t\tprep.setString(1, t.getArtist());\n\t\t\t\t\tprep.setString(2, t.getName());\n\t\t\t\t\tprep.addBatch();\n\t\t\t\t\tSystem.out.println(\"Added \" +t.getArtist()+ \", \" +t.getName()+\" to recordings\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconn.setAutoCommit(false);\n\t \tprep.executeBatch();\n\t \tconn.setAutoCommit(true);\n\t \t\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Something went wrong with inserting batched data into Recordings\");\n\t\t\t\tSystem.out.println(\"Check System.err for details\");\n\t\t\t\te.printStackTrace(System.err);\n\t\t\t}\n\t\t\t\n\t}",
"public void insertIntoTable (String tableName , LinkedList<String> values);",
"@SqlUpdate(\"insert into PLAYERSTATS (SCOREID, USERID, TIMESTAMP, KILLS, SCORE) values \"\n + \"(:scoreId, :userId, :timestamp, :kills, :score)\")\n int insert(@BindBean PlayerStats playerStats);",
"int insert(EbayLmsLog record);",
"int insert(BpmInstanciaHistorica record);",
"public void run() {\n String query = \"INSERT INTO CustomData (Server, Plugin, ColumnID, DataPoint, Updated) VALUES\";\n int currentSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // Iterate through each column\n for (Map.Entry<Column, Integer> entry : customData.entrySet()) {\n Column column = entry.getKey();\n int value = entry.getValue();\n\n // append the query\n query += \" (\" + server.getId() + \", \" + plugin.getId() + \", \" + column.getId() + \", \" + value + \", \" + currentSeconds + \"),\";\n }\n\n // Remove the last comma\n query = query.substring(0, query.length() - 1);\n\n // add the duplicate key entry\n query += \" ON DUPLICATE KEY UPDATE DataPoint = VALUES(DataPoint) , Updated = VALUES(Updated)\";\n\n // queue the query\n new RawQuery(mcstats, query).save();\n }",
"public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"@Insert\n long insert(Measurement measurement);",
"@Override\n public void addNew(int latency) {\n count.getAndIncrement();\n }",
"int insertSelective(TemperatureMeasureHitchEvent record);",
"public void AddDataRecordtoDB(View view) {\n\n //get the running distance from textview\n TextView TV_distance = (TextView)findViewById(R.id.data_length);\n Double runningDistance = Double.parseDouble(TV_distance.getText().toString());\n System.out.println(\"distance is :\"+runningDistance);\n\n //get the calories from textview\n TextView TV_calories = (TextView)findViewById(R.id.data_calories);\n Double runningCalories = Double.parseDouble(TV_calories.getText().toString());\n System.out.println(\"calorie is :\"+runningCalories);\n\n // new an running \"entity\"\n Runningdata NewRunningdata = new Runningdata();\n NewRunningdata.setDistance(runningDistance);\n NewRunningdata.setCalorie(runningCalories);\n NewRunningdata.setStarttime(startTime);\n\n // using \"dao\" to manipulate database\n runningdao.insert(NewRunningdata);\n System.out.println(\"I did insertion\");\n }",
"public void insertSiteStats (SiteStatisticsVO data) throws DataServiceException;",
"public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}",
"public void insertData(double sugarLevel, double injectAmount) {\n int data_id = getLatestID(\"data\", \"data_ID\");\n closeConnection();\n String query = \"INSERT INTO data (data_ID,blood_sug_lvl,last_update,inj_amnt,users_user_id) VALUES (\"\n + data_id + \",\" + sugarLevel + \",now(),\" + injectAmount + \",1)\";\n sendUpdate(query);\n }",
"private void uploadBatchTable(InsertAllRequest insertAllRequest) {\n final Stopwatch stopwatch = stopwatchProvider.get();\n final ImmutableMultimap.Builder<TableId, InsertAllResponse> responseMapBuilder =\n ImmutableMultimap.builder();\n final StringBuilder performanceStringBuilder = new StringBuilder();\n issueInsertAllRequest(\n stopwatch, responseMapBuilder, performanceStringBuilder, insertAllRequest);\n log.info(performanceStringBuilder.toString());\n // Check response and abort the process if any error happens. In this case, verify_snapshot\n // won't have the 'successful' record, hence we know that is a \"bad\" dataset.\n checkResponse(responseMapBuilder.build());\n }",
"public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for lab1\n DbFile dbFile = Database.getCatalog().getDatabaseFile(tableId);\n ArrayList<Page> affectedPgs = dbFile.insertTuple(tid, t);\n for (Page page : affectedPgs) {\n page.markDirty(true, tid);\n // bufferPool.replace(page.getId(), page);\n // bufferPool.remove(page.getId());\n bufferPool.put(page.getId(), page);\n }\n }",
"public void addLatency(AbstractBenchmarkState state, BenchmarkInteraction interaction, long latency) {\n // Latency only makes sense if there was an interaction.\n if (interaction == null)\n return;\n String stateName = state.getStateName();\n String interactionName = interaction.fullName;\n addLatency(stateName, interactionName, latency);\n }",
"public void write(long[] timestamps, long[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"int insertSelective(Miss_control_log record);",
"@Override\r\n\tpublic void insert(List<MonitoredSupermarket> msList, int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"insert into monitored_supermarket(id_user,id_supermarket) values(?, ?)\";\r\n\r\n\t\tint insertsNumber = msList.size();\r\n\r\n\t\ttry{\r\n\t\t\tps = con.prepareStatement(query);\r\n\r\n\t\t\tfor(int i = 0; i < insertsNumber; i++){\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tps.setInt(1, userId);\r\n\t\t\t\t\tps.setInt(2, msList.get(i).getId_supermarket().getId_supermarket());\r\n\t\t\t\t\tps.executeUpdate();\r\n\t\t\t\t}catch (SQLException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} \t\r\n\t\t\t}\r\n\t\t} finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t\treturn;\r\n\r\n\t}",
"protected void insertDataIntoListenings(User u, Collection<Track> tracks) {\n\t\t\ttry \n\t\t\t{\n\t\t\t\tPreparedStatement prep = conn.prepareStatement(\"INSERT INTO Listenings values (?, ?, ?);\");\n\t\t\t\t\n\t\t\t\tfor (Track t : tracks) \n\t\t\t\t{\n\t\t\t\t\tif(u.getName() != null && t.getPlaycount() >5 && t.getName() != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tprep.setString(1, u.getName());\n\t\t\t\t\t\tprep.setString(2, t.getName());\n\t\t\t\t\t\tprep.setInt(3, t.getPlaycount());\n\t\t\t\t\t\tprep.addBatch();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconn.setAutoCommit(false);\n\t \tprep.executeBatch();\n\t \tconn.setAutoCommit(true);\n\t \t\n\t\t\t} \n\t\t\tcatch (SQLException e) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"Something went wrong with inserting batched data into Listenings\");\n\t\t\t\tSystem.out.println(\"Check System.err for details\");\n\t\t\t\te.printStackTrace(System.err);\n\t\t\t}\n\t}",
"int insert(ac_teacher_instrument record);",
"@Insert({\n \"insert into tb_express_trace (order_id, num, \",\n \"com, status, message, \",\n \"ischeck, traceJson, \",\n \"create_time, \",\n \"last_udpate_time)\",\n \"values (#{orderId,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR}, \",\n \"#{com,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{message,jdbcType=VARCHAR}, \",\n \"#{ischeck,jdbcType=INTEGER}, #{tracejson,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler}, \",\n \"#{lastUdpateTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler})\"\n })\n int insert(TbExpressTrace record);",
"void addToBatch(String[] values) {\n if (values.length != 16) {\n logger.info(\"Incorrect format for insert query\");\n return;\n }\n\n try {\n batchPreparedStmt.clearParameters();\n DateFormat format = new SimpleDateFormat(\"yyyyMMdd/HHmm\");\n for (int i = 0, j = 1; i < values.length; ++i, ++j) {\n if (i == 1) {\n batchPreparedStmt.setTimestamp(j, new java.sql.Timestamp(format.parse(values[i]).getTime()));\n } else if (i == 0) {\n batchPreparedStmt.setString(j, values[i]);\n } else {\n batchPreparedStmt.setDouble(j, Double.parseDouble(values[i]));\n }\n }\n batchPreparedStmt.addBatch();\n currBatchSize--;\n if (currBatchSize <= 0) {\n this.commitBatch();\n }\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n } catch (ParseException e) {\n logger.log(Level.WARNING, \"ParseException \", e.getMessage());\n }\n }",
"public void addPatient(String name,String lasname, int age, String unam, String pas, String sec, String secAns, int sympt[],int prevSm1[],int prevSm2[],int threshold[], String dname)\r\n {\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION) \";\r\n\t newPat = newPat+\"VALUES ('\"+name+\"', '\"+lasname+\"', \"+age+\", '\"+unam+\"', '\"+pas+\"', '\"+sec+\"', '\"+secAns+\"',\"\r\n\t\t\t \t\t +sympt[0]+\",\"+sympt[1]+\",\"+sympt[2]+\",\"+sympt[3]+\",\"+sympt[4]+\",\"+sympt[5]+\",\"+sympt[6]+\r\n\t\t\t \t\t\t\",\" +prevSm1[0]+\",\"+prevSm1[1]+\",\"+prevSm1[2]+\",\"+prevSm1[3]+\",\"+prevSm1[4]+\",\"+prevSm1[5]+\",\"+prevSm1[6]+\",\"\r\n\t\t\t \t\t\t+prevSm2[0]+\",\"+prevSm2[1]+\",\"+prevSm2[2]+\",\"+prevSm2[3]+\",\"+prevSm2[4]+\",\"+prevSm2[5]+\",\"+prevSm2[6]+\",\"\r\n\t\t\t \t\t\t+threshold[0]+\",\"+threshold[1]+\",\"+threshold[2]+\",\"+threshold[3]+\",\"+threshold[4]+\",\"+threshold[5]+\",\"+threshold[6]+\",'\"+dname+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t\t\r\n\t\t\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n\t \r\n }",
"int insertSelective(BpmInstanciaHistorica record);",
"public void insertGPS(GPS gps, TableOperationCallback<GPS> callback) {\n mGPSTable.insert(gps, callback);\n }",
"public void createTempTable() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n _logger.info(\"Creating temporary table t_http_log_data\");\n PreparedStatement createTable = db.prepareStatement(create_temp_table);\n db.executeUpdate(createTable);\n } catch (Exception e) {\n _logger.fatal(\"Error when creating temporary table t_http_log_data\", e);\n throw e;\n } finally {\n db.exit();\n }\n st_insert_temp_table = db.prepareStatement(sql_insert_temp_table);\n }",
"@Insert\n void insertAll(Measurement... measurements);",
"private void insertOperator() {\n int rowsAff = 0;\n int counter = 0;\n String query = \"\";\n System.out.print(\"Table: \");\n String table = sc.nextLine();\n System.out.print(\"Comma Separated Columns: \");\n String cols = sc.nextLine();\n System.out.print(\"Comma Separated Values: \");\n String[] vals = sc.nextLine().split(\",\");\n //transform the user input into a valid SQL insert statement\n query = \"INSERT INTO \" + table + \" (\" + cols + \") VALUES(\";\n for (counter = 0; counter < vals.length - 1; counter++) {\n query = query.concat(\"'\" + vals[counter] + \"',\");\n }\n query = query.concat(\"'\" + vals[counter] + \"');\");\n System.out.println(query);\n rowsAff = sqlMngr.insertOp(query);\n System.out.println(\"\");\n System.out.println(\"Rows affected: \" + rowsAff);\n System.out.println(\"\");\n }",
"@Override\n public void insertAdTotalLinkData(int i) throws DatabaseException {\n Map<String, Object> map = new HashMap<String, Object>();\n StringBuffer table = new StringBuffer();\n table.append(CalendarFormat.getYM(i));\n map.put(\"table\", table.toString());\n map.put(\"statDate\", CalendarFormat.getYmd(i));\n getSqlMapClientTemplate().insert(\"statSqlMap.insertAdTotalLinkData\", map);\n }",
"public boolean setTraceData(AMS_Data ams_data){\n boolean res = false;\n String sql = \"insert into ams_table(flag,event,accuracy,latitude,longitude,generation,\" +\n \"registration) values(?,?,?,?,?,?,?);\";\n SQLiteStatement stmt = mDB.compileStatement(sql);\n stmt.bindLong(1, ams_data.flag);\n stmt.bindLong(2, ams_data.event);\n stmt.bindDouble(3, ams_data.accuracy);\n stmt.bindDouble(4, ams_data.latitude);\n stmt.bindDouble(5, ams_data.longitude);\n stmt.bindString(6, DateToString(ams_data.generation));\n stmt.bindString(7, DateToString(new Date()));\n if(stmt.executeInsert() > 0) res = true;\n stmt.clearBindings();\n stmt.close();\n return res;\n }",
"int insert(UserCourseHistory record);",
"public void insertPlaylistTabData(ArrayList<PlaylistDto> playlistDtoArrayList){\n PlaylistDatabaseTable.getInstance().insertPlaylistTabData(playlistDtoArrayList, this.getWritableDatabase());\n }",
"private synchronized boolean create_tuples(String table_name, String[] data, StringBuilder tuples){\n\t\tint seq_no = 0;\n\t\tint schema_id = 0;\n\t\t\n\t\t// msg is null\n\t\tif(tuples == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!measurementPointCounter.isEmpty()) {\n\t\t\tseq_no = measurementPointCounter.get(table_name);\n\t\t\tmeasurementPointCounter.put(table_name, seq_no + 1);\n\t\t} else\n\t\t\treturn false;\n \n\t\tif (!schemaCounter.isEmpty()) {\n\t\t\tschema_id = schemaCounter.get(table_name);\n\t\t} else\n\t\t\treturn false;\n \n\t\tif (!isSrvConnected())\n\t\t\treturn false;\n \n\t\t\n\t\t/**\n\t\t * CALCULATE THE TIME INTERVAL\n\t\t */\n\t\tlong cur_time = System.currentTimeMillis();\n\t\tlong dif_time = cur_time - head_time;\n\t\tdouble lcl_dif_time = dif_time/1000.0;\n\t\tString dif_time_str = Double.toString(lcl_dif_time);\n \n\t\t/**\n\t\t * CREATE THE TUPLE STRING\n\t\t */\n\t\ttuples.append(\tdif_time_str + // #1 : timestamp\n\t\t\t\t\t\t\"\\t\" + \n\t\t\t\t\t\tString.valueOf(schema_id) + // #2 : stream_id\n\t\t\t\t\t\t\"\\t\" + \n\t\t\t\t\t\tString.valueOf(seq_no) // #3 : seq_no\n\t\t\t\t\t); \n\t\t\n\t\tfor (int i = 0; i < data.length; i++) { // #4 : data\n\t\t\ttuples.append(\"\\t\" + data[i]);\n\t\t}\n\t\t\n\t\ttuples.append(\"\\n\");\n\t\treturn true;\n\t}",
"public void write(long[] timestamps, Binary[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public static void collectDataForLog( Connection connection, GpsLog log ) throws SQLException {\n long logId = log.id;\n\n String query = \"select \"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName()\n + //\n \" from \" + TABLE_GPSLOG_DATA + \" where \"\n + //\n GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \" = \" + logId + \" order by \"\n + GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName();\n\n try (Statement newStatement = connection.createStatement()) {\n newStatement.setQueryTimeout(30);\n ResultSet result = newStatement.executeQuery(query);\n\n while( result.next() ) {\n double lat = result.getDouble(1);\n double lon = result.getDouble(2);\n double altim = result.getDouble(3);\n long ts = result.getLong(4);\n\n GpsPoint gPoint = new GpsPoint();\n gPoint.lon = lon;\n gPoint.lat = lat;\n gPoint.altim = altim;\n gPoint.utctime = ts;\n log.points.add(gPoint);\n }\n }\n }",
"void saveActivityHistForAddEntity(Record inputRecord);",
"int insertSelective(EbayLmsLog record);",
"int insertBatch(List<Basicinfo> list);",
"int insert(WizardValuationHistoryEntity record);",
"void insert(VRpDyLocationBh record);",
"@Override\n\tpublic int addLog(Log l) {\n\t\tString sql = \"INSERT INTO t_log(fTime,fTel,fType,fDocld,fResult)values(?,?,?,?,?)\";\n\t\tint result = 0;\n\t\tObject[] params = {l.getfTime(),l.getfTel(),l.getfType(),l.getfDocld(),l.getfResult()};\n\t\ttry {\n\t\t\tresult = qr.update(sql,params);\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 result;\n\t}",
"@Override\n public void insertspeedAltitudeProcessedMsg(List<SpeedElevation> res, String sportsTag) {\n for(int i=0;i<res.size();i++)\n {\n influxDao.insertspeedAltitudeProcessedMsg(sportsTag,timeToLong(res.get(i).getTime())\n ,res.get(i).getSpeed()\n ,res.get(i).getElevation());\n }\n }",
"public void writeLatencyFile(long OpenGLFpsSum,int OpenGLFpsCount){\n\n String lf=settings.getString(\"latencyFile\",\"ERROR\");\n if(lf.length()>=1000 || lf.length()<=20){\n lf=\"These values only show the measured lag of the app; \\n\"+\n \"The overall App latency may be much more higher,because you have to add the 'input lag' of your phone-about 32-48ms on android \\n\"+\n \"Every 'time' values are in ms. \\n\";\n }\n if(fpsCount==0){fpsCount=1;}\n if(OpenGLFpsCount==0){OpenGLFpsCount=1;}\n averageDecoderfps=fpsSum/fpsCount;\n lf+=\"\\n Average HW Decoder fps: \"+(averageDecoderfps);\n if(OpenGLFpsSum>=0){lf+=\"\\n OpenGL as Output;Average OpenGL FPS: \"+(OpenGLFpsSum/(long)OpenGLFpsCount);}\n lf+=\"\\n Average measured app Latency: \"+(averageWaitForInputBufferLatency+averageHWDecoderLatency);\n lf+=\"\\n Average time waiting for an input Buffer:\"+averageWaitForInputBufferLatency;\n lf+=\"\\n Average time HW decoding:\"+averageHWDecoderLatency;\n lf+=\"\\n \";\n SharedPreferences.Editor editor=settings.edit();\n editor.putString(\"latencyFile\",lf);\n editor.commit();\n\n }",
"public void write(long[] timestamps, double[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"int insert(VarRatio record);",
"void record(long t0Ms, long t0Nano, long t1Nano, Operation op, Throwable... t);",
"void insert(Metric metric) throws MetricException;",
"int insert(TbSnapshot record);",
"int insert(PointsExchangeRecord record);",
"private void inserts() {\n DBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n Map<Number160, Data> tabRows = DBPeer.getTabRows();\n\t\tMap<Number160, Data> tabIndexes = DBPeer.getTabIndexes();\n\t\t\n String tabName = null;\n Number160 tabKey = null;\n FreeBlocksHandler freeBlocks = null;\n Map<String, IndexHandler> indexHandlers = new HashMap<>();\n TableRows tr = null;\n TableIndexes ti = null;\n \n logger.trace(\"INSERT-WHOLE\", \"BEGIN\", Statement.experiment);\n \n for (Insert ins: inserts) {\n \n if (tabName == null) {\n \ttabName = ins.getTabName();\n \ttabKey = Number160.createHash(tabName);\n \tfreeBlocks = new FreeBlocksHandler(tabName);\n \ttry {\n \t\t\t\ttr = (TableRows) tabRows.get(tabKey).getObject();\n \t\t\t\tti = (TableIndexes) tabIndexes.get(tabKey).getObject();\n \t\t\t} catch (ClassNotFoundException | IOException e) {\n \t\t\t\tlogger.error(\"Data error\", e);\n \t\t\t}\n \tfor (String index: ti.getIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \tfor (String index: ti.getUnivocalIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n } else if (!tabName.equals(ins.getTabName())) {\n \t\t\ttry {\n \t\t\t\ttabRows.put(tabKey, new Data(tr));\n \t\t\ttabIndexes.put(tabKey, new Data(ti));\n \t\t\ttabName = ins.getTabName();\n \ttabKey = Number160.createHash(tabName);\n \t\t\t\ttr = (TableRows) tabRows.get(tabKey).getObject();\n \t\t\t\tti = (TableIndexes) tabIndexes.get(tabKey).getObject();\n \t\t\t\tfreeBlocks.update();\n \tfreeBlocks = new FreeBlocksHandler(tabName);\n \tindexHandlers.clear();\n \tfor (String index: ti.getIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \tfor (String index: ti.getUnivocalIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \t\t\t} catch (ClassNotFoundException | IOException e) {\n \t\t\t\tlogger.error(\"Data error\", e);\n \t\t\t}\n } \n \n ins.init(freeBlocks, indexHandlers, tr, ti);\n \n }\n \n boolean done = false;\n while (!done) {\n \tint countTrue = 0;\n \tfor (Insert ins: inserts) {\n \t\tif (ins.getDone()) {\n \t\t\tcountTrue++;\n \t\t}\n \t}\n \tif (countTrue == inserts.size()) {\n \t\tdone = true;\n \t}\n }\n \n freeBlocks.update();\n\n try {\n\t\t\ttabRows.put(tabKey, new Data(tr));\n\t\t\ttabIndexes.put(tabKey, new Data(ti));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Data error\", e);\n\t\t}\n \n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n \n logger.trace(\"INSERT-WHOLE\", \"END\", Statement.experiment);\n }",
"@LogExceptions\n @Override\n public void insert(Data data) throws SQLException {\n Event event = (Event)data;\n Connection conn = DatabaseConnection.getConnection();\n \n try(PreparedStatement stmt = \n conn.prepareStatement(getMembers().getInsertFormat())) \n {\n stmt.setString(1, event.getEvent());\n stmt.setString(2, event.getDescription());\n stmt.setString(3, event.getLocation());\n stmt.setString(4, event.getDate());\n stmt.setString(5, event.getYear());\n stmt.setString(6, event.getMonth());\n stmt.setString(7, event.getDay());\n stmt.setString(8, event.getStart());\n stmt.setString(9, event.getEnd());\n stmt.executeUpdate();\n }\n }",
"public void batchInsertByBkTime(Date bkTime) throws SnmpEventsProcessDaoException\n\t{\n\t\ttry {\n\t\t\t jdbcTemplate.update(\"INSERT INTO \" + getTableName() + \n\t\t\t\t\t \" ( MARK, MANUFACTURE, RESULTLIST, WARNMESSAGE, SUMMARY ) \"+\n\t\t\t\t\t \" select MARK, MANUFACTURE, RESULTLIST, WARNMESSAGE, SUMMARY \"+\n\t\t\t\t\t \" FROM DUAL, BK_SNMP_EVENTS_PROCESS where bk_time= ? \", bkTime);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SnmpEventsProcessDaoException(\"batchInsert failed\", e);\n\t\t}\n\t\t\n\t}",
"private void enterDiffValuesIntoDB() {\n Location senderLocation = new Location(\"\");\n senderLocation.setLatitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE)));\n senderLocation.setLongitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LONGITUDE)));\n\n Location receiverLocation = new Location(\"\");\n receiverLocation.setLatitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.RECEIVER_LATITUDE)));\n receiverLocation.setLongitude(Double.parseDouble(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.RECEIVER_LONGITUDE)));\n String distance = Float.toString(senderLocation.distanceTo(receiverLocation));\n databaseHandler.setValueInExpInfo(distance, \"actual_distance\", experimentNumber);\n\n float altDiff = Float.parseFloat(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_ALTITUDE))\n - Float.parseFloat(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.RECEIVER_ALTITUDE));\n String altitudeDifference = Float.toString(altDiff);\n databaseHandler.setValueInExpInfo(altitudeDifference, \"altitude_difference\", experimentNumber);\n\n getWeatherData();\n }",
"@Override\n\tpublic void addTransactionToDatabase(Transaction trans) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into transaction_history values(default, ?, ?, ?, now())\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setInt(1, trans.getAccountId());\n\t\t\tprepStmt.setString(2, trans.getUsername());\n\t\t\tprepStmt.setDouble(3, trans.getAmount());\n\t\t\tprepStmt.executeUpdate();\n\t}",
"void tryAddLogToBatch(TelemetryData log);",
"public void write(long[] timestamps, int[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void write(long[] timestamps, float[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void addSampleToDB(Sample sensorSample, String TABLE_NAME) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"timestamp\", sensorSample.getTimestamp());\n values.put(\"x_val\", sensorSample.getX());\n values.put(\"y_val\", sensorSample.getY());\n values.put(\"z_val\", sensorSample.getZ());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }",
"void insertSelective(HrHBscCpuQos record);",
"int insert(TCpySpouse record);",
"public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }",
"int insert(SurveystatusPkey record);",
"void insertBatch(List<InspectionAgency> recordLst);",
"int insertSelective(CostAccountingStatisticByLineDetail record);",
"int insert(EventsWaitsSummaryByInstance record);",
"int insert(R_dept_trade record);",
"void appendRecords(Hashtable<String,String> LDUMP,Hashtable<String,String> GDUMP)\n {\t\n \t/**\n\t\t * GDUMP from pred and MY LDUMP are null -- do-nothing\n\t\t * My LDUMP is null -- nothing to append\n\t\t * GDUMP is null -- just make \"to\" <LDUMP> = \"from\" <GDUMP>\n \t*/\t\n \tSet<String> keys = LDUMP.keySet();\n \tfor(String key:keys)\n \t{\n \t\tGDUMP.put(key,LDUMP.get(key));\n \t}\n\t\n \treturn;\n }",
"public void insert(Item x) {\n\t\tint probe = 0;\n\t\tif(amount==table.length) {\n\t\t\tSystem.out.println(\"Linear Insertion Failed: Table is full\");\n\t\t\tSystem.exit(0);\n\t\t\treturn;\n\t\t}\n\t\tint h = hash(x.getDate());\n\t\twhile(table[h]!=null) {\n\t\t\tprobe++;\n\t\t\t\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\ttable[h] = x;\n\t\tamount++;\n\t\tprobesInsert[amount-1] = probe;\n\t\tfixLoadFactor();\n\t\t\n\t\t\n\t\t\n\t}",
"@Insert({\n \"insert into cost_accounting_statistic_by_line_detail (statistic_code, periods, \",\n \"line_code, material_type, \",\n \"element_type, material_requisitions, \",\n \"current_goods_in_process, last_goods_in_process, \",\n \"product_storage, intermediate_products_variation, \",\n \"unit_consumption)\",\n \"values (#{statisticCode,jdbcType=BIGINT}, #{periods,jdbcType=INTEGER}, \",\n \"#{lineCode,jdbcType=INTEGER}, #{materialType,jdbcType=TINYINT}, \",\n \"#{elementType,jdbcType=TINYINT}, #{materialRequisitions,jdbcType=REAL}, \",\n \"#{currentGoodsInProcess,jdbcType=REAL}, #{lastGoodsInProcess,jdbcType=REAL}, \",\n \"#{productStorage,jdbcType=REAL}, #{intermediateProductsVariation,jdbcType=REAL}, \",\n \"#{unitConsumption,jdbcType=REAL})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"code\", before=false, resultType=Long.class)\n int insert(CostAccountingStatisticByLineDetail record);"
] | [
"0.6132407",
"0.5712611",
"0.56022733",
"0.54923195",
"0.5448931",
"0.54062593",
"0.5347474",
"0.53376055",
"0.5318678",
"0.5260681",
"0.52251226",
"0.51915",
"0.51830685",
"0.5175651",
"0.51685256",
"0.51602757",
"0.5144462",
"0.51229435",
"0.5118115",
"0.5069403",
"0.5067774",
"0.5061323",
"0.5048723",
"0.50444496",
"0.50370985",
"0.5036037",
"0.5034353",
"0.50190353",
"0.5004297",
"0.4991984",
"0.4988135",
"0.49777946",
"0.4967463",
"0.49649015",
"0.4932398",
"0.4930468",
"0.4918435",
"0.49104184",
"0.49038625",
"0.48852438",
"0.48783872",
"0.48466408",
"0.48422748",
"0.48350236",
"0.48346215",
"0.48298725",
"0.48279423",
"0.48267496",
"0.48255792",
"0.48247698",
"0.48115072",
"0.4808402",
"0.48036557",
"0.47959343",
"0.4794558",
"0.47936115",
"0.4791561",
"0.47898632",
"0.47890475",
"0.47874573",
"0.4787294",
"0.4781464",
"0.47704867",
"0.4764036",
"0.47575432",
"0.47569558",
"0.47559524",
"0.47526592",
"0.4749669",
"0.4748909",
"0.4741259",
"0.4736793",
"0.47300175",
"0.47280985",
"0.47210872",
"0.4714798",
"0.47146136",
"0.47119254",
"0.47105443",
"0.4709748",
"0.47066045",
"0.47014794",
"0.46992937",
"0.4697417",
"0.4696139",
"0.46938834",
"0.46876326",
"0.46850872",
"0.46780008",
"0.46728575",
"0.4669889",
"0.46640795",
"0.46621588",
"0.46606442",
"0.46600157",
"0.46554983",
"0.46536505",
"0.4652802",
"0.46497905",
"0.46494836"
] | 0.63095874 | 0 |
Insert data to k8s_tps_latency_history table | public static void loadK8sTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
K8sTpsLatHistoryEntity tpsLabHis = new K8sTpsLatHistoryEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(envId);
tpsLabHis.setEnvironment(environment);
tpsLabHis.setStatusDate(todayDate);
ComponentEntity component = new ComponentEntity();
component.setComponentId(conponentId);
tpsLabHis.setComponent(component);
tpsLabHis.setTpsValue(tpsVaule);
tpsLabHis.setLatencyValue(latencyValue);
session.save(tpsLabHis);
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsLatHistoryEntity tpsLabHis = new TpsLatHistoryEntity();\n\t\tsetTPSLatencyHistory(envId, conponentId, tpsVaule, latencyValue, todayDate, tpsLabHis);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"public static void updateTpsLatHistory(final int envId, int componentId, float tpsVaule, float latencyValue, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());\n\t\t\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.UPDATE_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setFloat(\"tpsVaule\", tpsVaule);\n\t\tquery.setFloat(\"latencyValue\", latencyValue);\n\t\tquery.setLong(\"compId\", componentId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"int insert(TemperatureMeasureHitchEvent record);",
"protected void importIntoTable(HttpLogData data) throws Exception {\n Db db = getDb();\n st_insert_temp_table.setString(1, data.domain_name);\n st_insert_temp_table.setString(2, data.category);\n st_insert_temp_table.setString(3, data.site_name);\n st_insert_temp_table.setObject(4, null);\n st_insert_temp_table.setTimestamp(5, DateHelper.sql(data.datetime));\n st_insert_temp_table.setLong(6, data.time_taken);\n st_insert_temp_table.setInt(7, getOrCreateAuthorizationId(data.authorization));\n st_insert_temp_table.setLong(8, data.volume_client_to_server);\n st_insert_temp_table.setLong(9, data.volume_server_to_client);\n st_insert_temp_table.setInt(10, data.http_status);\n st_insert_temp_table.setString(11, data.user_agent);\n st_insert_temp_table.setString(12, data.agent_version);\n st_insert_temp_table.setInt(13, data.type);\n st_insert_temp_table.setString(14, data.ip_client);\n st_insert_temp_table.setString(15, obfuscateUsername(data.user_name));\n st_insert_temp_table.setString(16, data.mime_type);\n st_insert_temp_table.setBoolean(17, data.intranet);\n st_insert_temp_table.setString(18, data.path);\n st_insert_temp_table.setInt(19, data.specificFileWithoutReferer ? 1 : 0);\n st_insert_temp_table.setInt(20, data.robotsTxt ? 1 : 0);\n db.executeUpdate(st_insert_temp_table);\n }",
"public int insertSensorData(DataValue dataVal) throws Exception;",
"int insert(HotspotLog record);",
"void insert(HrHBscCpuQos record);",
"void addLogToBatch(TelemetryData log) throws IOException;",
"static void addRecordToDBQueue(HashMap<String, String> data, String tablename) {\r\n try {\r\n String sql;\r\n StringJoiner sqlRowsWithValues = new StringJoiner(\",\");\r\n StringJoiner sqlValues = new StringJoiner(\",\");\r\n\r\n sql = \"INSERT INTO `\" + tablename + \"` (\";\r\n\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n sqlRowsWithValues.add(\" `\" + entry.getKey() + \"`\");\r\n sqlValues.add(\"'\" + entry.getValue() + \"'\");\r\n }\r\n\r\n Run.statement.addBatch(sql + sqlRowsWithValues.toString() + \")\" + \" VALUES( \" + sqlValues.toString() + \")\");\r\n }\r\n catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public void insert(Node newNode)\r\n {\n newNode.prev = prev;\r\n prev.next = newNode;\r\n prev = newNode;\r\n System.out.println(\"Node with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" Inserted before Node with Traffic Data \" + Arrays.toString(trafficEntry.toStringArray()));\r\n }",
"int insert(ParseTableLog record);",
"@Override\n\tpublic void insertRecordWithTimeRange(LiveInfoEntity liveInfo, long starttime, long endtime) {\n\n\t}",
"void insert(Metric metric) throws MetricException;",
"void insert(VRpHrFeedback record);",
"int insert(Miss_control_log record);",
"public void run() {\n String query = \"INSERT INTO CustomData (Server, Plugin, ColumnID, DataPoint, Updated) VALUES\";\n int currentSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // Iterate through each column\n for (Map.Entry<Column, Integer> entry : customData.entrySet()) {\n Column column = entry.getKey();\n int value = entry.getValue();\n\n // append the query\n query += \" (\" + server.getId() + \", \" + plugin.getId() + \", \" + column.getId() + \", \" + value + \", \" + currentSeconds + \"),\";\n }\n\n // Remove the last comma\n query = query.substring(0, query.length() - 1);\n\n // add the duplicate key entry\n query += \" ON DUPLICATE KEY UPDATE DataPoint = VALUES(DataPoint) , Updated = VALUES(Updated)\";\n\n // queue the query\n new RawQuery(mcstats, query).save();\n }",
"@Override\n public void addNew(int latency) {\n count.getAndIncrement();\n }",
"int insert(UvStatDay record);",
"@SqlUpdate(\"insert into PLAYERSTATS (SCOREID, USERID, TIMESTAMP, KILLS, SCORE) values \"\n + \"(:scoreId, :userId, :timestamp, :kills, :score)\")\n int insert(@BindBean PlayerStats playerStats);",
"public void insertIntoTable (String tableName , LinkedList<String> values);",
"public void insertStatistic(Object[] newParamArray) {\n\t\tString sql=\"insert statistics values(null,?,?,?,?,?)\";\n\t\tupdate(sql, newParamArray);\n\t}",
"@Override\n\tpublic int insert(TfLoss record) {\n\t\tif(record.getLossId()==null || record.getLossId().equals(\"\")){\n\t\t\trecord.setLossId(UUID.randomUUID().toString());\n\t\t}\n\t\treturn tfLossMapper.insert(record);\n\t}",
"public static void addGpsLogDataPoint( Connection connection, OmsGeopaparazziProject3To4Converter.GpsPoint point,\n long gpslogId ) throws Exception {\n Date timestamp = TimeUtilities.INSTANCE.TIME_FORMATTER_LOCAL.parse(point.utctime);\n\n String insertSQL = \"INSERT INTO \" + TableDescriptions.TABLE_GPSLOG_DATA + \"(\" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_ID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName() + //\n \") VALUES\" + \"(?,?,?,?,?,?)\";\n try (PreparedStatement writeStatement = connection.prepareStatement(insertSQL)) {\n writeStatement.setLong(1, point.id);\n writeStatement.setLong(2, gpslogId);\n writeStatement.setDouble(3, point.lon);\n writeStatement.setDouble(4, point.lat);\n writeStatement.setDouble(5, point.altim);\n writeStatement.setLong(6, timestamp.getTime());\n\n writeStatement.executeUpdate();\n }\n }",
"@Insert\n long insert(Measurement measurement);",
"public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}",
"public void fillTable(long firstRow, long lastRow){\n dbconnector.execWrite(\"INSERT INTO DW_station_sampled (id, id_station, timestamp_start, timestamp_end, \" +\n \"movement_mean, availability_mean, velib_nb_mean, weather) \" +\n \"(select null, ss.id_station, (ss.last_update * 0.001) as time_start, \" +\n \"unix_timestamp(addtime(FROM_UNIXTIME(ss.last_update * 0.001), '00:30:00')) as time_end, \" +\n \"round(AVG(ss.movements),1), round(AVG(ss.available_bike_stands),1), round(AVG(ss.available_bikes),1), \" +\n \"(select w.weather_group from DW_weather w, DW_station s \" +\n \"where w.calculation_time >= time_start and w.calculation_time <= time_end\"+ // lastRangeEnd +\n \" and w.city_id = s.city_id \" +\n \"and ss.id_station = s.id limit 1) \" +\n \"from DW_station_state ss \" +\n \"WHERE ss.id >= \" + firstRow +\" AND ss.id < \" + lastRow +\n \" GROUP BY ss.id_station, round(time_start / 1800))\");\n }",
"int insertSelective(HotspotLog record);",
"int insertSelective(TemperatureMeasureHitchEvent record);",
"public void insertData(double sugarLevel, double injectAmount) {\n int data_id = getLatestID(\"data\", \"data_ID\");\n closeConnection();\n String query = \"INSERT INTO data (data_ID,blood_sug_lvl,last_update,inj_amnt,users_user_id) VALUES (\"\n + data_id + \",\" + sugarLevel + \",now(),\" + injectAmount + \",1)\";\n sendUpdate(query);\n }",
"public void write(long[] timestamps, long[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"int insert(BasicInfoAnodeBurningLossRate record);",
"@Override\n\tpublic String insertTable(String sql, String pointid, String type) {\n\t\treturn \"insert into history_table_view(sqltext,pointid,type) values('\"+sql+ \"','\"+ pointid +\"','\"+ type +\"')\";\n\t}",
"public LatencyBucket(int latency) {\n this.latency = latency;\n this.count = new AtomicLong(0);\n }",
"public void addSampleToDB(Sample sensorSample, String TABLE_NAME) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(\"timestamp\", sensorSample.getTimestamp());\n values.put(\"x_val\", sensorSample.getX());\n values.put(\"y_val\", sensorSample.getY());\n values.put(\"z_val\", sensorSample.getZ());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"public void PushEventStatisticsFromDB() {\n\t\tmyDBUtil.open();\n\t\tCursor mCursor = myDBUtil.queryMarkIsZero();\n\t\tmCursor.moveToFirst();\n\t\tdo {\n\t\t\tfinal EventStatisticsData eventStatisticsData = new EventStatisticsData();\n\t\t\tString[] colums = new String[]{\n\t\t\t\t\t\"behavior\", \"appId\", \"appSrc\", \"packageName\", \"client\", \"listenArea\",\n\t\t\t\t\t\"listenContextId\", \"listenContextSrc\", \"clientVersion\", \"referenceId\",\n\t\t\t\t\t\"appName\", \"appVersion\"};\n\t\t\tint index;\n\t\t\tString value;\n\t\t\tfor (int i = 0; i < colums.length; i++) {\n\t\t\t\tindex = mCursor.getColumnIndex(colums[i]);\n\t\t\t\tvalue = mCursor.getString(index);\n\t\t\t\teventStatisticsData.SetParamFromApp(i, value);\n\t\t\t}\n\t\t\tindex = mCursor.getColumnIndex(\"_id\");\n\t\t\tfinal int id = mCursor.getInt(index);\n\t\t\tGetIPFromServer(new GetIpCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void solve(String result) {\n\t\t\t\t\tif (result != null && eventStatisticsData != null) {\n\t\t\t\t\t\tpushStatisticsEvent(eventStatisticsData, false, id);\n\t\t\t\t\t\tLog.d(TAG, \"im here don't insert to db,just update\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} while (mCursor.moveToNext());\n\t\tmCursor.close();\n\t\tmyDBUtil.close();\n\t}",
"private void insertState(State state) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n state.print();\n cupboard().withDatabase(db).put(state);\n IDToday++;\n aCache.put(Const.Cache_Lastime_Timepoint, state.getTime_point());\n }",
"private void uploadBatchTable(InsertAllRequest insertAllRequest) {\n final Stopwatch stopwatch = stopwatchProvider.get();\n final ImmutableMultimap.Builder<TableId, InsertAllResponse> responseMapBuilder =\n ImmutableMultimap.builder();\n final StringBuilder performanceStringBuilder = new StringBuilder();\n issueInsertAllRequest(\n stopwatch, responseMapBuilder, performanceStringBuilder, insertAllRequest);\n log.info(performanceStringBuilder.toString());\n // Check response and abort the process if any error happens. In this case, verify_snapshot\n // won't have the 'successful' record, hence we know that is a \"bad\" dataset.\n checkResponse(responseMapBuilder.build());\n }",
"public void write(long[] timestamps, double[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"void insertSelective(HrHBscCpuQos record);",
"int insert(BpmInstanciaHistorica record);",
"@Override\n\tpublic void put(Collection<SinkRecord> sinkRecords) throws ConnectException {\n \n\t\tfor (SinkRecord fuelrecord : sinkRecords) {\n\t\t\tSystem.out.print(\"Put message: \" + (String)fuelrecord.value() + \"\\n\"); \n\t\t\t\n\t\t\tSystem.out.println(\"FUEL PARSING\");;\n\t\t\tJsonReader jsonReader1 = Json.createReader(new StringReader((String) fuelrecord.value())); \n\t\t\tJsonObject jsonObj = jsonReader1.readObject();\n\t\t\tString fuelId = jsonObj.getString(\"fuelId\");\n\t\t\tSystem.out.println(\"Fuel ID and Name\" + fuelId);\n\t\t\t \t \n\t\t\tdouble lat = jsonObj.getJsonNumber(\"lat\").doubleValue();\n\t\t\tdouble lon = jsonObj.getJsonNumber(\"lon\").doubleValue();\n\t\t\t\t \t\n\t\t\tSystem.out.printf(\"fuel id: %s lat: %f lon: %f\\n\", fuelId, lat, lon);\t\n\t\t\t \n\t\t\tString fuelSql = \"INSERT INTO fuelTable (fuelId, lat, lon, geom) \"\n\t\t\t \t\t + \"VALUES (\" \n\t\t\t \t\t + \"'\" + fuelId + \"'\" + \",\"\n\t\t\t \t\t + lat + \",\" \n\t\t\t \t\t + lon + \",\"\n\t\t\t \t\t + \"'POINT(\"+ lat + \" \" + lon + \")'\" + \");\";\n\t\t\t \n\t\t\tSystem.out.println(fuelSql);\n\t\t\tfuelList.add(fuelSql);\n\t\t}\n\t}",
"int insert(SurveystatusPkey record);",
"public static void pushRouteToDatabase() {\n Database database = Database.getInstance();\n long distance = calculateTotalDistance(LocationService.getLocationPoints());\n long time = stopStart.getStopTime() - stopStart.getStartTime();\n database.addToDailyDistance(distance);\n database.addToDailyTime(time);\n }",
"public static Map<Integer, List<Float>> getTpsLatencyHsitory(int envId, String platform) {\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.GET_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.GET_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\tlogger.error(\"Not a valid platform\");\n\t\t}\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setInteger(\"envId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> resultList = query.list();\n\t\ttxn.commit();\n\t\tMap<Integer, List<Float>> mapTpsLat = new HashMap<Integer, List<Float>>();\n\t\tList<Float> listTpsLat = null;\n\t\tfor(Object[] resultObj : resultList){\n\t\t\tFloat tpsValue = (Float)resultObj[0];\n\t\t\tFloat latencyValues = (Float)resultObj[1];\n\t\t\tInteger comId = (Integer)resultObj[2];\n\t\t\tlistTpsLat = new ArrayList<Float>();\n\t\t\tlistTpsLat.add(tpsValue);\n\t\t\tlistTpsLat.add(latencyValues);\n\t\t\tmapTpsLat.put(comId, listTpsLat);\n\t\t}\n\t\treturn mapTpsLat;\n\t}",
"public void write(long[] timestamps, Binary[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void insertSiteStats (SiteStatisticsVO data) throws DataServiceException;",
"public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"public void write(long[] timestamps, float[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"int insert(Lbt72TesuryoSumDPkey record);",
"public void AddDataRecordtoDB(View view) {\n\n //get the running distance from textview\n TextView TV_distance = (TextView)findViewById(R.id.data_length);\n Double runningDistance = Double.parseDouble(TV_distance.getText().toString());\n System.out.println(\"distance is :\"+runningDistance);\n\n //get the calories from textview\n TextView TV_calories = (TextView)findViewById(R.id.data_calories);\n Double runningCalories = Double.parseDouble(TV_calories.getText().toString());\n System.out.println(\"calorie is :\"+runningCalories);\n\n // new an running \"entity\"\n Runningdata NewRunningdata = new Runningdata();\n NewRunningdata.setDistance(runningDistance);\n NewRunningdata.setCalorie(runningCalories);\n NewRunningdata.setStarttime(startTime);\n\n // using \"dao\" to manipulate database\n runningdao.insert(NewRunningdata);\n System.out.println(\"I did insertion\");\n }",
"@Insert({\n \"insert into tb_express_trace (order_id, num, \",\n \"com, status, message, \",\n \"ischeck, traceJson, \",\n \"create_time, \",\n \"last_udpate_time)\",\n \"values (#{orderId,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR}, \",\n \"#{com,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{message,jdbcType=VARCHAR}, \",\n \"#{ischeck,jdbcType=INTEGER}, #{tracejson,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler}, \",\n \"#{lastUdpateTime,jdbcType=TIMESTAMP,typeHandler=com.jfshare.mybatis.typehandler.JodaDateTime2TimestampTypeHandler})\"\n })\n int insert(TbExpressTrace record);",
"private void initialiseTable() {\n\n // Get database reference and listen for single event to use for download\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference().child(\"steps\");\n databaseReference.addListenerForSingleValueEvent(\n\n new ValueEventListener() {\n\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n Map<String,Object> currentSteps = (Map<String,Object>)dataSnapshot.getValue();\n\n // Add each downloaded value to the Arraylist\n for (Map.Entry<String,Object> entry : currentSteps.entrySet()){\n Map stepEntry = (Map) entry.getValue();\n int steps = ((Long)stepEntry.get(\"stepCount\")).intValue();\n Long timeMillis = Long.valueOf(entry.getKey());\n downloadedStepValues.add(new StepsRecord(steps,timeMillis));\n }\n\n // Sort to ensure the correct order in time\n Collections.sort(downloadedStepValues);\n\n // Add each entry to the table\n for(int i = 0; i < downloadedStepValues.size(); i++){\n Date date = new Date(downloadedStepValues.get(i).getTime());\n String markerText = DateFormat.getDateTimeInstance().format(date);\n addNewLine(markerText, downloadedStepValues.get(i).getStepCount());\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n }\n );\n }",
"@Override\n public void insertAdTotalLinkData(int i) throws DatabaseException {\n Map<String, Object> map = new HashMap<String, Object>();\n StringBuffer table = new StringBuffer();\n table.append(CalendarFormat.getYM(i));\n map.put(\"table\", table.toString());\n map.put(\"statDate\", CalendarFormat.getYmd(i));\n getSqlMapClientTemplate().insert(\"statSqlMap.insertAdTotalLinkData\", map);\n }",
"private void processHeartRateData(SensorEvent event){\n //interval between two data entry should be min SENSOR_DATA_MIN_INTERVAL\n if ((event.timestamp - lastUpdatePPG) < SENSOR_DATA_MIN_INTERVAL_NANOS) {\n return;\n }\n lastUpdatePPG = event.timestamp;\n long timestamp = Util.getStartTime() + event.timestamp/Const.NANOS_TO_MILLIS;\n savePPGData(event.values[0], timestamp);\n\n\n }",
"int insert(EbayLmsLog record);",
"public void insertHistory(RecordDTO recordDTO);",
"public void batchInsertByBkTime(Date bkTime) throws SnmpEventsProcessDaoException\n\t{\n\t\ttry {\n\t\t\t jdbcTemplate.update(\"INSERT INTO \" + getTableName() + \n\t\t\t\t\t \" ( MARK, MANUFACTURE, RESULTLIST, WARNMESSAGE, SUMMARY ) \"+\n\t\t\t\t\t \" select MARK, MANUFACTURE, RESULTLIST, WARNMESSAGE, SUMMARY \"+\n\t\t\t\t\t \" FROM DUAL, BK_SNMP_EVENTS_PROCESS where bk_time= ? \", bkTime);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SnmpEventsProcessDaoException(\"batchInsert failed\", e);\n\t\t}\n\t\t\n\t}",
"private void insertEventRecord(Device device, \n long fixtime, int statusCode, Geozone geozone,\n GeoPoint geoPoint, \n long gpioInput,\n double speedKPH, double heading, \n double altitude,\n double odomKM)\n {\n\n /* create event */\n EventData evdb = createEventRecord(device, fixtime, statusCode, geoPoint, gpioInput, speedKPH, heading, altitude, odomKM);\n\n /* insert event */\n // this will display an error if it was unable to store the event\n Print.logInfo(\"Event : [0x\" + StringTools.toHexString(statusCode,16) + \"] \" + StatusCodes.GetDescription(statusCode,null));\n if (device != null) {\n device.insertEventData(evdb); \n }\n this.eventTotalCount++;\n\n }",
"protected void insertDataIntoRecordings(Collection<Track> tracks) {\n\t\t// what happens if data already there?\n\t\t// big issue :(\n\t\t\n\t\t\ttry {\n\t\t\t\tPreparedStatement prep = conn.prepareStatement(\"INSERT INTO Recordings values (?, ?);\");\n\t\t\t\t\n\t\t\t\tfor (Track t : tracks) {\n\t\t\t\t\tprep.setString(1, t.getArtist());\n\t\t\t\t\tprep.setString(2, t.getName());\n\t\t\t\t\tprep.addBatch();\n\t\t\t\t\tSystem.out.println(\"Added \" +t.getArtist()+ \", \" +t.getName()+\" to recordings\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconn.setAutoCommit(false);\n\t \tprep.executeBatch();\n\t \tconn.setAutoCommit(true);\n\t \t\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Something went wrong with inserting batched data into Recordings\");\n\t\t\t\tSystem.out.println(\"Check System.err for details\");\n\t\t\t\te.printStackTrace(System.err);\n\t\t\t}\n\t\t\t\n\t}",
"int insertSelective(ParseTableLog record);",
"@Override\n public Status insert(String table, String key, Map<String, ByteIterator> values) {\n String hash = serialize(values);\n InsertM request = InsertM.newBuilder().setTable(table).setKey(key).setValues(hash).build();\n Result response;\n try {\n response = blockingStub.insert(request);\n } catch (StatusRuntimeException e) {\n return Status.ERROR;\n }\n return Status.OK;\n }",
"public void setLatencyParameters(int input, int output){\n\t\tif (input < 10000){Ts = (double)input/500000;}\n\t\tif (input >= 10000 && input <= 50000 ){Ts = (double)input/700000;}\n\t\tif (input > 50000){Ts = (double)input/900000;}\n\t\t\n\t\tif(output < 10000){Tr = (double)output/500000;}\n\t\tif (output >= 10000 && output <= 50000 ){Tr = (double)output/700000;}\n\t\tif (output > 50000){Tr = (double)output/900000;}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*for(int i = 0; i < nSN; i++ ){\n\t\t\tlatencyRemote[i][mthMD] = (Ts + Tp + Tr);\n\t\t\t}*/\n\t\t}",
"int insert(Kmffb record);",
"public void write(long[] timestamps, int[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"private void addToHashmap(String key, Long timestamp){\r\n\t\tkeyHashMap.putIfAbsent(key, new PriorityQueue<Long>());\r\n\t\tsynchronized(keyHashMap.get(key)){\r\n\t\t\tSystem.out.println(\"Added Key: \" + key + \" Time: \" + timestamp);\r\n\t\t\tkeyHashMap.get(key).add(timestamp);\r\n\t\t}\r\n\t}",
"public static void loadTpsService(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsServiceEntity tpsService = new TpsServiceEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsService.setEnvironment(environment);\n\t\ttpsService.setLastUpdated(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsService.setComponent(component);\n\t\ttpsService.setLaunchDate(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\ttpsService.setTpsValue(tpsVaule);\n\t\ttpsService.setLatencyValue(latencyValue);\n\t\tsession.save(tpsService);\n\t\ttxn.commit();\n\t}",
"@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);",
"public void addTimeTable(TimeTable timetable) {\n\t\t\n\t}",
"void insertBatch(List<TABLE41> recordLst);",
"public void insert(final Trip t) throws SQLException {\n long v;\n if(t.hasVehicle()) {\n v = t.getVehicle();\n if(v > vehicle) {\n vehicle = v + 1;\n }\n } else {\n v = vehicle++;\n }\n stmt.setLong(1, t.getPickupTime());\n stmt.setLong(2, v);\n stmt.setLong(3, t.getDropoffTime());\n stmt.setDouble(4, t.getPickupLat());\n stmt.setDouble(5, t.getPickupLon());\n stmt.setDouble(6, t.getDropoffLat());\n stmt.setDouble(7, t.getDropoffLon());\n stmt.executeUpdate();\n }",
"int insert(EventsWaitsSummaryByInstance record);",
"int insert(VarRatio record);",
"void storeBucketData(long window, long timestamp, Map<Integer, Map<Object, T>> data) throws IOException;",
"public void insert(String key){\n DataPair dp = getDataPair(key);\n insert(dp);\n }",
"public void createTempTable() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n _logger.info(\"Creating temporary table t_http_log_data\");\n PreparedStatement createTable = db.prepareStatement(create_temp_table);\n db.executeUpdate(createTable);\n } catch (Exception e) {\n _logger.fatal(\"Error when creating temporary table t_http_log_data\", e);\n throw e;\n } finally {\n db.exit();\n }\n st_insert_temp_table = db.prepareStatement(sql_insert_temp_table);\n }",
"public void insert(T t) { \n int bucket = hash(t);\n Table.get(bucket).addLast(t);\n numElements++;\n }",
"void insert(VRpDyLocationBh record);",
"@Insert\n void insertAll(Measurement... measurements);",
"void tryAddLogToBatch(TelemetryData log);",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"public void writeLatencyFile(long OpenGLFpsSum,int OpenGLFpsCount){\n\n String lf=settings.getString(\"latencyFile\",\"ERROR\");\n if(lf.length()>=1000 || lf.length()<=20){\n lf=\"These values only show the measured lag of the app; \\n\"+\n \"The overall App latency may be much more higher,because you have to add the 'input lag' of your phone-about 32-48ms on android \\n\"+\n \"Every 'time' values are in ms. \\n\";\n }\n if(fpsCount==0){fpsCount=1;}\n if(OpenGLFpsCount==0){OpenGLFpsCount=1;}\n averageDecoderfps=fpsSum/fpsCount;\n lf+=\"\\n Average HW Decoder fps: \"+(averageDecoderfps);\n if(OpenGLFpsSum>=0){lf+=\"\\n OpenGL as Output;Average OpenGL FPS: \"+(OpenGLFpsSum/(long)OpenGLFpsCount);}\n lf+=\"\\n Average measured app Latency: \"+(averageWaitForInputBufferLatency+averageHWDecoderLatency);\n lf+=\"\\n Average time waiting for an input Buffer:\"+averageWaitForInputBufferLatency;\n lf+=\"\\n Average time HW decoding:\"+averageHWDecoderLatency;\n lf+=\"\\n \";\n SharedPreferences.Editor editor=settings.edit();\n editor.putString(\"latencyFile\",lf);\n editor.commit();\n\n }",
"public void append(Node newNode)\r\n {\n newNode.prev = this;\r\n newNode.next = next;\r\n if (next != null)\r\n {\r\n next.prev = newNode;\r\n }\r\n next = newNode;\r\n System.out.println(\"Node added with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" added ontop of \" \r\n + prev.trafficEntry.convertToString());\r\n \r\n }",
"int insert(TbSnapshot record);",
"@Override\n public void run() {\n try {\n TableDataInsertAllResponse response = bigquery.tabledata()\n .insertAll(projectId, DATASET_ID, TABLE_ID, new TableDataInsertAllRequest()\n .setRows(ImmutableList.of(new TableDataInsertAllRequest.Rows()\n .setInsertId(insertId)\n .setJson(new ImmutableMap.Builder<String, Object>()\n .put(\"path\", path)\n .put(\"method\", method)\n .put(\"tld\", tld)\n .put(\"start_time\", startTime)\n .put(\"end_time\", endTime)\n .put(\"response_code\", responseCode)\n .put(\"activity\", activity)\n .build())))).execute();\n if (response.getInsertErrors() != null && !response.getInsertErrors().isEmpty()) {\n throw new RuntimeException(Joiner.on('\\n').join(FluentIterable\n .from(response.getInsertErrors())\n .transform(new Function<InsertErrors, String>() {\n @Override\n public String apply(InsertErrors error) {\n try {\n return error.toPrettyString();\n } catch (IOException e) {\n return error.toString();\n }\n }})));\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public void insertGPS(GPS gps, TableOperationCallback<GPS> callback) {\n mGPSTable.insert(gps, callback);\n }",
"int insert(HuoDong record);",
"public static void collectDataForLog( Connection connection, GpsLog log ) throws SQLException {\n long logId = log.id;\n\n String query = \"select \"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName()\n + //\n \" from \" + TABLE_GPSLOG_DATA + \" where \"\n + //\n GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \" = \" + logId + \" order by \"\n + GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName();\n\n try (Statement newStatement = connection.createStatement()) {\n newStatement.setQueryTimeout(30);\n ResultSet result = newStatement.executeQuery(query);\n\n while( result.next() ) {\n double lat = result.getDouble(1);\n double lon = result.getDouble(2);\n double altim = result.getDouble(3);\n long ts = result.getLong(4);\n\n GpsPoint gPoint = new GpsPoint();\n gPoint.lon = lon;\n gPoint.lat = lat;\n gPoint.altim = altim;\n gPoint.utctime = ts;\n log.points.add(gPoint);\n }\n }\n }",
"public void addBatch(List<Map<String, String>> batchData);",
"private void appendFirstPoint(long timestamp, double value) {\n long twoHourTimestampOverage = timestamp % BLOCK_HEADER_OFFSET_SECS;\n long blockHeaderTimestamp = timestamp - twoHourTimestampOverage;\n timestamps.write(32, blockHeaderTimestamp);\n prevTimestamp = timestamp;\n prevTimestampDelta = prevTimestamp - blockHeaderTimestamp;\n timestamps.write(14, prevTimestampDelta);\n\n // Store first value with no compression.\n long longValue = Double.doubleToLongBits(value);\n values.write(64, longValue);\n previousValue = longValue;\n previousLeadingZeros = 64;\n previousTrailingZeros = 64;\n }",
"public void insert(Vector _data) {\r\n //Error check\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insert: table invalid, nothing done\");\r\n return;\r\n }\r\n if(_data.size() == 0) {\r\n System.out.println(\"Error:Table:insert:data passed is empty, no data added\");\r\n return;\r\n }\r\n if(_data.size() != heading.size()) {\r\n System.out.println(\"Error:Table:insert:mismatch of data size no data added\");\r\n return;\r\n }\r\n\r\n //Inserts data into new row\r\n String key = \"\";\r\n Row newRow = new Row(_data);\r\n for(int i : primKeyIndexes)\r\n key = key + newRow.getDataAtIndex(i);\r\n rows.put(key, newRow);\r\n }",
"void record(long t0Ms, long t0Nano, long t1Nano, Operation op, Throwable... t);",
"private void addDataToPollTables(DataSource ds) {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = ds.getConnection();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tStatement pst = null;\n\t\ttry {\n\t\t\tpst = con.createStatement();\n\t\t\tResultSet rs = pst.executeQuery(\"SELECT * FROM Polls\");\n\t\t\tif (!rs.next()) {\n\t\t\t\t//@formatter:off\n\t\t\t\tpst.executeUpdate(\"INSERT INTO Polls(title, message) VALUES('Glasanje za omiljeni bend:', 'Od sljedećih bendova, koji Vam je bend najdraži? Kliknite na link kako biste glasali!')\", Statement.RETURN_GENERATED_KEYS);\n\t\t\t\t\n\t\t\t\trs = pst.getGeneratedKeys();\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif(rs != null && rs.next()) {\n\t\t\t\t\t\tlong id1 = rs.getLong(1);\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Mamas And The Papas', 'https://www.youtube.com/watch?v=N-aK6JnyFmk', \"+id1+\", 27)\");\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Everly Brothers', 'https://www.youtube.com/watch?v=tbU3zdAgiX8', \"+id1+\", 25)\");\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Beach Boys', 'https://www.youtube.com/watch?v=2s4slliAtQU', \"+id1+\", 150)\");\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Marcels', 'https://www.youtube.com/watch?v=qoi3TH59ZEs', \"+id1+\", 33)\");\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Four Seasons', 'https://www.youtube.com/watch?v=y8yvnqHmFds', \"+id1+\", 20)\");\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Platters', 'https://www.youtube.com/watch?v=H2di83WAOhU', \"+id1+\", 60)\");\n\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('The Beatles', 'https://www.youtube.com/watch?v=z9ypq6_5bsg', \"+id1+\", 150)\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\trs.close();\n//\t\t\t\t\t} catch (Exception ignorable) {\n//\t\t\t\t\t}\n\t\t\t\t\ttry { rs.close(); } catch(SQLException ex) {\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpst.executeUpdate(\"INSERT INTO Polls(title, message) VALUES('Favourite month od year:', 'What month of the year do you like the most? Refer to pics on link if unsure and pick one to vote!')\", Statement.RETURN_GENERATED_KEYS);\n\t\t\t\trs = pst.getGeneratedKeys();\n\t\t\t\ttry {\n\t\t\t\t\tif(rs != null && rs.next()) {\n\t\t\t\t\t\tlong id2 = rs.getLong(1);\n\t\t\t\t\t\tString[] months = new String[] {\"january\", \"february\", \"march\", \"april\", \"may\", \"june\", \"july\", \"august\", \"september\", \"october\", \"november\", \"december\"};\n\t\t\t\t\t\tfor(String m: months) {\n\t\t\t\t\t\t\tpst.executeUpdate(\"INSERT INTO PollOptions(optionTitle, optionLink, pollID, votesCount) VALUES('\"+m+\"', 'https://unsplash.com/search/photos/\"+m+\"', \"+id2+\", \"+new Random().nextInt(90)+\")\");\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t} finally {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\trs.close();\n//\t\t\t\t\t} catch (Exception ignorable) {\n//\t\t\t\t\t}\n\t\t\t\t\ttry { rs.close(); } catch(SQLException ex) {\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//@formatter:on\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpst.close();\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public synchronized void append(long timestamp, double value) {\n if (timestamp < 0 || timestamp > MAX_UNIX_TIMESTAMP) {\n throw new IllegalArgumentException(\"Timestamp is not a valid unix timestamp: \" + timestamp);\n }\n\n if (size == 0) {\n appendFirstPoint(timestamp, value);\n } else {\n appendNextPoint(timestamp, value);\n }\n size++;\n }",
"private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"int insert(WizardValuationHistoryEntity record);",
"public void insert(VRpDyIpbbCpuMem record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_IPBB_CPU_MEM.ibatorgenerated_insert\", record);\r\n }",
"@Override\r\n\tpublic void insert(List<MonitoredSupermarket> msList, int userId) throws SQLException {\r\n\t\tcon = ConnectionPoolManager.getPoolManagerInstance().getConnectionFromPool();\r\n\t\tPreparedStatement ps = null;\r\n\r\n\t\tString query = \"insert into monitored_supermarket(id_user,id_supermarket) values(?, ?)\";\r\n\r\n\t\tint insertsNumber = msList.size();\r\n\r\n\t\ttry{\r\n\t\t\tps = con.prepareStatement(query);\r\n\r\n\t\t\tfor(int i = 0; i < insertsNumber; i++){\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tps.setInt(1, userId);\r\n\t\t\t\t\tps.setInt(2, msList.get(i).getId_supermarket().getId_supermarket());\r\n\t\t\t\t\tps.executeUpdate();\r\n\t\t\t\t}catch (SQLException e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t} \t\r\n\t\t\t}\r\n\t\t} finally{\r\n\t\t\tConnectionPoolManager.getPoolManagerInstance().returnConnectionToPool(con);\r\n\t\t}\r\n\t\treturn;\r\n\r\n\t}",
"public void insert(Item x) {\n\t\tint probe = 0;\n\t\tif(amount==table.length) {\n\t\t\tSystem.out.println(\"Linear Insertion Failed: Table is full\");\n\t\t\tSystem.exit(0);\n\t\t\treturn;\n\t\t}\n\t\tint h = hash(x.getDate());\n\t\twhile(table[h]!=null) {\n\t\t\tprobe++;\n\t\t\t\n\t\t\th=(h+1)%getTablesize();\n\t\t}\n\t\ttable[h] = x;\n\t\tamount++;\n\t\tprobesInsert[amount-1] = probe;\n\t\tfixLoadFactor();\n\t\t\n\t\t\n\t\t\n\t}",
"public void setAvg_latency(Long avg_latency) {\n this.avg_latency = avg_latency;\n }"
] | [
"0.6327868",
"0.5874328",
"0.5499261",
"0.5383768",
"0.53410447",
"0.531821",
"0.52596825",
"0.5237534",
"0.5236046",
"0.52131265",
"0.51601875",
"0.5129291",
"0.5085151",
"0.50409436",
"0.50019455",
"0.497457",
"0.49732596",
"0.4964987",
"0.494162",
"0.49316087",
"0.49281538",
"0.49028146",
"0.4890514",
"0.48891917",
"0.48761326",
"0.48608842",
"0.48435998",
"0.4843419",
"0.48365283",
"0.4820231",
"0.48159546",
"0.47935298",
"0.47896084",
"0.478336",
"0.4779957",
"0.47748607",
"0.47695133",
"0.47565514",
"0.4754899",
"0.4741784",
"0.4722969",
"0.47216344",
"0.4708038",
"0.47053635",
"0.47031546",
"0.46987724",
"0.46942523",
"0.46863565",
"0.4681086",
"0.4680207",
"0.4680009",
"0.46790814",
"0.46774924",
"0.46766216",
"0.46762922",
"0.46758568",
"0.46579367",
"0.4653323",
"0.46519557",
"0.46465656",
"0.4645514",
"0.4643405",
"0.4641752",
"0.46361214",
"0.4633436",
"0.46318617",
"0.46202928",
"0.46126077",
"0.46121734",
"0.46120957",
"0.46110755",
"0.46075988",
"0.46055692",
"0.4594814",
"0.45922035",
"0.4585297",
"0.4584128",
"0.458168",
"0.45774886",
"0.4575806",
"0.45723817",
"0.45668408",
"0.45595148",
"0.45570618",
"0.4554874",
"0.45443097",
"0.45391375",
"0.4538811",
"0.45386446",
"0.45367283",
"0.4532081",
"0.45319465",
"0.4531619",
"0.4531279",
"0.4530716",
"0.45285586",
"0.45280424",
"0.45263878",
"0.45213056",
"0.45203796"
] | 0.65701103 | 0 |
Update the tps_latency_history/k8s_tps_latency_history table with tps & Latency values. | public static void updateTpsLatHistory(final int envId, int componentId, float tpsVaule, float latencyValue, String platform){
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());
String queryStr = null;
if(platform.equals("K8s")){
queryStr = HQLConstants.UPDATE_K8S_TPS_LAT_HISTORY;
}else if(platform.equals("Mesos")){
queryStr = HQLConstants.UPDATE_MESOS_TPS_LAT_HISTORY;
}else{
return;
}
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(queryStr);
query.setFloat("tpsVaule", tpsVaule);
query.setFloat("latencyValue", latencyValue);
query.setLong("compId", componentId);
query.setLong("environmentId", envId);
query.setDate("statusDate", todayDate);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadK8sTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sTpsLatHistoryEntity tpsLabHis = new K8sTpsLatHistoryEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsLabHis.setEnvironment(environment);\n\t\ttpsLabHis.setStatusDate(todayDate);\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsLabHis.setComponent(component);\n\t\ttpsLabHis.setTpsValue(tpsVaule);\n\t\ttpsLabHis.setLatencyValue(latencyValue);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"public static void loadTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsLatHistoryEntity tpsLabHis = new TpsLatHistoryEntity();\n\t\tsetTPSLatencyHistory(envId, conponentId, tpsVaule, latencyValue, todayDate, tpsLabHis);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"public static void updateTpsService(final int envId, int componentId, float tpsVaule, float latencyValue){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_TPS_SERVICE_DETAILS);\n\t\tquery.setFloat(\"tpsVaule\", tpsVaule);\n\t\tquery.setFloat(\"latencyValue\", latencyValue);\n\t\tquery.setTimestamp(\"lastUpdateDate\", new java.sql.Timestamp(System.currentTimeMillis()));\n\t\tquery.setLong(\"compId\", componentId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public void setLatencyParameters(int input, int output){\n\t\tif (input < 10000){Ts = (double)input/500000;}\n\t\tif (input >= 10000 && input <= 50000 ){Ts = (double)input/700000;}\n\t\tif (input > 50000){Ts = (double)input/900000;}\n\t\t\n\t\tif(output < 10000){Tr = (double)output/500000;}\n\t\tif (output >= 10000 && output <= 50000 ){Tr = (double)output/700000;}\n\t\tif (output > 50000){Tr = (double)output/900000;}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*for(int i = 0; i < nSN; i++ ){\n\t\t\tlatencyRemote[i][mthMD] = (Ts + Tp + Tr);\n\t\t\t}*/\n\t\t}",
"public void setTsUpdate(java.lang.Long value) {\n this.ts_update = value;\n }",
"public void setTotal_latency(Long total_latency) {\n this.total_latency = total_latency;\n }",
"public static Map<Integer, List<Float>> getTpsLatencyHsitory(int envId, String platform) {\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.GET_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.GET_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\tlogger.error(\"Not a valid platform\");\n\t\t}\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setInteger(\"envId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> resultList = query.list();\n\t\ttxn.commit();\n\t\tMap<Integer, List<Float>> mapTpsLat = new HashMap<Integer, List<Float>>();\n\t\tList<Float> listTpsLat = null;\n\t\tfor(Object[] resultObj : resultList){\n\t\t\tFloat tpsValue = (Float)resultObj[0];\n\t\t\tFloat latencyValues = (Float)resultObj[1];\n\t\t\tInteger comId = (Integer)resultObj[2];\n\t\t\tlistTpsLat = new ArrayList<Float>();\n\t\t\tlistTpsLat.add(tpsValue);\n\t\t\tlistTpsLat.add(latencyValues);\n\t\t\tmapTpsLat.put(comId, listTpsLat);\n\t\t}\n\t\treturn mapTpsLat;\n\t}",
"public void setAvg_latency(Long avg_latency) {\n this.avg_latency = avg_latency;\n }",
"public ThroughputSettingsGetResultsInner updateTableThroughput(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) {\n return updateTableThroughputWithServiceResponseAsync(resourceGroupName, accountName, tableName, updateThroughputParameters).toBlocking().last().body();\n }",
"private synchronized void evaluateOverspeeding(long speedTimestamp) {\r\n\r\n\r\n long timeElapsedMillis = speedTimestamp - overspeedStartTimestamp;\r\n\r\n /**\r\n * If overspeeding is less than 10 seconds long, it's considered to be ok\r\n */\r\n if (timeElapsedMillis <= 10000 && !goodScoreUpdated && !mediumScoreUpdated && !badScoreUpdated) {\r\n scoreListener.onOverspeeding(ScoreType.GOOD);\r\n goodScoreUpdated = true;\r\n }\r\n /**\r\n * If overspeeding is between 10 and 30 seconds long, it will start altering the score\r\n */\r\n if (timeElapsedMillis > 10000 && timeElapsedMillis <= 30000 && !mediumScoreUpdated && !badScoreUpdated) {\r\n\r\n event.setScoreToMedium();\r\n scoreListener.onOverspeeding(ScoreType.MEDIUM);\r\n mediumScoreUpdated = true;\r\n }\r\n /**\r\n * If overspeeding is longer than 30 seconds, the score will be severely altered\r\n */\r\n if (timeElapsedMillis > 30000 && !badScoreUpdated) {\r\n event.setScoreToBad();\r\n badScoreUpdated = true;\r\n }\r\n }",
"public Value.Builder setTsUpdate(long value) {\n validate(fields()[11], value);\n this.ts_update = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public void latencyMsgsPerSec(int latencyMsgsPerSec)\n\t{\n\t\t_latencyMsgsPerSec = latencyMsgsPerSec;\n\t}",
"public void update( long timestamp, Number value );",
"public void writeLatencyFile(long OpenGLFpsSum,int OpenGLFpsCount){\n\n String lf=settings.getString(\"latencyFile\",\"ERROR\");\n if(lf.length()>=1000 || lf.length()<=20){\n lf=\"These values only show the measured lag of the app; \\n\"+\n \"The overall App latency may be much more higher,because you have to add the 'input lag' of your phone-about 32-48ms on android \\n\"+\n \"Every 'time' values are in ms. \\n\";\n }\n if(fpsCount==0){fpsCount=1;}\n if(OpenGLFpsCount==0){OpenGLFpsCount=1;}\n averageDecoderfps=fpsSum/fpsCount;\n lf+=\"\\n Average HW Decoder fps: \"+(averageDecoderfps);\n if(OpenGLFpsSum>=0){lf+=\"\\n OpenGL as Output;Average OpenGL FPS: \"+(OpenGLFpsSum/(long)OpenGLFpsCount);}\n lf+=\"\\n Average measured app Latency: \"+(averageWaitForInputBufferLatency+averageHWDecoderLatency);\n lf+=\"\\n Average time waiting for an input Buffer:\"+averageWaitForInputBufferLatency;\n lf+=\"\\n Average time HW decoding:\"+averageHWDecoderLatency;\n lf+=\"\\n \";\n SharedPreferences.Editor editor=settings.edit();\n editor.putString(\"latencyFile\",lf);\n editor.commit();\n\n }",
"public void doUpdates(MetricsContext unused) {\n synchronized (this) {\n this.cluster_requests.pushMetric(metricsRecord);\n }\n this.metricsRecord.update();\n }",
"public Builder setTsUpdate(long value) {\n bitField0_ |= 0x00000400;\n tsUpdate_ = value;\n onChanged();\n return this;\n }",
"private void updateWeights(Hashtable<NeuralNode, Double> nodeValues, double learnRate, double momentum) {\r\n\t\tfor (OutputNode output : outputs) {\r\n\t\t\toutput.updateWeights(null, nodeValues, learnRate, momentum);\r\n\t\t}\r\n\t}",
"private void updateSpeed(CLocation location) {\n float nCurrentSpeed = 0;\n\n if (location != null) {\n nCurrentSpeed = location.getSpeed();\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.US, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(' ', '0');\n double speed = Double.parseDouble(strCurrentSpeed);\n speed = speed * 1.60934;\n String strUnits = \"miles/hour\";\n int count = (int) speed;\n String s = String.valueOf(count);\n speedTextView.setText(\"Train Speed : \" + s + \" Km/h\");\n }",
"public ThroughputSettingsGetResultsInner beginUpdateTableThroughput(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) {\n return beginUpdateTableThroughputWithServiceResponseAsync(resourceGroupName, accountName, tableName, updateThroughputParameters).toBlocking().single().body();\n }",
"public void updateTimeStamp (Object timeStamp, String url) {\n LineTranslations.getTranslations().updateTimeStamp(timeStamp, url);\n }",
"public void addLatency(AbstractBenchmarkState state, BenchmarkInteraction interaction, long latency) {\n // Latency only makes sense if there was an interaction.\n if (interaction == null)\n return;\n String stateName = state.getStateName();\n String interactionName = interaction.fullName;\n addLatency(stateName, interactionName, latency);\n }",
"public void write(long[] timestamps, long[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void updateHighscores(ArrayList<Player> tableContent) {\n // Add scores to table\n for (Player p : tableContent) {\n view.getHomePanel().getTableModel().addRow(playerToObjArray(p));\n }\n }",
"@SuppressLint(\"DefaultLocale\")\n void updateM2Status(boolean connected, int latency, int rate) {\n sendM2Event(\"status\", String.format(\"[%b, %d, %d]\", connected, latency, rate));\n }",
"public static void loadTpsService(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsServiceEntity tpsService = new TpsServiceEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsService.setEnvironment(environment);\n\t\ttpsService.setLastUpdated(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsService.setComponent(component);\n\t\ttpsService.setLaunchDate(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\ttpsService.setTpsValue(tpsVaule);\n\t\ttpsService.setLatencyValue(latencyValue);\n\t\tsession.save(tpsService);\n\t\ttxn.commit();\n\t}",
"private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }",
"@Override\n public void ptt(int value, int timestamp) {\n }",
"@Override\n public void estimateThetas() {\n HashMap<Integer, HashMap<Integer, Double>> newThetaMap = new HashMap<Integer, HashMap<Integer, Double>>();\n HashMap<Integer, HashMap<String, Double>> newThetaMapString = new HashMap<Integer, HashMap<String, Double>>();\n\n // For each city\n ArrayList<HashMap<Integer, HashSet<Integer>>> customersAtTableList = samplerState.getCustomersAtTableList();\n for (int cityId=0; cityId<customersAtTableList.size(); cityId++) {\n // For each table id\n Set<Integer> tableIds = customersAtTableList.get(cityId).keySet();\n for (Integer tableId : tableIds) {\n // get all the observations for this table and add them to the counts\n ArrayList<Double> tableObservations = samplerState.getObservationsFromTable(tableId, cityId);\n\n // Compute the unique tableId used in the thetaMaps\n Integer uniqueTableId = getUniqueTableId(cityId, tableId);\n\n // Initialize the tables's theta vector\n HashMap<Integer, Double> theta = new HashMap<Integer, Double>(); \n HashMap<String, Double> thetaString = new HashMap<String, Double>(); \n\n // add the dirichlet parameters\n ArrayList<Double> dirichletParam = hyperParameters.getDirichletParam();\n for (int j=0; j<dirichletParam.size(); j++) {\n theta.put(j, dirichletParam.get(j));\n thetaString.put(vocabulary.get(j), dirichletParam.get(j));\n }\n\n if (tableObservations != null && tableObservations.size() > 0) {\n for (Double obs : tableObservations) {\n Integer observation = obs.intValue() - 1;\n String observationString = vocabulary.get(observation);\n double currentObservationCount = theta.get(observation);\n theta.put(observation, currentObservationCount + 1);\n thetaString.put(observationString, currentObservationCount + 1); \n }\n }\n\n // get the normalizing constant\n double norm = 0.0;\n for (int j=0; j<hyperParameters.getVocabSize(); j++) {\n norm += theta.get(j);\n }\n\n // divide by the normalizing constant\n for (int j=0; j<hyperParameters.getVocabSize(); j++) {\n String obsStringJ = vocabulary.get(j);\n double thetaJ = theta.get(j) / norm;\n theta.put(j, thetaJ);\n thetaString.put(obsStringJ, thetaJ);\n } \n\n newThetaMap.put(uniqueTableId, theta);\n newThetaMapString.put(uniqueTableId, thetaString);\n }\n }\n\n thetaMap = newThetaMap;\n thetaMapString = newThetaMapString;\n }",
"private void updatePriceStats(double newPrice) {\n this.currentPrice = newPrice;\n this.currentAvgPrice = Double.parseDouble(decimalFormat.format(computeSMA(newPrice, currentAvgPrice, priceHistory)));\n this.priceChangePCT = Double.parseDouble(decimalFormat.format(computeDifferentialPCT(newPrice, currentAvgPrice)));\n }",
"void updateStops(HashMap<String, List<TimedStopProblem>> problemsToAdd);",
"private void UpdateTable() {\n\t\t\t\t\n\t\t\t}",
"public void write(long[] timestamps, double[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public void setAvgLatency(BigDecimal avgLatency) {\n this.avgLatency = avgLatency;\n }",
"private void updLTMST() \n\t{\n\t\ttry{\n\t\t\tM_strSQLQRY = \"Update PR_LTMST set \";\n\t\t\tM_strSQLQRY += \"LT_DSPQT = LT_DSPQT - \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"LT_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"LT_LUSBY = '\"+ cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"LT_LUPDT = '\"+ M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst ))+\"'\";\n\t\t\tM_strSQLQRY += \" where lt_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lt_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and lt_rclno = '\"+strRCLNO+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update pr_ltmst table :\"+M_strSQLQRY);\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"setLCLUPD\");\n\t\t}\n\t}",
"private static void updateHitrate(String s) {\n long _missCountSum = getCounterResult(\"missCount\");\n long _opCountSum = getCounterResult(\"opCount\");\n if (_opCountSum == 0L) {\n return;\n }\n double _hitRate = 100.0 - _missCountSum * 100.0 / _opCountSum;\n System.err.println(Thread.currentThread() + \" \" + s + \", opSum=\" + _opCountSum + \", missSum=\" + _missCountSum + \", hitRate=\" + _hitRate);\n setResult(\"hitrate\", _hitRate, \"percent\", AggregationPolicy.AVG);\n }",
"public void setTotalLatency(BigDecimal totalLatency) {\n this.totalLatency = totalLatency;\n }",
"private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public Observable<ServiceResponse<ThroughputSettingsGetResultsInner>> updateTableThroughputWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) {\n if (this.client.subscriptionId() == null) {\n throw new IllegalArgumentException(\"Parameter this.client.subscriptionId() is required and cannot be null.\");\n }\n if (resourceGroupName == null) {\n throw new IllegalArgumentException(\"Parameter resourceGroupName is required and cannot be null.\");\n }\n if (accountName == null) {\n throw new IllegalArgumentException(\"Parameter accountName is required and cannot be null.\");\n }\n if (tableName == null) {\n throw new IllegalArgumentException(\"Parameter tableName is required and cannot be null.\");\n }\n if (updateThroughputParameters == null) {\n throw new IllegalArgumentException(\"Parameter updateThroughputParameters is required and cannot be null.\");\n }\n Validator.validate(updateThroughputParameters);\n final String apiVersion = \"2019-08-01\";\n Observable<Response<ResponseBody>> observable = service.updateTableThroughput(this.client.subscriptionId(), resourceGroupName, accountName, tableName, apiVersion, updateThroughputParameters, this.client.acceptLanguage(), this.client.userAgent());\n return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<ThroughputSettingsGetResultsInner>() { }.getType());\n }",
"private void updateSpeed(CLocation location) {\n try {\n\n i = i + 1;\n Log.i(\"111\", \"====updateSpeed=====i===\" + i);\n // Log.i(\"111\",\"====location=====getLongitude===\"+location.getLongitude());\n // Log.i(\"111\",\"====location=====getLatitude===\"+location.getLatitude());\n\n\n float nCurrentSpeed = 0;\n\n if (location != null) {\n location.setUseMetricunits(true);\n nCurrentSpeed = location.getSpeed();\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.US, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(' ', '0');\n\n String strUnits = \"miles/hour\";\n\n\n strLog = strLog +\n \"\\n--------------\\n \" +\n strCurrentSpeed + \" \" + strUnits +\n \"\\n--------------\\n \";\n\n tvData.append(\"\\n Speed2 = \" + strCurrentSpeed + \" \" + strUnits);\n\n /* float speed = Float.parseFloat(strCurrentSpeed);\n if(speed<100)\n mGaugeView.setTargetValue(speed);\n else\n {\n tvLog.setText(\"out of speed\"+strLog);\n }*/\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public Observable<ThroughputSettingsGetResultsInner> beginUpdateTableThroughputAsync(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) {\n return beginUpdateTableThroughputWithServiceResponseAsync(resourceGroupName, accountName, tableName, updateThroughputParameters).map(new Func1<ServiceResponse<ThroughputSettingsGetResultsInner>, ThroughputSettingsGetResultsInner>() {\n @Override\n public ThroughputSettingsGetResultsInner call(ServiceResponse<ThroughputSettingsGetResultsInner> response) {\n return response.body();\n }\n });\n }",
"public Observable<ThroughputSettingsGetResultsInner> updateTableThroughputAsync(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) {\n return updateTableThroughputWithServiceResponseAsync(resourceGroupName, accountName, tableName, updateThroughputParameters).map(new Func1<ServiceResponse<ThroughputSettingsGetResultsInner>, ThroughputSettingsGetResultsInner>() {\n @Override\n public ThroughputSettingsGetResultsInner call(ServiceResponse<ThroughputSettingsGetResultsInner> response) {\n return response.body();\n }\n });\n }",
"public void write(long[] timestamps, float[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public static void cal_KLD(String newTable_name,Connection con2) throws SQLException{\n\t\tStatement st = con2.createStatement();\n\t\t\n\t\tString query_jp = \"update \" + newTable_name + \" set JP= \" + column_names_CP.get(1);\n for(int l=2; l<column_names_CP.size(); l++){\n \tquery_jp = query_jp + \" * \" + column_names_CP.get(l);\n }\n System.out.println(\"KLD1: \" + query_jp);\n st.execute(query_jp);\n \n\t ResultSet rst = st.executeQuery(\"select sum(MULT) from \" + newTable_name + \" ;\");\n\t rst.absolute(1);\n\t Long mult_sum = rst.getLong(1); \n\t String query1 = \"update \" + newTable_name + \" set JP_DB=MULT/\" + mult_sum+\" ;\";\n\t System.out.println(\"query 1: \" + query1);\n\t st.execute(query1); \n\t \n\t String query2=\"update \" + newTable_name + \" set KLD= (JP_DB*(log(JP_DB)-log(JP))) where MULT<>0;\"; \n\t System.out.println(\"KLD2: \" + query2);\n\t st.execute(query2);\n\t \n\t \n\t st.close();\n\t\n\t}",
"protected abstract void trace_pre_updates();",
"public LatencyBucket(int latency) {\n this.latency = latency;\n this.count = new AtomicLong(0);\n }",
"public void write(long[] timestamps, int[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"public abstract void setSecondsPerUpdate(float secs);",
"private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}",
"void updateTableToken(TableToken tableToken);",
"public void batchUpdateWeights() {\n\t\tObject[] keys = nextLayerNodes.keySet().toArray();\n\t\tfor (Object key : keys) {\n\t\t\tNode nextLayerNode = (Node) key;\n\t\t\t// System.out.printf(\"Updating weight from %f to %f%n\", nextLayerNodes.get(nextLayerNode), nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble oldWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tnextLayerNodes.put(nextLayerNode, nextLayerNodesUpdateMap.get(nextLayerNode));\n\t\t\tdouble newWeight = nextLayerNodes.get(nextLayerNode);\n\t\t\tdouble deltaWeight = oldWeight-newWeight;\n\t\t\tSystem.out.printf(\"Changed from %f to %f%n\", oldWeight, newWeight);\n\t\t\tif (deltaWeight > 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf (\"Increased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t} else if (deltaWeight < 0.0) {\n\t\t\t\tif (nextLayerNodesArrayList.get(0).nextLayerNodes.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"Hidden Node connected to output layer \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"Node connected to another hidden layer \");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"Decreased!! Delta weight = %.10f%n\", deltaWeight);\n\t\t\t}\n\t\t}\n\t}",
"public void setSpeed(int newTicksMultiplier) {\r\n this.ticksMultiplier = newTicksMultiplier;\r\n }",
"private CommandResult updateLesson() throws KolinuxException {\n timetable.executeUpdate(parsedArguments);\n logger.log(Level.INFO, \"User has updated the timetable.\");\n return new CommandResult(parsedArguments[0].toUpperCase() + \" \"\n +\n parsedArguments[1].toUpperCase() + \" has been updated\");\n }",
"double smem_lti_activate(long lti, boolean add_access, long num_edges) throws SQLException\n {\n // TODO: SMem Timers\n // //////////////////////////////////////////////////////////////////////////\n // my_agent->smem_timers->act->start();\n // //////////////////////////////////////////////////////////////////////////\n \n long time_now;\n if(add_access)\n {\n time_now = this.smem_max_cycle++;\n \n if((this.params.activation_mode.get() == DefaultSemanticMemoryParams.ActivationChoices.base_level)\n && (this.params.base_update.get() == DefaultSemanticMemoryParams.BaseUpdateChoices.incremental))\n {\n long time_diff;\n \n // for ( std::set< int64_t >::iterator\n // b=my_agent->smem_params->base_incremental_threshes->set_begin();\n // b!=my_agent->smem_params->base_incremental_threshes->set_end();\n // b++ )\n for(Iterator<Long> b = this.params.base_incremental_threshes.get().iterator(); b.hasNext();)\n {\n Long next = b.next();\n \n if(next > 0)\n {\n time_diff = (time_now - next);\n \n if(time_diff > 0)\n {\n List<Long> to_update = new ArrayList<>();\n \n db.lti_get_t.setLong(1, time_diff);\n try(ResultSet rs = db.lti_get_t.executeQuery();)\n {\n \n // while (\n // my_agent->smem_stmts->lti_get_t->execute() ==\n // soar_module::row )\n \n while(rs.next())\n {\n to_update.add(rs.getLong(0 + 1));\n }\n }\n \n // for ( std::list< smem_lti_id >::iterator\n // it=to_update.begin(); it!=to_update.end(); it++ )\n for(Long l : to_update)\n {\n smem_lti_activate(l, false);\n }\n }\n }\n }\n }\n }\n else\n {\n time_now = smem_max_cycle;\n \n this.stats.act_updates.set(this.stats.act_updates.get() + 1);\n }\n \n // access information\n long prev_access_n = 0;\n @SuppressWarnings(\"unused\")\n long prev_access_t = 0;\n long prev_access_1 = 0;\n {\n // get old (potentially useful below)\n db.lti_access_get.setLong(1, lti);\n try(ResultSet rs = db.lti_access_get.executeQuery())\n {\n rs.next();\n prev_access_n = rs.getLong(0 + 1);\n prev_access_t = rs.getLong(1 + 1);\n prev_access_1 = rs.getLong(2 + 1);\n }\n \n // set new\n if(add_access)\n {\n db.lti_access_set.setLong(1, (prev_access_n + 1));\n db.lti_access_set.setLong(2, time_now);\n db.lti_access_set.setLong(3, ((prev_access_n == 0) ? (time_now) : (prev_access_1)));\n \n db.lti_access_set.setLong(4, lti);\n db.lti_access_set.executeUpdate();\n }\n }\n \n // get new activation value (depends upon bias)\n double new_activation = 0.0;\n ActivationChoices act_mode = this.params.activation_mode.get();\n if(act_mode == ActivationChoices.recency)\n {\n new_activation = time_now;\n }\n else if(act_mode == ActivationChoices.frequency)\n {\n new_activation = prev_access_n + ((add_access) ? (1) : (0));\n }\n else if(act_mode == ActivationChoices.base_level)\n {\n if(prev_access_n == 0)\n {\n if(add_access)\n {\n db.history_add.setLong(1, lti);\n db.history_add.setLong(2, time_now);\n db.history_add.executeUpdate();\n }\n \n new_activation = 0;\n }\n else\n {\n if(add_access)\n {\n db.history_push.setLong(1, time_now);\n db.history_push.setLong(2, lti);\n db.history_push.executeUpdate();\n }\n \n new_activation = smem_lti_calc_base(lti, time_now + ((add_access) ? (1) : (0)), prev_access_n + ((add_access) ? (1) : (0)), prev_access_1);\n }\n }\n \n // get number of augmentations (if not supplied)\n if(num_edges == SMEM_ACT_MAX)\n {\n ResultSet rs = null;\n try\n {\n db.act_lti_child_ct_get.setLong(1, lti);\n rs = db.act_lti_child_ct_get.executeQuery();\n rs.next();\n num_edges = rs.getLong(0 + 1);\n }\n finally\n {\n rs.close();\n }\n }\n \n // only if augmentation count is less than threshold do we associate\n // with edges\n if(num_edges < this.params.thresh.get())\n {\n // activation_value=? WHERE lti=?\n db.act_set.setDouble(1, new_activation);\n db.act_set.setLong(2, lti);\n db.act_set.executeUpdate();\n }\n \n // always associate activation with lti\n {\n // activation_value=? WHERE lti=?\n db.act_lti_set.setDouble(1, new_activation);\n db.act_lti_set.setLong(2, lti);\n db.act_lti_set.executeUpdate();\n }\n \n // TODO: SMem Timers\n // //////////////////////////////////////////////////////////////////////////\n // my_agent->smem_timers->act->stop();\n // //////////////////////////////////////////////////////////////////////////\n \n return new_activation;\n }",
"private void updateDifficulty(){\n if(GameManager.getInstance().isMaxDifficulty()){\n return;\n }\n\n Difficulty currentDifficulty = GameManager.getInstance().getDifficulty();\n\n //Difficulty changes every 10 seconds\n if(totalTimePassed - (10 * currentDifficulty.getLevel()) > 0){\n int nextDifficulty = currentDifficulty.getLevel() + 1;\n String difficultyName = \"DIFFICULTY_\" + nextDifficulty;\n GameManager.getInstance().setDifficulty(Difficulty.valueOf(difficultyName));\n\n penguin.changeDifficulty(GameManager.getInstance().getDifficulty());\n score.setMultiplier(GameManager.getInstance().getDifficulty().getScoreMultiplier());\n }\n }",
"void updateLT (int size, LeapNode [][] pa, LeapNode [][] na, LeapNode[] n, LeapNode[][] newNode, int[] maxHeight,\n\t\t\t\t\t\t\t\tboolean[] changed){\n\t}",
"@Override\n public void onTrafficStatusUpdate() {\n\n }",
"double kts_to_speed (double kts) {\n return (lunits == METRIC) \n ? kts / 0.539957\n : kts / 0.868976;\n }",
"public void updateLUTRecorder() {\r\n if ( lutRecorder != null ) {\r\n lutRecorder.dragPoint( ( (ViewJComponentHistoLUT) componentHistogram ).getLUT() );\r\n }\r\n }",
"public void insert_penalty(String state_key, double pnlty){\n\t\t//convert penalty\n\t\tdouble[] penalty = new double[1];\n\t\tpenalty[0] = pnlty;\n\t\t\n\t\t//add into buffer\n\t\tpenalty_buffer.put(state_key, penalty);\n\t}",
"public void setLatencySensitivitySupported(java.lang.Boolean latencySensitivitySupported) {\r\n this.latencySensitivitySupported = latencySensitivitySupported;\r\n }",
"public void updateWithTestStats() {\n\t\tBasicDBObject updateQuery = new BasicDBObject(); \n\t\tBasicDBObject fieldSets = new BasicDBObject(); \n\t\tfieldSets.put(\"numFailedTests\", numFailedTests); \n\t\tfieldSets.put(\"numPassedTests\", numPassedTests); \n\t\tfieldSets.put(\"testSuiteName\", testSuiteName); \n\t\tfieldSets.put(\"testEndTime\", testEndTime); \n\t\tupdateQuery.put( \"$set\", fieldSets); \n\t\tappendData(updateQuery);\n\t}",
"public Observable<ServiceResponse<ThroughputSettingsGetResultsInner>> beginUpdateTableThroughputWithServiceResponseAsync(String resourceGroupName, String accountName, String tableName, ThroughputSettingsUpdateParameters updateThroughputParameters) {\n if (this.client.subscriptionId() == null) {\n throw new IllegalArgumentException(\"Parameter this.client.subscriptionId() is required and cannot be null.\");\n }\n if (resourceGroupName == null) {\n throw new IllegalArgumentException(\"Parameter resourceGroupName is required and cannot be null.\");\n }\n if (accountName == null) {\n throw new IllegalArgumentException(\"Parameter accountName is required and cannot be null.\");\n }\n if (tableName == null) {\n throw new IllegalArgumentException(\"Parameter tableName is required and cannot be null.\");\n }\n if (updateThroughputParameters == null) {\n throw new IllegalArgumentException(\"Parameter updateThroughputParameters is required and cannot be null.\");\n }\n Validator.validate(updateThroughputParameters);\n final String apiVersion = \"2019-08-01\";\n return service.beginUpdateTableThroughput(this.client.subscriptionId(), resourceGroupName, accountName, tableName, apiVersion, updateThroughputParameters, this.client.acceptLanguage(), this.client.userAgent())\n .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ThroughputSettingsGetResultsInner>>>() {\n @Override\n public Observable<ServiceResponse<ThroughputSettingsGetResultsInner>> call(Response<ResponseBody> response) {\n try {\n ServiceResponse<ThroughputSettingsGetResultsInner> clientResponse = beginUpdateTableThroughputDelegate(response);\n return Observable.just(clientResponse);\n } catch (Throwable t) {\n return Observable.error(t);\n }\n }\n });\n }",
"private void updatePerformanceBasedOnNavigation() {\n if (DataPool.LmCurrentCard >= 0 && DataPool.LmCurrentCard < DataPool.getPoolSize()) {\n WordConnection wc = DataPool.getWordConnection(DataPool.LmCurrentCard);\n Performance perf = DataPool.getPerformance(wc.connectionId);\n if (perf == null) {\n MyQuickToast.showShort(act, \"No performance data: \" + wc.connectionId);\n return;\n }\n if (DataPool.LmType == Learning_Type_Review) {\n perf.performance = \"good\";\n }\n perf.tempVersion = perf.version + 1;\n perf.save();\n }\n }",
"@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}",
"public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}",
"protected void updateTelemetry(){\n telemetry.addData(\"Runtime\", this.getRuntime());\n Robot.outputToTelemetry(this);\n telemetry.update();\n }",
"public void setThroughput(Long throughput) {\n this.throughput = throughput;\n }",
"long getTsUpdate();",
"public void update() {\r\n\t\ttable.putNumber(TARGET_X_KEY, targetX);\r\n\t\ttable.putNumber(TARGET_Y_KEY, targetY);\r\n\t\ttable.putNumber(DISTANCE, distance);\r\n\t\ttable.putBoolean(IS_FOUND, targetFound);\r\n\r\n\t}",
"public void update(long timestamp, double[] val)\n {\n SensorData old_data;\n SensorData new_data = new SensorData(timestamp, val);\n do {\n old_data = data.get();\n if (old_data != null && old_data.getTimestamp() >= new_data.getTimestamp()) {\n return; // could not update, other thread was faster\n }\n } while (!data.compareAndSet(old_data, new_data));\n\n }",
"public void setTs(long value) {\n this.ts = value;\n }",
"@Override\n public void updateVertexLocations(Map<Integer, Map<Integer, Double[]>> pmapGraphTimeFramesVerticesLocation ){\n int tf = 0;\n for (TimeFrame timeframe : getAllTimeFrames()) {\n Map<Integer, Double[]> mapVertexLocation = pmapGraphTimeFramesVerticesLocation.get(tf++);\n updateVertexLocationsInTimeFrame(timeframe, mapVertexLocation);\n } \n }",
"private void updateSpeed(CLocation location) {\n double nCurrentSpeed = 0;\n if (location != null) {\n\n nCurrentSpeed = location.getSpeed();\n Log.d(\"Location speed\", nCurrentSpeed+\"\");\n\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.UK, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(\" \", \"0\");\n\n\n txt.setText(strCurrentSpeed + \" km/h\");\n\n\n }",
"public Long getTotal_latency() {\n return total_latency;\n }",
"public static void updateTable()\r\n\t{\r\n\t\tfor (int i = 0; i < DataHandler.getClassesSize(); i++)\r\n\t\t{\r\n\t\t\ttable.getModel().setValueAt(\r\n\t\t\t\t\tString.valueOf(LogicHandler.getRelativeOccurences(DataHandler.getList(), DataHandler.getSampleSize())[i]),\r\n\t\t\t\t\ti, 3);\r\n\t\t}\r\n\t}",
"private void update(Observable s) {\n if(s instanceof SimpleLongProperty) {\n long packed = ((SimpleLongProperty) s).get();\n \n int tp1 = PackedScore.totalPoints(packed, TeamId.TEAM_1);\n int tp2 = PackedScore.totalPoints(packed, TeamId.TEAM_2);\n \n turnPoints1.set(PackedScore.turnPoints(packed, TeamId.TEAM_1));\n gamePoints1.set(PackedScore.gamePoints(packed, TeamId.TEAM_1));\n totalPoints1.set(tp1);\n \n turnPoints2.set(PackedScore.turnPoints(packed, TeamId.TEAM_2));\n gamePoints2.set(PackedScore.gamePoints(packed, TeamId.TEAM_2));\n totalPoints2.set(tp2);\n \n // not sure if I should manually update winning team here\n// updateWinningTeam(tp1, tp2);\n }\n }",
"public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }",
"public void write(long[] timestamps, Binary[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }",
"@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}",
"private long updateBaseTime(final long timestamp) {\n // We force the starting timestamp to be on a MAX_TIMESPAN boundary\n // so that all TSDs create rows with the same base time. Otherwise\n // we'd need to coordinate TSDs to avoid creating rows that cover\n // overlapping time periods.\n final long base_time = timestamp - (timestamp % Const.MAX_TIMESPAN);\n // Clone the row key since we're going to change it. We must clone it\n // because the HBase client may still hold a reference to it in its\n // internal datastructures.\n row = Arrays.copyOf(row, row.length);\n Bytes.setInt(row, (int) base_time, tsdb.metrics.width());\n tsdb.scheduleForCompaction(row, (int) base_time);\n return base_time;\n }",
"@Override\n\tpublic void trainOnline(TLongList timestamps, Collection<Instance> instances) {\n\t\ttrainOnline(instances);\n\t}",
"public void yottabytesPerSecond(Double val)\n\t{\n\t\tsetValue(val, DataRateUnit.YOTTABYTES_PER_SEC);\n\t}",
"@Test\n public void updateIncreasesTimer() {\n BotMemoryRecord record = new BotMemoryRecord();\n record.store(Point.pt(5, 5));\n\n record.update(100);\n\n assertThat(record.getTimeSinceLastSeen(), is(100L));\n }",
"private long setupTableForDiffScans(KuduClient client,\n KuduTable table,\n int numRows) throws Exception {\n KuduSession session = client.newSession();\n for (int i = 0; i < numRows / 2; i++) {\n session.apply(createBasicSchemaInsert(table, i));\n }\n\n // Grab the timestamp, then add more data so there's a diff.\n long timestamp = client.getLastPropagatedTimestamp();\n for (int i = numRows / 2; i < numRows; i++) {\n session.apply(createBasicSchemaInsert(table, i));\n }\n // Delete some data so the is_deleted column can be tested.\n for (int i = 0; i < numRows / 4; i++) {\n Delete delete = table.newDelete();\n PartialRow row = delete.getRow();\n row.addInt(0, i);\n session.apply(delete);\n }\n\n return timestamp;\n }",
"private void updateLuts() {\r\n\t\tint luts = 0;\r\n\r\n\t\t// We get the Luts of each module and add them together.\r\n\t\tfor (int i = 0; i < helperInstMod.model.size(); i++) {\r\n\t\t\tluts += Integer.valueOf(helperInstMod.model.getElementAt(i).getLuts());\r\n\t\t}\r\n\r\n\t\tlabelLuts.setText(\"Total Luts: \" + String.valueOf(luts));\r\n\t}",
"public synchronized void updateGameDataAtSlowRate() {\n scheduleGameUpdate(slowUpdateSpeed);\n }",
"@Transactional\r\n\tpublic void updateScore(Trip trip) {\n\t\t\r\n\t}",
"public boolean updateTableFromTap(String fullTableName, TableConfig config);",
"public void updateLUTRecorder( ModelLUT _lut ) {\r\n if ( lutRecorder != null ) {\r\n lutRecorder.updateLUT( _lut );\r\n }\r\n }",
"void updateProvisionedThroughput(DynamoTableConfig table) {\n\n\t\tif (table == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tProvisionedThroughput provisionedThroughput = this.getProvisionedThroughput(table);\n\t\tUpdateTableRequest request = new UpdateTableRequest()\n\t\t\t\t.withTableName(table.getTableName())\n\t\t\t\t.withProvisionedThroughput(provisionedThroughput);\n\n\t\tthis.dynamoClient.updateTable(request);\n\t}",
"public com.example.DNSLog.Builder setTLLs(java.util.List<java.lang.Integer> value) {\n validate(fields()[21], value);\n this.TLLs = value;\n fieldSetFlags()[21] = true;\n return this;\n }",
"@JsonSetter(\"product_timestamps\")\n public void setProductTimestamps (ProductTimestamps value) { \n this.productTimestamps = value;\n }",
"@Override\n public void accLongitudinal(int value, int timestamp) {\n }",
"public void increaseTimescale() {\n\t\ttimeScaler = timeScaler>=5 ? 5 : timeScaler + TIMESCLALER_FACTOR;\n\t}",
"@Override\r\n\tpublic int update(PtHrUserBak t) {\n\t\treturn 0;\r\n\t}",
"public void updateTimestamp(String docId, int timestampBoost);",
"public BigDecimal getTotalLatency() {\n return totalLatency;\n }",
"protected synchronized void updateTimestamp() {\n\t\ttimestamp = System.currentTimeMillis();\n\t}",
"public void onUpdateTraffic(Message msg) {\n if (msg != null && msg.obj != null) {\n Bundle bundle = (Bundle) msg.obj;\n this.mHwHiStreamCHRManager.onUpdateQuality(bundle.getInt(\"wifiRxTraffic\"), bundle.getInt(\"cellularRxTraffic\"), bundle.getInt(\"wifiTxTraffic\"), bundle.getInt(\"celluarTxTraffic\"), bundle.getInt(\"monitoringUid\"));\n }\n }",
"public void update(long value) {\n\t\tcount.incrementAndGet();\n\t\tsample.update(value);\n\t\tsetMax(value);\n\t\tsetMin(value);\n\t\t_sum.getAndAdd(value);\n\t\tupdateVariance(value);\n\t}"
] | [
"0.6459234",
"0.6240799",
"0.585886",
"0.48226517",
"0.47337604",
"0.46246004",
"0.4600973",
"0.4583803",
"0.45325163",
"0.44909513",
"0.44719487",
"0.44714317",
"0.44702837",
"0.44680488",
"0.44576734",
"0.44366494",
"0.44197917",
"0.4407653",
"0.4406559",
"0.44011334",
"0.4379957",
"0.43632308",
"0.43605915",
"0.4359839",
"0.43574703",
"0.4352529",
"0.43505937",
"0.43343794",
"0.43153256",
"0.4300585",
"0.4300484",
"0.42929474",
"0.4281014",
"0.42722294",
"0.4270985",
"0.42630732",
"0.42485234",
"0.42425603",
"0.42422712",
"0.4234293",
"0.42223766",
"0.42125374",
"0.42118227",
"0.4208036",
"0.42067307",
"0.41803116",
"0.41749272",
"0.41748407",
"0.41604537",
"0.41590038",
"0.41581193",
"0.41375905",
"0.41221216",
"0.41200894",
"0.4119877",
"0.4119149",
"0.41164228",
"0.41159406",
"0.41126683",
"0.41122854",
"0.4098269",
"0.40939268",
"0.40934214",
"0.4092589",
"0.4092554",
"0.40868938",
"0.4083738",
"0.40795138",
"0.40782985",
"0.404868",
"0.40379715",
"0.40312678",
"0.4021704",
"0.40206775",
"0.401933",
"0.40185726",
"0.40161952",
"0.40108785",
"0.40094754",
"0.40094182",
"0.39973295",
"0.39961547",
"0.3993012",
"0.3992261",
"0.39878568",
"0.39831725",
"0.3982774",
"0.3977133",
"0.39743024",
"0.39703602",
"0.39651415",
"0.39639887",
"0.39618266",
"0.39474186",
"0.3944995",
"0.39408478",
"0.39277223",
"0.39203325",
"0.39185485",
"0.39156577"
] | 0.6933966 | 0 |
Get the current number of apis from k8s_api_status | public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, "apiSts");
apiCriteria.add(Restrictions.eq("apiSts.statusDate", todayDate ));
apiCriteria.add(Restrictions.eq("apiSts.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<K8sApiStatusEntity> apiEntityList = apiCriteria.list();
Map<String, Integer> mapApiSts = new HashMap<String, Integer>();
for(K8sApiStatusEntity apiStsEntity : apiEntityList){
if(apiStsEntity.getComponent() != null){
mapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());
}
}
txn.commit();
return mapApiSts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Map<String, Integer> getNumOfActiveApisOfApp(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_NUM_APP_APIS);\n\t\tnumApisQuery.setParameter(\"envId\", envId);\n\t\tnumApisQuery.setParameter(\"platform\", platform);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> totTps = numApisQuery.list();\n\t\tMap<String, Integer> mapNumApis = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : totTps) {\n\t\t\tmapNumApis.put((String)tRow[0], ((Long)tRow[1]).intValue());\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapNumApis;\n\t}",
"int getStatusCount();",
"private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}",
"public int getApiGroupsCount() {\n return apiGroups_.size();\n }",
"public int getApiGroupsCount() {\n return apiGroups_.size();\n }",
"int getServicesCount();",
"int getServicesCount();",
"int getRequestsCount();",
"int getRequestsCount();",
"public int getStatusCount() {\n return status_.size();\n }",
"String getLoginapihitcount();",
"long getRequestsCount();",
"public int getStatusCount() {\n return status_.size();\n }",
"int getSystemCount();",
"public static Map<String, Integer> getCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public int getRunningDevicesCount();",
"int getVersionsCount();",
"int getInfoCount();",
"int getInfoCount();",
"int getInfoCount();",
"int getApplicationsCount();",
"int getResponseCount();",
"private int getLatestWickets() {\n // return 2 for simplicity\n return 2;\n }",
"public int getActiveRunwaysCount();",
"public Integer getApiVersion()\n {\n return apiVersion;\n }",
"@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<APIServer> readAPIServerStatus(\n @Path(\"name\") String name);",
"public int getAvailableCount();",
"private Integer getStatus(Map<String, Object> info) {\n return 200;\n }",
"int getWifisCount();",
"int getReqCount();",
"int getEnvCount();",
"int getRequestCount();",
"@GET\n @Path(\"count\")\n public Response getDeviceCount() {\n try {\n Integer count = DeviceMgtAPIUtils.getDeviceManagementService().getDeviceCount();\n return Response.status(Response.Status.OK).entity(count).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the device count.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }",
"@GET(\"system/status\")\n Call<InlineResponse200> getStatus();",
"public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }",
"public int getServicesCount() {\n return services_.size();\n }",
"public int getServicesCount() {\n return services_.size();\n }",
"public int getNumberOf(ResType type) { return resources.get(type); }",
"Integer getConnectorCount();",
"int getTruckstatusCount();",
"public int getActiveDownloads() {\r\n return downloadControllers.size();\r\n }",
"public int getRequestsCount() {\n return instance.getRequestsCount();\n }",
"List<String> apiVersions();",
"Integer getProjectCount( String key ){\n return developer.projects.size();\n }",
"@RequestMapping(value = \"/discovery-client/instances\", method = RequestMethod.GET)\n public Map<String, Integer> getAllInstances() {\n final Map<String, Integer> response = new HashMap<>();\n\n final Applications applications = discoveryClient.getApplications();\n final List<Application> applicationList = applications.getRegisteredApplications();\n\n //TODO Java 8 Stream\n // Get instances from eureka\n for (final Application app : applicationList) {\n response.put(app.getName(), app.getInstances().size());\n }\n\n return response;\n }",
"int getServiceAccountsCount();",
"public int getRequestsCount() {\n return requests_.size();\n }",
"int getNodeStatusListCount();",
"public static long getApiMaxInflightRequests() {\n return 5000L;\n }",
"public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sApiStatusEntity apiStatus = new K8sApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"public int getNumApplications()\n {\n return _apps.size();\n }",
"int getUpdateCountsCount();",
"int getPackagesCount();",
"public int getStatus();",
"public int getStatus();",
"public int getStatus();",
"int getInstalledModuleVersionsCount();",
"public int getRequestsCount() {\n return requests_.size();\n }",
"com.google.protobuf.ByteString\n getLoginapihitcountBytes();",
"public int getRequests()\n\t{\n\t\tint requests=0;\n\t\tString query=\"select count(*) from requests where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"Confirm\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\trequests=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn requests;\n\t}",
"public int getActiveCount() {\n return activeCount;\n }",
"public int getCallsNb();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }",
"public default int getActiveRequirementCount() {\n\t\tint result = 0;\n\t\tif (getRequirements() != null) {\n\t\t\tfor (Requirement req : getRequirements()) {\n\t\t\t\tif (!req.isArchived()) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public int getNextClouds() {\n return nextClouds;\n }",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"Integer getStatus();",
"public int get_count();",
"public int numberOfOpenSites() {\n return count;\n }",
"int getBootclasspathCount();",
"int getBootclasspathCount();",
"int getStatsCount();",
"int getStatsCount();",
"int getStatsCount();",
"int getStagesCount();",
"int getIndexEndpointsCount();",
"public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }",
"int getAoisCount();",
"public int numberOfOpenSites() {\n \treturn num;\r\n }",
"@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}",
"int getUserFunctionsCount();",
"public int numberOfOpenSites(){ return openSites; }",
"int getAchieveInfoCount();",
"boolean hasLoginapihitcount();",
"public static long getRequests() {\n return requests;\n }",
"public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }"
] | [
"0.65455323",
"0.64654565",
"0.6363289",
"0.63080424",
"0.6240041",
"0.6083251",
"0.6083251",
"0.6068339",
"0.6068339",
"0.60673654",
"0.604283",
"0.59776473",
"0.5956462",
"0.5887453",
"0.58222485",
"0.58154494",
"0.57729244",
"0.57431185",
"0.57431185",
"0.57431185",
"0.57097185",
"0.57040864",
"0.56830144",
"0.5657766",
"0.5574948",
"0.55694526",
"0.5552448",
"0.5544751",
"0.5532347",
"0.5496739",
"0.5490028",
"0.54804856",
"0.5471279",
"0.5467757",
"0.5452858",
"0.5442869",
"0.5439369",
"0.5439369",
"0.54357046",
"0.54260886",
"0.5420159",
"0.54195935",
"0.54150814",
"0.53993016",
"0.5398552",
"0.5394372",
"0.53936434",
"0.53902686",
"0.5385263",
"0.5354408",
"0.53403914",
"0.5335652",
"0.53284365",
"0.531673",
"0.5316269",
"0.5316269",
"0.5316269",
"0.5304661",
"0.52974814",
"0.52974415",
"0.52956027",
"0.52793056",
"0.5270111",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.5267728",
"0.52642196",
"0.5260122",
"0.52533865",
"0.52469623",
"0.52469623",
"0.52469623",
"0.52418566",
"0.5241491",
"0.52388626",
"0.52364385",
"0.52364385",
"0.5225915",
"0.5225915",
"0.5225915",
"0.52246124",
"0.52245873",
"0.5223771",
"0.5220916",
"0.5219805",
"0.5219199",
"0.52166724",
"0.52120954",
"0.5209672",
"0.5206198",
"0.52009225",
"0.519928"
] | 0.6283085 | 4 |
Get the current number of container from k8s_pods_containers | public static Map<String, Integer> getK8sCurrContainerDetails(int envId, String platform) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria contCriteria = session.createCriteria(K8sPodsContainersEntity.class, "contSts");
contCriteria.add(Restrictions.eq("contSts.statusDate", todayDate ));
contCriteria.add(Restrictions.eq("contSts.environment.environmentId", envId));
@SuppressWarnings("unchecked")
List<K8sPodsContainersEntity> contEntityList = contCriteria.list();
Map<String, Integer> mapContSts = new HashMap<String, Integer>();
for(K8sPodsContainersEntity contStsEntity : contEntityList){
if(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){
String fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + "/" + contStsEntity.getComponent().getComponentName();
mapContSts.put(fullAppName, contStsEntity.getTotalContainers());
}else if(contStsEntity.getComponent() != null){
mapContSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainers());
}
}
txn.commit();
return mapContSts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int nextContainer(int actualContainerPosition) {\n int totalNumberOfContainer = (mNumberOfBowls + mNumberOfTrays) * 2; //14 in my case, but remember it starts form 0!!\n int nextContainer = actualContainerPosition + 1;\n\n if ( nextContainer == totalNumberOfContainer) {\n nextContainer = 0;\n }\n\n return nextContainer;\n }",
"public long generateContainerId() {\n return this.containerIdCounter.incrementAndGet();\n }",
"public int getContainerSize() {\n\t\treturn 27;\n\t}",
"@ApiModelProperty(required = true, value = \"The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.\")\n\n public Long getRefCount() {\n return refCount;\n }",
"public String getContainerPort() {\n return containerPort;\n }",
"public int get_podsActuels() {\r\n\t\tint pods = 0;\r\n\t\tfor(Objet value : _items.values())\r\n\t\t{\r\n\t\t\tpods = value.getTemplate().getPod() * value.getQuantity(); \r\n\t\t}\r\n\t\treturn pods;\r\n\t}",
"public int size() {\n return this.container.length;\n }",
"public String getContainerId() {\n return containerId;\n }",
"public int getContainerSize()\n {\n return cityContainer.size();\n }",
"private static int getPreiousNumInstance(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ContainerStatsEntity.class, \"cs\");\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.statsDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tContainerStatsEntity conSts =(ContainerStatsEntity) ctrStsCrit.uniqueResult();\n\t\tint totalContainer = 0;\n\t\tif(conSts != null){\n\t\t\ttotalContainer = conSts.getTotalContainer();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalContainer;\n\t\t\t\t\t\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment (their labels match the selector).\")\n\n public Integer getReplicas() {\n return replicas;\n }",
"public String containerName() {\n return this.containerName;\n }",
"private int getRunningNum() {\n\t\treturn am.getRunningAppProcesses().size();\r\n\t}",
"public String getNumberOfInstances() {\n return numberOfInstances;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.\")\n\n public Integer getCurrentReplicas() {\n return currentReplicas;\n }",
"public List<String> containers() {\n return this.containers;\n }",
"public String getContainerName() {\n return this.containerName;\n }",
"public String getContainerName() {\n return containerName;\n }",
"java.lang.String getContainerVersion();",
"com.google.protobuf.ByteString getContainerVersionBytes();",
"public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sPodsContainersEntity podStat = new K8sPodsContainersEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpodStat.setEnvironment(environment);\n\t\tpodStat.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpodStat.setComponent(component);\n\t\tpodStat.setTotalPods(numPods);\n\t\tpodStat.setTotalContainers(numCont);\n\t\tsession.save(podStat);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public int container_size(RTContainer a){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0)\n\t\t\treturn a.getDecompGoals().size();\n\t\telse\n\t\t\treturn a.getDecompPlans().size();\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment that have the desired template spec.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"public static Containers<Integer, String> getContainers() {\n\t\t// TODO fix this function\n\t\t//do singleton thingy\n\t\tif (cont == null) {\n\t\t\tcont = new HW0Runner<Integer, String>();\n\t\t}\n\t\treturn cont;\n\t}",
"public IntegerDt getNumberOfInstances() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"public IntegerDt getNumberOfInstances() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"int getProtectedPodCount();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }",
"public int getNumberOfInstances() {\n\t\treturn numberOfInstances;\n\t}",
"public int getNumberOfSlides();",
"public int getCapacity() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}",
"public static int getNumberCreated() {\n return numberOfPools;\n }",
"public String getContainerName() {\n return name;\n }",
"public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }",
"public int getRunningCount() {\r\n return root.getRunningCount();\r\n }",
"public int getNextClouds() {\n return nextClouds;\n }",
"public static int size_counter() {\n return (32 / 8);\n }",
"int getNumberOfSlides(){\n return slides.size();\n }",
"public final ContainerInfo getContainerInfo()\n\t{\n\t\treturn containerInfo;\n\t}",
"public OpenIntIntHashMap getClusterSizes() {\n\n if (sizeMap != null) return sizeMap;\n\n sizeMap = new OpenIntIntHashMap();\n\n ValueIterator imageIterator = labelledVolume.valueIterator();\n //Map<Integer, Integer> sizes = new HashMap<Integer, Integer>();\n\n do {\n int label = (int) imageIterator.next();\n if (label > 0) {\n if (sizeMap.containsKey(label)) {\n int crt = sizeMap.get(label) + 1;\n sizeMap.put(label, crt);\n } else {\n sizeMap.put(label, 1);\n }\n }\n\n\n } while (imageIterator.hasNext());\n\n return sizeMap;\n }",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"public static int findNumberOfCreatedComputers() {\n return objCounter;\n }",
"public Integer getCounter() {\n return counter;\n }",
"public int getInstanceCount() {\n return instanceCount;\n }",
"public int getInstanceCount() {\n return instanceCount;\n }",
"protected String getContainerName() {\r\n\t\treturn CONTAINER_NAME;\r\n\t}",
"public int components() {\n return numOfComponents;\n }",
"int getInstanceCount();",
"public static int numberOfNodes() { return current_id; }",
"public int getcounter() {\n\t\treturn counter;\r\n\t}",
"public int getCurrentCounter() {\n return currentCounter;\n }",
"public int getNumberOfComponents();",
"@Override\n public @NotNull Class<PersistentDataContainer> getPrimitiveType() {\n return PersistentDataContainer.class;\n }",
"public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}",
"@External\r\n\t@ClientFunc\r\n\tpublic MetaVarNumber GetNumActiveParticles();",
"public Map<Object, Integer> getCounter() {\n if (counterMap == null) {\n counterMap = FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<Object, Integer>() {\n @Override\n public Integer get(Object key) {\n if (counters == null) {\n counters = new HashMap<Object, Integer>();\n }\n final int ctr = FxSharedUtils.get(counters, key, -1) + 1;\n counters.put(key, ctr);\n return ctr;\n }\n }, true);\n }\n return counterMap;\n }",
"public int getCurrentSize() {\n return count;\n }",
"int count() {\n return index.capacity() / 24;\n }",
"int getReplicaCount(ClusterSpec clusterSpec);",
"public String getContainer() {\n return this.container;\n }",
"public int currentCount () {\n return count;\n }",
"@Column(length = 500, name = \"CONTAINER_NAME\")\r\n public String getContainerName() {\r\n return this.containerName == null ? null : this.containerName.substring(this.containerName.lastIndexOf(File.separator) + 1);\r\n }",
"public int getNumClusters() {\n return clusters.size();\n }",
"public abstract int getPreviousTerminationCount(SniperCrawler.InstanceGroup group, Date after);",
"public int getNumberOfTabs() {\n\t\treturn this.tabPanelsMap.size();\n\t}",
"public int getimagecounter() {\n\t\treturn imagecounter;\r\n\t}",
"public static int getZookeeperPort() {\r\n return zookeeperPort.getValue();\r\n }",
"public int getKeyspacesCount() {\n if (keyspacesBuilder_ == null) {\n return keyspaces_.size();\n } else {\n return keyspacesBuilder_.getCount();\n }\n }",
"public int getCounter() {\r\n return counter;\r\n }",
"public void getRunningInstances() {\n LogContainerResultCallback resultCallback = new LogContainerResultCallback();\n //override method onNext of resultcallback\n dockerClient.logContainerCmd(\"id\").exec(resultCallback);\n dockerClient.attachContainerCmd(\"id\").withStdIn(new ByteArrayInputStream(\"list\\n\".getBytes()));\n }",
"public int getCounter() {\n return counter;\n }",
"GlobalVariable getStartOffsetCounterVariable();",
"public long getCount() {\n return counter.get();\n }",
"int getReplicationCount();",
"public int getParentThreads() {\n\t\tfinal String key = ConfigNames.PARENT_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}",
"public int getNumberOfComponents() {\n return components;\n }",
"public String getRemoteContainerId()\n {\n return remoteContainerId;\n }",
"public int getCont() {\n\t\tint cont = 0;\n\t\tsynchronized (store) {\n\t\t\tStorage storage = (Storage) store.getContents();\n\t\t\tif (storage != null)\n\t\t\t\tcont = storage.cont;\n\t\t}\n\t\treturn cont;\n\t}",
"public long getSessionCounter();",
"@ApiModelProperty(required = true, value = \"replicas is the number of Pods created by the StatefulSet controller.\")\n\n public Integer getReplicas() {\n return replicas;\n }",
"public Container getContainer();",
"public Integer getInProgressStackInstancesCount() {\n return this.inProgressStackInstancesCount;\n }",
"public Integer getTotalStackInstancesCount() {\n return this.totalStackInstancesCount;\n }",
"public String container() {\n return this.container;\n }",
"int getReplicaCount(Type type);",
"public int getRunningDevicesCount();",
"public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"public int getNumberOfImages() {\n\n\t\tshort zdim = getZDim();\n\t\tzdim = zdim > 0 ? zdim : 1;\n\n\t\tshort slices = getNumberOfSlices();\n\t\tslices = slices > 0 ? slices : 1;\n\n\t\tshort intervals = getNumberOfGatedIntervals();\n\t\tintervals = intervals > 0 ? intervals : 1;\n\n\t\treturn zdim * slices * intervals;\n\n\t}",
"public int getVcCount() {\n if (vcBuilder_ == null) {\n return vc_.size();\n } else {\n return vcBuilder_.getCount();\n }\n }",
"@Override\n\tpublic int getCounter() {\n\t\treturn counter;\n\t}",
"public String getNodeIdForKernel (Kernel k) {\n Set<String> keys = kernels.keySet();\n for (String key: keys) {\n if (kernels.get(key).getContainerId().equals(k.getContainerId())) { return key; }\n }\n\n return \"\";\n }",
"@Nullable\n Integer getVcpuCount();",
"protected String getContainerType() {\r\n\t\treturn CONTAINER_TYPE;\r\n\t}",
"int countInstances();",
"public int getNumberOfCores();",
"public int getKillCount(){\n return killCount;\n }",
"public int getCurentPlayerNumber() {\n return players.size();\n }"
] | [
"0.60086757",
"0.5951965",
"0.5863394",
"0.5755407",
"0.56648105",
"0.5657835",
"0.56567156",
"0.555448",
"0.55327326",
"0.5495064",
"0.5489869",
"0.5439546",
"0.5427397",
"0.54200006",
"0.5365569",
"0.533297",
"0.5304004",
"0.5290346",
"0.5244416",
"0.5235768",
"0.52123",
"0.5165197",
"0.5163417",
"0.51569766",
"0.515333",
"0.515333",
"0.5148079",
"0.5147513",
"0.5134787",
"0.51043206",
"0.509608",
"0.5082623",
"0.50814974",
"0.508112",
"0.508112",
"0.50802535",
"0.5070072",
"0.50587255",
"0.5021995",
"0.50167197",
"0.49978003",
"0.49923575",
"0.4983458",
"0.49721473",
"0.49713168",
"0.49546233",
"0.49546233",
"0.4948601",
"0.49419314",
"0.49373874",
"0.49324453",
"0.4922207",
"0.49089542",
"0.49024191",
"0.4897615",
"0.48892903",
"0.4884171",
"0.48762706",
"0.48719388",
"0.48661408",
"0.4851309",
"0.48470914",
"0.48448214",
"0.4841019",
"0.48394674",
"0.48357132",
"0.4827223",
"0.4820313",
"0.48170182",
"0.48161602",
"0.48159498",
"0.48049375",
"0.48044455",
"0.47966114",
"0.47946683",
"0.47933888",
"0.47904155",
"0.47866437",
"0.4777547",
"0.4772835",
"0.4769363",
"0.47649318",
"0.4760383",
"0.475978",
"0.475895",
"0.47568637",
"0.4756438",
"0.47562212",
"0.47539154",
"0.47507346",
"0.4748033",
"0.47419566",
"0.4740999",
"0.4740512",
"0.4739455",
"0.47328103",
"0.4732352",
"0.47318712",
"0.4730856",
"0.4730094"
] | 0.52489513 | 18 |
Get the current number of container from k8s_obj_pods This table holds the pods&containers of K8s Objects other than deployment. | public static Map<String, Integer> getK8sObjPodsContDetails(int envId) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query numApisQuery = session.createQuery(HQLConstants.QUERY_GET_K8S_OBJECT_PODS);
numApisQuery.setParameter("environmentId", envId);
numApisQuery.setParameter("statusDate", todayDate);
@SuppressWarnings("unchecked")
List<Object[]> objPodsList = numApisQuery.list();
Map<String, Integer> mapObjPods = new HashMap<String, Integer>();
for (Object[] tRow : objPodsList) {
mapObjPods.put((String)tRow[0], ((Integer)tRow[1]));
}
txn.commit();
return mapObjPods;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int get_podsActuels() {\r\n\t\tint pods = 0;\r\n\t\tfor(Objet value : _items.values())\r\n\t\t{\r\n\t\t\tpods = value.getTemplate().getPod() * value.getQuantity(); \r\n\t\t}\r\n\t\treturn pods;\r\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment (their labels match the selector).\")\n\n public Integer getReplicas() {\n return replicas;\n }",
"public static int findNumberOfCreatedComputers() {\n return objCounter;\n }",
"public static Map<String, Integer> getK8sCurrContainerDetails(int envId, String platform) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria contCriteria = session.createCriteria(K8sPodsContainersEntity.class, \"contSts\");\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.statusDate\", todayDate ));\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sPodsContainersEntity> contEntityList = contCriteria.list();\n\t\tMap<String, Integer> mapContSts = new HashMap<String, Integer>();\n\t\tfor(K8sPodsContainersEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapContSts.put(fullAppName, contStsEntity.getTotalContainers());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapContSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainers());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapContSts;\n\t}",
"public int getObjectCounter() {\n return objectCounter;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment that have the desired template spec.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}",
"public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sPodsContainersEntity podStat = new K8sPodsContainersEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpodStat.setEnvironment(environment);\n\t\tpodStat.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpodStat.setComponent(component);\n\t\tpodStat.setTotalPods(numPods);\n\t\tpodStat.setTotalContainers(numCont);\n\t\tsession.save(podStat);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"public int getNumObjects(){\n return numObjects;\n }",
"public List<PodInfo> getStoredPods() {\n List<PodInfo> pods = new ArrayList<>();\n\n SearchResponse response = client.prepareSearch(\"k8s_*\").setTypes(\"pod\").setSize(10000).get();\n\n SearchHit[] hits = response.getHits().getHits();\n log.info(String.format(\"The length of pod search hits is [%d]\", hits.length));\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n for (SearchHit hit : hits) {\n// log.info(hit.getSourceAsString());\n PodInfo pod = mapper.readValue(hit.getSourceAsString(), PodInfo.class);\n pods.add(pod);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return pods;\n }",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"private static int getPreiousNumInstance(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ContainerStatsEntity.class, \"cs\");\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"cs.statsDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tContainerStatsEntity conSts =(ContainerStatsEntity) ctrStsCrit.uniqueResult();\n\t\tint totalContainer = 0;\n\t\tif(conSts != null){\n\t\t\ttotalContainer = conSts.getTotalContainer();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalContainer;\n\t\t\t\t\t\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.\")\n\n public Integer getCurrentReplicas() {\n return currentReplicas;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }",
"@ApiModelProperty(required = true, value = \"The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.\")\n\n public Long getRefCount() {\n return refCount;\n }",
"public List<String> containers() {\n return this.containers;\n }",
"@Override\n public @NotNull Class<PersistentDataContainer> getPrimitiveType() {\n return PersistentDataContainer.class;\n }",
"public int size() {\n return this.container.length;\n }",
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.\")\n\n public Integer getUnavailableReplicas() {\n return unavailableReplicas;\n }",
"public IntegerDt getNumberOfInstances() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"public IntegerDt getNumberOfInstances() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"int getProtectedPodCount();",
"public int getContainerSize() {\n\t\treturn 27;\n\t}",
"public OpenIntIntHashMap getClusterSizes() {\n\n if (sizeMap != null) return sizeMap;\n\n sizeMap = new OpenIntIntHashMap();\n\n ValueIterator imageIterator = labelledVolume.valueIterator();\n //Map<Integer, Integer> sizes = new HashMap<Integer, Integer>();\n\n do {\n int label = (int) imageIterator.next();\n if (label > 0) {\n if (sizeMap.containsKey(label)) {\n int crt = sizeMap.get(label) + 1;\n sizeMap.put(label, crt);\n } else {\n sizeMap.put(label, 1);\n }\n }\n\n\n } while (imageIterator.hasNext());\n\n return sizeMap;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }",
"public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"public IntegerDt getNumberOfInstancesElement() { \n\t\tif (myNumberOfInstances == null) {\n\t\t\tmyNumberOfInstances = new IntegerDt();\n\t\t}\n\t\treturn myNumberOfInstances;\n\t}",
"public int getVcCount() {\n if (vcBuilder_ == null) {\n return vc_.size();\n } else {\n return vcBuilder_.getCount();\n }\n }",
"public int getVcCount() {\n return vc_.size();\n }",
"public int getSize() {\n\t\t\treturn objects.size();\n\t\t}",
"public static Map<String, Integer> getCurrentContainerDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ContainerStatsEntity.class, \"contSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.statsDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ContainerStatsEntity> contEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ContainerStatsEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapApiSts.put(fullAppName, contStsEntity.getTotalContainer());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapApiSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainer());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public int getContainerSize()\n {\n return cityContainer.size();\n }",
"public int getkBeans() {\n\t\t\treturn kBeans;\n\t\t}",
"public Map<Object, Integer> getCounter() {\n if (counterMap == null) {\n counterMap = FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<Object, Integer>() {\n @Override\n public Integer get(Object key) {\n if (counters == null) {\n counters = new HashMap<Object, Integer>();\n }\n final int ctr = FxSharedUtils.get(counters, key, -1) + 1;\n counters.put(key, ctr);\n return ctr;\n }\n }, true);\n }\n return counterMap;\n }",
"public int NbreObjets(){\n\t\treturn this.nombre_objets;\n\t}",
"public java.lang.Long getOpcnamespace() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAMESPACE);\n\t}",
"public Integer getInSyncStackInstancesCount() {\n return this.inSyncStackInstancesCount;\n }",
"public Integer plazasDisponibles() {\n\t\treturn cupo;\n\t}",
"private Integer contabilizaJogas(Jogador jogador)\r\n {\r\n int i = 0 ;\r\n \r\n if(contadorJogadas.containsKey(jogador)) {\r\n i = contadorJogadas.get(jogador);\r\n }\r\n \r\n contadorJogadas.put(jogador, i + 1);\r\n return contadorJogadas.get(jogador);\r\n }",
"public int get_nactive_vars()\n {\n \n int retVal = get_nactive_vars_0(nativeObj);\n \n return retVal;\n }",
"public int container_size(RTContainer a){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0)\n\t\t\treturn a.getDecompGoals().size();\n\t\telse\n\t\t\treturn a.getDecompPlans().size();\n\t}",
"public int getPoisonCounters() {\n\t\treturn this.PoisonCounters;\n\t}",
"private int nextContainer(int actualContainerPosition) {\n int totalNumberOfContainer = (mNumberOfBowls + mNumberOfTrays) * 2; //14 in my case, but remember it starts form 0!!\n int nextContainer = actualContainerPosition + 1;\n\n if ( nextContainer == totalNumberOfContainer) {\n nextContainer = 0;\n }\n\n return nextContainer;\n }",
"public int getKeyspacesCount() {\n if (keyspacesBuilder_ == null) {\n return keyspaces_.size();\n } else {\n return keyspacesBuilder_.getCount();\n }\n }",
"public ObjectContainer getObjectContainer()\n {\n return container;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.\")\n\n public Integer getReadyReplicas() {\n return readyReplicas;\n }",
"public Map<Long, Long> getInstanceCount() {\n if (instanceCountMap == null) {\n FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<Long, Long>() {\n @Override\n public Long get(Object key) {\n return EJBLookup.getTypeEngine().getInstanceCount(Long.valueOf(key.toString()));\n }\n }, true);\n }\n return instanceCountMap;\n }",
"public long getNClusters() {\n return cGetNClusters(this.cObject);\n }",
"public Integer getVersionCtrlNbr() {\n\t\treturn null;\n\t}",
"public String getContainerId() {\n return containerId;\n }",
"public static int getNSectors()\n {\n return Disk.NUM_OF_SECTORS - ADisk.REDO_LOG_SECTORS - 1;\n }",
"public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }",
"public static int getControllerCacheCount() {\r\n if (!_cacheControllers)\r\n return 0;\r\n return _controllerCache.size();\r\n }",
"com.google.protobuf.ByteString getContainerVersionBytes();",
"@ApiModelProperty(required = true, value = \"replicas is the number of Pods created by the StatefulSet controller.\")\n\n public Integer getReplicas() {\n return replicas;\n }",
"public int components() {\n return numOfComponents;\n }",
"public int getObjectPendingFinalizationCount();",
"protected long getObjectCount() {\r\n return objectCount;\r\n }",
"public static int getControllerCacheBytes() {\r\n if (!_cacheControllers)\r\n return 0;\r\n\r\n int count = 0;\r\n Enumeration e = _controllerCache.elements();\r\n while (e.hasMoreElements())\r\n count += ((byte[]) e.nextElement()).length;\r\n return count;\r\n }",
"public java.lang.Long getObjectSize() {\n return object_size;\n }",
"public Integer getInProgressStackInstancesCount() {\n return this.inProgressStackInstancesCount;\n }",
"public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}",
"public static void updatePodsAndContainers(final int envId, String compName, int numOfPods, String parentCompName, int numOfCont){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_K8S_PODS_CONT_DETAILS);\n\t\tquery.setInteger(\"totalPods\", numOfPods);\n\t\tquery.setInteger(\"totalContainers\", numOfCont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public java.lang.Long getObjectSize() {\n return object_size;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"public static int sizeOf(Object obj) {\n\n\t\tByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t\ttry {\n\t\t\tObjectOutputStream objStream = new ObjectOutputStream(byteStream);\n\n\t\t\tobjStream.writeObject(obj);\n\t\t\tobjStream.flush();\n\t\t\tobjStream.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Spill operation disrupted\", e);\n\t\t}\n\n\t\treturn byteStream.toByteArray().length;\n\t}",
"public String getKuberneteNativeType() {\n return this.KuberneteNativeType;\n }",
"public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}",
"public synchronized int getTransientCount() {\n return _transient.size();\n }",
"public int getParentThreads() {\n\t\tfinal String key = ConfigNames.PARENT_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}",
"public int numCiudades() {\r\n \r\n return ciudades.size();\r\n }",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"public int getCapacity() {\n\t\tfinal String key = ConfigNames.CHILD_THREADS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn getJson().getInt(key);\n\t}",
"protected int matchContainer() {\n if (this.pattern.findReferences)\n return ALL_CONTAINER;\n // declarations are only found in Class\n return CLASS_CONTAINER;\n }",
"public String containerName() {\n return this.containerName;\n }",
"public int getRemainingBeanCount() {\n\t\t// TODO: Implement\n\t\t// System.out.println(\"remainig size: \" + remainingBeans.size());\n\t\treturn remainingBeans.size();\n\t}",
"@Override\r\n public Integer oneObligorClassCount(OneObligorSC oneObligorSC) throws DAOException\r\n {\r\n\tDAOHelper.fixGridMaps(oneObligorSC, getSqlMap(), \"oneObligorMapper.oneObligorClassMap\");\r\n\treturn (Integer) getSqlMap().queryForObject(\"oneObligorMapper.oneObligorClassCount\", oneObligorSC);\r\n }",
"public int[] getObjectIds() {\n\t\t\treturn objects;\n\t\t}",
"public static Containers<Integer, String> getContainers() {\n\t\t// TODO fix this function\n\t\t//do singleton thingy\n\t\tif (cont == null) {\n\t\t\tcont = new HW0Runner<Integer, String>();\n\t\t}\n\t\treturn cont;\n\t}",
"public long getCurrentCompactedKvs() {\n return currentCompactedKVs;\n }",
"public int getInstanceCount() {\n return instanceCount;\n }",
"public int getInstanceCount() {\n return instanceCount;\n }",
"public ReadOnlyIntegerProperty numberofTickets(PlayerId playerId) {\n return numberOfTicketsMap.get(playerId);\n }",
"public ContainerStatus getContainerStatus(Pod pod, String containerName) {\n final List<ContainerStatus> containerStatuses = pod.getStatus().getContainerStatuses();\n\n return containerStatuses.stream()\n .filter(container -> containerName.equals(container.getName()))\n .findAny()\n .orElse(null);\n }",
"@JsonProperty(\"podCIDRs\")\n public List<String> getPodCIDRs() {\n return podCIDRs;\n }",
"@Nullable\n Integer getVcpuCount();",
"public long generateContainerId() {\n return this.containerIdCounter.incrementAndGet();\n }",
"@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\n @VTID(8)\n int checkedOutEntitiesCount();",
"@Required\n @Updatable\n public Integer getInstanceCount() {\n return instanceCount;\n }",
"public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}",
"public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}",
"@Override\n\tpublic int getVcmsPortionsCount() {\n\t\treturn _vcmsPortionLocalService.getVcmsPortionsCount();\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.\")\n\n public Integer getCollisionCount() {\n return collisionCount;\n }",
"public int numberOfIcosahedrons() {\n return icosList.size();\n }",
"public int getNunFigli() {\n\t\tint numFigli = 0;\n\t\tfor (Nodo_m_ario figlio : figli) {\n\t\t\tif (figlio != null) {\n\t\t\t\tnumFigli += 1;\n\t\t\t}\n\t\t}\n\t\treturn numFigli;\n\t}",
"String getKubernetesServiceType();",
"public int sizeOfIndicatorRefArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(INDICATORREF$0);\n }\n }",
"public int getCount() {\n return objects.size();\n }"
] | [
"0.62042356",
"0.5527323",
"0.5367882",
"0.53435695",
"0.5335171",
"0.5309322",
"0.52600753",
"0.5208874",
"0.5159014",
"0.50924665",
"0.50850123",
"0.50397104",
"0.49681985",
"0.4876627",
"0.48763832",
"0.48754424",
"0.48669118",
"0.4865763",
"0.48224226",
"0.4821813",
"0.48215428",
"0.4816308",
"0.4816308",
"0.48001716",
"0.47426853",
"0.47283",
"0.4725046",
"0.4710241",
"0.4710241",
"0.47004768",
"0.4685039",
"0.46671486",
"0.46612614",
"0.46379596",
"0.4600151",
"0.45998785",
"0.4594849",
"0.45690826",
"0.4568512",
"0.45542902",
"0.45496157",
"0.45379055",
"0.4535089",
"0.45284575",
"0.45195675",
"0.44979328",
"0.4486651",
"0.44818005",
"0.447873",
"0.44760656",
"0.44750714",
"0.44708827",
"0.44582397",
"0.4453886",
"0.4438825",
"0.4436434",
"0.44182155",
"0.44040036",
"0.4399823",
"0.43990755",
"0.43955168",
"0.4388072",
"0.43831086",
"0.43828022",
"0.43703762",
"0.43687683",
"0.4367136",
"0.43667105",
"0.43596727",
"0.4344147",
"0.43425876",
"0.43374324",
"0.43347195",
"0.43341717",
"0.432965",
"0.43293425",
"0.4321499",
"0.43203184",
"0.4313706",
"0.4307999",
"0.43026054",
"0.43000877",
"0.4299844",
"0.4299844",
"0.42984742",
"0.4294067",
"0.4293523",
"0.42901167",
"0.42883405",
"0.4286223",
"0.42825827",
"0.42786577",
"0.42775053",
"0.427663",
"0.42733043",
"0.42732003",
"0.42725974",
"0.42718098",
"0.4271183",
"0.42707697"
] | 0.5715318 | 1 |
Get the current number of K8s active apis of apps in an environment | public static Map<String, Integer> getNumOfActiveApisOfApp(int envId, String platform) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query numApisQuery = session.createQuery(HQLConstants.QUERY_GET_NUM_APP_APIS);
numApisQuery.setParameter("envId", envId);
numApisQuery.setParameter("platform", platform);
@SuppressWarnings("unchecked")
List<Object[]> totTps = numApisQuery.list();
Map<String, Integer> mapNumApis = new HashMap<String, Integer>();
for (Object[] tRow : totTps) {
mapNumApis.put((String)tRow[0], ((Long)tRow[1]).intValue());
}
txn.commit();
return mapNumApis;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumApplications()\n {\n return _apps.size();\n }",
"int getApplicationsCount();",
"public int getRunningDevicesCount();",
"int getEnvCount();",
"public int getActiveRunwaysCount();",
"public int getApplications() {\r\n return applications;\r\n }",
"public static int getEnvironmentsCount() {\n\t\treturn getService().getEnvironmentsCount();\n\t}",
"@RequestMapping(value = \"/discovery-client/instances\", method = RequestMethod.GET)\n public Map<String, Integer> getAllInstances() {\n final Map<String, Integer> response = new HashMap<>();\n\n final Applications applications = discoveryClient.getApplications();\n final List<Application> applicationList = applications.getRegisteredApplications();\n\n //TODO Java 8 Stream\n // Get instances from eureka\n for (final Application app : applicationList) {\n response.put(app.getName(), app.getInstances().size());\n }\n\n return response;\n }",
"public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }",
"private int getRunningNum() {\n\t\treturn am.getRunningAppProcesses().size();\r\n\t}",
"int getServicesCount();",
"int getServicesCount();",
"public default int getActiveRequirementCount() {\n\t\tint result = 0;\n\t\tif (getRequirements() != null) {\n\t\t\tfor (Requirement req : getRequirements()) {\n\t\t\t\tif (!req.isArchived()) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public int getCount() {\n\t\t\treturn appList.size();\n\t\t}",
"public int getCount() {\n\t\t\treturn mApplications.size();\n\t\t}",
"private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}",
"int getRequestsCount();",
"int getRequestsCount();",
"public int getActiveSessions();",
"int getActiveSessions();",
"public int getNumIncludedApplications()\n {\n return getIncludedApplications().size();\n }",
"long getRequestsCount();",
"int getBootclasspathCount();",
"int getBootclasspathCount();",
"public int getActiveCount() {\n return activeCount;\n }",
"public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(K8sApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public int getApiGroupsCount() {\n return apiGroups_.size();\n }",
"public int getApiGroupsCount() {\n return apiGroups_.size();\n }",
"public int getAvailableCount();",
"public int getNumberOfActivitesOnActivityFeedForUpgrade(Identity ownerIdentity);",
"int getGuestAcceleratorsCount();",
"int getSystemCount();",
"public int getEnvCount() {\n return env_.size();\n }",
"int getExperimentsCount();",
"int getIndexEndpointsCount();",
"public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }",
"Integer getConnectorCount();",
"int getExecutorActiveCount();",
"int getReqCount();",
"public int getActiveDownloads() {\r\n return downloadControllers.size();\r\n }",
"public int getEnvCount() {\n return env_.size();\n }",
"public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);",
"public int numberOfOpenSites() {\n return count;\n }",
"int getConnectionsCount();",
"int countInstances();",
"public List<AppState> getApps()\n {\n return apps;\n }",
"int getRequestCount();",
"public int getNumberOfActivitiesOfConnectionsForUpgrade(Identity ownerIdentity);",
"private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }",
"@GET\n @Path(\"count\")\n public Response getDeviceCount() {\n try {\n Integer count = DeviceMgtAPIUtils.getDeviceManagementService().getDeviceCount();\n return Response.status(Response.Status.OK).entity(count).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the device count.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }",
"private void appStartCountIncrease(int currentAppStartCount) {\n\t\tPrefs p = new Prefs(c);\n\t\tp.save(\"app_start_count\", currentAppStartCount + 1);\n\t}",
"int getSessionCount();",
"public int getActiveBundles();",
"int getConnectionCount();",
"public int getRequestsCount() {\n return instance.getRequestsCount();\n }",
"public int getNumActive();",
"int getServiceAccountsCount();",
"public int getRequestsCount() {\n return requests_.size();\n }",
"int getVersionsCount();",
"public int getNumberOfActivitiesOfConnections(Identity ownerIdentity);",
"int getInstanceCount();",
"public int numberOfOpenSites() {\n \treturn num;\r\n }",
"int getStatusCount();",
"public int getNumberOfNewerOnActivitiesOfConnections(Identity ownerIdentity, Long sinceTime);",
"public int getNumberOfUserSpacesActivitiesForUpgrade(Identity ownerIdentity);",
"public int numberOfOpenSites() {\n return 0;\n }",
"public int getRequestsCount() {\n return requests_.size();\n }",
"Integer getProjectCount( String key ){\n return developer.projects.size();\n }",
"public int getBootclasspathCount() {\n return bootclasspath_.size();\n }",
"int getTotalCreatedConnections();",
"public static int getApplicationsCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn getService().getApplicationsCount();\n\t}",
"@ApiModelProperty(value = \"The number of active threads in the NiFi.\")\r\n public Integer getActiveThreadCount() {\r\n return activeThreadCount;\r\n }",
"int getPackagesCount();",
"public ArrayList<String> getAllRunningApp() {\n\t\tArrayList<String> apps = new ArrayList<String>();\n\t\tActivityManager activityManager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);\n\t\tList<RunningAppProcessInfo> runningAppProcesses = activityManager.getRunningAppProcesses();\n\t\t\n\t\tfor (RunningAppProcessInfo runningAppProcessInfo : hgf)\n\t\t{\n\t\t apps.add(runningAppProcessInfo.processName);\n\t\t}\n\t\treturn apps;\n\t}",
"public static long getNumberOfOpenConnections() {\n return openConnections.size();\n }",
"public int getServicesCount() {\n return services_.size();\n }",
"public int getServicesCount() {\n return services_.size();\n }",
"@DefaultValue(\"20\")\n int getApiClientThreadPoolSize();",
"public int getBootclasspathCount() {\n return bootclasspath_.size();\n }",
"public int getNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime);",
"public abstract void countLaunchingActivities(int num);",
"public int numberOfOpenSites() {\n return (openCount);\n }",
"int getInstalledModuleVersionsCount();",
"public int getNumberOfUpdatedOnActivitiesOfConnections(Identity owner, ActivityUpdateFilter filter);",
"public int getNumberOfUserActivities(Identity owner) throws ActivityStorageException;",
"public int getCountOfFreeDevices() {\n int count = 0;\n for (TestDevice td : mDevices) {\n if (td.getStatus() == TestDevice.STATUS_IDLE) {\n count++;\n }\n }\n return count;\n }",
"String getLoginapihitcount();",
"public int numberOfOpenSites() {\n return NOpen;\r\n }",
"public int numberOfOpenSites() {\n return openSites;\n }",
"public int numberOfOpenSites() {\n return openSites;\n }",
"public int numberOfOpenSites() {\n return openSites;\n }",
"public int numberOfOpenSites() {\n return openSites;\n }",
"public int numberOfOpenSites() {\n return openSites;\n }",
"public static int getCurrentSessionCount() {\n\t\treturn (currentSessionCount);\n\t}",
"public int numberOfOpenSites() {\n return openNum;\n }",
"public int getKeyspacesCount() {\n if (keyspacesBuilder_ == null) {\n return keyspaces_.size();\n } else {\n return keyspacesBuilder_.getCount();\n }\n }",
"public int numberOfOpenSites(){\n return numOpenSites;\n }",
"public int numberOfOpenSites()\r\n { return openSites; }",
"private int getLatestWickets() {\n // return 2 for simplicity\n return 2;\n }",
"public int numberOfOpenSites() {\n return numberOfOpenSites;\n }"
] | [
"0.6570725",
"0.6531867",
"0.6257891",
"0.6117572",
"0.60614336",
"0.59649754",
"0.5928415",
"0.59272885",
"0.5833641",
"0.58055156",
"0.5791468",
"0.5791468",
"0.5786405",
"0.578157",
"0.57633734",
"0.5748427",
"0.5705141",
"0.5705141",
"0.56926984",
"0.5665543",
"0.5648223",
"0.5635349",
"0.558394",
"0.558394",
"0.5580687",
"0.5562516",
"0.5558255",
"0.55030984",
"0.5496874",
"0.54898274",
"0.54616773",
"0.5416614",
"0.5413164",
"0.5402662",
"0.54006165",
"0.5396615",
"0.5386615",
"0.5370325",
"0.5362907",
"0.53426003",
"0.532705",
"0.532423",
"0.531575",
"0.53144324",
"0.53051615",
"0.52894187",
"0.52889854",
"0.52869344",
"0.52808255",
"0.52635473",
"0.52586186",
"0.52555454",
"0.5236619",
"0.5234844",
"0.5234445",
"0.5230213",
"0.5227443",
"0.52184945",
"0.5216051",
"0.52099854",
"0.5195579",
"0.51846176",
"0.51822335",
"0.51804084",
"0.5180245",
"0.51698816",
"0.51578254",
"0.51423925",
"0.5139047",
"0.51334894",
"0.51260674",
"0.51246226",
"0.5117398",
"0.5102999",
"0.50966066",
"0.50964755",
"0.50964755",
"0.5091794",
"0.5087861",
"0.5083649",
"0.50834787",
"0.5072406",
"0.50640905",
"0.50631446",
"0.5063044",
"0.5062545",
"0.5059711",
"0.5050255",
"0.50479954",
"0.50479954",
"0.50479954",
"0.50479954",
"0.50479954",
"0.504113",
"0.5036406",
"0.5031529",
"0.50306714",
"0.50286144",
"0.5027701",
"0.5022349"
] | 0.6810825 | 0 |
Load the data to the k8s_api_status table | public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
final int compId = getComponentIdFromCompName(compName);
if(compId == 0){
logger.info("Component Name = " + compName + "; is not available in the DB");
return;
}
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
K8sApiStatusEntity apiStatus = new K8sApiStatusEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(envId);
apiStatus.setEnvironment(environment);
apiStatus.setStatusDate(todayDate);
ComponentEntity component = new ComponentEntity();
component.setComponentId(compId);
apiStatus.setComponent(component);
apiStatus.setTotalApi(numOfApi);
session.save(apiStatus);
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tint prevNumApis = getPreiousNumApis(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumApis == 0 ? 0 : numOfApi - prevNumApis;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tApiStatusEntity apiStatus = new ApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tapiStatus.setDeltaValue(deltaVal);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"public void loadStatus (){\n\t}",
"public static Map<String, Integer> getK8sCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(K8sApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(K8sApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"private void monitorHBase() {\n if (hadoopRetrieveService == null) {\n return;\n }\n // logger.info(\"Checking Hbase health status ...\");\n List<PVTypeInfo> pvInfos = new ArrayList<>(aaRetrieveService.getAllPVInfo());\n if (pvInfos.isEmpty()) {\n // logger.info(\"No archving PV.\");\n return;\n }\n // Use the first PV for the checking\n String pv = pvInfos.get(0).getPvName();\n Calendar end = Calendar.getInstance();\n end.setTime(new Date());\n end.add(Calendar.YEAR, -10);\n Calendar start = Calendar.getInstance();\n start.setTime(end.getTime());\n start.add(Calendar.MINUTE, -30);\n try {\n hadoopRetrieveService.getData(pv, new Timestamp(start.getTime().getTime()),\n new Timestamp(end.getTime().getTime()), PostProcessing.FIRSTSAMPLE, 60, false, 1.0);\n } catch (IOException e) {\n logger.warn(\"HBase is down.\");\n hadoopRetrieveService = null;\n scheduledService.scheduleAtFixedRate(() -> reInitializeHBase(), 1000,\n SiteConfigUtil.getHbaseCheckingInterval(), TimeUnit.MILLISECONDS);\n }\n }",
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"public HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> getStatus(String region) throws IOException {\r\n String currentData;\r\n\r\n try {\r\n baseURL = StaticData.buildURL(region);\r\n currentData = getUrlData();\r\n networkOK = true;\r\n }\r\n catch(UnknownHostException e) {\r\n currentData = \"\";\r\n networkOK = false;\r\n throw e;\r\n }\r\n \r\n JsonElement jelem = new JsonParser().parse(currentData);\r\n JsonObject jobj = jelem.getAsJsonObject();\r\n JsonArray servicesArr = jobj.getAsJsonArray(\"services\");\r\n JsonArray incidentsArr;\r\n JsonArray updatesArr;\r\n \r\n String service, status;\r\n HashMap<String, HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>>> statusInfo = new HashMap();\r\n HashMap<String, ArrayList<HashMap<String, HashMap<String, String>>>> statusValues = new HashMap();\r\n ArrayList<HashMap<String, HashMap<String, String>>> services = new ArrayList();\r\n HashMap<String, HashMap<String, String>> incidents = new HashMap();\r\n HashMap<String, String> content = new HashMap();\r\n\r\n for(int i = 0; i < servicesArr.size(); i++) {\r\n jobj = servicesArr.get(i).getAsJsonObject();\r\n \r\n service = formatOutput(jobj.get(\"name\").toString());\r\n status = formatOutput(jobj.get(\"status\").toString()); \r\n\r\n incidentsArr = jobj.getAsJsonArray(\"incidents\");\r\n \r\n // If there are any incidents, store them.\r\n if(incidentsArr.size() > 0) {\r\n // Get each incident.\r\n for(int j = 0; j < incidentsArr.size(); j++) {\r\n jobj = incidentsArr.get(j).getAsJsonObject();\r\n updatesArr = jobj.getAsJsonArray(\"updates\");\r\n \r\n // Get information for each update.\r\n if(updatesArr.size() > 0) {\r\n for(int k = 0; k < updatesArr.size(); k++) {\r\n jobj = updatesArr.get(k).getAsJsonObject();\r\n\r\n // Add id\r\n content.put(\"id\", formatOutput(jobj.get(\"id\").toString()));\r\n // Add severity\r\n content.put(\"severity\", formatOutput(jobj.get(\"severity\").toString()));\r\n // Add updated_at\r\n content.put(\"updated_at\", formatOutput(jobj.get(\"updated_at\").toString()));\r\n // Add content\r\n content.put(\"content\", formatOutput(jobj.get(\"content\").toString()));\r\n \r\n incidents.put(service, (HashMap)content.clone());\r\n services.add((HashMap)incidents.clone());\r\n }\r\n }\r\n }\r\n }\r\n \r\n Collections.reverse(services); // Flip incidents ArrayList to have the newest first.\r\n statusValues.put(status, (ArrayList)services.clone());\r\n services.clear(); // Make sure old incidents aren't copied if current service has no incidents.\r\n statusInfo.put(service, (HashMap)statusValues.clone());\r\n statusValues.clear(); // Make sure old statuses aren't copied if current service has no incidents.\r\n }\r\n \r\n return statusInfo;\r\n }",
"protected void init_status(String id) {\n\t\tstatus.put(id, 1);\n\t\t\n\t}",
"private void loadPreviousStatuses(String userUid) {\n final String token = prefs.getString(getString(R.string.v_token), \"\");\n final String state = prefs.getString(getString(R.string.v_state), \"\");\n final String pin = prefs.getString(getString(R.string.v_pin), \"\");\n final long expiry = prefs.getLong(getString(R.string.v_expiry), 0);\n final int registrationCnt = prefs.getInt(getString(R.string.v_registered), 0);\n\n final String path = userUid + \"/\" + getString(R.string.firebase_path) + state + \"/\" + pin + \"/\" + token;\n\n FirebaseAnalytics.getInstance(this).setUserProperty(\"COVIDDetection\", token);\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n dbRef = database.getReference(path + \"/\" + getString(R.string.firebase_path_registration));\n\n Map<String, Object> registration = new HashMap<>();\n registration.put(\"token\", token);\n registration.put(\"state\", state);\n registration.put(\"pin\", pin);\n registration.put(\"time\", new Date().getTime());\n registration.put(\"expTime\", expiry);\n dbRef.child(Integer.toString(registrationCnt)).setValue(registration);\n\n dbRef = database.getReference(path);\n dbRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n if (snapshot != null) {\n for (DataSnapshot userData : snapshot.getChildren()) {\n if(userData.getKey() == getString(R.string.firebase_path_location)) {\n for (DataSnapshot userLocations : userData.getChildren()) {\n personStatuses.add(Integer.parseInt(userLocations.getKey()), (Map<String, Object>) userLocations.getValue());\n }\n }\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // TODO: Handle gracefully\n }\n });\n\n LocationRequest request = new LocationRequest();\n //Specify how often your app should request the device’s location//\n request.setInterval(remoteConfig.getLong(\"LOCATION_REQUEST_INTERVAL\"));\n request.setFastestInterval(remoteConfig.getLong(\"LOCATION_REQUEST_INTERVAL_FASTEST\"));\n //Get the most accurate location data available//\n request.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n FusedLocationProviderClient client = LocationServices.getFusedLocationProviderClient(this);\n int permission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n //If the app currently has access to the location permission...//\n if (permission == PackageManager.PERMISSION_GRANTED) {\n //...then request location updates//\n setStatusMessage(R.string.tracking);\n\n // Hold a partial wake lock to keep CPU awake when the we're tracking location.\n PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);\n mWakelock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"myapp:MyWakelockTag\");\n mWakelock.acquire();\n\n client.requestLocationUpdates(request, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n //Get a reference to the database, so your app can perform read and write operations//\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }\n }, null);\n }\n }",
"List<Status> getAllChecklistStatus() throws ServiceException;",
"@GET\n \t@Path(\"/getAllConceptStatus\")\n \t@Produces({MediaType.APPLICATION_JSON})\n \tpublic ExtJsonFormLoadData<List<GenericStatusView>> getAllConceptStatus() throws BusinessException {\n \t\tList<GenericStatusView> listOfStatus = new ArrayList<GenericStatusView>();\n \t\t\n \t\ttry {\n \t\t\tResourceBundle res = ResourceBundle.getBundle(\"labels\", new EncodedControl(\"UTF-8\"));\n \t\t\tString availableStatusIds[] = res.getString(\"concept-status\").split(\",\");\n \t\t\t\n \t\t\tif (\"\".equals(availableStatusIds[0])) {\n \t\t\t\t//Ids of status for concepts are not set correctly\n \t\t\t\tthrow new BusinessException(\"Error with property file - check values of identifier concept status\", \"check-values-of-concept-status\");\n \t\t\t}\n \t\t\t\n \t for (String id : availableStatusIds) {\n \t \tGenericStatusView conceptStatusView = new GenericStatusView();\n\t \tconceptStatusView.setStatus(Integer.valueOf(id));\n \t \t\n \t \tString label = res.getString(\"concept-status[\"+ id +\"]\");\n \t \tif (label.isEmpty()) {\n \t \t\t//Labels of status are not set correctly\n \t \t\tthrow new BusinessException(\"Error with property file - check values of identifier concept status\", \"check-values-of-concept-status\");\n \t\t\t\t} else {\n \t\t\t\t\tconceptStatusView.setStatusLabel(label);\n \t\t\t\t}\n \t \tlistOfStatus.add(conceptStatusView);\n \t\t\t}\n \t\t} catch (MissingResourceException e) {\n \t\t\tthrow new BusinessException(\"Error with property file - check values of concept status\", \"check-values-of-concept-status\", e);\n \t\t}\n \t\tExtJsonFormLoadData<List<GenericStatusView>> result = new ExtJsonFormLoadData<List<GenericStatusView>>(listOfStatus);\n result.setTotal((long) listOfStatus.size());\n \t\treturn result;\n \t}",
"public static Map<String, Integer> getK8sObjPodsContDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_K8S_OBJECT_PODS);\n\t\tnumApisQuery.setParameter(\"environmentId\", envId);\n\t\tnumApisQuery.setParameter(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> objPodsList = numApisQuery.list();\n\t\tMap<String, Integer> mapObjPods = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : objPodsList) {\n\t\t\tmapObjPods.put((String)tRow[0], ((Integer)tRow[1]));\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapObjPods;\n\t}",
"@Test\n\tpublic void _A1_STATE_INSERT_APIKEY_MISSING_STATUS_CHECK() {\n\t\tsendRequest(StatesOfClient.STATE_INSERT_APIKEY_MISSING_STATUS_CHECK);\n\t}",
"@RequestMapping(value = \"/data/{srcEnv}/{srcDB}/{pid}\", method = {RequestMethod.GET})\n @ResponseBody\n public RestWrapper getTableData(@PathVariable(\"srcEnv\") String srcEnv, @PathVariable(\"srcDB\") String srcDB, @PathVariable(\"pid\") String pid) {\n RestWrapper restWrapper = null;\n LOGGER.info(srcEnv + \"srcEnvi\");\n LOGGER.info(srcDB + \"srcDB\");\n try {\n Class.forName(driverName);\n connection = DriverManager.getConnection(\"jdbc:hive2://\" + srcEnv + \"/\" + srcDB.toLowerCase(), \"\", \"\");\n String tableName=\"ML_\"+pid;\n ResultSet rs = connection.createStatement().executeQuery(\"select * from \" + srcDB + \".\" + tableName);\n\n ResultSetMetaData metaData = rs.getMetaData();\n List<Map<String, Object>> tables = new ArrayList<Map<String, Object>>();\n while (rs.next()) {\n Map<String,Object> m=new LinkedHashMap<>();\n for(int j=1;j<=metaData.getColumnCount();j++){\n\n String colName = metaData.getColumnLabel(j).replaceFirst(tableName.toLowerCase()+\".\", \"\");\n if(!colName.equals(\"features\") && !colName.equals(\"rawprediction\") && !colName.equals(\"probability\")){\n Object colValue=rs.getObject(j);\n m.put(colName,colValue);}\n }\n tables.add(m);\n }\n restWrapper = new RestWrapper(tables, RestWrapperOptions.OK);\n\n } catch (Exception e) {\n LOGGER.error(\"error occured \" + e);\n restWrapper = new RestWrapper(e.getMessage(), RestWrapper.ERROR);\n }\n return restWrapper;\n }",
"TrackerListStatus loadTrackerListStatus(final Integer id);",
"private void populateStatus() {\n\t\t\n\t\tstatusList.add(new Status(MainActivity.profileUrls[1], \"Mohamed\", \"14 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[4], \"Ahmed Adel\", \"10 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[0], \"Manar\", \"Yesterday, 5:08 PM\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[5], \"Ramadan\", \"Today, 10:30 AM\"));\n\t\t\n\t}",
"private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"private void getStatus() {\n\t\t\n\t}",
"private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<APIServer> readAPIServerStatus(\n @Path(\"name\") String name);",
"private String getStatusTableName(String studyId) {\n return studyId + \"-status\";\n }",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public static void loadContainerStatus(final int envId, int compId, final int instanceNum) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n//\t\tfinal int compId = getComponentId(compName, parentCompName);\n//\t\tif(compId == 0){\n//\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n//\t\t\treturn 0;\n//\t\t}\n\n\t\tint prevNumInstance = getPreiousNumInstance(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumInstance == 0 ? 0 : instanceNum - prevNumInstance;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tContainerStatsEntity contStat = new ContainerStatsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatsDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tcontStat.setComponent(component);\n\t\tcontStat.setTotalContainer(instanceNum);\n\t\tcontStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"List<TopicStatus> getAll();",
"public void loadStatus() {\r\n\r\n\t\ttry {\r\n\t\t\tRemoteOffice objRemoteOffice = Application.UNITY_CLIENT_APPLICATION.getreRemoteOffice();\r\n\t\t\tif (objRemoteOffice != null) {\r\n\t\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"Going to load the status of the components from broadworks.\");\r\n\r\n\t\t\t\tboolean isActive = objRemoteOffice.isActive();\r\n\t\t\t\tString phnumber = objRemoteOffice.getPhoneNumber();\r\n\t\t\t\tobjRemoteOfficeEnableJCheckBox.setSelected(isActive);\r\n\t\t\t\tobjRemoteOfficeJTextField.setText(phnumber);\r\n\r\n\t\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(true);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(false);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"component status loaded successfully\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tlogTrace(this.getClass().getName(), \"loadStaus()\", \"component status not loaded successfully\");\r\n\t\t}\r\n\t}",
"@Test\n public void testGetTables() throws Exception {\n Map<String, Long> tableCounts = managementService.getTableCount();\n\n CloseableHttpResponse response = executeRequest(new HttpGet(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_TABLES_COLLECTION)),\n HttpStatus.SC_OK);\n\n // Check table array\n JsonNode responseNode = objectMapper.readTree(response.getEntity().getContent());\n closeResponse(response);\n assertThat(responseNode).isNotNull();\n assertThat(responseNode.isArray()).isTrue();\n assertThat(responseNode).hasSize(tableCounts.size());\n\n for (int i = 0; i < responseNode.size(); i++) {\n ObjectNode table = (ObjectNode) responseNode.get(i);\n assertThat(table.get(\"name\").textValue()).isNotNull();\n assertThat(table.get(\"count\").longValue()).isNotNull();\n assertThat(table.get(\"url\").textValue()).endsWith(RestUrls.createRelativeResourceUrl(RestUrls.URL_TABLE, table.get(\"name\").textValue()));\n assertThat(table.get(\"count\").longValue()).isEqualTo(tableCounts.get(table.get(\"name\").textValue()).longValue());\n }\n }",
"public static void loadTables(Context context){\n\n Ion.with(context, \"https://www.kimonolabs.com/api/67x3h6bc?apikey=f3c016707fe6e0c44c29c59a3f6cf9be\")\n .asJsonObject()\n .setCallback(new FutureCallback<JsonObject>() {\n @Override\n public void onCompleted(Exception e, JsonObject result) {\n\n ArrayList<Timetable> timetableList = new ArrayList<Timetable>();\n\n JsonArray collection = result.get(\"results\").getAsJsonObject().get(\"collection1\").getAsJsonArray();\n\n for(int i=0;i<collection.size();i++){\n\n JsonObject object = collection.get(i).getAsJsonObject().get(\"timetable\").getAsJsonObject();\n\n String name = object.get(\"text\").getAsString();\n String link = object.get(\"href\").getAsString();\n\n\n timetableList.add(new Timetable(name, link));\n }\n\n BusProvider.getInstance().post(new TimetablesLoadedEvent(timetableList));\n\n }\n });\n }",
"public static void printTableStatusHeader() {\n\t\tSystem.out.println(\"Table availability status:\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}",
"public DacGetStatusResponse() {\n super();\n this.setStatusInfoList(new LazyArrayList<StatusInfo>());\n }",
"void setDataStatus(String dataStatus);",
"public void setStatusTableName(String name)\n\t{\n\t\tm_statusTableName = name;\n\t}",
"@Test\n\tpublic void checkAllAPICrncyInTable() throws ParseException\n\t{\n\t\t// Table Data\n\t\tMap<String, Object> tableMap = dashboardPage.addRowDataToMap();\n\t\t// API Data\n\t\tresponsePage = new APIResponsePageObject(driver);\n\t\tMap<String, Object> apiMap = responsePage.getRateDataFromAPI();\n\t\t\n\t\t// Map that has key - values missing in tableMap that are in apiMap\n\t\tMap missingCurrenciesInTableMap = new HashMap<>(apiMap);\n\t\tmissingCurrenciesInTableMap.keySet().removeAll(tableMap.keySet());\n\t\tmissingCurrenciesInTableMap.values().removeAll(tableMap.values());\n\t\t\n\t\tif(missingCurrenciesInTableMap.size() > 1)\n\t\t{\n\t\t\terrorMessage = \"Html table is missing \" + missingCurrenciesInTableMap.toString() + \" from API\";\n\t\t\tAssert.fail(errorMessage);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tassertSame(tableMap, apiMap);\n\t\t}\n\t}",
"private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }",
"@Override\n public void load(String filename, DatasourceSchema datasourceSchema)\n throws BigQueryLoaderException {\n GcsFileToBqTableLoader gcsFileToBqTableLoader = new GcsFileToBqTableLoader(\n bigQueryRepository, filename, datasourceSchema);\n gcsFileToBqTableLoader.load();\n\n // 2- crée la table si elle n'existe pas\n if (bigQueryRepository.tableExists(datasourceSchema.getTableId())) {\n LOGGER.info(\"Table \" + datasourceSchema.getFullTableName() + \" already exists\");\n } else {\n try {\n bigQueryRepository\n .runDDLQuery(\"CREATE TABLE \" + datasourceSchema.getFullTableName() + \" AS \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM \" + datasourceSchema\n .getFullTableTmpName() + \" LIMIT 0\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot create table \" + datasourceSchema.getFullTableTmpName(), e);\n }\n }\n\n // 3- déverse tout la table cible avec le champ load date time\n try {\n bigQueryRepository.runDDLQuery(\"INSERT INTO `\" + datasourceSchema.getFullTableName() + \"` \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM `\" + datasourceSchema\n .getFullTableTmpName() + \"`\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot insert from \" + datasourceSchema.getFullTableTmpName()\n + \" into destination table \" + datasourceSchema.getFullTableName(), e);\n }\n\n // 4- drop la table temporaire\n bigQueryRepository.dropTable(datasourceSchema.getTmpTableId());\n }",
"@GET(\"system/status\")\n Call<InlineResponse200> getStatus();",
"protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }",
"public void setStatus(BatchStatus value) {\n this.status = value;\n }",
"public void Retrive_data_with_sharedPrefernce(){\r\n\r\n SharedPreferences sharedPreferences = getContext().getSharedPreferences(\"Insert_status\",Context.MODE_PRIVATE) ;\r\n Boolean restoreStatus = sharedPreferences.getBoolean(\"Local_Status\",false);\r\n if(!restoreStatus){\r\n get_jsondata();\r\n }\r\n\r\n\r\n }",
"public static void getStatus() {\n\t\ttry {\n\t\t\tint i = 1;\n\t\t\tList<Object[]>serverDetails = ServerStatus.getServerDetails();\n\t\t\tfor (Object[] servers:serverDetails){\n\t\t\t\tServerStatus.verifyServerStatus(i,(String)servers[0], (String)servers[1], (String)servers[2]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"com.google.protobuf.ByteString getStatus();",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"@GetMapping(\"/init\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic String initTables() {\n\t\tprojectService.initTables();\n\t\treturn Constants.SUCCESS;\n\t}",
"List<Status> getStatusAlteraveis() throws ServiceException;",
"public static void trackerAdd(Status s) throws ClassNotFoundException, SQLException{\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\t\n\t\tDB_Interface.insertStatus(conn, s);\n\t\tconn.close();\n\t}",
"public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }",
"public void setStatus(byte[] status) {\r\n this.status = status;\r\n }",
"private void updateDeviceStatus(int deviceId, String score) {\n\t\tDeviceStatus ds = new DeviceStatus();\n\t\tds = deviceStatusMapper.selectByDeviceId(deviceId);\n\t\tif(ds != null){ \n\t\t\tif(StringUtil.isEmpty(ds.getShotUrl())){\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\t\tDate date = new Date();\n\t\t\t\tString dateStr = sdf.format(date);\n\t\t\t\tString fileName = dateStr+\"_\"+ds.getPointId();\n\t\t\t\tString filePath = \"source/caputrue/a/\"+dateStr+\"/\"+fileName+\".bmp\";\n\t\t\t\tds.setShotUrl(filePath);\n\t\t\t}\n\t\t\tif(score.equals(ConstantsResult.CHECK_RESULT_OK)||score.equals(ConstantsResult.CHECK_RESULT_SUCCESS)){\n\t\t\t\tds.setNetworkStatus(ConstantsResult.CHECK_RESULT_STATUS_OK); \n\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setNoiseStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setColorStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameFrozenStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameShadeStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameStripStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameFuzzyStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameDisplacedStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameColorcaseStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setLightExceptionStatus(ConstantsResult.CHECK_RESULT_STATUS_OK); \n\t\t\t\tds.setBlackScreenStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t}else if(score.equals(ConstantsResult.CHECK_RESULT_NULL)){\n\t\t\t\tds.setNetworkStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION); \n\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setNoiseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setColorStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameFrozenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameFuzzyStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameDisplacedStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameColorcaseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setLightExceptionStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameShadeStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameStripStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setBlackScreenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t}else{\n\t\t\t\tString[] scores = score.split(\"\\\\,\");\n\t\t\t\tfor(String s :scores){\n\t\t\t\t\tds.setNetworkStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\t\tif (s.equals(ConstantsResult.CHECK_RESULT_STATUS_NOISE)) {\n\t\t\t\t\t\tds.setNoiseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_SIGN)) {\n\t\t\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_COLOR)) {\n\t\t\t\t\t\tds.setColorStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_FROZEN)) {\n\t\t\t\t\t\tds.setFrameFrozenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_SHADE)) {\n\t\t\t\t\t\tds.setFrameShadeStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_FUZZY)) {\n\t\t\t\t\t\tds.setFrameFuzzyStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_DISPLACED)) {\n\t\t\t\t\t\tds.setFrameDisplacedStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_COLORCASE)) {\n\t\t\t\t\t\tds.setFrameColorcaseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_LIGHTEXCEPTION)) {\n\t\t\t\t\t\tds.setLightExceptionStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_BLACKSCREEN)) {\n\t\t\t\t\t\tds.setBlackScreenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t}else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_STRIP)) {\n\t\t\t\t\t\tds.setFrameStripStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tds.setRecordTime(new Date());\n\t\t\tds.setCreateTime(new Date());\n\t\t\tdeviceStatusMapper.updateByPrimaryKeySelective(ds);\n\t\t}else{\n\t\t\tds = new DeviceStatus();\n\t\t\tDevice d = deviceMapper.selectByPrimaryKey(deviceId);\n\t\t\tif(d!= null){\n\t\t\t\tds.setPointId(d.getPointId());\n\t\t\t}\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\tDate date = new Date();\n\t\t\tString dateStr = sdf.format(date);\n\t\t\tString fileName = dateStr+\"_\"+ds.getPointId();\n\t\t\tString filePath = \"source/caputrue/a/\"+dateStr+\"/\"+fileName+\".bmp\";\n\t\t\tds.setShotUrl(filePath);\n\t\t\tds.setId(0);\n\t\t\tds.setDeviceId(deviceId); \n\t\t\tds.setRecordTime(new Date());\n\t\t\tds.setCreateTime(new Date());\n\t\t\tif(score.equals(ConstantsResult.CHECK_RESULT_OK)||score.equals(ConstantsResult.CHECK_RESULT_SUCCESS)){\n\t\t\t\tds.setNetworkStatus(ConstantsResult.CHECK_RESULT_STATUS_OK); \n\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setNoiseStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setColorStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameFrozenStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameShadeStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameStripStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameFuzzyStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameDisplacedStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setFrameColorcaseStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\tds.setLightExceptionStatus(ConstantsResult.CHECK_RESULT_STATUS_OK); \n\t\t\t\tds.setBlackScreenStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t}else if(score.equals(ConstantsResult.CHECK_RESULT_NULL)){\n\t\t\t\tds.setNetworkStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION); \n\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setNoiseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameShadeStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameStripStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setColorStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameFrozenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameFuzzyStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameDisplacedStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setFrameColorcaseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setLightExceptionStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n//\t\t\t\tds.setBlackScreenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t}else{\n\t\t\t\tString[] scores = score.split(\"\\\\,\");\n\t\t\t\tfor(String s :scores){\n\t\t\t\t\tds.setNetworkStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\t\tds.setStreamStatus(ConstantsResult.CHECK_RESULT_STATUS_OK);\n\t\t\t\t\tif (s.equals(ConstantsResult.CHECK_RESULT_STATUS_NOISE)) {\n\t\t\t\t\t\tds.setNoiseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_SIGN)) {\n\t\t\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_COLOR)) {\n\t\t\t\t\t\tds.setColorStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_FROZEN)) {\n\t\t\t\t\t\tds.setFrameFrozenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_SHADE)) {\n\t\t\t\t\t\tds.setFrameShadeStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_FUZZY)) {\n\t\t\t\t\t\tds.setFrameFuzzyStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_DISPLACED)) {\n\t\t\t\t\t\tds.setFrameDisplacedStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_COLORCASE)) {\n\t\t\t\t\t\tds.setFrameColorcaseStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t} else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_LIGHTEXCEPTION)) {\n\t\t\t\t\t\tds.setLightExceptionStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t}else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_BLACKSCREEN)) {\n\t\t\t\t\t\tds.setBlackScreenStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t\tds.setSignStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t}else if (s.equals(ConstantsResult.CHECK_RESULT_STATUS_STRIP)) {\n\t\t\t\t\t\tds.setFrameStripStatus(ConstantsResult.CHECK_RESULT_STATUS_EXCEPTION);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t\tdeviceStatusMapper.insert(ds); \n\t\t}\n\t}",
"public static Map<String, Integer> getCurrentApiDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ApiStatusEntity.class, \"apiSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.statusDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"apiSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ApiStatusEntity> apiEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ApiStatusEntity apiStsEntity : apiEntityList){\n\t\t\tif(apiStsEntity.getComponent() != null){\n\t\t\t\tmapApiSts.put(apiStsEntity.getComponent().getComponentName(), apiStsEntity.getTotalApi());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"com.google.protobuf.ByteString\n getStatusBytes();",
"public Map<String, Object> getStatus() throws IOException {\n String httpResponse = httpGet(baseUrl.resolve(\"/_status\"));\n return mapper.readValue(httpResponse, new TypeReference<Map<String, Object>>() {\n });\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"String getDataStatus();",
"private void updateStatus() {\n String statusString = dataModel.getStatus().toString();\n if (dataModel.getStatus() == DefinitionStatus.MARKER_DEFINITION) {\n statusString += \" Number of markers: \" + dataModel.getNumberOfMarkers() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n if (dataModel.getStatus() == DefinitionStatus.POINTS_DEFINITION) {\n statusString += \" Number of point fields: \" + dataModel.getNumberOfPoints() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n statusLabel.setText(statusString);\n }",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"private void addLoadAPI(FunctionGenerator fg) throws EQException\n\t{\n\n\t\tAPIFieldSet apiFieldSet = FunctionToolbox.getLoadAPIFieldSet(session, \"LID\", \"MCD\", \"G01M\", \"GZG011\",\n\t\t\t\t\t\t\"Maintain Customer Details\", \"M\", true);\n\t\tfg.addLoadAPIFieldSet(\"REC1\", apiFieldSet);\n\n\t\t// PV\n\t\t// PVFieldSet pvFieldSet = FunctionToolbox.getPVFieldSet(session, \"GFR70R\", \"\", false, \"N\", MappingToolbox\n\t\t// .getFullLoadFieldSetPath(\"REC1\", \"LID\"));\n\t\t// fg.setLoadPVFieldSet(\"REC1\", pvFieldSet);\n\t}",
"@Override\n protected void loadData() {\n setUpLoadingViewVisibility(true);\n callImageList = RetrofitGenerator.createService(ApiService.class)\n .getAllPubImage();\n callImageList.enqueue(callbackImageList);\n }",
"public JsonResponse(String status, Counter[] numRecordLoaded, BootstrapError[] error) {\n this.status = status;\n this.numRecordLoaded = numRecordLoaded;\n this.error = error;\n }",
"public void initTableAndWriteStatus(ExportTask task, String studyId) throws BridgeExporterException,\n InterruptedException, SynapseException {\n // Does the table already exist? If not, create it.\n String synapseTableId = manager.getSynapseTableIdFromDdb(task, SynapseHelper.DDB_TABLE_SYNAPSE_META_TABLES,\n SynapseHelper.DDB_KEY_TABLE_NAME, getStatusTableName(studyId));\n\n // check if the status table exists in synapse\n SynapseHelper synapseHelper = manager.getSynapseHelper();\n boolean isExisted = true;\n\n if (synapseTableId != null) {\n try {\n synapseHelper.getTableWithRetry(synapseTableId);\n } catch (SynapseNotFoundException e) {\n isExisted = false;\n }\n }\n\n if (synapseTableId == null || !isExisted) {\n synapseTableId = createStatusTable(task, studyId);\n }\n\n // Table definitely exists now. Write status with this internal helper.\n writeStatus(synapseTableId, task, studyId);\n }",
"@Test\n void technicalStatusPerBatchTableTest() throws Exception {\n\n jCtrl.getTrainer2(); // initialize data\n\n // call technicalStatusPerBatchTable() and get returned list\n List<TechnicalStatusPerBatch> result = tspbServ.technicalStatusPerBatchTable(1);\n\n // check if returned list contains TechnicalStatusPerBatch objects\n assertTrue(result.get(0) instanceof TechnicalStatusPerBatch);\n }",
"protected void importIntoTable(HttpLogData data) throws Exception {\n Db db = getDb();\n st_insert_temp_table.setString(1, data.domain_name);\n st_insert_temp_table.setString(2, data.category);\n st_insert_temp_table.setString(3, data.site_name);\n st_insert_temp_table.setObject(4, null);\n st_insert_temp_table.setTimestamp(5, DateHelper.sql(data.datetime));\n st_insert_temp_table.setLong(6, data.time_taken);\n st_insert_temp_table.setInt(7, getOrCreateAuthorizationId(data.authorization));\n st_insert_temp_table.setLong(8, data.volume_client_to_server);\n st_insert_temp_table.setLong(9, data.volume_server_to_client);\n st_insert_temp_table.setInt(10, data.http_status);\n st_insert_temp_table.setString(11, data.user_agent);\n st_insert_temp_table.setString(12, data.agent_version);\n st_insert_temp_table.setInt(13, data.type);\n st_insert_temp_table.setString(14, data.ip_client);\n st_insert_temp_table.setString(15, obfuscateUsername(data.user_name));\n st_insert_temp_table.setString(16, data.mime_type);\n st_insert_temp_table.setBoolean(17, data.intranet);\n st_insert_temp_table.setString(18, data.path);\n st_insert_temp_table.setInt(19, data.specificFileWithoutReferer ? 1 : 0);\n st_insert_temp_table.setInt(20, data.robotsTxt ? 1 : 0);\n db.executeUpdate(st_insert_temp_table);\n }",
"com.google.protobuf.ByteString\n getStatusBytes();",
"com.google.protobuf.ByteString\n getStatusBytes();",
"public abstract void updateStatus() throws Throwable;",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"private void loadAllCountData(){\n // load from csv\n try{\n FileReader file = new FileReader(\"/home/ubuntu/user_counts_small.csv\");\n //FileReader file = new FileReader(\"/Users/YHWH/Desktop/cloud computing/team project/user_counts.csv\");\n BufferedReader buff = new BufferedReader(file);\n String line = \"\";\n boolean eof = false;\n\n while(!eof){\n line = buff.readLine();\n if(line == null){\n eof = true;\n }\n else{\n String[] data = line.split(\"\\t\"); //0->id, 1->selfCount, 2->prevCount\n wholeCountData.put(data[0], Integer.parseInt(data[2]));\n }\n }\n buff.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }",
"public List<ContestStatus> getAllContestStatuses() throws ContestManagementException {\r\n\r\n ContestStatus[] statuses = new ContestStatus[10];\r\n statuses[0] = new ContestStatus();\r\n statuses[0].setContestStatusId(new Long(0));\r\n statuses[0].setName(\"Draft\");\r\n statuses[0].setDescription(\"A status\");\r\n statuses[0].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[1] = new ContestStatus();\r\n statuses[1].setContestStatusId(new Long(1));\r\n statuses[1].setName(\"Scheduled\");\r\n statuses[1].setDescription(\"A status\");\r\n statuses[1].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[2] = new ContestStatus();\r\n statuses[2].setContestStatusId(new Long(2));\r\n statuses[2].setName(\"Active\");\r\n statuses[2].setDescription(\"A status\");\r\n statuses[2].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[3] = new ContestStatus();\r\n statuses[3].setContestStatusId(new Long(3));\r\n statuses[3].setName(\"Action Required\");\r\n statuses[3].setDescription(\"A status\");\r\n statuses[3].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[4] = new ContestStatus();\r\n statuses[4].setContestStatusId(new Long(4));\r\n statuses[4].setName(\"In Danger\");\r\n statuses[4].setDescription(\"A status\");\r\n statuses[4].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[5] = new ContestStatus();\r\n statuses[5].setContestStatusId(new Long(5));\r\n statuses[5].setName(\"Insufficient Submissions - ReRun Possible\");\r\n statuses[5].setDescription(\"A status\");\r\n statuses[5].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[6] = new ContestStatus();\r\n statuses[6].setContestStatusId(new Long(6));\r\n statuses[6].setName(\"Extended\");\r\n statuses[6].setDescription(\"A status\");\r\n statuses[6].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[7] = new ContestStatus();\r\n statuses[7].setContestStatusId(new Long(7));\r\n statuses[7].setName(\"Repost\");\r\n statuses[7].setDescription(\"A status\");\r\n statuses[7].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[8] = new ContestStatus();\r\n statuses[8].setContestStatusId(new Long(8));\r\n statuses[8].setName(\"Insufficient Submissions\");\r\n statuses[8].setDescription(\"A status\");\r\n statuses[8].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n statuses[9] = new ContestStatus();\r\n statuses[9].setContestStatusId(new Long(9));\r\n statuses[9].setName(\"No Winner Chosen\");\r\n statuses[9].setDescription(\"A status\");\r\n statuses[9].setStatuses(new ArrayList<ContestStatus>());\r\n\r\n return Arrays.asList(statuses);\r\n }",
"public java.util.List<DataEntry> findByStatus(int status);",
"public Map<String, Serializable> getStatus() {\n return status;\n }",
"public void UpdateCarsTable(){\n String statusWord;\n for(int i=0;i<Main.carList.size();i++){\n if(Main.carList.get(i).status == 0)\n statusWord = \"Waiting\";\n else if(Main.carList.get(i).status == 1)\n statusWord = \"Crossing\";\n else if(Main.carList.get(i).status == 2)\n statusWord = \"Passed\";\n else\n statusWord = \"Unknown\";\n carModel.setValueAt(statusWord, i, 3);\n carModel.setValueAt(Main.carList.get(i).timeLeft, i, 4);\n }\n }",
"private void populateAPILevelPolicies(API api) throws APIManagementException {\n List<OperationPolicy> apiPolicyMapping = apiMgtDAO.getAPIPolicyMapping(api.getUuid(), null);\n if (!apiPolicyMapping.isEmpty()) {\n api.setApiPolicies(apiPolicyMapping);\n }\n }",
"HealthCheck createHealthCheck(TableName tableName);",
"org.hl7.fhir.ObservationStatus addNewStatus();",
"com.google.container.v1beta1.Operation.Status getStatus();",
"@GetMapping(path = ApiConstant.HEALTH_CHECK_API, produces = APPLICATION_JSON_VALUE)\n public ResponseEntity checkHealth() {\n logger.info(\"Health checking.\");\n HashMap<String, String> map = new HashMap<>();\n map.put(\"status\", \"OK\");\n return new ResponseEntity<>(map, HttpStatus.OK);\n }",
"private static void checkStatus() {\n\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(\"Checking at :\"+date.toString());\r\n\t\tString response = \"\";\r\n\t\ttry {\r\n\t\t\tresponse = sendGET(GET_URL_COVAXIN);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//System.out.println(response.toString());\r\n\t\tArrayList<Map> res = formatResponse(response);\r\n\r\n\t\tres = checkAvailability(res);\r\n\t\tif(res.size()>0)\r\n\t\t\tnotifyUser(res);\r\n\t\t//System.out.println(emp.toString());\r\n\t}",
"public static void loadK8sTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sTpsLatHistoryEntity tpsLabHis = new K8sTpsLatHistoryEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsLabHis.setEnvironment(environment);\n\t\ttpsLabHis.setStatusDate(todayDate);\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsLabHis.setComponent(component);\n\t\ttpsLabHis.setTpsValue(tpsVaule);\n\t\ttpsLabHis.setLatencyValue(latencyValue);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"private Integer getStatus(Map<String, Object> info) {\n return 200;\n }",
"private void updateDeviceStatusRecord(int deviceId) {\n\t\tDeviceStatus ds = deviceStatusMapper.selectByDeviceId(deviceId); \n\t\tif(ds!= null){\n\t\t\tds.setId(0); \n\t\t\tif(StringUtil.isEmpty(ds.getShotUrl())){\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\t\tDate date = new Date();\n\t\t\t\tString dateStr = sdf.format(date);\n\t\t\t\tString fileName = dateStr+\"_\"+ds.getPointId();\n\t\t\t\tString filePath = \"source/caputrue/a/\"+dateStr+\"/\"+fileName+\".bmp\";\n\t\t\t\tds.setShotUrl(filePath);\n\t\t\t}\n\t\t\tdeviceStatusRecordMapper.insertRecord(ds);\n\t\t}\n\t}",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/ingresses/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Ingress> readIngressStatus(\n @Path(\"name\") String name);",
"@Test\n public void simulateNormalLoad(TestContext context) {\n Async async = context.async();\n try {\n init();\n loadSimulatedNormalData();\n\n put(\"myapi1/v1/test\").then().assertThat().statusCode(200);\n put(\"myapi2/v1/test\").then().assertThat().statusCode(200);\n } catch (Exception failed) {\n failed.printStackTrace();\n context.fail(\"Exception: \" + failed.getMessage());\n }\n\n System.out.println(\"Done\");\n\n async.complete();\n }",
"private void refreshWealthStatus(){\n SharedPreferences prefs = getSharedPreferences(\"Account_Status_Prefs\", 0);\n // todo, push to class item\n Set<String> account_fields = prefs.getStringSet(\"account_fields\", new HashSet<String>());\n // to remember :\n // - getSharedPreferences(\"Account_Status_Prefs\", 0) => \"named\" prefs\n // - getPreferences(0) => preferences per Activity\n\n TableLayout table = (TableLayout) findViewById(R.id.bilans_view_statuses_table);\n table.removeAllViews(); // TODO: For now this empties table, and generates rows from start. Optimize.\n for(String name: account_fields)\n {\n TableRow row = (TableRow) LayoutInflater.from(this).inflate(R.layout.activity_bilans_view_status_row, null);\n ((TextView)row.findViewById(R.id.attrib_name)).setText(name);\n\n TextView e = (TextView)row.findViewById(R.id.attrib_value);\n e.setText(Float.toString(prefs.getFloat(name, 0.0f)));\n //e.setTag(e); // TODO: is it right use of tags?\n table.addView(row);\n }\n table.requestLayout();\n }",
"protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }",
"@Override\n public void run() {\n try {\n TableDataInsertAllResponse response = bigquery.tabledata()\n .insertAll(projectId, DATASET_ID, TABLE_ID, new TableDataInsertAllRequest()\n .setRows(ImmutableList.of(new TableDataInsertAllRequest.Rows()\n .setInsertId(insertId)\n .setJson(new ImmutableMap.Builder<String, Object>()\n .put(\"path\", path)\n .put(\"method\", method)\n .put(\"tld\", tld)\n .put(\"start_time\", startTime)\n .put(\"end_time\", endTime)\n .put(\"response_code\", responseCode)\n .put(\"activity\", activity)\n .build())))).execute();\n if (response.getInsertErrors() != null && !response.getInsertErrors().isEmpty()) {\n throw new RuntimeException(Joiner.on('\\n').join(FluentIterable\n .from(response.getInsertErrors())\n .transform(new Function<InsertErrors, String>() {\n @Override\n public String apply(InsertErrors error) {\n try {\n return error.toPrettyString();\n } catch (IOException e) {\n return error.toString();\n }\n }})));\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }",
"@SuppressWarnings(\"unchecked\")\n private void preOperation(\n Map<String, Object> req, String userId, Map<String, Integer> contentStateHolder)\n throws ParseException {\n\n SimpleDateFormat simpleDateFormat = ProjectUtil.getDateFormatter();\n simpleDateFormat.setLenient(false);\n\n Util.DbInfo dbInfo = Util.dbInfoMap.get(JsonKey.LEARNER_CONTENT_DB);\n req.put(JsonKey.ID, generatePrimaryKey(req, userId));\n contentStateHolder.put(\n (String) req.get(JsonKey.ID), ((BigInteger) req.get(JsonKey.STATUS)).intValue());\n Response response =\n cassandraOperation.getRecordById(\n dbInfo.getKeySpace(), dbInfo.getTableName(), (String) req.get(JsonKey.ID));\n\n List<Map<String, Object>> resultList =\n (List<Map<String, Object>>) response.getResult().get(JsonKey.RESPONSE);\n\n if (!(resultList.isEmpty())) {\n Map<String, Object> result = resultList.get(0);\n int currentStatus = (int) result.get(JsonKey.STATUS);\n int requestedStatus = ((BigInteger) req.get(JsonKey.STATUS)).intValue();\n\n Integer currentProgressStatus = 0;\n if (isNotNull(result.get(JsonKey.CONTENT_PROGRESS))) {\n currentProgressStatus = (Integer) result.get(JsonKey.CONTENT_PROGRESS);\n }\n if (isNotNull(req.get(JsonKey.CONTENT_PROGRESS))) {\n Integer requestedProgressStatus =\n ((BigInteger) req.get(JsonKey.CONTENT_PROGRESS)).intValue();\n if (requestedProgressStatus > currentProgressStatus) {\n req.put(JsonKey.CONTENT_PROGRESS, requestedProgressStatus);\n } else {\n req.put(JsonKey.CONTENT_PROGRESS, currentProgressStatus);\n }\n } else {\n req.put(JsonKey.CONTENT_PROGRESS, currentProgressStatus);\n }\n\n Date accessTime = parseDate(result.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n Date requestAccessTime = parseDate(req.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n\n Date completedDate = parseDate(result.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n Date requestCompletedTime = parseDate(req.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n\n int completedCount;\n if (!(isNullCheck(result.get(JsonKey.COMPLETED_COUNT)))) {\n completedCount = (int) result.get(JsonKey.COMPLETED_COUNT);\n } else {\n completedCount = 0;\n }\n int viewCount;\n if (!(isNullCheck(result.get(JsonKey.VIEW_COUNT)))) {\n viewCount = (int) result.get(JsonKey.VIEW_COUNT);\n } else {\n viewCount = 0;\n }\n\n if (requestedStatus >= currentStatus) {\n req.put(JsonKey.STATUS, requestedStatus);\n if (requestedStatus == 2) {\n req.put(JsonKey.COMPLETED_COUNT, completedCount + 1);\n req.put(JsonKey.LAST_COMPLETED_TIME, compareTime(completedDate, requestCompletedTime));\n } else {\n req.put(JsonKey.COMPLETED_COUNT, completedCount);\n }\n req.put(JsonKey.VIEW_COUNT, viewCount + 1);\n req.put(JsonKey.LAST_ACCESS_TIME, compareTime(accessTime, requestAccessTime));\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n\n } else {\n req.put(JsonKey.STATUS, currentStatus);\n req.put(JsonKey.VIEW_COUNT, viewCount + 1);\n req.put(JsonKey.LAST_ACCESS_TIME, compareTime(accessTime, requestAccessTime));\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n req.put(JsonKey.COMPLETED_COUNT, completedCount);\n }\n\n } else {\n // IT IS NEW CONTENT SIMPLY ADD IT\n Date requestCompletedTime = parseDate(req.get(JsonKey.LAST_COMPLETED_TIME), simpleDateFormat);\n if (null != req.get(JsonKey.STATUS)) {\n int requestedStatus = ((BigInteger) req.get(JsonKey.STATUS)).intValue();\n req.put(JsonKey.STATUS, requestedStatus);\n if (requestedStatus == 2) {\n req.put(JsonKey.COMPLETED_COUNT, 1);\n req.put(JsonKey.LAST_COMPLETED_TIME, compareTime(null, requestCompletedTime));\n req.put(JsonKey.COMPLETED_COUNT, 1);\n } else {\n req.put(JsonKey.COMPLETED_COUNT, 0);\n }\n\n } else {\n req.put(JsonKey.STATUS, ProjectUtil.ProgressStatus.NOT_STARTED.getValue());\n req.put(JsonKey.COMPLETED_COUNT, 0);\n }\n\n int progressStatus = 0;\n if (isNotNull(req.get(JsonKey.CONTENT_PROGRESS))) {\n progressStatus = ((BigInteger) req.get(JsonKey.CONTENT_PROGRESS)).intValue();\n }\n req.put(JsonKey.CONTENT_PROGRESS, progressStatus);\n\n req.put(JsonKey.VIEW_COUNT, 1);\n Date requestAccessTime = parseDate(req.get(JsonKey.LAST_ACCESS_TIME), simpleDateFormat);\n\n req.put(JsonKey.LAST_UPDATED_TIME, ProjectUtil.getFormattedDate());\n\n if (requestAccessTime != null) {\n req.put(JsonKey.LAST_ACCESS_TIME, (String) req.get(JsonKey.LAST_ACCESS_TIME));\n } else {\n req.put(JsonKey.LAST_ACCESS_TIME, ProjectUtil.getFormattedDate());\n }\n }\n }",
"public static List getStatusList() \n {\n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"select status from Alumni_data group by status\").list();\n session.close();\n return li;\n }",
"@Override\n\tpublic int getStatus() {\n\t\treturn _dictData.getStatus();\n\t}",
"public void update(){\r\n\t\tthis.loadRecords();\r\n\t}",
"@Override\n\tpublic void setStatus(int status) {\n\t\t_dictData.setStatus(status);\n\t}",
"public void updateTableStatus(int id){\n tableRef.child(storeID)\n .orderByChild(\"id\")\n .equalTo(id)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String tableID = null;\n for(DataSnapshot data: dataSnapshot.getChildren())\n tableID = data.getKey();\n\n if (tableID != null) {\n tableRef.child(storeID)\n .child(tableID)\n .child(\"status\")\n .setValue(\"ORDER_TAKEN\");\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public void buildAccountStatus() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS account_status (user_id\"\n + \" TEXT UNIQUE, status INT, FOREIGN KEY (user_id) REFERENCES users\"\n + \"(id)\" + \" ON DELETE CASCADE ON UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }",
"private void loadDataFromDBJSON() {\n loadCriteriaList();\n loadCriteriaLeft();\n Button btnNextEnable = (Button) findViewById(R.id.btnNext);\n btnNextEnable.setEnabled(true);\n }",
"@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }",
"private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }",
"public Builder setStatusBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n status_ = value;\n onChanged();\n return this;\n }",
"private void addStatus(HttpServletRequest req, JSONObject siteConfigJson, WebUser user, URI resource) throws JSONException {\r\n \t\tString id = siteConfigJson.getString(ProtocolConstants.KEY_ID);\r\n \t\tSiteConfiguration siteConfiguration = SiteConfiguration.fromId(id);\r\n \t\tIHostedSite site = HostingActivator.getDefault().getHostingService().get(siteConfiguration, user);\r\n \t\tJSONObject hostingStatus = new JSONObject();\r\n \t\tif (site != null) {\r\n \t\t\thostingStatus.put(SiteConfigurationConstants.KEY_HOSTING_STATUS_STATUS, \"started\"); //$NON-NLS-1$\r\n \t\t\tString portSuffix = \":\" + req.getLocalPort(); //$NON-NLS-1$\r\n \t\t\t// Whatever scheme was used to access the resource, assume it's used for the sites too\r\n\t\t\t// Hosted site also shares same contextPath \r\n\t\t\tString hostedUrl = resource.getScheme() + \"://\" + site.getHost() + portSuffix + req.getContextPath(); //$NON-NLS-1$\r\n \t\t\thostingStatus.put(SiteConfigurationConstants.KEY_HOSTING_STATUS_URL, hostedUrl);\r\n \t\t} else {\r\n \t\t\thostingStatus.put(SiteConfigurationConstants.KEY_HOSTING_STATUS_STATUS, \"stopped\"); //$NON-NLS-1$\r\n \t\t}\r\n \t\tsiteConfigJson.put(SiteConfigurationConstants.KEY_HOSTING_STATUS, hostingStatus);\r\n \t}",
"public void checkPMDataForUpload() {\n /*\n TODO: 16/2/9\n TODO 1.Size of states should have a range. Ex. just query last week data for upload\n TODO 2.The largest size of a week data should be 7 * 24 * 3600, is it decent to upload at one time?\n TODO 3.Is is necessary for server to have a authentication, since it looks currently everyone could upload through api.\n */\n\n String idStr = aCache.getAsString(Const.Cache_User_Id);\n if (ShortcutUtil.isStringOK(idStr) && !idStr.equals(\"0\")) {\n final List<State> states = cupboard().withDatabase(db).query(State.class).withSelection(DBConstants.DB_MetaData.STATE_HAS_UPLOAD +\n \"=? AND \" + DBConstants.DB_MetaData.STATE_CONNECTION + \"=?\", \"0\", \"1\").list();\n //FileUtil.appendStrToFile(DBRunTime, \"1.checkPMDataForUpload upload batch start size = \" + states.size());\n isUploadRunning = true;\n String url = HttpUtil.UploadBatch_url;\n JSONArray array = new JSONArray();\n final int size = states.size()<1000?states.size():1000;\n for (int i=0;i<size;i++) {\n JSONObject tmp = State.toJsonobject(states.get(i), aCache.getAsString(Const.Cache_User_Id));\n array.put(tmp);\n }\n JSONObject batchData = null;\n try {\n batchData = new JSONObject();\n batchData.put(\"data\", array);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, url, batchData, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n isUploadRunning = false;\n try {\n String value = response.getString(\"succeed_count\");\n FileUtil.appendStrToFile(DBRunTime, \"1.checkPMDataForUpload upload success value = \" + value);\n if (Integer.valueOf(value) == size) {\n for (int i=0;i<size;i++) {\n updateStateUpLoad(states.get(i), 1);\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n// if (isBackground != null && isBackground.equals(bgStr))\n// Toast.makeText(getApplicationContext(), Const.Info_Upload_Success, Toast.LENGTH_SHORT).show();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (error.getMessage() != null)\n FileUtil.appendErrorToFile(DBRunTime,\"1.checkPMDataForUpload error getMessage\" + error.getMessage());\n if (error.networkResponse != null)\n FileUtil.appendErrorToFile(DBRunTime, \"1.checkPMDataForUpload networkResponse statusCode \" + error.networkResponse.statusCode);\n FileUtil.appendErrorToFile(DBRunTime,\"1.checkPMDataForUpload error \" + error.toString());\n isUploadRunning = false;\n// if (isBackground != null && isBackground.equals(bgStr))\n// Toast.makeText(getApplicationContext(), Const.Info_Upload_Failed, Toast.LENGTH_SHORT).show();\n }\n }) {\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }\n };\n jsonObjectRequest.setRetryPolicy(new DefaultRetryPolicy(\n Const.Default_Timeout_Long,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n VolleyQueue.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest);\n }\n }",
"private void ingestApiDatasinks() throws MalformedURLException, ComposerException {\n\t\tString url = String.format(\"%s/json/service/datasinks/%s\", RtwsConfig.getInstance().getString(\"sys.builder.ingest.api\"),\n\t\t\t\tgetTenantId());\n\t\tWebResource resource = this.client.resource(url);\n\t\t\n\t\tClientResponse clientResponse = resource.get(ClientResponse.class);\n\t\tif(clientResponse.getStatus() == 503){\n\t\t\tthrow new ComposerException(\"IngestAPI is currently syncing/updating its cache, try again later.\");\n\t\t}\n\t\t\n\t\tString response = clientResponse.getEntity(String.class);\n\n\t\tthis.datasinksJson = JSONArray.fromObject(response);\n\t}",
"private GeobatchRunInfo updateRunInfoStatus(GeobatchRunInfo runInfo) {\n RESTConsumerStatus status = null;\n try {\n status = getFlowService().getConsumerStatus(\n runInfo.getFlowUid());\n } catch (Exception e) {\n // status it's FAIL\n }\n runInfo.setFlowStatus(status != null ? status.getStatus().name()\n : \"FAIL\");\n runInfo = updateRunInfo(runInfo);\n return runInfo;\n }",
"@Override\n public void onStatusChange(int status) {\n }"
] | [
"0.61468667",
"0.61194307",
"0.5426551",
"0.53929037",
"0.53230864",
"0.53014237",
"0.5240491",
"0.5103001",
"0.50508964",
"0.5028093",
"0.50169855",
"0.5005596",
"0.49905044",
"0.49697348",
"0.49633238",
"0.4957313",
"0.49018064",
"0.4891506",
"0.48592994",
"0.48424786",
"0.48291767",
"0.47867355",
"0.47827592",
"0.47790492",
"0.4769531",
"0.47694236",
"0.47601622",
"0.47502998",
"0.47428665",
"0.47130367",
"0.47119147",
"0.46954697",
"0.46911785",
"0.46861592",
"0.4686039",
"0.46682137",
"0.46596643",
"0.4648451",
"0.46455213",
"0.4644964",
"0.46383658",
"0.46235892",
"0.4620147",
"0.46155185",
"0.46146578",
"0.46146137",
"0.46025437",
"0.46000636",
"0.45918453",
"0.4588888",
"0.4586035",
"0.45844832",
"0.45766032",
"0.45721215",
"0.45678034",
"0.45537135",
"0.45536506",
"0.45420483",
"0.45399797",
"0.4538445",
"0.4538445",
"0.4531161",
"0.45234472",
"0.45234472",
"0.45179513",
"0.45080268",
"0.44914117",
"0.44881427",
"0.44870764",
"0.44790062",
"0.44780755",
"0.44759193",
"0.44725507",
"0.44673496",
"0.44655457",
"0.44514504",
"0.44482836",
"0.44427842",
"0.44418788",
"0.4441309",
"0.4440861",
"0.44341782",
"0.4433298",
"0.4427453",
"0.44268948",
"0.44225982",
"0.4421836",
"0.4415926",
"0.44156417",
"0.44129947",
"0.4407962",
"0.44077817",
"0.4403956",
"0.4403808",
"0.44035923",
"0.44021323",
"0.4399995",
"0.43989658",
"0.4393656",
"0.43830982"
] | 0.7109655 | 0 |
Update the container_status/k8s_container_status table with latest number of containers | public static void updateContainerDetails(final int envId, String compName, int numOfcont, String parentCompName, String platform){
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
final int compId = getComponentId(compName, parentCompName);
if(compId == 0){
logger.info("Component Name = " + compName + "; Parent Component Name = " + parentCompName + "; is not available in the DB");
return;
}
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
String updateApiStsQry = null;
if(platform.equalsIgnoreCase("Mesos")){
updateApiStsQry = HQLConstants.UPDATE_CONTAINER_DETAILS;
}
Query query = session.createQuery(updateApiStsQry);
query.setInteger("numOfContainers", numOfcont);
query.setLong("compId", compId);
query.setLong("environmentId", envId);
query.setDate("stsDate", todayDate);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateMetrics(ContainerStatus status) {\n if (status != null) {\n switch (status.getExitStatus()) {\n case SUCCESS:\n componentMetrics.containersSucceeded.incr();\n scheduler.getServiceMetrics().containersSucceeded.incr();\n return;\n case PREEMPTED:\n componentMetrics.containersPreempted.incr();\n scheduler.getServiceMetrics().containersPreempted.incr();\n break;\n case DISKS_FAILED:\n componentMetrics.containersDiskFailure.incr();\n scheduler.getServiceMetrics().containersDiskFailure.incr();\n break;\n default:\n break;\n }\n }\n\n // containersFailed include preempted, disks_failed etc.\n componentMetrics.containersFailed.incr();\n scheduler.getServiceMetrics().containersFailed.incr();\n\n if (status != null && Apps.shouldCountTowardsNodeBlacklisting(\n status.getExitStatus())) {\n String host = scheduler.getLiveInstances().get(status.getContainerId())\n .getNodeId().getHost();\n failureTracker.incNodeFailure(host);\n currentContainerFailure.getAndIncrement();\n }\n }",
"public static void loadContainerStatus(final int envId, int compId, final int instanceNum) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n//\t\tfinal int compId = getComponentId(compName, parentCompName);\n//\t\tif(compId == 0){\n//\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n//\t\t\treturn 0;\n//\t\t}\n\n\t\tint prevNumInstance = getPreiousNumInstance(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumInstance == 0 ? 0 : instanceNum - prevNumInstance;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tContainerStatsEntity contStat = new ContainerStatsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatsDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tcontStat.setComponent(component);\n\t\tcontStat.setTotalContainer(instanceNum);\n\t\tcontStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }",
"com.google.container.v1beta1.Operation.Status getStatus();",
"public static void updateContainerDetails(final int envId, int compId, int numOfcont){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_CONTAINER_DETAILS);\n\t\tquery.setInteger(\"numOfContainers\", numOfcont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"void onContainerStatusReceived(ContainerId containerId,\n ContainerStatus containerStatus);",
"public int getStatusCount() {\n return status_.size();\n }",
"@PutMapping(\"/containers\")\n\tpublic Container updateContainer(@RequestBody Container container) {\n\t\tcontainerDAO.save(container);\n\t\t\n\t\treturn container;\n\t\t//despite postman returning the updated data, i could not get mysql to reflect the changes\n\t\t//until i added @Transactional to the \"save\" method in the Service layer. \n\t\t//i did not have any issues adding a container prior to adding @transactional, however\n\t}",
"int getStatusCount();",
"public void refreshQueueCount(){\n queueCountLabel.setText(\"Count: \" + String.valueOf(builder.size()));\n }",
"int getNodeStatusListCount();",
"int getUpdateCountsCount();",
"private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}",
"long countJobsWithStatus(JobStatus status);",
"public int getStatusCount() {\n return status_.size();\n }",
"public static Map<String, Integer> getK8sCurrContainerDetails(int envId, String platform) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria contCriteria = session.createCriteria(K8sPodsContainersEntity.class, \"contSts\");\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.statusDate\", todayDate ));\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sPodsContainersEntity> contEntityList = contCriteria.list();\n\t\tMap<String, Integer> mapContSts = new HashMap<String, Integer>();\n\t\tfor(K8sPodsContainersEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapContSts.put(fullAppName, contStsEntity.getTotalContainers());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapContSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainers());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapContSts;\n\t}",
"public static void updatePodsAndContainers(final int envId, String compName, int numOfPods, String parentCompName, int numOfCont){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_K8S_PODS_CONT_DETAILS);\n\t\tquery.setInteger(\"totalPods\", numOfPods);\n\t\tquery.setInteger(\"totalContainers\", numOfCont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"void onGetContainerStatusError(ContainerId containerId, Throwable t);",
"@ApiModelProperty(required = true, value = \"The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.\")\n\n public Long getRefCount() {\n return refCount;\n }",
"@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }",
"private static synchronized void checkAndUpdateComponentState(\n Component component, boolean isIncrement) {\n\n if (component.getRestartPolicyHandler().isLongLived()) {\n if (isIncrement) {\n // check if all containers are in READY state\n if (!component.upgradeStatus.areContainersUpgrading() &&\n !component.cancelUpgradeStatus.areContainersUpgrading() &&\n component.componentMetrics.containersReady.value() ==\n component.componentMetrics.containersDesired.value()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState.STABLE);\n // component state change will trigger re-check of service state\n component.context.getServiceManager().checkAndUpdateServiceState();\n }\n } else{\n // container moving out of READY state could be because of FLEX down so\n // still need to verify the count before changing the component state\n if (component.componentMetrics.containersReady.value()\n < component.componentMetrics.containersDesired.value()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState\n .FLEXING);\n } else if (component.componentMetrics.containersReady.value()\n == component.componentMetrics.containersDesired.value()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState.STABLE);\n }\n // component state change will trigger re-check of service state\n component.context.getServiceManager().checkAndUpdateServiceState();\n }\n } else {\n // component state change will trigger re-check of service state\n component.context.getServiceManager().checkAndUpdateServiceState();\n }\n // triggers the state machine in component to reach appropriate state\n // once the state in spec is changed.\n component.dispatcher.getEventHandler().handle(\n new ComponentEvent(component.getName(),\n ComponentEventType.CHECK_STABLE));\n }",
"@HEAD\n public Response getStats() throws CloudException {\n\n long containerCount = 0;\n long bytesUsed = 0;\n\n log.warn(\"Container stats not implemented\");\n\n ResponseBuilder response = Response.noContent();\n response.header(\"X-Account-Container-Count\", Long.toString(containerCount));\n response.header(\"X-Account-Bytes-Used\", Long.toString(bytesUsed));\n response.header(\"Date\", new Date());\n return response.build();\n\n }",
"public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sApiStatusEntity apiStatus = new K8sApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sPodsContainersEntity podStat = new K8sPodsContainersEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpodStat.setEnvironment(environment);\n\t\tpodStat.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpodStat.setComponent(component);\n\t\tpodStat.setTotalPods(numPods);\n\t\tpodStat.setTotalContainers(numCont);\n\t\tsession.save(podStat);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public void onContainerRestart(ContainerId containerId) {}",
"public void honourDesiredCount() {\n int totalDeploymentCount = getDeployments().size();\n// log.info(\"[Total count] \" + totalDeploymentCount + \" [Desired Count] \" + desiredCount);\n\n while (totalDeploymentCount < desiredCount) {\n log.info(\"Scaling UP: REASON -> [Total Count] \" + totalDeploymentCount + \" < [Desired Count] \" +\n desiredCount);\n\n scaleUp(\"honourDesiredCount\");\n totalDeploymentCount = getDeployments().size();\n }\n }",
"public static void crdStatusHasUpdatedStorageVersions(KubernetesClient client) {\n for (String kind : AbstractCommand.STRIMZI_KINDS) {\n String crdName = CrdUpgradeCommand.CRD_NAMES.get(kind);\n CustomResourceDefinition crd = client.apiextensions().v1beta1().customResourceDefinitions().withName(crdName).get();\n\n assertThat(crd.getStatus().getStoredVersions(), hasItem(\"v1beta2\"));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(not(\"v1beta1\")));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(not(\"v1alpha1\")));\n }\n }",
"long getUpdateCounts(int index);",
"KeeperContainerTokenStatusResponse refreshKeeperContainerTokenStatus(KeeperContainerTokenStatusRequest request);",
"protected void reconcile(PodSet podSet) {\n List<String> pods = podCountByLabel(APP_LABEL, podSet.getMetadata().getName());\n logger.info(\"reconcile() : Found {} number of Pods owned by PodSet {}\", pods.size(), podSet.getMetadata().getName());\n if (pods.isEmpty()) {\n createPods(podSet.getSpec().getReplicas(), podSet);\n return;\n }\n int existingPods = pods.size();\n\n // Compare it with desired state i.e spec.replicas\n // if less then spin up pods\n if (existingPods < podSet.getSpec().getReplicas()) {\n createPods(podSet.getSpec().getReplicas() - existingPods, podSet);\n }\n\n // If more pods then delete the pods\n int diff = existingPods - podSet.getSpec().getReplicas();\n for (; diff > 0; diff--) {\n String podName = pods.remove(0);\n kubernetesClient.pods().inNamespace(podSet.getMetadata().getNamespace()).withName(podName).delete();\n }\n\n // Update PodSet status\n updateAvailableReplicasInPodSetStatus(podSet, podSet.getSpec().getReplicas());\n }",
"public int getNumberOfMultiUpdated(Identity owner, Map<String, Long> sinceTimes);",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment that have the desired template spec.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"@Test\n public void testUpdateContainerInAccount() throws JSONException {\n Account.Account account = Account.Account.fromJson(refAccountJson);\n AccountBuilder accountBuilder = new AccountBuilder(account);\n // updating with different containers\n for (int i = 0; i < (AccountContainerTest.CONTAINER_COUNT); i++) {\n Container.Container container = account.getContainerById(refContainerIds.get(i));\n accountBuilder.removeContainer(container);\n ContainerBuilder containerBuilder = new ContainerBuilder(container);\n short updatedContainerId = ((short) ((-1) * (container.getId())));\n String updatedContainerName = (container.getName()) + \"-updated\";\n Container.Container.ContainerStatus updatedContainerStatus = Container.ContainerStatus.INACTIVE;\n String updatedContainerDescription = (container.getDescription()) + \"--updated\";\n boolean updatedEncrypted = !(container.isEncrypted());\n boolean updatedPreviouslyEncrypted = updatedEncrypted || (container.wasPreviouslyEncrypted());\n boolean updatedCacheable = !(container.isCacheable());\n boolean updatedMediaScanDisabled = !(container.isMediaScanDisabled());\n String updatedReplicationPolicy = (container.getReplicationPolicy()) + \"---updated\";\n boolean updatedTtlRequired = !(container.isTtlRequired());\n boolean updatedSignedPathRequired = !(container.isSecurePathRequired());\n Set<String> updatedContentTypeWhitelistForFilenamesOnDownloadValues = container.getContentTypeWhitelistForFilenamesOnDownload().stream().map(( contentType) -> contentType + \"--updated\").collect(Collectors.toSet());\n containerBuilder.setId(updatedContainerId).setName(updatedContainerName).setStatus(updatedContainerStatus).setDescription(updatedContainerDescription).setEncrypted(updatedEncrypted).setCacheable(updatedCacheable).setMediaScanDisabled(updatedMediaScanDisabled).setReplicationPolicy(updatedReplicationPolicy).setTtlRequired(updatedTtlRequired).setSecurePathRequired(updatedSignedPathRequired).setContentTypeWhitelistForFilenamesOnDownload(updatedContentTypeWhitelistForFilenamesOnDownloadValues);\n accountBuilder.addOrUpdateContainer(containerBuilder.build());\n // build account and assert\n Account.Account updatedAccount = accountBuilder.build();\n Container.Container updatedContainer = updatedAccount.getContainerById(updatedContainerId);\n Assert.assertEquals(\"container id is not correctly updated\", updatedContainerId, updatedContainer.getId());\n Assert.assertEquals(\"container name is not correctly updated\", updatedContainerName, updatedContainer.getName());\n Assert.assertEquals(\"container status is not correctly updated\", updatedContainerStatus, updatedContainer.getStatus());\n Assert.assertEquals(\"container description is not correctly updated\", updatedContainerDescription, updatedContainer.getDescription());\n Assert.assertEquals(\"cacheable is not correctly updated\", updatedCacheable, updatedContainer.isCacheable());\n switch (Container.Container.getCurrentJsonVersion()) {\n case JSON_VERSION_1 :\n Assert.assertEquals(\"Wrong encryption setting\", ENCRYPTED_DEFAULT_VALUE, updatedContainer.isEncrypted());\n Assert.assertEquals(\"Wrong previous encryption setting\", PREVIOUSLY_ENCRYPTED_DEFAULT_VALUE, updatedContainer.wasPreviouslyEncrypted());\n Assert.assertEquals(\"Wrong media scan disabled setting\", MEDIA_SCAN_DISABLED_DEFAULT_VALUE, updatedContainer.isMediaScanDisabled());\n Assert.assertNull(\"Wrong replication policy\", updatedContainer.getReplicationPolicy());\n Assert.assertEquals(\"Wrong ttl required setting\", TTL_REQUIRED_DEFAULT_VALUE, updatedContainer.isTtlRequired());\n Assert.assertEquals(\"Wrong secure required setting\", SECURE_PATH_REQUIRED_DEFAULT_VALUE, updatedContainer.isSecurePathRequired());\n Assert.assertEquals(\"Wrong content type whitelist for filenames on download value\", CONTENT_TYPE_WHITELIST_FOR_FILENAMES_ON_DOWNLOAD_DEFAULT_VALUE, updatedContainer.getContentTypeWhitelistForFilenamesOnDownload());\n break;\n case JSON_VERSION_2 :\n Assert.assertEquals(\"Wrong encryption setting\", updatedEncrypted, updatedContainer.isEncrypted());\n Assert.assertEquals(\"Wrong previous encryption setting\", updatedPreviouslyEncrypted, updatedContainer.wasPreviouslyEncrypted());\n Assert.assertEquals(\"Wrong media scan disabled setting\", updatedMediaScanDisabled, updatedContainer.isMediaScanDisabled());\n Assert.assertEquals(\"Wrong replication policy\", updatedReplicationPolicy, updatedContainer.getReplicationPolicy());\n Assert.assertEquals(\"Wrong ttl required setting\", updatedTtlRequired, updatedContainer.isTtlRequired());\n Assert.assertEquals(\"Wrong secure path required setting\", updatedSignedPathRequired, updatedContainer.isSecurePathRequired());\n Assert.assertEquals(\"Wrong content type whitelist for filenames on download value\", updatedContentTypeWhitelistForFilenamesOnDownloadValues, updatedContainer.getContentTypeWhitelistForFilenamesOnDownload());\n break;\n default :\n throw new IllegalStateException((\"Unsupported version: \" + (Container.Container.getCurrentJsonVersion())));\n }\n }\n }",
"private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}",
"public static void updateZkWithJobCount(ZooKeeper zk, final Map<String, Integer> changeCountMap, boolean isAdd) {\n StringBuilder changeZNodePaths = new StringBuilder();\n try {\n if (zk == null || !zk.getState().isConnected()) {\n try {\n final CountDownLatch countDownLatch = new CountDownLatch(1);\n zk = new ZooKeeper(AiravataZKUtils.getZKhostPort(), 6000, new Watcher() {\n @Override\n public void process(WatchedEvent event) {\n countDownLatch.countDown();\n }\n });\n countDownLatch.await();\n } catch (ApplicationSettingsException e) {\n logger.error(\"Error while reading zookeeper hostport string\");\n } catch (IOException e) {\n logger.error(\"Error while reconnect attempt to zookeeper where zookeeper connection loss state\");\n }\n }\n\n for (String path : changeCountMap.keySet()) {\n if (isAdd) {\n CommonUtils.checkAndCreateZNode(zk, path);\n }\n byte[] byteData = zk.getData(path, null, null);\n String nodeData;\n if (byteData == null) {\n if (isAdd) {\n zk.setData(path, String.valueOf(changeCountMap.get(path)).getBytes(), -1);\n } else {\n // This is not possible, but we handle in case there any data zookeeper communication failure\n logger.warn(\"Couldn't reduce job count in \" + path + \" as it returns null data. Hence reset the job count to 0\");\n zk.setData(path, \"0\".getBytes(), -1);\n }\n } else {\n nodeData = new String(byteData);\n if (isAdd) {\n zk.setData(path, String.valueOf(changeCountMap.get(path) + Integer.parseInt(nodeData)).getBytes(), -1);\n } else {\n int previousCount = Integer.parseInt(nodeData);\n int removeCount = changeCountMap.get(path);\n if (previousCount >= removeCount) {\n zk.setData(path, String.valueOf(previousCount - removeCount).getBytes(), -1);\n } else {\n // This is not possible, do we need to reset the job count to 0 ?\n logger.error(\"Requested remove job count is \" + removeCount +\n \" which is higher than the existing job count \" + previousCount\n + \" in \" + path + \" path.\");\n }\n }\n }\n changeZNodePaths.append(path).append(\":\");\n }\n\n // update stat node to trigger orchestrator watchers\n if (changeCountMap.size() > 0) {\n changeZNodePaths.deleteCharAt(changeZNodePaths.length() - 1);\n zk.setData(\"/\" + Constants.STAT, changeZNodePaths.toString().getBytes(), -1);\n }\n } catch (KeeperException e) {\n logger.error(\"Error while writing job count to zookeeper\", e);\n } catch (InterruptedException e) {\n logger.error(\"Error while writing job count to zookeeper\", e);\n }\n\n }",
"long getUpdateCount();",
"private void updateGeoRepStatus(GlusterVolumeEntity volume, GlusterGeoRepSession session) {\n\n List<HashSet<GeoRepSessionStatus>> list = new ArrayList<>();\n // grouped node status\n int replicaCount = volume.getReplicaCount() == 0 ? 1 : volume.getReplicaCount();\n for (int i = 0; i < volume.getBricks().size(); i = i + replicaCount) {\n HashSet<GeoRepSessionStatus> subVolumeStatusSet = new HashSet<>();\n int j = 0;\n while (j < replicaCount) {\n Guid brickId = volume.getBricks().get(i + j).getId();\n subVolumeStatusSet.add(getStatusForBrickFromSession(session, brickId));\n j++;\n }\n list.add(subVolumeStatusSet);\n }\n\n session.setStatus(GeoRepSessionStatus.ACTIVE);\n // iterate through grouped status to set consolidated status\n for (HashSet<GeoRepSessionStatus> subVolumeStatusValues : list) {\n if (subVolumeStatusValues.contains(GeoRepSessionStatus.ACTIVE)) {\n // healthy\n continue;\n } else if (subVolumeStatusValues.contains(GeoRepSessionStatus.FAULTY)) {\n session.setStatus(GeoRepSessionStatus.FAULTY);\n // if any one of the sub-volume is faulty, the overall session status if faulty\n return;\n }\n // override status in case of these values\n if (ArrayUtils.contains(overridableStatuses, session.getStatus())) {\n if (subVolumeStatusValues.size() == 1) {\n session.setStatus((GeoRepSessionStatus) subVolumeStatusValues.toArray()[0]);\n } else {\n // if status values in sub-volume are not the same, what do we do?\n // this should not happen, so we'll log it for now\n log.info(\"Multiple status values found in volume '{}'\", session.getMasterVolumeName());\n }\n }\n }\n\n }",
"public abstract void onContainerStatusReceived(ContainerId containerId,\n ContainerStatus containerStatus);",
"private static void updateHealthCheckStatus(final HealthCheckVO healthCheckVO, final int currentFailedCount) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\t\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n\t\tif ((healthCheckVO.getCurrentStatus() == null && status == Status.UP) || status == healthCheckVO.getCurrentStatus()\n\t\t\t\t|| (status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) ) {\n\t\t\tString queryString = HQLConstants.UPDATE_HEALTH_CHECK_NO_CHANGE_WITH_STATUS;\n\t\t\tif (healthCheckVO.getCurrentStatus() == null\n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) {\n\t\t\t\tqueryString = HQLConstants.UPDATE_HEALTH_CHECK_NO_CHANGE;\n\t\t\t}\n\t\t\tStatusEntity sts = new StatusEntity();\n\t\t\tQuery query = session.createQuery(queryString)\n\t\t\t\t\t.setTimestamp(\"updateTime\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setInteger(\"failedCount\", (currentFailedCount >= SurveillerConstants.DB_MAX_FAILED_COUNT) ? SurveillerConstants.DB_MAX_FAILED_COUNT : currentFailedCount)\n\t\t\t\t\t.setInteger(\"healthCheckId\", healthCheckVO.getHealthCheckId().intValue());\n\t\t\tif (healthCheckVO.getCurrentStatus() != null \n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()){\n\t\t\t\t/*NOT - First time status check. Failed but did not cross max-retry count */\n\t\t\t\tsts.setStatusId(healthCheckVO.getCurrentStatus().getStatusId());\n\t\t\t\tquery.setEntity(\"status\", sts);\n\t\t\t} else if (!(healthCheckVO.getCurrentStatus() == null\n\t\t\t\t\t&& status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue())) {\n\t\t\t\t/* First time status check. Status changed and max-retry count is crossed. No need to update lastStatusChange */\n\t\t\t\tsts.setStatusId(status.getStatusId());\n\t\t\t\tquery.setEntity(\"status\", sts);\n\t\t\t}\n\t\t\tquery.executeUpdate();\n\t\t} else {\n\t\t\tQuery query = session.createQuery(HQLConstants.UPDATE_HEALTH_CHECK_CHANGE)\n\t\t\t\t\t.setTimestamp(\"updateTime\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setTimestamp(\"lastStatusChange\", new java.sql.Timestamp( Calendar.getInstance().getTimeInMillis() ))\n\t\t\t\t\t.setInteger(\"failedCount\", (currentFailedCount >= SurveillerConstants.DB_MAX_FAILED_COUNT) ? SurveillerConstants.DB_MAX_FAILED_COUNT : currentFailedCount)\n\t\t\t\t\t.setInteger(\"healthCheckId\", healthCheckVO.getHealthCheckId().intValue());\n\t\t\tStatusEntity sts = new StatusEntity();\n\t\t\tsts.setStatusId(status.getStatusId());\n\t\t\tquery.setEntity(\"status\", sts);\n\t\t\tquery.executeUpdate();\n\t\t}\n\t\ttxn.commit();\n\t}",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/clusterversions/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<ClusterVersion> replaceClusterVersionStatus(\n @Path(\"name\") String name, \n @Body ClusterVersion body, \n @QueryMap ReplaceClusterVersionStatus queryParameters);",
"Update withReplicaCount(int count);",
"public void onCommitLastReInitialization(ContainerId containerId) {}",
"private void incrConnectionCount() {\n connectionCount.inc();\n }",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"private static void updateStatus(final int increment) {\n if (splash != null) {\n splash.advance();\n }\n }",
"private int rebuild() {\n String rebuildPath = \"/graphs/hugegraph/jobs/rebuild/indexlabels\";\n String personByCity = \"personByCity\";\n Map<String, Object> params = ImmutableMap.of();\n Response r = client().put(rebuildPath, personByCity, \"\", params);\n String content = assertResponseStatus(202, r);\n return assertJsonContains(content, \"task_id\");\n }",
"public static Map<String, Integer> getK8sObjPodsContDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_K8S_OBJECT_PODS);\n\t\tnumApisQuery.setParameter(\"environmentId\", envId);\n\t\tnumApisQuery.setParameter(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> objPodsList = numApisQuery.list();\n\t\tMap<String, Integer> mapObjPods = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : objPodsList) {\n\t\t\tmapObjPods.put((String)tRow[0], ((Integer)tRow[1]));\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapObjPods;\n\t}",
"public int countByStatus(int status);",
"public abstract void commitLastReInitializationAsync(ContainerId containerId);",
"public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}",
"public static void CountBagBuilt()\r\n\t{\r\n\r\n\t\tBrowser.instance.findElement(editButton).click();\r\n\t\tWebDriverWait wait = new WebDriverWait(Browser.instance,20);\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(saveButton));\r\n\t\t\r\n\t\t List<WebElement> column3 = Browser.instance.findElements(BagIdStatusList);\r\n\t\t // System.out.println(\"NUMBER OF ROWS IN THIS TABLE = \"+ column3 .size());\r\n\t\t int row_num=0;\r\n\t\t \r\n\t\t for (WebElement tdElement : column3 ) \r\n\t\t {\r\n\t\t\t\r\n\t\t\t if(tdElement.getText().equalsIgnoreCase(\"Built\"))\r\n\t\t\t {\r\n\t\t row_num++;\r\n\t\t }\r\n\t\t }\r\n\t\r\n\t\t System.out.println(\"No of bags Built in the bag List that contains \"+column3.size()+\" Bagid's are \"+row_num);\r\n\t\t Browser.instance.findElement(saveButton).click();\r\n\t\t wait.until(ExpectedConditions.elementToBeClickable(exitButton));\r\n\t\t\t\r\n\t\r\n\t}",
"public int getUpdateCount();",
"public ContainerStatus getContainerStatus(Pod pod, String containerName) {\n final List<ContainerStatus> containerStatuses = pod.getStatus().getContainerStatuses();\n\n return containerStatuses.stream()\n .filter(container -> containerName.equals(container.getName()))\n .findAny()\n .orElse(null);\n }",
"long countWorkflows();",
"public void updateCommitRecordState() {\n\n List<String> lsNames = new ArrayList<>();\n lsNames = projectDb.listAllProjectNames();\n\n for (String name : lsNames) {\n\n Map<String, Integer> map = commitRecordDb.getCommitRecordStateCounts(name);\n\n int bs = 0;\n int ini = 0;\n int utf = 0;\n int csf = 0;\n int cpf = 0;\n\n if (map.containsKey(StatusEnum.BUILD_SUCCESS.getTypeName())) {\n bs = map.get(StatusEnum.BUILD_SUCCESS.getTypeName());\n }\n\n if (map.containsKey(StatusEnum.INITIALIZATION.getTypeName())) {\n ini = map.get(StatusEnum.INITIALIZATION.getTypeName());\n }\n\n if (map.containsKey(StatusEnum.UNIT_TEST_FAILURE.getTypeName())) {\n utf = map.get(StatusEnum.UNIT_TEST_FAILURE.getTypeName());\n }\n\n if (map.containsKey(StatusEnum.CHECKSTYLE_FAILURE.getTypeName())) {\n csf = map.get(StatusEnum.CHECKSTYLE_FAILURE.getTypeName());\n }\n\n if (map.containsKey(StatusEnum.COMPILE_FAILURE.getTypeName())) {\n cpf = map.get(StatusEnum.COMPILE_FAILURE.getTypeName());\n }\n\n int ccs = 0;\n ccs = bs + utf + csf + cpf;\n\n boolean check;\n check = crsdb.checkCommitRecordStatehw(name);\n\n if (check) {\n crsdb.updateCommitRecordState(name, bs, csf, cpf, utf, ini, ccs);\n\n } else {\n crsdb.addCommitRecordState(name, bs, csf, cpf, utf, ini, ccs);\n }\n\n }\n\n }",
"java.util.List<java.lang.Long> getUpdateCountsList();",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/consoles/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Console> replaceConsoleStatus(\n @Path(\"name\") String name, \n @Body Console body, \n @QueryMap ReplaceConsoleStatus queryParameters);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> replaceImageStatus(\n @Path(\"name\") String name, \n @Body Image body, \n @QueryMap ReplaceImageStatus queryParameters);",
"public int getNodeStatusListCount() {\n if (nodeStatusListBuilder_ == null) {\n return nodeStatusList_.size();\n } else {\n return nodeStatusListBuilder_.getCount();\n }\n }",
"void onStatusUpdate(int status);",
"public void onContainerReInitialize(ContainerId containerId) {}",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/clusterversions/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<ClusterVersion> patchClusterVersionStatus(\n @Path(\"name\") String name, \n @Body ClusterVersion body, \n @QueryMap PatchClusterVersionStatus queryParameters);",
"public static Map<String, Integer> getCurrentContainerDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ContainerStatsEntity.class, \"contSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.statsDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ContainerStatsEntity> contEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ContainerStatsEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapApiSts.put(fullAppName, contStsEntity.getTotalContainer());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapApiSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainer());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public int countByG_UT_ST(long groupId, String urlTitle, int[] statuses);",
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"@Test\n public void testUpdateContainerParentAccountId() throws JSONException {\n ContainerBuilder containerBuilder = new ContainerBuilder(Container.Container.fromJson(containerJsonList.get(0), refAccountId));\n short newParentAccountId = ((short) ((refAccountId) + 1));\n containerBuilder.setParentAccountId(newParentAccountId);\n Assert.assertEquals(\"Container's parent account id is incorrectly updated.\", newParentAccountId, containerBuilder.build().getParentAccountId());\n }",
"com.google.protobuf.ByteString getContainerVersionBytes();",
"private static ComponentState updateStateForLongRunningComponents(\n Component component) {\n if (component.componentMetrics.containersReady.value() == component\n .getComponentSpec().getNumberOfContainers() &&\n !component.doesNeedUpgrade()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState.STABLE);\n return STABLE;\n } else if (component.doesNeedUpgrade()) {\n component.setComponentState(org.apache.hadoop.yarn.service.api.records.\n ComponentState.NEEDS_UPGRADE);\n return component.getState();\n } else if (component.componentMetrics.containersReady.value() != component\n .getComponentSpec().getNumberOfContainers()) {\n component.setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState.FLEXING);\n return FLEXING;\n }\n return component.getState();\n }",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> patchImageStatus(\n @Path(\"name\") String name, \n @Body Image body, \n @QueryMap PatchImageStatus queryParameters);",
"public void incrementNumModifyResponses(long j) {\n this.numModifyResponses.incrementAndGet();\n if (j > 0) {\n this.totalModifyResponseTime.addAndGet(j);\n }\n }",
"private static void statusCommand() {\n String lineFormat = \"%-8s | %-15s | %s\\n\";\n\n List<Job> neededJobs = fetchNeededJobs();\n\n // table header\n if (neededJobs.size() < 2) {\n System.out.printf(lineFormat, \"STATE\", \"START TIME\", \"JOB DIRECTORY\");\n for (int i = 0; i < 78; i++) {\n System.out.print(((9 == i || 27 == i) ? \"+\" : \"-\"));\n }\n System.out.println();\n }\n\n // table rows\n ObjectCounter<JobState> counter = new ObjectCounter<JobState>();\n for (Job job : neededJobs) {\n Date startDate = job.getStartDate();\n JobState state = job.getState();\n counter.add(state);\n String startDateStr = (null == startDate) ? \"N/A\" : new SimpleDateFormat(\"yyyyMMdd HHmmss\").format(startDate);\n System.out.printf(lineFormat, state.toString(), startDateStr, job.getDir());\n }\n\n // table footer\n System.out.println();\n String sumFormat = \"%6d %s\\n\";\n System.out.printf(sumFormat, heritrix.getJobs().size(), \"TOTAL JOBS\");\n for (JobState state : JobState.values()) {\n if (counter.getMap().keySet().contains(state)) {\n System.out.printf(sumFormat, counter.get(state), state.toString());\n }\n }\n }",
"@Test\n public void validateCounters() throws IOException {\n final FijiTableLayout layout = FijiTableLayouts.getTableLayout(FijiTableLayouts.COUNTER_TEST);\n // No exceptions should be thrown when the layout is updated.\n FijiTableLayout.createUpdatedLayout(layout.getDesc(), layout);\n }",
"void incrementAddedCount() {\n addedCount.incrementAndGet();\n }",
"@Override\n public void onContainersCompleted(final List<ContainerStatus> list) {\n throw new RuntimeException(\"This method should never be invoked\");\n }",
"public abstract int getPreviousTerminationCount(SniperCrawler.InstanceGroup group, Date after);",
"public abstract void onGetContainerStatusError(\n ContainerId containerId, Throwable t);",
"public void onRollbackLastReInitialization(ContainerId containerId) {}",
"@Override\n public void onStatusChange(int status) {\n }",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body, \n @QueryMap ReplaceAPIServerStatus queryParameters);",
"private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void resetContainerIdCounter(long containerIdStart) {\n this.containerIdCounter.set(containerIdStart);\n }",
"public OpenIntIntHashMap getClusterSizes() {\n\n if (sizeMap != null) return sizeMap;\n\n sizeMap = new OpenIntIntHashMap();\n\n ValueIterator imageIterator = labelledVolume.valueIterator();\n //Map<Integer, Integer> sizes = new HashMap<Integer, Integer>();\n\n do {\n int label = (int) imageIterator.next();\n if (label > 0) {\n if (sizeMap.containsKey(label)) {\n int crt = sizeMap.get(label) + 1;\n sizeMap.put(label, crt);\n } else {\n sizeMap.put(label, 1);\n }\n }\n\n\n } while (imageIterator.hasNext());\n\n return sizeMap;\n }",
"public void increaseCounter(UltraSearchSessions.Session session,\n HugeType type, long increment) {\n\n\n JSONObject result = session.get(TABLE, type.name());\n if(null == result){\n putCounter(session, type, increment);\n return;\n }\n\n\n JSONObject obj = new JSONObject();\n\n JSONObject fields = new JSONObject();\n JSONObject id = new JSONObject();\n id.put(\"increment\", increment);\n fields.put(\"ID\", id);\n\n obj.put(\"fields\", fields);\n session.putDoc(TABLE, type.name(), obj.toString());\n\n\n }",
"@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }",
"private static int getPreiousNumApis(final int compId, final Date date, final int envId) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -1);\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria ctrStsCrit = session.createCriteria(ApiStatusEntity.class, \"as\");\n\t\tctrStsCrit.add(Restrictions.eq(\"as.component.componentId\",compId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.environment.environmentId\",envId));\n\t\tctrStsCrit.add(Restrictions.eq(\"as.statusDate\", new java.sql.Date(cal.getTimeInMillis()) ));\n\t\tctrStsCrit.setMaxResults(1);\n\t\tApiStatusEntity apiSts =(ApiStatusEntity) ctrStsCrit.uniqueResult();\n\t\tint totalApi = 0;\n\t\tif(apiSts != null){\n\t\t\ttotalApi = apiSts.getTotalApi();\n\t\t}\n\t\ttxn.commit();\n\t\treturn totalApi;\n\t}",
"private void updateSessionCounter(HttpSessionEvent httpSessionEvent){\n httpSessionEvent.getSession().getServletContext()\r\n .setAttribute(\"activeSession\", counter.get());\r\n LOG.info(\"Total active session are {} \",counter.get());\r\n }",
"public void updateStatus() {\n var taskStatuses = new ArrayList<OptimizationTaskStatus>();\n\n synchronized (tasks) {\n for (var task : tasks.values()) {\n taskStatuses.add(task.getStatus());\n }\n }\n\n wrapper.setStatus(JsonSerializer.toJson(new OptimizationToolStatus(taskStatuses)));\n }",
"public int container_size(RTContainer a){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0)\n\t\t\treturn a.getDecompGoals().size();\n\t\telse\n\t\t\treturn a.getDecompPlans().size();\n\t}",
"private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }",
"public void incrMetaCacheNumClearServer() {\n metaCacheNumClearServer.inc();\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"public int getUpdateCountsCount() {\n return updateCounts_.size();\n }",
"private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/clusterversions/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<ClusterVersion> replaceClusterVersionStatus(\n @Path(\"name\") String name, \n @Body ClusterVersion body);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/builds/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Build> replaceBuildStatus(\n @Path(\"name\") String name, \n @Body Build body, \n @QueryMap ReplaceBuildStatus queryParameters);",
"@java.lang.Override\n public int getNodeStatusListCount() {\n return nodeStatusList_.size();\n }",
"int getVersionsCount();",
"private void updateCounts() {\n // Update connected components count\n ((Labeled) ((HBox) statsBox.getChildren().get(1)).getChildren().get(1))\n .setText(String.valueOf(socialNetwork.getConnectedComponents().size()));\n // Update total users count\n ((Labeled) ((HBox) statsBox.getChildren().get(2)).getChildren().get(1))\n .setText(String.valueOf(socialNetwork.getTotalUsers()));\n // Update total friends count\n ((Labeled) ((HBox) statsBox.getChildren().get(3)).getChildren().get(1))\n .setText(String.valueOf(socialNetwork.getTotalFriends()));\n // Update active user's name and friend count\n if (activeUser == null) {\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(0))\n .setText(\"User's Total Friends: \");\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(1)).setText(\"\");\n } else {\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(0))\n .setText(activeUser.getName() + \"'s Total Friends: \");\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(1))\n .setText(String.valueOf(activeUser.getFriends().size()));\n }\n }",
"long countByExample(StatusRepliesExample example);"
] | [
"0.64165837",
"0.5324475",
"0.5298842",
"0.5167234",
"0.50318986",
"0.5002744",
"0.4994264",
"0.49837756",
"0.49599984",
"0.494199",
"0.49164638",
"0.49002537",
"0.48949447",
"0.48928797",
"0.4885929",
"0.48853755",
"0.48342666",
"0.48010623",
"0.47692198",
"0.4754548",
"0.4754303",
"0.4748237",
"0.4722034",
"0.4703406",
"0.4691715",
"0.46858236",
"0.46837893",
"0.46761078",
"0.4672018",
"0.46673697",
"0.46656126",
"0.4636371",
"0.46294793",
"0.46192446",
"0.4618724",
"0.46149594",
"0.46078944",
"0.46055502",
"0.45973477",
"0.4557681",
"0.4553678",
"0.45485795",
"0.4540348",
"0.4511563",
"0.4511563",
"0.44945607",
"0.44944805",
"0.44905052",
"0.44787848",
"0.4478326",
"0.44766948",
"0.44457117",
"0.44292033",
"0.44185573",
"0.4415949",
"0.44044983",
"0.43961108",
"0.43872195",
"0.4382745",
"0.43798763",
"0.43737352",
"0.43714142",
"0.43649688",
"0.4354907",
"0.4351378",
"0.43433598",
"0.433732",
"0.4334932",
"0.43315881",
"0.43309152",
"0.43294227",
"0.4328542",
"0.43255356",
"0.43209967",
"0.43147904",
"0.43046746",
"0.4300368",
"0.4297302",
"0.42921978",
"0.428214",
"0.42814323",
"0.42798117",
"0.42757672",
"0.4274586",
"0.42701367",
"0.42683217",
"0.42675987",
"0.4266009",
"0.42651933",
"0.426077",
"0.42560798",
"0.4252974",
"0.42526513",
"0.4252361",
"0.42506847",
"0.42489943",
"0.42457765",
"0.4238763",
"0.42357802",
"0.42276356"
] | 0.47540814 | 21 |
Update the Pods&Containers of the object other than deployment. | public static void updateObjPodss(int environmentId, String objName, ArrayList<Integer> podContList){
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
String updateApiStsQry = null;
updateApiStsQry = HQLConstants.UPDATE_K8S_OBJECT_PODS;
Query query = session.createQuery(updateApiStsQry);
query.setInteger("pods", podContList.get(0));
query.setInteger("containers", podContList.get(1));
query.setString("objName", objName);
query.setLong("environmentId", environmentId);
query.setDate("stsDate", todayDate);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void updatePodsAndContainers(final int envId, String compName, int numOfPods, String parentCompName, int numOfCont){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_K8S_PODS_CONT_DETAILS);\n\t\tquery.setInteger(\"totalPods\", numOfPods);\n\t\tquery.setInteger(\"totalContainers\", numOfCont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public void updateByObject()\r\n\t{\n\t}",
"protected void reconcile(PodSet podSet) {\n List<String> pods = podCountByLabel(APP_LABEL, podSet.getMetadata().getName());\n logger.info(\"reconcile() : Found {} number of Pods owned by PodSet {}\", pods.size(), podSet.getMetadata().getName());\n if (pods.isEmpty()) {\n createPods(podSet.getSpec().getReplicas(), podSet);\n return;\n }\n int existingPods = pods.size();\n\n // Compare it with desired state i.e spec.replicas\n // if less then spin up pods\n if (existingPods < podSet.getSpec().getReplicas()) {\n createPods(podSet.getSpec().getReplicas() - existingPods, podSet);\n }\n\n // If more pods then delete the pods\n int diff = existingPods - podSet.getSpec().getReplicas();\n for (; diff > 0; diff--) {\n String podName = pods.remove(0);\n kubernetesClient.pods().inNamespace(podSet.getMetadata().getNamespace()).withName(podName).delete();\n }\n\n // Update PodSet status\n updateAvailableReplicasInPodSetStatus(podSet, podSet.getSpec().getReplicas());\n }",
"@Override\n\tpublic void applyObject(AppDeploymentRequest request, String appId) {\n\t\tif (client.builds().withLabels(labels).list().getItems().stream()\n\t\t\t\t.noneMatch(build -> {\n\t\t\t\t\tString phase = build.getStatus().getPhase();\n\t\t\t\t\treturn phase.equals(\"New\") || phase.equals(\"Pending\")\n\t\t\t\t\t\t\t|| phase.equals(\"Running\") || phase.equals(\"Failed\");\n\t\t\t\t})) {\n\t\t\t//@formatter:off\n client.deploymentConfigs()\n .withName(appId)\n .edit()\n .editMetadata()\n .addToAnnotations(SPRING_DEPLOYMENT_TIMESTAMP,\n\t\t\t\t\t\t\t\tString.valueOf(System.currentTimeMillis()))\n .endMetadata()\n .done();\n //@formatter:on\n\t\t}\n\t}",
"@PutMapping(\"/containers\")\n\tpublic Container updateContainer(@RequestBody Container container) {\n\t\tcontainerDAO.save(container);\n\t\t\n\t\treturn container;\n\t\t//despite postman returning the updated data, i could not get mysql to reflect the changes\n\t\t//until i added @Transactional to the \"save\" method in the Service layer. \n\t\t//i did not have any issues adding a container prior to adding @transactional, however\n\t}",
"private void update() {\n\n\t\tthis.projects.clear();\n\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p instanceof Infrastructure) {\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p instanceof Social) {\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\t}",
"public void dependencyUpdateDef(Set updatingObjects);",
"public App update(App obj) {\n JsonNode n = getClient().put(\n String.format(Routes.APP_UPDATE, obj.getId()),\n toJsonNode(obj)\n );\n obj.merge(getMapper().convertValue(n, App.class));\n return obj;\n }",
"public void update(InterfaceBean object) {\n\t\t\n\t}",
"void update(T transientObject);",
"private void updateObjects(final Set<Object> objectsToUpdate, \n final Set<Object> objectsToRemove)\n throws CvqException {\n \n for (Object object : objectsToUpdate) {\n logger.debug(\"updateObjects() Updating \" + object);\n \n // only for children because new adults are written when calling\n // modify method (because we need their login and pwd)\n // FIXME REFACTORING : validate this \n if (object instanceof Child) {\n Child child = (Child) object;\n individualService.assignLogin(child);\n }\n }\n \n for (Object object : objectsToRemove) {\n logger.debug(\"updateObjects() Removing \" + object);\n genericDAO.delete(object);\n }\n }",
"@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}",
"public void dependencyUpdateVal(Set updatingObjects);",
"@Override\n\tpublic PI update(PIDTO updated) throws NotFoundException {\n\t\treturn null;\n\t}",
"public void updateDependencyDataInSystem() {\n dependenciesMap.values()\n .forEach(set -> {\n set.forEach(item -> {\n if (items.containsKey(item.getName())) {\n Item actualItem = items.get(item.getName());\n item.setExplicitlyInstalled(actualItem.isExplicitlyInstalled());\n item.setImplicitlyInstalled(actualItem.isImplicitlyInstalled());\n }\n });\n });\n\n dependentsMap.values()\n .forEach(set -> {\n set.forEach(item -> {\n if (items.containsKey(item.getName())) {\n Item actualItem = items.get(item.getName());\n item.setExplicitlyInstalled(actualItem.isExplicitlyInstalled());\n item.setImplicitlyInstalled(actualItem.isImplicitlyInstalled());\n }\n });\n });\n }",
"@PutMapping(\"/update\")\n @ResponseStatus(HttpStatus.CREATED)//status 201\n public AsociadosProyecto update(@RequestBody AsociadosProyecto asociadosProyecto){\n return asociadosProyectoService.update(asociadosProyecto);\n }",
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"@Override\r\n\tpublic ConventionStage update(ConventionStage obj) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"void update(T objectToUpdate);",
"public void update(BoardItemVersion object) {\n\n\t}",
"public abstract boolean update(T transientObject);",
"public void update(Object obj) throws HibException;",
"@Override\n\tpublic int update(Object object) {\n\t\treturn 0;\n\t}",
"public void update()\n {\n for (Container container : containers)\n container.update(false);\n\n Gui.update(BanksGUI.class);\n Gui.update(BankGUI.class);\n Gui.update(ItemsGroupsGUI.class);\n }",
"private void updateObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n\n try {\n crudService.update((SimpleORMInterface) object);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n ConnectionPoll.releaseConnection(connection);\n\n try {\n connection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"@Transactional\n @PutMapping(value = \"/updatepigininvoicepig/\")\n public ResponseEntity<Object> updatePigInInvoicePig(@RequestBody PigsInvoicePigDetailDTORequest pigsInvoicePigDetailDTORequest){\n\n PigsInvoicePigDetailDTOResponse temp = invoicePigDetailService.updatePigInInvoicePig(pigsInvoicePigDetailDTORequest);\n if(temp == null){\n return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();\n }\n return ResponseEntity.ok(temp);\n }",
"public static String updatePodium() {\n\t\t\n\t\t// Update the score of all the posts affected by changes applied while updating the social network\n\t\tfor (Post post: MODIFIED_POSTS) {\n\t\t\tupdatePostScore(post);\n\t\t}\n\t\tMODIFIED_POSTS.clear();\n\t\treturn computePodiumResult();\n\t}",
"@Override\n\tpublic void update(Unidade obj) {\n\n\t}",
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"@Override\n\tpublic boolean update(Dynamic object) {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic Ngo update(Ngo obj) {\n\t\treturn null;\r\n\t}",
"public abstract void update(Object obj) ;",
"@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> replaceImageStatus(\n @Path(\"name\") String name, \n @Body Image body);",
"public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}",
"public static void updateContainerDetails(final int envId, String compName, int numOfcont, String parentCompName, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tString updateApiStsQry = null;\n\t\tif(platform.equalsIgnoreCase(\"Mesos\")){\n\t\t\tupdateApiStsQry = HQLConstants.UPDATE_CONTAINER_DETAILS;\n\t\t}\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"numOfContainers\", numOfcont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public static void main(String[] args) throws Exception {\n V1Pod pod =\n new V1Pod()\n .metadata(new V1ObjectMeta().name(\"foo\").namespace(\"default\"))\n .spec(\n new V1PodSpec()\n .containers(Arrays.asList(new V1Container().name(\"c\").image(\"test\"))));\n\n ApiClient apiClient = ClientBuilder.standard().build();\n GenericKubernetesApi<V1Pod, V1PodList> podClient =\n new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, \"\", \"v1\", \"pods\", apiClient);\n\n V1Pod latestPod = podClient.create(pod).throwsApiException().getObject();\n System.out.println(\"Created!\");\n\n V1Pod patchedPod =\n podClient\n .patch(\n \"default\",\n \"foo\",\n V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH,\n new V1Patch(\"{\\\"metadata\\\":{\\\"finalizers\\\":[\\\"example.io/foo\\\"]}}\"))\n .throwsApiException()\n .getObject();\n System.out.println(\"Patched!\");\n\n V1Pod deletedPod = podClient.delete(\"default\", \"foo\").throwsApiException().getObject();\n if (deletedPod != null) {\n System.out.println(\n \"Received after-deletion status of the requested object, will be deleting in background!\");\n }\n System.out.println(\"Deleted!\");\n }",
"<T> void update(T persistentObject);",
"@Test\n public void testUpdateContainerInAccount() throws JSONException {\n Account.Account account = Account.Account.fromJson(refAccountJson);\n AccountBuilder accountBuilder = new AccountBuilder(account);\n // updating with different containers\n for (int i = 0; i < (AccountContainerTest.CONTAINER_COUNT); i++) {\n Container.Container container = account.getContainerById(refContainerIds.get(i));\n accountBuilder.removeContainer(container);\n ContainerBuilder containerBuilder = new ContainerBuilder(container);\n short updatedContainerId = ((short) ((-1) * (container.getId())));\n String updatedContainerName = (container.getName()) + \"-updated\";\n Container.Container.ContainerStatus updatedContainerStatus = Container.ContainerStatus.INACTIVE;\n String updatedContainerDescription = (container.getDescription()) + \"--updated\";\n boolean updatedEncrypted = !(container.isEncrypted());\n boolean updatedPreviouslyEncrypted = updatedEncrypted || (container.wasPreviouslyEncrypted());\n boolean updatedCacheable = !(container.isCacheable());\n boolean updatedMediaScanDisabled = !(container.isMediaScanDisabled());\n String updatedReplicationPolicy = (container.getReplicationPolicy()) + \"---updated\";\n boolean updatedTtlRequired = !(container.isTtlRequired());\n boolean updatedSignedPathRequired = !(container.isSecurePathRequired());\n Set<String> updatedContentTypeWhitelistForFilenamesOnDownloadValues = container.getContentTypeWhitelistForFilenamesOnDownload().stream().map(( contentType) -> contentType + \"--updated\").collect(Collectors.toSet());\n containerBuilder.setId(updatedContainerId).setName(updatedContainerName).setStatus(updatedContainerStatus).setDescription(updatedContainerDescription).setEncrypted(updatedEncrypted).setCacheable(updatedCacheable).setMediaScanDisabled(updatedMediaScanDisabled).setReplicationPolicy(updatedReplicationPolicy).setTtlRequired(updatedTtlRequired).setSecurePathRequired(updatedSignedPathRequired).setContentTypeWhitelistForFilenamesOnDownload(updatedContentTypeWhitelistForFilenamesOnDownloadValues);\n accountBuilder.addOrUpdateContainer(containerBuilder.build());\n // build account and assert\n Account.Account updatedAccount = accountBuilder.build();\n Container.Container updatedContainer = updatedAccount.getContainerById(updatedContainerId);\n Assert.assertEquals(\"container id is not correctly updated\", updatedContainerId, updatedContainer.getId());\n Assert.assertEquals(\"container name is not correctly updated\", updatedContainerName, updatedContainer.getName());\n Assert.assertEquals(\"container status is not correctly updated\", updatedContainerStatus, updatedContainer.getStatus());\n Assert.assertEquals(\"container description is not correctly updated\", updatedContainerDescription, updatedContainer.getDescription());\n Assert.assertEquals(\"cacheable is not correctly updated\", updatedCacheable, updatedContainer.isCacheable());\n switch (Container.Container.getCurrentJsonVersion()) {\n case JSON_VERSION_1 :\n Assert.assertEquals(\"Wrong encryption setting\", ENCRYPTED_DEFAULT_VALUE, updatedContainer.isEncrypted());\n Assert.assertEquals(\"Wrong previous encryption setting\", PREVIOUSLY_ENCRYPTED_DEFAULT_VALUE, updatedContainer.wasPreviouslyEncrypted());\n Assert.assertEquals(\"Wrong media scan disabled setting\", MEDIA_SCAN_DISABLED_DEFAULT_VALUE, updatedContainer.isMediaScanDisabled());\n Assert.assertNull(\"Wrong replication policy\", updatedContainer.getReplicationPolicy());\n Assert.assertEquals(\"Wrong ttl required setting\", TTL_REQUIRED_DEFAULT_VALUE, updatedContainer.isTtlRequired());\n Assert.assertEquals(\"Wrong secure required setting\", SECURE_PATH_REQUIRED_DEFAULT_VALUE, updatedContainer.isSecurePathRequired());\n Assert.assertEquals(\"Wrong content type whitelist for filenames on download value\", CONTENT_TYPE_WHITELIST_FOR_FILENAMES_ON_DOWNLOAD_DEFAULT_VALUE, updatedContainer.getContentTypeWhitelistForFilenamesOnDownload());\n break;\n case JSON_VERSION_2 :\n Assert.assertEquals(\"Wrong encryption setting\", updatedEncrypted, updatedContainer.isEncrypted());\n Assert.assertEquals(\"Wrong previous encryption setting\", updatedPreviouslyEncrypted, updatedContainer.wasPreviouslyEncrypted());\n Assert.assertEquals(\"Wrong media scan disabled setting\", updatedMediaScanDisabled, updatedContainer.isMediaScanDisabled());\n Assert.assertEquals(\"Wrong replication policy\", updatedReplicationPolicy, updatedContainer.getReplicationPolicy());\n Assert.assertEquals(\"Wrong ttl required setting\", updatedTtlRequired, updatedContainer.isTtlRequired());\n Assert.assertEquals(\"Wrong secure path required setting\", updatedSignedPathRequired, updatedContainer.isSecurePathRequired());\n Assert.assertEquals(\"Wrong content type whitelist for filenames on download value\", updatedContentTypeWhitelistForFilenamesOnDownloadValues, updatedContainer.getContentTypeWhitelistForFilenamesOnDownload());\n break;\n default :\n throw new IllegalStateException((\"Unsupported version: \" + (Container.Container.getCurrentJsonVersion())));\n }\n }\n }",
"public boolean update(Object obj) throws Exception;",
"public void updateObject(Inspectable object) {\n\n // search for it\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object) {\n inspector.updateObject();\n return;\n }\n }\n}",
"void update(ObjectType object)\n throws GuacamoleException;",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/infrastructures/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Infrastructure> patchInfrastructure(\n @Path(\"name\") String name, \n @Body Infrastructure body);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/infrastructures/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Infrastructure> replaceInfrastructure(\n @Path(\"name\") String name, \n @Body Infrastructure body);",
"@Override\n\tprotected void updateAction(HashSet<String> updateSet){\t\n\t\tif (MiddleWareConfig.getInstance().getCurClassLoaderWay() == MiddleWareConfig.ADAPT_DEP_CLASSLOADER){\n\t\t\t// *** important to reconstruct ****\n\t\t\t((AdaptDependencyManager)MiddleWareConfig.getInstance().getDepManager()).updateDeploymentNodeBySet(updateSet);\n\t\t}\n\t\telse{ // *** important for AdaptExtDepClassloader\n\t\t\t((AdaptDependencyManager)MiddleWareConfig.getInstance().getDepManager()).validDeploymentNodeBySet(updateSet);\n\t\t}\t\t\n\t}",
"public boolean update(Object[] obj) {\n\t\treturn false;\n\t}",
"public void updateObjects()\r\n {\r\n //update states\r\n for (Ball ball : balls) {\r\n \tif(ball!=null)\r\n \t{\r\n\t \tif(ball.GetVisible()) ball.MoveDown();\r\n\r\n \t}\r\n \telse ball=null;\r\n }\r\n \r\n }",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/projects/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> replaceProjectStatus(\n @Path(\"name\") String name, \n @Body Project body);",
"boolean updateWorkByObject(Work work);",
"@Override\n\tpublic void update(Review object) {\n\t\t\n\t}",
"public Client update(Client object) throws DataNotFoundException {\n\t\treturn null;\r\n\t}",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/images/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> replaceImage(\n @Path(\"name\") String name, \n @Body Image body);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> replaceProject(\n @Path(\"name\") String name, \n @Body Project body);",
"@Override\n public void update(double deltaTime) {\n if (gameState != GameState.START) {\n List<Updatable> updatables = this.getUpdatableObjects();\n for (Updatable u : updatables) {\n u.update(deltaTime);\n }\n this.getCollisionHandler().processCollisions();\n }\n }",
"interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next update stage\n */\n Update withContainerSettings(ContainerSettings containerSettings);\n }",
"@Override\n\tpublic int update(Object ob) {\n\t\treturn 0;\n\t}",
"@Override\n\t\tprotected boolean fixReferences(EObject object) {\n\t\t\tsuper.fixReferences(object);\n\t\t\tEObject container = object.eContainer();\n\t\t\t\n\t\t\tif( ZDLUtil.isZDLConcept(object, CCMNames.INTERFACE_PORT)) {\n\t\t\t\t\n\t\t\t\tEObject fixedRole = null; // Old port reference that needs to be updated\n\t\t\t\t\n\t\t\t\tfor( TreeIterator<EObject> iter = object.eResource().getAllContents(); iter.hasNext(); ) {\n\t\t\t\t\tEObject next = iter.next();\n\t\t\t\t\t\n\t\t\t\t\tif( next instanceof ConnectorEnd ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tConnectorEnd ce = (ConnectorEnd)next;\n\t\t\t\t\t\tif( fixableInterfacePort(object, ce, container)) {\n\t\t\t\t\t\t\tfixedRole = ce.getRole();\n\t\t\t\t\t\t\tce.setRole((Port)object);\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor( TreeIterator<EObject> iter = object.eResource().getAllContents(); iter.hasNext(); ) {\n\t\t\t\t\tEObject next = iter.next();\n\t\t\t\t\t\n\t\t\t\t\tif( next instanceof Node ) {\n\t\t\t\t\t\tNode node = (Node)next;\n\t\t\t\t\t\tif( node.getElement() instanceof Port ) {\n\t\t\t\t\t\t\tPort nodeElement = (Port)node.getElement();\n\t\t\t\t\t\t\tif( nodeElement == fixedRole ) {\n\t\t\t\t\t\t\t\tnode.setElement(object);\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\t\n\t\t\treturn true;\n\t\t}",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}",
"public void updateSwarm();",
"@Override\r\n public StageDto updateStage(StageDto stageDto) {\n return null;\r\n }",
"@Override\n public final void doPut() {\n try {\n checkPermissions(getRequest());\n if (id == null) {\n throw new APIMissingIdException(getRequestURL());\n }\n\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n api.runUpdate(id, new HashMap<String, String>());\n return;\n }\n\n Item.setApplyValidatorMandatoryByDefault(false);\n final IItem item = getJSonStreamAsItem();\n api.runUpdate(id, getAttributesWithDeploysAsJsonString(item));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId);",
"public void upateResources() {\r\n\t\tResourceBase resourcesBase = parent.getResources();\r\n\t\tresourcesBase.getAll().forEach((key, value) -> {\r\n\t\t\tif(resources.containsKey(key))\t//ak už je vypísaná\r\n\t\t\t\tresources.get(key).updateValue();\t//aktualizuje ju to\r\n\t\t\telse{\t//ináč\r\n\t\t\t\tint need = resourcesBase.getRequired(key);\r\n\t\t\t\tint have = resourcesBase.getOwned(key);\r\n\t\t\t\tOtherResourceViewer newViewer = new OtherResourceViewer(key,need, have, parent);\t//vytvorí nový viewer \r\n\t\t\t\tresources.put(key, newViewer);\t//pridá ho do zoznamu viewerov\r\n\t\t\t\tadd(newViewer);\t//aj do panelu\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n\tpublic Owner update(Owner owner) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void update(T obj) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void updatePet(PetVO vo) {\n\t\t\n\t}",
"@Override\n public void update() {\n conflicts.removeIf(c -> (c.getWinner() != Conflict.Side.WAR_NOT_OVER) && endWar(c));\n }",
"@PUT\n @JWTTokenNeeded\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n public Response update(EscenarioDTO entidad) {\n logger.log(Level.INFO, \"entidad:{0}\", entidad);\n \n try {\n \tConciliacion entidadPadreJPA = null;\n if (entidad.getIdConciliacion() != null) {\n entidadPadreJPA = padreDAO.find(entidad.getIdConciliacion());\n if (entidadPadreJPA == null) {\n throw new DataNotFoundException(Response.Status.NOT_FOUND.getReasonPhrase() + entidad.getIdConciliacion());\n }\n }\n //Hallar La entidad actual para actualizarla\n Escenario entidadJPA = managerDAO.find(entidad.getId());\n if (entidadJPA != null) {\n entidadJPA.setFechaActualizacion(Date.from(Instant.now()));\n entidadJPA.setNombre(entidad.getNombre() != null ? entidad.getNombre() : entidadJPA.getNombre());\n entidadJPA.setImpacto(entidad.getImpacto() != null ? entidad.getImpacto() : entidadJPA.getImpacto());\n entidadJPA.setDescripcion(entidad.getDescripcion() != null ? entidad.getDescripcion() : entidadJPA.getDescripcion());\n \n Boolean actualizarConciliacion = false;\n entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n \n Conciliacion conciliacionpadreactual = null;\n \n \n if (entidadJPA.getConciliacion() != null && !Objects.equals(entidadJPA.getConciliacion().getId(), entidad.getIdConciliacion())){\n actualizarConciliacion = true;\n conciliacionpadreactual = padreDAO.find(entidadJPA.getConciliacion().getId());\n }\n //entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n managerDAO.edit(entidadJPA);\n if (actualizarConciliacion){\n if ((entidadPadreJPA != null)) {\n entidadPadreJPA.addEscenario(entidadJPA);\n padreDAO.edit(entidadPadreJPA);\n conciliacionpadreactual.removeEscenario(entidadJPA);\n padreDAO.edit(conciliacionpadreactual);\n }\n }\n LogAuditoria logAud = new LogAuditoria(this.modulo, Constantes.Acciones.EDITAR.name(), Date.from(Instant.now()), entidad.getUsername(), entidadJPA.toString());\n logAuditoriaDAO.create(logAud);\n \n ResponseWrapper wraper = new ResponseWrapper(true,I18N.getMessage(\"escenario.update\", entidad.getNombre()) ,entidadJPA.toDTO());\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }\n \n ResponseWrapper wraper = new ResponseWrapper(false,I18N.getMessage(\"escenario.notfound\", entidad.getNombre()));\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }catch (Exception e) {\n \tif(e.getCause() != null && (e.getCause() instanceof DataAlreadyExistException || e.getCause() instanceof DataNotFoundException)) {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, e.getCause().getMessage(), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}else {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, I18N.getMessage(\"general.readerror\"), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}\n }\n }",
"public WriteResult updateObject(String id, String name) {\n\t\treturn null;\n\t}",
"public void performUpdate(ONDEXAssociable o) {\r\n\t\tif (o instanceof BerkeleyConcept) {\r\n\t\t\tBerkeleyConcept c = (BerkeleyConcept) o;\r\n\r\n\t\t\t// delete old serialisation of concept\r\n\t\t\tberkeley.deleteFromDatabase(BerkeleyConcept.class, c.getId());\r\n\r\n\t\t\t// insert new serialisation of concept\r\n\t\t\tberkeley.insertIntoDatabase(BerkeleyConcept.class, c.getId(),\r\n\t\t\t\t\tc.serialise());\r\n\t\t} else if (o instanceof BerkeleyRelation) {\r\n\t\t\tBerkeleyRelation r = (BerkeleyRelation) o;\r\n\r\n\t\t\t// delete old serialisation of relation\r\n\t\t\tberkeley.deleteFromDatabase(BerkeleyRelation.class, r.getKey());\r\n\t\t\tberkeley.deleteFromDatabase(Integer.class, r.getId());\r\n\r\n\t\t\t// insert new serialisation of relation\r\n\t\t\tbyte[] array = r.serialise();\r\n\t\t\tberkeley.insertIntoDatabase(BerkeleyRelation.class, r.getKey(),\r\n\t\t\t\t\tarray);\r\n\t\t\tberkeley.insertIntoDatabase(Integer.class, r.getId(), array);\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\r\n\tpublic void update(BbsDto dto) {\n\t\t\r\n\t}",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> patchImageStatus(\n @Path(\"name\") String name, \n @Body Image body);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServer(\n @Path(\"name\") String name, \n @Body APIServer body);",
"public void update() {\n manager.update();\n }",
"public abstract void update(@Nonnull Response response);",
"@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void updatePackage(PackageJour pj) {\n\t\tem.merge(pj);\r\n\t}",
"public abstract <T> T update(Object object, Class<T> clazz);",
"public boolean update(New object);",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/images/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> patchImage(\n @Path(\"name\") String name, \n @Body Image body);",
"@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/infrastructures/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Infrastructure> patchInfrastructure(\n @Path(\"name\") String name, \n @Body Infrastructure body, \n @QueryMap PatchInfrastructure queryParameters);",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/apiservers/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<APIServer> replaceAPIServerStatus(\n @Path(\"name\") String name, \n @Body APIServer body);",
"@HTTP(\n method = \"PATCH\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/merge-patch+json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> patchProject(\n @Path(\"name\") String name, \n @Body Project body);",
"public void updateAllVolumes() {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi != null) {\n bdi.checkResourceFieldsChanged(null,\n bdi.getParametersFromXML());\n bdi.updateAdvancedPanels();\n }\n }\n }\n }",
"@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/images/{name}/status\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Image> replaceImageStatus(\n @Path(\"name\") String name, \n @Body Image body, \n @QueryMap ReplaceImageStatus queryParameters);",
"@Override\n @PUT\n @Consumes(\"application/json\")\n public Response updateCluster(String requestBody) throws Exception {\n if (log.isTraceEnabled()) {\n log.trace(String.format(\"updateCluster(ID=%d) started. Data: %s\", cluster.getClusterId(), requestBody));\n }\n\n EntityManager em = PersistenceUtils.getInstance().getEntityManager();\n try {\n JSONObject json = new JSONObject(requestBody);\n cluster.update(json);\n\n em.getTransaction().begin();\n em.merge(cluster);\n em.getTransaction().commit();\n return Response.status(Response.Status.NO_CONTENT).build();\n }\n catch (Exception e) {\n log.error(\"Update failed: \", e);\n throw new WebApplicationException(\n Response.status(Response.Status.BAD_REQUEST).\n entity(String.format(\"Update failed: %s.\", e.getMessage())).\n build()\n );\n }\n finally {\n PersistenceUtils.getInstance().closeEntityManager(em);\n }\n }",
"@RequestMapping(value = \"/action\", method = RequestMethod.POST)\r\n //@ResponseStatus(HttpStatus.CREATED)\r\n\tpublic ResponseEntity<RequestWrapper> updateWithMultipleObjects(\r\n\t\t\t@RequestBody RequestWrapper requestWrapper) {\r\n\t\t\tSystem.out.println( \"Dentro del Action Estructura cargada: \");\r\n\t\t\t//System.out.println( this.e );\r\n\t\t\t//System.out.println( \"RW: \");\r\n\t\t\t//System.out.println( requestWrapper.toString() );\r\n\t\t\t//System.out.println( \"\");System.out.println( \"\");\r\n\t\t\trequestWrapper.ejecutar(this.e);\r\n\r\n\t\t\t/*requestWrapper.getCars().stream()\r\n\t\t\t\t\t\t\t\t.forEach(c -> c.setMiles(c.getMiles() + 100));\r\n\t\t\tSystem.out.println( \"post add\");\r\n\t\t\t//console.log( requestWrapper.toString());\r\n\r\n\t\t\tSystem.out.println( \"post String print\");\r\n\t\t// TODO: call persistence layer to update\r\n*/\r\n\t\treturn new ResponseEntity<RequestWrapper>(requestWrapper, HttpStatus.OK);\r\n\t}",
"public boolean update(ConProcess conProcess) throws AppException;",
"@Override\n public GetDeploymentResponse executeRequest() throws MorpheusApiRequestException {\n return (GetDeploymentResponse) RequestHelper.executeRequest(GetDeploymentResponse.class, this, \"/api/deployments/\" + deploymentId, HttpPut.METHOD_NAME);\n }",
"public void update(final Observable peer, final Object obj) {\n \t\tif (obj != null) {\n \t\t\tif (obj instanceof PhysicalObject) {\n \t\t\t\taddObject((PhysicalObject) obj);\n \t\t\t\t\n \t\t\t} else if (obj instanceof CollidableObject) {\n \t\t\t\taddObject(new PhysicalObject((CollidableObject) obj));\n \t\t\t}\n \t\t}\n \t}",
"protected void update(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.merge(object);\n em.getTransaction().commit();\n } catch (Exception e) {\n LOG.error(\"Could not update Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n }"
] | [
"0.5979418",
"0.5732173",
"0.55780625",
"0.55349916",
"0.54554343",
"0.54433954",
"0.53016275",
"0.52866006",
"0.52727854",
"0.5229085",
"0.52198136",
"0.521643",
"0.5158561",
"0.5145033",
"0.51295096",
"0.5124345",
"0.5117951",
"0.511277",
"0.5107428",
"0.5107428",
"0.5080737",
"0.50730664",
"0.50658244",
"0.50533086",
"0.5050299",
"0.5040398",
"0.5039492",
"0.5004027",
"0.5000565",
"0.49952668",
"0.4959971",
"0.4958595",
"0.49516347",
"0.49462992",
"0.49428678",
"0.4911771",
"0.4908085",
"0.49050033",
"0.4887557",
"0.48851427",
"0.48706785",
"0.48706022",
"0.4859616",
"0.48455244",
"0.48445624",
"0.48262703",
"0.48202595",
"0.48172036",
"0.48037475",
"0.47898334",
"0.4786475",
"0.47814673",
"0.47813454",
"0.47476187",
"0.47398132",
"0.47287026",
"0.47237134",
"0.47225344",
"0.47174552",
"0.47082815",
"0.47082815",
"0.4705211",
"0.47026435",
"0.46995816",
"0.46954435",
"0.46897662",
"0.46849498",
"0.46818677",
"0.46818188",
"0.46805415",
"0.4669934",
"0.46690956",
"0.46658427",
"0.4661539",
"0.4657852",
"0.46548736",
"0.46548736",
"0.46548736",
"0.46540004",
"0.4644209",
"0.4643701",
"0.46407154",
"0.46277487",
"0.4624688",
"0.462291",
"0.46172735",
"0.4614896",
"0.46109086",
"0.46064606",
"0.4602551",
"0.4601302",
"0.46012685",
"0.45939693",
"0.4580732",
"0.45716983",
"0.45673388",
"0.45673022",
"0.45672768",
"0.45665693",
"0.45640215"
] | 0.63074726 | 0 |
Load the Pods&Containers of the objects other than Deployment | public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
K8sObjectPodsEntity contStat = new K8sObjectPodsEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(environmentId);
contStat.setEnvironment(environment);
contStat.setStatusDate(todayDate);
contStat.setObjectName(objName);
contStat.setPods(podContList.get(0));
contStat.setContainers(podContList.get(1));
//contStat.setDeltaValue(deltaVal);
session.save(contStat);
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Container Load() {\n return null;\r\n }",
"private void readEntityDeploymentInitial() {\n for (Class<?> entityClass : bootupClasses.getEntities()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n Class<?> embeddedIdType = info.getEmbeddedIdType();\n if (embeddedIdType != null) {\n embeddedIdTypes.add(embeddedIdType);\n }\n }\n for (Class<?> entityClass : bootupClasses.getEmbeddables()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n if (embeddedIdTypes.contains(entityClass)) {\n // register embeddedId types early - scalar properties only\n // and needed for creating BeanTables (id properties)\n registerEmbeddedBean(info);\n } else {\n // delay register of other embedded beans until after\n // the BeanTables have been created to support ManyToOne\n embeddedBeans.add(info);\n }\n }\n }",
"private void unloadCollections(ORI container) {\n\n List<Collection> collections = resourceManager.loadChildren(Collection.class, container);\n for (Collection collection : collections) {\n unload(collection.getORI());\n }\n\n List<Folder> folders = resourceManager.loadChildren(Folder.class, container);\n for (Folder folder : folders) {\n unloadCollections(folder.getORI());\n }\n\n }",
"public static void preLoad() {\n\t\tserviceClasses.clear();\n\t\tloadGroups(CLASS_FOLDER, null, serviceClasses);\n\t\tTracer.trace(serviceClasses.size()\n\t\t\t\t+ \" java class names loaded as services.\");\n\t\t/*\n\t\t * clean and pre-load if required\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.cachedOnes != null) {\n\t\t\t\taType.cachedOnes.clear();\n\t\t\t}\n\t\t\tif (aType.preLoaded) {\n\t\t\t\taType.loadAll();\n\t\t\t}\n\t\t}\n\t}",
"protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}",
"public void loadAndWait()\n {\n injector.addConfigurationInstances(this.configClassInstances);\n\n // load all @Services from @Configuration classes\n injector.activateFailOnNullInstance();\n injector.load();\n\n // detect duplicates and crash on matches\n injector.crashOnDuplicates();\n\n // branch out the dependencies, such that Service A, with dependency B, is\n // aware of all dependencies of B.\n injector.branchOutDependencyTree();\n\n // sort the services, based on dependency requirements\n injector.sortByDependencies();\n\n // instantiate services/clients and crash if any nil instances are detected\n injector.instantiateComponents();\n injector.crashOnNullInstances();\n\n // add the component instances to the ServiceContext\n injector.installServices(ctx);\n\n // instantiate clients\n //injector.instantiateClients();\n\n // invoke DepWire methods with required services & clients\n injector.findDepWireMethodsAndPopulate();\n }",
"private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }",
"public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}",
"public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }",
"private void readEntityDeploymentAssociations() {\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n readDeployAssociations(info);\n }\n }",
"public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sPodsContainersEntity podStat = new K8sPodsContainersEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpodStat.setEnvironment(environment);\n\t\tpodStat.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpodStat.setComponent(component);\n\t\tpodStat.setTotalPods(numPods);\n\t\tpodStat.setTotalContainers(numCont);\n\t\tsession.save(podStat);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"public static void load() throws IOException {\n ClassPath classPath = ClassPath.from(ClassLoader.getSystemClassLoader());\n //System.out.println(\"Length:\"+classPath.getTopLevelClasses(\"util\").size());\n for (ClassPath.ClassInfo classInfo : classPath.getTopLevelClasses(\"util\")) {\n Scene.v().addBasicClass(classInfo.getName(), SootClass.BODIES);\n sootClasses.add(classInfo.getName());\n }\n }",
"public ContainerLoader getLoader();",
"public static void load() {\n for (DataSourceSwapper each : ServiceLoader.load(DataSourceSwapper.class)) {\n loadOneSwapper(each);\n }\n }",
"private static void loadObjectRepository() {\n\n\t\ttry {\n\n\t\t\tObjectRepositoryReader reader = new ObjectRepositoryReader(GlobalContext.getAppDir(), Constants.FILENAME_OBJECT_REPO);\n\t\t\tMap<String, ObjectRepositoryRow> objectRepository = new HashMap<>();\n\t\t\twhile (reader.hasNextRow()) {\n\n\t\t\t\tObjectRepositoryRow row = (ObjectRepositoryRow) reader.nextRow();\n\t\t\t\tobjectRepository.put(row.getName(), row);\n\t\t\t}\n\n\t\t\t//sets to global context.\n\t\t\tGlobalContext.setObjectRepository(objectRepository);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void loadPlugins(){\r\n\t\tKomorebiCoreConfig config = new KomorebiCoreConfig();\r\n\t\t\r\n\t\tif(config.getRootNode().getChildrenCount(\"plugins\") < 1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tList<ConfigurationNode> pluginNodes = config.getRootNode().getChildren(\"plugins\").get(0).getChildren(\"plugin\");\r\n\t\tfor(int pos=0; pos<pluginNodes.size(); ++pos){\r\n\t\t\tString name = config.getString(\"plugins.plugin(\"+pos+\")[@name]\");\r\n\t\t\tString version = config.getString(\"plugins.plugin(\"+pos+\")[@version]\");\r\n\t\t\tif(version == null || name == null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tloadPluginsJar(name+\"-\"+version); // check all classes in jar\r\n\t\t}\r\n\t}",
"public List<PodInfo> getStoredPods() {\n List<PodInfo> pods = new ArrayList<>();\n\n SearchResponse response = client.prepareSearch(\"k8s_*\").setTypes(\"pod\").setSize(10000).get();\n\n SearchHit[] hits = response.getHits().getHits();\n log.info(String.format(\"The length of pod search hits is [%d]\", hits.length));\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n for (SearchHit hit : hits) {\n// log.info(hit.getSourceAsString());\n PodInfo pod = mapper.readValue(hit.getSourceAsString(), PodInfo.class);\n pods.add(pod);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return pods;\n }",
"private void getAllContainers() {\n AID ams = getAMS();\n QueryPlatformLocationsAction queryPlatformLocationsAction = new QueryPlatformLocationsAction();\n sendRequest(new Action(ams, queryPlatformLocationsAction));\n MessageTemplate mt = MessageTemplate.and(\n MessageTemplate.MatchSender(getAMS()),\n MessageTemplate.MatchPerformative(ACLMessage.INFORM));\n ACLMessage resp = blockingReceive(mt);\n ContentElement ce = null;\n try {\n ce = getContentManager().extractContent(resp);\n } catch (Codec.CodecException e) {\n e.printStackTrace();\n } catch (OntologyException e) {\n e.printStackTrace();\n }\n Result result = (Result) ce;\n jade.util.leap.Iterator it = result.getItems().iterator();\n while (it.hasNext()) {\n Location loc = (Location) it.next();\n containersOnPlatform.put(loc.getName(), loc);\n }\n }",
"public void loadArchive() throws IOException {\n Archive archive = jsonReader.read();\n cameraCollection = archive.cameraCollection;\n filmCollection = archive.filmCollection;\n }",
"protected void loadAndSetProject() {\n final ApplicationMetadata meta = getSpeedmentApplicationMetadata();\n final Project project;\n \n if (meta != null) {\n project = DocumentTranscoder.load(meta.getMetadata());\n } else {\n final Map<String, Object> data = new ConcurrentHashMap<>();\n data.put(HasName.NAME, \"Project\");\n project = new ProjectImpl(data);\n }\n\n // Apply overidden item (if any) for all ConfigEntities of a given class\n withsAll.forEach(t2 -> {\n final Class<? extends Document> clazz = t2.get0();\n @SuppressWarnings(\"unchecked\")\n final Consumer<Document> consumer = (Consumer<Document>) t2.get1();\n DocumentDbUtil.traverseOver(project)\n .filter(clazz::isInstance)\n .map(Document.class::cast)\n .forEachOrdered(consumer::accept);\n });\n\n // Apply a named overidden item (if any) for all Entities of a given class\n withsNamed.forEach(t3 -> {\n final Class<? extends Document> clazz = t3.get0();\n final String name = t3.get1();\n\n @SuppressWarnings(\"unchecked\")\n final Consumer<Document> consumer = (Consumer<Document>) t3.get2();\n\n DocumentDbUtil.traverseOver(project)\n .filter(clazz::isInstance)\n .filter(HasName.class::isInstance)\n .map(HasName.class::cast)\n .filter(c -> name.equals(relativeName(c, Project.class, DATABASE_NAME)))\n .forEachOrdered(consumer::accept);\n });\n\n speedment.getProjectComponent().setProject(project);\n }",
"void injectorClassLoader() {\n\t\t//To get the package name\n\t\tString pkgName = context.getPackageName();\n\t\t//To get the context\n\t\tContext contextImpl = ((ContextWrapper) context).getBaseContext();\n\t\t//Access to the Activity of the main thread\n\t\tObject activityThread = null;\n\t\ttry {\n\t\t\tactivityThread = Reflection.getField(contextImpl, \"mMainThread\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get package container\n\t\tMap mPackages = null;\n\t\ttry {\n\t\t\tmPackages = (Map) Reflection.getField(activityThread, \"mPackages\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//To obtain a weak reference object, the standard reflection\n\t\tWeakReference weakReference = (WeakReference) mPackages.get(pkgName);\n\t\tif (weakReference == null) {\n\t\t\tlog.e(\"loadedApk is null\");\n\t\t} else {\n\t\t\t//Get apk need to be loaded\n\t\t\tObject loadedApk = weakReference.get();\n\t\t\t\n\t\t\tif (loadedApk == null) {\n\t\t\t\tlog.e(\"loadedApk is null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (appClassLoader == null) {\n\t\t\t\t//Access to the original class loader\n\t\t\t\tClassLoader old = null;\n\t\t\t\ttry {\n\t\t\t\t\told = (ClassLoader) Reflection.getField(loadedApk,\n\t\t\t\t\t\t\t\"mClassLoader\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//According to the default class loader instantiate a plug-in class loader\n\t\t\t\tappClassLoader = new SyknetAppClassLoader(old, this);\n\t\t\t}\n\t\t\t//Replace the new plug-in loader loader by default\n\t\t\ttry {\n\t\t\t\tReflection.setField(loadedApk, \"mClassLoader\", appClassLoader);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public abstract NestedSet<Artifact> bootclasspath();",
"public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }",
"public void loadExternalRepositories() {\n\t\tString envExternalRepsString = System.getenv(\"ODFI_DOCBOOK_STYLESHEETS_REPS\");\r\n\t\tif (envExternalRepsString!=null) {\r\n\t\t\tString[] externalEnvReps = envExternalRepsString.split(\"\"+File.pathSeparatorChar);\r\n\t\t\tfor (String rep : externalEnvReps) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.loadRepository(rep);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// Remove wrong URL\r\n\t\t\t\t\t//it.remove();\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t// Load Preferences with Environment variable if there is one, otherwise don't touch it\r\n\t\t//---------------------\r\n\t\tString envExternalReps = System.getenv(DocbookPlugin.ENV_EXTERNAL_REPS);\r\n\t\tif (envExternalReps!=null) {\r\n\t\t\tDocbookPlugin.getDefault().getPreferenceStore().setDefault(\"reps.external.env\", envExternalReps);\r\n\t\t}\r\n\t\t\r\n\t\t// Do we have any manually added stylesheets repositories?\r\n\t\t//-----------------------\r\n\t\tString externalAddedRepsString = DocbookPlugin.getDefault().getPreferenceStore().getString(\"reps.external.added\");\r\n\t\tString externalEnvRepsString = DocbookPlugin.getDefault().getPreferenceStore().getString(\"reps.external.env\");\r\n\r\n\t\t\r\n\t\t// Parse the repositories\r\n\t\t//----------------------------------\r\n\t\tString[] externalEnvReps = externalEnvRepsString.split(\";\");\r\n\t\tArrayIterator<String> it = new ArrayIterator<String>(externalEnvReps);\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tString rep = it.next();\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadRepository(rep);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// Remove wrong URL\r\n\t\t\t\t//it.remove();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] externalAddedReps = externalAddedRepsString.split(\";\");\r\n\t\tit = new ArrayIterator<String>(externalAddedReps);\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tString rep = it.next();\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadRepository(rep);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// Remove wrong URL\r\n\t\t\t\t//it.remove();\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} \r\n\t\t}\r\n\t\t\r\n\t\t// Resave in case we cleaned them\r\n\t\t//-------------------------------------\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t}",
"@Programmatic\n public boolean loadSpecifications(\n final List<Class<?>> typesToLoad,\n final Class<?> typeToIgnore,\n final IntrospectionState upTo) {\n boolean anyLoadedAsNull = false;\n for (final Class<?> typeToLoad : typesToLoad) {\n if (typeToLoad != typeToIgnore) {\n final ObjectSpecification objectSpecification =\n internalLoadSpecification(typeToLoad, null, upTo);\n final boolean loadedAsNull = (objectSpecification == null);\n anyLoadedAsNull = loadedAsNull || anyLoadedAsNull;\n }\n }\n return anyLoadedAsNull;\n }",
"private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}",
"private void _loadCatalog() {\n if (discoveryEndpoint != null) {\n try {\n ResponseEntity<String> response = restTemplate.getForEntity(discoveryEndpoint, String.class);\n\n if (response.getStatusCode() == HttpStatus.OK) {\n String body = response.getBody();\n this.catalog = CdsHooksUtil.GSON.fromJson(body, CdsHooksCatalog.class);\n startPendingRequests();\n return;\n }\n } catch (Exception e) {\n log.warn(\"Failed to load CDS catalog for \" + discoveryEndpoint\n + \".\\nRetries remaining: \" + retries + \".\");\n }\n\n retry();\n }\n }",
"private void loadProjects() {\n\t\tprojectsList.clear();\n\t\t\n\t\tArrayList<Job> projects = jdbc.getProjects();\n\t\tfor (Job j : projects) {\n\t\t\tprojectsList.addElement(j.jobname);\n\t\t}\n\t}",
"protected void reconcile(PodSet podSet) {\n List<String> pods = podCountByLabel(APP_LABEL, podSet.getMetadata().getName());\n logger.info(\"reconcile() : Found {} number of Pods owned by PodSet {}\", pods.size(), podSet.getMetadata().getName());\n if (pods.isEmpty()) {\n createPods(podSet.getSpec().getReplicas(), podSet);\n return;\n }\n int existingPods = pods.size();\n\n // Compare it with desired state i.e spec.replicas\n // if less then spin up pods\n if (existingPods < podSet.getSpec().getReplicas()) {\n createPods(podSet.getSpec().getReplicas() - existingPods, podSet);\n }\n\n // If more pods then delete the pods\n int diff = existingPods - podSet.getSpec().getReplicas();\n for (; diff > 0; diff--) {\n String podName = pods.remove(0);\n kubernetesClient.pods().inNamespace(podSet.getMetadata().getNamespace()).withName(podName).delete();\n }\n\n // Update PodSet status\n updateAvailableReplicasInPodSetStatus(podSet, podSet.getSpec().getReplicas());\n }",
"public static void initializeDiContainer() {\n addDependency(new CamelCaseConverter());\n addDependency(new JavadocGenerator());\n addDependency(new TemplateResolver());\n addDependency(new PreferenceStoreProvider());\n addDependency(new CurrentShellProvider());\n addDependency(new ITypeExtractor());\n addDependency(new DialogWrapper(getDependency(CurrentShellProvider.class)));\n addDependency(new PreferencesManager(getDependency(PreferenceStoreProvider.class)));\n addDependency(new ErrorHandlerHook(getDependency(DialogWrapper.class)));\n\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new GeneratedAnnotationPredicate());\n addDependency(new GenericModifierPredicate());\n addDependency(new IsPrivatePredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsStaticPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new IsPublicPredicate(getDependency(GenericModifierPredicate.class)));\n addDependency(new GeneratedAnnotationContainingBodyDeclarationFilter(getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new PrivateConstructorRemover(getDependency(IsPrivatePredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BodyDeclarationOfTypeExtractor());\n addDependency(new BuilderClassRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class),\n getDependency(IsPrivatePredicate.class),\n getDependency(IsStaticPredicate.class),\n getDependency(PreferencesManager.class)));\n addDependency(new JsonDeserializeRemover(getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderInterfaceRemover(getDependency(BodyDeclarationOfTypeExtractor.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new StaticBuilderMethodRemover(getDependency(IsStaticPredicate.class), getDependency(IsPublicPredicate.class),\n getDependency(GeneratedAnnotationContainingBodyDeclarationFilter.class)));\n addDependency(new BuilderAstRemover(getDependencyList(BuilderRemoverChainItem.class)));\n\n addDependency(new BuilderRemover(getDependency(PreferencesManager.class), getDependency(ErrorHandlerHook.class),\n getDependency(BuilderAstRemover.class)));\n addDependency(new CompilationUnitSourceSetter());\n addDependency(new HandlerUtilWrapper());\n addDependency(new WorkingCopyManager());\n addDependency(new WorkingCopyManagerWrapper(getDependency(HandlerUtilWrapper.class)));\n addDependency(new CompilationUnitParser());\n addDependency(new GeneratedAnnotationPopulator(getDependency(PreferencesManager.class)));\n addDependency(new MarkerAnnotationAttacher());\n addDependency(new ImportRepository());\n addDependency(new ImportPopulator(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new BuilderMethodNameBuilder(getDependency(CamelCaseConverter.class),\n getDependency(PreferencesManager.class),\n getDependency(TemplateResolver.class)));\n addDependency(new PrivateConstructorAdderFragment());\n addDependency(new JsonPOJOBuilderAdderFragment(getDependency(PreferencesManager.class), getDependency(ImportRepository.class)));\n addDependency(new EmptyBuilderClassGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocGenerator.class),\n getDependency(TemplateResolver.class),\n getDependency(JsonPOJOBuilderAdderFragment.class)));\n addDependency(new BuildMethodBodyCreatorFragment());\n addDependency(new BuildMethodDeclarationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(TemplateResolver.class)));\n addDependency(new JavadocAdder(getDependency(JavadocGenerator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuildMethodCreatorFragment(getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(BuildMethodBodyCreatorFragment.class)));\n addDependency(new FullyQualifiedNameExtractor());\n addDependency(new StaticMethodInvocationFragment());\n addDependency(new OptionalInitializerChainItem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new BuiltInCollectionsInitializerChainitem(getDependency(StaticMethodInvocationFragment.class), getDependency(PreferencesManager.class)));\n addDependency(new FieldDeclarationPostProcessor(getDependency(PreferencesManager.class), getDependency(FullyQualifiedNameExtractor.class),\n getDependency(ImportRepository.class), getDependencyList(FieldDeclarationPostProcessorChainItem.class)));\n addDependency(new BuilderFieldAdderFragment(getDependency(FieldDeclarationPostProcessor.class)));\n addDependency(new WithMethodParameterCreatorFragment(getDependency(PreferencesManager.class), getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new RegularBuilderWithMethodAdderFragment(getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new BuilderFieldAccessCreatorFragment());\n addDependency(new TypeDeclarationToVariableNameConverter(getDependency(CamelCaseConverter.class)));\n addDependency(new FieldSetterAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new IsRegularBuilderInstanceCopyEnabledPredicate(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderCopyInstanceConstructorAdderFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new PublicConstructorWithMandatoryFieldsAdderFragment());\n addDependency(new RegularBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(RegularBuilderWithMethodAdderFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(RegularBuilderCopyInstanceConstructorAdderFragment.class),\n getDependency(PublicConstructorWithMandatoryFieldsAdderFragment.class)));\n addDependency(new StaticBuilderMethodSignatureGeneratorFragment(getDependency(GeneratedAnnotationPopulator.class), getDependency(PreferencesManager.class)));\n addDependency(new BuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new BlockWithNewBuilderCreationFragment());\n addDependency(\n new RegularBuilderBuilderMethodCreator(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new PrivateConstructorMethodDefinitionCreationFragment(getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new SuperFieldSetterMethodAdderFragment(getDependency(BuilderFieldAccessCreatorFragment.class)));\n addDependency(new PrivateConstructorBodyCreationFragment(getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(FieldSetterAdderFragment.class),\n getDependency(BuilderFieldAccessCreatorFragment.class),\n getDependency(SuperFieldSetterMethodAdderFragment.class)));\n addDependency(new ConstructorInsertionFragment());\n addDependency(new PrivateInitializingConstructorCreator(\n getDependency(PrivateConstructorMethodDefinitionCreationFragment.class),\n getDependency(PrivateConstructorBodyCreationFragment.class),\n getDependency(ConstructorInsertionFragment.class)));\n addDependency(new FieldPrefixSuffixPreferenceProvider(getDependency(PreferenceStoreProvider.class)));\n addDependency(new FieldNameToBuilderFieldNameConverter(getDependency(PreferencesManager.class),\n getDependency(FieldPrefixSuffixPreferenceProvider.class),\n getDependency(CamelCaseConverter.class)));\n addDependency(new TypeDeclarationFromSuperclassExtractor(getDependency(CompilationUnitParser.class),\n getDependency(ITypeExtractor.class)));\n addDependency(new BodyDeclarationVisibleFromPredicate());\n addDependency(new ApplicableFieldVisibilityFilter(getDependency(BodyDeclarationVisibleFromPredicate.class)));\n addDependency(new ClassFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(ApplicableFieldVisibilityFilter.class)));\n addDependency(new RecordFieldCollector(getDependency(FieldNameToBuilderFieldNameConverter.class)));\n addDependency(new BodyDeclarationFinderUtil(getDependency(CamelCaseConverter.class)));\n addDependency(new SuperConstructorParameterCollector(getDependency(FieldNameToBuilderFieldNameConverter.class),\n getDependency(PreferencesManager.class), getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(BodyDeclarationVisibleFromPredicate.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new SuperClassSetterFieldCollector(getDependency(PreferencesManager.class),\n getDependency(TypeDeclarationFromSuperclassExtractor.class),\n getDependency(CamelCaseConverter.class),\n getDependency(BodyDeclarationFinderUtil.class)));\n addDependency(new ApplicableBuilderFieldExtractor(Arrays.asList(\n getDependency(SuperConstructorParameterCollector.class),\n getDependency(ClassFieldCollector.class),\n getDependency(SuperClassSetterFieldCollector.class),\n getDependency(RecordFieldCollector.class))));\n addDependency(new ActiveJavaEditorOffsetProvider());\n addDependency(new ParentITypeExtractor());\n addDependency(new IsTypeApplicableForBuilderGenerationPredicate(getDependency(ParentITypeExtractor.class)));\n addDependency(new CurrentlySelectedApplicableClassesClassNameProvider(getDependency(ActiveJavaEditorOffsetProvider.class),\n getDependency(IsTypeApplicableForBuilderGenerationPredicate.class),\n getDependency(ParentITypeExtractor.class)));\n addDependency(new BuilderOwnerClassFinder(getDependency(CurrentlySelectedApplicableClassesClassNameProvider.class),\n getDependency(PreferencesManager.class), getDependency(GeneratedAnnotationPredicate.class)));\n addDependency(new BlockWithNewCopyInstanceConstructorCreationFragment());\n addDependency(new CopyInstanceBuilderMethodDefinitionCreatorFragment(getDependency(TemplateResolver.class),\n getDependency(PreferencesManager.class),\n getDependency(JavadocAdder.class), getDependency(StaticBuilderMethodSignatureGeneratorFragment.class)));\n addDependency(new RegularBuilderCopyInstanceBuilderMethodCreator(getDependency(BlockWithNewCopyInstanceConstructorCreationFragment.class),\n getDependency(CopyInstanceBuilderMethodDefinitionCreatorFragment.class),\n getDependency(TypeDeclarationToVariableNameConverter.class),\n getDependency(IsRegularBuilderInstanceCopyEnabledPredicate.class)));\n addDependency(new JsonDeserializeAdder(getDependency(ImportRepository.class)));\n addDependency(new GlobalBuilderPostProcessor(getDependency(PreferencesManager.class), getDependency(JsonDeserializeAdder.class)));\n addDependency(new DefaultConstructorAppender(getDependency(ConstructorInsertionFragment.class), getDependency(PreferencesManager.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new RegularBuilderCompilationUnitGenerator(getDependency(RegularBuilderClassCreator.class),\n getDependency(RegularBuilderCopyInstanceBuilderMethodCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(RegularBuilderBuilderMethodCreator.class), getDependency(ImportPopulator.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new RegularBuilderUserPreferenceDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new RegularBuilderDialogDataConverter());\n addDependency(new RegularBuilderUserPreferenceConverter(getDependency(PreferencesManager.class)));\n addDependency(new RegularBuilderUserPreferenceProvider(getDependency(RegularBuilderUserPreferenceDialogOpener.class),\n getDependency(PreferencesManager.class),\n getDependency(RegularBuilderDialogDataConverter.class),\n getDependency(RegularBuilderUserPreferenceConverter.class)));\n addDependency(new RegularBuilderCompilationUnitGeneratorBuilderFieldCollectingDecorator(getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(RegularBuilderCompilationUnitGenerator.class),\n getDependency(RegularBuilderUserPreferenceProvider.class)));\n addDependency(new IsEventOnJavaFilePredicate(getDependency(HandlerUtilWrapper.class)));\n\n // staged builder dependencies\n addDependency(new StagedBuilderInterfaceNameProvider(getDependency(PreferencesManager.class),\n getDependency(CamelCaseConverter.class),\n getDependency(TemplateResolver.class)));\n addDependency(new StagedBuilderWithMethodDefiniationCreatorFragment(getDependency(PreferencesManager.class),\n getDependency(BuilderMethodNameBuilder.class),\n getDependency(MarkerAnnotationAttacher.class),\n getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(WithMethodParameterCreatorFragment.class)));\n addDependency(new StagedBuilderInterfaceTypeDefinitionCreatorFragment(getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderInterfaceCreatorFragment(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(StagedBuilderInterfaceTypeDefinitionCreatorFragment.class),\n getDependency(BuildMethodDeclarationCreatorFragment.class),\n getDependency(JavadocAdder.class),\n getDependency(GeneratedAnnotationPopulator.class)));\n addDependency(new StagedBuilderCreationBuilderMethodAdder(getDependency(BlockWithNewBuilderCreationFragment.class),\n getDependency(BuilderMethodDefinitionCreatorFragment.class)));\n addDependency(new NewBuilderAndWithMethodCallCreationFragment());\n addDependency(new StagedBuilderCreationWithMethodAdder(getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(NewBuilderAndWithMethodCallCreationFragment.class), getDependency(JavadocAdder.class)));\n addDependency(new StagedBuilderStaticBuilderCreatorMethodCreator(getDependency(StagedBuilderCreationBuilderMethodAdder.class),\n getDependency(StagedBuilderCreationWithMethodAdder.class),\n getDependency(PreferencesManager.class)));\n addDependency(new StagedBuilderWithMethodAdderFragment(\n getDependency(StagedBuilderWithMethodDefiniationCreatorFragment.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new InterfaceSetter());\n addDependency(new StagedBuilderClassCreator(getDependency(PrivateConstructorAdderFragment.class),\n getDependency(EmptyBuilderClassGeneratorFragment.class),\n getDependency(BuildMethodCreatorFragment.class),\n getDependency(BuilderFieldAdderFragment.class),\n getDependency(StagedBuilderWithMethodAdderFragment.class),\n getDependency(InterfaceSetter.class),\n getDependency(MarkerAnnotationAttacher.class)));\n addDependency(new StagedBuilderStagePropertyInputDialogOpener(getDependency(CurrentShellProvider.class)));\n addDependency(new StagedBuilderStagePropertiesProvider(getDependency(StagedBuilderInterfaceNameProvider.class),\n getDependency(StagedBuilderStagePropertyInputDialogOpener.class)));\n addDependency(new StagedBuilderCompilationUnitGenerator(getDependency(StagedBuilderClassCreator.class),\n getDependency(PrivateInitializingConstructorCreator.class),\n getDependency(StagedBuilderStaticBuilderCreatorMethodCreator.class),\n getDependency(ImportPopulator.class),\n getDependency(StagedBuilderInterfaceCreatorFragment.class),\n getDependency(BuilderRemover.class),\n getDependency(GlobalBuilderPostProcessor.class),\n getDependency(DefaultConstructorAppender.class)));\n addDependency(new StagedBuilderCompilationUnitGeneratorFieldCollectorDecorator(\n getDependency(StagedBuilderCompilationUnitGenerator.class),\n getDependency(ApplicableBuilderFieldExtractor.class),\n getDependency(StagedBuilderStagePropertiesProvider.class)));\n\n // Generator chain\n addDependency(new GenerateBuilderExecutorImpl(getDependency(CompilationUnitParser.class),\n getDependencyList(BuilderCompilationUnitGenerator.class),\n getDependency(IsEventOnJavaFilePredicate.class), getDependency(WorkingCopyManagerWrapper.class),\n getDependency(CompilationUnitSourceSetter.class),\n getDependency(ErrorHandlerHook.class),\n getDependency(BuilderOwnerClassFinder.class)));\n addDependency(new GenerateBuilderHandlerErrorHandlerDecorator(getDependency(GenerateBuilderExecutorImpl.class),\n getDependency(ErrorHandlerHook.class)));\n addDependency(new StatefulBeanHandler(getDependency(PreferenceStoreProvider.class),\n getDependency(WorkingCopyManagerWrapper.class), getDependency(ImportRepository.class)));\n addDependency(\n new StateInitializerGenerateBuilderExecutorDecorator(\n getDependency(GenerateBuilderHandlerErrorHandlerDecorator.class),\n getDependency(StatefulBeanHandler.class)));\n }",
"protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }",
"private static void load(){\n }",
"private void init()\n {\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n GWikiElement page = wikiContext.getWikiWeb().getElement(pageId);\n WorkflowPopupActionBean.this.page = page;\n\n // check if dependent objects exists\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(page.getElementInfo());\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, 2);\n }\n return null;\n }\n\n /**\n * Recursive fetch of child elements\n */\n private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }\n });\n }",
"public void initPrimaryContainer() {\n for (IMixinPlatformAgent agent : this.agents) {\n MixinContainer.logger.debug(\"Processing launch tasks for {}\", agent);\n agent.initPrimaryContainer();\n }\n }",
"public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void examineContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif (!(this.receptacle.get(i) instanceof SpecialtyContainer))//if it's a hidden container, you don't know it's there, but it is...\n\t\t\t\t\t\tSystem.out.print(this.receptacle.get(i).contName + \", \");\n\t\t}",
"private void initializeComponents() {\n\n RootConfig rootConfig = UAAppContext.getInstance().getRootConfig();\n\n if (rootConfig == null || rootConfig.mApplications == null) {\n // Error - Root Config inconsistencies\n Utils.logError(LogTags.PROJECT_LIST, \"No Root Config for user after AppStartupThread2\" +\n \"-- redirecting user to login screen\");\n invalidateLogin();\n moveToLoginScreen();\n }\n\n for (ProjectTypeModel projectTypeModel : rootConfig.mApplications) {\n if (projectTypeModel.mAppId.equals(mAppId)) {\n if (projectTypeModel.mSortType != null && !projectTypeModel.mSortType.isEmpty()) {\n mSortType = projectTypeModel.mSortType;\n }\n if (projectTypeModel.mFilteringAttributes != null && projectTypeModel.mFilteringAttributes.size() > 0) {\n mFilteringAttributes = projectTypeModel.mFilteringAttributes;\n }\n // Checking if Map Configuration is null or not\n if (UAAppContext.getInstance().getMapConfig() != null) {\n Map<String, List<MapInfo>> appSpecificMarkers = UAAppContext.getInstance().getMapConfig().mapMarkers;\n if (appSpecificMarkers != null && !appSpecificMarkers.isEmpty()) {\n mapMarkers = appSpecificMarkers.get(mAppId);\n }\n if (UAAppContext.getInstance().getMapConfig().files != null) {\n mapLayers = MapUtils.getInstance().getLayerFiles();\n }\n }\n break;\n }\n }\n\n if (mGroupingAttribute != null && !mGroupingAttribute.isEmpty()) {\n // Only show the projects that have this grouping attribute\n UAAppContext.getInstance().setProjectList(UAAppContext.getInstance().getDBHelper().getProjectsForUserForGroupingAttribute(UAAppContext\n .getInstance().getUserID(), mAppId, mGroupingAttributeValue.toLowerCase()));\n } else {\n UAAppContext.getInstance().setProjectList(UAAppContext.getInstance().getDBHelper().getProjectsForUser(UAAppContext\n .getInstance().getUserID(), mAppId));\n }\n mProjectList = UAAppContext.getInstance().getProjectList();\n }",
"private void loadJobs(){\n\t\tsuperJobsList.clear();\n\t\tsuperJobs=jdbc.getProjectsAndJobs();\n\t\tfor(Job j: superJobs){\n\t\t\tsuperJobsList.addElement(j.jobname);\n\t\t}\n\t\t\n\t}",
"private void load(Object o) {\n \n }",
"@Override\n\tpublic void loadCargo() {\n\n\t}",
"protected void initDaosFromSpringBeans() {\n this.waitUntilApplicationContextIsReady();\n final String[] beanNamesToLoad = this.m_applicationContext\n .getBeanNamesForType(GenericDao.class);\n for (final String name : beanNamesToLoad) {\n if (!PatternMatchUtils.simpleMatch(this.m_daoNamePattern, name)) {\n // Doesn't match - so skip it.\n continue;\n }\n final GenericDao<?> dao = (GenericDao<?>) this.m_applicationContext.getBean(name);\n // avoid adding a DAO again\n if (!this.m_daos.values().contains(dao)) {\n this.initDao(dao);\n this.m_daos.put(dao.getPersistentClass(), dao);\n }\n }\n }",
"public void readExternal (ObjectInput ois)\n throws IOException, ClassNotFoundException {\n ArrayList temp = new ArrayList(10);\n synchronized (Repository.class) {\n\n for (;;) {\n Object obj = ois.readObject ();\n if (obj == null) {\n // all system has been read in\n break;\n }\n FileSystem fs;\n if (obj instanceof FileSystem) {\n fs = (FileSystem)obj;\n } else {\n try {\n NbMarshalledObject mar = (NbMarshalledObject)obj;\n fs = (FileSystem)mar.get ();\n } catch (IOException ex) {\n TopManager.getDefault().notifyException(ex);\n fs = null;\n } catch (ClassNotFoundException ex) {\n TopManager.getDefault().notifyException(ex);\n fs = null;\n }\n }\n if (fs != null) {\n // add the new file system\n temp.add(fs);\n }\n }\n\n Enumeration ee = getFileSystems();\n FileSystem fs;\n while (ee.hasMoreElements()) {\n fs = (FileSystem) ee.nextElement();\n if (!fs.isPersistent ()) {\n removeFileSystem (fs);\n }\n }\n // in init assigned is checked and we force 'system' to be added again\n system.assigned = false;\n init ();\n\n // all is successfuly read\n for (Iterator iter = temp.iterator(); iter.hasNext();)\n addFileSystem ((FileSystem) iter.next());\n }\n }",
"private void initClassloaders() {\n\t\tthis.commonloader = createClassloader(\"common\",null);\n\t\tthis.sharedloader = createClassloader(\"shared\", commonloader);\n\t\tthis.catalinaloader = createClassloader(\"server\", commonloader);\n\t}",
"private void loadShip() {\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Water());\n cargo.add(new Furs());\n cargo.add(new Ore());\n cargo.add(new Food());\n numOfGoods = cargo.size();\n }",
"private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }",
"public void pageElementsLoader(String fileName) {\n InputStream inpStream = RepositoryParser.class.getClassLoader().getResourceAsStream(fileName);\n JSONObject locatorRepository = null;\n try {\n locatorRepository = new JSONObject(IOUtils.toString(inpStream, \"UTF-8\"));\n } catch (JSONException e) {\n Log.error(\"Error in parsing JSOn file \" + e.getMessage());\n } catch (IOException e) {\n Log.error(\"IO Exception encounred \" + e.getMessage());\n } finally {\n CustomAssert.assertTrue(locatorRepository != null, \"Error in reading locator repository \"\n + fileName);\n }\n\n JSONArray pageArray = locatorRepository.optJSONArray(\"pages\");\n CustomAssert.assertTrue(pageArray != null, \"Error in parsing locator repository pages \"\n + fileName);\n\n putObjectFromPages(pageArray);\n }",
"private Iterable<Service> loadServiceData() {\n return services;\n }",
"@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }",
"public EmbeddedObjects() {\n super();\n this._embeddedObjectList = new java.util.Vector<de.lsem.simulation.transformation.anylogic.generator.persistant.EmbeddedObject>();\n }",
"static Iterator<Object> loadAllYamlDocuments(Class clazz, String resource) {\n try (InputStream is = clazz.getResourceAsStream(resource)) {\n if (is != null) {\n ArrayList<Object> loadedDocs = new ArrayList<>();\n Iterator<Object> rawIter = new Yaml().loadAll(new InputStreamReader(is)).iterator();\n rawIter.forEachRemaining(loadedDocs::add);\n\n return loadedDocs.iterator();\n } else {\n return null;\n }\n } catch (IOException e) {\n // Ignore it.\n return null;\n }\n }",
"public static void load() {\n }",
"@Override\n public void load(ObjectIterator<T> objects) {\n }",
"@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public static void loadPOTables(){\n\t\ttry {\n\t\t\tfor(TableInfo tableInfo:tables.values()){\n\t\t\t\tClass c = Class.forName(DBManager.getConfiguration().getPoPackage()+\".\"+StringUtils.firstCharUpperCase(tableInfo.getTname()));\n\t\t\t\tpoClassTableMap.put(c, tableInfo);\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected abstract void loadItemsInternal();",
"@Override\n\t\tpublic InJarResourceImpl getContainer(InJarResourceImpl serializationArtefact) {\n\t\t\tResource container = serializationArtefact.getContainer();\n\t\t\tif (container instanceof InJarResourceImpl) {\n\t\t\t\treturn (InJarResourceImpl) container;\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"protected void ensureLoaded()\n {\n if (!m_fLoaded)\n {\n if (m_abClazz != null)\n {\n ByteArrayInputStream streamRaw = new ByteArrayInputStream(m_abClazz);\n DataInput stream = new DataInputStream(streamRaw);\n try\n {\n disassemble(stream, m_pool);\n }\n catch (IOException e)\n {\n throw ensureRuntimeException(e);\n }\n }\n\n m_fLoaded = true;\n }\n }",
"private void loadSpaceObjects(String file){\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\tloadFactory(sc);\n\t\t\tloadPlanets(sc);\n\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramPlanets.txt\");\n\t\t}\n\t}",
"List<SoftObjectReference> getObjects();",
"public static void initAllHooks(LoadPackageParam lpparam) {\n XposedBridge.hookAllConstructors(Classes.AllAppsContainerView, new AppsCustomizePagedViewConstructorHook());\n\n XposedBridge.hookAllMethods(Classes.AllAppsContainerView, \"setSearchBarController\", new XC_MethodHook() {\n @Override\n protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n ViewGroup mSearchBarContainerView = (ViewGroup) getObjectField(param.thisObject, \"mSearchBarView\");\n mSearchBarContainerView.getBackground().setColorFilter(PreferencesHelper.searchbarPrimaryColor, PorterDuff.Mode.MULTIPLY);\n }\n });\n\n if (PreferencesHelper.noAllAppsPredictions) {\n findAndHookMethod(Classes.GELClass, \"getPredictedApps\", XC_MethodReplacement.returnConstant(Collections.emptyList()));\n }\n\n findAndHookMethod(Classes.AllAppsContainerView, \"onUpdateBackgroundAndPaddings\", Rect.class, Rect.class, new XC_MethodHook() {\n @Override\n protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n ((View) param.thisObject).setBackgroundColor(PreferencesHelper.appdrawerBackgroundColor);\n\n String[] fields = {\"mContainerView\", \"mRevealView\"};\n for (String field : fields) {\n InsetDrawable background = (InsetDrawable) ((View) getObjectField(param.thisObject, field)).getBackground();\n background.setColorFilter(PreferencesHelper.appdrawerFolderStyleBackgroundColor, PorterDuff.Mode.MULTIPLY);\n }\n }\n });\n\n if (PreferencesHelper.closeAppdrawerAfterAppStarted) {\n findAndHookMethod(Classes.Launcher, \"onClick\", View.class, new XC_MethodHook() {\n @Override\n protected void beforeHookedMethod(MethodHookParam param) throws Throwable {\n if ((Boolean) callMethod(Common.LAUNCHER_INSTANCE, \"isAppsViewVisible\")) {\n ((ArrayList) getObjectField(Common.LAUNCHER_INSTANCE, \"mOnResumeCallbacks\")).add(0, new Runnable() {\n @Override\n public void run() {\n callMethod(Common.LAUNCHER_INSTANCE, Methods.lShowWorkspace, -1, false, null);\n }\n });\n }\n }\n });\n }\n\n if (PreferencesHelper.changeGridSizeApps) {\n XposedBridge.hookAllConstructors(findClass(\"com.android.launcher3.allapps.FullMergeAlgorithm\", lpparam.classLoader), new XC_MethodHook() {\n @Override\n protected void beforeHookedMethod(MethodHookParam param) throws Throwable {\n if (Common.LAUNCHER_CONTEXT.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n setObjectField(Common.APP_DRAWER_INSTANCE, \"mNumAppsPerRow\", PreferencesHelper.xCountAllAppsHorizontal);\n setObjectField(Common.APP_DRAWER_INSTANCE, \"mNumPredictedAppsPerRow\", PreferencesHelper.xCountAllAppsHorizontal);\n } else {\n setObjectField(Common.APP_DRAWER_INSTANCE, \"mNumAppsPerRow\", PreferencesHelper.xCountAllAppsVertical);\n setObjectField(Common.APP_DRAWER_INSTANCE, \"mNumPredictedAppsPerRow\", PreferencesHelper.xCountAllAppsVertical);\n }\n }\n });\n }\n\n // hiding apps from the app drawer\n findAndHookMethod(Classes.AlphabeticalAppsList, \"onAppsUpdated\", new AllAppsListAddMHook());\n\n AddTabsAndFoldersM.initAllHooks(lpparam);\n }",
"private UnloadTestModelLoader() {\n registerProject(\"a\");\n registerProject(\"e\");\n registerProject(\"b\", \"e\");\n registerProject(\"c\");\n registerProject(\"d\");\n registerProject(\"f\");\n registerProject(\"p1\", \"a\", \"b\");\n registerProject(\"p2\", \"b\", \"c\");\n registerProject(\"p3\", \"b\", \"d\");\n registerProject(\"p4\", \"d\");\n }",
"public DimensionsContainer LoadDimensions () throws Exception {\n\t\t\n\t\t// Container\n\t\tDimensionsContainer dimensions = new DimensionsContainer ();\n\t\t\n\t\t\n\t\t// Get dimensions \n\t\tList<HierarchicalConfiguration<ImmutableNode>> customdimension = configuration.configurationsAt (\"dimensions(0).dimension\");\n\t\t\n\t \n\t // Load complex dimensions\n \tfor (DimensionInterface dimension : createCustomDimension (customdimension)) {\n \t\tdimensions.add (dimension);\n \t}\n\n\t \n\t // Return the dimensions\n\t return dimensions;\n\t \n\t}",
"public abstract List<Container> getContainers(TaskType t);",
"@Override\n public void loadCategories() {\n loadCategories(mFirstLoad, true);\n mFirstLoad = false;\n }",
"public void loadProducts() throws RetailException {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\ttry {\n\t\t\tif (!dataLoadedIndicator) {\n\t\t\t\tproductData = Collections.unmodifiableMap((Map<String, Product>) objectMapper.readValue(\n\t\t\t\t\t\tThread.currentThread().getContextClassLoader().getResourceAsStream(\"products.json\"),\n\t\t\t\t\t\tnew TypeReference<HashMap<String, Product>>() {\n\t\t\t\t\t\t}));\n\t\t\t\t// load properties file\n\t\t\t\tsalesTaxConfig = new Properties();\n\t\t\t\tsalesTaxConfig.load(Thread.currentThread().getContextClassLoader()\n\t\t\t\t\t\t.getResourceAsStream(\"sales_tax_entries.properties\"));\n\t\t\t\tdataLoadedIndicator = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"There was an exception trying to upoad product data {}\", e);\n\t\t\tthrow new RetailException(ErrorCodes.ERR_PRODUCT_DATA_LOAD_ERROR);\n\t\t}\n\t}",
"public ContainerUnloader getUnloader();",
"private void loadCatalog() {\n try {\n log.info(\"Attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint + \"...\");\n ThreadUtil.getApplicationThreadPool().execute(createThread());\n } catch (Exception e) {\n log.error(\"Error attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint, e);\n retry();\n }\n }",
"public void load() {\n\t}",
"private void loadClasses() {\n\t\tString[] classes = new String[] { \"com.sssprog.delicious.api.ApiAsyncTask\" };\n\t\tfor (String c : classes) {\n\t\t\ttry {\n\t\t\t\tClass.forName(c);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Before\n public void initCommon() {\n try {\n ResourceSetImpl _resourceSetImpl = new ResourceSetImpl();\n this.rs = _resourceSetImpl;\n String _basePath = this.getBasePath();\n String _translatePath = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/model/common/primitives/Primitives.isml\");\n String _plus = (_basePath + _translatePath);\n final URI uri = URI.createURI(_plus);\n final Resource resource = this.rs.createResource(uri);\n resource.load(CollectionLiterals.<Object, Object>emptyMap());\n String _basePath_1 = this.getBasePath();\n String _translatePath_1 = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/model/common/primitives/Constraints.isml\");\n String _plus_1 = (_basePath_1 + _translatePath_1);\n this.rs.createResource(URI.createURI(_plus_1)).load(CollectionLiterals.<Object, Object>emptyMap());\n String _basePath_2 = this.getBasePath();\n String _translatePath_2 = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/view/common/widgets/PrimitiveWidgets.isml\");\n String _plus_2 = (_basePath_2 + _translatePath_2);\n this.rs.createResource(URI.createURI(_plus_2)).load(CollectionLiterals.<Object, Object>emptyMap());\n String _basePath_3 = this.getBasePath();\n String _translatePath_3 = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/services/common/services/Persistence.isml\");\n String _plus_3 = (_basePath_3 + _translatePath_3);\n this.rs.createResource(URI.createURI(_plus_3)).load(CollectionLiterals.<Object, Object>emptyMap());\n } catch (Throwable _e) {\n throw Exceptions.sneakyThrow(_e);\n }\n }",
"@Override\r\n\tprotected void load() {\n\t\t\r\n\t}",
"void init() {\n List<Artifact> artifacts = null;\n final List<RepositoryInfo> infos = RepositoryPreferences.getInstance().getRepositoryInfos();\n for (final RepositoryInfo info : infos) {\n if (info.isLocal()) {\n final File localrepo = new File(info.getRepositoryPath() + File.separator\n + DEFAULT_GID_PREFIX.replace('.', '/'));\n if (localrepo.exists()) {\n artifacts = resolveArtifacts(new File(info.getRepositoryPath()), localrepo);\n }\n }\n }\n\n if (artifacts == null) {\n artifacts = new ArrayList<Artifact>(1);\n }\n\n populateLocalTree(artifacts);\n populateAppPane(model.getApps());\n }",
"public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n load(basedir);\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }",
"@Override\n\tpublic void loadService() {\n\t\t\n\t}",
"public void cleanOrphanDeployments() {\n log.info(\"Cleaning orphan Deployments...\");\n List<String> deploymentNames = getDeployments();\n for (String deploymentName : deploymentNames) {\n if (deploymentName.startsWith(Constants.BPG_APP_TYPE_LAUNCHER + \"-\") && !serviceExists(deploymentName)) {\n log.info(\"Cleaning orphan Deployment [Name] \" + deploymentName + \"...\");\n\n unregisterLauncherIfExistsByObjectName(deploymentName);\n\n if (!runtimeClient.deleteDeployment(deploymentName)) {\n log.error(\"Deployment deletion failed [Deployment Name] \" + deploymentName);\n }\n }\n }\n }",
"public void testFindContainersForLocation() {\n \t\t//should find the workspace root\n \t\tIWorkspaceRoot root = getWorkspace().getRoot();\n \t\tIContainer[] result = root.findContainersForLocation(root.getLocation());\n \t\tassertEquals(\"1.0\", 1, result.length);\n \t\tassertEquals(\"1.1\", root, result[0]);\n \t\t\n \t\t//deep linked resource\n \t\tIProject p1 = root.getProject(\"p1\");\n \t\tIProject p2 = root.getProject(\"p2\");\n \t\tIFolder parent = p2.getFolder(\"parent\");\n \t\tIFolder link = parent.getFolder(\"link\");\n \t\tensureExistsInWorkspace(new IResource[] {p1, p2, parent}, true);\n \t\ttry {\n \t\t\tlink.createLink(p1.getLocationURI(), IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t\tresult = root.findContainersForLocation(p1.getLocation());\n \t\tassertEquals(\"2.0\", 2, result.length);\n \t\tboolean p1Found = false, linkFound = false;\n \t\tfor (int i = 0; i < result.length; i++) {\n \t\t\tif (result[i].equals(p1))\n \t\t\t\tp1Found = true;\n \t\t\telse if (result[i].equals(link))\n \t\t\t\tlinkFound = true;\n \t\t}\n \t\tassertTrue(\"2.1\", p1Found);\n \t\tassertTrue(\"2.2\", linkFound);\n \t\t\n \t\t// TODO add more tests\n \t}",
"private static void loadStaticRuntimeOverlays(ArrayList<ApkAssets> outApkAssets) throws IOException {\n BufferedReader br;\n Throwable th;\n Throwable th2;\n try {\n FileInputStream fis = new FileInputStream(\"/data/resource-cache/overlays.list\");\n try {\n br = new BufferedReader(new InputStreamReader(fis));\n FileLock flock = fis.getChannel().lock(0, Long.MAX_VALUE, true);\n while (true) {\n String readLine = br.readLine();\n String line = readLine;\n if (readLine == null) {\n break;\n }\n String[] lineArray = line.split(\" \");\n if (lineArray != null) {\n if (lineArray.length >= 2) {\n outApkAssets.add(ApkAssets.loadOverlayFromPath(lineArray[1], true));\n }\n }\n }\n if (flock != null) {\n $closeResource(th, flock);\n }\n throw th2;\n } catch (Throwable th3) {\n IoUtils.closeQuietly(fis);\n throw th3;\n }\n } catch (FileNotFoundException e) {\n Log.i(TAG, \"no overlays.list file found\");\n }\n }",
"public Set<String> getContainers();",
"public void loadTemplates()\n {\n for (PageTemplate template : templates.values())\n {\n template.load(pageDirectory);\n }\n }",
"@Override\n\tprotected void load() {\n\n\t}",
"@Override\n\tprotected void load() {\n\n\t}",
"private void initializeBoot()\n {\n bootLoader = getClass().getClassLoader();\n\n // Get the home directory of the Java implementation we're being run by\n javaHomeDir = new File(System.getProperty(\"java.home\"));\n\n try {\n runtimeClassPath = getKnownJars(getBluejLibDir(), runtimeJars, false, numBuildJars);\n runtimeUserClassPath = getKnownJars(getBluejLibDir(), userJars, true, numUserBuildJars);\n }\n catch (Exception exc) {\n exc.printStackTrace();\n }\n }",
"Map<String,DataSource> load(Set<String> existsDataSourceNames) throws Exception;",
"public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tInfrastructurePackage theInfrastructurePackage = (InfrastructurePackage)EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI);\n\t\tOCCIPackage theOCCIPackage = (OCCIPackage)EPackage.Registry.INSTANCE.getEPackage(OCCIPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tcontainerEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tnetworklinkEClass.getESuperTypes().add(this.getLink());\n\t\tvolumesfromEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tcontainsEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tmachineEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tvolumeEClass.getESuperTypes().add(theInfrastructurePackage.getStorage());\n\t\tnetworkEClass.getESuperTypes().add(theInfrastructurePackage.getNetwork());\n\t\tmachinegenericEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineamazonec2EClass.getESuperTypes().add(this.getMachine());\n\t\tmachinedigitaloceanEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegooglecomputeengineEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineibmsoftlayerEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosoftazureEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosofthypervEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineopenstackEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinerackspaceEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevirtualboxEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarefusionEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevcloudairEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevsphereEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineexoscaleEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegrid5000EClass.getESuperTypes().add(this.getMachine());\n\t\tclusterEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(arrayOfStringEClass, ArrayOfString.class, \"ArrayOfString\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArrayOfString_Values(), ecorePackage.getEString(), \"values\", null, 0, -1, ArrayOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containerEClass, org.eclipse.cmf.occi.docker.Container.class, \"Container\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getContainer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Containerid(), ecorePackage.getEString(), \"containerid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Build(), ecorePackage.getEString(), \"build\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Command(), ecorePackage.getEString(), \"command\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ports(), ecorePackage.getEString(), \"ports\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Expose(), ecorePackage.getEString(), \"expose\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Volumes(), ecorePackage.getEString(), \"volumes\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Environment(), ecorePackage.getEString(), \"environment\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_EnvFile(), ecorePackage.getEString(), \"envFile\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Net(), ecorePackage.getEString(), \"net\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Dns(), ecorePackage.getEString(), \"dns\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DnsSearch(), ecorePackage.getEString(), \"dnsSearch\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapAdd(), ecorePackage.getEString(), \"capAdd\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapDrop(), ecorePackage.getEString(), \"capDrop\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_WorkingDir(), ecorePackage.getEString(), \"workingDir\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Entrypoint(), ecorePackage.getEString(), \"entrypoint\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemLimit(), ecorePackage.getEBigInteger(), \"memLimit\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemorySwap(), ecorePackage.getEBigInteger(), \"memorySwap\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Privileged(), ecorePackage.getEBoolean(), \"privileged\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Restart(), ecorePackage.getEString(), \"restart\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_StdinOpen(), ecorePackage.getEBoolean(), \"stdinOpen\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Interactive(), ecorePackage.getEBoolean(), \"interactive\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuShares(), ecorePackage.getEBigInteger(), \"cpuShares\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Pid(), ecorePackage.getEString(), \"pid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ipc(), ecorePackage.getEString(), \"ipc\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_AddHost(), ecorePackage.getEString(), \"addHost\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MacAddress(), theInfrastructurePackage.getMac(), \"macAddress\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Rm(), ecorePackage.getEBoolean(), \"rm\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_SecurityOpt(), ecorePackage.getEString(), \"securityOpt\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Device(), ecorePackage.getEString(), \"device\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_LxcConf(), ecorePackage.getEString(), \"lxcConf\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_PublishAll(), ecorePackage.getEBoolean(), \"publishAll\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_ReadOnly(), ecorePackage.getEBoolean(), \"readOnly\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Monitored(), ecorePackage.getEBoolean(), \"monitored\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuUsed(), ecorePackage.getEBigInteger(), \"cpuUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryUsed(), ecorePackage.getEBigInteger(), \"memoryUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuPercent(), ecorePackage.getEString(), \"cpuPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryPercent(), ecorePackage.getEString(), \"memoryPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskUsed(), ecorePackage.getEBigInteger(), \"diskUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskPercent(), ecorePackage.getEString(), \"diskPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthUsed(), ecorePackage.getEBigInteger(), \"bandwidthUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthPercent(), ecorePackage.getEString(), \"bandwidthPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MonitoringInterval(), ecorePackage.getEBigInteger(), \"monitoringInterval\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuMaxValue(), ecorePackage.getEBigInteger(), \"cpuMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryMaxValue(), ecorePackage.getEBigInteger(), \"memoryMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CoreMax(), ecorePackage.getEBigInteger(), \"coreMax\", \"1\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetCpus(), ecorePackage.getEString(), \"cpuSetCpus\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetMems(), ecorePackage.getEString(), \"cpuSetMems\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Tty(), ecorePackage.getEBoolean(), \"tty\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Create(), null, \"create\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Stop(), null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Run(), null, \"run\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Pause(), null, \"pause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Unpause(), null, \"unpause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getContainer__Kill__String(), null, \"kill\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"signal\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLink_Alias(), ecorePackage.getEString(), \"alias\", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networklinkEClass, Networklink.class, \"Networklink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(volumesfromEClass, Volumesfrom.class, \"Volumesfrom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolumesfrom_Mode(), this.getMode(), \"mode\", \"readWrite\", 0, 1, Volumesfrom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(machineEClass, Machine.class, \"Machine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachine_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInstallURL(), ecorePackage.getEString(), \"engineInstallURL\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineOpt(), ecorePackage.getEString(), \"engineOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInsecureRegistry(), ecorePackage.getEString(), \"engineInsecureRegistry\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineRegistryMirror(), ecorePackage.getEString(), \"engineRegistryMirror\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineLabel(), ecorePackage.getEString(), \"engineLabel\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineStorageDriver(), ecorePackage.getEString(), \"engineStorageDriver\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineEnv(), ecorePackage.getEString(), \"engineEnv\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_Swarm(), ecorePackage.getEBoolean(), \"swarm\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmImage(), ecorePackage.getEString(), \"swarmImage\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmMaster(), ecorePackage.getEBoolean(), \"swarmMaster\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmDiscovery(), ecorePackage.getEString(), \"swarmDiscovery\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmStrategy(), ecorePackage.getEString(), \"swarmStrategy\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmOpt(), ecorePackage.getEString(), \"swarmOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmHost(), ecorePackage.getEString(), \"swarmHost\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmAddr(), ecorePackage.getEString(), \"swarmAddr\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmExperimental(), ecorePackage.getEString(), \"swarmExperimental\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_TlsSan(), ecorePackage.getEString(), \"tlsSan\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMachine__Startall(), null, \"startall\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(volumeEClass, Volume.class, \"Volume\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolume_Driver(), ecorePackage.getEString(), \"driver\", \"local\", 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Labels(), ecorePackage.getEString(), \"labels\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Options(), ecorePackage.getEString(), \"options\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Source(), ecorePackage.getEString(), \"source\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Destination(), ecorePackage.getEString(), \"destination\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Mode(), ecorePackage.getEString(), \"mode\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Rw(), ecorePackage.getEString(), \"rw\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Propagation(), ecorePackage.getEString(), \"propagation\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networkEClass, Network.class, \"Network\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNetwork_NetworkId(), ecorePackage.getEString(), \"networkId\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_AuxAddress(), ecorePackage.getEString(), \"auxAddress\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Driver(), ecorePackage.getEString(), \"driver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Gateway(), ecorePackage.getEString(), \"gateway\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Internal(), ecorePackage.getEBoolean(), \"internal\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpRange(), ecorePackage.getEString(), \"ipRange\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamDriver(), ecorePackage.getEString(), \"ipamDriver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamOpt(), ecorePackage.getEString(), \"ipamOpt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Ipv6(), ecorePackage.getEBoolean(), \"ipv6\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Opt(), ecorePackage.getEString(), \"opt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegenericEClass, Machinegeneric.class, \"Machinegeneric\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegeneric_EnginePort(), ecorePackage.getEBigInteger(), \"enginePort\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_IpAddress(), ecorePackage.getEString(), \"ipAddress\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshKey(), ecorePackage.getEString(), \"sshKey\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineamazonec2EClass, Machineamazonec2.class, \"Machineamazonec2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineamazonec2_AccessKey(), ecorePackage.getEString(), \"accessKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Ami(), ecorePackage.getEString(), \"ami\", \"ami-4ae27e22\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_InstanceType(), ecorePackage.getEString(), \"instanceType\", \"t2.micro\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Region(), ecorePackage.getEString(), \"region\", \"us-east-1\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_RootSize(), ecorePackage.getEBigInteger(), \"rootSize\", \"16\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecretKey(), ecorePackage.getEString(), \"secretKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", \"docker-machine\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SessionToken(), ecorePackage.getEString(), \"sessionToken\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SubnetId(), ecorePackage.getEString(), \"subnetId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_VpcId(), ecorePackage.getEString(), \"vpcId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Zone(), ecorePackage.getEString(), \"zone\", \"a\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinedigitaloceanEClass, Machinedigitalocean.class, \"Machinedigitalocean\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinedigitalocean_AccessToken(), ecorePackage.getEString(), \"accessToken\", null, 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Image(), ecorePackage.getEString(), \"image\", \"docker\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Region(), ecorePackage.getEString(), \"region\", \"nyc3\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Size(), ecorePackage.getEString(), \"size\", \"512mb\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegooglecomputeengineEClass, Machinegooglecomputeengine.class, \"Machinegooglecomputeengine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Zone(), ecorePackage.getEString(), \"zone\", \"us-central1-a\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_MachineType(), ecorePackage.getEString(), \"machineType\", \"f1-micro\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Username(), ecorePackage.getEString(), \"username\", \"docker-user\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_InstanceName(), ecorePackage.getEString(), \"instanceName\", \"docker-machine\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Project(), ecorePackage.getEString(), \"project\", null, 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineibmsoftlayerEClass, Machineibmsoftlayer.class, \"Machineibmsoftlayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiEndpoint(), ecorePackage.getEString(), \"apiEndpoint\", \"api.softlayer.com/rest/v3\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Cpu(), ecorePackage.getEBigInteger(), \"cpu\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Domain(), ecorePackage.getEString(), \"domain\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_HourlyBilling(), ecorePackage.getEBoolean(), \"hourlyBilling\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Image(), ecorePackage.getEString(), \"image\", \"UBUNTU_LATEST\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_LocalDisk(), ecorePackage.getEBoolean(), \"localDisk\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateNetOnly(), ecorePackage.getEBoolean(), \"privateNetOnly\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PublicVlanId(), ecorePackage.getEString(), \"publicVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateVlanId(), ecorePackage.getEString(), \"privateVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosoftazureEClass, Machinemicrosoftazure.class, \"Machinemicrosoftazure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionId(), ecorePackage.getEString(), \"subscriptionId\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionCert(), ecorePackage.getEString(), \"subscriptionCert\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Environment(), ecorePackage.getEString(), \"environment\", \"AzurePublicCloud\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_MachineLocation(), ecorePackage.getEString(), \"machineLocation\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_ResourceGroup(), ecorePackage.getEString(), \"resourceGroup\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Size(), ecorePackage.getEString(), \"size\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Vnet(), ecorePackage.getEString(), \"vnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubnetPrefix(), ecorePackage.getEString(), \"subnetPrefix\", \"192.168.0.0/16\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_AvailabilitySet(), ecorePackage.getEString(), \"availabilitySet\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_OpenPort(), ecorePackage.getEBigInteger(), \"openPort\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_PrivateIpAddress(), ecorePackage.getEString(), \"privateIpAddress\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_NoPublicIp(), ecorePackage.getEString(), \"noPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_StaticPublicIp(), ecorePackage.getEString(), \"staticPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_DockerPort(), ecorePackage.getEString(), \"dockerPort\", \"2376\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_UsePrivateIp(), ecorePackage.getEString(), \"usePrivateIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosofthypervEClass, Machinemicrosofthyperv.class, \"Machinemicrosofthyperv\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VirtualSwitch(), ecorePackage.getEString(), \"virtualSwitch\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_StaticMacAddress(), theInfrastructurePackage.getMac(), \"staticMacAddress\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VlanId(), ecorePackage.getEString(), \"vlanId\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineopenstackEClass, Machineopenstack.class, \"Machineopenstack\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineopenstack_FlavorId(), ecorePackage.getEString(), \"flavorId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FlavorName(), ecorePackage.getEString(), \"flavorName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageId(), ecorePackage.getEString(), \"imageId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageName(), ecorePackage.getEString(), \"imageName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AuthUrl(), ecorePackage.getEString(), \"authUrl\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantName(), ecorePackage.getEString(), \"tenantName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantId(), ecorePackage.getEString(), \"tenantId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_EndpointType(), ecorePackage.getEString(), \"endpointType\", \"publicURL\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetId(), ecorePackage.getEString(), \"netId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetName(), ecorePackage.getEString(), \"netName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SecGroups(), ecorePackage.getEString(), \"secGroups\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FloatingIpPool(), ecorePackage.getEString(), \"floatingIpPool\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ActiveTimeOut(), ecorePackage.getEBigInteger(), \"activeTimeOut\", \"200\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainId(), ecorePackage.getEString(), \"domainId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Insecure(), ecorePackage.getEBoolean(), \"insecure\", \"false\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_IpVersion(), ecorePackage.getEBigInteger(), \"ipVersion\", \"4\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_KeypairName(), ecorePackage.getEString(), \"keypairName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_PrivateKeyFile(), ecorePackage.getEString(), \"privateKeyFile\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinerackspaceEClass, Machinerackspace.class, \"Machinerackspace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinerackspace_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_EndPointType(), ecorePackage.getEString(), \"endPointType\", \"publicURL\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ImageId(), ecorePackage.getEString(), \"imageId\", \"59a3fadd-93e7-4674-886a-64883e17115f\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_FlavorId(), ecorePackage.getEString(), \"flavorId\", \"general1-1\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_DockerInstall(), ecorePackage.getEBoolean(), \"dockerInstall\", \"true\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevirtualboxEClass, Machinevirtualbox.class, \"Machinevirtualbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevirtualbox_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostDNSResolver(), ecorePackage.getEBoolean(), \"hostDNSResolver\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ImportBoot2DockerVM(), ecorePackage.getEString(), \"importBoot2DockerVM\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyCIDR(), ecorePackage.getEString(), \"hostOnlyCIDR\", \"192.168.99.1/24\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICType(), ecorePackage.getEString(), \"hostOnlyNICType\", \"82540EM\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICPromisc(), ecorePackage.getEString(), \"hostOnlyNICPromisc\", \"deny\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoDNSProxy(), ecorePackage.getEBoolean(), \"noDNSProxy\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoVTXCheck(), ecorePackage.getEBoolean(), \"noVTXCheck\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ShareFolder(), ecorePackage.getEString(), \"shareFolder\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarefusionEClass, Machinevmwarefusion.class, \"Machinevmwarefusion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarefusion_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"1024\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevcloudairEClass, Machinevmwarevcloudair.class, \"Machinevmwarevcloudair\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Catalog(), ecorePackage.getEString(), \"catalog\", \"Public Catalog\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CatalogItem(), ecorePackage.getEString(), \"catalogItem\", \"Ubuntu Server 12.04 LTS (amd64 20140927)\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_ComputeId(), ecorePackage.getEString(), \"computeId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"1\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_DockerPort(), ecorePackage.getEBigInteger(), \"dockerPort\", \"2376\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Edgegateway(), ecorePackage.getEString(), \"edgegateway\", \"<vdcid>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VappName(), ecorePackage.getEString(), \"vappName\", \"<autogenerated>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Orgvdcnetwork(), ecorePackage.getEString(), \"orgvdcnetwork\", \"<vdcid>-default-routed\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Provision(), ecorePackage.getEBoolean(), \"provision\", \"true\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_PublicIp(), ecorePackage.getEString(), \"publicIp\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VdcId(), ecorePackage.getEString(), \"vdcId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevsphereEClass, Machinevmwarevsphere.class, \"Machinevmwarevsphere\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevsphere_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_ComputeIp(), ecorePackage.getEString(), \"computeIp\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"2\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datacenter(), ecorePackage.getEString(), \"datacenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datastore(), ecorePackage.getEString(), \"datastore\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Network(), ecorePackage.getEString(), \"network\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Pool(), ecorePackage.getEString(), \"pool\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Vcenter(), ecorePackage.getEString(), \"vcenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineexoscaleEClass, Machineexoscale.class, \"Machineexoscale\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineexoscale_Url(), ecorePackage.getEString(), \"url\", \"https://api.exoscale.ch/compute\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiSecretKey(), ecorePackage.getEString(), \"apiSecretKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_InstanceProfile(), ecorePackage.getEString(), \"instanceProfile\", \"small\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_Image(), ecorePackage.getEString(), \"image\", \"ubuntu-16.04\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SshUser(), ecorePackage.getEString(), \"sshUser\", \"ubuntu\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_UserData(), ecorePackage.getEString(), \"userData\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AffinityGroup(), ecorePackage.getEString(), \"affinityGroup\", \"docker-machine\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegrid5000EClass, Machinegrid5000.class, \"Machinegrid5000\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegrid5000_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Site(), ecorePackage.getEString(), \"site\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Walltime(), ecorePackage.getEString(), \"walltime\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPrivateKey(), ecorePackage.getEString(), \"sshPrivateKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPublicKey(), ecorePackage.getEString(), \"sshPublicKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_ResourceProperties(), ecorePackage.getEString(), \"resourceProperties\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_UseJobReservation(), ecorePackage.getEString(), \"useJobReservation\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_HostToProvision(), ecorePackage.getEString(), \"hostToProvision\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clusterEClass, Cluster.class, \"Cluster\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCluster_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Cluster.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(modeEEnum, Mode.class, \"Mode\");\n\t\taddEEnumLiteral(modeEEnum, Mode.READ_WRITE);\n\t\taddEEnumLiteral(modeEEnum, Mode.READ);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}",
"public HashMap<String,HashSet<String>> loadTypes(String commonTypeInstanceFile) throws Exception;",
"private void initializeImpl() {\n if (initialized) {\n return;\n }\n initFields();\n\n final List<ProjectScope> currentProjects;\n final ProjectScope allProjects;\n CsmObject refObject = getReferencedObject();\n CsmProject refObjectPrj = null;\n if (CsmKindUtilities.isOffsetable(refObject)) {\n CsmFile refObjFile = ((CsmOffsetable)refObject).getContainingFile();\n if (refObjFile != null) {\n refObjectPrj = refObjFile.getProject();\n }\n }\n if ((refObject != null) && !CsmKindUtilities.isLocalVariable(refObject)) {\n Collection<Project> ps = CsmRefactoringUtils.getContextProjects(this.origObject);\n if (!ps.isEmpty()) {\n defaultScope = Scope.USER_SPECIFIED;\n currentProjects = new ArrayList<>();\n Icon icon = null;\n for (Project p : ps) {\n ProjectInformation pi = ProjectUtils.getInformation(p);\n icon = pi.getIcon();\n CsmProject prj = CsmModelAccessor.getModel().getProject(p);\n ProjectScope prjScope = new ProjectScope(new JLabel(pi.getDisplayName(), icon, SwingConstants.LEFT), prj);\n currentProjects.add(prjScope);\n }\n allProjects = new ProjectScope(new JLabel(NbBundle.getMessage(WhereUsedPanel.class, \"LBL_AllProjects\"), icon, SwingConstants.LEFT), null); // NOI18N\n } else {\n defaultScope = Scope.ALL;\n currentProjects = null;\n allProjects = null;\n }\n } else if (CsmKindUtilities.isLocalVariable(refObject) && refObjectPrj != null) {\n defaultScope = Scope.CURRENT;\n ProjectScope prjScope = new ProjectScope(null, refObjectPrj);\n currentProjects = new ArrayList<>();\n currentProjects.add(prjScope);\n allProjects = null;\n } else {\n defaultScope = Scope.ALL;\n currentProjects = null;\n allProjects = null;\n }\n String labelText;\n String _isBaseClassText = null;\n boolean _needVirtualMethodPanel = false;\n boolean _needClassPanel = false;\n if (CsmKindUtilities.isMethod(refObject)) {\n CsmMethod method = (CsmMethod) CsmBaseUtilities.getFunctionDeclaration((CsmFunction) refObject);\n// CsmVisibility vis = ((CsmMember)refObject).getVisibility();\n String functionDisplayName = CsmDisplayUtilities.htmlize(method.getSignature().toString());\n methodDeclaringClass = method.getContainingClass();\n String displayClassName = methodDeclaringClass.getName().toString();\n labelText = getString(\"DSC_MethodUsages\", functionDisplayName, displayClassName); // NOI18N\n CsmVirtualInfoQuery query = CsmVirtualInfoQuery.getDefault();\n if (query.isVirtual(method)) {\n Collection<CsmMethod> baseMethods = query.getTopmostBaseDeclarations(method);\n // use only the first for now\n baseVirtualMethod = baseMethods.isEmpty() ? method : baseMethods.iterator().next();\n assert baseVirtualMethod != null : \"virtual method must have start virtual declaration\";\n methodDeclaringSuperClass = baseVirtualMethod.getContainingClass();\n if (!method.equals(baseVirtualMethod)) {\n _isBaseClassText = getString(\"LBL_UsagesOfBaseClass\", methodDeclaringSuperClass.getName().toString()); // NOI18N\n }\n _needVirtualMethodPanel = true;\n }\n } else if (CsmKindUtilities.isFunction(refObject)) {\n String functionFQN = ((CsmFunction)refObject).getSignature().toString();\n functionFQN = CsmDisplayUtilities.htmlize(functionFQN);\n labelText = getString(\"DSC_FunctionUsages\", functionFQN); // NOI18N\n } else if (CsmKindUtilities.isClass(refObject)) {\n CsmDeclaration.Kind classKind = ((CsmDeclaration)refObject).getKind();\n String key;\n if (classKind == CsmDeclaration.Kind.STRUCT) {\n key = \"DSC_StructUsages\"; // NOI18N\n } else if (classKind == CsmDeclaration.Kind.UNION) {\n key = \"DSC_UnionUsages\"; // NOI18N\n } else {\n key = \"DSC_ClassUsages\"; // NOI18N\n }\n labelText = getString(key, ((CsmClassifier)refObject).getQualifiedName().toString());\n _needClassPanel = true;\n } else if (CsmKindUtilities.isTypedef(refObject)) {\n String tdName = ((CsmTypedef)refObject).getQualifiedName().toString();\n labelText = getString(\"DSC_TypedefUsages\", tdName); // NOI18N\n } else if (CsmKindUtilities.isTypeAlias(refObject)) {\n String taName = ((CsmTypeAlias)refObject).getQualifiedName().toString();\n labelText = getString(\"DSC_TypeAliasUsages\", taName); // NOI18N \n } else if (CsmKindUtilities.isEnum(refObject)) {\n labelText = getString(\"DSC_EnumUsages\", ((CsmEnum)refObject).getQualifiedName().toString()); // NOI18N\n } else if (CsmKindUtilities.isEnumerator(refObject)) {\n CsmEnumerator enmtr = ((CsmEnumerator)refObject);\n labelText = getString(\"DSC_EnumeratorUsages\", enmtr.getName().toString(), enmtr.getEnumeration().getName().toString()); // NOI18N\n } else if (CsmKindUtilities.isField(refObject)) {\n String fieldName = ((CsmField)refObject).getName().toString();\n String displayClassName = ((CsmField)refObject).getContainingClass().getName().toString();\n labelText = getString(\"DSC_FieldUsages\", fieldName, displayClassName); // NOI18N\n } else if (CsmKindUtilities.isVariable(refObject)) {\n String varName = ((CsmVariable)refObject).getName().toString();\n labelText = getString(\"DSC_VariableUsages\", varName); // NOI18N\n } else if (CsmKindUtilities.isFile(refObject)) {\n String fileName = ((CsmFile)refObject).getName().toString();\n labelText = getString(\"DSC_FileUsages\", fileName); // NOI18N\n } else if (CsmKindUtilities.isNamespace(refObject)) {\n String nsName = ((CsmNamespace)refObject).getQualifiedName().toString();\n labelText = getString(\"DSC_NamespaceUsages\", nsName); // NOI18N\n// } else if (element.getKind() == ElementKind.CONSTRUCTOR) {\n// String methodName = element.getName();\n// String className = getClassName(element);\n// labelText = getFormattedString(\"DSC_ConstructorUsages\", methodName, className); // NOI18N\n } else if (CsmKindUtilities.isMacro(refObject)) {\n StringBuilder macroName = new StringBuilder(((CsmMacro)refObject).getName());\n if (((CsmMacro)refObject).getParameters() != null) {\n macroName.append(\"(\"); // NOI18N\n Iterator<CharSequence> params = ((CsmMacro)refObject).getParameters().iterator();\n if (params.hasNext()) {\n macroName.append(params.next());\n while (params.hasNext()) {\n macroName.append(\", \"); // NOI18N\n macroName.append(params.next());\n }\n }\n macroName.append(\")\"); // NOI18N\n }\n labelText = getString(\"DSC_MacroUsages\", macroName.toString()); // NOI18N\n } else if (CsmKindUtilities.isQualified(refObject)) {\n labelText = ((CsmQualifiedNamedElement)refObject).getQualifiedName().toString();\n } else if (refObject != null) {\n labelText = this.name;\n } else {\n labelText = getString(\"DSC_ElNotAvail\", this.name); // NOI18N\n }\n\n final StringBuilder buf = new StringBuilder();\n int col = 0;\n for(int i = 0; i < labelText.length(); i++) {\n char c = labelText.charAt(i);\n col++;\n buf.append(c);\n if (col > 72 && (c == ' ' || c == ',')) { // NOI18N\n buf.append(\"<br>\"); // NOI18N\n col = 0;\n }\n }\n\n if (refObject != null) {\n this.name = labelText;\n }\n \n// final Set<Modifier> modifiers = modif;\n final String isBaseClassText = _isBaseClassText;\n final boolean showMethodPanel = _needVirtualMethodPanel;\n final boolean showClassPanel = _needClassPanel;\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n remove(classesPanel);\n remove(methodsPanel);\n label.setText(buf.toString());\n // WARNING for now since this feature is not ready yet\n// String combinedLabelText = \"<html><font style=\\\"color: red\\\">WARNING: This feature is in development and inaccurate!</font><br><br>\" + labelText + \"</html>\"; // NOI18N\n// label.setText(combinedLabelText);\n if (showMethodPanel) {\n add(methodsPanel, BorderLayout.CENTER);\n methodsPanel.setVisible(true);\n if (isBaseClassText != null) {\n Mnemonics.setLocalizedText(m_isBaseClass, isBaseClassText);\n m_isBaseClass.setVisible(true);\n m_isBaseClass.setSelected(true);\n } else {\n m_isBaseClass.setVisible(false);\n m_isBaseClass.setSelected(false);\n }\n// if (methodDeclaringSuperClass != null) {\n// m_overriders.setVisible(true);\n// m_isBaseClass.setVisible(true);\n// m_isBaseClass.setSelected(true);\n// Mnemonics.setLocalizedText(m_isBaseClass, isBaseClassText);\n// } else {\n// m_overriders.setVisible(false);\n// m_isBaseClass.setVisible(false);\n// m_isBaseClass.setSelected(false);\n// } \n } else if (showClassPanel) {\n add(classesPanel, BorderLayout.CENTER);\n classesPanel.setVisible(true); \n } else {\n// if (element.getKind() == ElementKind.METHOD) {\n// add(methodsPanel, BorderLayout.CENTER);\n// methodsPanel.setVisible(true);\n// m_usages.setVisible(!modifiers.contains(Modifier.STATIC));\n// // TODO - worry about frozen?\n// m_overriders.setVisible(modifiers.contains(Modifier.STATIC) || modifiers.contains(Modifier.PRIVATE));\n// if (methodDeclaringSuperClass != null) {\n// m_isBaseClass.setVisible(true);\n// m_isBaseClass.setSelected(true);\n// Mnemonics.setLocalizedText(m_isBaseClass, isBaseClassText);\n// } else {\n// m_isBaseClass.setVisible(false);\n// m_isBaseClass.setSelected(false);\n// }\n// } else if ((element.getKind() == ElementKind.CLASS) || (element.getKind() == ElementKind.MODULE)) {\n// add(classesPanel, BorderLayout.CENTER);\n// classesPanel.setVisible(true);\n// } else {\n// remove(classesPanel);\n// remove(methodsPanel);\n// c_subclasses.setVisible(false);\n// m_usages.setVisible(false);\n// c_usages.setVisible(false);\n// c_directOnly.setVisible(false);\n }\n if (currentProjects != null) {\n Object[] model = new Object[currentProjects.size() + 1];\n model[0] = allProjects;\n for (int i = 0; i < currentProjects.size(); i++) {\n model[i+1] = currentProjects.get(i);\n }\n scope.setModel(new DefaultComboBoxModel(model));\n scope.setRenderer(new JLabelRenderer());\n if (defaultScope == Scope.CURRENT) {\n scopePanel.setVisible(false);\n scope.setSelectedIndex(1);\n } else {\n int defaultItem = (Integer) RefactoringModule.getOption(\"whereUsed.scope\", 0); // NOI18N\n scope.setSelectedIndex(defaultItem);\n }\n } else {\n scopePanel.setVisible(false);\n } \n validate();\n }\n });\n\n initialized = true;\n }",
"protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }",
"private void addAllDeploymentsAsFreeLaunchers() {\n List<String> deployments = getDeployments();\n log.info(\"Found \" + deployments.size() + \" deployments to be added\");\n for (String deployment : deployments) {\n if (runtimeClient.serviceExists(deployment)) {\n addFreeLauncher(deployment);\n } else {\n log.info(\"Deployment \" + deployment + \" doesn't have a Service that exposes it. Not adding as a launcher...\");\n }\n }\n }",
"Map<String, Object> getServiceSpecificObjects();",
"private void loadAssets()\n {\n assetManager.setErrorListener(this);\n // load texture atlas\n assetManager.load(Constants.TEXTURE_ATLAS_OBJECTS, TextureAtlas.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n // load texture atlas\n assetManager.load(Constants.TEXTURE_ATLAS_OBJECTS_02, TextureAtlas.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n // Load strings resource file\n assetManager.load(Constants.I18N_BUNDLE, I18NBundle.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n Gdx.app.debug(TAG, \"# of assets loaded: \" + assetManager.getAssetNames().size);\n }",
"private void collectCloud() {\n\t\ttry { \n\t\t\tcloud = ImageIO.read(getClass().getResourceAsStream(\"/img/tempCloud.png\"));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"The cloud file requested does not exist! Please fix this before contueing!\");\n\t\t}\n\t}",
"@Override\n\tpublic void noLoadCargo() {\n\n\t}",
"private void loadAllPane(){\n try {\n addNewScene = FXMLLoader.load(getClass().getResource(Constants.ADDNEW_FXML));\n passwordsLoader = new FXMLLoader(getClass().getResource(Constants.PASSWORDS_FXML));\n passwordsScene = passwordsLoader.load();\n generateScene = FXMLLoader.load(getClass().getResource(Constants.GENERATE_FXML));\n } catch (IOException e) {\n e.printStackTrace();\n }\n stackContent.getChildren().addAll(addNewScene, passwordsScene, generateScene);\n }",
"public static void load() {\n\n\t\ttry {\n\t\t\tnew Thread() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObjectDef.loadConfig();\n\t\t\t\t\t\tObjectConstants.declare();\n\t\t\t\t\t\tMapLoading.load();\n\t\t\t\t\t\tRegion.sort();\n\t\t\t\t\t\tObjectManager.declare();\n\t\t\t\t\t\tGameDefinitionLoader.loadNpcSpawns();\n\t\t\t\t\t\tNpc.spawnBosses();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}.start();\n\n\t\t\tGlobalItemHandler.spawn();\n\t\t\tTriviaBot.start();\n\t\t\tAchievements.declare();\n\n\t\t\tGameDefinitionLoader.loadItemValues();\n\t\t\tGameDefinitionLoader.loadNpcDefinitions();\n\t\t\tGameDefinitionLoader.loadItemDefinitions();\n\t\t\tGameDefinitionLoader.loadEquipmentDefinitions();\n\t\t\tGameDefinitionLoader.loadShopDefinitions();\n\t\t\tGameDefinitionLoader.setRequirements();\n\t\t\tGameDefinitionLoader.loadWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedStrengthDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadCombatSpellDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadNpcCombatDefinitions();\n\t\t\tGameDefinitionLoader.loadItemBonusDefinitions();\n\n\t\t\tNPCDrops.parseDrops().load();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void load() {\n\t\tspritesheet = new Spritesheet(\"src/de/kaffeeliebhaber/assets/pyxel/voland_spritesheet_new.png\", 32, 32);\n\t\tspritesheet.load();\n\t\t\n\t\t// load player\n\t\tAssetsLoader.loadPlayerAssets();\n\t\t\n\t\t// load crate\n\t\tAssetsLoader.loadCrates();\n\t\t\n\t\t// load item spritesheet \n\t\tspritesheetInventory = new Spritesheet(Config.ITEM_SPRITESHEET, Config.ITEM_SIZE, Config.ITEM_SIZE);\n\t\tspritesheetInventory.load();\n\t\t\n\t\t// load font \n\t\tloadFonts();\n\t\t\n\t\t// ui\n\t\timageUI = ImageLoader.loadImage(\"src/de/kaffeeliebhaber/assets/ui/ui.png\");\n\t\t\n\t\tAssetsLoader.loadInfoPaneAssets();\n\t\t\n\t\t// npc\n\t\tspritesheetNPC = new Spritesheet(\"src/de/kaffeeliebhaber/assets/AH_SpriteSheet_People1.png\", 16, 16);\n\t\tspritesheetNPC.load();\n\t\t\n\t\t// fox\n\t\tspritesheetNPCFox = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/72c68863962b7a6b5a9f5f5bcc5afb16.png\", 32, 32);\n\t\tspritesheetNPCFox.load();\n\n\t\t// *** LOAD NPCs\n\t\tAssetsLoader.loadFoxAssets();\n\t\t\n\t\tAssetsLoader.loadNPCs();\n\t\t\n\t\tspritesheetFemale = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/Female 01-1.png\", 32, 32);\n\t\tspritesheetFemale.load();\n\t}",
"public void load() {\n }",
"public static Containers<Integer, String> getContainers() {\n\t\t// TODO fix this function\n\t\t//do singleton thingy\n\t\tif (cont == null) {\n\t\t\tcont = new HW0Runner<Integer, String>();\n\t\t}\n\t\treturn cont;\n\t}",
"private void loadLab(){\n LabnameLabel.setText(\"Lab: \"+labDataCurrent.getName());\n System.out.println(\"set lab name\");\n \n // Load the networks \n for(int i = 0;i<labDataCurrent.getNetworks().size();i++){\n addNetworkPanel(labDataCurrent.getNetworks().get(i));\n }\n \n //Load the containers \n for(int i = 0;i<labDataCurrent.getContainers().size();i++){\n addContainerPanel(labDataCurrent.getContainers().get(i));\n }\n }",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"@Override\n\tprotected void load() {\n\t\t\n\t}"
] | [
"0.57520413",
"0.5627642",
"0.54487574",
"0.5448112",
"0.54384935",
"0.52219653",
"0.5182384",
"0.51569825",
"0.50685894",
"0.50453496",
"0.5025954",
"0.49814576",
"0.49131843",
"0.48947266",
"0.48799664",
"0.48733827",
"0.4859021",
"0.4841903",
"0.48309085",
"0.47729805",
"0.47727907",
"0.4754044",
"0.4740821",
"0.47317815",
"0.47175756",
"0.471293",
"0.4697675",
"0.4694016",
"0.46871933",
"0.46707302",
"0.46702728",
"0.46602228",
"0.46445414",
"0.46213248",
"0.45929563",
"0.45927855",
"0.45827198",
"0.45822364",
"0.45769945",
"0.45758128",
"0.4568625",
"0.45671216",
"0.45634392",
"0.45590338",
"0.45468926",
"0.4534831",
"0.45282996",
"0.45269445",
"0.45214126",
"0.45196414",
"0.4517765",
"0.45172793",
"0.4510299",
"0.45093808",
"0.45051178",
"0.45031333",
"0.45019677",
"0.44981226",
"0.44943327",
"0.4493763",
"0.44926244",
"0.44911152",
"0.44882143",
"0.4471927",
"0.44696516",
"0.44669816",
"0.44629565",
"0.44583213",
"0.44576132",
"0.4456871",
"0.4453777",
"0.44524646",
"0.44454312",
"0.44420105",
"0.44410056",
"0.44386163",
"0.44376332",
"0.4434373",
"0.44338495",
"0.44322953",
"0.44322953",
"0.4431704",
"0.4429473",
"0.44251728",
"0.44235232",
"0.44229513",
"0.4418249",
"0.44124937",
"0.44116405",
"0.44055513",
"0.44045737",
"0.4387555",
"0.43870303",
"0.43820164",
"0.43811128",
"0.43803614",
"0.4378929",
"0.43759307",
"0.43743816",
"0.43743816"
] | 0.55250716 | 2 |
Update the k8s_pods_containers table with number of Pods&Containers | public static void updatePodsAndContainers(final int envId, String compName, int numOfPods, String parentCompName, int numOfCont){
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
final int compId = getComponentId(compName, parentCompName);
if(compId == 0){
logger.info("Component Name = " + compName + "; Parent Component Name = " + parentCompName + "; is not available in the DB");
return;
}
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(HQLConstants.UPDATE_K8S_PODS_CONT_DETAILS);
query.setInteger("totalPods", numOfPods);
query.setInteger("totalContainers", numOfCont);
query.setLong("compId", compId);
query.setLong("environmentId", envId);
query.setDate("stsDate", todayDate);
query.executeUpdate();
txn.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn 0;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sPodsContainersEntity podStat = new K8sPodsContainersEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tpodStat.setEnvironment(environment);\n\t\tpodStat.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tpodStat.setComponent(component);\n\t\tpodStat.setTotalPods(numPods);\n\t\tpodStat.setTotalContainers(numCont);\n\t\tsession.save(podStat);\n\t\ttxn.commit();\n\t\treturn compId;\n\t}",
"protected void reconcile(PodSet podSet) {\n List<String> pods = podCountByLabel(APP_LABEL, podSet.getMetadata().getName());\n logger.info(\"reconcile() : Found {} number of Pods owned by PodSet {}\", pods.size(), podSet.getMetadata().getName());\n if (pods.isEmpty()) {\n createPods(podSet.getSpec().getReplicas(), podSet);\n return;\n }\n int existingPods = pods.size();\n\n // Compare it with desired state i.e spec.replicas\n // if less then spin up pods\n if (existingPods < podSet.getSpec().getReplicas()) {\n createPods(podSet.getSpec().getReplicas() - existingPods, podSet);\n }\n\n // If more pods then delete the pods\n int diff = existingPods - podSet.getSpec().getReplicas();\n for (; diff > 0; diff--) {\n String podName = pods.remove(0);\n kubernetesClient.pods().inNamespace(podSet.getMetadata().getNamespace()).withName(podName).delete();\n }\n\n // Update PodSet status\n updateAvailableReplicasInPodSetStatus(podSet, podSet.getSpec().getReplicas());\n }",
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"public int get_podsActuels() {\r\n\t\tint pods = 0;\r\n\t\tfor(Objet value : _items.values())\r\n\t\t{\r\n\t\t\tpods = value.getTemplate().getPod() * value.getQuantity(); \r\n\t\t}\r\n\t\treturn pods;\r\n\t}",
"public List<PodInfo> getStoredPods() {\n List<PodInfo> pods = new ArrayList<>();\n\n SearchResponse response = client.prepareSearch(\"k8s_*\").setTypes(\"pod\").setSize(10000).get();\n\n SearchHit[] hits = response.getHits().getHits();\n log.info(String.format(\"The length of pod search hits is [%d]\", hits.length));\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n for (SearchHit hit : hits) {\n// log.info(hit.getSourceAsString());\n PodInfo pod = mapper.readValue(hit.getSourceAsString(), PodInfo.class);\n pods.add(pod);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return pods;\n }",
"public static void updateObjPodss(int environmentId, String objName, ArrayList<Integer> podContList){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tString updateApiStsQry = null;\n\t\tupdateApiStsQry = HQLConstants.UPDATE_K8S_OBJECT_PODS;\n\t\t\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"pods\", podContList.get(0));\n\t\tquery.setInteger(\"containers\", podContList.get(1));\n\t\tquery.setString(\"objName\", objName);\n\t\tquery.setLong(\"environmentId\", environmentId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment that have the desired template spec.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"private void buildCoreTable(int k, int numEachPod) {\n\t\tfor (int c = 0; c < k * k / 4; c++) {\n\t\t\tint core = k * k * k / 4 + k * k + c;\n\n\t\t\t// create prefix table\n\t\t\tHashMap<Pair<Integer, Integer>, Integer> corePrefixTable = new HashMap<>();\n\t\t\tfor (int p = 0; p < k; p++) { \n\t\t\t\t// add prefix 10.p.0.0/16 and port p for core switch pointing to destination pod\n\t\t\t\tint offset = numEachPod * p;\n\t\t\t\tint agg = (c / (k / 2)) + k / 2 + k * k / 4 + offset;\n\t\t\t\tcorePrefixTable.put(new Pair<>(10, p), agg);\n\t\t\t}\n\t\t\tcorePrefixTables.put(core, corePrefixTable);\n\t\t}\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment (their labels match the selector).\")\n\n public Integer getReplicas() {\n return replicas;\n }",
"private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }",
"public static Map<String, Integer> getK8sObjPodsContDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_K8S_OBJECT_PODS);\n\t\tnumApisQuery.setParameter(\"environmentId\", envId);\n\t\tnumApisQuery.setParameter(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> objPodsList = numApisQuery.list();\n\t\tMap<String, Integer> mapObjPods = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : objPodsList) {\n\t\t\tmapObjPods.put((String)tRow[0], ((Integer)tRow[1]));\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapObjPods;\n\t}",
"int getProtectedPodCount();",
"@ApiModelProperty(required = true, value = \"The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.\")\n\n public Long getRefCount() {\n return refCount;\n }",
"private void updateDDCount(HashMap<String, Integer> countMap, Path p) {\n if (p.size() <= 1)\n return;\n HashMap<GroumNode, String> labelMap = p.getLabelMap();\n GroumNode end = p.get(p.size() - 1);\n for (int i = 0; i < p.size() - 1; i++) {\n GroumNode start = p.get(i);\n String lable = labelMap.get(start) + Path.API_SPLIT + labelMap.get(end);\n Integer count = hasDataDependency(start, end) ? 1 : 0;\n if (countMap.containsKey(lable)) {\n count += countMap.get(lable);\n }\n countMap.put(lable, count);\n }\n }",
"public void honourDesiredCount() {\n int totalDeploymentCount = getDeployments().size();\n// log.info(\"[Total count] \" + totalDeploymentCount + \" [Desired Count] \" + desiredCount);\n\n while (totalDeploymentCount < desiredCount) {\n log.info(\"Scaling UP: REASON -> [Total Count] \" + totalDeploymentCount + \" < [Desired Count] \" +\n desiredCount);\n\n scaleUp(\"honourDesiredCount\");\n totalDeploymentCount = getDeployments().size();\n }\n }",
"@BeforeAll\n public void deploySchema() {\n client.deploySchema(\n keyspaceId.asInternal(),\n \"type Counters @cql_input {\\n\"\n + \" k: Int! @cql_column(partitionKey: true)\\n\"\n + \" c: Counter\\n\"\n + \" c2: Counter\\n\"\n + \"}\\n\"\n + \"type ListCounters @cql_input {\\n\"\n + \" k: Int! @cql_column(partitionKey: true)\\n\"\n + \" l: [Int]\\n\"\n + \"}\\n\"\n + \"type Query { counters(k: Int!): Counters }\\n\"\n + \"type Mutation {\\n\"\n + \" updateCountersIncrement(\\n\"\n + \" k: Int\\n\"\n + \" cInc: Int @cql_increment(field: \\\"c\\\")\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"Counters\\\")\\n\"\n + \" updateTwoCountersIncrement(\\n\"\n + \" k: Int\\n\"\n + \" cInc: Int @cql_increment(field: \\\"c\\\")\\n\"\n + \" cInc2: Int @cql_increment(field: \\\"c2\\\")\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"Counters\\\")\\n\"\n + \" appendList(\\n\"\n + \" k: Int\\n\"\n + \" l: [Int] @cql_increment\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"ListCounters\\\")\\n\"\n + \" prependList(\\n\"\n + \" k: Int\\n\"\n + \" l: [Int] @cql_increment(prepend: true)\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"ListCounters\\\")\\n\"\n + \"}\");\n }",
"private void updateEntityCount(Pane pane) {\n int diff = entityCountBox.val - entities.size();\n if (diff > 0) {\n for (int i = 0; i < diff; i++) { createBoid(pane); }\n }\n else if (diff < 0) {\n ListIterator<Entity> it = entities.listIterator(entities.size()+diff);\n for (int i = diff; i < 0; i++) { it.next(); it.remove(); }\n pane.getChildren().remove(pane.getChildren().size()+diff, pane.getChildren().size());\n }\n }",
"public static Map<String, Integer> getK8sCurrContainerDetails(int envId, String platform) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria contCriteria = session.createCriteria(K8sPodsContainersEntity.class, \"contSts\");\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.statusDate\", todayDate ));\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sPodsContainersEntity> contEntityList = contCriteria.list();\n\t\tMap<String, Integer> mapContSts = new HashMap<String, Integer>();\n\t\tfor(K8sPodsContainersEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapContSts.put(fullAppName, contStsEntity.getTotalContainers());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapContSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainers());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapContSts;\n\t}",
"private void incrConnectionCount() {\n connectionCount.inc();\n }",
"public static void updateContainerDetails(final int envId, int compId, int numOfcont){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_CONTAINER_DETAILS);\n\t\tquery.setInteger(\"numOfContainers\", numOfcont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"public static void updateContainerDetails(final int envId, String compName, int numOfcont, String parentCompName, String platform){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tString updateApiStsQry = null;\n\t\tif(platform.equalsIgnoreCase(\"Mesos\")){\n\t\t\tupdateApiStsQry = HQLConstants.UPDATE_CONTAINER_DETAILS;\n\t\t}\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"numOfContainers\", numOfcont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"Update withReplicaCount(int count);",
"public static void updateZkWithJobCount(ZooKeeper zk, final Map<String, Integer> changeCountMap, boolean isAdd) {\n StringBuilder changeZNodePaths = new StringBuilder();\n try {\n if (zk == null || !zk.getState().isConnected()) {\n try {\n final CountDownLatch countDownLatch = new CountDownLatch(1);\n zk = new ZooKeeper(AiravataZKUtils.getZKhostPort(), 6000, new Watcher() {\n @Override\n public void process(WatchedEvent event) {\n countDownLatch.countDown();\n }\n });\n countDownLatch.await();\n } catch (ApplicationSettingsException e) {\n logger.error(\"Error while reading zookeeper hostport string\");\n } catch (IOException e) {\n logger.error(\"Error while reconnect attempt to zookeeper where zookeeper connection loss state\");\n }\n }\n\n for (String path : changeCountMap.keySet()) {\n if (isAdd) {\n CommonUtils.checkAndCreateZNode(zk, path);\n }\n byte[] byteData = zk.getData(path, null, null);\n String nodeData;\n if (byteData == null) {\n if (isAdd) {\n zk.setData(path, String.valueOf(changeCountMap.get(path)).getBytes(), -1);\n } else {\n // This is not possible, but we handle in case there any data zookeeper communication failure\n logger.warn(\"Couldn't reduce job count in \" + path + \" as it returns null data. Hence reset the job count to 0\");\n zk.setData(path, \"0\".getBytes(), -1);\n }\n } else {\n nodeData = new String(byteData);\n if (isAdd) {\n zk.setData(path, String.valueOf(changeCountMap.get(path) + Integer.parseInt(nodeData)).getBytes(), -1);\n } else {\n int previousCount = Integer.parseInt(nodeData);\n int removeCount = changeCountMap.get(path);\n if (previousCount >= removeCount) {\n zk.setData(path, String.valueOf(previousCount - removeCount).getBytes(), -1);\n } else {\n // This is not possible, do we need to reset the job count to 0 ?\n logger.error(\"Requested remove job count is \" + removeCount +\n \" which is higher than the existing job count \" + previousCount\n + \" in \" + path + \" path.\");\n }\n }\n }\n changeZNodePaths.append(path).append(\":\");\n }\n\n // update stat node to trigger orchestrator watchers\n if (changeCountMap.size() > 0) {\n changeZNodePaths.deleteCharAt(changeZNodePaths.length() - 1);\n zk.setData(\"/\" + Constants.STAT, changeZNodePaths.toString().getBytes(), -1);\n }\n } catch (KeeperException e) {\n logger.error(\"Error while writing job count to zookeeper\", e);\n } catch (InterruptedException e) {\n logger.error(\"Error while writing job count to zookeeper\", e);\n }\n\n }",
"public OpenIntIntHashMap getClusterSizes() {\n\n if (sizeMap != null) return sizeMap;\n\n sizeMap = new OpenIntIntHashMap();\n\n ValueIterator imageIterator = labelledVolume.valueIterator();\n //Map<Integer, Integer> sizes = new HashMap<Integer, Integer>();\n\n do {\n int label = (int) imageIterator.next();\n if (label > 0) {\n if (sizeMap.containsKey(label)) {\n int crt = sizeMap.get(label) + 1;\n sizeMap.put(label, crt);\n } else {\n sizeMap.put(label, 1);\n }\n }\n\n\n } while (imageIterator.hasNext());\n\n return sizeMap;\n }",
"private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}",
"public void changeInPortCount(int newPortCount) {\n\n\t\tList<String> portTerminals = new ArrayList<>();\n\t\tportTerminals.addAll(ports.keySet());\n\t\tfor (String key : portTerminals) {\n\t\t\tif (key.contains(\"in\")) {\n\t\t\t\tports.get(key).setNumberOfPortsOfThisType(newPortCount);\n\t\t\t}\n\t\t}\n\t\tsetInPortCount(newPortCount);\n\t}",
"public void setDataCounterLabel()\n\t{\n\t\tcurrentDataIndex= table.getCurrentDataIndex();\n\n\t\tnavPanel.setDataCounterLabel();\n\n\t\tfor (TablePanel subTablePanel:\tSubTablePanels.values()) {\n\t\t\ttry {\n\t\t\t\tsubTablePanel.parentIDChanged(table.getCurrentDataID());\n\t\t\t\tsubTablePanel.navPanel.updateControls();\n\t\t\t} catch (Exception e) {\n\t\t\t\tMainUIFrame.setStatusMessage(\"Error Updating data index: \"+e.getMessage());\n\t\t\t\tlogger.error(\"Error Updating data index: \",e);\n\t\t\t}\n\t\t}\n\t}",
"private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }",
"public int getContainerSize()\n {\n return cityContainer.size();\n }",
"void refreshNodeHostCount(int nodeHostCount);",
"void setReplicaCount(String clusterName, ClusterSpec clusterSpec, int replicaLimit);",
"int getUpdateCountsCount();",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n reqCount = (int) dataSnapshot.getChildrenCount();\n reqCount++;\n newcount+=reqCount;\n Log.d(\"REQUEST COUNT\", \"\"+reqCount);\n\n }",
"public void setNumberOfControllers(int value) {\n this.numberOfControllers = value;\n }",
"public void setNextClouds(int value) {\n this.nextClouds = value;\n }",
"public void incrementNumDeleteRequests() {\n this.numDeleteRequests.incrementAndGet();\n }",
"public void incrementKills(Firebase reference){\n reference.child(\"kills\").setValue(++kills);\n }",
"private void updateMetrics(ContainerStatus status) {\n if (status != null) {\n switch (status.getExitStatus()) {\n case SUCCESS:\n componentMetrics.containersSucceeded.incr();\n scheduler.getServiceMetrics().containersSucceeded.incr();\n return;\n case PREEMPTED:\n componentMetrics.containersPreempted.incr();\n scheduler.getServiceMetrics().containersPreempted.incr();\n break;\n case DISKS_FAILED:\n componentMetrics.containersDiskFailure.incr();\n scheduler.getServiceMetrics().containersDiskFailure.incr();\n break;\n default:\n break;\n }\n }\n\n // containersFailed include preempted, disks_failed etc.\n componentMetrics.containersFailed.incr();\n scheduler.getServiceMetrics().containersFailed.incr();\n\n if (status != null && Apps.shouldCountTowardsNodeBlacklisting(\n status.getExitStatus())) {\n String host = scheduler.getLiveInstances().get(status.getContainerId())\n .getNodeId().getHost();\n failureTracker.incNodeFailure(host);\n currentContainerFailure.getAndIncrement();\n }\n }",
"private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}",
"public void refreshQueueCount(){\n queueCountLabel.setText(\"Count: \" + String.valueOf(builder.size()));\n }",
"@PutMapping(\"/containers\")\n\tpublic Container updateContainer(@RequestBody Container container) {\n\t\tcontainerDAO.save(container);\n\t\t\n\t\treturn container;\n\t\t//despite postman returning the updated data, i could not get mysql to reflect the changes\n\t\t//until i added @Transactional to the \"save\" method in the Service layer. \n\t\t//i did not have any issues adding a container prior to adding @transactional, however\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.\")\n\n public Integer getCollisionCount() {\n return collisionCount;\n }",
"public void increaseCounter(UltraSearchSessions.Session session,\n HugeType type, long increment) {\n\n\n JSONObject result = session.get(TABLE, type.name());\n if(null == result){\n putCounter(session, type, increment);\n return;\n }\n\n\n JSONObject obj = new JSONObject();\n\n JSONObject fields = new JSONObject();\n JSONObject id = new JSONObject();\n id.put(\"increment\", increment);\n fields.put(\"ID\", id);\n\n obj.put(\"fields\", fields);\n session.putDoc(TABLE, type.name(), obj.toString());\n\n\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.\")\n\n public Integer getUpdatedReplicas() {\n return updatedReplicas;\n }",
"public void updateNumberOfVehicles() {\r\n numberOfVehicles = getVehicles().size();\r\n }",
"public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }",
"private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }",
"public int getNumberOfMultiUpdated(Identity owner, Map<String, Long> sinceTimes);",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }",
"int countByExample(ChangesetParentsExample example);",
"public static void increaseOrDecreasePellets(\n final ResourceMapping mapping) throws Exception {\n\n String containerId = ContainerInfo.getInstance().getContainerId();\n\n Map<String, ResourceMapping.FlakeInstance> flakes = null;\n\n Map<String, Integer> pelletsToIncrOrDecr = new HashMap<>();\n\n if (mapping.getDelta() == null) {\n ResourceMapping.ContainerInstance container\n = mapping.getContainer(containerId);\n if (container != null) {\n flakes = container.getFlakes();\n } else {\n LOGGER.warn(\"No pellets for this container.\");\n }\n\n for (Map.Entry<String, ResourceMapping.FlakeInstance> flake\n : flakes.entrySet()) {\n pelletsToIncrOrDecr.put(flake.getKey(),\n flake.getValue().getNumPelletInstances());\n }\n } else {\n Map<String, ResourceMappingDelta.FlakeInstanceDelta>\n modifiedFlakes = new HashMap<>();\n\n\n if (mapping.getDelta().getNewlyAddedFlakes(containerId) != null) {\n modifiedFlakes.putAll(\n mapping.getDelta().getNewlyAddedFlakes(containerId));\n }\n\n if (mapping.getDelta().getUpdatedFlakes(containerId) != null) {\n modifiedFlakes.putAll(\n mapping.getDelta().getUpdatedFlakes(containerId));\n }\n\n// if (mapping.getDelta().getRemovedFlakes(containerId) != null) {\n// modifiedFlakes.putAll(\n// mapping.getDelta().getRemovedFlakes(containerId));\n// }\n\n\n if (modifiedFlakes != null && modifiedFlakes.size() > 0) {\n flakes = new HashMap<>();\n\n for (Map.Entry<String, ResourceMappingDelta.FlakeInstanceDelta>\n fd : modifiedFlakes.entrySet()) {\n flakes.put(fd.getKey(), fd.getValue().getFlakeInstance());\n\n int diffPellets = fd.getValue().getNumInstancesAdded()\n - fd.getValue().getNumInstancesRemoved();\n\n LOGGER.info(\"Flake to update: INCR/DECR pellets by {}, \"\n + \"{}, {}\",\n fd.getValue().getNumInstancesAdded(),\n fd.getValue().getNumInstancesRemoved(),\n diffPellets);\n\n pelletsToIncrOrDecr.put(fd.getKey(), diffPellets);\n }\n } else {\n LOGGER.warn(\"No new pellets for this container.\");\n }\n }\n\n try {\n if (flakes != null) {\n for (Map.Entry<String, ResourceMapping.FlakeInstance> flakeEntry\n : flakes.entrySet()) {\n\n final String pid = flakeEntry.getKey();\n\n FlakeInfo info = RetryLoop.callWithRetry(RetryPolicyFactory\n .getDefaultPolicy(),\n new Callable<FlakeInfo>() {\n @Override\n public FlakeInfo call() throws Exception {\n return FlakeMonitor.getInstance()\n .getFlakeInfo(pid);\n }\n });\n LOGGER.info(\"Found Flake:{}\", info.getFlakeId());\n\n ResourceMapping.FlakeInstance flakeInstance\n = flakeEntry.getValue();\n\n TPellet pellet = mapping.getFloeApp().get_pellets()\n .get(flakeInstance.getCorrespondingPelletId());\n\n byte[] activeAlternate = pellet.get_alternates().get(\n pellet.get_activeAlternate()\n ).get_serializedPellet();\n\n int diffPellets = pelletsToIncrOrDecr.get(pid);\n LOGGER.info(\"Creating {} instances.\", diffPellets);\n\n if (diffPellets > 0) {\n //TO INCREMENT.\n LOGGER.info(\"Incrementing pellet instances for flake: \"\n + \"{} by {}\", info.getFlakeId(), diffPellets);\n for (int i = 0; i < diffPellets; i++) {\n ContainerUtils.sendIncrementPelletCommand(\n info.getFlakeId(),\n activeAlternate\n );\n }\n } else if (diffPellets < 0) {\n //TO Decrement.\n diffPellets = Math.abs(diffPellets);\n LOGGER.info(\"Decrementing pellet instances for flake: \"\n + \"{} by {}\", info.getFlakeId(), diffPellets);\n for (int i = 0; i < diffPellets; i++) {\n ContainerUtils.sendDecrementPelletCommand(\n info.getFlakeId()\n );\n }\n }\n }\n }\n } catch (Exception ex) {\n LOGGER.error(\"Could not update flake. {}\", ex);\n }\n }",
"private int rebuild() {\n String rebuildPath = \"/graphs/hugegraph/jobs/rebuild/indexlabels\";\n String personByCity = \"personByCity\";\n Map<String, Object> params = ImmutableMap.of();\n Response r = client().put(rebuildPath, personByCity, \"\", params);\n String content = assertResponseStatus(202, r);\n return assertJsonContains(content, \"task_id\");\n }",
"public int container_size(RTContainer a){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0)\n\t\t\treturn a.getDecompGoals().size();\n\t\telse\n\t\t\treturn a.getDecompPlans().size();\n\t}",
"public void incrMetaCacheNumClearServer() {\n metaCacheNumClearServer.inc();\n }",
"@ApiModelProperty(required = true, value = \"replicas is the number of Pods created by the StatefulSet controller.\")\n\n public Integer getReplicas() {\n return replicas;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.\")\n\n public Integer getUnavailableReplicas() {\n return unavailableReplicas;\n }",
"int getTablesCount();",
"public void setNumObjects(int x)\n\t{\n\t\tthis.numObjects = x;\n\t}",
"long countPostings() {\n \tlong result = 0;\n \tfor (Layer layer : layers.values())\n \t\tresult += layer.size();\n \treturn result;\n }",
"public void incrementNumModifyRequests() {\n this.numModifyRequests.incrementAndGet();\n }",
"public int size() {\r\n\t\tint size = 0;\r\n\t\tfor (Integer key : connectionLists.keySet()) {\r\n\t\t\tsize += connectionLists.get(key).size();\r\n\t\t}\r\n\t\treturn size;\r\n\t}",
"private void _updateCount(int classType) {\n int subClass, superClass;\n\n instances_[classType].count++;\n subClass = classType;\n while ( (superClass = CLASS_INFO[subClass][INDEX_SUPER]) != CS_C_NULL) {\n instances_[superClass].count++;\n subClass = superClass;\n }\n }",
"public void changeOutPortCount(int newPortCount) {\n\n\t\tList<String> portTerminals = new ArrayList<>();\n\t\tportTerminals.addAll(ports.keySet());\n\t\tfor (String key : portTerminals) {\n\t\t\tif (key.contains(\"out\")) {\n\t\t\t\tports.get(key).setNumberOfPortsOfThisType(newPortCount);\n\t\t\t}\n\t\t}\n\t\tsetOutPortCount(newPortCount);\n\t}",
"public int size() {\n return this.container.length;\n }",
"void incrementAddedCount() {\n addedCount.incrementAndGet();\n }",
"public void incrementNumModifyDNRequests() {\n this.numModifyDNRequests.incrementAndGet();\n }",
"WithCreate withReplicaCount(int count);",
"public void updateCounts() {\n\n Map<Feel, Integer> counts_of = new HashMap<>();\n\n for (Feel feeling : Feel.values()) {\n counts_of.put(feeling, 0);\n }\n\n for (FeelingRecord record : this.records) {\n counts_of.put(record.getFeeling(), counts_of.get(record.getFeeling()) + 1);\n }\n\n this.angry_count.setText(\"Anger: \" + counts_of.get(Feel.ANGER).toString());\n this.fear_count.setText(\"Fear: \" + counts_of.get(Feel.FEAR).toString());\n this.joyful_count.setText(\"Joy: \" + counts_of.get(Feel.JOY).toString());\n this.love_count.setText(\"Love: \" + counts_of.get(Feel.LOVE).toString());\n this.sad_count.setText(\"Sad:\" + counts_of.get(Feel.SADNESS).toString());\n this.suprise_count.setText(\"Suprise: \" + counts_of.get(Feel.SURPRISE).toString());\n }",
"@Override\n public int getSize() {\n return nodos.size();\n }",
"private int countProductsInCart_UPDATED() {\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n int count, value;\n count = 0;\n List<WebElement> cakes = getDriver().findElements(By.xpath(\"//*[text()='Edit Your Cake']\"));\n List<WebElement> sthAndCnC = getDriver().findElements(By.xpath(\"//*[starts-with(@id, 'basketBody_') and @type='number']\"));\n System.out.println(\" === adding \" + cakes.size() + \" cakes to count\");\n count += cakes.size();\n for (WebElement product : sthAndCnC) {\n if ((!product.getAttribute(\"value\").equals(\"\")) && (product.getAttribute(\"value\") != null)) {\n String checkForLB = product.getAttribute(\"data-qtyincrement\");\n if (checkForLB.contains(\"0.\")) { //To validate for LB(s) items\n value = 1;\n } else {\n value = Integer.valueOf(product.getAttribute(\"value\"));\n }\n System.out.println(\"=== adding \" + value + \" cnc or sth item to cart\");\n count += value;\n } else {\n System.out.println(\"=== error adding product quantity\");\n }\n }\n System.out.println(\" === Count was: \" + count);\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n return count;\n }",
"@RequestMapping(value = \"/icga/getJASONforProjectWiseControlList.html\", method = RequestMethod.POST)\n public @ResponseBody\n JasonBean getProjectWiseControlCountList(HttpServletRequest request) {\n logger.debug(\"Project Wise Control List Controller \");\n String page = request.getParameter(\"page\") != null ? request.getParameter(\"page\") : \"1\";\n String rp = request.getParameter(\"rp\") != null ? request.getParameter(\"rp\") : \"10\";\n String sortname = request.getParameter(\"sortname\") != null ? request.getParameter(\"sortname\") : \"projectName\";\n String sortorder = request.getParameter(\"sortorder\") != null ? request.getParameter(\"sortorder\") : \"desc\";\n String query = request.getParameter(\"query\") != null ? request.getParameter(\"query\") : \"false\";\n String qtype = request.getParameter(\"qtype\") != null ? request.getParameter(\"qtype\") : \"false\";\n String controlIdsListAsString = request.getParameter(\"controlId\") != null ? request.getParameter(\"controlId\") : \"\";\n\n String tableName = request.getParameter(\"tableName\") != null ? request.getParameter(\"tableName\") : \"\";\n\n List dbColumnList = TransactionSearchController.getDbColumnHeaderList(request,tableName);\n sortname = dbColumnList!= null? RealTimeMonitoringController.getDbColumnNameByRef(dbColumnList,sortname): null;\n logger.debug(\"SMN: controlIdsListAsString=\"+controlIdsListAsString);\n\n List dbColumnHeaderList = new ArrayList();\n JasonBean jasonData = new JasonBean();\n\n int totalItems = 0 ;\n List<Cell> entry = new ArrayList<Cell>();\n List trxSearchList = new ArrayList<Control>();\n GlobalTransactionSearch globalTransactionSearch = new GlobalTransactionSearch();\n try {\n\n totalItems = adminJdbcService.getProjectWiseCountByControlIds(controlIdsListAsString,getStringForComparingControls(controlIdsListAsString),\n qtype, query, sortname, sortorder);\n trxSearchList = adminJdbcService.getProjectWiseCountListByControlIds(controlIdsListAsString,getStringForComparingControls(controlIdsListAsString),\n Utils.parseInteger(page),\"max\".equals(rp) ? totalItems : Utils.parseInteger(rp),qtype, query, sortname, sortorder);\n\n logger.debug(\"TOTAL count---\"+totalItems+\" page=\"+page+\" rp=\"+rp);\n if(\"max\".equals(rp)){\n TransactionSearchController.setTotalListSizeAndListInSession(totalItems,trxSearchList,request);\n jasonData.setTotal(totalItems);\n }else{\n if(trxSearchList != null) {\n int count=0;\n logger.debug(\"trxSearchList size=\"+trxSearchList.size());\n jasonData.setPage(Utils.parseInteger(page));\n for(Object obj : trxSearchList) {\n RealTimeProject realTimeProject = new RealTimeProject();\n Cell cell = new Cell();\n Map map = (Map) obj;\n\n realTimeProject.setProjectName(map.get(\"project\") != null ? map.get(\"project\").toString() : \"\");\n realTimeProject.setTransactionIds(map.get(\"transaction_ids\") != null ? map.get(\"transaction_ids\").toString() : \"\");\n realTimeProject.setTotal(map.get(\"total\") != null ? map.get(\"total\").toString() : \"\");\n realTimeProject.setProjectType(map.get(\"projectType\") != null ? map.get(\"projectType\").toString() : \"\");\n realTimeProject.setProjectId(map.get(\"projectId\") != null ? map.get(\"projectId\").toString() : \"\");\n\n cell.setId(count++);\n cell.setCell(realTimeProject);\n entry.add(cell);\n }\n\n Map mapForHeader = new HashMap();\n mapForHeader.put(\"projectName\",\"project\"); // key=flexigrid parameter name, value = dbField Name\n mapForHeader.put(\"transactionIds\",\"transaction_ids\");\n mapForHeader.put(\"total\",\"total\");\n mapForHeader.put(\"projectId\",\"projectId\");\n mapForHeader.put(\"projectType\",\"projectType\");\n dbColumnHeaderList.add(mapForHeader);\n request.getSession().setAttribute(tableName,dbColumnHeaderList);\n\n jasonData.setRows(entry);\n jasonData.setTotal(totalItems);\n jasonData.setDbColumnHeader(dbColumnHeaderList);\n } else {\n logger.debug(\"No Transaction Search List Found\");\n }\n }\n\n }catch (Exception ex) {\n logger.debug(\"CERROR:Project Wise Control Exception : \" + ex);\n }\n\n return jasonData;\n\n }",
"void setNoOfBuckets(int noOfBuckets);",
"public int countPoolMaps(){\n\n\t\treturn poolMaps.size();\n\t}",
"WithReplicasAndCreate withPartitionCount(int count);",
"private void buildAggTable(int k, int numEachPod) {\n\t\tfor (int p = 0; p < k; p++) {\n\t\t\tint offset = numEachPod * p;\n\t\t\tfor (int a = 0; a < k / 2; a++) {\n\t\t\t\tint aggSwitch = offset + k * k / 4 + k / 2 + a;\n\n\t\t\t\t// create suffix table\n\t\t\t\tMap<Integer, Integer> suffixTable = new HashMap<>();\n\t\t\t\tfor (int suffix = 2; suffix <= k / 2 + 1; suffix++) { \n\t\t\t\t\t// add suffix 0.0.0.suffix/8 and port (suffix + a - 2) % (k / 2) for each aggregation switch\n\t\t\t\t\tint core = a * k / 2 + (suffix + a - 2) % (k / 2) + numEachPod * k;\n\t\t\t\t\tsuffixTable.put(suffix, core);\n\t\t\t\t}\t\t\n \n\t\t\t\tsuffixTables.put(aggSwitch, suffixTable);\n\n\t\t\t\t// create prefix table\n\t\t\t\tMap<javatuples.Triplet<Integer, Integer, Integer>, Integer> prefixTable = new HashMap<>();\n\t\t\t\tfor (int e = 0; e < k / 2; e++) { // e denotes the subnet number\n\t\t\t\t\t// add prefix 10.p.e.0/24 and port e for each edge switch\n\t\t\t\t\tint edgeSwitch = offset + k * k / 4 + e;\n\t\t\t\t\tprefixTable.put(new javatuples.Triplet<>(10, p, e), edgeSwitch);\n\t\t\t\t}\n \n\t\t\t\tprefixTables.put(aggSwitch, prefixTable);\n\t\t\t}\n\t\t}\n\t}",
"public void incrementKills() {\n stats.put(killsKey, (Integer)stats.get(killsKey)+1);\n }",
"public static int getNumberCreated() {\n return numberOfPools;\n }",
"public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}",
"@Override\r\n\tpublic int resourcesCount(Map<String, Object> map) {\n\t\treturn resourcesDao.resourcesCount(map);\r\n\t}",
"int getNodeStatusListCount();",
"int getDatabasesCount();",
"@Test\n public void testGetTables() throws Exception {\n Map<String, Long> tableCounts = managementService.getTableCount();\n\n CloseableHttpResponse response = executeRequest(new HttpGet(SERVER_URL_PREFIX + RestUrls.createRelativeResourceUrl(RestUrls.URL_TABLES_COLLECTION)),\n HttpStatus.SC_OK);\n\n // Check table array\n JsonNode responseNode = objectMapper.readTree(response.getEntity().getContent());\n closeResponse(response);\n assertThat(responseNode).isNotNull();\n assertThat(responseNode.isArray()).isTrue();\n assertThat(responseNode).hasSize(tableCounts.size());\n\n for (int i = 0; i < responseNode.size(); i++) {\n ObjectNode table = (ObjectNode) responseNode.get(i);\n assertThat(table.get(\"name\").textValue()).isNotNull();\n assertThat(table.get(\"count\").longValue()).isNotNull();\n assertThat(table.get(\"url\").textValue()).endsWith(RestUrls.createRelativeResourceUrl(RestUrls.URL_TABLE, table.get(\"name\").textValue()));\n assertThat(table.get(\"count\").longValue()).isEqualTo(tableCounts.get(table.get(\"name\").textValue()).longValue());\n }\n }",
"@Test\n public void testUpdateContainerInAccount() throws JSONException {\n Account.Account account = Account.Account.fromJson(refAccountJson);\n AccountBuilder accountBuilder = new AccountBuilder(account);\n // updating with different containers\n for (int i = 0; i < (AccountContainerTest.CONTAINER_COUNT); i++) {\n Container.Container container = account.getContainerById(refContainerIds.get(i));\n accountBuilder.removeContainer(container);\n ContainerBuilder containerBuilder = new ContainerBuilder(container);\n short updatedContainerId = ((short) ((-1) * (container.getId())));\n String updatedContainerName = (container.getName()) + \"-updated\";\n Container.Container.ContainerStatus updatedContainerStatus = Container.ContainerStatus.INACTIVE;\n String updatedContainerDescription = (container.getDescription()) + \"--updated\";\n boolean updatedEncrypted = !(container.isEncrypted());\n boolean updatedPreviouslyEncrypted = updatedEncrypted || (container.wasPreviouslyEncrypted());\n boolean updatedCacheable = !(container.isCacheable());\n boolean updatedMediaScanDisabled = !(container.isMediaScanDisabled());\n String updatedReplicationPolicy = (container.getReplicationPolicy()) + \"---updated\";\n boolean updatedTtlRequired = !(container.isTtlRequired());\n boolean updatedSignedPathRequired = !(container.isSecurePathRequired());\n Set<String> updatedContentTypeWhitelistForFilenamesOnDownloadValues = container.getContentTypeWhitelistForFilenamesOnDownload().stream().map(( contentType) -> contentType + \"--updated\").collect(Collectors.toSet());\n containerBuilder.setId(updatedContainerId).setName(updatedContainerName).setStatus(updatedContainerStatus).setDescription(updatedContainerDescription).setEncrypted(updatedEncrypted).setCacheable(updatedCacheable).setMediaScanDisabled(updatedMediaScanDisabled).setReplicationPolicy(updatedReplicationPolicy).setTtlRequired(updatedTtlRequired).setSecurePathRequired(updatedSignedPathRequired).setContentTypeWhitelistForFilenamesOnDownload(updatedContentTypeWhitelistForFilenamesOnDownloadValues);\n accountBuilder.addOrUpdateContainer(containerBuilder.build());\n // build account and assert\n Account.Account updatedAccount = accountBuilder.build();\n Container.Container updatedContainer = updatedAccount.getContainerById(updatedContainerId);\n Assert.assertEquals(\"container id is not correctly updated\", updatedContainerId, updatedContainer.getId());\n Assert.assertEquals(\"container name is not correctly updated\", updatedContainerName, updatedContainer.getName());\n Assert.assertEquals(\"container status is not correctly updated\", updatedContainerStatus, updatedContainer.getStatus());\n Assert.assertEquals(\"container description is not correctly updated\", updatedContainerDescription, updatedContainer.getDescription());\n Assert.assertEquals(\"cacheable is not correctly updated\", updatedCacheable, updatedContainer.isCacheable());\n switch (Container.Container.getCurrentJsonVersion()) {\n case JSON_VERSION_1 :\n Assert.assertEquals(\"Wrong encryption setting\", ENCRYPTED_DEFAULT_VALUE, updatedContainer.isEncrypted());\n Assert.assertEquals(\"Wrong previous encryption setting\", PREVIOUSLY_ENCRYPTED_DEFAULT_VALUE, updatedContainer.wasPreviouslyEncrypted());\n Assert.assertEquals(\"Wrong media scan disabled setting\", MEDIA_SCAN_DISABLED_DEFAULT_VALUE, updatedContainer.isMediaScanDisabled());\n Assert.assertNull(\"Wrong replication policy\", updatedContainer.getReplicationPolicy());\n Assert.assertEquals(\"Wrong ttl required setting\", TTL_REQUIRED_DEFAULT_VALUE, updatedContainer.isTtlRequired());\n Assert.assertEquals(\"Wrong secure required setting\", SECURE_PATH_REQUIRED_DEFAULT_VALUE, updatedContainer.isSecurePathRequired());\n Assert.assertEquals(\"Wrong content type whitelist for filenames on download value\", CONTENT_TYPE_WHITELIST_FOR_FILENAMES_ON_DOWNLOAD_DEFAULT_VALUE, updatedContainer.getContentTypeWhitelistForFilenamesOnDownload());\n break;\n case JSON_VERSION_2 :\n Assert.assertEquals(\"Wrong encryption setting\", updatedEncrypted, updatedContainer.isEncrypted());\n Assert.assertEquals(\"Wrong previous encryption setting\", updatedPreviouslyEncrypted, updatedContainer.wasPreviouslyEncrypted());\n Assert.assertEquals(\"Wrong media scan disabled setting\", updatedMediaScanDisabled, updatedContainer.isMediaScanDisabled());\n Assert.assertEquals(\"Wrong replication policy\", updatedReplicationPolicy, updatedContainer.getReplicationPolicy());\n Assert.assertEquals(\"Wrong ttl required setting\", updatedTtlRequired, updatedContainer.isTtlRequired());\n Assert.assertEquals(\"Wrong secure path required setting\", updatedSignedPathRequired, updatedContainer.isSecurePathRequired());\n Assert.assertEquals(\"Wrong content type whitelist for filenames on download value\", updatedContentTypeWhitelistForFilenamesOnDownloadValues, updatedContainer.getContentTypeWhitelistForFilenamesOnDownload());\n break;\n default :\n throw new IllegalStateException((\"Unsupported version: \" + (Container.Container.getCurrentJsonVersion())));\n }\n }\n }",
"@Required\n @Updatable\n public Integer getInstanceCount() {\n return instanceCount;\n }",
"void incrementCount();",
"@Override\r\n\tprotected int count() {\n\t\treturn service.count();\r\n\t}",
"public int size(){\n\t\treturn labels==null ? 0 : labels.size();\n\t}",
"public void resetContainerIdCounter(long containerIdStart) {\n this.containerIdCounter.set(containerIdStart);\n }",
"public void incrementNumAddRequests() {\n this.numAddRequests.incrementAndGet();\n }",
"public static void UpdateCardsTable() {\n\t\tString url = null;\n\t\tString cards = null;\n\n\t\ttry {\n\t\t\tfor (int i = 0; i < Config.getHundredsOfCardsAvailable(); i++) {\n\t\t\t\turl = \"https://contentmanager-lb.interact.io/content-cards/search?offset=\" + i * 100 + \"&limit=100\";\n\t\t\t\t// hard-set limit of Content Manager is 100 cards\n\t\t\t\tcards = Requester.sendPostRequest(url);\n\n\t\t\t\tString id;\n\t\t\t\tString metaDataContentType;\n\n\t\t\t\tfor (int cardIndex = 0; cardIndex < 100; cardIndex++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (isCardToBeAdded(cards, cardIndex)) {\n\t\t\t\t\t\t\tid = JsonPath.parse(cards).read(\"$.data.[\" + cardIndex + \"].id\");\n\t\t\t\t\t\t\tmetaDataContentType = JsonPath.parse(cards)\n\t\t\t\t\t\t\t\t\t.read(\"$.data.[\" + cardIndex + \"].metadata.contentType\");\n\t\t\t\t\t\t\t// Logger.print(id);\n\t\t\t\t\t\t\t// Logger.print(metaDataContentType);\n\t\t\t\t\t\t\tString labeledCardTag = metaDataContentType.replaceAll(\" \", \"_\").toLowerCase();\n\t\t\t\t\t\t\t// TODO if this tag isn't already in cards table, add it as a new column\n\t\t\t\t\t\t\taddCardToTable(id, labeledCardTag);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// FIXME don't ignore exception here... it's bad practice\n\t\t\t\t\t\t// TODO make it so that JsonPath only checks up until there are cards\n\t\t\t\t\t\t// e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void _increaseTableSize(){\n\t\tNode[] largerBuckets = new Node[_numBuckets * 2 + 1];\r\n\t\tNode[] oldBuckets = _buckets;\r\n\t\t_buckets = largerBuckets;\r\n\t\t_numBuckets = _numBuckets * 2 + 1;\r\n\t\t_count = 0;\r\n\t\t_loadFactor = 0.0;\r\n\t\tint i = 0;\r\n\t\tfor(Node eachNode : oldBuckets){\r\n\t\t\t_buckets[i] = eachNode;\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"private void grow(){\n\t\tberries.replaceAll((p, v) -> v + 1);\n\t\tapples.replaceAll((p, v) -> v + 1);\n\t}",
"public void incCount() { }",
"private void updateByteCount(Label byteCountLabel, Label byteCountUnit, String unit, Number newByteCount, double offset) {\n double byteCount = newByteCount.longValue() + offset;\n /*\n The size of a kilobyte in bytes\n */\n long kilobyte = 1024;\n double KBCount = byteCount / kilobyte;\n double displayedCount = KBCount;\n if(KBCount > 1024){\n double MBCount = KBCount / kilobyte;\n if(MBCount > 1024){\n displayedCount = MBCount / kilobyte;\n if(unit.compareTo(\"GB\")!=0){\n unit = \"GB\";\n byteCountUnit.setText(unit);\n }\n } else {\n displayedCount = MBCount;\n if(unit.compareTo(\"MB\")!=0){\n unit = \"MB\";\n byteCountUnit.setText(unit);\n }\n }\n }\n byteCountLabel.setText(String.valueOf(df.format(displayedCount)));\n }",
"public void incrementNumModifyResponses(long j) {\n this.numModifyResponses.incrementAndGet();\n if (j > 0) {\n this.totalModifyResponseTime.addAndGet(j);\n }\n }",
"public int getContainerSize() {\n\t\treturn 27;\n\t}",
"int countInstances();",
"long getUpdateCounts(int index);",
"public void incrementCount() {\n count++;\n }"
] | [
"0.5774071",
"0.5486898",
"0.5473214",
"0.53542876",
"0.529084",
"0.515349",
"0.5153483",
"0.5113619",
"0.50830066",
"0.498825",
"0.4952299",
"0.4902886",
"0.48528725",
"0.48511034",
"0.4843146",
"0.4827246",
"0.48012933",
"0.4787713",
"0.4771146",
"0.47703934",
"0.47631145",
"0.4714922",
"0.4701217",
"0.46979704",
"0.468488",
"0.4652182",
"0.46426618",
"0.46406737",
"0.46343863",
"0.4634301",
"0.46162224",
"0.46061978",
"0.4605363",
"0.45945236",
"0.45845798",
"0.45707572",
"0.45671386",
"0.45663002",
"0.45625097",
"0.45601475",
"0.4543604",
"0.45236924",
"0.45151177",
"0.45090812",
"0.45089778",
"0.45018432",
"0.44950607",
"0.44839692",
"0.44768763",
"0.4474357",
"0.4471046",
"0.44657448",
"0.4460948",
"0.4455045",
"0.44535717",
"0.44471943",
"0.44453016",
"0.44445074",
"0.44443873",
"0.44443512",
"0.44380665",
"0.44252387",
"0.44224912",
"0.4398892",
"0.43985224",
"0.4369896",
"0.43357965",
"0.432653",
"0.4319185",
"0.43132365",
"0.43128118",
"0.43093085",
"0.43065268",
"0.42999017",
"0.42934376",
"0.42859337",
"0.42836308",
"0.42834064",
"0.42833984",
"0.42787632",
"0.42767966",
"0.42766145",
"0.42728183",
"0.42720428",
"0.42690775",
"0.4269054",
"0.42690253",
"0.42641902",
"0.42609602",
"0.4260363",
"0.42561078",
"0.424945",
"0.42476693",
"0.4244327",
"0.42423028",
"0.42400274",
"0.42399356",
"0.42293277",
"0.422893",
"0.4228643"
] | 0.6130749 | 0 |
Load the Pods&Containers information to k8s_pods_containers table | public static int loadPodsAndContainers(final int envId,final String compName,final String parentCompName, final int numPods, int numCont ) {
final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;
final int compId = getComponentId(compName, parentCompName);
if(compId == 0){
logger.info("Component Name = " + compName + "; Parent Component Name = " + parentCompName + "; is not available in the DB");
return 0;
}
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
K8sPodsContainersEntity podStat = new K8sPodsContainersEntity();
EnvironmentEntity environment = new EnvironmentEntity();
environment.setEnvironmentId(envId);
podStat.setEnvironment(environment);
podStat.setStatusDate(todayDate);
ComponentEntity component = new ComponentEntity();
component.setComponentId(compId);
podStat.setComponent(component);
podStat.setTotalPods(numPods);
podStat.setTotalContainers(numCont);
session.save(podStat);
txn.commit();
return compId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void loadK8sObjectPods(int environmentId, String objName, ArrayList<Integer> podContList) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sObjectPodsEntity contStat = new K8sObjectPodsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(environmentId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatusDate(todayDate);\n\t\tcontStat.setObjectName(objName);\n\t\tcontStat.setPods(podContList.get(0));\n\t\tcontStat.setContainers(podContList.get(1));\n\t\t//contStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"public List<PodInfo> getStoredPods() {\n List<PodInfo> pods = new ArrayList<>();\n\n SearchResponse response = client.prepareSearch(\"k8s_*\").setTypes(\"pod\").setSize(10000).get();\n\n SearchHit[] hits = response.getHits().getHits();\n log.info(String.format(\"The length of pod search hits is [%d]\", hits.length));\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n for (SearchHit hit : hits) {\n// log.info(hit.getSourceAsString());\n PodInfo pod = mapper.readValue(hit.getSourceAsString(), PodInfo.class);\n pods.add(pod);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return pods;\n }",
"private static void populateData() {\n // create multiple pods - 5 pods\n ContextObject customer = CreateEntities.createCustomerWithBaseFieldset(contextServiceClient);\n List<ContextObject> pods = CreateEntities.createMultiplePodsWithSameCustomer(contextServiceClient, customer);\n for (ContextObject pod: pods) {\n assertNotNull(pod.getId());\n assertEquals(customer.getId(), pod.getCustomerId());\n }\n\n //delete the pods\n for (ContextObject pod: pods) {\n DeleteEntities.deleteContextObject(contextServiceClient, pod);\n }\n\n //Get not existing pods that will throw notFound exception and increment Pod.Get.error.notFound count\n for (ContextObject pod : pods) {\n try{\n GetEntities.getPod(contextServiceClient, pod.getId());\n fail(\"testEncryptDecryptSearchFailures - getAndDecrypt failed to throw exception\");\n }catch (ApiException e){\n assertEquals(ApiErrorType.NOT_FOUND, e.getError().getErrorType() );\n }\n }\n }",
"public static Map<String, Integer> getK8sObjPodsContDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery numApisQuery = session.createQuery(HQLConstants.QUERY_GET_K8S_OBJECT_PODS);\n\t\tnumApisQuery.setParameter(\"environmentId\", envId);\n\t\tnumApisQuery.setParameter(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> objPodsList = numApisQuery.list();\n\t\tMap<String, Integer> mapObjPods = new HashMap<String, Integer>();\n\t\tfor (Object[] tRow : objPodsList) {\n\t\t\tmapObjPods.put((String)tRow[0], ((Integer)tRow[1]));\n\t\t}\n\t\ttxn.commit();\n\t\treturn mapObjPods;\n\t}",
"public static Map<String, Integer> getK8sCurrContainerDetails(int envId, String platform) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria contCriteria = session.createCriteria(K8sPodsContainersEntity.class, \"contSts\");\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.statusDate\", todayDate ));\n\t\tcontCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<K8sPodsContainersEntity> contEntityList = contCriteria.list();\n\t\tMap<String, Integer> mapContSts = new HashMap<String, Integer>();\n\t\tfor(K8sPodsContainersEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapContSts.put(fullAppName, contStsEntity.getTotalContainers());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapContSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainers());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapContSts;\n\t}",
"public static void updatePodsAndContainers(final int envId, String compName, int numOfPods, String parentCompName, int numOfCont){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tfinal int compId = getComponentId(compName, parentCompName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.UPDATE_K8S_PODS_CONT_DETAILS);\n\t\tquery.setInteger(\"totalPods\", numOfPods);\n\t\tquery.setInteger(\"totalContainers\", numOfCont);\n\t\tquery.setLong(\"compId\", compId);\n\t\tquery.setLong(\"environmentId\", envId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"@Override\n public DataStore initialize(Map<String, Object> dsInfos) {\n final String CAPACITY_IOPS = \"capacityIops\";\n\n String url = (String)dsInfos.get(\"url\");\n Long zoneId = (Long)dsInfos.get(\"zoneId\");\n Long podId = (Long)dsInfos.get(\"podId\");\n Long clusterId = (Long)dsInfos.get(\"clusterId\");\n String storagePoolName = (String)dsInfos.get(\"name\");\n String providerName = (String)dsInfos.get(\"providerName\");\n Long capacityBytes = (Long)dsInfos.get(\"capacityBytes\");\n Long capacityIops = (Long)dsInfos.get(CAPACITY_IOPS);\n String tags = (String)dsInfos.get(\"tags\");\n @SuppressWarnings(\"unchecked\")\n Map<String, String> details = (Map<String, String>)dsInfos.get(\"details\");\n\n if (podId == null) {\n throw new CloudRuntimeException(\"The Pod ID must be specified.\");\n }\n\n if (clusterId == null) {\n throw new CloudRuntimeException(\"The Cluster ID must be specified.\");\n }\n\n String storageVip = SolidFireUtil.getStorageVip(url);\n int storagePort = SolidFireUtil.getStoragePort(url);\n\n if (capacityBytes == null || capacityBytes <= 0) {\n throw new IllegalArgumentException(\"'capacityBytes' must be present and greater than 0.\");\n }\n\n if (capacityIops == null || capacityIops <= 0) {\n throw new IllegalArgumentException(\"'capacityIops' must be present and greater than 0.\");\n }\n\n HypervisorType hypervisorType = getHypervisorTypeForCluster(clusterId);\n\n if (!isSupportedHypervisorType(hypervisorType)) {\n throw new CloudRuntimeException(hypervisorType + \" is not a supported hypervisor type.\");\n }\n\n String datacenter = SolidFireUtil.getValue(SolidFireUtil.DATACENTER, url, false);\n\n if (HypervisorType.VMware.equals(hypervisorType) && datacenter == null) {\n throw new CloudRuntimeException(\"'Datacenter' must be set for hypervisor type of \" + HypervisorType.VMware);\n }\n\n PrimaryDataStoreParameters parameters = new PrimaryDataStoreParameters();\n\n parameters.setType(getStorageType(hypervisorType));\n parameters.setZoneId(zoneId);\n parameters.setPodId(podId);\n parameters.setClusterId(clusterId);\n parameters.setName(storagePoolName);\n parameters.setProviderName(providerName);\n parameters.setManaged(false);\n parameters.setCapacityBytes(capacityBytes);\n parameters.setUsedBytes(0);\n parameters.setCapacityIops(capacityIops);\n parameters.setHypervisorType(hypervisorType);\n parameters.setTags(tags);\n parameters.setDetails(details);\n\n String managementVip = SolidFireUtil.getManagementVip(url);\n int managementPort = SolidFireUtil.getManagementPort(url);\n\n details.put(SolidFireUtil.MANAGEMENT_VIP, managementVip);\n details.put(SolidFireUtil.MANAGEMENT_PORT, String.valueOf(managementPort));\n\n String clusterAdminUsername = SolidFireUtil.getValue(SolidFireUtil.CLUSTER_ADMIN_USERNAME, url);\n String clusterAdminPassword = SolidFireUtil.getValue(SolidFireUtil.CLUSTER_ADMIN_PASSWORD, url);\n\n details.put(SolidFireUtil.CLUSTER_ADMIN_USERNAME, clusterAdminUsername);\n details.put(SolidFireUtil.CLUSTER_ADMIN_PASSWORD, clusterAdminPassword);\n\n if (capacityBytes < SolidFireUtil.MIN_VOLUME_SIZE) {\n capacityBytes = SolidFireUtil.MIN_VOLUME_SIZE;\n }\n\n long lMinIops = 100;\n long lMaxIops = 15000;\n long lBurstIops = 15000;\n\n try {\n String minIops = SolidFireUtil.getValue(SolidFireUtil.MIN_IOPS, url);\n\n if (minIops != null && minIops.trim().length() > 0) {\n lMinIops = Long.parseLong(minIops);\n }\n } catch (Exception ex) {\n LOGGER.info(\"[ignored] error getting Min IOPS: \" + ex.getLocalizedMessage());\n }\n\n try {\n String maxIops = SolidFireUtil.getValue(SolidFireUtil.MAX_IOPS, url);\n\n if (maxIops != null && maxIops.trim().length() > 0) {\n lMaxIops = Long.parseLong(maxIops);\n }\n } catch (Exception ex) {\n LOGGER.info(\"[ignored] error getting Max IOPS: \" + ex.getLocalizedMessage());\n }\n\n try {\n String burstIops = SolidFireUtil.getValue(SolidFireUtil.BURST_IOPS, url);\n\n if (burstIops != null && burstIops.trim().length() > 0) {\n lBurstIops = Long.parseLong(burstIops);\n }\n } catch (Exception ex) {\n LOGGER.info(\"[ignored] error getting Burst IOPS: \" + ex.getLocalizedMessage());\n }\n\n if (lMinIops > lMaxIops) {\n throw new CloudRuntimeException(\"The parameter '\" + SolidFireUtil.MIN_IOPS + \"' must be less than or equal to the parameter '\" + SolidFireUtil.MAX_IOPS + \"'.\");\n }\n\n if (lMaxIops > lBurstIops) {\n throw new CloudRuntimeException(\"The parameter '\" + SolidFireUtil.MAX_IOPS + \"' must be less than or equal to the parameter '\" + SolidFireUtil.BURST_IOPS + \"'.\");\n }\n\n if (lMinIops != capacityIops) {\n throw new CloudRuntimeException(\"The parameter '\" + CAPACITY_IOPS + \"' must be equal to the parameter '\" + SolidFireUtil.MIN_IOPS + \"'.\");\n }\n\n if (lMinIops > SolidFireUtil.MAX_MIN_IOPS_PER_VOLUME) {\n throw new CloudRuntimeException(\"This volume's Min IOPS cannot exceed \" + NumberFormat.getInstance().format(SolidFireUtil.MAX_MIN_IOPS_PER_VOLUME) + \" IOPS.\");\n }\n\n if (lMaxIops > SolidFireUtil.MAX_IOPS_PER_VOLUME) {\n throw new CloudRuntimeException(\"This volume's Max IOPS cannot exceed \" + NumberFormat.getInstance().format(SolidFireUtil.MAX_IOPS_PER_VOLUME) + \" IOPS.\");\n }\n\n if (lBurstIops > SolidFireUtil.MAX_IOPS_PER_VOLUME) {\n throw new CloudRuntimeException(\"This volume's Burst IOPS cannot exceed \" + NumberFormat.getInstance().format(SolidFireUtil.MAX_IOPS_PER_VOLUME) + \" IOPS.\");\n }\n\n details.put(SolidFireUtil.MIN_IOPS, String.valueOf(lMinIops));\n details.put(SolidFireUtil.MAX_IOPS, String.valueOf(lMaxIops));\n details.put(SolidFireUtil.BURST_IOPS, String.valueOf(lBurstIops));\n\n SolidFireUtil.SolidFireConnection sfConnection = new SolidFireUtil.SolidFireConnection(managementVip, managementPort, clusterAdminUsername, clusterAdminPassword);\n\n SolidFireCreateVolume sfCreateVolume = createSolidFireVolume(sfConnection, storagePoolName, capacityBytes, lMinIops, lMaxIops, lBurstIops);\n\n SolidFireUtil.SolidFireVolume sfVolume = sfCreateVolume.getVolume();\n\n String iqn = sfVolume.getIqn();\n\n details.put(SolidFireUtil.VOLUME_ID, String.valueOf(sfVolume.getId()));\n\n parameters.setUuid(iqn);\n\n if (HypervisorType.VMware.equals(hypervisorType)) {\n String datastore = iqn.replace(\"/\", \"_\");\n String path = \"/\" + datacenter + \"/\" + datastore;\n\n parameters.setHost(\"VMFS datastore: \" + path);\n parameters.setPort(0);\n parameters.setPath(path);\n\n details.put(SolidFireUtil.DATASTORE_NAME, datastore);\n details.put(SolidFireUtil.IQN, iqn);\n details.put(SolidFireUtil.STORAGE_VIP, storageVip);\n details.put(SolidFireUtil.STORAGE_PORT, String.valueOf(storagePort));\n }\n else {\n parameters.setHost(storageVip);\n parameters.setPort(storagePort);\n parameters.setPath(iqn);\n }\n\n ClusterVO cluster = clusterDao.findById(clusterId);\n\n GlobalLock lock = GlobalLock.getInternLock(cluster.getUuid());\n\n if (!lock.lock(SolidFireUtil.LOCK_TIME_IN_SECONDS)) {\n String errMsg = \"Couldn't lock the DB on the following string: \" + cluster.getUuid();\n\n LOGGER.debug(errMsg);\n\n throw new CloudRuntimeException(errMsg);\n }\n\n DataStore dataStore = null;\n\n try {\n // this adds a row in the cloud.storage_pool table for this SolidFire volume\n dataStore = primaryDataStoreHelper.createPrimaryDataStore(parameters);\n\n // now that we have a DataStore (we need the id from the DataStore instance), we can create a Volume Access Group, if need be, and\n // place the newly created volume in the Volume Access Group\n List<HostVO> hosts = hostDao.findByClusterId(clusterId);\n\n String clusterUuId = clusterDao.findById(clusterId).getUuid();\n\n SolidFireUtil.placeVolumeInVolumeAccessGroups(sfConnection, sfVolume.getId(), hosts, clusterUuId);\n\n SolidFireUtil.SolidFireAccount sfAccount = sfCreateVolume.getAccount();\n Account csAccount = CallContext.current().getCallingAccount();\n\n SolidFireUtil.updateCsDbWithSolidFireAccountInfo(csAccount.getId(), sfAccount, dataStore.getId(), accountDetailsDao);\n } catch (Exception ex) {\n if (dataStore != null) {\n primaryDataStoreDao.expunge(dataStore.getId());\n }\n\n throw new CloudRuntimeException(ex.getMessage());\n }\n finally {\n lock.unlock();\n lock.releaseRef();\n }\n\n return dataStore;\n }",
"private void buildCoreTable(int k, int numEachPod) {\n\t\tfor (int c = 0; c < k * k / 4; c++) {\n\t\t\tint core = k * k * k / 4 + k * k + c;\n\n\t\t\t// create prefix table\n\t\t\tHashMap<Pair<Integer, Integer>, Integer> corePrefixTable = new HashMap<>();\n\t\t\tfor (int p = 0; p < k; p++) { \n\t\t\t\t// add prefix 10.p.0.0/16 and port p for core switch pointing to destination pod\n\t\t\t\tint offset = numEachPod * p;\n\t\t\t\tint agg = (c / (k / 2)) + k / 2 + k * k / 4 + offset;\n\t\t\t\tcorePrefixTable.put(new Pair<>(10, p), agg);\n\t\t\t}\n\t\t\tcorePrefixTables.put(core, corePrefixTable);\n\t\t}\n\t}",
"private Map<String, DataContainer> getDataContainerMap() {\r\n\r\n if (this.dataContainerMap == null) {\r\n if (this.dataContainerList == null) {\r\n parse();\r\n }\r\n\r\n this.dataContainerMap = new HashMap<>();\r\n for (DataContainer dataContainer : this.dataContainerList) {\r\n this.dataContainerMap.put(dataContainer.getVariableName(), dataContainer);\r\n }\r\n }\r\n return this.dataContainerMap;\r\n }",
"public void loadContainer() throws SQLException\n\t{\n\n\t\ttry \n\t\t{\n\t\t\tsuper.connect();\n\t\t\tsuper.configuationObjects.clear();\n\n\t\t\tResultSet rs1 = super.pst.executeQuery(sqlSelect1);\n\t\t\twhile (rs1.next())\n\t\t\t{\n\t\t\t\tInteger id \t\t\t= rs1.getInt(\"id\");\n\t\t String descr \t\t\t= rs1.getString(\"descr\");\n\t\t Integer deviceTypeId = rs1.getInt(\"device_type_id\");\n\t\t String ipAddress \t\t= rs1.getString(\"ip_address\");\n\t\t String macAddress \t\t= rs1.getString(\"mac_address\");\n\t\t String serial\t \t\t= rs1.getString(\"serial\");\n\t\t Timestamp timestamp \t= rs1.getTimestamp(\"create_date\");\n\t\t \t\t \n\t\t DeviceType deviceType = (DeviceType) this.getReferencedObject(\"DeviceType\", deviceTypeId);\n\t\t \n\t\t MonitoringDevice object = new MonitoringDevice(id);\n\t\t object.setDescr(descr);\n\t\t object.setIp_address(ipAddress);\n\t\t object.setMac_addres(macAddress);\n\t\t object.setSerial(serial);\n\t\t object.setType(deviceType);\n\t\t object.setCreate_date(timestamp.toLocalDateTime());\n\t\t \n\t\t super.configuationObjects.put(id, object);\n\t\t \n\t\t if (macAddress != null){\n\t\t\t if (!macAddress.isEmpty())\n\t\t\t \tindexByMac.put(macAddress,id);\n\t\t }\n\t\t \n\t\t if (ipAddress != null){\n\t\t\t if (!ipAddress.isEmpty())\n\t\t\t \tindexByIpAddress.put(ipAddress, id);\n\t\t }\n\t\t \n\t\t if (serial != null){\n\t\t\t if (!serial.isEmpty())\n\t\t\t \tindexBySerial.put(serial,id);\n\t\t }\n\t\t\t}\n\t\t\t\n\t\t\trs1.close();\n\t\t\t\n\t\t\tResultSet rs2 = super.pst.executeQuery(sqlSelect2);\n\t\t\twhile (rs2.next())\n\t\t\t{\t\t \n\n\t\t\t\tInteger id \t\t\t= rs2.getInt(\"id\"); \n\t\t String transformation\t= rs2.getString(\"transformation_text\");\n\t\t Integer deviceId \t= rs2.getInt(\"device_id\");\n\t\t Integer signalTypeId\t= rs2.getInt(\"signal_type_id\");\n\t\t String portLabel\t\t= rs2.getString(\"port_label\");\n\t\t Integer refreshTimeMs = rs2.getInt(\"refresh_time_ms\");\n\t\t Integer measuredEntityId = rs2.getInt(\"measured_entity_id\");\n\t\t \t\t \n\t\t MonitoringDevice device= (MonitoringDevice) this.getObject(deviceId);\n\t\t Signal signal = (Signal) this.getReferencedObject(\"Signal\", signalTypeId);\n\t\t \n\t\t InputOutputPort port = new InputOutputPort(id);\n\t\t port.setSignalType(signal);\n\t\t port.setTransformationText(transformation);\n\t\t port.setPortLabel(portLabel);\n\t\t port.setMeasuringEntity(measuredEntityId);\n\t\t port.setRefreshTimeMs(refreshTimeMs);\n\t\t \n\t\t device.putInputOutputPort(port);\n\t\t\t}\n\t\t\t\n\t\t\trs2.close();\n\t\t\t\n\t\t\tsuper.disconnect();\n\t\t\t\n\t\t} catch (ClassNotFoundException e){\n \tString error = \"Could not find the driver class - Error\" + e.getMessage(); \n \tlogger.error(error);\n \te.printStackTrace();\n \tthrow new SQLException(error);\n } catch (SQLException e) {\n \tString error = \"Container:\" + this.getClass().getName() + \"Error connecting to the database - error:\" + e.getMessage();\n \tlogger.error(error);\n \te.printStackTrace(); \t\n \tthrow new SQLException(error);\n }\n\t\t\n\t}",
"protected void reconcile(PodSet podSet) {\n List<String> pods = podCountByLabel(APP_LABEL, podSet.getMetadata().getName());\n logger.info(\"reconcile() : Found {} number of Pods owned by PodSet {}\", pods.size(), podSet.getMetadata().getName());\n if (pods.isEmpty()) {\n createPods(podSet.getSpec().getReplicas(), podSet);\n return;\n }\n int existingPods = pods.size();\n\n // Compare it with desired state i.e spec.replicas\n // if less then spin up pods\n if (existingPods < podSet.getSpec().getReplicas()) {\n createPods(podSet.getSpec().getReplicas() - existingPods, podSet);\n }\n\n // If more pods then delete the pods\n int diff = existingPods - podSet.getSpec().getReplicas();\n for (; diff > 0; diff--) {\n String podName = pods.remove(0);\n kubernetesClient.pods().inNamespace(podSet.getMetadata().getNamespace()).withName(podName).delete();\n }\n\n // Update PodSet status\n updateAvailableReplicasInPodSetStatus(podSet, podSet.getSpec().getReplicas());\n }",
"public static void readMemory() {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd_MM_yyyy_hh_mm\");\n\n\t\t//getting the running container's id\n\t\tHashMap<String,String> hMap = ContainerUtil.getActiveContainers();\n\n\t\t//getting the process IDs for the running conteiners\n\t\tFile[] directories = new File(\"/proc\").listFiles(File::isDirectory);\n\n\t\tfor(Map.Entry<String,String> entry : hMap.entrySet()){\n\n\t\t\t//getting start time of mem copy\n\t\t\tDate startDate = new Date();\n\n\t\t\t//pausing the container to get its memory\n\t\t\tContainerUtil.pauseContainer( entry.getKey() );\n\n\t\t\tfor(File dir : directories) {\n\n\t\t\t\tif(NumberUtils.isNumber(dir.getName())){\n\t\t\t\t\n\t\t\t\t\tString filename = \"/proc/\" + dir.getName() + \"/cgroup\";\n\n\t\t\t\t\t//finding the cgroup file for the containerId\t\t\t\t\t\n\t\t\t\t\ttry(Stream<String> stream = Files.lines(Paths.get(filename))){\n\n\t\t\t\t\t\tif(stream.filter(line -> line.indexOf(entry.getKey()) > 0 ).findFirst().isPresent()){\n\t\t\t\t\t\t\t//change this point to save file to a mapped directory\n\t\t\t\t\t\t\tString outFile = \"./\" +\tentry.getKey() + \"-\" + \n\t\t\t\t\t\t\t\t\t\tentry.getValue() + \"-\" + \n\t\t\t\t\t\t\t\t\t\tdir.getName() + \"-\" + \n\t\t\t\t\t\t\t\t\t\tdateFormat.format(new Date()) + \".mem\";\n\n\t\t\t\t\t\t\tString fileSource = \"/proc/\" + dir.getName() + \"/numa_maps\";\n\n\t\t\t\t\t\t\t//writing memory to file\n\t\t\t\t\t\t\twriteMemToFile(outFile, fileSource);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e){\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//unpausing the container after memory collection\n\t\t\tContainerUtil.unpauseContainer( entry.getKey() );\n\n\t\t\t//calculating total time for mem copy\n\t\t\tlong seconds = (new Date().getTime() - startDate.getTime());\n\t\t\tSystem.out.println(\" copy time: \" + seconds);\n\t\t}\n\t}",
"private Container Load() {\n return null;\r\n }",
"private void getAllContainers() {\n AID ams = getAMS();\n QueryPlatformLocationsAction queryPlatformLocationsAction = new QueryPlatformLocationsAction();\n sendRequest(new Action(ams, queryPlatformLocationsAction));\n MessageTemplate mt = MessageTemplate.and(\n MessageTemplate.MatchSender(getAMS()),\n MessageTemplate.MatchPerformative(ACLMessage.INFORM));\n ACLMessage resp = blockingReceive(mt);\n ContentElement ce = null;\n try {\n ce = getContentManager().extractContent(resp);\n } catch (Codec.CodecException e) {\n e.printStackTrace();\n } catch (OntologyException e) {\n e.printStackTrace();\n }\n Result result = (Result) ce;\n jade.util.leap.Iterator it = result.getItems().iterator();\n while (it.hasNext()) {\n Location loc = (Location) it.next();\n containersOnPlatform.put(loc.getName(), loc);\n }\n }",
"@Override\n protected void before() {\n LOGGER.info(\"Creating cluster operator with Helm Chart {} before test per @ClusterOperator annotation on {}\", cc, name(element));\n Path pathToChart = new File(HELM_CHART).toPath();\n String oldNamespace = kubeClient().namespace(\"kube-system\");\n InputStream helmAccountAsStream = getClass().getClassLoader().getResourceAsStream(\"helm/helm-service-account.yaml\");\n String helmServiceAccount = TestUtils.readResource(helmAccountAsStream);\n kubeClient().applyContent(helmServiceAccount);\n helmClient().init();\n kubeClient().namespace(oldNamespace);\n helmClient().install(pathToChart, HELM_RELEASE_NAME, allValues);\n }",
"private void buildTables() {\n\t\tint k = G.getK();\n\t\tint numEachPod = k * k / 4 + k;\n \n\t\tbuildEdgeTable(k, numEachPod);\n\t\tbuildAggTable(k, numEachPod);\n\t\tbuildCoreTable(k, numEachPod); \n\t}",
"private Map<String, Cluster> readFile(String labelPath, String dataPath, String phase) {\n\t\tSystem.out.println(\"read the \" + phase + \" file ..... \");\n\n\t\t// read the label file\n\t\tSystem.out.println(\"Reading label from file \" + phase + \".label \");\n\t\tList<String> classRecords = IOUtils.readFile(labelPath);\n\t\tdocumentClass = new HashMap<String, String>();\n\t\tdocumentListClass = new HashMap<String,ArrayList<String>>();\n\n\t\tfor (int i = 0; i < classRecords.size(); i++) {\n\t\t\tString record = classRecords.get(i);\n\t\t\tdocumentClass.put((i + 1) + \"\", record);\n\n\t\t\tboolean contain = documentListClass.containsKey(record);\n\t\t\tif(!contain){\n\t\t\t\tdocumentListClass.put(record, new ArrayList<String>()) ;\n\t\t\t}\n\t\t\tdocumentListClass.get(record).add((i+1)+\"\");\n\t\t}\n\n\t\t// read the document\n\t\tSystem.out.println(\"Reading document from file \" + phase + \".data \");\n\t\tList<String> dataRecords = IOUtils.readFile(dataPath);\n\t\tdocumentsCount = new HashMap<String, Document>();\t\t\n\n\t\tfor (String record : dataRecords) {\n\t\t\tString[] elements = record.split(\" \");\n\t\t\tString documentID = elements[0];\n\t\t\tString wordID = elements[1];\n\t\t\tint wordCount = Integer.parseInt(elements[2]);\n\n\t\t\tboolean contain = documentsCount.containsKey(documentID);\n\t\t\tif (!contain) {\n\t\t\t\tdocumentsCount.put(documentID, new Document(documentID));\n\t\t\t}\n\n\t\t\tdocumentsCount.get(documentID).add(wordID, wordCount);\n\t\t}\t\t\n\n\t\t// put the documents with the same cluster ID into the cluster\n\t\tSystem.out.println(\"put the documents with the same cluster ID into the cluster\");\n\t\tMap<String, Cluster> clusters = new HashMap<String, Cluster>();\n\t\tfor (String documentID : documentClass.keySet()) {\n\t\t\tString clusterID = documentClass.get(documentID);\n\n\t\t\tboolean contain = clusters.containsKey(clusterID);\n\t\t\tif (!contain) {\n\t\t\t\tclusters.put(clusterID, new Cluster(clusterID));\n\t\t\t}\n\n\t\t\t// put the document into cluster\n\t\t\tDocument document = documentsCount.get(documentID);\n\t\t\tclusters.get(clusterID).addDocument(document);\n\t\t}\n\n\t\t// when in training phase, calculate the probability and frequence\n\t\tif (phase.equals(\"training\")) {\n\t\t\tSystem.out.println(\"calculate the training probability\");\n\n\t\t\t// generate the word count of cluster\n\t\t\tfor (int index = 1; index <= 20; index++) {\n\t\t\t\tSystem.out.println(\"calculate the cluster \"+ index);\n\t\t\t\t// fill the word count\n\t\t\t\t// clusters.get(clusterID).fillWordCounts();\n\n\t\t\t\t// calculate the bernoulli probability\n\t\t\t\tclusters.get(Integer.toString(index)).calculateBernoulliProbability();\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn clusters;\n\t}",
"public void reloadDataYaml() {\n\n if (!anyMetadataEnabled()) {\n metadataYaml = new YamlConfiguration();\n return;\n }\n if (!metadataFile.exists()) {\n try {\n Files.createFile(metadataFile.toPath());\n }\n catch (IOException ex) {\n getLogger().severe(\"Unable to create the metadata.yml file: \" + ex.getMessage());\n }\n }\n metadataYaml = YamlConfiguration.loadConfiguration(metadataFile);\n\n if (!getConfig().getBoolean(\"metadata.track-active-portal-counts\", false)) {\n metadataYaml.set(\"player-active-portal-counts\", null);\n }\n }",
"public List<String> containers() {\n return this.containers;\n }",
"public synchronized void startContainer(DockerHost dh, Operator op) throws DockerException, InterruptedException {\n final DockerClient docker = DefaultDockerClient.builder().uri(\"http://\" + dh.getUrl() + \":2375\").connectTimeoutMillis(60000).build();\n\n DockerContainer dc = opConfig.createDockerContainerConfiguration(op);\n String usedImage = \"\";\n\n /* Update the list of available docker images */\n if (!dh.getAvailableImages().contains(op.getType())) {\n //check if type is a valid dockerimage\n try {\n docker.pull(op.getType());\n List<String> availableImages = dh.getAvailableImages();\n availableImages.add(op.getType());\n dh.setAvailableImages(availableImages);\n dhr.save(dh);\n usedImage = op.getType();\n } catch (ImageNotFoundException ex) {\n LOG.info(\"Operator type docker image (\" + op.getType() + \") is not available - falling back to default image: \" + config.getProcessingNodeImage());\n if (!dh.getAvailableImages().contains(config.getProcessingNodeImage())) {\n docker.pull(config.getProcessingNodeImage());\n List<String> availableImages = dh.getAvailableImages();\n availableImages.add(config.getProcessingNodeImage());\n dh.setAvailableImages(availableImages);\n dhr.save(dh);\n }\n usedImage = config.getProcessingNodeImage();\n }\n }\n\n /* Configure environment variables */\n List<String> environmentVariables = new ArrayList<>();\n String outgoingHost = op.getConcreteLocation().getIpAddress().equals(config.getRabbitMQHost()) ? config.getRuntimeIP() : op.getConcreteLocation().getIpAddress(); // generalized deployment\n environmentVariables.add(\"SPRING_RABBITMQ_OUTGOING_HOST=\" + outgoingHost);\n environmentVariables.add(\"SPRING_REDIS_HOST=\" + config.getRedisOperatorHost());\n environmentVariables.add(\"OUTGOINGEXCHANGE=\" + op.getName());\n environmentVariables.add(\"INCOMINGQUEUES=\" + topologyManagement.getIncomingQueues(op.getName()));\n environmentVariables.add(\"ROLE=\" + op.getType());\n environmentVariables.add(\"OPERATOR_SUBSCRIBED_OPERATORS=\" + topologyManagement.getDownstreamOperators(op.getName()));\n environmentVariables.add(\"OPERATORNAME=\" + op.getName());\n environmentVariables.add(\"OPERATORTYPE=\" + op.getType());\n\n\n /* Configure docker container */\n Double vmCores = dh.getCores();\n Double containerCores = dc.getCpuCores();\n\n long containerMemory = (long) dc.getMemory().doubleValue() * 1024 * 1024;\n long cpuShares = 1024 / (long) Math.ceil(vmCores / containerCores);\n\n /* Bind container port (processingNodeServerPort) to an available host port */\n String hostPort = getAvailablePortOnHost(dh);\n if (hostPort == null)\n throw new DockerException(\"Not available port on host \" + dh.getName() + \" to bind a new container\");\n\n final Map<String, List<PortBinding>> portBindings = new HashMap<>();\n portBindings.put(processingNodeServerPort, Lists.newArrayList(PortBinding.of(\"0.0.0.0\", hostPort)));\n\n final HostConfig hostConfig = HostConfig.builder()\n .cpuShares(cpuShares)\n .memoryReservation(containerMemory)\n .portBindings(portBindings)\n .networkMode(\"bridge\")\n .build();\n\n final ContainerConfig containerConfig = ContainerConfig.builder()\n .hostConfig(hostConfig)\n .image(usedImage)\n .exposedPorts(processingNodeServerPort)\n .cmd(\"sh\", \"-c\", \"java -jar vispProcessingNode-0.0.1.jar -Djava.security.egd=file:/dev/./urandom\")\n .env(environmentVariables)\n .build();\n\n /* Start docker container */\n final ContainerCreation creation = docker.createContainer(containerConfig);\n final String id = creation.id();\n docker.startContainer(id);\n\n /* Save docker container information on repository */\n dc.setContainerid(id);\n dc.setImage(usedImage);\n dc.setHost(dh.getName());\n dc.setMonitoringPort(hostPort);\n dc.setStatus(\"running\");\n dc.setTerminationTime(null);\n dcr.save(dc);\n\n /* Update the set of used port on docker host */\n List<String> usedPorts = dh.getUsedPorts();\n usedPorts.add(hostPort);\n dh.setUsedPorts(usedPorts);\n dhr.save(dh);\n\n LOG.info(\"VISP - A new container with the ID: \" + id + \" for the operatorType: \" + dc.getOperatorType() + \" on the host: \" + dh.getName() + \" has been started.\");\n }",
"private void loadLab(){\n LabnameLabel.setText(\"Lab: \"+labDataCurrent.getName());\n System.out.println(\"set lab name\");\n \n // Load the networks \n for(int i = 0;i<labDataCurrent.getNetworks().size();i++){\n addNetworkPanel(labDataCurrent.getNetworks().get(i));\n }\n \n //Load the containers \n for(int i = 0;i<labDataCurrent.getContainers().size();i++){\n addContainerPanel(labDataCurrent.getContainers().get(i));\n }\n }",
"public static void loadK8sApiStatus(final int envId, String compName, int numOfApi) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tfinal int compId = getComponentIdFromCompName(compName);\n\t\tif(compId == 0){\n\t\t\tlogger.info(\"Component Name = \" + compName + \"; is not available in the DB\");\n\t\t\treturn;\n\t\t}\n\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sApiStatusEntity apiStatus = new K8sApiStatusEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tapiStatus.setEnvironment(environment);\n\t\tapiStatus.setStatusDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tapiStatus.setComponent(component);\n\t\tapiStatus.setTotalApi(numOfApi);\n\t\tsession.save(apiStatus);\n\t\ttxn.commit();\n\t}",
"@Override\n public JLabel[] GetDataContainers() {\n JLabel[] res = new JLabel[3];\n res[0] = jLabel1;\n res[1] = jLabel2;\n res[2] = jLabel3;\n return res;\n }",
"void init(Component c) {\n Dictionary<?, ?> props = c.getServiceProperties();\n if (props != null) {\n this.containerName = (String) props.get(\"containerName\");\n logger.debug(\"Running containerName: {}\", this.containerName);\n } else {\n // In the Global instance case the containerName is empty\n this.containerName = \"\";\n }\n startUp();\n }",
"protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}",
"public void setContainerName(String name) {\n this.name = name;\n }",
"private void loadProjects() {\n\t\tprojectsList.clear();\n\t\t\n\t\tArrayList<Job> projects = jdbc.getProjects();\n\t\tfor (Job j : projects) {\n\t\t\tprojectsList.addElement(j.jobname);\n\t\t}\n\t}",
"@Override\n\tpublic Map<String, String> loadTablesPks(String databaseName) throws SQLException {\n\t\tMap<String,String> tablePks=new HashMap<String,String>();\n\t\tString sql=\"select cu.table_name,cu.column_name from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' \";\n\t\ttry(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t\t\t\tResultSet resultSet=preparedStatement.executeQuery();\n\t\t\t\t){\n\t\t\n\t\n\t\twhile(resultSet.next()) {\n\t\t String table=resultSet.getString(1).toUpperCase();\n\t\t String pkName=resultSet.getString(2).toUpperCase();\n\t\t if(table.startsWith(\"BIN$\"))continue;\n\t\t tablePks.put(table, pkName);\n\t\t}\n\t\t}\n\t\treturn tablePks;\n\t}",
"public static void preLoad() {\n\t\tserviceClasses.clear();\n\t\tloadGroups(CLASS_FOLDER, null, serviceClasses);\n\t\tTracer.trace(serviceClasses.size()\n\t\t\t\t+ \" java class names loaded as services.\");\n\t\t/*\n\t\t * clean and pre-load if required\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.cachedOnes != null) {\n\t\t\t\taType.cachedOnes.clear();\n\t\t\t}\n\t\t\tif (aType.preLoaded) {\n\t\t\t\taType.loadAll();\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void loadPMS() throws IOException {\n // move to the offset of page meta section\n istream.seek(segmentPMSOffset);\n pms = new PageMetaSection(withPageMeta);\n pms.readFields(istream);\n\n // we get the page meta section, we know the number of clusters\n numClusters = pms.getPageMetaLists().length;\n\n LOG.info(\"Load page meta section with \" + numClusters + \" clusters.\");\n\n if (mode == READMODE.MR) {\n pcp = new PageCache[numClusters];\n for (int i = 0; i < numClusters; i++) {\n pcp[i] = new SimplePageCache();\n }\n } else if (mode == READMODE.POINTQUERY) {\n pagecache = getBlockCache(conf);\n }\n\n // read in the cluster offsets\n clusterOffsets = new long[numClusters];\n for (int i = 0; i < numClusters; i++) {\n clusterOffsets[i] = istream.readLong();\n }\n }",
"public Set<String> getContainers();",
"public List<String> getSiblingPodIPsByLabelAndValue(String label, String value){\n List<String> PodIPs = new ArrayList();\n \n Log.debug(\"Looking for K8S pods with label {} and value {}\", label, value);\n PodList siblings = K8Sclient.pods().withLabel(label, value).list();\n \n Log.info(\"Found a total of {} siblings to form a cluster :-)\", siblings.getItems().size());\n \n siblings.getItems().forEach((pod) -> {\n String name = pod.getMetadata().getName();\n String phase = pod.getStatus().getPhase();\n String ip = pod.getStatus().getPodIP();\n Log.debug(\"Found a sibling pod with name {} and IP {} currently in {} phase\", name, ip, phase);\n \n \n // Skip pods without valid IP address or which are not in running state\n if ( ip != null && InetAddressValidator.getInstance().isValid(ip) && phase.equals(\"Running\")){\n Log.debug(\"Adding pod {} (IP: {}) to list of cluster nodes\", name, ip);\n PodIPs.add(ip);\n }\n else{\n Log.debug(\"Skipping pod {} (IP: {}) currently in {} phase\", name, ip, phase);\n }\n });\n \n return PodIPs;\n }",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"public static void loadContainerStatus(final int envId, int compId, final int instanceNum) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n//\t\tfinal int compId = getComponentId(compName, parentCompName);\n//\t\tif(compId == 0){\n//\t\t\tlogger.info(\"Component Name = \" + compName + \"; Parent Component Name = \" + parentCompName + \"; is not available in the DB\");\n//\t\t\treturn 0;\n//\t\t}\n\n\t\tint prevNumInstance = getPreiousNumInstance(compId, todayDate, envId);\n\t\tfinal int deltaVal = prevNumInstance == 0 ? 0 : instanceNum - prevNumInstance;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tContainerStatsEntity contStat = new ContainerStatsEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\tcontStat.setEnvironment(environment);\n\t\tcontStat.setStatsDate(todayDate);\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(compId);\n\t\tcontStat.setComponent(component);\n\t\tcontStat.setTotalContainer(instanceNum);\n\t\tcontStat.setDeltaValue(deltaVal);\n\t\tsession.save(contStat);\n\t\ttxn.commit();\n\t}",
"@BeforeAll\n\n public void initAll(@Namespaces(4) List<String> namespaces) {\n\n logger = getLogger();\n monitoringExporterDir = Paths.get(RESULTS_ROOT,\n \"ItMonitoringExporterMetricsFiltering\", \"monitoringexp\").toString();\n monitoringExporterSrcDir = Paths.get(monitoringExporterDir, \"srcdir\").toString();\n monitoringExporterEndToEndDir = Paths.get(monitoringExporterSrcDir, \"samples\", \"kubernetes\", \"end2end\").toString();\n monitoringExporterAppDir = Paths.get(monitoringExporterDir, \"apps\").toString();\n logger.info(\"Get a unique namespace for operator\");\n assertNotNull(namespaces.get(0), \"Namespace list is null\");\n final String opNamespace = namespaces.get(0);\n\n logger.info(\"Get a unique namespace for monitoring\");\n assertNotNull(namespaces.get(1), \"Namespace list is null\");\n monitoringNS = namespaces.get(1);\n\n logger.info(\"Get a unique namespace for NGINX\");\n assertNotNull(namespaces.get(2), \"Namespace list is null\");\n final String nginxNamespace = namespaces.get(2);\n \n\n logger.info(\"Get a unique namespace for domain1\");\n assertNotNull(namespaces.get(3), \"Namespace list is null\");\n domain1Namespace = namespaces.get(3);\n\n logger.info(\"install and verify operator\");\n installAndVerifyOperator(opNamespace,\n domain1Namespace);\n\n logger.info(\"install monitoring exporter\");\n installMonitoringExporter(monitoringExporterDir, true);\n\n logger.info(\"create and verify WebLogic domain image using model in image with model files\");\n List<String> modelList = new ArrayList<>();\n modelList.add(MODEL_DIR + \"/\" + MONEXP_MODEL_FILE);\n modelList.add(MODEL_DIR + \"/\" + JDBC_MODEL_FILE);\n miiImage = MonitoringUtils.createAndVerifyMiiImage(monitoringExporterAppDir, modelList,\n STICKYSESS_APP_NAME, SESSMIGR_APP_NAME, MONEXP_IMAGE_NAME);\n if (!OKD) {\n // install and verify NGINX\n nginxHelmParams = installAndVerifyNginx(nginxNamespace, 0, 0);\n\n String nginxServiceName = nginxHelmParams.getHelmParams().getReleaseName() + \"-ingress-nginx-controller\";\n logger.info(\"NGINX service name: {0}\", nginxServiceName);\n nodeportshttp = getServiceNodePort(nginxNamespace, nginxServiceName, \"http\");\n nodeportshttps = getServiceNodePort(nginxNamespace, nginxServiceName, \"https\");\n }\n logger.info(\"NGINX http node port: {0}\", nodeportshttp);\n logger.info(\"NGINX https node port: {0}\", nodeportshttps);\n clusterNameMsPortMap = new HashMap<>();\n clusterNameMsPortMap.put(cluster1Name, managedServerPort);\n clusterNameMsPortMap.put(cluster2Name, managedServerPort);\n clusterNames.add(cluster1Name);\n clusterNames.add(cluster2Name);\n exporterUrl = String.format(\"http://%s:%s/wls-exporter/\",K8S_NODEPORT_HOST,nodeportshttp);\n HashMap<String, String> labels = new HashMap<>();\n labels.put(\"app\", \"monitoring\");\n labels.put(\"weblogic.domainUid\", \"test\");\n if (!OKD) {\n logger.info(\"create pv and pvc for monitoring\");\n assertDoesNotThrow(() -> createPvAndPvc(prometheusReleaseName, monitoringNS,\n labels, this.getClass().getSimpleName()));\n assertDoesNotThrow(() -> createPvAndPvc(\"alertmanager\" + releaseSuffix,\n monitoringNS, labels, this.getClass().getSimpleName()));\n assertDoesNotThrow(() -> createPvAndPvc(grafanaReleaseName, monitoringNS,\n labels, this.getClass().getSimpleName()));\n cleanupPromGrafanaClusterRoles(prometheusReleaseName, grafanaReleaseName);\n }\n assertDoesNotThrow(() -> setupDomainAndMonitoringTools(domain1Namespace, domain1Uid),\n \"failed to setup domain and monitoring tools\");\n }",
"public void initPrimaryContainer() {\n for (IMixinPlatformAgent agent : this.agents) {\n MixinContainer.logger.debug(\"Processing launch tasks for {}\", agent);\n agent.initPrimaryContainer();\n }\n }",
"@PutMapping(\"/containers\")\n\tpublic Container updateContainer(@RequestBody Container container) {\n\t\tcontainerDAO.save(container);\n\t\t\n\t\treturn container;\n\t\t//despite postman returning the updated data, i could not get mysql to reflect the changes\n\t\t//until i added @Transactional to the \"save\" method in the Service layer. \n\t\t//i did not have any issues adding a container prior to adding @transactional, however\n\t}",
"@Override\n public String getContainerData()\n {\n return null;\n }",
"@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}",
"public static void main(String[] args) throws Exception {\n V1Pod pod =\n new V1Pod()\n .metadata(new V1ObjectMeta().name(\"foo\").namespace(\"default\"))\n .spec(\n new V1PodSpec()\n .containers(Arrays.asList(new V1Container().name(\"c\").image(\"test\"))));\n\n ApiClient apiClient = ClientBuilder.standard().build();\n GenericKubernetesApi<V1Pod, V1PodList> podClient =\n new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, \"\", \"v1\", \"pods\", apiClient);\n\n V1Pod latestPod = podClient.create(pod).throwsApiException().getObject();\n System.out.println(\"Created!\");\n\n V1Pod patchedPod =\n podClient\n .patch(\n \"default\",\n \"foo\",\n V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH,\n new V1Patch(\"{\\\"metadata\\\":{\\\"finalizers\\\":[\\\"example.io/foo\\\"]}}\"))\n .throwsApiException()\n .getObject();\n System.out.println(\"Patched!\");\n\n V1Pod deletedPod = podClient.delete(\"default\", \"foo\").throwsApiException().getObject();\n if (deletedPod != null) {\n System.out.println(\n \"Received after-deletion status of the requested object, will be deleting in background!\");\n }\n System.out.println(\"Deleted!\");\n }",
"public interface PCSMetadata {\n\n /* Met Fields */\n String APPLICATION_SUCCESS_FLAG = \"ApplicationSuccessFlag\";\n\n String ON_DISK = \"OnDisk\";\n\n String TAPE_LOCATION = \"TapeLocation\";\n\n String PRODUCTION_LOCATION = \"ProductionLocation\";\n\n String PRODUCTION_LOCATION_CODE = \"ProductionLocationCode\";\n\n String DATA_VERSION = \"DataVersion\";\n\n String DATA_PROVIDER = \"DataProvider\";\n\n String COLLECTION_LABEL = \"CollectionLabel\";\n\n String COMMENTS = \"Comments\";\n\n String EXECUTABLE_PATHNAMES = \"ExecutablePathnames\";\n\n String EXECUTABLE_VERSIONS = \"ExecutableVersions\";\n\n String PROCESSING_LEVEL = \"ProcessingLevel\";\n\n String JOB_ID = \"JobId\";\n\n String TASK_ID = \"TaskId\";\n\n String PRODUCTION_DATE_TIME = \"ProductionDateTime\";\n\n String INPUT_FILES = \"InputFiles\";\n\n String PGE_NAME = \"PGEName\";\n\n String OUTPUT_FILES = \"OutputFiles\";\n \n String TEST_TAG = \"TestTag\";\n\n String SUB_TEST_TAG = \"SubTestTag\";\n\n String TEST_LOCATION = \"TestLocation\";\n\n String TEST_COUNTER = \"TestCounter\";\n\n String TEST_DATE = \"TestDate\";\n \n String START_DATE_TIME = \"StartDateTime\";\n\n String END_DATE_TIME = \"EndDateTime\";\n\n}",
"void onContainerStarted(ContainerId containerId,\n Map<String, ByteBuffer> allServiceResponse);",
"private void initializePetControllers() {\n trRegisterNewPet = PetControllersFactory.createTrRegisterNewPet();\n trUpdatePetImage = PetControllersFactory.createTrUpdatePetImage();\n trDeletePet = PetControllersFactory.createTrDeletePet();\n trUpdatePet = PetControllersFactory.createTrUpdatePet();\n trObtainAllPetImages = PetControllersFactory.createTrObtainAllPetImages();\n }",
"private void loadData()\n {\n if (isAdded() && !getActivity().isFinishing())\n {\n // progress.show();\n RestClient.GitApiInterface service = RestClient.getClient();\n\n Call<CategoryHolder> call = service.getCategory(helper.getB64Auth(getActivity()),\"application/json\", \"application/json\");\n //Call call1=service.getCategory();\n call.enqueue(new Callback<CategoryHolder>() {\n @Override\n public void onResponse(Response<CategoryHolder> response) {\n // progress.dismiss();\n Log.d(\"NewCheckout\", \"Status Code = \" + response.code());\n if (response.isSuccess()) {\n try {\n CategoryHolder result = response.body();\n categoryObject = new JSONObject(result.getCategories().getAsJsonObject().toString());\n idCat = new String[categoryObject.length()];\n catName = new String[categoryObject.length()];\n Iterator<?> keys = categoryObject.keys();\n ArrayList<String> keyList = new ArrayList();\n while (keys.hasNext()) {\n keyList.add((String) keys.next());\n }\n Collections.sort(keyList);\n\n for (String key : keyList) {\n int rootCount = 0;\n\n JSONObject object = categoryObject.getJSONObject(key);\n String name = object.getString(\"category\");\n String id = object.getString(\"category_id\");\n\n String url = \"\";\n if (object.has(\"main_pair\")) {\n JSONObject js = object.getJSONObject(\"main_pair\");\n JSONObject js_obj = js.getJSONObject(\"detailed\");\n url = js_obj.getString(\"http_image_path\");\n }\n\n if (object.has(\"subcategories\")) {\n\n JSONArray parentObject = object.getJSONArray(\"subcategories\");\n int parentCount = 0;\n for (int i = 0; i < parentObject.length(); i++) {\n JSONObject objectChild = parentObject.getJSONObject(i);\n//\n if (objectChild.has(\"subcategories\")) {\n int childCount = 0;\n JSONArray childObject = objectChild.getJSONArray(\"subcategories\");\n for (int j = 0; j < childObject.length(); j++) {\n // String childKey = (String) parentKeys.next();\n JSONObject child = childObject.getJSONObject(j);\n int count = child.optInt(\"product_count\");\n childCount += count;\n\n\n }\n parentCount += childCount;\n }\n\n\n }\n if (parentCount == 0)\n rootCount += 1;\n else\n rootCount += parentCount;\n }\n final GridRow gridRow = new GridRow(url, name, id);\n gridRow.id = id;\n gridRow.setCount(rootCount);\n gridRow.subCategories = object.has(\"subcategories\");\n if (getActivity() != null) {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mAdapter.add(gridRow);\n }\n });\n }\n\n //Log.i(\"CATEGORY--\", name);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n } else {\n // response received but request not successful (like 400,401,403 etc)\n //Handle errors\n\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n progress.dismiss();\n\n if (getActivity() != null && !getActivity().isFinishing()) {\n new AlertDialogManager().showAlertDialog(getActivity(),\n getString(R.string.error),\n getString(R.string.server_error));\n }\n }\n });\n }\n\n }",
"private static Datacenter Create_Datacenter(String name){\n\t\t// creating list of host machine \n\t\tList<Host> hostList = new ArrayList<Host>();\n\t\t// creating list of CPU for each host machine, In our simulation with choose 1 core per machine \n\t\tList<Pe> peList1 = new ArrayList<Pe>();\n\t\tint mips = 1000; // computing power of each core\n\t\t// add 1 core to each host machine \n\t\tfor (int i =0; i < VM_number; i ++ ) {\n\t\tpeList1.add(new Pe(i, new PeProvisionerSimple(mips)));\n\t\t}\n\t\t// configuring host\n\t\tint hostId=0;\n\t\tint ram = 56320; //host memory 40 GB\n\t\tlong storage = 10240000; //host storage 10000 GB\n\t\tint bw = 102400; // bandwidth 100 Gbps\n\t\t// create first host machine with 4 cores \n\t\thostList.add(\n \t\t\tnew Host(\n \t\t\t\thostId,\n \t\t\t\tnew RamProvisionerSimple(ram),\n \t\t\t\tnew BwProvisionerSimple(bw),\n \t\t\t\tstorage,\n \t\t\t\tpeList1,\n \t\t\t\tnew VmSchedulerTimeShared(peList1)\n \t\t\t)\n \t\t);\n\t\t// create another host machine with 1 cores\n\t\tList<Pe> peList2 = new ArrayList<Pe>();\n\t\t// add 1 core to each host machine \n\t\tfor (int i =0; i < VM_number; i ++ ) {\n\t\t\tpeList2.add(new Pe(i, new PeProvisionerSimple(mips)));\n\t\t\t}\n\t\thostId++;\n\n\t\thostList.add(\n \t\t\tnew Host(\n \t\t\t\thostId,\n \t\t\t\tnew RamProvisionerSimple(ram),\n \t\t\t\tnew BwProvisionerSimple(bw),\n \t\t\t\tstorage,\n \t\t\t\tpeList2,\n \t\t\t\tnew VmSchedulerTimeShared(peList2)\n \t\t\t)\n \t\t);\n\t\t\n\t // configuring datacenter \n\t\tString arch = \"x86\"; // system architecture\n\t\tString os = \"Linux\"; // operating system\n\t\tString vmm = \"Xen\";\n\t\tdouble time_zone = 10.0; // time zone this resource located\n\t\tdouble cost = 3.0; // the cost of using processing in this resource\n\t\tdouble costPerMem = 0.05;\t\t// the cost of using memory in this resource\n\t\tdouble costPerStorage = 0.001;\t// the cost of using storage in this resource\n\t\tdouble costPerBw = 0.0;\t\t\t// the cost of using bw in this resource\n\t\tLinkedList<Storage> storageList = new LinkedList<Storage>();\n\t\tDatacenterCharacteristics characteristics = new DatacenterCharacteristics(\n arch, os, vmm, hostList, time_zone, cost, costPerMem, costPerStorage, costPerBw);\n\n\t\t// creating data center \n\t\tDatacenter datacenter = null;\n\t\ttry {\n\t\t\tdatacenter = new Datacenter(name, characteristics, new VmAllocationPolicySimple(hostList), storageList, 0);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn datacenter;\n\t\t\n\t}",
"private static Datacenter createDatacenter(String name) {\n List<Host> hostList = new ArrayList<Host>();\r\n\r\n // 2. A Machine contains one or more PEs or CPUs/Cores.\r\n // In this example, it will have only one core.\r\n List<Pe> peList = new ArrayList<Pe>();\r\n\r\n\r\n // 3. Create PEs and add these into a list.\r\n peList.add(new Pe(0, new PeProvisionerSimple(mips+100))); // need to store Pe id and MIPS Rating\r\n\r\n // 4. Create Host with its id and list of PEs and add them to the list\r\n // of machines\r\n long storage = 1000000; // host storage\r\n\r\n\r\n for (int hostId = 0; hostId < vmNum; hostId++) {\r\n hostList.add(\r\n new Host(\r\n hostId,\r\n new RamProvisionerSimple((int)((ram*1.1)/Constants.MB)),\r\n new BwProvisionerSimple(bw+10),\r\n storage,\r\n peList,\r\n new VmSchedulerTimeShared(peList)\r\n )\r\n ); // This is our machine\r\n }\r\n\r\n\r\n // 5. Create a DatacenterCharacteristics object that stores the\r\n // properties of a data center: architecture, OS, list of\r\n // Machines, allocation policy: time- or space-shared, time zone\r\n // and its price (G$/Pe time unit).\r\n String arch = \"x86\"; // system architecture\r\n String os = \"Linux\"; // operating system\r\n String vmm = \"Xen\";\r\n double time_zone = 10.0; // time zone this resource located\r\n double cost = 3.0; // the cost of using processing in this resource\r\n double costPerMem = 0.05; // the cost of using memory in this resource\r\n double costPerStorage = 0.001; // the cost of using storage in this\r\n // resource\r\n double costPerBw = 0.0; // the cost of using bw in this resource\r\n LinkedList<Storage> storageList = new LinkedList<Storage>(); // we are not adding SAN\r\n // devices by now\r\n\r\n DatacenterCharacteristics characteristics = new DatacenterCharacteristics(\r\n arch, os, vmm, hostList, time_zone, cost, costPerMem,\r\n costPerStorage, costPerBw);\r\n\r\n // 6. Finally, we need to create a PowerDatacenter object.\r\n Datacenter datacenter = null;\r\n try {\r\n datacenter = new Datacenter(name, characteristics, new VmAllocationPolicySimple(hostList), storageList, 0);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return datacenter;\r\n }",
"@JsonProperty(\"podCIDRs\")\n public List<String> getPodCIDRs() {\n return podCIDRs;\n }",
"private void preloadData()\n {\n ICardinality cardinality = newCardinality();\n\n byte[] scratchBytes = new byte[8];\n ByteBuffer scratch = ByteBuffer.wrap(scratchBytes);\n long numToFlush;\n int lastFlushed = 0;\n long lastLogged = System.currentTimeMillis();\n long maxBytesToInsert = (long) datasetSizeGB << 30;\n long bytesInserted = 0;\n int i = 0;\n\n logger.info(\"Inserting up to {}\", FBUtilities.prettyPrintMemory(maxBytesToInsert));\n\n try\n {\n while(bytesInserted < maxBytesToInsert)\n {\n scratch.clear();\n scratch.putLong(0, i);\n long hash = MurmurHash.hash64(scratchBytes, scratchBytes.length);\n cardinality.offerHashed(hash);\n\n counters.numInserted.incrementAndGet();\n bytesInserted += valueSize;\n\n i++;\n if (i == maxKey)\n i = 0;\n\n if (System.currentTimeMillis()- lastLogged >= TimeUnit.SECONDS.toMillis(1))\n {\n lastLogged = System.currentTimeMillis();\n logger.debug(\"Ins: {}, keys: {}, live sstables: {}, compacting: {}, pending compactions: {}\",\n FBUtilities.prettyPrintMemory(bytesInserted),\n i,\n dataTracker.getLiveSSTables().size(),\n dataTracker.getCompacting().size(),\n compactions.size() + strategy.getEstimatedRemainingTasks());\n }\n\n if (i >= (lastFlushed + uniqueKeysPerSStable) && // no point in checking the cardinality until we've inserted uniqueKeysPerSStable more entries\n (numToFlush = cardinality.cardinality()) >= uniqueKeysPerSStable)\n {\n counters.numFlushed.addAndGet(numToFlush);\n lastFlushed = i;\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"preload\", true);\n\n cardinality = newCardinality();\n }\n\n if (i % 1000 == 0 && state.get() == SimulationState.TEARING_DOWN)\n { // this happens if the compaction threads fail\n logger.debug(\"Interrupting preload, simulation is tearing down\");\n break;\n }\n }\n\n if ((numToFlush = cardinality.cardinality()) > 0)\n {\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"preload\", true);\n }\n }\n catch (Exception e)\n {\n logger.error(\"Exception happen during preloading\", e);\n }\n }",
"private void fillInTable() {\r\n // Firstly clean up panel.\r\n myOuterPanel.clear();\r\n LabelModel theLabelModel;\r\n for (LabelUUID theLabelUUID : myCaseItem.getLabels()) {\r\n theLabelModel = myLabelDataSource.getLabel(theLabelUUID.getValue());\r\n // The only reason it could be null is that the label has been\r\n // renamed and the case has not yet been updated.\r\n if (theLabelModel != null && theLabelModel.hasToBeDisplayed()) {\r\n // Check if the label has to be displayed.\r\n // Add the label in the panel.\r\n try {\r\n myOuterPanel.add(myLabelTable.get(theLabelUUID.getValue()));\r\n } catch (Exception theE) {\r\n GWT.log(\"label not found: \" + theLabelUUID.getValue() + \",\" + theLabelUUID.getOwner().getValue(), theE);\r\n }\r\n }\r\n }\r\n }",
"public Map<String, Object> map() {\n Map<String, Object> tomcatInstanceMap = new HashMap<>();\n tomcatInstanceMap.put(\"instanceUUID\", tomcatInstanceUUID);\n tomcatInstanceMap.put(\"instanceName\", instanceName);\n tomcatInstanceMap.put(\"environmentName\", environmentName);\n tomcatInstanceMap.put(\"tomcatVersion\", tomcatVersion);\n tomcatInstanceMap.put(\"destinationFolder\", destinationFolder.getAbsolutePath());\n tomcatInstanceMap.put(\"compressed\", compressed);\n tomcatInstanceMap.put(\"primaryPort\", primaryPort);\n tomcatInstanceMap.put(\"protocolPrimaryPort\", protocolPrimaryPort);\n tomcatInstanceMap.put(\"shutdownPort\", shutdownPort);\n tomcatInstanceMap.put(\"ajpPort\", ajpPort);\n tomcatInstanceMap.put(\"secureInstance\", secureInstance);\n tomcatInstanceMap.put(\"securePort\", securePort);\n tomcatInstanceMap.put(\"protocolSecurePort\", protocolSecurePort);\n tomcatInstanceMap.put(\"keystoreSourceFilename\", keystoreSourceFilename);\n tomcatInstanceMap.put(\"keystoreCredentials\", keystoreCredentials);\n tomcatInstanceMap.put(\"jvmOptionXms\", jvmOptionXms);\n tomcatInstanceMap.put(\"jvmOptionXmx\", jvmOptionXmx);\n tomcatInstanceMap.put(\"jvmOptionXss\", jvmOptionXss);\n tomcatInstanceMap.put(\"jvmOptionXXMaxMetaspaceSize\", jvmOptionXXMaxMetaspaceSize);\n tomcatInstanceMap.put(\"jvmOptions\", jvmOptions);\n tomcatInstanceMap.put(\"instanceManagement\", instanceManagement);\n /**\n * Serialize our Instance Management Properties\n */\n List<Map<String,String>> instanceManagementPropertiesMapList =\n new ArrayList<>(instanceManagementProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceManagementProperties) {\n instanceManagementPropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceManagementProperties\", instanceManagementPropertiesMapList);\n /**\n * Serialize our Instance Properties\n */\n List<Map<String,String>> instancePropertiesMapList =\n new ArrayList<>(instanceProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceProperties) {\n instancePropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceProperties\", instancePropertiesMapList);\n /**\n * Return the Map for Persisting as YAML.\n */\n return tomcatInstanceMap;\n }",
"private void readEntityDeploymentInitial() {\n for (Class<?> entityClass : bootupClasses.getEntities()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n Class<?> embeddedIdType = info.getEmbeddedIdType();\n if (embeddedIdType != null) {\n embeddedIdTypes.add(embeddedIdType);\n }\n }\n for (Class<?> entityClass : bootupClasses.getEmbeddables()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n if (embeddedIdTypes.contains(entityClass)) {\n // register embeddedId types early - scalar properties only\n // and needed for creating BeanTables (id properties)\n registerEmbeddedBean(info);\n } else {\n // delay register of other embedded beans until after\n // the BeanTables have been created to support ManyToOne\n embeddedBeans.add(info);\n }\n }\n }",
"@Override\n protected void before() {\n LOGGER.info(\"Creating cluster operator {} before test per @ClusterOperator annotation on {}\", cc, name(element));\n for (Map.Entry<File, String> entry : yamls.entrySet()) {\n LOGGER.info(\"creating possibly modified version of {}\", entry.getKey());\n deletable.push(entry.getValue());\n\n kubeClient().namespace(annotations(element, Namespace.class).get(0).value());\n kubeClient().clientWithAdmin().applyContent(entry.getValue());\n }\n applyMultipleNamespacesWatcher(element);\n kubeClient().waitForDeployment(CO_DEPLOYMENT_NAME, 1);\n }",
"public void load() {\n mapdb_ = DBMaker.newFileDB(new File(\"AllPoems.db\"))\n .closeOnJvmShutdown()\n .encryptionEnable(\"password\")\n .make();\n\n // open existing an collection (or create new)\n poemIndexToPoemMap_ = mapdb_.getTreeMap(\"Poems\");\n \n constructPoems();\n }",
"private void _loadCatalog() {\n if (discoveryEndpoint != null) {\n try {\n ResponseEntity<String> response = restTemplate.getForEntity(discoveryEndpoint, String.class);\n\n if (response.getStatusCode() == HttpStatus.OK) {\n String body = response.getBody();\n this.catalog = CdsHooksUtil.GSON.fromJson(body, CdsHooksCatalog.class);\n startPendingRequests();\n return;\n }\n } catch (Exception e) {\n log.warn(\"Failed to load CDS catalog for \" + discoveryEndpoint\n + \".\\nRetries remaining: \" + retries + \".\");\n }\n\n retry();\n }\n }",
"public MyPod()\n {\n color = \"black\";\n memory = 4;\n \n songLibrary[0] = new Song();\n songLibrary[1] = new Song();\n songLibrary[2] = new Song();\n \n \n \n }",
"@Test(timeout = 10000)\n public void testContainerLogPageAccess() throws IOException {\n Assume.assumeTrue(NativeIO.isAvailable());\n String user = \"randomUser\" + (System.currentTimeMillis());\n File absLogDir = null;\n File appDir = null;\n File containerDir = null;\n File syslog = null;\n try {\n // target log directory\n absLogDir = new File(\"target\", ((TestContainerLogsPage.class.getSimpleName()) + \"LogDir\")).getAbsoluteFile();\n absLogDir.mkdir();\n Configuration conf = new Configuration();\n conf.set(NM_LOG_DIRS, absLogDir.toURI().toString());\n conf.set(HADOOP_SECURITY_AUTHENTICATION, \"kerberos\");\n UserGroupInformation.setConfiguration(conf);\n NodeHealthCheckerService healthChecker = createNodeHealthCheckerService(conf);\n healthChecker.init(conf);\n LocalDirsHandlerService dirsHandler = healthChecker.getDiskHandler();\n // Add an application and the corresponding containers\n RecordFactory recordFactory = RecordFactoryProvider.getRecordFactory(conf);\n long clusterTimeStamp = 1234;\n ApplicationId appId = BuilderUtils.newApplicationId(recordFactory, clusterTimeStamp, 1);\n Application app = Mockito.mock(Application.class);\n Mockito.when(app.getAppId()).thenReturn(appId);\n // Making sure that application returns a random user. This is required\n // for SecureIOUtils' file owner check.\n Mockito.when(app.getUser()).thenReturn(user);\n ApplicationAttemptId appAttemptId = BuilderUtils.newApplicationAttemptId(appId, 1);\n ContainerId container1 = BuilderUtils.newContainerId(recordFactory, appId, appAttemptId, 0);\n // Testing secure read access for log files\n // Creating application and container directory and syslog file.\n appDir = new File(absLogDir, appId.toString());\n appDir.mkdir();\n containerDir = new File(appDir, container1.toString());\n containerDir.mkdir();\n syslog = new File(containerDir, \"syslog\");\n syslog.createNewFile();\n BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(syslog));\n out.write(\"Log file Content\".getBytes());\n out.close();\n Context context = Mockito.mock(Context.class);\n ConcurrentMap<ApplicationId, Application> appMap = new ConcurrentHashMap<ApplicationId, Application>();\n appMap.put(appId, app);\n Mockito.when(context.getApplications()).thenReturn(appMap);\n ConcurrentHashMap<ContainerId, Container> containers = new ConcurrentHashMap<ContainerId, Container>();\n Mockito.when(context.getContainers()).thenReturn(containers);\n Mockito.when(context.getLocalDirsHandler()).thenReturn(dirsHandler);\n Mockito.when(context.getConf()).thenReturn(conf);\n MockContainer container = new MockContainer(appAttemptId, new AsyncDispatcher(), conf, user, appId, 1);\n container.setState(RUNNING);\n context.getContainers().put(container1, container);\n ContainersLogsBlock cLogsBlock = new ContainersLogsBlock(context);\n Map<String, String> params = new HashMap<String, String>();\n params.put(CONTAINER_ID, container1.toString());\n params.put(CONTAINER_LOG_TYPE, \"syslog\");\n Injector injector = WebAppTests.testPage(ContainerLogsPage.class, ContainersLogsBlock.class, cLogsBlock, params, ((Module[]) (null)));\n PrintWriter spyPw = WebAppTests.getPrintWriter(injector);\n Mockito.verify(spyPw).write(((\"Exception reading log file. Application submitted by '\" + user) + \"' doesn't own requested log file : syslog\"));\n } finally {\n if (syslog != null) {\n syslog.delete();\n }\n if (containerDir != null) {\n containerDir.delete();\n }\n if (appDir != null) {\n appDir.delete();\n }\n if (absLogDir != null) {\n absLogDir.delete();\n }\n }\n }",
"@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)\n public void initialisePtuContainers() {\n LocalDateTime timestamp = DateTimeUtil.getCurrentDateTime();\n LocalDate period = timestamp.toLocalDate();\n int ptuIndex = PtuUtil.getPtuIndex(timestamp, config.getIntegerProperty(ConfigParam.PTU_DURATION));\n LOGGER.error(\"Initialising PTUs at startup, current PTU is {} {}\", period, ptuIndex);\n int updated = ptuContainerRepository.initialisePtuContainers(period, ptuIndex);\n LOGGER.debug(\"Updated {} PTUs\", updated);\n }",
"public static int buildSlice(AcceptedReq acceptedReq, HashMap<String, VM> allocVmMapForReq, HashMap<String, VSw> rsvdVSwIdToObjMap, HashMap<String, Datapath> datapathIdToObjMap, String controller_url){\n\n\t\tint threadSleepTime = 0;\n\t\t\n\t\t\n\t\t\n\t\tString reqUri = acceptedReq.getReqUri();\n\t\t\n\t\t//String fvReqMethod = \"get-config\";\n\t\t//String fvReqJsonString = new JsonObject().add(\"id\",99).add(\"method\", \"get-config\").add(\"params\", new JsonObject()).add(\"jsonrpc\", \"2.0\").toString();\n\t\tSystem.out.println(\"\\nAdding slice for Request \"+reqUri);\n\t\t//Multimap<String, String> hostedVmUris = getHostedVmUris(allocVmMapForReq);\n\t\tMap<String, String> hostedOvsUris = getHostedOvsUris(rsvdVSwIdToObjMap, datapathIdToObjMap);\n\n\t\tSystem.out.println(\"Allocated VMs = \"+allocVmMapForReq.size());\n\t\tfor(String allocVmUri : allocVmMapForReq.keySet()){\n\t\t\tVM allocVmObj = allocVmMapForReq.get(allocVmUri);\n\t\t\tSystem.out.println(\"\\nresourceUri \\t = \"+allocVmObj.getResourceURI());\n\t\t\tSystem.out.println(\"resourceLocation \\t = \"+allocVmObj.getResLocation());\n\t\t\tSystem.out.println(\"intfs.macAddress \\t = \"+allocVmObj.getIntfsObjArray()[0].getMacAddress());\n\t\t\tSystem.out.println(\"target VLAN-id \\t = \"+acceptedReq.getTargetVlan());\n\t\t\t\n\t\t}\n\n\t\tif(BUILD_SLICE_DBG)\n\t\t\tfor(String rsvdVSwId : acceptedReq.getRsvdVsResList()){\n\t\t\t\tVSw vSwObj = rsvdVSwIdToObjMap.get(rsvdVSwId);\n\t\t\t\tPrintContainerValues.printVSwObj(vSwObj);\n\t\n\t\t\t}\n\t\t\t// TODO: Edit this to print only location Datapath info \n\t\tif(BUILD_SLICE_DBG)\n\t\t\tfor(String datapathUri : datapathIdToObjMap.keySet()){\n\t\t\t\tDatapath datapathObj = datapathIdToObjMap.get(datapathUri);\n\t\t\t\tPrintContainerValues.printDatapathObj(datapathObj);\n\t\n\t\t\t}\n\t\t\n\t\t//if(BUILD_SLICE_DBG)\n\t\tSystem.out.println(\"\\nhostedOvsUris.size() = \"+hostedOvsUris.size());\n\t\t\tfor(String hostUri : hostedOvsUris.keySet())\n\t\t\t\tSystem.out.println(\"\\t Host = \"+hostUri+\"\\t Ovs = \"+hostedOvsUris.get(hostUri));\n\t\t\n\t\t\n\n\t\t// Creating one flowvisor slice for each request\n\t\tJsonObject addSliceParamObj = new JsonObject();\n\t\taddSliceParamObj.add(\"slice-name\", reqUri).add(\"controller-url\", controller_url).add(\"admin-contact\", \"hamar040@uottawa.ca\").add(\"password\", \"\");\n\t\tJsonObject addSliceJsonReq= new JsonObject();\n\t\taddSliceJsonReq.add(\"id\",1).add(\"method\", \"add-slice\").add(\"params\", addSliceParamObj).add(\"jsonrpc\", \"2.0\");\n\t\tSystem.out.println(addSliceJsonReq.toString());\n\t\t// Commit slice creation by making flowvisor request\n\t\tif(COMMIT_DEPLOYMENT)makeFvRequest(\"add-slice\", addSliceJsonReq.toString());\n\t\telse PrintContainerValues.prettyPrintJSONAsString(addSliceJsonReq.toString());\n\t\t\n\t\t// $ curl -k -d '{\"id\":1,\"method\":\"add-slice\",\"params\":{\"slice-name\":\"REQ-0\",\"controller-url\":\"tcp:192.168.0.203:6633\",\"admin-contact\":\"hamar040@uottawa.ca\",\"password\":\"\"},\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.200:8081\n\t\t// Creating flowspace array\n\t\t//JsonArray addFlowspaceArray = new JsonArray();\n\t\t\n\t\tSystem.out.println(\"acceptedReq.getAlocVsResList().size() = \"+acceptedReq.getRsvdVsResList().size());\n\t\tfor (String rsvdVsResId : acceptedReq.getRsvdVsResList()){\n\t\t\tString virtualizedSwUri = rsvdVSwIdToObjMap.get(rsvdVsResId).getLocation();\n\t\t\tDatapath virtualizedSwObj = datapathIdToObjMap.get(virtualizedSwUri);\n\t\t\tString ovsMacAddress = virtualizedSwObj.getDpid();\n\t\t\tSystem.out.println(\"\\t virtualizedSwUri = \"+virtualizedSwUri+\"\\t Location = \"+virtualizedSwObj.getResLocation());\n\t\t\t\n\t\t\tif(COMMIT_DEPLOYMENT)\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t\tthreadSleepTime += 2000;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Creating flowspace array\n\t\t\tJsonArray addFlowspaceArray = new JsonArray();\n\t\t\t// $ fvctl -f /dev/null add-flowspace all-host3-ovsbr0 00:00:d4:ae:52:d2:73:da 1 all pox1=7\n\t\t\t// $ curl -k -d '{\"id\":\"1\",\"method\":\"list-datapath-flowdb\",\"params\":{\"dpid\":\"5e:3e:08:9e:01:93:5e:08\"},\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t\t\n\t\t\tJsonObject sliceActionJsonObj = new JsonObject();\n\t\t\tsliceActionJsonObj.add(\"slice-name\", reqUri).add(\"permission\", 7);\t//\t{ \"slice-name\" : <name> \", \"permission\" : <perm-value> }\n\t\n\t\t\tJsonArray sliceActionJsonArray = new JsonArray();\t\t\t\t\t//\t[ { \"slice-name\" : <name> \", \"permission\" : <perm-value> } ]\n\t\t\tsliceActionJsonArray.add(sliceActionJsonObj);\n\t\n\t\t\tJsonObject matchJsonObj = new JsonObject();\t\t\t\t\t\t\t// \t{\"dl_vlan\":1000}\n\t\t\tmatchJsonObj.add(\"dl_vlan\", acceptedReq.getTargetVlan());\n\t\n\t\t\tJsonObject addFlowspaceParamObj = new JsonObject();\n\t\t\t//addFlowspaceParamObj.add(\"name\",virtualizedSwUri+\"_\"+reqUri+\"_\"+flowSpaceNumber).add(\"dpid\", ovsMacAddress).add(\"priority\", 1).add(\"match\", matchJsonObj).add(\"slice-action\", sliceActionJsonArray);\n\t\t\taddFlowspaceParamObj.add(\"name\",virtualizedSwUri+\"_\"+reqUri).add(\"dpid\", ovsMacAddress).add(\"priority\", 1).add(\"match\", matchJsonObj).add(\"slice-action\", sliceActionJsonArray);\n\t\t\t// {\"name\":\"S-4_REQ-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_src\":\"f0:62:15:9f:71:97\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}\n\t\t\t\n\t\t\taddFlowspaceArray.add(addFlowspaceParamObj);\n\t\t\t// [{addFlowspaceParamObj1}, {addFlowspaceParamObj2}, ... ]\n\t\t\t\n\t\t\tJsonObject addFlowspaceJsonReq= new JsonObject();\n\t\t\taddFlowspaceJsonReq.add(\"id\",1).add(\"method\", \"add-flowspace\").add(\"params\", addFlowspaceArray).add(\"jsonrpc\", \"2.0\");\n\t\t\t\n\t\t\t//\tCommit flowspace creation by making flowvisor request\n\t\t\tif(COMMIT_DEPLOYMENT)makeFvRequest(\"add-flowspace\", addFlowspaceJsonReq.toString());\n\t\t\t//else PrintContainerValues.prettyPrintJSONAsString(addFlowspaceJsonReq.toString());\n\t\t\t\n\t\t}\n\t\t\n\t\t//JsonObject addFlowspaceJsonReq= new JsonObject();\n\t\t//addFlowspaceJsonReq.add(\"id\",1).add(\"method\", \"add-flowspace\").add(\"params\", addFlowspaceArray).add(\"jsonrpc\", \"2.0\");\n\t\t// {\"id\":1, \"method\":\"add-flowspace\", \"params\": [{addFlowspaceParamObj1}, {addFlowspaceParamObj2}, ... ], \"jsonrpc\":\"2.0\"}\n\t\t\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-1_REQ-0_FS-0\",\"dpid\":\"00:0037d\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.200:8081\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-1_REQ-0_FS-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-10_REQ-0_FS-1\",\"dpid\":\"5e:3e:08:9e:01:93:5d:90\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-4_REQ-0_FS-2\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-3_REQ-0_FS-3\",\"dpid\":\"5e:3e:08:9e:01:93:5e:08\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-2_REQ-0_FS-4\",\"dpid\":\"5e:3e:c4:54:44:4f:2b:24\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.200:8081\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-6_REQ-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_src\":\"5e:ef:de:b5:7e:b2\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-5_REQ-0\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"32:bb:e5:61:66:fa\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-5_REQ-0\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"fa:83:bb:4b:cb:c0\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t// \n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-3_REQ-0_FS-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_src\":\"08:0d:40:bd:51:e2\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-4_REQ-0_FS-0\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"2c:ed:7a:9c:1a:2b\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-4_REQ-0_FS-1\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"00:34:63:74:74:dd\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t\n\t\t//PrintContainerValues.prettyPrintJSONAsString(addFlowspaceJsonReq.toString());\n\t\t//makeFvRequest(\"add-flowspace\", addFlowspaceJsonReq.toString());\n\t\treturn threadSleepTime;\n\t}",
"public static Map<String, Integer> getCurrentContainerDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ContainerStatsEntity.class, \"contSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.statsDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ContainerStatsEntity> contEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ContainerStatsEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapApiSts.put(fullAppName, contStsEntity.getTotalContainer());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapApiSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainer());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"private void loadRecords() {\r\n\t\tpanContent.updateContent();\r\n\t}",
"@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void buildAggTable(int k, int numEachPod) {\n\t\tfor (int p = 0; p < k; p++) {\n\t\t\tint offset = numEachPod * p;\n\t\t\tfor (int a = 0; a < k / 2; a++) {\n\t\t\t\tint aggSwitch = offset + k * k / 4 + k / 2 + a;\n\n\t\t\t\t// create suffix table\n\t\t\t\tMap<Integer, Integer> suffixTable = new HashMap<>();\n\t\t\t\tfor (int suffix = 2; suffix <= k / 2 + 1; suffix++) { \n\t\t\t\t\t// add suffix 0.0.0.suffix/8 and port (suffix + a - 2) % (k / 2) for each aggregation switch\n\t\t\t\t\tint core = a * k / 2 + (suffix + a - 2) % (k / 2) + numEachPod * k;\n\t\t\t\t\tsuffixTable.put(suffix, core);\n\t\t\t\t}\t\t\n \n\t\t\t\tsuffixTables.put(aggSwitch, suffixTable);\n\n\t\t\t\t// create prefix table\n\t\t\t\tMap<javatuples.Triplet<Integer, Integer, Integer>, Integer> prefixTable = new HashMap<>();\n\t\t\t\tfor (int e = 0; e < k / 2; e++) { // e denotes the subnet number\n\t\t\t\t\t// add prefix 10.p.e.0/24 and port e for each edge switch\n\t\t\t\t\tint edgeSwitch = offset + k * k / 4 + e;\n\t\t\t\t\tprefixTable.put(new javatuples.Triplet<>(10, p, e), edgeSwitch);\n\t\t\t\t}\n \n\t\t\t\tprefixTables.put(aggSwitch, prefixTable);\n\t\t\t}\n\t\t}\n\t}",
"public abstract void onContainerStarted(ContainerId containerId,\n Map<String, ByteBuffer> allServiceResponse);",
"public void onContainerRestart(ContainerId containerId) {}",
"private static Datacenter CreateDataCenter() {\n\t\tList<Pe> peList = new ArrayList<Pe>();\n\t\t//One PE with 1000 Mips\n\t\tPeProvisionerSimple peProvisioner = new PeProvisionerSimple(1000);\n\t\t////Four 1000 MIPS PEs\n\t\tfor (int id = 0; id < 4; id++) {\n\t\t\tPe core = new Pe(id, peProvisioner);\n\t\t\tpeList.add(core);\n\t\t}\n\t\t//Initialize the hosts\n\t\tList<Host> hostList = new ArrayList<Host>();\n\t\t//8 GB RAM\n\t\tint ram = 8000;\n\t\t//1 MPBS network bandwidth\n\t\tint bw = 1000;\n\t\t//100 GB storage\n\t\tlong storage = 100000;\n\t\tfor (int id = 0; id < 4; id++) {\n\t\t\tHost host = new Host(id, new RamProvisionerSimple(ram), new BwProvisionerSimple(bw), storage, peList,\n\t\t\t\t\tnew VmSchedulerSpaceShared(peList));\n\t\t\thostList.add(host);\n\t\t}\n\t\t//Initialize the data center\n\t\tString architecture = \"x64\";\n\t\tString os = \"Kelly Linux\";\n\t\tString vmm = \"XEN\";\n\t\tdouble timeZone = -4.0;\n\t\tdouble computeCostPerSec = 3.0;\n\t\tdouble costPerMem = 1.0;\n\t\tdouble costPerStorage = 0.05;\n\t\tdouble costPerBW = 0.10;\n\t\tDatacenterCharacteristics datacenterCharacteristics = new DatacenterCharacteristics(architecture, os, vmm,\n\t\t\t\thostList, timeZone, computeCostPerSec, costPerMem, costPerStorage, costPerBW);\n\t\tLinkedList<Storage> SANstorage = new LinkedList<Storage>();\n\t\tDatacenter datacenter = null;\n\t\ttry {\n\t\t\tdatacenter = new Datacenter(\"datacenter0\", datacenterCharacteristics,\n\t\t\t\t\tnew VmAllocationPolicySimple(hostList), SANstorage, 1);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn datacenter;\n\t}",
"public ContainerStatus getContainerStatus(Pod pod, String containerName) {\n final List<ContainerStatus> containerStatuses = pod.getStatus().getContainerStatuses();\n\n return containerStatuses.stream()\n .filter(container -> containerName.equals(container.getName()))\n .findAny()\n .orElse(null);\n }",
"public abstract List<Container> getContainers(TaskType t);",
"protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }",
"public static void loadPOTables(){\n\t\ttry {\n\t\t\tfor(TableInfo tableInfo:tables.values()){\n\t\t\t\tClass c = Class.forName(DBManager.getConfiguration().getPoPackage()+\".\"+StringUtils.firstCharUpperCase(tableInfo.getTname()));\n\t\t\t\tpoClassTableMap.put(c, tableInfo);\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}",
"private static CloudBlobContainer getContainer() throws Exception {\n\n CloudStorageAccount storageAccount = CloudStorageAccount.parse(storageConnectionString);\n\n // Create the blob client.\n CloudBlobClient blobClient = storageAccount.createCloudBlobClient();\n // Get a reference to a container.\n // The container name must be lower case\n CloudBlobContainer container = blobClient.getContainerReference(\"sparshdevmobileapp\");\n\n return container;\n }",
"public int get_podsActuels() {\r\n\t\tint pods = 0;\r\n\t\tfor(Objet value : _items.values())\r\n\t\t{\r\n\t\t\tpods = value.getTemplate().getPod() * value.getQuantity(); \r\n\t\t}\r\n\t\treturn pods;\r\n\t}",
"private void initializePetHealthControllers() {\n trAddNewWeight = PetHealthControllersFactory.createTrAddNewWeight();\n trDeleteWeight = PetHealthControllersFactory.createTrDeleteWeight();\n trAddNewWashFrequency = PetHealthControllersFactory.createTrAddNewWashFrequency();\n trDeleteWashFrequency = PetHealthControllersFactory.createTrDeleteWashFrequency();\n trGetAllWeights = PetHealthControllersFactory.createTrGetAllWeights();\n }",
"private Datacenter createDatacenter(String name){\n List<Host> hostList = new ArrayList<Host>();\n\n for (int i=0; i<HostCount; i++){\n\n // 2. A Machine contains one or more PEs or CPUs/Cores.\n List<Pe> peList = new ArrayList<Pe>();\n\n // 3. Create PEs and add these into a list.\n for (int j=0; j<HostCoreCount; j++){\n peList.add(new Pe(j, new PeProvisionerSimple(HostCoreMips)));\n }\n\n\n //in this example, the VMAllocatonPolicy in use is SpaceShared. It means that only one VM\n //is allowed to run on each Pe. As each Host has only one Pe, only one VM can run on each Host.\n hostList.add(\n new Host(\n i,\n new RamProvisionerSimple(HostRam),\n new BwProvisionerSimple(HostBandwidth),\n HostStorage,\n peList,\n new VmSchedulerSpaceShared(peList)\n )\n );\n }\n\n\n // 5. Create a DatacenterCharacteristics object that stores the\n // properties of a data center: architecture, OS, list of\n // Machines, allocation policy: time- or space-shared, time zone\n // and its price (G$/Pe time unit).\n String arch = \"x86\"; // system architecture\n String os = \"Linux\"; // operating system\n String vmm = \"Xen\";\n double time_zone = 10.0; // time zone this resource located\n double cost = 3.0; // the cost of using processing in this resource\n double costPerMem = 0.05;\t\t// the cost of using memory in this resource\n double costPerStorage = 0.001;\t// the cost of using storage in this resource\n double costPerBw = 0.0;\t\t\t// the cost of using bw in this resource\n LinkedList<Storage> storageList = new LinkedList<Storage>();\t//we are not adding SAN devices by now\n\n DatacenterCharacteristics characteristics = new DatacenterCharacteristics(\n arch, os, vmm, hostList, time_zone, cost, costPerMem, costPerStorage, costPerBw);\n\n // 6. Finally, we need to create a PowerDatacenter object.\n Datacenter datacenter = null;\n\n try {\n datacenter = new Datacenter(name, characteristics, new VmAllocationPolicySimple(hostList), storageList, 0);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return datacenter;\n }",
"@Override\n\t\tpublic Container convert(ChildData source) {\n\t\t\treturn new Container(Paths.stripPath(source.getPath()), mapBytesUtility.toMap(source.getData()));\n\t\t}",
"public static HashMap<String,JSONObject> getCloudFoundryServiceConfiguration(){\r\n\t\tHashMap<String,JSONObject> names=new HashMap<String,JSONObject>();\r\n\t\tString svcs=System.getenv(\"VCAP_SERVICES\");\r\n\t\tJSONObject VCAP_SERVICES =null;\r\n\t\ttry {\r\n\t\t\tif(svcs==null || svcs.length()==0){\r\n\t\t\t\tSystem.out.println(\"VCAP_SERVICES not defined, loading VCAP_SERVICES.JSON\");\r\n\t\t\t\tVCAP_SERVICES = parts4j.util.Readers.fromResource(\"VCAP_SERVICES.JSON\").onErrException().toJSONObject();\r\n\t\t\t}else{\r\n\t\t\t\tVCAP_SERVICES = parts4j.util.Readers.fromSystemEnv(\"VCAP_SERVICES\").onErrException().toJSONObject();\r\n\t\t\t}\r\n\t\t\tfor(Object type : VCAP_SERVICES.keySet()){\r\n\t\t\t\tJSONArray svcType=(JSONArray)VCAP_SERVICES.get(type);\r\n\t\t\t\tfor(int i=0;i<svcType.size();i++){\r\n\t\t\t\t\tJSONObject svc = (JSONObject)svcType.get(i);\r\n\t\t\t\t\tnames.put((String)svc.get(\"name\"),svc);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new RuntimeException(\"VCAP_SERVICES env data failed to load\",e);\r\n\t\t}\r\n\t\treturn names;\r\n\t}",
"public static void updateObjPodss(int environmentId, String objName, ArrayList<Integer> podContList){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tString updateApiStsQry = null;\n\t\tupdateApiStsQry = HQLConstants.UPDATE_K8S_OBJECT_PODS;\n\t\t\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"pods\", podContList.get(0));\n\t\tquery.setInteger(\"containers\", podContList.get(1));\n\t\tquery.setString(\"objName\", objName);\n\t\tquery.setLong(\"environmentId\", environmentId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}",
"private void readEntityBeanTable() {\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n BeanTable beanTable = createBeanTable(info);\n beanTableMap.put(beanTable.getBeanType(), beanTable);\n }\n // register non-id embedded beans (after bean tables are created)\n for (DeployBeanInfo<?> info : embeddedBeans) {\n registerEmbeddedBean(info);\n }\n }",
"public static Containers<Integer, String> getContainers() {\n\t\t// TODO fix this function\n\t\t//do singleton thingy\n\t\tif (cont == null) {\n\t\t\tcont = new HW0Runner<Integer, String>();\n\t\t}\n\t\treturn cont;\n\t}",
"public void setContainer(RuntimeContainer container)\n {\n this.container = container;\n }",
"@PostConstruct\n public void postConstruct() {\n for (DBMetadataRepository repository : dbMetadataRepositories) {\n repositoryMap.put(repository.getProvider(), repository);\n }\n }",
"@PostConstruct\r\n public void getCountriesKeysAndNamesAtApplicationStartUp() {\r\n ViewsController.countries = new HashMap<>();\r\n Object object = restTemplate.getForObject(\"https://api.covid19tracking.narrativa.com/api/countries\", Object.class);\r\n new HashMap<>();\r\n if (object != null) {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n Country data = objectMapper.convertValue(object, Country.class);\r\n for (Country_ country : data.getCountries()) {\r\n ViewsController.countries.put(country.getId(), country.getName());\r\n }\r\n }\r\n }",
"private void buildTables(){\r\n\t\tarticleTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\tarticleTable.setPageLength(5);\r\n\t\tlabel = new Label(\"No article found\");\r\n\t\tlabel2 = new Label(\"No image found\");\r\n\t\timageTable.setWidth(50, Unit.PERCENTAGE);\r\n\t\timageTable.setPageLength(5);\r\n\t}",
"@Override\n public @NotNull Class<PersistentDataContainer> getPrimitiveType() {\n return PersistentDataContainer.class;\n }",
"com.google.container.v1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder();",
"com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling();",
"void setContainers(DriveRequest<?> request, String containers);",
"@Override\n protected void loadData() {\n setUpLoadingViewVisibility(true);\n callImageList = RetrofitGenerator.createService(ApiService.class)\n .getAllPubImage();\n callImageList.enqueue(callbackImageList);\n }",
"private List<DataContainer> getDataContainerList() {\r\n if (dataContainerList == null) {\r\n parse();\r\n }\r\n return this.dataContainerList;\r\n }",
"public OpenIntIntHashMap getClusterSizes() {\n\n if (sizeMap != null) return sizeMap;\n\n sizeMap = new OpenIntIntHashMap();\n\n ValueIterator imageIterator = labelledVolume.valueIterator();\n //Map<Integer, Integer> sizes = new HashMap<Integer, Integer>();\n\n do {\n int label = (int) imageIterator.next();\n if (label > 0) {\n if (sizeMap.containsKey(label)) {\n int crt = sizeMap.get(label) + 1;\n sizeMap.put(label, crt);\n } else {\n sizeMap.put(label, 1);\n }\n }\n\n\n } while (imageIterator.hasNext());\n\n return sizeMap;\n }",
"@Ignore\n\t@Test\n\tpublic void testGetDockerClient(){\n\t\tList<Container> shinyContainers = dockerService.getShinyContainers();\n\t\tAssert.assertEquals(1, shinyContainers.size());\n\t}",
"String getKubernetesServiceType();",
"public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}",
"void fetchStartHousesData();",
"private void initializeComponents() {\n\n RootConfig rootConfig = UAAppContext.getInstance().getRootConfig();\n\n if (rootConfig == null || rootConfig.mApplications == null) {\n // Error - Root Config inconsistencies\n Utils.logError(LogTags.PROJECT_LIST, \"No Root Config for user after AppStartupThread2\" +\n \"-- redirecting user to login screen\");\n invalidateLogin();\n moveToLoginScreen();\n }\n\n for (ProjectTypeModel projectTypeModel : rootConfig.mApplications) {\n if (projectTypeModel.mAppId.equals(mAppId)) {\n if (projectTypeModel.mSortType != null && !projectTypeModel.mSortType.isEmpty()) {\n mSortType = projectTypeModel.mSortType;\n }\n if (projectTypeModel.mFilteringAttributes != null && projectTypeModel.mFilteringAttributes.size() > 0) {\n mFilteringAttributes = projectTypeModel.mFilteringAttributes;\n }\n // Checking if Map Configuration is null or not\n if (UAAppContext.getInstance().getMapConfig() != null) {\n Map<String, List<MapInfo>> appSpecificMarkers = UAAppContext.getInstance().getMapConfig().mapMarkers;\n if (appSpecificMarkers != null && !appSpecificMarkers.isEmpty()) {\n mapMarkers = appSpecificMarkers.get(mAppId);\n }\n if (UAAppContext.getInstance().getMapConfig().files != null) {\n mapLayers = MapUtils.getInstance().getLayerFiles();\n }\n }\n break;\n }\n }\n\n if (mGroupingAttribute != null && !mGroupingAttribute.isEmpty()) {\n // Only show the projects that have this grouping attribute\n UAAppContext.getInstance().setProjectList(UAAppContext.getInstance().getDBHelper().getProjectsForUserForGroupingAttribute(UAAppContext\n .getInstance().getUserID(), mAppId, mGroupingAttributeValue.toLowerCase()));\n } else {\n UAAppContext.getInstance().setProjectList(UAAppContext.getInstance().getDBHelper().getProjectsForUser(UAAppContext\n .getInstance().getUserID(), mAppId));\n }\n mProjectList = UAAppContext.getInstance().getProjectList();\n }",
"public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"FileName\", this.FileName);\n this.setParamSimple(map, prefix + \"FilePath\", this.FilePath);\n this.setParamSimple(map, prefix + \"VirusName\", this.VirusName);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"ModifyTime\", this.ModifyTime);\n this.setParamSimple(map, prefix + \"ContainerName\", this.ContainerName);\n this.setParamSimple(map, prefix + \"ContainerId\", this.ContainerId);\n this.setParamSimple(map, prefix + \"ContainerStatus\", this.ContainerStatus);\n this.setParamSimple(map, prefix + \"ImageName\", this.ImageName);\n this.setParamSimple(map, prefix + \"ImageId\", this.ImageId);\n this.setParamSimple(map, prefix + \"Status\", this.Status);\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"HarmDescribe\", this.HarmDescribe);\n this.setParamSimple(map, prefix + \"SuggestScheme\", this.SuggestScheme);\n this.setParamSimple(map, prefix + \"SubStatus\", this.SubStatus);\n this.setParamSimple(map, prefix + \"ContainerNetStatus\", this.ContainerNetStatus);\n this.setParamSimple(map, prefix + \"ContainerNetSubStatus\", this.ContainerNetSubStatus);\n this.setParamSimple(map, prefix + \"ContainerIsolateOperationSrc\", this.ContainerIsolateOperationSrc);\n this.setParamSimple(map, prefix + \"MD5\", this.MD5);\n this.setParamSimple(map, prefix + \"RiskLevel\", this.RiskLevel);\n this.setParamArraySimple(map, prefix + \"CheckPlatform.\", this.CheckPlatform);\n this.setParamSimple(map, prefix + \"NodeID\", this.NodeID);\n this.setParamSimple(map, prefix + \"NodeName\", this.NodeName);\n this.setParamSimple(map, prefix + \"PodIP\", this.PodIP);\n this.setParamSimple(map, prefix + \"PodName\", this.PodName);\n this.setParamSimple(map, prefix + \"ClusterID\", this.ClusterID);\n this.setParamSimple(map, prefix + \"NodeType\", this.NodeType);\n this.setParamSimple(map, prefix + \"PublicIP\", this.PublicIP);\n this.setParamSimple(map, prefix + \"InnerIP\", this.InnerIP);\n this.setParamSimple(map, prefix + \"NodeUniqueID\", this.NodeUniqueID);\n this.setParamSimple(map, prefix + \"HostID\", this.HostID);\n this.setParamSimple(map, prefix + \"ClusterName\", this.ClusterName);\n\n }",
"private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }",
"@Override\n public void postLoad(BigDataStructureContainer learnedParameters, MemoryConfiguration memoryConfiguration) {\n }",
"private void loadJobs(){\n\t\tsuperJobsList.clear();\n\t\tsuperJobs=jdbc.getProjectsAndJobs();\n\t\tfor(Job j: superJobs){\n\t\t\tsuperJobsList.addElement(j.jobname);\n\t\t}\n\t\t\n\t}",
"public synchronized void startCloudServices() {\n if (!Platform.cloudServicesStarted) {\n // guarantee to execute once\n Platform.cloudServicesStarted = true;\n AppConfigReader reader = AppConfigReader.getInstance();\n String cloudServices = reader.getProperty(EventEmitter.CLOUD_SERVICES);\n if (cloudServices != null) {\n List<String> list = Utility.getInstance().split(cloudServices, \", \");\n if (!list.isEmpty()) {\n List<String> loaded = new ArrayList<>();\n SimpleClassScanner scanner = SimpleClassScanner.getInstance();\n List<ClassInfo> services = scanner.getAnnotatedClasses(CloudService.class, true);\n for (String name: list) {\n if (loaded.contains(name)) {\n log.error(\"Cloud service ({}) already loaded\", name);\n } else {\n if (startService(name, services, false)) {\n loaded.add(name);\n } else {\n log.error(\"Cloud service ({}) not found\", name);\n }\n }\n }\n if (loaded.isEmpty()) {\n log.warn(\"No Cloud services are loaded\");\n } else {\n log.info(\"Cloud services {} started\", loaded);\n }\n }\n }\n }\n }"
] | [
"0.63016456",
"0.59579504",
"0.58186895",
"0.5506532",
"0.53779656",
"0.49263844",
"0.48985386",
"0.48734304",
"0.47068927",
"0.46996906",
"0.4685383",
"0.45952588",
"0.45810157",
"0.4571327",
"0.44667947",
"0.4456345",
"0.435297",
"0.4348065",
"0.4337585",
"0.4301367",
"0.4292545",
"0.42580912",
"0.42347848",
"0.42301086",
"0.4212671",
"0.42075002",
"0.42019886",
"0.4201921",
"0.4198502",
"0.41983533",
"0.41869769",
"0.41692612",
"0.41643336",
"0.41575268",
"0.41568592",
"0.4148048",
"0.41414583",
"0.41346735",
"0.41155678",
"0.41140223",
"0.41089925",
"0.41026676",
"0.4101139",
"0.40881997",
"0.40749797",
"0.4071816",
"0.4067761",
"0.40603113",
"0.40574682",
"0.4056677",
"0.40136427",
"0.40123785",
"0.40048718",
"0.40006927",
"0.40004757",
"0.39955157",
"0.3982796",
"0.3979601",
"0.3977977",
"0.3977127",
"0.39644846",
"0.39515305",
"0.39479277",
"0.39432272",
"0.39416778",
"0.39396292",
"0.3933582",
"0.392355",
"0.392331",
"0.3916152",
"0.39160177",
"0.39154187",
"0.39143786",
"0.3907941",
"0.3907778",
"0.3887019",
"0.38865218",
"0.38833886",
"0.38799074",
"0.38775828",
"0.38758072",
"0.38658062",
"0.38640764",
"0.38638043",
"0.38624573",
"0.38535565",
"0.38487107",
"0.38474855",
"0.3847339",
"0.384534",
"0.38382736",
"0.38359034",
"0.38353282",
"0.38341597",
"0.383182",
"0.38280156",
"0.38278472",
"0.38241294",
"0.3823605",
"0.38232833"
] | 0.60951495 | 1 |
Get List of components from the database for the given EnvironmentEntity. | public static Map<String, Integer> getAllComponentIdForEnv(int envId,String platform) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Criteria hcCriteria = session.createCriteria(HealthCheckEntity.class,"hc");
hcCriteria.createCriteria("hc.component", "c");
hcCriteria.createCriteria("c.parentComponent", "pc");
hcCriteria.add(Restrictions.eq("hc.delInd", 0));
hcCriteria.add(Restrictions.eq("c.delInd", 0));
hcCriteria.add(Restrictions.eq("pc.delInd", 0));
hcCriteria.add(Restrictions.eq("hc.environment.environmentId", envId));
hcCriteria.add(Restrictions.eq("c.platform", platform));
Map<String, Integer> compMap = new HashMap<String, Integer>();
List<HealthCheckEntity> results = hcCriteria.list();
for(HealthCheckEntity healthCheckEntity : results){
String comp = healthCheckEntity.getComponent().getParentComponent().getComponentName()+"/"+healthCheckEntity.getComponent().getComponentName();
compMap.put(comp, healthCheckEntity.getComponent().getComponentId());
}
txn.commit();
return compMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ComponentType> getComponentsType() {\r\n\t\treturn ctDao.findAll();\r\n\t}",
"public static List<ComponentVO> getAllAPIComponentDetails(final int environmentId, String platform, long regionId) {\n\t\t\n\t\tAppTransformConfig config = readAppTransformConfig();\n\t\t\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria healthCheckCriteria = session.createCriteria(HealthCheckEntity.class, \"hc\");\n\t\thealthCheckCriteria.createCriteria(\"hc.component\",\"cmp\");\n\t\thealthCheckCriteria.createCriteria(\"hc.component.parentComponent\",\"prnt\");\n\t\thealthCheckCriteria.createCriteria(\"hc.component.componentType\", \"ct\");\n\t\thealthCheckCriteria.add(Restrictions.eq(\"hc.environment.environmentId\", environmentId));\n\t\thealthCheckCriteria.add(Restrictions.eq(\"hc.region.regionId\", regionId));\n\t\thealthCheckCriteria.add(Restrictions.isNotNull(\"prnt.componentId\"));\n\t\thealthCheckCriteria.add(Restrictions.eq(\"cmp.platform\", platform));\n\t\tif(config == null){\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"ct.componentTypeId\", ComponentType.APP.getComponentTypeId()));\n\t\t}else{\n\t\t\thealthCheckCriteria.add(Restrictions.or(Restrictions.eq(\"ct.componentTypeId\",ComponentType.APP.getComponentTypeId()),\n\t \t\tRestrictions.in(\"prnt.componentName\", config.getTransformName().values() )) );\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<HealthCheckEntity> compHltDetails = healthCheckCriteria.list();\n\t\ttxn.commit();\n\t\tArrayList<ComponentVO> returnList = new ArrayList<ComponentVO>();\n\n\t\tfor (HealthCheckEntity hc: compHltDetails) {\n\t\t\tComponentVO cVO = new ComponentVO();\n\t\t\tcVO.setDelInd(hc.getDelInd());\n\t\t\tComponentEntity comp = hc.getComponent();\n\t\t\tcVO.setComponentId(comp.getComponentId());\n\t\t\tcVO.setComponentName(comp.getComponentName());\n\t\t\tcVO.setComponentDesc(comp.getComponentDesc());\n\t\t\tcVO.setParentComponentId(comp.getParentComponent().getComponentId());\n\t\t\tcVO.setComponentTypeId(comp.getComponentType().getComponentTypeId());\n\t\t\t\n\t\t\treturnList.add(cVO);\n\t\t}\n\t\treturn returnList;\n\t}",
"public static List<EnvironmentVO> getAllEnvironments() throws SQLException {\n\t\tArrayList<EnvironmentVO> environmentVOs = new ArrayList<EnvironmentVO>();\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria envCriteria = session.createCriteria(EnvironmentEntity.class);\n\t\tenvCriteria.add(Restrictions.eq(\"envLock\", 0));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<EnvironmentEntity> environmentEntities = envCriteria.list();\n\t\tfor(EnvironmentEntity entity : environmentEntities) {\n\t\t\tEnvironmentVO enVo = new EnvironmentVO();\n\t\t\tenVo.setEnvironmentId(entity.getEnvironmentId());\n\t\t\tenVo.setEnvironmentName(entity.getEnvironmentName());\n\t\t\tenVo.setMarathonUrl(entity.getMarathonURL());\n\t\t\tenVo.setMarathonCred(entity.getMarathonCred());\n\t\t\tif(entity.getMarathonJson()!=null){\n\t\t\t\tbyte[] data = entity.getMarathonJson().getBytes(1, (int) entity.getMarathonJson().length());\n\t\t\t\tenVo.setMarathonJson(new String(data));\n\t\t\t}\n\t\t\tenVo.setEastMarathonUrl(entity.getEastMarathonURL());\n\t\t\tif(entity.getEastMarathonJson()!=null){\n\t\t\t\tbyte[] data = entity.getEastMarathonJson().getBytes(1, (int) entity.getEastMarathonJson().length());\n\t\t\t\tenVo.setEastMarathonJson(new String(data));\n\t\t\t}\n\t\t\tenVo.setK8sUrl(entity.getK8sUrl());\n\t\t\tenVo.setK8sCred(entity.getK8sCred());\n\t\t\tenVo.setK8sTpsQuery(entity.getK8sTpsQuery());\n\t\t\tenVo.setK8sLatencyQuery(entity.getK8sLatencyQuery());\n\t\t\tenVo.setMesosTpsQuery(entity.getMesosTpsQuery());\n\t\t\tenVo.setMesosLatencyQuery(entity.getMesosLatencyQuery());\n\t\t\tenvironmentVOs.add(enVo);\n\t\t}\n\t\ttxn.commit();\n\t\treturn environmentVOs;\n\t}",
"public <T> List queryObjects(T entity) throws DataAccessException {\n\t\treturn (List<?>) mapper.queryDeptByProperty((Map<String, Object>) entity);\n\t}",
"public static List<Integer> getAllCurrentTPS(int envId, String platform) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria tpsCriteria = session.createCriteria(TpsServiceEntity.class, \"tps\");\n\t\ttpsCriteria.createCriteria(\"tps.component\", \"comp\");\n\t\ttpsCriteria.add(Restrictions.eq(\"comp.platform\", platform));\n\t\ttpsCriteria.add(Restrictions.eq(\"tps.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TpsServiceEntity> tpsEntityList = tpsCriteria.list();\n\t\tList<Integer> listOfComp = new ArrayList<Integer>();\n\t\tfor(TpsServiceEntity tpsEntity : tpsEntityList){\n\t\t\tif(tpsEntity.getComponent() != null){\n\t\t\t\tlistOfComp.add(tpsEntity.getComponent().getComponentId());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn listOfComp;\n\t}",
"List<IViewEntity> getEntities();",
"public CachetComponentList getComponents() {\n JsonNode rootNode = get(\"components\");\n CachetComponentList compList = CachetComponentList.parseRootNode(rootNode);\n return compList;\n }",
"public List<JeuDonneeEntity> getJeuDonneeParIdCompagnieEnvironnement(int idCompagnieEnvironnement) {\n EntityManager em = EntityManagerFactoryProvider.getInstance().getEntityManagerFactory(SOCLE_constants.PERSISTENCE_UNIT_NAME.toString()).createEntityManager();\n \n TypedQuery<JeuDonneeEntity> query = em.createQuery(\n \"SELECT t FROM JeuDonneeEntity t JOIN t.compagnieEnvironnement c WHERE c.idCompagnieEnvironnement = :idCompagnieEnvironnement \",\n JeuDonneeEntity.class);\n \n query.setParameter(\"idCompagnieEnvironnement\", idCompagnieEnvironnement);\n\n List<JeuDonneeEntity> res = null;\n\n try {\n res = query.getResultList();\n } catch (Exception e) {\n e.printStackTrace();\n throw e;\n } finally {\n em.close();\n }\n\n return res;\n }",
"protected ComponentStruct[] getFrontEndComponents() throws SessionQueryException\n {\n ComponentStruct[] frontEnds = null;\n\n try\n {\n frontEnds = getSessionManagementAdminService().getComponentsForType(Components.CRITICAL_COMPONENT);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT, frontEnds);\n if (GUILoggerHome.find().isInformationOn())\n {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT,\n \"Found \" + frontEnds.length + \" Front End Components\");\n }\n }\n catch(Exception e)\n {\n throw new SessionQueryException(\"Could not retrieve Front End Components.\", e);\n }\n\n return frontEnds;\n }",
"public List<Compte> findAll() {\n\t\treturn dao.findAll();\n\t}",
"public void getEntities() {\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tEntityA entityA = exampleDao.getOne(1);\r\n\t\tEntityB entityB3 = entityBDao.getOne(3);\r\n\t \tEntityB entityB2 = entityBDao.getOne(2);\r\n\t \tEntityB entityB1 = entityBDao.getOne(1);\r\n\r\n\t \t\r\n\r\n\t\tentityA.setEntityBList(Arrays.asList(entityB2,entityB3,entityB1));\r\n\r\n\t}",
"@GET\n\t@Path( \"/components\" )\n\t@Produces( MediaType.APPLICATION_JSON )\n\tList<Component> listComponents( @PathParam(\"name\") String applicationName );",
"public List<Entity> getEntities() {\n return entities;\n }",
"@NotNull\r\n Entity[] getEntities();",
"@Override\r\n public Collection<Component> selectComponentsList( Plugin plugin )\r\n {\r\n Collection<Component> componentList = new ArrayList<Component>( );\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );\r\n daoUtil.executeQuery( );\r\n\r\n while ( daoUtil.next( ) )\r\n {\r\n Component component = new Component( );\r\n\r\n component.setId( daoUtil.getInt( 1 ) );\r\n component.setGroupId( daoUtil.getString( 2 ) );\r\n component.setTitle( daoUtil.getString( 3 ) );\r\n component.setDescription( daoUtil.getString( 4 ) );\r\n component.setArtifactId( daoUtil.getString( 5 ) );\r\n component.setVersion( daoUtil.getString( 6 ) );\r\n component.setComponentType( daoUtil.getString( 7 ) );\r\n\r\n componentList.add( component );\r\n }\r\n\r\n daoUtil.free( );\r\n\r\n return componentList;\r\n }",
"public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }",
"public List<Component> getComponentNameList() throws Exception {\n\t\tLOGGER.info(\n\t\t\t\t\"Start of DataListTableBean.getComponentNameList()\");\n\t\ttry{\n\t\t\tcomponentNameList = componentService.findAllComponentName();\n\t\t} catch (Exception e) {\n\t\t\tmanageError(e, \"Error while getting Component List. \");\n\t\t}\n\t\tLOGGER.info(\n\t\t\t\t\"End of DataListTableBean.getComponentNameList()\");\n\t\treturn componentNameList;\n\t}",
"private void getDepartamentos() {\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n\n String jpql =\"SELECT d FROM Departamento d \"\n + \"WHERE d.estado = 'a'\";\n\n Query query = em.createQuery(jpql);\n List<Departamento> listDepartamentos = query.getResultList();\n ArrayList<Departamento> arrayListDepartamentos = new ArrayList<>();\n for(Departamento d: listDepartamentos){\n arrayListDepartamentos.add(d);\n }\n this.Listdepartamentos = arrayListDepartamentos;\n em.close();\n emf.close();\n }\n catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n }\n }",
"public List<Room> getAllRooms(){\n\n List<Room> rooms = null;\n\n EntityManager entityManager = getEntityManagerFactory().createEntityManager();\n entityManager.getTransaction().begin();\n\n try{\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Room> roomCriteriaQuery = criteriaBuilder.createQuery(Room.class);\n Root<Room> roomsRoot = roomCriteriaQuery.from(Room.class);\n\n roomCriteriaQuery.select(roomsRoot);\n\n rooms = entityManager.createQuery(roomCriteriaQuery).getResultList();\n }\n catch (Exception ex){\n entityManager.getTransaction().rollback();\n }\n finally {\n entityManager.close();\n }\n\n return rooms;\n }",
"@Override\n public OgcPropertyList<AbstractProcess> getComponentList()\n {\n return components;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> getList() {\n\t\tthis.hql = \"select m from \" + entityClassName + \" as m \";\n\t\tList<T> resultSet = entity.createQuery(this.hql).getResultList();\n\t\treturn resultSet;\n\t}",
"protected ComponentStruct[] getCASComponents() throws SessionQueryException\n {\n ComponentStruct[] cases = null;\n\n try\n {\n cases = getSessionManagementAdminService().getComponentsForType(Components.SOURCE_COMPONENT);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT, cases);\n if (GUILoggerHome.find().isInformationOn())\n {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.SESSION_MANAGEMENT,\n \"Found \" + cases.length + \" CAS Components\");\n }\n }\n catch(Exception e)\n {\n throw new SessionQueryException(\"Could not retrieve CAS Components.\", e);\n }\n\n return cases;\n }",
"public List<Class<?>> getEntities(){\n\t\tList<Class<?>> result = new ArrayList<Class<?>>();\n\t\t\n//\t\tresult.add(Equipo.class);\n\t\tresult.add(Formacion.class);\n\t\tresult.add(FormacionStrategy.class);\n\t\tresult.add(Habilidad.class);\n\t\tresult.add(Jugador.class);\n\t\tresult.add(Tecnico.class);\n\t\tresult.add(Titular.class);\n//\t\tresult.add(PartidoSimple.class);\n//\t\tresult.add(PartidoDeCopa.class);\n\t\t\n\t\treturn result;\n\t}",
"public List<Product> getProductList(){\n List<Product> productList = mongoDbConnector.getProducts();\n return productList;\n }",
"public LazyDataModel<BasicEntity> getEntities() {\n return entities;\n }",
"java.util.List<java.lang.String>\n getEnvList();",
"public List getComponentIdentifierList() {\n return componentIdentifiers;\n }",
"Collection<ComponentState> getVersions();",
"public List<String> getSpecifications() {\n\t\tString sql =\"select specification from specifications\";\n\t\tList<String> res = jdbcTemplate.queryForList(sql, String.class);\n\t\treturn res;\n\t}",
"List<IViewEntity> getConstraintEntities();",
"public List<Product> getProductList(Catalog catalog) throws BackendException;",
"public List<Entity> getAll() {\n return entities;\n }",
"List<Product> getProductsList();",
"public java.util.List<String> listEntityColor() { return Utils.jListGetValuesWrapper(entity_color_list); }",
"Set<Component> getComponents();",
"List<EquipmentCategory> getAllEquipment() throws PersistenceException;",
"public List<ServiceResultInterface> getComponents() {\n\t\treturn components;\n\t}",
"public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }",
"List<ec_environment> selectByExample(ec_environmentExample example);",
"List<Product> getAllProducts() throws PersistenceException;",
"public List<EntityObject> getEntities() {\n\t\treturn entities;\n\t}",
"public ArrayList<Entity> getEntities() {\n\t\treturn entities;\n\t}",
"public abstract List<Component> getComponentsByName(String name);",
"public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}",
"@Override\n public List<Vehicle> getVehicles(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n\n //get the vehicles - > for each vehicle, with the vehicle model field (String model = vehicle.getForeignKey(\"model\"))\n List<Vehicle> vehicles = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblVehicles\");\n for(Map<String,Object> map: data) {\n //create a vehicle\n Vehicle vehicle = new Vehicle(map);\n\n //get the model number\n String model = vehicle.getForeignKey(\"model\");\n\n //get the model from Tbl\n if (model != null) {\n VehicleModel vehicleModel = new VehicleModel(get(\"SELECT * FROM TblVehicleModel WHERE modelNum = ?\", model).get(0));\n vehicle.setModel(vehicleModel);\n }\n //adding\n vehicles.add(vehicle);\n }\n return vehicles;\n }catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"public List<Product> findAll();",
"List<Product> findAll();",
"List<Product> findAll();",
"public List<Object> retrieveIncrementalEntities() {\n List<Object> result = new ArrayList<Object>();\n for (ProvisioningEntityWrapper provisioningEntityWrapper : this.provisioningEntityWrappers) {\n \n if (provisioningEntityWrapper.getGrouperTargetEntity() != null) {\n result.add(provisioningEntityWrapper.getGrouperTargetEntity());\n } else if (provisioningEntityWrapper.getGrouperProvisioningEntity() != null) {\n result.add(provisioningEntityWrapper.getGrouperProvisioningEntity());\n } else if (provisioningEntityWrapper.getGcGrouperSyncMember() != null) {\n result.add(provisioningEntityWrapper.getGcGrouperSyncMember());\n } else if (provisioningEntityWrapper.getProvisioningStateEntity() != null) {\n result.add(provisioningEntityWrapper.getProvisioningStateEntity());\n }\n }\n return result;\n }",
"@Override\n public ListComponentsResult listComponents(ListComponentsRequest request) {\n request = beforeClientExecution(request);\n return executeListComponents(request);\n }",
"public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n Session session = sessionFactory.getCurrentSession();\n session.beginTransaction();\n List<Company> listOfCompanies = session.createQuery(\"FROM Company\").getResultList();\n session.getTransaction().commit();\n return listOfCompanies;\n\n } finally {\n if (sessionFactory != null) {\n sessionFactory.close();\n }\n }\n }",
"public List<Engineer> getListFromDB(){\n\t\treturn engineerList;\n\t}",
"List<Product> getAllProducts() throws DataBaseException;",
"List<TransportEntity> getAllEntityOfQuery();",
"public List<LComponent> getComponents()\n\t{\n\t\treturn this.components;\n\t}",
"public List<CriticalComponent> getCriticalComponents();",
"Map<String, Collection<String>> getConnectedEntities();",
"public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}",
"List<StandardsEntity> STANDARDS_ENTITY_LIST() throws Exception;",
"private static ImmutableList<Class<?>> applicationEntities() {\n List<String> paths = new ArrayList<>(List.of(PREFIX_STRING));\n if (additionalPaths != null) {\n paths.addAll(additionalPaths);\n }\n\n final List<Class<?>> collect = paths\n .stream()\n .map(path -> {\n logger.info(\"Scanning {} for Hibernate entities\", path);\n final Reflections reflections = new Reflections(path);\n final Set<Class<?>> entities = reflections.getTypesAnnotatedWith(Entity.class);\n logger.info(\"Found {} Hibernate entities\", entities.getClass());\n if (logger.isDebugEnabled()) {\n entities.forEach((entity) -> logger.debug(\"Registered {}.\", entity.getName()));\n }\n return entities;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n return ImmutableList.copyOf(collect);\n }",
"public List<CarsEntity> displayCars() {\n List<CarsEntity> carsEntities =\n em.createQuery(\n \"select c from CarsEntity c\").getResultList();\n\n return carsEntities;\n }",
"@Override\n\tpublic List<Comprobante> findAll() throws Exception {\n\t\treturn comproRepository.findAll();\n\t}",
"@Override\n public RepositoryWrapper getRepositories(Environment environment) {\n final Jdbi jdbi = new JdbiFactory().build(environment, this.database, \"sql\");\n\n // Create\n final PlantInRepository plantInRepository = jdbi.onDemand(PlantInRepository.class);\n final PlantOutRepository plantOutRepository = jdbi.onDemand(PlantOutRepository.class);\n final DetailInRepository detailInRepository = jdbi.onDemand(DetailInRepository.class);\n final DetailOutRepository detailOutRepository = jdbi.onDemand(DetailOutRepository.class);\n\n // Register\n environment.jersey().register(plantInRepository);\n environment.jersey().register(plantOutRepository);\n environment.jersey().register(detailInRepository);\n environment.jersey().register(detailOutRepository);\n\n return new RepositoryWrapper(plantInRepository, plantOutRepository, detailInRepository, detailOutRepository);\n }",
"public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}",
"public List<EnvironmentTypes> selectEnvironmentTypes() {\n\n\t\tList<EnvironmentTypes> customers = new ArrayList<EnvironmentTypes>();\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\n\t\t\tconnection = (Connection) DBConnection.getConnection();\n\t\t\tString sql = \"select * from environment_types\";\n\t\t\tpreparedStatement = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\n\t\t\tEnvironmentTypes customer = null;\n\t\t\twhile (resultSet.next()) {\n\n\t\t\t\tcustomer = new EnvironmentTypes();\n\n\t\t\t\tcustomer.setName(resultSet.getString(1));\n\t\t\t\tcustomer.setDescription(resultSet.getString(2));\n\t\t\t\tcustomer.setAccept_tag(resultSet.getString(3));\n\t\t\t\tcustomer.setPromote_tag(resultSet.getString(4));\n\t\t\t\tcustomer.setAction(resultSet.getString(5));\n\t\t\t\tcustomer.setRestart_interval(resultSet.getInt(6));\n\t\t\t\tcustomer.setQuiet_period(resultSet.getInt(7));\n\n\t\t\t\tcustomers.add(customer);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.error(e.getMessage());\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOGGER.error(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn customers;\n\t}",
"@NonNull\n public List<Product> findAll() {\n return productRepository.findAll();\n }",
"Collection<PartModel> getPartModels(ExecutionContext context);",
"@Override\n\tpublic List<Product> getProducts() {\n\t\treturn productDao.getProducts();\n\t}",
"List<Product> retrieveProducts();",
"public List<Composite> getComposites() {\r\n\t\treturn _composites;\r\n\t}",
"public List<ApplicationVersionInstanceVO> findApplicationVersionInstancesByEnv(String envId);",
"public List<GComponent> getComponents()\n {\n return this.components;\n }",
"public List<EntityPropertyLocation> find();",
"public ArrayList<ComProduct> get_all_comproduct() throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\" service operation started !\");\n\n\t\ttry{\n\t\t\tArrayList<ComProduct> ComProduct_list;\n\n\t\t\tComProduct_list = ComProduct_Default_Activity_dao.get_all_comproduct();\n\n \t\t\tlog.info(\" Object returned from service method !\");\n\t\t\treturn ComProduct_list;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\" service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}",
"List<Product> getAllProducts();",
"List<Product> getAllProducts();",
"List<Product> getAllProducts();",
"public List<Product> getProducts();",
"public List<Product> getProducts();",
"public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }",
"public List<APageComponentsType> getAPageComponentsTypes() {\r\n\t\treturn apctDao.findAll();\r\n\t}",
"public ObservableList<EmployeeEntity> select(){\n return EmployeeDB.getInstance().select();\n }",
"@Override\r\n\tpublic List<ComVO> comList() {\n\t\treturn adao.ComList();\r\n\t}",
"public List<Product> getProducts() {\n\t\treturn productRepository.findAll();\n\t}",
"public EntityTable getEntities() \t{ \n return (entities == null && nameContext != null) \n ? nameContext.getEntities() \n : entities;\n }",
"@Override\n public List<VehicleModel> getVehicleModels(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,2,3);\n List<VehicleModel> vehicleModels = new ArrayList<>();\n try {\n List<Map<String, Object>> data = get(\"SELECT * FROM TblVehicleModel\");\n for(Map<String,Object> map: data)\n vehicleModels.add(new VehicleModel(map));\n return vehicleModels;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }",
"public List<ZpEvaluateDegreeVersionEntity> findByEntity(ZpEvaluateDegreeVersionEntity entity) {\n\t\ttry {\n\t\t\treturn dao.findByEntity(entity);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(\"获取正常数据列表出错:{}\",e.getMessage());\n\t\t}\n\t\treturn Lists.newArrayList();\n\t}",
"public List getPortletComponents() {\n return components;\n }",
"List<RoleEntity> getSystemRoles();",
"public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }",
"@Override\n\tpublic List<ProductState> getProductStates() {\n\t\tlogger.info(\"productStateServiceMong get all ProductState\");\n\t\treturn productStateDAO.getProductStates();\n\t}",
"List<Computer> findAll();",
"public ArrayList<String> getComponents() {\n\t\treturn this.components;\n\t}",
"@Override\r\n\tpublic List<Compte> getComptesByEmploye(Long codeEmp) {\n\t\treturn dao.getComptesByEmploye(codeEmp);\r\n\t}",
"public static List<Book> retrieveAll( EntityManager em) {\n TypedQuery<Book> query = em.createQuery( \"SELECT b FROM Book b\", Book.class);\n List<Book> books = query.getResultList();\n System.out.println( \"Book.retrieveAll: \" + books.size()\n + \" books were loaded from DB.\");\n return books;\n }",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Product> getProductFindAll() {\n return em.createNamedQuery(\"Product.findAll\", Product.class).getResultList();\n }",
"public org.LexGrid.concepts.Entities getEntities() {\n return entities;\n }",
"@Override\n public List<Course> getCourses() {\n return courseDao.findAll();\n }",
"public List<Product> get() {\r\n return sessionFactory.getCurrentSession()\r\n .createCriteria(Product.class)\r\n .addOrder(Order.asc(\"name\"))\r\n .list();\r\n }"
] | [
"0.5910398",
"0.5888362",
"0.58512926",
"0.56004286",
"0.5581037",
"0.55682296",
"0.55622625",
"0.5456174",
"0.5449049",
"0.53906804",
"0.53654605",
"0.529326",
"0.52840966",
"0.5262838",
"0.52527815",
"0.5252039",
"0.52517116",
"0.52187043",
"0.52179027",
"0.5206837",
"0.5181259",
"0.5173355",
"0.51379406",
"0.51063144",
"0.5085883",
"0.50693226",
"0.50667244",
"0.50543094",
"0.50449944",
"0.5040176",
"0.5029704",
"0.50085324",
"0.5007633",
"0.5006407",
"0.50010216",
"0.49997115",
"0.49813023",
"0.49602047",
"0.4949501",
"0.49459592",
"0.48947185",
"0.48944294",
"0.48806012",
"0.48572215",
"0.48549864",
"0.48546347",
"0.48505494",
"0.48505494",
"0.48500082",
"0.48491207",
"0.4848068",
"0.48437846",
"0.48396355",
"0.48280317",
"0.4827937",
"0.4816844",
"0.48162398",
"0.48097128",
"0.48091945",
"0.4794798",
"0.47937047",
"0.4793464",
"0.4789522",
"0.47867918",
"0.47848228",
"0.4783459",
"0.478099",
"0.47730437",
"0.4772126",
"0.47665045",
"0.47657534",
"0.47625598",
"0.4762248",
"0.47601286",
"0.47597495",
"0.47597495",
"0.47597495",
"0.47580436",
"0.47580436",
"0.47558913",
"0.4752506",
"0.4749671",
"0.4748586",
"0.47452232",
"0.4736857",
"0.47342908",
"0.4732895",
"0.47319263",
"0.47273424",
"0.47241035",
"0.4717669",
"0.47175497",
"0.47080725",
"0.4706043",
"0.47030923",
"0.4699582",
"0.46992958",
"0.46987003",
"0.46971327",
"0.469028"
] | 0.54865885 | 7 |
TODO Autogenerated method stub | public static void deletePromLookup(int envId, int compId, String lookupVaule) {
Session session = HibernateConfig.getSessionFactory().getCurrentSession();
Transaction txn = session.beginTransaction();
Query query = session.createQuery(HQLConstants.DB_QUERY_DELETE_PROM_LOOKUP);
query.setLong("compId", compId);
query.setLong("envId", envId);
query.setString("lookupVaule", lookupVaule);
query.executeUpdate();
txn.commit();
} | {
"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 |
get name representing the running Java virtual machine. | public static String getPid() {
String name = ManagementFactory.getRuntimeMXBean().getName();
// get pid
return name.split("@")[0];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getMachineName() {\r\n return machineName;\r\n }",
"public String getProcessName() throws RemoteException;",
"public static final String getProcessName() {\n\t\treturn NAME;\n\t}",
"public static String name() {\r\n String _computername=\"\";\r\n InetAddress _address=null;\r\n \r\n try {\r\n _address=InetAddress.getLocalHost();\r\n _computername=_address.getHostName();\r\n }\r\n catch (Exception ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n \r\n if (_address!=null) {\r\n _address=null; System.gc();\r\n }\r\n \r\n return _computername;\r\n }",
"java.lang.String getExecutionStageName();",
"@DISPID(73)\r\n\t// = 0x49. The runtime will prefer the VTID if present\r\n\t@VTID(71)\r\n\tjava.lang.String name();",
"public static String osName() {\r\n Object _osname=null;\r\n \r\n try {\r\n _osname=System.getProperty(\"os.name\");\r\n }\r\n catch (Exception ex) {\r\n _osname=null;\r\n ex.printStackTrace();\r\n }\r\n \r\n String _name=\"\";\r\n if (_osname!=null) _name=_osname.toString();\r\n \r\n return _name;\r\n }",
"@DISPID(9)\r\n\t// = 0x9. The runtime will prefer the VTID if present\r\n\t@VTID(15)\r\n\tjava.lang.String name();",
"@DISPID(5)\n\t// = 0x5. The runtime will prefer the VTID if present\n\t@VTID(11)\n\tjava.lang.String name();",
"public String targetVmName() {\n return this.targetVmName;\n }",
"String intermediateSystemName();",
"public void testGetVmName() {\n assertEquals(mb.getVmName(), System.getProperty(\"java.vm.name\"));\n }",
"public static String getCurrentBrowserName() {\r\n\t\tCapabilities c = ((RemoteWebDriver) driver).getCapabilities();\r\n\t\treturn c.getBrowserName();\r\n\t}",
"String process_name () throws BaseException;",
"public static String getOsUserName() {\n\n return System.getProperty(\"user.name\");\n }",
"public java.lang.String getCurrentName() {\n java.lang.Object ref = currentName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentName_ = s;\n return s;\n }\n }",
"@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tjava.lang.String name();",
"java.lang.String getInstanceName();",
"public java.lang.String getCurrentName() {\n java.lang.Object ref = currentName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getDotExeName()\n\t{\n\t\treturn dotExeName;\n\t}",
"public static String getOSName() {\n\t\treturn System.getProperties().getProperty(\"os.name\");\n\t}",
"com.google.protobuf.ByteString\n getExecutionStageNameBytes();",
"public String getName()\n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n return _nodeVRL.getBasename(); // default= last part of path\n }",
"public String getName ()\n {\n if (__name == null)\n {\n __name = getName (getClass ());\n }\n return __name;\n }",
"public String getSystemName();",
"static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }",
"public String name() {\n return BPMNode.getId();\n }",
"public java.lang.String getSystemName() {\r\n return systemName;\r\n }",
"public String getProcessName() {\n return processName;\n }",
"public ManagedLabVmSize name() {\n return this.name;\n }",
"String getVirtualDatabaseName() throws Exception;",
"public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }",
"public String get_vservername() throws Exception {\n\t\treturn this.vservername;\n\t}",
"public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}",
"public String getJVMExecutablePath();",
"public String name() {\n this.use();\n\n return name;\n }",
"String getIntegApplicationName();",
"java.lang.String getPoolName();",
"public String getRuntimeName() {\r\n\t\tfinal StringBuffer runtimeName = new StringBuffer();\r\n\t\tfinal String name = this.getName();\r\n\t\tfinal Package packagee = this.getPackage();\r\n\t\tfinal String packageName = null == packagee ? null : packagee.getName();\r\n\t\tString nameLessPackageName = name;\r\n\r\n\t\tif (false == Tester.isNullOrEmpty(packageName)) {\r\n\t\t\truntimeName.append(packageName);\r\n\t\t\truntimeName.append('.');\r\n\r\n\t\t\tnameLessPackageName = name.substring(packageName.length() + 1);\r\n\t\t}\r\n\r\n\t\tnameLessPackageName = nameLessPackageName.replace('.', '$');\r\n\t\truntimeName.append(nameLessPackageName);\r\n\r\n\t\treturn runtimeName.toString();\r\n\t}",
"public static String getJavaRuntime() {\n return pi4jSystemInfoConnector.getJavaRuntime();\r\n }",
"String getPlatformName();",
"public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }",
"public String name() {\n return \"Unix .k5login\";\n }",
"public java.lang.String getServicename() {\n\treturn servicename;\n}",
"String process_mgr_name () throws BaseException;",
"String getOperatingModeName();",
"public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}",
"public String getSystemName() {\n return systemName;\n }",
"public String getName() {\r\n \treturn this.getClass().getName();\r\n }",
"@Override\n\tpublic String getName() {\n\t\treturn name + instanceName;\n\t}",
"public final String getName() {\n if (name == null) {\n name = this.getClass().getSimpleName().substring(3);\n }\n return name;\n }",
"public String getCompilerTargetVM();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"public String getSystemName() {\n\t\treturn systemName;\n\t}",
"public String getCpuName() {\r\n if(isMips32()) {\r\n return getArchNameForCompiler();\r\n } else {\r\n return pic_.getArchitecture().toLowerCase();\r\n }\r\n }",
"String getStageName();",
"@Override\n\tpublic final String getName() {\n\t\treturn getClass().getSimpleName().replaceAll(\"Application$\", \"\").toLowerCase();\n\t}",
"@Override\n public String getName() {\n return getSoftwareSystem().getName() + \" - System Context\";\n }",
"public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}",
"public String getName() {\n return Utility.getInstance().getPackageName();\n }",
"public java.lang.String getName () {\n\t\treturn name;\n\t}",
"public static String getName() {\n\t\treturn ProjectMain._name;\n\t}",
"public String getCurrentFrameName()\n\t{\n\t\tJavascriptExecutor jsExecutor = (JavascriptExecutor)driver;\n\t\treturn (jsExecutor.executeScript(\"return self.name\")).toString();\n\t}",
"public String getInstanceName() {\n return this.mInstanceName;\n }",
"public String getName() {\n\t\treturn this.toString();\n\t}",
"static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }"
] | [
"0.6372256",
"0.6226725",
"0.62177444",
"0.6195625",
"0.61936915",
"0.6131796",
"0.60844827",
"0.60797983",
"0.6068242",
"0.60146767",
"0.5996485",
"0.5991043",
"0.5952816",
"0.59332573",
"0.5922956",
"0.5870035",
"0.5835761",
"0.58043194",
"0.5799978",
"0.57982814",
"0.57679296",
"0.57497734",
"0.57318467",
"0.5716434",
"0.5704369",
"0.5701989",
"0.56968266",
"0.5690101",
"0.5688408",
"0.56642544",
"0.56615466",
"0.56543434",
"0.56527805",
"0.5643755",
"0.56400627",
"0.5634658",
"0.56250036",
"0.55962193",
"0.55917895",
"0.5590306",
"0.5583605",
"0.5578204",
"0.5577051",
"0.55647063",
"0.55544406",
"0.5548907",
"0.55430216",
"0.55383563",
"0.55369085",
"0.5535864",
"0.5532468",
"0.55293053",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.5528057",
"0.55280346",
"0.55225986",
"0.55140436",
"0.55116564",
"0.5498269",
"0.54954565",
"0.5494313",
"0.5474016",
"0.5472617",
"0.5468756",
"0.5460441",
"0.5458528",
"0.5446809"
] | 0.5591404 | 39 |
TODO Autogenerated method stub | @Override
public int getCount() {
return viewList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean isViewFromObject(View arg0, Object arg1) {
return arg0 == arg1;
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
NOTE: Other tests are not created here because same functionality is already covered by ValidationContextTest so we only add tests that are needed to complete coverage/mutational coverage | @Test
void test_ArgsConstructor() {
assertThrows(
IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));
assertThrows(
IllegalArgumentException.class, () -> new ValidationContextFactoryImpl(null, null));
ValidationContext<Bean> ctx =
new ValidationContextFactoryImpl(propertyNameObtainerFactory, null).buildFor(new Bean());
assertTrue(ctx.isNull(Bean::getString1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testValidationContext() throws Exception {\n\t\t// Load custom schema\n\t\tSchema schema = factory.create(basicCustomSchema);\n\t\t// Get the result of validation\n\t\tValidationContext context = schema.validate(parser.read(basicJson));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tMap<String, String> members = (Map<String, String>) context.get(\"Members\");\n\t\tassertEquals(\"Data1\", members.get(\"Member1\"));\n\t\tassertEquals(\"Data2\", members.get(\"Member2\"));\n\t}",
"@Test\n\tpublic void testValidate()\n\t{\n\t\tSystem.out.println(\"validate\");\n\t\tUserTypeCode userTypeCode = new UserTypeCode();\n\t\tuserTypeCode.setCode(\"Test\");\n\t\tuserTypeCode.setDescription(\"Test\");\n\n\t\tValidationModel validateModel = new ValidationModel(userTypeCode);\n\t\tvalidateModel.setConsumeFieldsOnly(true);\n\n\t\tValidationResult result = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Any Valid consume: \" + result.toString());\n\t\tif (result.valid() == false) {\n\t\t\tAssert.fail(\"Failed validation when it was expected to pass.\");\n\t\t}\n\t\tSystem.out.println(\"---------------------------\");\n\n\t\tvalidateModel = new ValidationModel(userTypeCode);\n\t\tresult = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Faild: \" + result.toString());\n\t}",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"public ValidationContext buildValidationContext() {\n return validationContextObjectFactory.getObject();\n }",
"protected void validate() {\n // no implementation.\n }",
"@Override\r\n public void validate() {\r\n }",
"@Override\n\tpublic void validate() {\n\t}",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"protected void validate() {\n // no op\n }",
"@Override\n\tpublic void validate()\n\t{\n\n\t}",
"public void validate() {}",
"@Override\r\n public void validate() {\n\r\n }",
"private void validateContext() {\n\t\tif (irodsAccessObjectFactory == null) {\n\t\t\tthrow new JargonRuntimeException(\"null irodsAccessObjectFactory\");\n\t\t}\n\n\t\tif (dataProfilerSettings == null) {\n\t\t\tthrow new JargonRuntimeException(\"null dataProfilerSettings\");\n\t\t}\n\n\t\tif (dataTypeResolutionServiceFactory == null) {\n\t\t\tthrow new IllegalArgumentException(\"null dataTypeResolutionServiceFactory\");\n\t\t}\n\n\t}",
"@Test\n\tpublic void testIsValid()\n\t{\n\t\tSystem.out.println(\"isValid\");\n\n\t\tUserTypeCode userTypeCode = new UserTypeCode();\n\t\tuserTypeCode.setCode(\"Test\");\n\t\tuserTypeCode.setDescription(\"Test\");\n\n\t\tValidationModel validateModel = new ValidationModel(userTypeCode);\n\t\tvalidateModel.setConsumeFieldsOnly(true);\n\n\t\tboolean expResult = true;\n\t\tboolean result = ValidationUtil.isValid(validateModel);\n\t\tassertEquals(expResult, result);\n\n\t\tvalidateModel = new ValidationModel(userTypeCode);\n\n\t\texpResult = false;\n\t\tresult = ValidationUtil.isValid(validateModel);\n\t\tassertEquals(expResult, result);\n\t}",
"@Test\n\tpublic void testValidate() throws Exception {\n\t\tSystem.out.println(\"validate\");\n\t\tso.validate(entity);\n\t}",
"private ValidationUtils() {}",
"@Test\r\n public void testEmailAnomalies() {\r\n Assert.assertEquals(emailValidator.isValid(\"aa@test.com\", constraintValidatorContext), false);\r\n Assert.assertEquals(emailValidator.isValid(\"aa@testcom\", constraintValidatorContext), false);\r\n\r\n }",
"@Test\n public void testValidationFailed() {\n fail();\n }",
"@Test\n public void validForTest() {\n // TODO: test validFor\n }",
"private void validateData() {\n }",
"ValidationResponse validate();",
"@BeforeClass\n public static void setUpValidator() {\n vf = Validation.buildDefaultValidatorFactory();\n validator = vf.getValidator();\n }",
"public void validate() throws ValidationException {\r\n/* 522 */ Validator validator = new Validator();\r\n/* 523 */ validator.validate(this);\r\n/* */ }",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"@Test\n\tpublic void performRequestValidation() throws Exception {\n\n\t\tString responseBody = TestUtils.getValidResponse();\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tResponseEntity<ResponseWrapper> responseEntity = prepareReponseEntity(responseBody);\n\n\t\t\tthis.mockServer.verify();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public boolean validate() {\n return true;\r\n }",
"@Test\r\n public void testValidate() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }",
"@Test(expected = ExceptionInInitializerError.class)\n public void testValidatorComponent() {\n Map<String, String> hashMap = new HashMap<>();\n hashMap.put(\"validatorMessage\", \"\");\n\n doReturn(hashMap).when(component).getAttributes();\n\n dateValidator.validate(facesContext, component, now);\n }",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate2() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n instance.validate();\r\n }",
"@Before\n\tpublic void addValidator() throws Exception {\n\t\tfactory.add(\"test\", TestValidator.class);\n\t}",
"@Override\r\n\tpublic void Validate() {\n\r\n\t}",
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"private ValidationError() {\n }",
"public TestResult validate(License license, ValidationParameters validationParameters);",
"@Test\n public void testValidator() throws Exception {\n\n // No warnings/error\n Device device = buildDevice();\n List<Issue> issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 0);\n\n // Error for missing statusReason\n device = buildDevice().toBuilder().statusReason(Collections.emptyList()).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 1);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 0);\n\n // Warning for statusReason\n device = buildDevice().toBuilder().statusReason(Arrays.asList(\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"http://terminology.hl7.org/CodeSystem/device-status-reason\")).code(Code.of(\"invalidCode\")).build()).build(),\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"invalidSystem\")).code(Code.of(\"online\")).build()).build()\n )).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Warning for type\n device = buildDevice().toBuilder()\n .type(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build()).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n\n // Error for type\n device = buildDevice().toBuilder()\n .type(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidLanguage\")).build()).build()).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n\n // Warning and error for specialization.systemType\n device = buildDevice().toBuilder().specialization(Arrays.asList(\n Specialization.builder().systemType(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build()).build(),\n Specialization.builder().systemType(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidSystem\")).build()).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Warning and error for safety\n device = buildDevice().toBuilder().safety(Arrays.asList(\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build(),\n CodeableConcept.builder().coding(Coding.builder().system(Uri.of(\"invalidSystem\")).code(Code.of(ENGLISH_US)).build()).build()\n )).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Warning for test-language-primary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-primary-extension\")\n .value(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n issues.forEach(System.out::println);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n\n // Error for test-language-primary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-primary-extension\")\n .value(CodeableConcept.builder().coding(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidLanguage\")).build()).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 1);\n assertEquals(FHIRValidationUtil.countInformation(issues), 1);\n\n // Warning for test-language-secondary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-secondary-extension\")\n .value(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"tlh\")).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Error for test-language-secondary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-secondary-extension\")\n .value(Coding.builder().system(Uri.of(ValidationSupport.BCP_47_URN)).code(Code.of(\"invalidLanguage\")).build()).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n assertEquals(FHIRValidationUtil.countInformation(issues), 1);\n\n // Warning for test-language-tertiary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-tertiary-extension\")\n .value(Code.of(\"tlh\")).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 0);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n\n // Error for test-language-tertiary-extension\n device = buildDevice().toBuilder()\n .extension(Collections.singletonList(Extension.builder().url(\"http://ibm.com/fhir/StructureDefinition/test-language-tertiary-extension\")\n .value(Code.of(\"invalidLanguage\")).build())).build();\n issues = FHIRValidator.validator().validate(device);\n assertEquals(FHIRValidationUtil.countErrors(issues), 2);\n assertEquals(FHIRValidationUtil.countWarnings(issues), 2);\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}",
"void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }",
"@Test\r\n\tpublic void testValidationSuccess() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(VALID_USERNAME);\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t} catch (ValidationException e) {\r\n\t\t\tAssert.fail(\"Found_Exception\");\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testValidationTrace() throws Exception {\n\t\ttry {\n\t\t\tSchema schema = factory.create(basicSchema);\n\t\t\tschema.validate(parser.read(basicJsonError));\n\t\t} catch (ValidationException e) {\n\t\t\tassertEquals(\"model.members[1].size\", e.toString());\n\t\t}\n\t}",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate1() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.validate();\r\n }",
"@Test\n\tpublic void testInvalidValidators() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(76);\n\t\tproject.setType(\"DOCSMANAGEYY\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 2);\n\t}",
"@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate4() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }",
"void validate() throws ValidationException;",
"@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}",
"@Override\n protected Result validate() {\n return successful(this);\n }",
"private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }",
"public abstract void\n bypassValidation_();",
"@Autowired\n\t\n\t@Override\n\tpublic boolean isValid(String value, ConstraintValidatorContext context) {\n\t\treturn false;\n\t}",
"@Test\n public void isValid() {\n \tSecondLevelEntity_ secondLevelEntity = new SecondLevelEntity_();\n \tsecondLevelEntity.setText1(\"test\");\n \tsecondLevelEntity.setText2(\"test\");\n \tsecondLevelEntity.setText3(\"test\");\n \t\n \tassertTrue(validator.isValid(secondLevelEntity, constraintValidatorContext));\n \t\n }",
"@Override\n\tpublic void validate(Object target, Errors errors) {\n\t\t\n\t}",
"@Override\n public GeneralValidator getContext(Class<?> type) {\n return this.validator;\n }",
"ValidationError getValidationError();",
"@Test(expected = InvalidSAMLRequestException.class)\n\tpublic void testValidate2() throws InvalidSAMLRequestException\n\t{\n\t\tIdentifierCache cache = createMock(IdentifierCache.class);\n\t\treplay(cache);\n\t\tSAMLRequestValidatorImpl validator = new SAMLRequestValidatorImpl(cache, 100);\n\t\t\n\t\tRequestAbstractType request = new AuthnRequest();\n\t\trequest.setID(null);\n\t\t\n\t\tvalidator.validate(request);\n\t\tverify(cache);\n\t}",
"@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}",
"public void testNullOtac()\n {\n assertTrue(!errors.hasErrors());\n form.setVerificationCode(null);\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }",
"protected void validateEntity() {\n super.validateEntity();\n }",
"public final void testValidate() {\r\n\r\n Errors errors;\r\n\r\n // Validate a command. Validate with errors.\r\n errors = new BindException(sampleValidatableCommand,\r\n \"sampleValidatableCommand\");\r\n commandValidator.validate(sampleValidatableCommand, errors);\r\n assertEquals(1, errors.getErrorCount());\r\n\r\n // Validate without errors.\r\n errors = new BindException(\r\n sampleValidatableCommand, \"sampleValidatableCommand\");\r\n sampleValidatableCommand.setField(\"Not empty field\");\r\n commandValidator.validate(sampleValidatableCommand, errors);\r\n assertEquals(0, errors.getErrorCount());\r\n\r\n // Validate a validatable. Validate with errors.\r\n errors = new BindException(sampleValidatable, \"sampleValidatable\");\r\n commandValidator.validate(sampleValidatable, errors);\r\n assertEquals(1, errors.getErrorCount());\r\n\r\n // Validate without errors.\r\n errors = new BindException(sampleValidatable, \"sampleValidatable\");\r\n sampleValidatable.setField(\"Not empty field\");\r\n commandValidator.validate(sampleValidatable, errors);\r\n assertEquals(0, errors.getErrorCount());\r\n }",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n \n }",
"public void validate() throws Exception {\n }",
"@Override\n\tpublic void validate(Object target, Errors errors) {\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected void doValidate() throws InstructionValidationException {\n\t}",
"@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}",
"@Test\n\tpublic void contextLoads() {\n assertNotNull(validator);\n\t}",
"@Test\n @ExpectedException(BusinessRuleException.class)\n public final void testMinLengthValidation() {\n\n SimpleCustomerDto customer = new SimpleCustomerDto();\n customer.setFirstName(\"Alfred\");\n customer.setLastName(\"Sloan\");\n customer.setCustomerNr(-1);\n customer.setUsername(\"a\"); // violates minlength = 3 constraint\n customer.setBirthDate(new DateTime(2008, 1, 1, 1, 1, 0, 0));\n\n customerServiceModelService.createCustomer(customer);\n }",
"private RiValCrossValidatedRecsys() {\n }",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate8() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n //Too long\r\n instance.setMessage(\"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\"\r\n + \"messagemessagemessagemessagemessagemessagemessage\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }",
"protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSBoolean secure_access_only_validator = new MPSBoolean();\r\n\t\tsecure_access_only_validator.validate(operationType, secure_access_only, \"\\\"secure_access_only\\\"\");\r\n\t\t\r\n\t\tMPSString svm_ns_comm_validator = new MPSString();\r\n\t\tsvm_ns_comm_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tsvm_ns_comm_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tsvm_ns_comm_validator.validate(operationType, svm_ns_comm, \"\\\"svm_ns_comm\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_validator = new MPSString();\r\n\t\tns_br_interface_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_validator.validate(operationType, ns_br_interface, \"\\\"ns_br_interface\\\"\");\r\n\t\t\r\n\t\tMPSBoolean vm_auto_poweron_validator = new MPSBoolean();\r\n\t\tvm_auto_poweron_validator.validate(operationType, vm_auto_poweron, \"\\\"vm_auto_poweron\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_2_validator = new MPSString();\r\n\t\tns_br_interface_2_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_2_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_2_validator.validate(operationType, ns_br_interface_2, \"\\\"ns_br_interface_2\\\"\");\r\n\t\t\r\n\t\tMPSInt init_status_validator = new MPSInt();\r\n\t\tinit_status_validator.validate(operationType, init_status, \"\\\"init_status\\\"\");\r\n\t\t\r\n\t}",
"@Override\n\tprotected void validate(Controller c) {\n\n\t}",
"public void validate () { throw new RuntimeException(); }",
"public interface ValidatorService {\n\n /**\n * Valiadtion\n *\n * @param ruleSetCode - rule set code (named set of services and rules)\n * Can only be null when validate object contains xml message then\n * data parser select module automatically based on namespace and root element name\n * @param target - object for check\n * @return result of validation\n */\n ValidationResult validate(String ruleSetCode, ValidateObject target);\n\n /**\n * Check that rule with business code can by run\n *\n * @param businessRuleCode\n * @param onDay -\n * @return\n */\n boolean canIRun(String businessRuleCode, LocalDate onDay);\n}",
"void validate();",
"void validate();",
"public interface IValidationHelper extends StateRestorer {\n\n\t/**\n\t * Initialization of the objects needed for the validation process.\n\t *\n\t * @throws HDIVException if there is an initialization error.\n\t */\n\tvoid init();\n\n\t/**\n\t * Checks if the values of the parameters received in the request <code>request</code> are valid. These values are valid if and only if\n\t * the noneditable parameters haven't been modified.<br>\n\t *\n\t * @param context request context\n\t * @return {@link ValidatorHelperResult} with true value If all the parameter values of the request <code>request</code> pass the the\n\t * HDIV validation. False, otherwise.\n\t * @throws HDIVException If the request doesn't pass the HDIV validation an exception is thrown explaining the cause of the error.\n\t */\n\tValidatorHelperResult validate(ValidationContext context);\n\n\t/**\n\t * It is called in the pre-processing stage of each user request.\n\t *\n\t * @param request HTTP servlet request\n\t */\n\tvoid startPage(RequestContextHolder request);\n\n\t/**\n\t * It is called in the post-processing stage of each user request.\n\t *\n\t * @param request HTTP servlet request\n\t */\n\tvoid endPage(RequestContextHolder request);\n\n\t/**\n\t * Internal Hdiv request\n\t * @param request HTTP servlet request\n\t * @param response HTTP servlet response\n\t * @return true if internal\n\t */\n\tboolean isInternal(HttpServletRequest request, HttpServletResponse response);\n\n\t/**\n\t * Find internal errors\n\t * @param t\n\t * @param target\n\t * @return\n\t */\n\tList<ValidatorError> findCustomErrors(final Throwable t, String target);\n\n\t/**\n\t * Check whether all the errors are legal\n\t * @param errors\n\t * @return\n\t */\n\tboolean areErrorsLegal(List<ValidatorError> errors);\n\n\tboolean processEditableValidationErrors(final RequestContextHolder request, final List<ValidatorError> errors);\n\n}",
"public void testValidatingLEM4() {\n getLog().trace(\"testValidatingLEM4() - provided ValidatorFactory\");\n // create a default factory to pass in\n ValidatorFactory factory = null;\n try {\n factory = Validation.buildDefaultValidatorFactory();\n } catch (jakarta.validation.ValidationException e) {\n fail(\"testValidatingLEM4() - no validation providers found\" + e);\n }\n assertNotNull(factory);\n // create the Map to test overrides\n Map<String,Object> props = new HashMap<>();\n props.put(\"jakarta.persistence.validation.factory\", factory);\n // create our EMF w/ props\n OpenJPAEntityManagerFactorySPI emf = (OpenJPAEntityManagerFactorySPI)\n OpenJPAPersistence.createEntityManagerFactory(\n \"simple-auto-mode\",\n \"org/apache/openjpa/integration/validation/persistence.xml\",\n props);\n assertNotNull(emf);\n OpenJPAEntityManager em = null;\n try {\n // create EM\n em = emf.createEntityManager();\n assertNotNull(em);\n // verify expected validation config items\n OpenJPAConfiguration conf = em.getConfiguration();\n assertNotNull(conf);\n assertTrue(\"ValidationMode\",\n conf.getValidationMode().equalsIgnoreCase(\"AUTO\"));\n Class<?> lem = conf.getLifecycleEventManagerInstance().getClass();\n assertNotNull(lem);\n assertTrue(\"Expected a ValidatingLifecycleEventManager instance\",\n ValidatingLifecycleEventManager.class.isAssignableFrom(lem));\n // verify factory matches\n assertEquals(\"Expected same ValidatorFactory instance\",\n factory, conf.getValidationFactoryInstance());\n } catch (Exception e) {\n fail(\"Unexpected testValidatingLEM4() exception = \" + e);\n } finally {\n if ((em != null) && em.isOpen()) {\n em.close();\n }\n cleanup(emf);\n }\n }",
"private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }",
"@Test\n public void testValidateValue()\n {\n FacesContext context = mock(FacesContext.class);\n UIComponent component = mock(UIComponent.class);\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n \n try\n {\n m_SUT.validateValue(context, component, \"not int\");\n fail(\"Validation exception should be thrown.\");\n }\n catch (ValidatorException exception)\n {\n //ExpectedException\n assertThat(exception.getFacesMessage().getSummary(), is(\"Value Invalid Type!\"));\n }\n \n try\n {\n m_SUT.validateValue(context, component, \"34\");\n }\n catch (ValidatorException exception)\n {\n fail(\"Validation should have passed and therefore no exception should be thrown.\");\n }\n }",
"protected void validateConfiguration() {}",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate5() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }",
"@Test\n @Disabled\n public void testValidateTLF() {\n assertTrue(RegExprMain.validateTLF(\"622 24 64 59\"));\n assertTrue(RegExprMain.validateTLF(\"634 84 34 54\"));\n assertTrue(RegExprMain.validateTLF(\"645 74 44 53\"));\n assertFalse(RegExprMain.validateTLF(\"656 154 54 56\"));\n assertTrue(RegExprMain.validateTLF(\"656 14 54 56\"));\n assertTrue(RegExprMain.validateTLF(\"667 54 74 55\"));\n assertFalse(RegExprMain.validateTLF(\"656 16 5 56\"));\n assertFalse(RegExprMain.validateTLF(\"656 15A 54 56\"));\n assertTrue(RegExprMain.validateTLF(\"611 34 84 57\"));\n assertFalse(RegExprMain.validateTLF(\"6564 15 54 56\"));\n \n\n }",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"@Test(expected = ValidationException.class)\n public void phoneAndEmailMissing() throws Exception {\n attendee.setPhoneNumber(null);\n attendee.setEmail(null);\n validator.validate(attendee);\n }",
"public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }",
"@Test\n\tpublic void testGenerateAndValidateCompanyUniqueness() throws Exception {\n\n\t}",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Override\n public void testOneRequiredGroup() {\n }",
"@Test\n @Ignore\n public void testJWTGeneration() throws Exception {\n JWTGenerator jwtGen = new JWTGenerator() {\n @Override\n public Map<String, String> convertClaimMap(Map<ClaimMapping, String> userAttributes, String username) {\n return new HashMap<>();\n }\n };\n APIKeyValidationInfoDTO dto=new APIKeyValidationInfoDTO();\n dto.setSubscriber(\"sastry\");\n dto.setApplicationName(\"hubapp\");\n dto.setApplicationId(\"1\");\n dto.setApplicationTier(\"UNLIMITED\");\n dto.setEndUserName(\"denis\");\n dto.setSubscriberTenantDomain(MultitenantConstants.SUPER_TENANT_DOMAIN_NAME);\n dto.setUserType(APIConstants.ACCESS_TOKEN_USER_TYPE_APPLICATION);\n TokenValidationContext validationContext = new TokenValidationContext();\n validationContext.setValidationInfoDTO(dto);\n validationContext.setContext(\"cricScore\");\n validationContext.setVersion(\"1.9.0\");\n String token = jwtGen.generateToken(validationContext);\n System.out.println(\"Generated Token: \" + token);\n String header = token.split(\"\\\\.\")[0];\n String decodedHeader = new String(Base64Utils.decode(header));\n System.out.println(\"Header: \"+decodedHeader);\n String body = token.split(\"\\\\.\")[1];\n String decodedBody = new String(Base64Utils.decode(body));\n System.out.println(\"Body: \" + decodedBody);\n\n\n // With end user name not included\n token = jwtGen.generateToken(validationContext);\n System.out.println(\"Generated Token: \" + token);\n header = token.split(\"\\\\.\")[0];\n decodedHeader = new String(Base64Utils.decode(header));\n System.out.println(\"Header: \"+decodedHeader);\n body = token.split(\"\\\\.\")[1];\n decodedBody = new String(Base64Utils.decode(body));\n System.out.println(\"Body: \" + decodedBody);\n\n\n dto.setUserType(APIConstants.SUBSCRIPTION_USER_TYPE);\n token = jwtGen.generateToken(validationContext);\n System.out.println(\"Generated Token: \" + token);\n header = token.split(\"\\\\.\")[0];\n decodedHeader = new String(Base64Utils.decode(header));\n System.out.println(\"Header: \"+decodedHeader);\n body = token.split(\"\\\\.\")[1];\n decodedBody = new String(Base64Utils.decode(body));\n System.out.println(\"Body: \" + decodedBody);\n\n token = jwtGen.generateToken(validationContext);\n System.out.println(\"Generated Token: \" + token);\n header = token.split(\"\\\\.\")[0];\n decodedHeader = new String(Base64Utils.decode(header));\n System.out.println(\"Header: \"+decodedHeader);\n body = token.split(\"\\\\.\")[1];\n decodedBody = new String(Base64Utils.decode(body));\n System.out.println(\"Body: \" + decodedBody);\n\n\n //we can not do assert eaquals because body includes expiration time.\n\n /*String expectedHeader = \"{\\\"typ\\\":\\\"JWT\\\"}\";\n String expectedBody = \"{\\\"iss\\\":\\\"wso2.org/products/am\\\", \\\"exp\\\":1349270811075, \" +\n \"\\\"http://wso2.org/claims/subscriber\\\":\\\"sastry\\\", \" +\n \"\\\"http://wso2.org/claims/applicationname\\\":\\\"hubapp\\\", \" +\n \"\\\"http://wso2.org/claims/apicontext\\\":\\\"cricScore\\\", \" +\n \"\\\"http://wso2.org/claims/version\\\":\\\"1.9.0\\\", \" +\n \"\\\"http://wso2.org/claims/tier\\\":\\\"Bronze\\\", \" +\n \"\\\"http://wso2.org/claims/enduser\\\":\\\"denis\\\"}\";\n\n Assert.assertEquals(expectedHeader, decodedHeader);\n Assert.assertEquals(expectedBody, decodedBody);*/\n //String decodedToken = new String(Base64Utils.decode(token));\n //log.info(decodedToken);\n //assertNotNull(decodedToken);\n\n\n }",
"@Test\n public void checkValidEntity() {\n cleanEntity0();\n entity0 = EntityUtil.getSampleRole();\n final Set<ConstraintViolation<Object>> cv = PersistenceValidation.validate(entity0);\n assertTrue(cv.isEmpty());\n }",
"@Test\n\tpublic void testValidInvalid() {\n\t\tProject project = new Project();\n\t\tproject.setEstimates(5);\n\t\tproject.setType(\"DOCSMANAGEYY\");\n\t\tSet<ConstraintViolation<Project>> constraintViolations = validator.validate(project);\n\t\tassertEquals(constraintViolations.size(), 1);\n\t}",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate7() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n //Too short\r\n instance.setMessage(\"message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n PartialUserMsg user = new PartialUserMsg();\r\n user.setId(167892L);\r\n instance.setRequester(user);\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }",
"protected void setUp() {\r\n validator = new SimpleCreditCardValidator(\"test\");\r\n }",
"public void validateContext(EvaluationContext context) {\n if (null == this.context) {\n this.context = context;\n }\n }",
"public interface FormValidator {\r\n\r\n /**\r\n * Performs on-the-fly validation of the form field 'name'.\r\n *\r\n * @param value This parameter receives the value that the user has typed.\r\n * @return Indicates the outcome of the validation. This is sent to the\r\n * browser.\r\n */\r\n default FormValidation doCheckArtifactId(@QueryParameter String value) {\r\n if (value.length() == 0)\r\n return FormValidation.error(\"Please set an ArtifactId!\");\r\n return FormValidation.ok();\r\n }\r\n\r\n default FormValidation doCheckGroupId(@QueryParameter String value) {\r\n if (value.length() == 0)\r\n return FormValidation.error(\"Please set a GroupId!\");\r\n return FormValidation.ok();\r\n }\r\n\r\n default FormValidation doCheckVersion(@QueryParameter String value) {\r\n if (value.length() == 0)\r\n return FormValidation\r\n .error(\"Please set a Version for your artifact!\");\r\n return FormValidation.ok();\r\n }\r\n\r\n default FormValidation doCheckStagingRepository(\r\n @QueryParameter String value) {\r\n return checkURI(value);\r\n }\r\n\r\n default FormValidation doCheckReleaseRepository(\r\n @QueryParameter String value) {\r\n return checkURI(value);\r\n }\r\n\r\n /**\r\n * This method checks originally the URL if it is valid. On the way to\r\n * support tokens this behavior is build out. It will be reactivated\r\n * after a general refactoring for better token macro support.\r\n * <p>\r\n * TODO implment a URL validation which works with token macro plugin\r\n *\r\n * @param value\r\n * @return\r\n */\r\n default FormValidation checkURI(String value) {\r\n if (value.length() == 0) {\r\n return FormValidation\r\n .error(\"Please set an URL for the staging repository!\");\r\n }\r\n return FormValidation.ok();\r\n }\r\n\r\n /**\r\n * Generates LisBoxModel for available Repository systems\r\n *\r\n * @return available Promoters as ListBoxModel\r\n */\r\n default ListBoxModel doFillPromoterClassItems() {\r\n ListBoxModel promoterModel = new ListBoxModel();\r\n for (Promotor promotor : Jenkins.getInstance()\r\n .getExtensionList(Promotor.class)) {\r\n promoterModel.add(promotor.getDescriptor().getDisplayName(), promotor\r\n .getClass().getCanonicalName());\r\n }\r\n\r\n return promoterModel;\r\n }\r\n\r\n}"
] | [
"0.6552465",
"0.64440894",
"0.64361686",
"0.64361686",
"0.64361686",
"0.6361431",
"0.63351625",
"0.6294412",
"0.62661266",
"0.6262248",
"0.6259852",
"0.6252424",
"0.62157583",
"0.618651",
"0.6163703",
"0.61073166",
"0.6076763",
"0.6060123",
"0.6056543",
"0.6021921",
"0.60094696",
"0.5988249",
"0.59719366",
"0.5943622",
"0.5940339",
"0.5931591",
"0.59300846",
"0.5919063",
"0.58929807",
"0.5883848",
"0.58592266",
"0.58349043",
"0.5833526",
"0.5827441",
"0.5799103",
"0.5772172",
"0.5770091",
"0.57659376",
"0.5714005",
"0.57053035",
"0.56927174",
"0.5690637",
"0.5687097",
"0.56684065",
"0.5653459",
"0.56414557",
"0.56397676",
"0.5639075",
"0.5639075",
"0.56274533",
"0.5625289",
"0.5616585",
"0.5612857",
"0.5609146",
"0.56058735",
"0.5603301",
"0.55900115",
"0.5583036",
"0.55736977",
"0.55606526",
"0.555831",
"0.55369484",
"0.5534484",
"0.5532366",
"0.5530138",
"0.55297464",
"0.552696",
"0.55255574",
"0.5525148",
"0.55241454",
"0.55239904",
"0.5510458",
"0.55099946",
"0.55038285",
"0.550324",
"0.549984",
"0.549603",
"0.549603",
"0.5495976",
"0.5492725",
"0.5491281",
"0.54902446",
"0.5489433",
"0.54801625",
"0.54787207",
"0.5476259",
"0.5476259",
"0.5476259",
"0.5476259",
"0.5473725",
"0.54690075",
"0.5462615",
"0.5462319",
"0.5462319",
"0.54544294",
"0.5454056",
"0.5453161",
"0.54479325",
"0.5442979",
"0.5434964",
"0.54331845"
] | 0.0 | -1 |
saving the response json as failure proof as we do in ui automation by taking screenshot of page where bug is found. This saved json can be used as request payload for any other API | public static String getResponseFilePath(String fileName, Response response) {
FileWriter writer = null;
String filePath = "responseJSON/" + fileName + ".json";
try {
writer = new FileWriter(filePath);
writer.write(response.asPrettyString());
} catch (IOException e1) {
e1.printStackTrace();
}
finally {
try {
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return filePath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Boolean onCompleted(Response response) throws Exception {\n Type type = new TypeToken<Map<String, String>>() {\n }.getType();\n Map<String, String> jsonMap = jsonSeralizer.fromJson(response.getResponseBody(), type);\n //System.out.println(\"Results of Permssions set: \"+jsonMap);\n if (!jsonMap.get(\"success\").equals(1)) {\n System.out.println(\"File save was successful.\");\n return true;\n } else {\n System.out.println(jsonMap.get(\"error_message\"));\n return false;\n\n }\n }",
"public boolean saveExamJsonToFile(String examResponseJsonData,\r\n\t ExamDetails examDetails) {\r\n\tLogger.warn(tag, \"in saveExamJsonToFile()\");\r\n\tfinal ObjectMapper mapper = new ObjectMapper();\r\n\tfinal ObjectReader reader = mapper.reader(ExamResponse.class);\r\n\tExamResponse examResponse = null;\r\n\tExam tempExam = null;\r\n\ttry {\r\n\t examResponse = reader.readValue(examResponseJsonData);\r\n\t} catch (final JsonProcessingException e1) {\r\n\t ToastMessageForExceptions(R.string.JSON_PROCESSING_EXCEPTION);\r\n\t e1.printStackTrace();\r\n\t backToDashboard();\r\n\r\n\t} catch (final IOException e1) {\r\n\t ToastMessageForExceptions(R.string.IO_EXCEPTION);\r\n\t e1.printStackTrace();\r\n\t backToDashboard();\r\n\t}\r\n\r\n\ttry {\r\n\t Logger.warn(tag, \"start ---> get exam\");\r\n\t tempExam = examResponse.getExam();\r\n\t Logger.warn(tag, \"end ---> get exam\" + tempExam);\r\n\t} catch (final Exception e) {\r\n\t ToastMessageForExceptions(R.string.EXAM_RESPONSE_EXCEPTION);\r\n\t e.printStackTrace();\r\n\t backToDashboard();\r\n\t}\r\n\r\n\tfinal ObjectMapper omp = new ObjectMapper();\r\n\tString examJson = null;\r\n\ttry {\r\n\t Logger.warn(tag, \"start ---> write to json\" + tempExam);\r\n\t examJson = omp.writeValueAsString(tempExam);\r\n\t Logger.warn(tag, \"\" + \"\" + tempExam);\r\n\t} catch (final JsonGenerationException e) {\r\n\t Logger.error(tag, e);\r\n\t ToastMessageForExceptions(R.string.JSON_GENERATION_EXCEPTION);\r\n\t backToDashboard();\r\n\r\n\t} catch (final JsonMappingException e) {\r\n\t Logger.error(tag, e);\r\n\t ToastMessageForExceptions(R.string.JSON_MAPPING_EXCEPTION);\r\n\t backToDashboard();\r\n\t} catch (final IOException e) {\r\n\t Logger.error(tag, e);\r\n\t ToastMessageForExceptions(R.string.IO_EXCEPTION);\r\n\t backToDashboard();\r\n\t}\r\n\r\n\tif (tempExam != null) {\r\n\t Logger.info(tag, \"ExamId =========>\" + tempExam.getExamDetails());\r\n\t Logger.info(tag, \"ExamId Different Settings============>\"\r\n\t\t + tempExam.getExamDetails().getExamId());\r\n\t Logger.error(\r\n\t\t tag,\r\n\t\t \"exam json file path:\"\r\n\t\t\t + appData.getExamFileName(tempExam.getExamDetails()\r\n\t\t\t\t .getExamId()));\r\n\t}\r\n\r\n\tApplicationData.writeToFile(examJson,\r\n\t\tappData.getExamFileName(examDetails.getExamId()));\r\n\r\n\treturn true;\r\n }",
"public void saveResponse(String fileName) throws IOException {\r\n File responsefile = new File(base_dir + \"//src//test//java//response\");\r\n if (!responsefile.exists()) {\r\n responsefile.mkdir();\r\n }\r\n\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(base_dir + \"//src//test//java//response//\" + fileName));\r\n writer.write(Operations.getContent());\r\n writer.close();\r\n }",
"@Test(priority = 2, dataProvider = \"verifytxTestData\")\r\n\tpublic void testContentJSONFileResponses(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\r\n\t\tPreconditions.checkArgument(hm != null, \"The hash map parameter must not be null\");\r\n\r\n\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName()) + File.separator\r\n\t\t\t\t+ this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\tswitch (hm.get(\"httpstatus\")) {\r\n\t\tcase \"200\":\r\n\t\t\ttry {\r\n\t\t\t\tVerifyTxBean getFieldsResponseBean = testAPIAttribute200Response(filePathOfJsonResponse);\t\t\t\t\r\n\r\n\t\t\t\tif (getFieldsResponseBean.equals(hm.get(\"Error\"))) {\r\n\t\t\t\t\treporter.writeLog(\"PASS\", \"Error \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"Error Should be \" + hm.get(\"Error\"), \"Error \"\r\n\t\t\t\t\t\t\t+ getFieldsResponseBean.getError());\r\n\t\t\t\t\tAssertJUnit.assertEquals(getFieldsResponseBean.getError(), hm.get(\"Error\"));\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception : Response not stored in File\");\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception : Response not stored in File ...\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlogger.debug(\"Other than 200, 404 response --> {}\", hm.get(\"httpstatus\"));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}",
"private void saveAiResponse(RequestType requestType, String name, Object capturedResponse)\n throws IOException, CTPException {\n ClassLoader classLoader = getClass().getClassLoader();\n URL targetDataUrl = classLoader.getResource(\"data\");\n File targetDataDir = new File(targetDataUrl.getFile());\n\n // Output json data to file in the compiled target file hierarchy (for immediate use)\n File targetCaptureDir = new File(targetDataDir, requestType.getPath());\n String outputFileName = CaptureCache.normaliseFileName(name) + \".json\";\n writeJsonFile(targetCaptureDir, outputFileName, capturedResponse, false);\n\n // Output json data to file in the source tree (for long term storage)\n File mockAiDir = targetDataDir.getParentFile().getParentFile().getParentFile();\n File srcDataDir = new File(mockAiDir, \"src/main/resources/data\");\n File srcCaptureDir = new File(srcDataDir, requestType.getPath());\n writeJsonFile(srcCaptureDir, outputFileName, capturedResponse, true);\n }",
"@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 }",
"@Test(enabled = true)\n public String createIssue() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_2));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"Cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/api/2/issue\").\n then().\n statusCode(201).log().all().extract().response();\n\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String issueID = jp.get(\"id\");\n System.out.println(\"New Issue ID:\" +issueID);//10005\n return issueID;\n }",
"@Override\n public Boolean onCompleted(Response response) throws Exception {\n System.out.println(response.getResponseBody());\n Type type = new TypeToken<Map<String, String>>() {\n }.getType();\n Map<String, String> jsonMap = jsonSeralizer.fromJson(response.getResponseBody(), type);\n //System.out.println(\"Results of Permssions set: \"+jsonMap);\n if (!jsonMap.get(\"success\").equals(1)) {\n System.out.println(\"File has been made available.\");\n return true;\n } else {\n System.out.println(jsonMap.get(\"error_message\"));\n return false;\n\n }\n }",
"public RESTReponse saveResponse(TouchPointFieldResearcherDTO touchpointFieldResearcherDTO)\n throws AppException, CustomReasonPhraseException;",
"@Override\n public void saveToResponseAdditional(ActionResponse response) {\n }",
"@Test\n public void testGetJsonPayload() {\n System.out.println(\"getJsonPayload\");\n String expResult = (\"{\\n\"\n + \" \\\"iss\\\": \\\"https://ConsumerSystemURL\\\",\\n\"\n + \" \\\"sub\\\": \\\"1\\\",\\n\"\n + \" \\\"aud\\\": \\\"https://authorize.fhir.nhs.net/token\\\",\\n\"\n + \" \\\"exp\\\": 1503995882,\\n\"\n + \" \\\"iat\\\": 1503995582,\\n\"\n + \" \\\"reason_for_request\\\": \\\"directcare\\\",\\n\"\n + \" \\\"requesting_device\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Device\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"GPConnectTestSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"Client\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"type\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"DeviceIdentifierSystem\\\",\\n\"\n + \" \\\"code\\\": \\\"DeviceIdentifier\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"model\\\": \\\"v1\\\",\\n\"\n + \" \\\"version\\\": \\\"1.1\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_organization\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Organization\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/Id/ods-organization-code\\\",\\n\"\n + \" \\\"value\\\": \\\"GPCA0001\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": \\\"GP Connect Assurance\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_practitioner\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Practitioner\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/sds-user-id\\\",\\n\"\n + \" \\\"value\\\": \\\"GCASDS0001\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"LocalIdentifierSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"1\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": {\\n\"\n + \" \\\"family\\\": [\\n\"\n + \" \\\"AssurancePractitioner\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"given\\\": [\\n\"\n + \" \\\"AssuranceTest\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"prefix\\\": [\\n\"\n + \" \\\"Mr\\\"\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"practitionerRole\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"role\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/ValueSet/sds-job-role-name-1\\\",\\n\"\n + \" \\\"code\\\": \\\"AssuranceJobRole\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"requested_scope\\\": \\\"patient/*.read\\\",\\n\"\n + \" \\\"requested_record\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Patient\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"https://fhir.nhs.uk/Id/nhs-number\\\",\\n\"\n + \" \\\"value\\\": \\\"9476719931\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\\n\").replaceAll(\"\\n\", \"\\r\\n\");\n String result = instance.getJsonPayload();\n assertEquals(expResult, result);\n }",
"public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws IOException {\n\tRestAssured.baseURI=\"https://rahulshettyacademy.com\";\n\tString response=given().log().all().queryParam(\"key\", \"qaclick123\").header(\"Content-Type\",\"application/json\")\n\t//.body(Payload.AddPlace()).when().post(\"maps/api/place/add/json\")\n\t/*This will help to convert the file to an byte format first and then it coverts the byte format to String */\n\t.body(new String(Files.readAllBytes(Paths.get(\"C:\\\\Users\\\\swath\\\\eclipse-workspace\\\\RestAssured_Rahul\\\\InputFiles\\\\Files.json\"))))\n\t.when().post(\"maps/api/place/add/json\")\n\t.then().assertThat().statusCode(200).body(\"scope\",equalTo(\"APP\"))\n\t.header(\"Server\", \"Apache/2.4.18 (Ubuntu)\").extract().response().asString();\n\t\n\tSystem.out.println(response);\n\tJsonPath js=new JsonPath(response);//JsonPath is used for Parsing JSON\n\tString placeid=js.getString(\"place_id\");\n\tString id=js.getString(\"id\");\n\tSystem.out.println(\"Placeid is :\"+placeid);\n\tSystem.out.println(\"Id is\"+id);\n\t\n\t//Update Place\n\tString newAddress=\"Summer Walk, Africa\";\n\tgiven().log().all().queryParam(\"Key\", \"qaclick123\").header(\"Content-Type\",\"application/json\")\n\t.body(\"{\\r\\n\"\n\t\t\t+ \"\\\"place_id\\\":\\\"\"+placeid+\"\\\",\\r\\n\"\n\t\t\t+ \"\\\"address\\\":\\\"\"+newAddress+\"\\\",\\r\\n\"\n\t\t\t+ \"\\\"key\\\":\\\"qaclick123\\\"\\r\\n\"\n\t\t\t+ \"}\\r\\n\"\n\t\t\t+ \"\")\n\t.when().put(\"maps/api/place/update/json\")\n\t.then().assertThat().log().all().statusCode(200).body(\"msg\", equalTo(\"Address successfully updated\"));\n\n\t//Get Place\n\tString getPlaceResponse=given().log().all().queryParam(\"key\", \"qaclick123\")\n\t.queryParam(\"place_id\",placeid)\n\t.when().get(\"maps/api/place/get/json\")\n\t.then().assertThat().log().all().statusCode(200).extract().response().asString();\n\tSystem.out.println(\"GetPlaceResponse\"+getPlaceResponse);\n\t\n\tJsonPath js1=ReUsableMethods.rawToJson(getPlaceResponse);\n\tString actual=js1.getString(\"address\");\n\tSystem.out.println(\"Actualaddress\"+actual);\n\tAssert.assertEquals(actual, newAddress);\n\t\n\t\t\t\n\t\n\t\n}",
"public void saveDBErrorDetails( String lpgErrorCode,String lpgErrorDesc,String expMessage,String headerattr,ioclcommonproj.com.iocl.beans.UserProfileBean userprofileBn,StringEntity input,String url) throws IOException {\n log.info(\"under Customer saveDBErrorDetails to save in case of error\");\n BufferedReader brInput=null;\n JSONObject jsonObj =null;\n String outputForTrackingId=null;\n StringBuffer strForTrackingId=new StringBuffer();\n Map<String, Object> mapSession = FacesContext.getCurrentInstance()\n .getExternalContext()\n .getSessionMap();\n \n \n String isAuditErrorFlag=\"N\";\n log.info(\"cust:=mapSession.get(SESSION_PORTAP_IOCL_CONFIG)\"+mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\"));\n if(mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\")!=null)\n {\n Map<String,String> mapProp=(Map<String,String>)mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\");\n isAuditErrorFlag=mapProp.get(\"IS_ERROR_TRAIL_ENABLED\")==null?\"N\":mapProp.get(\"IS_ERROR_TRAIL_ENABLED\");\n log.info(\"cust:=mapSession.get(SESSION_PORTAP_IOCL_CONFIG)\"+mapSession.get(\"SESSION_PORTAP_IOCL_CONFIG\")); \n log.info(\"isAuditErrorFlag=\"+isAuditErrorFlag); \n }\n if(isAuditErrorFlag!=null && isAuditErrorFlag.equalsIgnoreCase(\"Y\"))\n {\n Map<String, String> map = FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRequestHeaderMap();\n brInput = new BufferedReader(new InputStreamReader((input.getContent())));\n log.info(\"Output from Server .... \\n\");\n log.info(\"ServiceURl: \"+url);\n try{\n while ((outputForTrackingId = brInput.readLine()) != null) {\n log.info(outputForTrackingId);\n strForTrackingId.append(outputForTrackingId);\n }\n }\n finally{\n if(brInput != null) brInput.close();\n }\n jsonObj = new ioclcommonproj.com.iocl.utils.JSONObject(strForTrackingId.toString());\n String trackId = (String) jsonObj.get(\"TrackingId\");\n ViewObject vo = this.getLpgErrorsTrailEOView1();\n Row newRow = vo.createRow();\n newRow.setAttribute(\"TrackingId\", trackId);\n newRow.setAttribute(\"ServiceInput\", new BlobDomain((String.valueOf(jsonObj)).getBytes()));\n newRow.setAttribute(\"ServiceUrl\", url);\n /**-----------saveDBErrorDetails Setting IdamMobileNo to UserId Field--------------**/\n newRow.setAttribute(\"UserId\", String.valueOf(userprofileBn != null ? userprofileBn.getIdamUserMobileNo() : map.get(\"Mobile\")));\n newRow.setAttribute(\"UserSessionTrackingId\", String.valueOf(mapSession.get(\"UserTrackingId\")));\n log.info(\" saveDBErrorDetails Setting HeaderAttribute\");\n newRow.setAttribute(\"HeaderAttribute\",headerattr);\n newRow.setAttribute(\"ServiceOutput\", new BlobDomain(expMessage.getBytes()));\n \n newRow.setAttribute(\"LpgErrorCode\", lpgErrorCode);\n newRow.setAttribute(\"LpgErrorDesc\", lpgErrorDesc);\n \n vo.insertRow(newRow);\n this.getDBTransaction().commit();\n /*\n * This tracking number will be sent to Admin via mail in case user lands on error page\n */\n mapSession.put(\"TRACKING_NUMBER_MAIL_PORTAL\", String.valueOf(mapSession.get(\"UserTrackingId\")));\n log.info(\"doen Customer saveDBErrorDetails to save in case of error\");\n }\n \n }",
"private void POSTTest(Map<String, Object> inputBody, int expectedStatus, Map<String, Object> expectedResponse, boolean strict) throws Exception{\n CloseableHttpResponse response = createUser(inputBody);\n int status = response.getStatusLine().getStatusCode();\n\n if (status == expectedStatus) {\n HttpEntity entity = response.getEntity();\n String strResponse = EntityUtils.toString(entity);\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n if (expectedStatus == 201) {\n expectedResponse.put(\"id\", Long.parseLong(getIdFromStringResponse(strResponse)));\n JSONObject json = new JSONObject(expectedResponse);\n JSONAssert.assertEquals(json.toString() ,strResponse, strict);\n } else {\n // // shouldnt be comaring response for an invalid request\n // if (!\"\".equals(strResponse)){\n // throw new ClientProtocolException(\"Unexpected response body: \" + strResponse);\n // }\n } \n\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n\n EntityUtils.consume(response.getEntity());\n response.close();\n }",
"@Test(priority = 6)\n\tpublic void internalServerError() throws JsonProcessingException {\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tAssert.assertEquals(resp.getStatusCode(),500);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 500 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\tresp.then().body(\"message\",equalTo(\"Oops some error occured, please try again.\"));\n\t\ttest.log(LogStatus.FAIL, \"Oops some error occured, please try again.\");\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\n\t}",
"@Override\n public void onResponse(Call<Profile> call, Response<Profile> response) {\n Log.e(\"SUCCEESS RESPONSE RAW\", response.raw() + \"\");\n if (response.body() != null) {\n Profile empProfile = response.body();\n if (empProfile.status == 200 && empProfile.userdata.equalsIgnoreCase(\"success\")) {\n FileUtils.writeToFile(mContext, Constants.EMPLOYEE_FILE_NAME, Constants.getGson().toJson(empProfile));\n }\n }\n }",
"@Test\n public void testReportProducesValidJson() throws Exception {\n testReportProducesCorrectOutput(\"json\");\n }",
"private void dumpResponse(ByteArrayOutputStream out) {\n try {\n OutputStream file = new BufferedOutputStream(new FileOutputStream(new File(dumpDir, dataRspFile)));\n file.write(out.toByteArray());\n file.flush();\n file.close();\n } catch (Exception e) {\n try {\n String s = new String(out.toByteArray(), \"utf-8\");\n Log.i(TAG, \"----------------rsp data begin---------------------\");\n Log.i(TAG, s);\n Log.i(TAG, \"----------------rsp data end-----------------------\");\n } catch (Exception e2) {\n\n }\n }\n }",
"private void save() {\n if (mCacheFile.exists()) {\n mCacheFile.delete();\n }\n\n try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mCacheFile)))) {\n writer.beginObject();\n writer.name(PRINTER_LIST_NAMES.get(0));\n writer.beginArray();\n for (DiscoveredPrinter printer : mSavedPrinters) {\n printer.write(writer);\n }\n writer.endArray();\n writer.endObject();\n } catch (NullPointerException | IOException e) {\n Log.w(TAG, \"Error while storing to \" + mCacheFile, e);\n }\n }",
"@Test\n public void postJson(){\n //prepare the request\n RestAssured.baseURI =\"http://restapi.demoqa.com/customer\";\n RequestSpecification request = RestAssured.given();\n\n // JSONObject is a class that represents a Simple JSON. it is from Json dependency\n // We can add Key - Value pairs using the put method\n JSONObject requestParams = new JSONObject();\n requestParams.put(\"FirstName\", \"Virender\");\n requestParams.put(\"LastName\", \"Singh\");\n\n requestParams.put(\"UserName\", \"simpleuser001\");\n requestParams.put(\"Password\", \"password1\");\n requestParams.put(\"Email\", \"someuser@gmail.com\");\n\n // Add a header stating the Request body is a JSON\n request.header(\"Content-Type\", \"application/json\");\n\n// Add the Json to the body of the request\n request.body(requestParams.toJSONString());\n\n// Post the request and check the response\n Response response = request.post(\"/register\");\n\n int statusCode = response.getStatusCode();\n // Assert.assertEquals(statusCode, \"201\");\n System.out.println(\"the status code is : \"+ statusCode);\n\n String successCode= response.jsonPath().get(\"SuccessCode\");\n System.out.println(successCode);\n\n }",
"void addPlaceAPI() {\n RestAssured.baseURI = \"https://rahulshettyacademy.com/\";\n String response = given().log().all().queryParam(\"key\",\"qaclick123\")\n .header(\"Content-Type\",\"application/json\")\n\n .body(Payloads.addPlaceJson())\n .when().post(\"maps/api/place/add/json\")\n .then().log().all().assertThat().statusCode(200).body(\"scope\",equalTo(\"APP\"))\n .header(\"server\",\"Apache/2.4.18 (Ubuntu)\").extract().response().asString();\n System.out.println(\"the response is\" + response );\n JsonPath jsonpath = new JsonPath(response); // for parsing the json body/payload\n String OriginalpalaceId = jsonpath.getString(\"place_id\");\n System.out.println(\"the place id is\" + OriginalpalaceId );\n\n // update the address using original place id\n\n String updateResponse = given().log().all().queryParam(\"key\",\"qaclick123\")\n .header(\"Content-Type\",\"application/json\")\n .body(\"{\\n\" +\n \"\\\"place_id\\\":\\\"\"+ OriginalpalaceId + \"\\\",\\n\" +\n \"\\\"address\\\":\\\"70 Summer walk, USA\\\",\\n\" +\n \"\\\"key\\\":\\\"qaclick123\\\"\\n\" +\n \"}\")\n .when().put(\"maps/api/place/update/json\")\n .then().log().all().assertThat().statusCode(200).body(\"msg\",equalTo(\"Address successfully updated\"))\n .extract().response().asString();\n jsonpath = null;\n jsonpath = new JsonPath(updateResponse);\n String msg = jsonpath.getString(\"msg\");\n System.out.println(\"the successful msg is \" + msg );\n\n // now getPlace API call to get the updated Place Id\n\n String getResponse = given().log().all().queryParam(\"key\",\"qaclick123\")\n .queryParam(\"place_id\",OriginalpalaceId)\n .when().get(\"maps/api/place/get/json\")\n .then().log().all().assertThat().statusCode(200).extract().response().asString();\n\n jsonpath = null;\n jsonpath = new JsonPath(getResponse);\n System.out.println(jsonpath.getString(\"address\"));\n System.out.println(\"the response of the get API method \"+ getResponse);\n\n Assert.assertEquals(jsonpath.getString(\"address\"),\"70 Summer walk, USA\",\"Address not matched\" );\n\n }",
"@Test\n\t\tpublic void testRestSuccessfulResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getValidResponse();\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertFalse(flag);\n\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n\t\tRestAssured.baseURI=\"https://rahulshettyacademy.com\";\n\t\tString response=given().log().all().queryParam(\"key\",\"qaclick123\").header(\"Content-Type\",\"application/json\")\n\t\t.body(Paylod.Addplace()).when().post(\"maps/api/place/add/json\")\n\t\t.then().assertThat().statusCode(200).body(\"scope\", equalTo(\"APP\")).\n\t\theader(\"Server\",\"Apache/2.4.18 (Ubuntu)\").extract().response().asString();\n\t\t\n\t\tSystem.out.println(response);\n\t\tJsonPath jsonparse =jsonParsing.inputToJson(response);\n\t\t//JsonPath jsonparse = new JsonPath(response);\n\t\tString placeID=jsonparse.getString(\"place_id\");\n\t\tSystem.out.println(placeID);\n\t\tSystem.out.println(\"-----------------End of Add API Test----------------------------------------\");\n\t\t\n//update the place added with new address - automation PUT (update place) API\n\t\t\n\t\t\n\t\tString newAddress = \"170 IndraNagar,IND\";\n\n\t\tgiven().log().all().queryParam(\"key\", \"qaclick123\").header(\"Content-Type\",\"application/json\")\n\t\t.body(\"{\\r\\n\" + \n\t\t\t\t\"\\\"place_id\\\":\\\"\"+placeID+\"\\\",\\r\\n\" + \n\t\t\t\t\"\\\"address\\\":\\\"\"+newAddress+\"\\\",\\r\\n\" + \n\t\t\t\t\"\\\"key\\\":\\\"qaclick123\\\"\\r\\n\" + \n\t\t\t\t\"}\\r\\n\" + \"\").when().put(\"maps/api/place/update/json\")\n\t\t.then().log().all().assertThat().statusCode(200).body(\"msg\", equalTo(\"Address successfully updated\"));\n\t\tSystem.out.println(\"-----------------End of Update API Test----------------------------------------\");\n\t\t\n\t\t// GetAPI to get the place to see if new address is added to the Place\n\t\tString newPlace=given().log().all().queryParam(\"key\", \"qaclick123\").queryParam(\"place_id\", placeID)\n\t\t.when().get(\"/maps/api/place/get/json\")\n\t\t.then().log().all().assertThat().statusCode(200).extract().response().asString();\n\t\t\n\t\t\n\t\tJsonPath jsparse =jsonParsing.inputToJson(newPlace);\n\t\t//JsonPath jsparse = new JsonPath(newPlace);\n\t\tString actualAddress=jsparse.getString(\"address\");\n\t\tSystem.out.println(actualAddress);\n\t\t//cucumber junit , testng testing framework - to add assertions -we have to use one of this frmwork,\n\t\t//since in java we do not have such assertion scenarios\n\t\tAssert.assertEquals(actualAddress,newAddress);\n\t\t\n\t\t\n\t\t\n\t}",
"@Test\n\t@Override\n\tpublic void testSaveURLJson() throws Exception {\n\t}",
"private void useFakeResponse() {\n EmployeeApp.useFakeResponse = true;\n ResponseObject responseObject = new ResponseObject();\n responseObject.setReturnCode(200);\n responseObject.setType(ResponseObject.ResponseType.JSON);\n responseObject.setResponseBodyString(new CompanyEmployeesResponse().getRandomResponse());\n FakeInterceptor.addTest(\"-mobile-\", responseObject);\n }",
"@Test(enabled = true)\n public String createComment() throws Exception{\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_3));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"cookie\",\"JSESSIONID=\"+createSession()).and().\n header(\"Content-Type\",\"application/json\").\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/api/2/issue/10008/comment\").\n then().\n statusCode(201).log().all().extract().response();\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String commentID = jp.get(\"id\");\n System.out.println(\"New Comment ID:\" +commentID);//10002\n return commentID;\n }",
"@Test(priority = 1, dataProvider = \"verifytxTestData\")\r\n\tpublic void testResponseCode(HashMap<String, String> hm) {\r\n\r\n\t\t// Checking execution flag\r\n\t\tif (hm.get(\"ExecuteFlag\").trim().equalsIgnoreCase(\"No\"))\r\n\t\t\tthrow new SkipException(\"Skipping the test ---->> As per excel entry\");\r\n\t\t\r\n\t\t\tappURL = globalConfig.getString(\"VERIFYTX_API_CONFIG\");\r\n\r\n\r\n\t\t System.out.println(\"URL:\"+ appURL);\r\n\t\t\t\r\n\r\n\t\tHashMap<String, String> headerParameters = new HashMap<String, String>();\r\n\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txid\", hm.get(\"I_txid\"));\t\t\r\n\t\t\t\r\n\t\t\theaderParameters.put(\"txbytes\", hm.get(\"I_txbytes\"));\r\n\t\r\n\t\t\r\n\r\n\t\tint responseCode = 0;\r\n\t\tlogger.debug(\"requestURL is getting sent as {}\", appURL.toString());\r\n\r\n\t\ttry {\r\n\t\t\tresponseCode = HTTPUtil.sendGet(appURL, headerParameters);\r\n\r\n\t\t\tSystem.out.println(\"Response Code:\" +responseCode);\r\n\r\n\t\t\tif ((responseCode == 200) || (responseCode == 404)) {\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tString filePathOfJsonResponse = HelperUtil.createOutputDir(this.getClass().getSimpleName())\r\n\t\t\t\t\t\t\t+ File.separator + this.getClass().getSimpleName() + hm.get(\"SerialNo\") + \".json\";\r\n\r\n\t\t\t\t\tHTTPUtil.writeResponseToFile(filePathOfJsonResponse);\r\n\r\n\t\t\t\t} catch (UnsupportedOperationException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\t\t\tAssertJUnit.fail(\"Caught Exception ...\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treporter.writeLog(\"FAIL\", \"\", \"Caught Exception :\" + e.getMessage());\r\n\t\t\tAssertJUnit.fail(\"Caught Exception ...\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"The response code is {}\", Integer.valueOf(responseCode).toString());\r\n\t\tPreconditions.checkArgument(!hm.get(\"httpstatus\").equals(null), \"String httpstatus in excel must not be null\");\r\n\r\n\t\t// Verify response code\r\n\t\tif (responseCode==200) {\r\n\t\t\treporter.writeLog(\"PASS\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, 200);\r\n\t\t} else {\r\n\t\t\treporter.writeLog(\"FAIL\", \"Status should be \" + hm.get(\"httpstatus\"), \"Status is \" + responseCode);\r\n\t\t\tAssertJUnit.assertEquals(responseCode, Integer.parseInt(hm.get(\"httpstatus\")));\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"-------------------------------------------\");\r\n\t}",
"@Test\r\n\tpublic void test01_post() {\n\t\tJSONObject obj=new JSONObject();\r\n\t\tobj.put(\"Gazi1\", \"7979893089\");\r\n\t\tobj.put(\"Reshma\", \"6291172991\");\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(obj.toJSONString());\r\n\t\tgiven().header(\"Content-Type\",\"Application/JSON\")\r\n\t\t.contentType(ContentType.JSON).accept(ContentType.JSON)\r\n\t\t.body(obj.toJSONString()).when().post(\"https://reqres.in/api/users\").then()\r\n\t\t.statusCode(201);\r\n\t\t\r\n\t}",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable t, JSONObject resp) {\n\n Log.d(\"kartik failure \", resp.toString());\n nfy.onLoadFailure();\n\n Toast toast = Toast.makeText(context, \"Failure \" + resp.toString(), Toast.LENGTH_SHORT);\n toast.show();\n }",
"@Test\n public void patch01(){\n Response responseBeforePatch =given().\n spec(spec03).\n when().\n get(\"/200\");\n responseBeforePatch.prettyPrint();\n JSONObject jsonObject=new JSONObject();\n jsonObject.put(\"title\",\"Hasan\");\n Response responseAfterPatch =given().\n contentType(ContentType.JSON).\n spec(spec03).\n body(jsonObject.toString()).\n when().\n patch(\"/200\");\n responseAfterPatch.prettyPrint();\n responseAfterPatch.\n then().\n assertThat().\n statusCode(200);\n JsonPath jsonPath=responseAfterPatch.jsonPath();\n //title hard assertion\n assertEquals(jsonObject.get(\"title\"),jsonPath.get(\"title\"));\n // title soft assertion\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertEquals(jsonPath.getString(\"title\"),jsonObject.get(\"title\"));\n softAssert.assertAll();\n\n }",
"private void sendAndPrintResponse()\n {\n final ProgressDialog loading = ProgressDialog.show(this,\"Loading Data\", \"Please wait...\",false,false);\n requestQueue = VolleySingleton.getInstance(this).getRequestQueue(this);\n JSONObject loginJsonObject = null;\n try {\n\n Log.d(\"ALERT !!\", title.getText().toString());\n\n loginJsonObject = new JSONObject().put(\"messageTitle\", title.getText()).put(\"message\", description.getText()).put(\"messageLevel\", year); //----------HARDCODED VALUE !!!!!!--------------\n if(fileChosen == null){\n loginJsonObject.put(\"hasAttachment\", \"false\");\n }\n else {\n loginJsonObject.put(\"hasAttachment\", \"true\").put(\"attachmentName\", finalFileName).put(\"attachmentType\", absoluteFileChosen.substring(absoluteFileChosen.lastIndexOf(\".\")));\n //loginJsonObject.put(\"attachmentType\", absoluteFileChosen.substring(absoluteFileChosen.lastIndexOf(\".\")));\n }\n }catch (Exception e){e.printStackTrace();}\n\n Log.d(\"ALERT !!\", notifUrl);\n Log.d(\"ALERT !!\", loginJsonObject.toString());\n\n jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, notifUrl, loginJsonObject, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.i(\"ALERT !!\", response.toString());\n loading.dismiss();\n parseJsonResponse(response);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n loading.dismiss();\n error.printStackTrace();\n Log.i(\"ALERT ERROR!!\", error.toString());\n finish();\n }\n }){\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }\n };\n requestQueue.add(jsonObjectRequest);\n }",
"@GET\n @Path(\"{path : .+}\")\n @Produces(value = MediaType.APPLICATION_JSON)\n// @ApiOperation(value = \"Retrieve a image by id\",\n// produces = MediaType.APPLICATION_JSON)\n// @ApiResponses({\n// @ApiResponse(code = HttpStatus.NOT_FOUND_404,\n// message = \"The requested image could not be found\"),\n// @ApiResponse(code = HttpStatus.BAD_REQUEST_400,\n// message = \"The request is not valid. The response body will contain a code and \" +\n// \"details specifying the source of the error.\"),\n// @ApiResponse(code = HttpStatus.UNAUTHORIZED_401,\n// message = \"User is unauthorized to perform the desired operation\")\n// })\n\n public Response getMethod(\n @ApiParam(name = \"id\", value = \"id of page to retrieve image content\", required = true)\n @PathParam(\"path\") String getpath, @Context HttpServletRequest httpRequest, @Context UriInfo uriInfo) {\n String contentType = \"application/json\";\n String method = \"getMethod\";\n String httpMethodType = \"GET\";\n String resolvedResponseBodyFile = null;\n Response.ResponseBuilder myresponseFinalBuilderObject = null;\n\n try {\n\n\n\n String paramPathStg = getpath.replace(\"/\", \".\");\n\n //Step 1: Get responseGuidanceObject\n //TODO: handle JsonTransformationException exception.\n LocationGuidanceDTO responseGuidanceObject = resolveResponsePaths(httpMethodType, paramPathStg);\n\n //Step 2: Create queryparams hash and headers hash.\n Map<String, String> queryParamsMap = grabRestParams(uriInfo);\n Map<String, String> headerMap = getHeaderMap(httpRequest);\n\n\n //Step 3: TODO: Resolve header and params variables from Guidance JSON Body.\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(responseGuidanceObject.getResponseBodyFile(), HEADER_REGEX, headerMap);\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(resolvedResponseBodyFile, PARAMS_REGEX, headerMap);\n\n //Step 4: TODO: Validate responseBody, responseHeader, responseCode files existence and have rightJson structures.\n\n //Step 6: TODO: Grab responses body\n\n String responseJson = replaceHeadersAndParamsInJson(headerMap, queryParamsMap, resolvedResponseBodyFile);\n\n //Step 5: TODO: Decorate with response header\n String headerStg = \"{\\\"ContentType\\\": \\\"$contentType\\\"}\";\n\n //Step 7: TODO: Grab response code and related responsebuilderobject\n Response.ResponseBuilder myRespBuilder = returnRespBuilderObject(responseGuidanceObject.getResponseCode(), null).entity(responseJson);\n\n //Step 5: TODO: Decorate with response headers\n myresponseFinalBuilderObject = decorateWithResponseHeaders(myRespBuilder, responseGuidanceObject.getResponseHeaderFile());\n\n return myresponseFinalBuilderObject.build();\n } catch (IOException ex) {\n logger.error(\"api={}\", \"getContents\", ex);\n mapAndThrow(ex);\n }\n return myresponseFinalBuilderObject.build();\n }",
"@Test\n public void getReportTest() throws Exception {\n httpclient = HttpClients.createDefault();\n //set up user\n deleteUsers();\n String userId = createTestUser();\n //created user\n CloseableHttpResponse response = createProject(\"projectname\", userId);\n String projectid = getIdFromResponse(response);//getIdFromResponse hasn't been implimented in this part\n response.close();\n //created project\n response = createSession(userId, projectid, \"2019-02-18T20:00Z\", \"2019-02-18T20:30Z\", \"1\");\n response.close();\n response = createSession(userId, projectid, \"2019-02-18T21:00Z\", \"2019-02-18T21:30Z\", \"1\");\n response.close();\n\n try {\n //case 1\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, false);\n \n int status = response.getStatusLine().getStatusCode();\n HttpEntity entity;\n String strResponse;\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n String expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}]}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 2\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, false);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 3\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", false, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //case 4\n response = createReport(userId, projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n \n status = response.getStatusLine().getStatusCode();\n\n if (status == 200) {\n entity = response.getEntity();\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n strResponse = EntityUtils.toString(entity);\n\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n\n expectedJson = \"{\\\"sessions\\\":[{\\\"startingTime\\\":\\\"2019-02-18T20:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T20:30Z\\\",\\\"hoursWorked\\\":0.50},{\\\"startingTime\\\":\\\"2019-02-18T21:00Z\\\",\\\"endingTime\\\":\\\"2019-02-18T21:30Z\\\",\\\"hoursWorked\\\":0.50}],\\\"completedPomodoros\\\":2,\\\"totalHoursWorkedOnProject\\\":1.00}\";\n JSONAssert.assertEquals(expectedJson,strResponse, false);\n EntityUtils.consume(response.getEntity());\n response.close();\n\n\n //test status 400\n response = createReport(userId, projectid, \"invalid\", \"invalid\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 400){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n //test status 404\n response = createReport(userId + \"1\", projectid, \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n response = createReport(userId, projectid + \"1\", \"2019-02-18T20:10Z\", \"2019-02-18T21:20Z\", true, true);\n status = response.getStatusLine().getStatusCode();\n if(status != 404){\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n EntityUtils.consume(response.getEntity());\n response.close();\n\n } finally {\n httpclient.close();\n }\n }",
"@Test(dataProvider = \"Data\")\r\n\tpublic void createNewInc(String filename) {\n\t\tRestAssured.baseURI = \"https://dev78371.service-now.com/api/now/table/incident\";\r\n\t\t\r\n\t\t//Authentication (basic)\r\n\t\tRestAssured.authentication = RestAssured.basic(\"admin\", \"bv0MMhw0tUXC\");\r\n\t\t\r\n\t\t//Create a new File\r\n\t\tFile filesrc = new File(filename);\r\n\t\t\r\n\t\t/*//Create a new File\r\n\t\tFile filesrc = new File(\"./data1.json\");*/\r\n\t\t\r\n\t\t\r\n\t//Request type - post -> Response using file src\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(filesrc)\r\n\t\t\t\t.post();\r\n\t\t\r\n\t\t\r\n\t\t/*Request type - post -> Response directly\r\n\t\tResponse response = RestAssured\r\n\t\t\t\t.given()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t\t.body(\"{\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"short_description\\\": \\\"Short description created\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"description\\\": \\\"Description created via postman\\\",\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\"category\\\": \\\"Rest API\\\"\\r\\n\" + \r\n\t\t\t\t\t\t\"}\")\r\n\t\t\t\t.post()*/\r\n\t\t\r\n\t\t//Validate Response code\r\n\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\r\n\t\t//Check the response format\r\n\t\tSystem.out.println(response.getContentType());\r\n\t\t\r\n\t\t//print the response from postman console\r\n\t\tresponse.prettyPrint();\r\n\t\t\r\n\t\t//to get the response in json\r\n\t\tJsonPath jsonresponse = response.jsonPath();\r\n\t\t\r\n\t\t//to get a single record\r\n\t\tString sys_id = jsonresponse.get(\"result.sys_id\");\r\n\t\tSystem.out.println(\"The sys_id is: \"+sys_id);\r\n\t\t\r\n\t\t\r\n\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Test\n\tpublic void storeLogDataTest() {\n\n\t\tStatisticsRequest request = new StatisticsRequest(\"testingid\", \"testing\", 200, 3);\n\t\twebTestClient.post().uri(\"/logginResponseTime\").contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).body(Mono.just(request), StatisticsRequest.class).exchange()\n\t\t\t\t.expectStatus().isOk().expectBody(String.class).consumeWith(res -> {\n\t\t\t\t\tassertTrue(res.getResponseBody().equalsIgnoreCase(\"saved\"));\n\t\t\t\t});\n\n\t}",
"public void apiPostValues(String title,String type,String Holdertype,String accno,String Balance ) throws IOException\n {\n Path path=Paths.get(\"src/test/resources/Body.json\");\n String json=new String(Files.readAllBytes(path));\n json=json.replace(\"titleArg\",title).replace(\"typeArge\",type).replace(\"HolderArge\", Holdertype).replace(\"AccountArg\",accno).replace(\"Balarge\", Balance);\n com.jayway.restassured.response.Response response= given().relaxedHTTPSValidation().when().body(json).post(\"http://18.222.188.206:3333/accounts\");\n response.then().assertThat().statusCode(201);\n response.prettyPrint();\n }",
"@Test(dataProvider = \"hvacSystems\", dataProviderClass = ApiDataProvider.class)\n public void test_setting_Away_Data_invalid_json_format(final String username,\n final String password, final String thermostatId) {\n\n client = ClientBuilder.newClient();\n final Invocation.Builder ib = client\n .target(apiConfig.get(AWAY_URL).replaceFirst(THERMOSTATID, thermostatId))\n .request(MediaType.APPLICATION_JSON).cookie(securityCookie);\n jsonString = apiConfig.get(ApiConfig.json_away_invalid_format_json);\n final Response response = ib.put(Entity.json(jsonString));\n String content = response.readEntity(String.class);\n setLogString(\"response :'\" + response + \"'\", true);\n Assert.assertTrue(content.contains(\"Cool setpoint cannot be null.\")); \n Assert.assertTrue(content.contains(\"40006\"));\n Assert.assertTrue(content.contains(\"End timestamp cannot be null.\")); \n Assert.assertTrue(content.contains(\"40009\")); \n Assert.assertTrue(content.contains(\"Heat setpoint cannot be null.\"));\n Assert.assertTrue(content.contains(\"40007\"));\n\n }",
"private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }",
"@After\t\n public void takeScreenShot() {\n File scrFile = ((TakesScreenshot)getDriver()).getScreenshotAs(OutputType.FILE);\n // now save the screenshot to a file some place\n try {\n\t\t\tFileUtils.copyFile(scrFile, new File(\"c:\\\\tmp\\\\TC_EditAppAddNewApiSTTC.png\"));\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n }",
"@Test(enabled = true)\n public String createSession() throws Exception {\n JSONParser parser = new JSONParser();\n Object obj = parser.parse(new FileReader(JSON_FILE_1));\n JSONObject jsonObject = (JSONObject) obj;\n\n Response res =\n given().\n header(\"Content-Type\",\"application/json\").and().\n body(jsonObject.toJSONString()).\n when().\n post(\"/rest/auth/1/session\").\n then().\n statusCode(200).log().all().extract().response();\n\n //extracting values from the RestAssured Response\n JsonPath jp = res.jsonPath();\n String sessionName = jp.get(\"session.name\"); //session Name\n String sessionID = jp.get(\"session.value\"); //session Value\n System.out.println(sessionName);\n System.out.println(sessionID);\n return sessionID;\n }",
"@Test\n\tpublic void testPost()\n\t{\n\t\t\n\t\t\n\t\tList<Map<String, Object>> totalBookings=new ArrayList<Map<String,Object>>();\n\t\t\n\t\tMap<String, Object> payload=new HashMap<String, Object>();\n\t\tpayload.put(\"firstname\", \"Wakil\");\n\t\tpayload.put(\"lastname\", \"Khan\");\n\t\tpayload.put(\"totalprice\", 123);\n\t\tpayload.put(\"depositpaid\",false);\n\t\tpayload.put(\"additionalneeds\", \"dinner\");\n\t\t\n\t\tMap<String, Object> dates=new LinkedHashMap<>();\n\t\tdates.put(\"checkin\", \"2021-05-02\");\n\t\tdates.put(\"checkout\", \"2021-05-05\");\n\t\t\n\t\tpayload.put(\"bookingdates\", dates);\n\t\t\n\t\tMap<String, Object> payload2=new HashMap<String, Object>();\n\t\tpayload2.put(\"firstname\", \"Hasnath\");\n\t\tpayload2.put(\"lastname\", \"Khan\");\n\t\tpayload2.put(\"totalprice\", 123);\n\t\tpayload2.put(\"depositpaid\",false);\n\t\tpayload2.put(\"additionalneeds\", \"dinner\");\n\t\t\n\t\tMap<String, Object> dates2=new LinkedHashMap<>();\n\t\tdates2.put(\"checkin\", \"2021-05-02\");\n\t\tdates2.put(\"checkout\", \"2021-05-05\");\n\t\t\n\t\tpayload2.put(\"bookingdates\", dates);\n\t\t\n\t\t\n\t\tMap<String, Object> payload3=new HashMap<String, Object>();\n\t\tpayload3.put(\"firstname\", \"Mamun\");\n\t\tpayload3.put(\"lastname\", \"Khan\");\n\t\tpayload3.put(\"totalprice\", 123);\n\t\tpayload3.put(\"depositpaid\",false);\n\t\tpayload3.put(\"additionalneeds\", \"dinner\");\n\t\t\n\t\tMap<String, Object> dates3=new LinkedHashMap<>();\n\t\tdates3.put(\"checkin\", \"2021-05-02\");\n\t\tdates3.put(\"checkout\", \"2021-05-05\");\n\t\t\n\t\tpayload3.put(\"bookingdates\", dates);\n\t\t\n\t\t\n\t\ttotalBookings.add(payload);\n\t\ttotalBookings.add(payload2);\n\t\ttotalBookings.add(payload3);\n\t\t\n\t\n\t\tResponse resp=given()\n\t\t\t\t.log()\n\t\t\t\t.all()\n\t\t\t.contentType(ContentType.JSON)\n\t\t\t.body(totalBookings)\n\t\t\t.post(\"https://restful-booker.herokuapp.com/booking\");\n\t\t\n\t\tSystem.out.println(resp.getStatusCode());\n\t\t\n\t\tSystem.out.println(resp.asPrettyString());\n\t\t\n\t\tSystem.out.println(resp.jsonPath().get(\"bookingid\"));\n\t\t\n\t\tSystem.out.println(resp.jsonPath().get(\"booking.bookingdates.checkout\"));\n\t\t\n\t\tAssert.assertNotNull(resp.jsonPath().get(\"bookingid\"));\n\t\t\n\t\tAssert.assertTrue(resp.jsonPath().get(\"bookingid\")!=null);\n\t\t\n\t\t\n\t}",
"@Override\r\n\tprotected ProfitHistoryDetalleResponse responseText(String json) {\n\t\tProfitHistoryDetalleResponse response = JSONHelper.desSerializar(json,ProfitHistoryDetalleResponse.class);\r\n\t\treturn response;\r\n\t}",
"private void setSaveDesignationInformation(){\n designationName=tvDesignationName.getText().toString();\n specialization=tvSpecialization.getText().toString();\n Log.d(TAG,\"PRINTED DESIGNATION INFO >>> \" + designationName + \" \" + specialization);\n\n //show loader\n PrescriptionUtils.showProgressDialog(context);\n Call<MessegeCollection> getInfo = prescriptionApi.insertDocDesignation(doctor_id, designationName, specialization);\n getInfo.enqueue(new Callback<MessegeCollection>() {\n @Override\n public void onResponse(Call<MessegeCollection> call, Response<MessegeCollection> response) {\n try {\n List<Message> info = response.body().data;\n Log.d(TAG, \"DESIGNATION INFO >>: \" + info);\n if (info.get(0).getMsgString().equals(\"1\")){\n Log.d(TAG,\"It's Working!!!\");\n Intent intent = new Intent(context, DoctorProfileActivity.class);\n intent.putExtra(\"tab\",\"2\");\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }else {\n Toast.makeText(context, \"Data Not Save!!!\", Toast.LENGTH_SHORT).show();\n }\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n }catch (Exception e){\n Log.d(TAG,\"list is null\");\n e.printStackTrace();\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n AlartFactory.showAPInotResponseWarn(context);\n }\n }\n\n @Override\n public void onFailure(Call<MessegeCollection> call, Throwable t) {\n //Toast.makeText(context, t.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(TAG,t.getMessage());\n //Hide Dialog\n PrescriptionUtils.hideProgressDialog();\n AlartFactory.showWebServieErrorDialog(context, \"Sorry !!!!\", \"Web Service is not running please contract with development team\", false);\n }\n });\n }",
"@RequestMapping( method = RequestMethod.POST,\n path=\"/save\",\n consumes = MediaType.APPLICATION_JSON_VALUE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n public LabTest save(@RequestBody LabTest labTest){\n System.out.println( labTest );\n return labTestService.save(labTest);\n }",
"public void saveContentResult(InsightsContentDetail contentResult) {\n\t\ttry {\n\t\t\tlong startTime = System.nanoTime();\n\t\t\tString json = oMapper.writeValueAsString(contentResult);\n\t\t\tJsonObject contentDataJson = JsonUtils.parseStringAsJsonObject(json);\n\t\t\tif (!contentResult.getResultValuesMap().isEmpty() && contentDataJson != null) {\n\t\t\t\tJsonObject resultValueJson = JsonUtils.parseStringAsJsonObject(oMapper.writeValueAsString(contentResult.getResultValuesMap()));\n\t\t\t\tcontentDataJson = ReportEngineUtils.mergeTwoJson(contentDataJson, resultValueJson);\n\t\t\t} else {\n\t\t\t\tlog.debug(\"Worlflow Detail {}==== In Content, no result foundg and data json is null {} \",\n\t\t\t\tcontentResult.getResultValuesMap(), contentDataJson);\n\t\t\t\tlog.debug(StringExpressionConstants.STR_EXP_TASKEXECUTION_1,contentConfigDefinition.getExecutionId(),contentConfigDefinition.getWorkflowId(),contentConfigDefinition.getReportId(),\"-\",\n\t\t\t\t\t\tcontentConfigDefinition.getKpiId(),contentConfigDefinition.getCategory(),0,\n\n\t\t\t\tReportStatusConstants.CONTENT_ID + contentConfigDefinition.getContentId() + ConfigOptions.CONTENT_NAME +contentConfigDefinition.getContentName() +\n\t\t\t\t\t\tConfigOptions.ACTION + contentConfigDefinition.getAction() \n\t\t\t\t\t\t+ ConfigOptions.CONTENT_RESULT + contentConfigDefinition.getNoOfResult() + \"In Content, no result foundg and data json is null\");\t\t\t\t\n\n\t\t\t}\n\t\t\tdatasourceDataHandler.saveContentResult(contentDataJson);\n\t\t\tlong processingTime = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startTime);\n\t\t\tlog.debug(StringExpressionConstants.STR_EXP_TASKEXECUTION_1,contentConfigDefinition.getExecutionId(),contentConfigDefinition.getWorkflowId(),contentConfigDefinition.getReportId(),\"-\",\n\t\t\t\t\tcontentConfigDefinition.getKpiId(),contentConfigDefinition.getCategory(),processingTime,\n\n\t\t\tReportStatusConstants.CONTENT_ID + contentConfigDefinition.getContentId() + ConfigOptions.CONTENT_NAME +contentConfigDefinition.getContentName() +\n\t\t\t\t\tConfigOptions.ACTION + contentConfigDefinition.getAction() \n\t\t\t\t\t+ ConfigOptions.CONTENT_RESULT + contentConfigDefinition.getNoOfResult());\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\" Error while saveContentResult \", e);\n\t\t\tlog.error(StringExpressionConstants.STR_EXP_TASKEXECUTION_1,contentConfigDefinition.getExecutionId(),contentConfigDefinition.getWorkflowId(),contentConfigDefinition.getReportId(),\"-\",\n\t\t\t\t\tcontentConfigDefinition.getKpiId(),contentConfigDefinition.getCategory(),0,\n\n\t\t\t\t\tReportStatusConstants.CONTENT_ID + contentConfigDefinition.getContentId() + ConfigOptions.CONTENT_NAME +contentConfigDefinition.getContentName() +\n\t\t\t\t\tConfigOptions.ACTION + contentConfigDefinition.getAction() \n\t\t\t\t\t+ \"ContentResult :\" + contentConfigDefinition.getNoOfResult() +\"Error while saveContentResult \" +e.getMessage() );\n\t\t\t\n\t\t\tthrow new InsightsJobFailedException(\n\t\t\t\t\t\" Error while saveContentResult for content Id \" + contentResult.getContentId());\n\t\t}\n\t}",
"@Override\n\tpublic LinkedHashMap<String, String> SendResponseDataToFile(LinkedHashMap<String, String> output) throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeSendResponseDataToFile();\n\n\t\ttry\n\t\t{\n\t\t\toutput =api.SendResponseDataToFile(output);\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterSendResponseDataToFile();\n\t\treturn output;\n\t}",
"private void fingerprintDataConvertedtoJSON() {\n String msgStr = \"\";\n JSONObject jsonObject = new JSONObject();\n\n try {\n /* jsonObject.put(\"errcode\", \"errcode1\");\n jsonObject.put(\"errInfo\", \"errInfo1\");\n jsonObject.put(\"fCount\", \"fCount1\");\n jsonObject.put(\"fType\", \"fType1\");\n jsonObject.put(\"iCount\", \"iCount1\");\n jsonObject.put(\"iType\", \"iType1\");\n jsonObject.put(\"pCount\", \"pCount1\");\n jsonObject.put(\"pType\", \"pType1\");\n jsonObject.put(\"nmPoints\", \"nmPoints1\");\n jsonObject.put(\"qScore\", \"qScor1e\");\n jsonObject.put(\"dpID\", \"dpI1d\");\n jsonObject.put(\"rdsID\", \"rds1ID\");\n jsonObject.put(\"rdsVer\", \"rdsVer\");\n jsonObject.put(\"dc\", \"dc1\");\n jsonObject.put(\"mi\", \"mi1\");\n jsonObject.put(\"mc\", \"mc\");\n jsonObject.put(\"ci\", \"c1i\");\n jsonObject.put(\"sessionKey\", \"SessionK1ey\");\n jsonObject.put(\"hmac\", \"hma1c\");\n jsonObject.put(\"PidDatatype\", \"PidDatat1ype\");\n jsonObject.put(\"Piddata\", \"Pidda1ta\");*/\n jsonObject.put(\"errcode\",errcode);\n jsonObject.put(\"errInfo\",errInfo);\n jsonObject.put(\"fCount\",fCount);\n jsonObject.put(\"fType\",fType);\n jsonObject.put(\"iCount\",iCount);\n jsonObject.put(\"iType\",iType);\n jsonObject.put(\"pCount\",pCount);\n jsonObject.put(\"pType\",pType);\n jsonObject.put(\"nmPoints\",nmPoints);\n jsonObject.put(\"qScore\",qScore);\n jsonObject.put(\"dpID\",dpId);\n jsonObject.put(\"rdsID\",rdsID);\n jsonObject.put(\"rdsVer\",rdsVer);\n jsonObject.put(\"dc\",dc);\n jsonObject.put(\"mi\",mi);\n jsonObject.put(\"mc\",mc);\n jsonObject.put(\"ci\",ci);\n jsonObject.put(\"sessionKey\",SessionKey);\n jsonObject.put(\"hmac\",hmac);\n jsonObject.put(\"PidDatatype\",PidDatatype);\n jsonObject.put(\"Piddata\",Piddata);\n\n pidData_json = jsonObject.toString();\n new apiCall_BalanceEnquiry().execute();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tprotected GuardarSustentoResponse responseText(String json) {\n\t\tGuardarSustentoResponse guardarSustentoResponse = JSONHelper.desSerializar(json, GuardarSustentoResponse.class);\r\n\t\treturn guardarSustentoResponse;\r\n\t}",
"public void writeToFile (String json) {\n // reset fos to null for checks\n FileOutputStream fos = null;\n try {\n String FILE_NAME = \"ExportedLearningCards.json\";\n fos = openFileOutput(FILE_NAME, MODE_PRIVATE);\n fos.write(json.getBytes());\n Toast.makeText(this, \"Saved to \" + getFilesDir() + \"/\" + FILE_NAME,\n Toast.LENGTH_LONG).show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void printResponse(ResponseEntity responseEntity){\n logger.info(JsonUtil.toJson(responseEntity));\n }",
"public static AddTruthAction SearchTruth(String path) throws Exception {\n\n OkHttpClient client2 = new OkHttpClient.Builder().connectTimeout(30, TimeUnit.SECONDS).writeTimeout(30, TimeUnit.SECONDS).readTimeout(30, TimeUnit.SECONDS).build();\n\n Gson gson = new Gson();\n\n byte[] bytes =org.apache.commons.io.IOUtils.toByteArray(new FileInputStream(path));\n\n\n String json = gson.toJson(new SearchTruthAction( Base64.encodeToString(bytes, Base64.DEFAULT)));\n // App.Log(\"json\");\n // App.Log(json);\n Request requestaction = new Request.Builder()\n .url(App.Url).post(RequestBody.create(MediaType.parse(\"application/json; charset=utf-8\"), json))\n .build();\n Response response = client2.newCall(requestaction).execute();\n\n String searhTruResponse = response.body().string();\n App.Log(\"searhTruResponse \"+searhTruResponse);\n AddTruthAction result = new Gson().fromJson(searhTruResponse,AddTruthAction.class);\n return result;\n }",
"@Override\r\n\tpublic void processResponse(Object res) {\r\n\t\tJSONObject response = (JSONObject) res;\r\n\t\tsaveNomineeDetailButton.setEnabled(true);\r\n\t\tif(response != null && response.length() > 0) {\r\n\t\t\ttry {\r\n\t\t\t\tif(response != null && String.valueOf(response.get(Constant.AddNominee.API_STATUS)).equals(\"1\")) {\r\n\t\t\t\t\tToast.makeText(getActivity(),String.valueOf(response.get(Constant.AddNominee.API_MESSAGE)), Toast.LENGTH_LONG).show();\r\n\t\t\t\t\tNomineeListActivity nomineesActivity = new NomineeListActivity();\r\n\t\t\t\t\t((MainFragmentActivity)getActivity()).redirectScreenWithoutStack(nomineesActivity);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(getActivity(),String.valueOf(response.get(Constant.AddNominee.API_MESSAGE)), Toast.LENGTH_LONG).show();\r\n\t\t\t\t}\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void testCreateOfficeActionWithDefectiveEvidenceCaseDocumentId() {\n String DEFECTIVE_OFFICEACTION_METADATA = \"{ \\\"accessLevel\\\": \\\"internal\\\", \\\"documentAlias\\\": \\\"DocNameForTmngUiDisplay\\\", \\\"modifiedByUserId\\\": \\\"User XYZ\\\", \\\"sourceSystem\\\": \\\"TMNG\\\", \\\"sourceMedia\\\": \\\"electronic\\\", \\\"sourceMedium\\\": \\\"upload\\\", \\\"scanDate\\\": \\\"2014-04-23T13:42:24.962-04:00\\\", \\\"evidenceList\\\": [ { \\\"documentId\\\": \\\"/case//evidence/x-search-found.pdf\\\", \\\"metadata\\\": { \\\"accessLevel\\\": \\\"public\\\", \\\"evidenceGroupNames\\\": [ \\\"sent\\\", \\\"suggested\\\" ] } } ] }\";\n // create office-actionn file with evidence association.\n UrlInputDto urlInputTwo = new UrlInputDto(TradeMarkDocumentTypes.TYPE_OFFICE_ACTION.getAlfrescoTypeName());\n urlInputTwo.setSerialNumber(ParameterValues.VALUE_SERIAL_77777779_NUMBER.toString());\n urlInputTwo.setFileName(VALUE_OFFACTN_FILE_NAME);\n String OFFICEACTION_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInputTwo);\n Map<String, String> offActnParam = new HashMap<String, String>();\n offActnParam.put(ParameterKeys.URL.toString(), OFFICEACTION_CREATE_WEBSCRIPT_URL);\n offActnParam.put(ParameterKeys.METADATA.toString(), DEFECTIVE_OFFICEACTION_METADATA);\n offActnParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), OfficeActionBaseTest.CONTENT_OFFICEACTION_ATTACHMENT);\n ClientResponse responseTwo = createDocument(offActnParam);\n // String str = responseTwo.getEntity(String.class);\n // System.out.println(str);\n assertEquals(400, responseTwo.getStatus());\n }",
"@Test\n// @Disabled\n public void testExcelGeneration() throws IOException {\n // Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n ExcelRequest testRequest = new ExcelRequest();\n ExcelData testData = new ExcelData();\n File file = new File(\"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.singleSlicer(testRequest)).thenReturn(testData);\n Mockito.when(excelGenerationService.generateExcelReport(testData)).thenReturn(file);\n given().accept(\"application/json\").contentType(ContentType.JSON).body(\"{\\\"headers\\\":[\\\"Name\\\",\\\"Age\\\"], \\\"data\\\":[[\\\"Teresa\\\",\\\"5\\\"],[\\\"Daniel\\\",\\\"1\\\"]]}\").post(\"/excel\").peek().\n then().assertThat()\n .statusCode(400);\n }",
"@Override\n public void onFailure(int statusCode, Header[] headers, Throwable t, JSONObject resp) {\n\n Log.d(\"kartik failure \", resp.toString());\n\n Toast toast = Toast.makeText(context, \"Failure \" + resp.toString(), Toast.LENGTH_SHORT);\n toast.show();\n }",
"@Test\n public void createBillingLineTestHappyPath() {\n\n Billinglines BillingLineObj = new Billinglines();\n\n BillingLineObj.setOrderId(\"b1375915-6c3d-4df5-aac2-aaf400e3ebab\");\n BillingLineObj.setPlannerId(\"90C44CAE-2A4A-4B5D-A5EC-AA9500A6C839\");\n BillingLineObj.setProductId(\"3B50FC9A-26B1-42C7-A7B4-AACB0084B9E4\");\n BillingLineObj.setStartMonth(\"2019-11-30\");\n BillingLineObj.setDurationInMonths(2);\n\n // final JSONArray arr = new JSONArray();\n\n /*for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"id\", p.getId());\n arr.add(obj);\n }\n\n\n for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"date\", new MyDateFormatter().getStringFromDateDifference(p.getCreationDate()));\n obj.add(\"value\", p.getValue());\n }*/\n\n BillingLineObj.setBillingLineBuyingAreaRevenues(Arrays.asList(new String[]{\"id\",\"8798f1f5-cd1b-455e-b44a-aacb00845536\"}));\n BillingLineObj.setMonthBuyingAreaRevenues(Arrays.asList(new String[]{\"date\",\"2019-11-30\"}));\n //BillingLineObj.setValue(444);\n BillingLineObj.setRevenue(444);\n String json = Utilities.createJsonObject(BillingLineObj);\n System.out.println(\">>>>>>>\\n\\n\\n\" + json);\n\n Response response = APIRequests.PostAPI(path, json);\n Assert.assertEquals(\"Check status codes for successful response \", 200,response.getStatusCode());\n System.out.println(\">>>>> \" + response.getStatusCode());\n\n }",
"@Test\n public void jsonTest(){\n String token = \"eyJEZXZlbG9wZWQgQnkiOiJlLUhlYWx0aCBSZXNlYXJjaCBDZW50ZXIsIElJSVQgQmFuZ2Fsb3JlIiwiSG9zdCI6Ikthcm5hdGFrYSBNZW50YWwgSGVhbHRoIE1hbmFnZW1lbnQgU3lzdGVtIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJwcm9mZXNzaW9uIjoiTUhNU1BzeWNoaWF0cmlzdCIsInN1YiI6Ik1ITVMgU2VjdXJpdHkgVG9rZW4iLCJsYXN0TG9naW5PcmdJZCI6ImU2NDE3NGI0LWI3NzctNGRlYS04NmUyLTNmMGQ1NDgwYTI2MiIsInNlc3Npb25FbmRUaW1lIjoxNTg1MzQxMzYxLCJpc3MiOiJLTUhNUyIsInNlc3Npb25TdGFydFRpbWUiOjE1ODUyOTgxNjEsInNlc3Npb25JZCI6ImZlMmE5NzY2LTQ1MmYtNDdlYy1iMjUwLTI2YzQ5NjNiNjFkZSIsInVzZXJOYW1lIjoidGVzdDAxIiwibGFzdExvZ2luU3RhcnQiOiIxNTg1Mjk0ODg2NTY4Iiwib3JnVVVJRCI6ImU2NDE3NGI0LWI3NzctNGRlYS04NmUyLTNmMGQ1NDgwYTI2MiIsIm5iZiI6MTU4NTI5ODE2MSwib3JnUm9sZSI6Ik1IRUFkbWluIiwic2Vzc2lvblRva2VuIjoiU2Vzc2lvbklkOjE3Mi4zMS4xLjIyNCN0ZXN0MDE6ZTY0MTc0YjQtYjc3Ny00ZGVhLTg2ZTItM2YwZDU0ODBhMjYyOk1ITVM6TUhFQWRtaW4jMTU4NTI5ODE2MDczMyMtNzIzOTM2MzUzIzEwMCIsInBlcnNvbklkIjoiNjI3NzMwODEtZGE4OS00NjYzLThiNmYtOWMwMGU5NDMyOTYwIiwidXNlclVVSUQiOiI1YzI0ZjU5Ni0wZjM0LTQxYTYtYWFmNS1lMzAwMmVhMmM0Y2UiLCJleHAiOjE1ODUzMzQxNjEsImlhdCI6MTU4NTI5ODE2MX0.TFWVdCZYuUysbZ2gmQc5H2Eig4jwXcuiC_FTbDTUNis\";\n try {\n DecodedJWT jwt = JWT.decode(token);\n System.out.println(\"jwt token \"+jwt.getPayload());\n\n } catch (JWTDecodeException exception){\n //Invalid token\n exception.printStackTrace();\n }\n\n\n /* try {\n mhp.getJson(\"\");\n }catch (Exception e){\n e.printStackTrace();\n }*/\n }",
"@Test\n\tvoid RegistrationSuccessful() {\n\t\t\n\t// Specify Base URI\n\t\tRestAssured.basePath = \"https://restapi.demoqa.com/customer\";\n\t\t\n\t// Request object \n\tRequestSpecification httpRequest = RestAssured.given();\n\t\n\t// response Object\n\t// Request payload sending along with post\n\t\n\tJSONObject requestParams = new JSONObject();// JSONObject is a json-simple jar class\n\t\n\trequestParams.put(\"FirstName\", \"arif\");\n\trequestParams.put(\"LastName\",\"mod\");\n\trequestParams.put(\"UserName\", \"Arif212\");\n\trequestParams.put(\"Password\", \"mod415\");\n\trequestParams.put(\"Email\",\"raj@gmail.com\");\n\t\n\thttpRequest.header(\"Content-Type\",\"application/json\");\n\t\t\n\thttpRequest.body(requestParams.toJSONString());// this method will convert above info into json format\n\t // and then attach above data to the request\n\t\t\n\t\t\n\t// ABOVE WE WERE PREPARING OUR REQUEST DETAILS AND CONVERTING TO JSON METHOD.\n\t// NOW BELOW WE WILL ACTUALLY SEND THE REQUEST.\n\t\n\t// Response object [ sending request with object]\n\tResponse response = httpRequest.request(Method.POST, \"/register\");// this is post method means create new\n\t\n\t// print response in console window\n\tString responseBody = response.getBody().asString();// will turn json response into String & store into responsebody\n\tSystem.out.println(\"Response body is: \"+ responseBody);\n\t\n\t// status code validation using assert from testng\n\tint statusCode = response.getStatusCode();\n\tSystem.out.println(\"Status code is:\"+ statusCode);\n\tAssert.assertEquals(statusCode, 201); // 201 is a sucessful post code \n\t\n\t// this method will get the value of SuccessCode from Json response and add it the variable \n\tString successCode = response.jsonPath().get(\"SuccessCode\");\n\tAssert.assertEquals(successCode, \"OPERATION_SUCCESS\"); // asserting to compare the successcodes\n\t\n\t\n\t\t\n\t}",
"public static void verifyPlaceStoreOrderResponse(Response response, long expectedId, long expectedPetId, int expectedQuantity, String expectedShipDate, String expectedStatus, boolean expectedCompleted) {\n verifySuccessStatusCodeInPlaceStoreOrderResponse(response);\n\n StoreOrderResponse storeOrderResponse = response.as(StoreOrderResponse.class);\n\n long actualId = storeOrderResponse.getId();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - id, Actual: \" + actualId + \" , Expected: \" + expectedId);\n MicroservicesEnvConfig.softAssert.assertEquals(actualId, expectedId, \"Place Store Order service response - id field error\");\n\n long actualPetId = storeOrderResponse.getPetId();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - pet id, Actual: \" + actualPetId + \" , Expected: \" + expectedPetId);\n MicroservicesEnvConfig.softAssert.assertEquals(actualPetId, expectedPetId, \"Place Store Order service response - pet id field error\");\n\n int actualQuantity = storeOrderResponse.getQuantity();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - quantity, Actual: \" + actualQuantity + \" , Expected: \" + expectedQuantity);\n MicroservicesEnvConfig.softAssert.assertEquals(actualQuantity, expectedQuantity, \"Place Store Order service response - quantity field error\");\n\n String actualShipDate = storeOrderResponse.getShipDate().substring(0,23);\n expectedShipDate = expectedShipDate.replace(\"Z\", \"\");\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - ship date, Actual: \" + actualShipDate + \" , Expected: \" + expectedShipDate);\n MicroservicesEnvConfig.softAssert.assertEquals(actualShipDate, expectedShipDate, \"Place Store Order service response - ship date field error\");\n\n String actualStatus = storeOrderResponse.getStatus();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - status, Actual: \" + actualStatus + \" , Expected: \" + expectedStatus);\n MicroservicesEnvConfig.softAssert.assertEquals(actualStatus, expectedStatus, \"Place Store Order service response - status field error\");\n\n boolean actualCompleted = storeOrderResponse.isComplete();\n APILogger.logInfo(LOGGER,\"Verifying Place Store Order service response - complete, Actual: \" + actualCompleted + \" , Expected: \" + expectedCompleted);\n MicroservicesEnvConfig.softAssert.assertEquals(actualCompleted, expectedCompleted, \"Place Store Order service response - complete field error\");\n }",
"@Test\n\tpublic void test_04() {\n\n\t\t//Json data configuration\n\t\tcomplexobjectinformationclass childdataobject = new complexobjectinformationclass();\n\t\tcomplexobjectclass dataobject = new complexobjectclass();\n\n\t\tchilddataobject.setEmail(\"complex@complex.com\");\n\t\tchilddataobject.setPhone(\"12300000\");\n\t\tchilddataobject.setAddress(\"Bangladesh\");\n\n\t\tdataobject.setId(\"2\");\n\t\tdataobject.setAuthor(\"ataure\");\n\t\tdataobject.setTitle(\"This is title\");\n\t\tdataobject.setinformation(childdataobject);\n\n\n\t\t//Request body\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tbody(dataobject).\n\t\t\t\tpost(\"http://localhost:3000/posts\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}",
"public ArrayList<ExamDetails> saveExamListJsonToFile(\r\n\t String examResponseJsonData) {\r\n\r\n\tArrayList<ExamDetails> examList = null;\r\n\ttry {\r\n\t examList = ExamListParser.getExamFile(examResponseJsonData,\r\n\t\t appData.getExamsListFile());\r\n\t} catch (final JsonParseException e) {\r\n\t e.printStackTrace();\r\n\t} catch (final JsonMappingException e) {\r\n\t e.printStackTrace();\r\n\t} catch (final IOException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n\treturn examList;\r\n }",
"@Test\n\t@WithMockUser(username = \"cadmin\", password = \"test\", roles = \"CADMIN\")\n\tpublic void testSendRequestWrongshift() throws Exception {\n\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"idNextProcedure\", 2);\n\t\tobj.put(\"idRoom\", 9);\n\t\tobj.put(\"date\", \"05.03.2020\");\n\t\tobj.put(\"time\", \"\");\n\t\tobj.put(\"idDoctorNew\", \"2\");\n\t\tString json = obj.toString();\n\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\n\t\tMockito.when(mockPrincipal.getName()).thenReturn(\"cadmin\");\n\t\tMockito.when(nextExaminationService.arrangeExamination(json, \"cadmin\")).thenReturn(false);\n\t\tthis.mockMvc.perform(MockMvcRequestBuilders.post(\"/ca/arrangeExamination\").principal(mockPrincipal)\n\t\t\t\t.content(json).contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isBadRequest());\n\n\t}",
"public void saveJSON(String fileName, Object o){\n // System.err.println(\"accessing disk\");\n Gson gson = new Gson();\n try(FileWriter writer = new FileWriter(fileName)){\n gson.toJson(o, writer);\n //System.err.println(\"\\n Token stored\");\n }catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveData() {\n try {\n JsonWriter jw = new JsonWriter(openFileOutput(DATA_FILE, Context.MODE_PRIVATE));\n jw.write(user);\n jw.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }",
"private void saveTestResult(boolean success)\n {\n String resolution = width + \"x\" + height + \"-\";\n Editor editor = preferences.edit();\n\n editor.putBoolean(PREF_PREFIX + resolution + \"success\", success);\n\n if (success)\n {\n editor.putInt(PREF_PREFIX + resolution + \"lastSdk\", Build.VERSION.SDK_INT);\n editor.putInt(PREF_PREFIX + resolution + \"lastVersion\", VERSION);\n editor.putInt(PREF_PREFIX + resolution + \"sliceHeight\", nv21Convertor.getSliceHeigth());\n editor.putInt(PREF_PREFIX + resolution + \"stride\", nv21Convertor.getStride());\n editor.putInt(PREF_PREFIX + resolution + \"padding\", nv21Convertor.getYPadding());\n editor.putBoolean(PREF_PREFIX + resolution + \"planar\", nv21Convertor.getPlanar());\n editor.putBoolean(PREF_PREFIX + resolution + \"reversed\", nv21Convertor.getUVPanesReversed());\n editor.putString(PREF_PREFIX + resolution + \"encoderName\", encoderName);\n editor.putInt(PREF_PREFIX + resolution + \"colorFormat\", encoderColorFormat);\n editor.putString(PREF_PREFIX + resolution + \"encoderName\", encoderName);\n editor.putString(PREF_PREFIX + resolution + \"pps\", base64PPS);\n editor.putString(PREF_PREFIX + resolution + \"sps\", base64SPS);\n }\n\n editor.apply();\n }",
"void saveFile(String filename, ResponseBody responseBody, ObservableEmitter<String> emitter);",
"private void projectListWork(){\n StringRequest stringRequest = new StringRequest(Request.Method.POST, \"https://platform.hurify.co/project/viewproject\", new Response.Listener<String>() {\n\n\n @Override\n public void onResponse(String response) {\n //response=\"{\\\"success\\\":\\\"1\\\", \\\"message\\\": {\\\"phantomPower\\\": {\\\"HIVEPIE-26862\\\": [{\\\"socket\\\": \\\"1\\\", \\\"PowerSavingPerMonth\\\": \\\"11.07852\\\", \\\"CostSavingPerMonth\\\": \\\"1.325376\\\"}, {\\\"socket\\\": \\\"2\\\", \\\"PowerSavingPerMonth\\\": \\\"114.319999999999999\\\", \\\"CostSavingPerMonth\\\": \\\"0.6626879999999999\\\"}, {\\\"socket\\\": \\\"3\\\", \\\"PowerSavingPerMonth\\\": \\\"1117.1987654321\\\", \\\"CostSavingPerMonth\\\": \\\"1.10448\\\"}, {\\\"socket\\\": \\\"4\\\", \\\"PowerSavingPerMonth\\\": \\\"23425.1250490876\\\", \\\"CostSavingPerMonth\\\": \\\"0.773136\\\"}]}}}\";\n\n response= \"{\\\"success\\\":1,\\\"message\\\":[{\\\"id\\\":35,\\\"email\\\":\\\"ashish@mobodexter.com\\\",\\\"project_name\\\":\\\"hur\\\",\\\"technology\\\":\\\"react js\\\",\\\"category\\\":\\\"Mobile,Webui\\\",\\\"price\\\":5,\\\"experience_level\\\":\\\"Beginner\\\",\\\"estimated_time\\\":30,\\\"project_description\\\":\\\"gfggfgrtghtrwgtrw\\\",\\\"project_creation_date\\\":\\\"2017-09-29T11:27:59.000Z\\\",\\\"abstract\\\":\\\"dewfd\\\",\\\"approval_flag\\\":1,\\\"days\\\":7,\\\"applications\\\":0,\\\"status\\\":\\\"Submitted\\\",\\\"verify\\\":\\\"User\\\"},{\\\"id\\\":36,\\\"email\\\":\\\"ashish@mobodexter.com\\\",\\\"project_name\\\":\\\"blockchain\\\",\\\"technology\\\":\\\"react js\\\",\\\"category\\\":\\\"Mobile,Webui\\\",\\\"price\\\":5,\\\"experience_level\\\":\\\"Beginner\\\",\\\"estimated_time\\\":30,\\\"project_description\\\":\\\"gfggfgrtghtrwgtrw\\\",\\\"project_creation_date\\\":\\\"2017-09-29T11:27:59.000Z\\\",\\\"abstract\\\":\\\"dewfd\\\",\\\"approval_flag\\\":1,\\\"days\\\":7,\\\"applications\\\":0,\\\"status\\\":\\\"Open\\\",\\\"verify\\\":\\\"User\\\"}]}\";\n\n\n\n\n try {\n JSONObject jsonObject = new JSONObject(response);\n Log.d(\"res\",response+\"\");\n int success = jsonObject.getInt(\"success\");\n Log.d(\"phantom success\",success+\"\");\n if (success == 1) {\n\n JSONArray jsonArray=jsonObject.optJSONArray(\"message\");\n for (int i=0;i<jsonArray.length();i++){\n\n JSONObject jsonObject3=jsonArray.getJSONObject(i);\n //String socket=jsonObject3.optString(\"socket\");\n int id=jsonObject3.getInt(\"id\");\n String ProjectName=jsonObject3.optString(\"project_name\");\n String Technology=jsonObject3.optString(\"technology\");\n String Category=jsonObject3.optString(\"category\");\n String Price=jsonObject3.optString(\"price\");\n String ExpertLevel=jsonObject3.optString(\"experience_level\");\n String EstTime=jsonObject3.optString(\"estimated_time\");\n String ProjectAbstract=jsonObject3.optString(\"abstract\");\n String DayValue=jsonObject3.optString(\"days\");\n String applicationCount=jsonObject3.optString(\"applications\");\n String status=jsonObject3.optString(\"status\");\n String verify=jsonObject3.optString(\"verify\");\n\n if(status.equals(\"Submitted\"))\n {\n ProjectInfoWorkModel model=new ProjectInfoWorkModel(id,ProjectName,DayValue,Technology,Category,ProjectAbstract,Price,ExpertLevel,EstTime,applicationCount,status,verify);\n modelList.add(model);\n adapter.notifyDataSetChanged();\n }else {\n ProjectInfoWorkModel model=new ProjectInfoWorkModel(id,ProjectName,DayValue,Technology,Category,ProjectAbstract,Price,ExpertLevel,EstTime,applicationCount,status);\n modelList.add(model);\n adapter.notifyDataSetChanged();\n }\n\n }\n\n\n } else {\n txtlisterror.setText(\"No Posted Project Till Now\");\n txtlisterror.setVisibility(View.VISIBLE);\n Toast.makeText(getActivity(),\"nothing\",Toast.LENGTH_LONG).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 if(error.getMessage()==null) {\n Toast.makeText(getActivity(), \"Server down try after some time\", Toast.LENGTH_LONG).show();\n }else {\n Toast.makeText(getActivity(), error.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }\n }\n ){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n\n\n Map<String,String> params=new HashMap<>();\n params.put(\"email\", email);\n Log.d(\"json_uuidf\", email);\n return params;\n }\n };\n RequestQueue requestQueue= Volley.newRequestQueue(getContext());\n requestQueue.add(stringRequest);\n\n }",
"public void testCreateOfficeAction77() {\n UrlInputDto urlInput = new UrlInputDto(TradeMarkDocumentTypes.TYPE_OFFICE_ACTION.getAlfrescoTypeName());\n urlInput.setSerialNumber(ParameterValues.VALUE_SERIAL_77777777_NUMBER.toString());\n urlInput.setFileName(VALUE_OFFACTN_FILE_NAME_TWO);\n String OFFICEACTION_CREATE_WEBSCRIPT_URL = CaseCreateUrl.returnGenericCreateUrl(urlInput);\n Map<String, String> offActnParam = new HashMap<String, String>();\n offActnParam.put(ParameterKeys.URL.toString(), OFFICEACTION_CREATE_WEBSCRIPT_URL);\n offActnParam.put(ParameterKeys.METADATA.toString(), VALUE_OFFICEACTION_METADATA_TWO);\n offActnParam.put(ParameterKeys.CONTENT_ATTACHEMENT.toString(), OfficeActionBaseTest.CONTENT_OFFICEACTION_ATTACHMENT);\n ClientResponse response = createDocument(offActnParam);\n //String str = response.getEntity(String.class);\n //System.out.println(str);\n assertEquals(400, response.getStatus());\n }",
"@Override\n public void onTestFailure(ITestResult result) {\n TakesScreenshot ts = (TakesScreenshot) LoginClass_Test.driver;\n\n File src = ts.getScreenshotAs(OutputType.FILE);\n File dest = new File(screenshotPath + result.getMethod().getMethodName()+\".png\");\n\n try {\n FileUtils.copyFile(src, dest);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void destiny2GetPostGameCarnageReportTest() {\n Long activityId = null;\n InlineResponse20046 response = api.destiny2GetPostGameCarnageReport(activityId);\n\n // TODO: test validations\n }",
"@Test(priority=0)\n\tpublic void add_response() throws IOException\n\t{\n\t\tlog.debug(\"Inside open_CSA_Tab() function\");\n\n\t\tStep02_AddResponse_GB addresp = new Step02_AddResponse_GB(driver); \n\t\taddresp.login();\n\t\taddresp.openRequest();\n\t\taddresp.FillRespdetails(\"fResp\" , \"GB\" , \"lResp\", \"09/09\", \"200\");\n//\t\tfor (int i=1; i<4; i++)\n//\t\t{\n//\t\t\tif(i==1)\n//\t\t\t{\n//\t\t\t\t\n//\t\t\t\taddresp.FillRespdetails(\"fResp\"+i , \"GB\" , \"lResp\"+i, \"09/09\", \"700\");\n//\t\t\t} \n//\t\t\telse if(i==2)\n//\t\t\t{\n//\t\t\t\t//addresp.login();\n//\t\t\t\taddresp.FillRespdetails(\"fResp\"+i , \"GB\" , \"lResp\"+i, \"10/10\", \"800\");\n//\t\t\t}\n//\t\t\telse\n//\t\t\t{\n//\t\t\t\t//addresp.login();\n//\t\t\t\taddresp.FillRespdetails(\"fResp\"+i , \"GB\" , \"lResp\"+i, \"11/11\", \"900\");\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\taddresp.Submit();\n\t}",
"private void saveHistoryToFile(File file) {\n JSONObject head = new JSONObject();\n\n // Meta information about the run\n JSONObject meta = new JSONObject();\n meta.put(\"TotalCycles\", this.totalCycles == -1 ? getEnvironment().getTime() : this.totalCycles);\n meta.put(\"TotalPackets\", this.totalPackets);\n meta.put(\"PacketsDelivered\", this.historyPackets.values().stream()\n .flatMap(Collection::stream)\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .count());\n meta.put(\"EnergyConsumed\", UserPanel.getInstance().score);\n\n\n JSONObject moves = new JSONObject();\n moves.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"FromX\", \"FromY\", \"ToX\", \"ToY\"}));\n moves.put(\"Data\", new JSONArray(historyMoves.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetPickup = new JSONObject();\n packetPickup.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"PacketX\", \"PacketY\"}));\n packetPickup.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Pickup)\n .map(p -> p.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDelivery = new JSONObject();\n packetDelivery.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DestinationX\", \"DestinationY\"}));\n packetDelivery.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDrop = new JSONObject();\n packetDrop.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DropX\", \"DropY\"}));\n packetDrop.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Drop)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject energyUpdate = new JSONObject();\n energyUpdate.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"Operator\", \"Percentage\"}));\n energyUpdate.put(\"Data\", new JSONArray(historyEnergy.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n head.put(\"Meta\", meta);\n head.put(\"Moves\", moves);\n head.put(\"PacketPickups\", packetPickup);\n head.put(\"PacketDeliveries\", packetDelivery);\n head.put(\"PacketDrops\", packetDrop);\n head.put(\"EnergyUpdates\", energyUpdate);\n\n try {\n FileWriter writer = new FileWriter(file);\n head.write(writer, 0, 0);\n writer.close();\n } catch (IOException e) {\n System.err.println(\"Failed to write history to file \" + file.getAbsolutePath());\n e.printStackTrace();\n }\n }",
"private MockHttpServletResponse postHttpServletResponse(String url, String json, ResultMatcher status)\n\t\t\tthrows Exception {\n\t\treturn httpServletResponse(HttpMethod.POST, url, json, status);\n\t}",
"private String validateValidResponse(Response response) {\n\n\t\t\n\t\tlogger.debug(response.getBody().asString());\n\t\tlogger.debug(response.body().asString());\n\t\t\n\t\treturn response.body().asString();\n\t}",
"public static void capturePersonalDetails(){\r\n\t\ttestInfo.log(Status.INFO, \"Capture Personal Details\");\r\n\t\tIWanna.selectFromDropdown(\"ddClientType\", red.getCellData(\"TestData\", \"ClientType\", currentRow));\r\n\t\tString vatIndicator = red.getCellData(\"TestData\", \"IndicatorVatVendor\", currentRow);\t\t\r\n\t\tif (vatIndicator.equalsIgnoreCase(\"No\")){\t\r\n\t\t\tIWanna.click(\"cbVatVendorNo\");\r\n\t\t}\r\n\t\telse if (vatIndicator.equalsIgnoreCase(\"Yes\")){\r\n\t\t\tIWanna.click(\"cbVatVendorYes\");\r\n\t\t}\r\n\t\t\r\n\t\tIWanna.type(\"tbVendorNumber\", red.getCellData(\"TestData\", \"VATVendorNumber\", currentRow));\r\n\t\tString indicatorInsolvent = red.getCellData(\"TestData\", \"IndicatorInsolvent\", currentRow);\t\r\n\t\tif (indicatorInsolvent.equalsIgnoreCase(\"No\")){\t\r\n\t\t\tIWanna.click(\"rbInsolventNo\");\r\n\t\t}\r\n\t\telse if (indicatorInsolvent.equalsIgnoreCase(\"Yes\")){\r\n\t\t\tIWanna.click(\"rbInsolventYes\");\r\n\t\t}\t\t\r\n\t\tIWanna.selectFromDropdown(\"ddTitle\", red.getCellData(\"TestData\", \"Title\", currentRow));\r\n\t\tIWanna.type(\"tbFirstNames\", red.getCellData(\"TestData\", \"FirstName\", currentRow));\r\n\t\tIWanna.type(\"tbSurname\", red.getCellData(\"TestData\", \"Surname\", currentRow));\r\n\t\t\r\n\t\tString saResident = red.getCellData(\"TestData\", \"IndicatorSACitizen\", currentRow);\t\r\n\t\tif (saResident.equalsIgnoreCase(\"No\")){\t\r\n\t\t\tIWanna.click(\"cbSAResNo\");\r\n\t\t\tIWanna.type(\"tbIdNumber\", red.getCellData(\"TestData\", \"IdNumber\", currentRow));\r\n\t\t\tIWanna.type(\"tbPassportValidFromDate\", red.getCellData(\"TestData\", \"PassportValidFrom\", currentRow));\r\n\t\t\tIWanna.type(\"tbPassportExpiryDate\", red.getCellData(\"TestData\", \"PassportExpiry\", currentRow));\r\n\t\t\t//capture temporary residence information\r\n\t\t\tif (red.getCellData(\"TestData\", \"TemporaryResident\", currentRow).equalsIgnoreCase(\"Yes\")){\r\n\t\t\t\tIWanna.click(\"rbTempResYes\");\r\n\t\t\t\tIWanna.type(\"tbPermitNumber\", red.getCellData(\"TestData\", \"PermitNumber\", currentRow));\r\n\t\t\t\tIWanna.type(\"tbPermitExpiryDate\", red.getCellData(\"TestData\", \"PermitExpiryDate\", currentRow));\r\n\t\t\t}\r\n\t\t\telse if (red.getCellData(\"TestData\", \"PassportExpiry\", currentRow).equalsIgnoreCase(\"No\")){\r\n\t\t\t\tIWanna.click(\"rbTempResNo\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (saResident.equalsIgnoreCase(\"Yes\")){\r\n\t\t\tIWanna.click(\"cbSAResYes\");\r\n\t\t\tIWanna.type(\"tbIdNumber\", red.getCellData(\"TestData\", \"IdNumber\", currentRow));\r\n\t\t}\t\t\t\r\n\t\t//select gender\r\n\t\tif (red.getCellData(\"TestData\", \"Gender\", currentRow).equalsIgnoreCase(\"Male\")){\r\n\t\t\tIWanna.click(\"rbGenderMale\");\r\n\t\t}\r\n\t\telse if(red.getCellData(\"TestData\", \"Gender\", currentRow).equalsIgnoreCase(\"female\")){\r\n\t\t\tIWanna.click(\"rbGenderFemale\");\t\t\t\r\n\t\t}\r\n\t\tIWanna.selectFromDropdown(\"ddRaceIndicator\", red.getCellData(\"TestData\", \"Race\", currentRow));\r\n\t\tIWanna.type(\"tbDateOfBirth\", red.getCellData(\"TestData\", \"DOB\", currentRow));\r\n\t\tIWanna.selectFromDropdown(\"ddNationality\", red.getCellData(\"TestData\", \"Nationality\", currentRow));\r\n\t\tIWanna.selectFromDropdown(\"ddCountryOfOrigin\", red.getCellData(\"TestData\", \"CountryOfOrigin\", currentRow));\r\n\t\tIWanna.selectFromDropdown(\"ddMaritalStatus\", red.getCellData(\"TestData\", \"MaritalStatus\", currentRow));\r\n\t\tIWanna.selectFromDropdown(\"ddLanguage\", red.getCellData(\"TestData\", \"Language\", currentRow));\r\n\t\t\r\n\t\t//capture post matric qualification\r\n\t\tif (red.getCellData(\"TestData\", \"PostMatricQualification\", currentRow).equalsIgnoreCase(\"Yes\")){\r\n\t\t\tIWanna.click(\"rbPostMatricQualificationYes\");\r\n\t\t\tIWanna.selectFromDropdown(\"ddHighestQualification\", red.getCellData(\"TestData\", \"Qualification\", currentRow));\r\n\t\t}\r\n\t\telse if(red.getCellData(\"TestData\", \"PostMatricQualification\", currentRow).equalsIgnoreCase(\"No\")){\r\n\t\t\tIWanna.click(\"rbPostMatricQualificationNo\");\t\t\t\r\n\t\t}\r\n\t\tAssert.assertTrue(IWanna.getElementValue(\"tbDateOfBirth\").equalsIgnoreCase(red.getCellData(\"TestData\", \"DOB\", currentRow)));\r\n\t}",
"@RequestMapping(value=\"storeEvaluateData\",method = RequestMethod.POST)\n @ResponseBody\n public String storeEvaluateData(@RequestBody PerformanceAssess performanceAssess){\n evaluateService.storePerfomanceData(performanceAssess);\n return \"1\";\n }",
"@Test\n public void createTeam2(){\n\n //GETTING AUTHORIZED BY PROVIDING WHO I AM\n //PROVIDE WHO I AM, THEN GET THE AUTHORIZATION/THE POWER TO ACCESS/TOKEN\n RestAssured.baseURI = \"https://cybertek-reservation-api-qa.herokuapp.com\";\n\n Response response = given().log().all().\n param(\"email\", \"teacherva5@gmail.com\").\n param(\"password\", \"maxpayne\").\n get(\"/sign\");\n response.then().log().all().\n assertThat().statusCode(200);\n\n\n String token =response.jsonPath().get(\"accessToken\");\n\n // RestAssured.baseURI=\"https://cybertek-reservation-api-qa.herokuapp.com\";\n RequestSpecification request = RestAssured.given();\n\n JSONObject requestParams = new JSONObject();\n requestParams.put(\"campus-location\", \"VA\");\n requestParams.put(\"batch-number\", \"11\");\n requestParams.put(\"team-name\", \"simpleuser001\");\n\n request.\n header(\"Content-Type\", \"application/json\").\n header(\"Authorization\", token).\n body(requestParams.toJSONString()).\n post(\"/api/teams/team\").then().log().all().statusCode(201);\n\n }",
"public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n try {\n jsonData = mapper.writeValueAsString(bookArrayList);\n } catch (JsonProcessingException e) {\n System.out.println(\"Error: \"+ e);\n }\n System.out.println(jsonData);\n ClientEntry.showMenu ( );\n }",
"@Test\n public void createObject() {\n\n for (int i = 1; i < 20; i++) {\n\n /**\n * Get the current array\n */\n RequestSpecification request = RestAssured.given();\n BankTransacctionPojo pojoEndpoint = new BankTransacctionPojo();\n\n /**\n * Change the json to pojo\n */\n Response responseGet = getEndPoint(Endpoint.URL);\n List<BankTransacctionPojo> bankTransacctionPojoList = new Gson().fromJson(responseGet.asString(), new TypeToken<List<BankTransacctionPojo>>() {\n }.getType());\n\n\n /**\n * validate the email with current data\n */\n for (BankTransacctionPojo bankTransacctionPojo : bankTransacctionPojoList) {\n Assert.assertFalse(bankTransacctionPojo.getEmail().equals(pojoEndpoint.getEmail()));\n\n }\n\n request.body(new Gson().toJson(pojoEndpoint));\n /**\n * result\n */\n Response responsePost = request.post(Endpoint.URL);\n responsePost.then()\n .assertThat()\n .statusCode(HttpStatus.SC_CREATED);\n\n }\n\n }",
"@Test\r\n\tpublic void UpdatebookingTest()\r\n\t{\n\t\t\r\n\t\tResponse responsecreate = createBooking(); \r\n\t\tresponsecreate.print();\r\n\t\t//get bookingid of booking\r\n\t\tint bookingid=responsecreate.jsonPath().getInt(\"bookingid\");\r\n\t\t\r\n\t\t//update \r\n\t\t//\r\n\t\t\r\n\t\tJSONObject body=new JSONObject();\r\n\t\tbody.put(\"firstname\", \"Devaaa\");\r\n\t\tbody.put(\"lastname\", \"Dadhavjadhav\");\r\n\t\tbody.put(\"totalprice\", 125);\r\n\t\tbody.put(\"depositpaid\", false);\r\n\r\n \r\n\t\tJSONObject bookingdates=new JSONObject();\r\n\t\tbookingdates.put(\"checkin\", \"2021-08-16\");\r\n\t\tbookingdates.put(\"checkout\", \"2021-09-17\");\r\n\t\t\r\n\t\tbody.put(\"bookingdates\", bookingdates);\r\n\t\tbody.put(\"additionalneeds\", \"Breakfast\");\r\n\t\t\r\n\t\t// update booking //username and password add\r\n\r\n\t\tResponse responseUpdate=RestAssured.given().auth().preemptive().basic(\"admin\", \"password123\").contentType(ContentType.JSON)\r\n\t\t\t\t.body(body.toString()).put(\"https://restful-booker.herokuapp.com/booking/\"+ bookingid);\r\n\t\t\r\n\t\tresponseUpdate.print();\r\n\t\tresponseUpdate.getStatusCode();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t// verify response 200\r\n\t\tAssert.assertEquals(responseUpdate.getStatusCode(), 200);\r\n//\t\t\t//verify all field\r\n//\t\t\tSoftAssert softassert=new SoftAssert();\r\n//\t\t\t\r\n//\t\t\tString actualfirstname=response.jsonPath().getString(\"firstname\");\r\n//\t\t\tsoftassert.assertEquals(actualfirstname, \"deva\");\r\n//\t\t\t\r\n//\t\t\tString actuallastname=response.jsonPath().getString(\"lastname\");\r\n//\t\t\tsoftassert.assertEquals(actuallastname, \"jadhav\");\r\n//\t\t\t\r\n//\t\t\tint actualtotalprice=response.jsonPath().getInt(\"totalprice\");\r\n//\t\t\tsoftassert.assertEquals(actualtotalprice, 255);\r\n//\t\t\t\r\n//\t\t\tboolean actualdepositpaid=response.jsonPath().getBoolean(\"depositpaid\");\r\n//\t\t\tsoftassert.assertFalse(actualdepositpaid, \"false\");\r\n//\t\t\t \r\n//\t\t\tString actualcheckin=response.jsonPath().getString(\"bookingdates.checkin\");\r\n//\t\t\tsoftassert.assertEquals(actualcheckin, \"2021-08-14\");\r\n//\t\t\t\r\n//\t\t\tString actualcheckout=response.jsonPath().getString(\"bookingdates.checkout\");\r\n//\t\t\tsoftassert.assertEquals(actualcheckout, \"2021-09-07\");\r\n//\t\t\t\r\n//\t\t\tString actualadditionalneeds=response.jsonPath().getString(\"additionalneeds\");\r\n//\t\t\tsoftassert.assertEquals(actualadditionalneeds, \"c\");\r\n//\t\t\tsoftassert.assertAll();\r\n//\t\r\n\r\n}",
"public void testClarificationJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n JSONTool jsonTool= new JSONTool(contest, null);\n\n Clarification[] clarifications = contest.getClarifications();\n Arrays.sort(clarifications, new ClarificationComparator());\n\n Clarification clarification = clarifications[4];\n ClarificationAnswer answer = null;\n String json = jsonTool.convertToJSON(clarification, answer ).toString();\n\n int problemNumber = JSONUtilities.getProblemIndex(contest, clarification.getProblemId());\n assertEquals(\"Expected problem number \", 1, problemNumber);\n\n// editFile(writeFile(new File(\"/tmp/stuf.\" + System.currentTimeMillis() + \".json\"), json));\n\n // System.out.println(\"debug clar json = \"+json);\n\n // debug json = {\"id\":\"5\", \"from_team_id\":\"5\", \"to_team_id\":\"5\", \"reply_to_id\": null, \"problem_id\":\"1\", \"text\":\"Why #2? from team5\", \"start_time\": null, \"start_contest_time\":\"0.000\"}\n\n asertEqualJSON(json, \"text\", \"Why #2? from team5\");\n asertEqualJSON(json, \"reply_to_id\", \"null\");\n asertEqualJSON(json, \"problem_id\", jsonTool.getProblemId(contest.getProblem(clarification.getProblemId())));\n\n// assertJSONStringValue(json, \"problem_id\", \"1\"); SOMEDAY\n assertJSONStringValue(json, \"problem_id\", jsonTool.getProblemId(contest.getProblem(clarification.getProblemId())));\n// assertJSONStringValue(json, \"id\", \"5\"); SOMEDAY\n assertJSONStringValue(json, \"id\", clarification.getElementId().toString());\n assertJSONStringValue(json, \"from_team_id\", \"5\" );\n assertJSONNullValue(json, \"to_team_id\");\n }",
"@Test\n\t\tpublic void testRestErrorResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getErrorResultString();\n\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertTrue(flag);\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@PostMapping(\"/tlb-trade/createTlbTrade\")\n @Timed\n public ResponseEntity<ResponseResult> createTlbTrade(@RequestBody TlbTradeDTO tlbTradeDTO) throws URISyntaxException {\n log.debug(\"REST request to save TlbTrade : {}\", tlbTradeDTO);\n if (tlbTradeDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new sysComponent cannot already have an ID\")).body(null);\n }\n ResponseResult json = new ResponseResult();\n HashMap<String, Object> checkMap = tlbTradeService.checkLotsTrade(tlbTradeDTO);\n if(!ResponseResult.SUCCESS_CODE.equals(checkMap.get(\"statusCode\"))){\n json.setMsgCode(checkMap.get(\"msg\").toString());\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }\n TlbTradeDTO tradeDTO = tlbTradeService.save(tlbTradeDTO);\n //ResponseResult json = new ResponseResult();\n json.setStatusCode(ResponseResult.SUCCESS_CODE);\n json.setData(tradeDTO);\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }",
"public boolean saveBeautiplyHolder(BeautiplyHolder bph) throws IOException,\r\n\t\t\tJSONException {\n\t\tString wallpaperName = beautiplyFileNameGenerator();\r\n\r\n\t\tJSONObject jsono = new JSONObject();\r\n\t\tjsono.put(\"URL\", bph.getUrl());\r\n\r\n\t\tif (!bph.getUrl().equals(\"NO_URL\")) {\r\n\t\t\tjsono.put(\"FILE_NAME\", wallpaperName);\r\n\t\t} else {\r\n\t\t\tjsono.put(\"FILE_NAME\", bph.getCurrentWallpaperName());\r\n\t\t}\r\n\r\n\t\tFileOutputStream fos = context.openFileOutput(\"BeautiplyHolder.json\",\r\n\t\t\t\tcontext.MODE_PRIVATE);\r\n\r\n\t\tOutputStreamWriter osw = new OutputStreamWriter(fos);\r\n\r\n\t\tosw.write(jsono.toString());\r\n\t\tosw.flush();\r\n\r\n\t\tfos.flush();\r\n\t\tosw.close();\r\n\t\tfos.close();\r\n\r\n\t\t// /saving the image\r\n\t\tif (!bph.getUrl().equals(\"NO_URL\")) {\r\n\t\t\tFileOutputStream fosImg = context.openFileOutput(wallpaperName,\r\n\t\t\t\t\tcontext.MODE_PRIVATE);\r\n\t\t\tbph.getCurrentWallpaper().compress(Bitmap.CompressFormat.JPEG, 90,\r\n\t\t\t\t\tfosImg);\r\n\t\t\tfosImg.flush();\r\n\t\t\tfosImg.close();\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t RestAssured.baseURI = \"https://rahulshettyacademy.com\";\n\t\t String response = given().queryParam(\"key\", \"qaclick123\")\n\t .header(\"Content-Type\",\"application/json\")\n\t\t.body(PayLoad.addPlace())\n\t\t.when().post(\"maps/api/place/add/json\")\n\t\t.then().assertThat().statusCode(200)\n\t\t.body(\"scope\",equalTo(\"APP\")).header(\"server\",\"Apache/2.4.18 (Ubuntu)\")\n\t\t.extract().response().asString();\n\t\tSystem.out.println(response);\n\t \n\t //For parsing JSON we have JsonPath(class)\n\t\tJsonPath json = new JsonPath(response);\n\t\tString placeId = json.getString(\"place_id\");\n\t System.out.println(placeId);\n\t \n \n \n\t}",
"@CrossOrigin\n\t@RequestMapping(value=\"/setFailure\", method= RequestMethod.POST)\n\tpublic JSONObject setFailure(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure start\", \"JobId\", jobId, \"Message\", requestBody.message);\n\t \tLocalLogger.logToStdOut(\"Status Service setFailure start JobId=\" + jobId + \" Message=\" + requestBody.message);\n\t \t\n\t\t try {\n\t\t \t\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.setJobFailure(jobId, requestBody.message);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"setFailure\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service setFailure exception message=\" + e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t\t \n\t}",
"@Override\r\n\tpublic void onTestFailure(ITestResult Result) {\n\t\tSystem.out.println(\"onTestFailure :\"+ Result.getName());\r\n\t\t\r\n\t\tTakesScreenshot sc =((TakesScreenshot)driver);\r\n\t\tFile fl =sc.getScreenshotAs(OutputType.FILE);\r\n\t\tFile fl2=new File(\"./Lib/screen.png\");\r\n\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils.copyFile(fl,fl2);\r\n\t\t\t} catch (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}\r\n\t\t\r\n\t}",
"public String takeScreenShotofFailure(String screenShot, WebDriver driver) throws Exception {\n\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n\t\t\t\t.format(Calendar.getInstance().getTime());\n\t\tSystem.out.println(\"Before taking screen shot\");\n\t\tTestLog.log.info(\"Before taking screen shot\");\n\t\tFile imageFile = ((TakesScreenshot) driver)\n\t\t\t\t.getScreenshotAs(OutputType.FILE);\n\t\tSystem.out.println(\"Created imgage file\");\n\t\tTestLog.log.info(\"Created imgage file\");\n\t\tString screenShotName = screenShot + \"_\" + timeStamp + \".png\";\n\n\t\t// It will store all the screenshots in test-output/screenshots folder\n\t\tString destDir = System.getProperty(\"user.dir\") + \"/\"\n\t\t\t\t+ \"test-output/ScreenShots\";\n\t\tnew File(destDir).mkdirs();\n\t\tString destFile = destDir + \"/\" + screenShotName;\n\t\tFileUtils.copyFile(imageFile, new File(destFile));\n\t\tSystem.out.println(\"Saving file\");\n\t\tTestLog.log.info(\"Saving file\");\n\t\treturn destFile;\n\t\t\n\t}",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void faild_response();",
"@RequestMapping(value = \"/free-cfdis\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n //public ResponseEntity<Free_cfdi> createFree_cfdi(@Valid @RequestBody Free_cfdi free_cfdi) throws URISyntaxException {\n public ResponseEntity<Free_cfdi> createFree_cfdi(@Valid @RequestBody Free_cfdiDTO free_cfdi_dto) throws URISyntaxException {\n\n Free_cfdi free_cfdi = free_cfdi_dto.getFreeCFDI();\n\n log.debug(\"REST request to save Free_cfdi : {}\", free_cfdi);\n if (free_cfdi.getId() != null) {\n Long idauditevent = new Long(\"4\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"2\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type,c_state_event);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"free_cfdi\", \"idexists\", \"A new free_cfdi cannot already have an ID\")).body(null);\n }\n\n free_cfdi.setVersion(\"3.2\");\n free_cfdi.setDate_expedition(ZonedDateTime.now());\n\n String place_expedition = free_cfdi.getFree_emitter().getC_country().getName();\n\n if(free_cfdi.getFree_emitter().getC_state() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_state().getName();\n\n if(free_cfdi.getFree_emitter().getC_municipality() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_municipality().getName();\n\n if(free_cfdi.getFree_emitter().getC_colony() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_colony().getCode();\n\n if(free_cfdi.getFree_emitter().getC_zip_code() != null)\n place_expedition += \", \" + free_cfdi.getFree_emitter().getC_zip_code().getCode();\n\n free_cfdi.setPlace_expedition(place_expedition);\n free_cfdi.setStamp(\"stamp\");\n free_cfdi.setNo_certificate(\"no_cetificate\");\n free_cfdi.setCertificate(\"cetificate\");\n\n free_cfdi_dto.setFreeCFDI(free_cfdi);\n Free_cfdi result = free_cfdiService.save(free_cfdi_dto);\n\n Long idauditevent = new Long(\"4\");\n Audit_event_type audit_event_type = audit_event_typeService.findOne(idauditevent);\n C_state_event c_state_event;\n Long idstate = new Long(\"1\");\n c_state_event = c_state_eventService.findOne(idstate);\n tracemgService.saveTrace(audit_event_type, c_state_event);\n\n //Sending emails\n List<String> attachments = new ArrayList<>();\n attachments.add(result.getPath_cfdi()+\".xml\");\n attachments.add(result.getPath_cfdi()+\".pdf\");\n\n mailService.sendNewFreeCFDICreatedToEmitterEmail(result, attachments);\n mailService.sendNewFreeCFDICreatedToReceiverEmail(result, attachments);\n\n return ResponseEntity.created(new URI(\"/api/free-cfdis/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"free_cfdi\", result.getId().toString()))\n .body(result);\n }",
"private String createResponse(RequiredSpecs specs) {\r\n\t\t\tJSONObject response = new JSONObject();\r\n\t\t\tint waitingTime = getWaitingTime(specs);\r\n\t\t\tresponse.put(\"waitingTime\", waitingTime);\r\n\t\t\tresponse.put(\"price\", superPC.getPrice(specs,waitingTime));\r\n\t\t\treturn response.toJSONString();\r\n\t\t}",
"private void getReportReasonApi() {\n if (CommonClass.isNetworkAvailable(mActivity)) {\n String url = ApiUrl.REPORT_USER_REASON + \"?token=\" + mSessionManager.getAuthToken();\n mProgressBar.setVisibility(View.VISIBLE);\n OkHttp3Connection.doOkHttp3Connection(TAG, url, OkHttp3Connection.Request_type.GET, new JSONObject(), new OkHttp3Connection.OkHttp3RequestCallback() {\n @Override\n public void onSuccess(String result, String user_tag) {\n System.out.println(TAG + \" \" + \"get report reason res=\" + result);\n\n mProgressBar.setVisibility(View.GONE);\n System.out.println(TAG + \" \" + \"report post reason res=\" + result);\n\n Gson gson = new Gson();\n ReportProductMain reportProductMain = gson.fromJson(result, ReportProductMain.class);\n\n switch (reportProductMain.getCode()) {\n // success\n case \"200\":\n arrayListReportItem.addAll(reportProductMain.getData());\n if (arrayListReportItem != null && arrayListReportItem.size() > 0) {\n rL_submit.setVisibility(View.VISIBLE);\n ReportItemRvAdapter reportItemRvAdapter = new ReportItemRvAdapter(mActivity, arrayListReportItem, true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(mActivity);\n rV_reportUser.setLayoutManager(linearLayoutManager);\n rV_reportUser.setAdapter(reportItemRvAdapter);\n }\n break;\n\n // auth token expired\n case \"401\":\n CommonClass.sessionExpired(mActivity);\n break;\n\n //error\n default:\n break;\n }\n }\n\n @Override\n public void onError(String error, String user_tag) {\n\n }\n });\n } else\n CommonClass.showSnackbarMessage(rL_rootElement, getResources().getString(R.string.NoInternetAccess));\n }",
"public void saveScreenshot() {\n if (ensureSDCardAccess()) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n doDraw(1, canvas);\n File file = new File(mScreenshotPath + \"/\" + System.currentTimeMillis() + \".jpg\");\n FileOutputStream fos;\n try {\n fos = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Panel\", \"FileNotFoundException\", e);\n } catch (IOException e) {\n Log.e(\"Panel\", \"IOEception\", e);\n }\n }\n }",
"public static void saveResponse(byte[] content,String type) {\n FileChooser fileChooser = new FileChooser();\r\n FileChooser.ExtensionFilter fileExtensions;\r\n if (!type.equals(\"image\")) {\r\n fileExtensions = new FileChooser.ExtensionFilter(\"TEXT FILES (*.txt), (*.xml), (*.json), (*.html), (*.htm)\",\"*.txt\",\"*xml\",\"*.json\",\"*.html\", \"*.htm\");\r\n } else {\r\n fileExtensions = new FileChooser.ExtensionFilter(\"Image File (*.jpg), (*.jpeg), (*.png)\",\"*.jpg\", \"*.jpeg\", \"*.png\");\r\n }\r\n fileChooser.getExtensionFilters().add(fileExtensions);\r\n\r\n File file = fileChooser.showSaveDialog(null);\r\n if (file!=null){\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(file);\r\n InputStream inputStream = new ByteArrayInputStream(content);\r\n inputStream.transferTo(outputStream);\r\n outputStream.flush();\r\n outputStream.close();\r\n }catch (Exception e){\r\n System.err.println(e.getMessage());\r\n }\r\n }\r\n }",
"@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }",
"public void getDeleteAlertForWrongData(XSSFWorkbook workbook,String sheetName,ExcelOperation excelOperation,String scenarioID) throws Exception {\n\t\ttry {\n\t\t\tString uri=FrameworkServices.getConfigProperties().getProperty(\"ApplicationURI\")+ServiceEndpoint.Alerts_DeleteAlerts.getUrl();\n\n\t\t\tString json=generateParentJson(workbook,sheetName,scenarioID,excelOperation);\n\n\t\t\tResponse res = given().\t\n\t\t\t\t\tbody(json).\n\t\t\t\t\twhen().\n\t\t\t\t\tcontentType(ContentType.JSON).post(uri);\n\t\t\tReporter.log(\"<b>Response is--></b>\"+res.asString());\n\n\t\t\tGson gson=new Gson();\n\t\t\tGetResponseForAlertsBook getAllApplicationResponse=gson.fromJson(res.asString(), GetResponseForAlertsBook.class);\n\t\t\tJsonObject jsonObject=new Gson().fromJson(res.asString(), JsonObject.class);\n\t\t\t//JsonArray result = (((JsonArray) ((JsonObject) ((JsonObject) jsonObject.get(\"response\")).get(\"data\")).get(\"alertList\")).getAsJsonArray());\n\t\t\t//List<alertList> alertList=getAllApplicationResponse.getResponse().getData().getAlertList();\n\t\t\tString infoid= ((JsonObject) jsonObject.get(\"response\")).get(\"infoID\").toString().replace(\"\\\"\", \"\");\n\t\t\t\n\t\t\t\tif(!infoid.equalsIgnoreCase(\"0\")) {\n\t\t\t\t\tJsonObject jsonObject1=new Gson().fromJson(res.asString(), JsonObject.class);\n\t\t\t\t\tString infomsgs = ((JsonObject) jsonObject1.get(\"response\")).get(\"infoMsg\").toString();\n\n\t\t\t\t\tReporter.log(\"<b>Message ID From Response is ---> </b>\" +\"<b>\"+infomsgs+\"</b>\");\n\t\t\t\t\t//Reporter.log(\"<b>Failed due to ---> Entered Wrong OR Blank ID</b>\");\n\t\t\t\t\tString infoid1 = ((JsonObject) jsonObject.get(\"response\")).get(\"infoID\").toString().replace(\"\\\"\", \"\");\n\t\t\t\t\t\n\t\t\t\t\tif(infoid1.equals(\"ENW0017\")) {\n\t\t\t\t\t\tAssert.assertEquals(\"ENW0017\" ,infoid1);\n\t\t\t\t\t}\n\t\t\t\t\telse if(infoid1.equals(\"ENW0039\")){\n\t\t\t\t\t\tAssert.assertEquals(\"ENW0039\", infoid1);\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\n\t\t\telse {\n\n\t\t\t\tJsonObject jsonObject1=new Gson().fromJson(res.asString(), JsonObject.class);\n\t\t\t\tString infomsgs = ((JsonObject) jsonObject1.get(\"response\")).get(\"infoMsg\").toString();\n\n\t\t\t\tReporter.log(\"<b>Message ID From Response is ---> </b>\" +\"<b>\"+infomsgs+\"</b>\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\t\n\t\t\tthrow e;\n\t\t}\n\t}",
"@Override\r\n\tprotected GuardarVtaCeroMotivoResponse responseText(String json) {\n\t\tGuardarVtaCeroMotivoResponse guardarVtaCeroMotivoResponse = JSONHelper.desSerializar(json, GuardarVtaCeroMotivoResponse.class);\r\n\t\treturn guardarVtaCeroMotivoResponse;\r\n\t}",
"protected static JsonElement bodyAsJson(Response response) {\n try {\n String body = response.body().string();\n JsonElement json = new JsonParser().parse(body);\n Variables.register(\"json_body_\" + response.hashCode(), body);\n return json;\n }\n catch (IOException e) {\n throw CheckedExceptions.wrapAsRuntimeException(e);\n }\n }"
] | [
"0.6116718",
"0.57534873",
"0.5737966",
"0.57059133",
"0.56792337",
"0.56148887",
"0.5453781",
"0.54143465",
"0.5389658",
"0.53738207",
"0.5344707",
"0.53406936",
"0.5336689",
"0.5319148",
"0.5302198",
"0.5254154",
"0.52228117",
"0.52029467",
"0.5181216",
"0.51638347",
"0.51192653",
"0.5112892",
"0.51119024",
"0.5104912",
"0.5092189",
"0.5080465",
"0.5066975",
"0.5063721",
"0.5040887",
"0.50073504",
"0.5004931",
"0.49932534",
"0.49905166",
"0.49835658",
"0.4982084",
"0.49764323",
"0.4969917",
"0.49678206",
"0.49602044",
"0.49581215",
"0.49489665",
"0.49452996",
"0.4931583",
"0.49306157",
"0.49252555",
"0.49229845",
"0.4914938",
"0.49143216",
"0.4909267",
"0.48962122",
"0.48929444",
"0.48766908",
"0.48582506",
"0.48441702",
"0.48334667",
"0.4832019",
"0.4829067",
"0.48279423",
"0.48195085",
"0.48171806",
"0.4817013",
"0.48082513",
"0.48080304",
"0.4805454",
"0.4803022",
"0.47987026",
"0.47885203",
"0.47860262",
"0.47821653",
"0.47777185",
"0.4773239",
"0.47696003",
"0.47678432",
"0.47632247",
"0.47564602",
"0.47518227",
"0.4751113",
"0.4749187",
"0.47473803",
"0.47471794",
"0.47425017",
"0.4733875",
"0.47332627",
"0.4728866",
"0.4728635",
"0.47230947",
"0.47193867",
"0.47187075",
"0.47168988",
"0.47136122",
"0.4710564",
"0.47083434",
"0.4706614",
"0.47052616",
"0.47006497",
"0.46981555",
"0.4689145",
"0.46737573",
"0.46735486",
"0.46658993",
"0.46656"
] | 0.0 | -1 |
This interface give possibility to use any a Number subclass in calculations because the task does not specify a data type for numbers. It can be integer or real. Classes that implement this interface will have basic arithmetic and scientific operations for a T. I might divide this interface into two parts but I do not think that it's really necessary. In addition, this interface provides methods for converting a T to a String and a String to a T. Most methods do not have any exceptions because: on the condition of the task all input data are correct; NaN and Infinity are logically correct values as a calculation result. | public interface CalcPrimitive<T extends Number> {
/**
* Basic arithmetic operation which adds two numbers
*
* @param first
* the addition operand
* @param second
* the addition operand
* @return first + second
*/
public T sum(T first, T second);
/**
* Basic arithmetic operation which subtracts two numbers
*
* @param first
* the subtraction operand
* @param second
* the subtraction operand
* @return first - second
*/
public T sub(T first, T second);
/**
* Basic arithmetic operation which multiplies two numbers
*
* @param first
* the multiplication operand
* @param second
* the multiplication operand
* @return first * second
*/
public T mul(T first, T second);
/**
* Basic arithmetic operation which divides two numbers
*
* @param first
* the division operand
* @param second
* the division operand
* @return first / second
*/
public T div(T first, T second);
/**
* Basic operation which calculates the cosine of the value
*
* @param value
* the operand of the cosine function in radians
* @return the cosine of the value
*/
public T cos(T value);
/**
* Basic operation which calculates the (value)^e
*
* @param value
* the operand of the calculation
* @return (value)^e
*/
public T exp(T value);
/**
* Basic operation which calculates the square root of a value.
*
* @param value
* the operand of the square root function
* @return the square root of value
*/
public T sqrt(T value);
/**
* Convert a String to a T value
*
* @param str
* a String for converting
* @return the value of the specified String as a T
* @throws NumberFormatException
* when str is incorrect
*/
public T getFromString(String str) throws NumberFormatException;
/**
* Check a String on a possibility of converting
*
* @param str
* a String for check
* @return true for correct str and false for incorrect
*/
public boolean isCorrect(String str);
/**
* Convert a T value to a String
*
* @param value
* a T object to converting
* @return the value of the specified number as a String
*/
public String getString(T value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number(final T theVal)\n {\n if (theVal instanceof Integer) {\n myInt = (Integer) theVal;\n isInt = true;\n } else if (theVal instanceof Double) {\n myDouble = (Double) theVal;\n isDouble = true;\n } else if (theVal instanceof Float) {\n myFloat = (Float) theVal;\n isFloat = true;\n } else if (theVal instanceof Long) {\n myLong = (Long) theVal;\n isLong = true;\n }\n }",
"default T handleNumber(double val) {\n throw new UnsupportedOperationException();\n }",
"public static interface DataTypeWithRatioScale<T> {\r\n \r\n /**\r\n * Add\r\n *\r\n * @param augend\r\n * @param addend\r\n * @return\r\n */\r\n public abstract T add(T augend, T addend);\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param s1\r\n * @param s2\r\n * @return\r\n * @throws NumberFormatException\r\n * @throws ParseException\r\n */\r\n public abstract int compare(String s1, String s2) throws NumberFormatException,\r\n ParseException;\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param t1\r\n * @param t2\r\n * @return\r\n */\r\n public abstract int compare(T t1, T t2);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract String divide(String dividend, String divisor);\r\n \r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract T divide(T dividend, T divisor);\r\n \r\n /**\r\n * Format\r\n *\r\n * @param t\r\n * @return\r\n */\r\n public abstract String format(T t);\r\n\r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T fromDouble(Double d);\r\n\r\n /**\r\n * Description\r\n *\r\n * @return\r\n */\r\n public abstract DataTypeDescription<T> getDescription();\r\n\r\n /**\r\n * Maximum\r\n *\r\n * @return\r\n */\r\n public T getMaximum();\r\n \r\n /**\r\n * Minimum\r\n *\r\n * @return\r\n */\r\n public T getMinimum();\r\n\r\n /**\r\n * Valid\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract boolean isValid(String s);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract String multiply(String multiplicand,\r\n String multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, double multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, int multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, T multiplicator);\r\n \r\n /**\r\n * Parse\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T parse(String s);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract double ratio(T dividend, T divisor);\r\n \r\n /**\r\n * Subtract\r\n *\r\n * @param minuend\r\n * @param subtrahend\r\n * @return\r\n */\r\n public abstract T subtract(T minuend, T subtrahend);\r\n \r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract Double toDouble(T t);\r\n }",
"public abstract Double toDouble(T t);",
"protected abstract String process(T firstNumber, D secondNumber);",
"public NumberToNumber(Class<T> targetType)\r\n/* 21: */ {\r\n/* 22:52 */ this.targetType = targetType;\r\n/* 23: */ }",
"public void testGetNumericValue1() {\n ValueString vs = new ValueString(\"1000\");\n\n assertEquals(\"1000\", vs.getString());\n assertEquals(1000.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(1000, vs.getInteger());\n assertEquals(BigDecimal.valueOf(1000), vs.getBigNumber());\n }",
"public T convert(Number source)\r\n/* 26: */ {\r\n/* 27:56 */ return NumberUtils.convertNumberToTargetClass(source, this.targetType);\r\n/* 28: */ }",
"public interface CalculatorMathEngine {\n\n @NotNull\n String evaluate(@NotNull String expression) throws ParseException;\n\n @NotNull\n String simplify(@NotNull String expression) throws ParseException;\n\n @NotNull\n String elementary(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic evaluateGeneric(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic simplifyGeneric(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic elementaryGeneric(@NotNull String expression) throws ParseException;\n}",
"public Number getNumberValue();",
"interface MyNumber {\n double myValue();\n}",
"public T getFromString(String str) throws NumberFormatException;",
"@Override\n\tpublic Type visit(TLANumber tlaNumber) throws RuntimeException {\n\t\tif (tlaNumber.getVal().contains(\".\")) {\n\t\t\treturn new RealType(Collections.singletonList(tlaNumber));\n\t\t}\n\t\treturn TLABuiltins.getPolymorphicNumberType(tlaNumber, solver, generator);\n\t}",
"@Override\n public JsonParser.NumberType numberType() {\n // most types non-numeric, so:\n return null;\n }",
"public interface Trigonometric<E> {\n\n /**\n * Returns the sine of a number.\n * @param n element\n * @return sine\n */\n E sin(final E n);\n\n /**\n * Returns the cosine of a number.\n * @param n element\n * @return cosine\n */\n E cos(final E n);\n\n /**\n * Returns the tangent of a number.\n * @param n element\n * @return tangent\n */\n E tan(final E n);\n\n /**\n * Returns the cotangent of a number.\n * @param n element\n * @return tangent\n */\n E cot(final E n);\n\n /**\n * Returns the arcsine of a number.\n * @param n element\n * @return arcsine\n */\n E asin(final E n);\n\n /**\n * Returns the arccosine of a number.\n * @param n element\n * @return cosine\n */\n E acos(final E n);\n\n /**\n * Returns the arctangent of a number.\n * @param n element\n * @return tangent\n */\n E atan(final E n);\n}",
"NumberValue createNumberValue();",
"public interface NumberLatticeElement extends MiddleCandidateLatticeElement<NumberLatticeElement>, Coercible {\n NumberLatticeElement bottom = new BottomNumberLatticeElementImpl();\n NumberLatticeElement top = new TopNumberLatticeElementImpl();\n NumberLatticeElement uIntTop = new UIntTopNumberLatticeElementImpl();\n NumberLatticeElement notUIntTop = new NotUIntTopNumberLatticeElementImpl();\n static NumberLatticeElement generateNumberLatticeElement(Number i){\n if(i.doubleValue() == i.intValue() && i.intValue() >= 0){\n return new UIntNumberLatticeElementImpl(i.intValue());\n }\n return new NotUIntNumberLatticeElementImpl(i);\n }\n\n static Number parseNumberString(String text){\n if(text.matches(\"^(([-+]?[1-9][0-9]*)|0)$\")){\n return Integer.parseInt(text);\n }\n\n if(text.matches(\"^([+-]?(0[xX][0-9a-fA-F]+))$\")){\n return Long.decode(text);\n }\n\n if(text.matches(\"^([+-]?(0[0-7]+)$)\")){\n return Long.decode(text);\n }\n\n if(text.matches(\"^([+-](0b[01]+))$\")) {\n return Integer.parseInt(text.substring(3), 2);\n }\n if(text.matches(\"^(0b[01]+)$\")){\n return Integer.parseInt(text.substring(2), 2);\n }\n\n if(text.matches(\"^([+-]?(([0-9]*[\\\\.][0-9]+)|([0-9]+[\\\\.][0-9]*)))$\")){\n return Double.parseDouble(text);\n }\n\n if(text.matches(\"^([+-]?(([0-9]+|([0-9]*[\\\\.][0-9]+)|([0-9]+[\\\\.][0-9]*))[eE][+-]?[0-9]+))$\")){\n return Double.valueOf(text).longValue();\n }\n return null;\n }\n\n NumberLatticeElement increment();\n NumberLatticeElement decrement();\n\n NumberLatticeElement add(NumberLatticeElement other);\n\n NumberLatticeElement subtract(NumberLatticeElement other);\n\n NumberLatticeElement multiply(NumberLatticeElement other);\n\n ValueLatticeElement divide(NumberLatticeElement other);\n\n ValueLatticeElement modulo(NumberLatticeElement other);\n\n NumberLatticeElement exponent(NumberLatticeElement other);\n\n BooleanLatticeElement equalOperation(NumberLatticeElement other);\n\n BooleanLatticeElement notEqual(NumberLatticeElement other);\n\n BooleanLatticeElement greaterThan(NumberLatticeElement other);\n\n BooleanLatticeElement lessThan(NumberLatticeElement other);\n\n BooleanLatticeElement greaterThanOrEqual(NumberLatticeElement other);\n\n BooleanLatticeElement lessThanOrEqual(NumberLatticeElement numberLatticeElement);\n\n NumberLatticeElement minus();\n}",
"public abstract String toText(T value);",
"public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}",
"public void testSetNumber() {\n ValueString vs = new ValueString();\n\n vs.setNumber(0);\n assertEquals(\"0.0\", vs.getString());\n vs.setNumber(1);\n assertEquals(\"1.0\", vs.getString());\n vs.setNumber(-1);\n assertEquals(\"-1.0\", vs.getString());\n vs.setNumber(2.5);\n assertEquals(\"2.5\", vs.getString());\n vs.setNumber(2.8);\n assertEquals(\"2.8\", vs.getString());\n }",
"public interface Calculable {\n double doCalculation(String value) throws NumberFormatException ;\n}",
"public interface Numeric extends DataType {\n}",
"public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}",
"public void testGetNumericValue2() {\n ValueString vs = new ValueString(\"2.8\");\n\n assertEquals(\"2.8\", vs.getString());\n assertEquals(2.8D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(2.8D, vs.getBigNumber().doubleValue(), 0.1D);\n }",
"public NumberP(ErrorTypesNumber error) { Error = error; }",
"public interface StringTranslation<T> {\n\n /**\n * Method defines hos to change string representation to instance of object.\n * @param stringRepresentation string that will be dispatched into object.\n * @return instance of expected object.\n */\n T translate(final String stringRepresentation);\n\n /**\n * Helper method that gives a hint, in case when during reading a null indicator would be found\n * what will should be returned. It can look kind of artificial, but this was introduced to solve problem\n * with raw types, and define behaviour of such translation, externally and give ability of control for user.\n *\n * To understand please have a look for example StringToDoubleTranslation vs StringToRawDoubleTranslation.\n * @return null representation.\n */\n T getNullRepresentation();\n}",
"@Override\n public abstract JsonParser.NumberType numberType();",
"public abstract boolean isNumeric();",
"private void ex04(){\n int number;\n number = 1;\n\n double number2;\n number2 = 1.5;\n\n String number3;\n number3 = \"3\";\n\n boolean bool = (number == 1);\n\n myWindow.clearOut();\n myWindow.writeOutLine(number);\n myWindow.writeOutLine(new String(String.valueOf(number))); //int to string\n myWindow.writeOutLine((double) number); //int to double\n myWindow.writeOutLine(bool); //int to boolean\n\n /*\n Java can perform number -> string\n method 1: numberType.toString\n method 2: String.valueOf(int/double/float) //used above in the code\n Java can also perform string -> number\n dataType.parseDatatype() // e.g.: Integer.parseInt()\n\n Java allows this only when the conversion is widening (small -> larger)\n alternatively reports a compile error if the conversion is narrowing\n */\n\n //YOUR CODE ABOVE HERE\n }",
"public abstract Number getPrimitiveType();",
"public interface INumberService {\n\t\n\t/**\n\t * Returns a number as a string value.\n\t * @return The number as a string value\n\t * @throws Exception\n\t */\n\tpublic String getNumber() throws Exception;\n}",
"public abstract T fromDouble(Double d);",
"private boolean isNumber(Object o) {\n\t\tif(o instanceof String) return isNumber((String) o);\n\t\telse if(o instanceof Double) return true;\n\t\telse return false;\n\t}",
"public interface Expression<Argument, Result> {\n String PLUS = \"+\";\n String MINUS = \"-\";\n\n /**\n * calculates an expressionType\n */\n void calculate();\n\n /**\n * returns result of calculated expressionType\n * @return result of expressionType\n */\n Result getResult();\n\n /**\n * @param stringExpression\n * sets arguments\n */\n void setArguments(StringExpression stringExpression);\n\n}",
"public interface NumberConverter {\n PrintableNumber convert(int number);\n}",
"public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}",
"public static Number toNumber(Object obj, Class<?> type) {\n if (obj == null) {\n return null;\n }\n // Integer, Long and BigDecimal are prior\n if (type == Integer.class) {\n return toInteger(obj);\n } else if (type == Long.class) {\n return toLong(obj);\n } else if (type == BigDecimal.class) {\n return toBigDecimal(obj);\n } else if (type == Double.class) {\n return toDouble(obj);\n } else if (type == Float.class) {\n return toFloat(obj);\n } else if (type == Short.class) {\n return toShort(obj);\n } else if (type == Byte.class) {\n return toByte(obj);\n } else if (type == BigInteger.class) {\n return toBigInteger(obj);\n }\n return null; // could not convert\n }",
"public T caseNumber(org.uis.lenguajegrafico.lenguajegrafico.Number object)\n {\n return null;\n }",
"private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }",
"private static Number transform(Object value) {\n\t\tif (value == null) {\n\t\t\treturn Integer.valueOf(0);\n\t\t}\n\t\tif (value instanceof String) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt((String)value);\n\t\t\t} catch(NumberFormatException ex) {\n\t\t\t\ttry {\n\t\t\t\t\treturn Double.parseDouble((String)value);\n\t\t\t\t} catch (NumberFormatException ex2) {\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"String \" + value + \" cannot be interpreted as a number\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (!(value instanceof Double || value instanceof Integer)) {\n\t\t\tthrow new RuntimeException(value.toString() + \" cannot be interpreted as a number.\");\n\t\t}\n\t\treturn (Number)value;\n\t}",
"abstract String display(T value);",
"public static void main(String[] args) {\n\n Integer num1 = 100;\n double num2 = num1;\n System.out.println(num2);\n\n float f = 0.5f;\n Float fl = f;\n System.out.println(fl);\n\n System.out.println(Byte.MAX_VALUE);\n\n // parse method --> converting String value to primitives, returne primitive\n // valueOf --> converting String to Wrapper class, return Wrapper class\n\n String str1 = \"123\";\n int result = Integer.parseInt(str1);\n System.out.println(result+1);\n\n String str2 = \"true\";\n boolean r1 = Boolean.parseBoolean(str2);\n System.out.println(r1);\n\n // parse method not case sencetive\n String str3 = \"FaLse\"; // it is work\n boolean r2 = Boolean.parseBoolean(str3);\n System.out.println(r2);\n\n String s1 = \"100.5\";\n Double c1 = Double.parseDouble(s1);\n System.out.println(c1 + 1); // it is call auto boxing\n Double c2 = Double.valueOf(s1); // this in not auto and not unboxing\n\n System.out.println(c1);\n System.out.println(c2);\n\n String s2 = \"TrUe\";\n Boolean b1 = Boolean.valueOf(s2);\n System.out.println(b1); // no sensetive\n\n Double [] arr = new Double[3];\n System.out.println(Arrays.toString(arr));\n // default value of wrapper class always --> null, null, null\n\n String name = \"string\";\n String name1 = new String(\"string\");\n\n Integer I1 = new Integer(\"123\");\n\n System.out.println(addNum(12,13));\n System.out.println(addNum(15.3,7.4));\n \n }",
"public interface Doubleton {\n static double identity(double input) {\n return input;\n }\n\n static float toFloat(double input) {\n return (float) input;\n }\n\n static byte toByte(double input) {\n return (byte) input;\n }\n\n static int toInt(double input) {\n return (int) input;\n }\n\n static long toLong(double input) {\n return (long) input;\n }\n\n static short toShort(double input) {\n return (short) input;\n }\n static String toString(double input) {\n return String.valueOf(input);\n }\n\n static Byte toBoxedByte(double input) {\n return toByte(input);\n }\n\n static Double toBoxedDouble(double input) {\n return input;\n }\n\n static Float toBoxedFloat(double input) {\n return toFloat(input);\n }\n\n static Integer toBoxedInteger(double input) {\n return toInt(input);\n }\n\n static Long toBoxedLong(double input) {\n return toLong(input);\n }\n\n static Short toBoxedShort(double input) {\n return toShort(input);\n }\n\n static double[] toArray(double value) {\n return new double[]{value};\n }\n}",
"protected JSONNumber(String str) {\n\t\ttype = JSONConstants.VT_NUMBER;\n\t\tthis.numberStr = str;\n\t\tthis.numberBytes = str.getBytes();\n\t}",
"float applyAsFloat(T value);",
"public interface Converter<T> {\n public String convert(T thing);\n}",
"public abstract String format(T t);",
"public interface ValidatorNumberator<T> extends Numberator<T>, Validator<T> {\n}",
"private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"@Override\n public Type evaluateType() throws Exception {\n return new IntegerType();\n }",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"public interface Convertible {\r\n\r\n /**\r\n * set value;\r\n */\r\n public void setFromValue(double fromValue);\r\n /**\r\n * return converted value\r\n * @return\r\n */\r\n public double getConvertedValue();\r\n /**\r\n * convert value \r\n */\r\n public void convert();\r\n\r\n}",
"public interface TypeDataConverter<T> {\n public Integer getInteger(T source, String columnName, Integer defaultValue);\n public Long getLong(T source, String columnName, Long defaultValue);\n public Double getDouble(T source, String columnName, Double defaultValue);\n public String getString(T source, String columnName, String defaultValue);\n}",
"static public double asNumber(Object a) throws Exception {\r\n\t\tif (a instanceof JSObject)\r\n\t\t\ta = ((JSObject) a).valueOf();\r\n\t\t\r\n\t\t// js types\r\n\t\tif (a instanceof Double)\r\n\t\t\treturn (Double) a;\r\n\t\tif (a instanceof Boolean)\r\n\t\t\treturn (Boolean) a ? 1 : 0;\r\n\t\tif (a instanceof String)\r\n\t\t\ttry {\r\n\t\t\t\treturn Double.parseDouble((String) a);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\treturn Double.NaN;\r\n\t\t\t}\r\n\t\t\r\n\t\t// java types\r\n\t\tif (a instanceof Number)\r\n\t\t\treturn ((Number) a).doubleValue();\r\n\r\n\t\treturn Double.NaN;\r\n\t}",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"public void testNumberConversion() throws Exception {\n NumberMetadataDefinition def = new NumberMetadataDefinition(\"number\", NUMBER);\n List<AbstractMetadataDefinition> list = new LinkedList<AbstractMetadataDefinition>();\n list.add(def);\n PluginImpl.getInstance().setDefinitions(list);\n FreeStyleProject freeStyleProject = createFreeStyleProject();\n configRoundtrip(freeStyleProject);\n MetadataJobProperty property = freeStyleProject.getProperty(MetadataJobProperty.class);\n assertNotNull(\"No MetadataJobProperty\", property);\n NumberMetadataValue number = (NumberMetadataValue)TreeStructureUtil.getLeaf(property, \"number\");\n assertNotNull(number);\n assertEquals(new Long(NUMBER), number.getValue());\n }",
"public NumericMethodException() {\n super();\n }",
"private String literal(Number num) {\n int i = num.intValue();\n double d = num.doubleValue();\n \n if (i == d) {\n return String.valueOf(i);\n } else {\n // TODO: proper number formatting should be used\n return num.toString();\n }\n }",
"T convert(String value);",
"public static void main(String[] args) {\n int num = 10;\n System.out.println(\"The integer value is: \" + num);\n\n // converts int to string type\n String data = Integer.toString (num);// we can also use String.format() String.valueOf()\n System.out.println(\"The string value is: \" + data);//////\n //str to int\n // create string type variable\n String data1 = \"10\";\n System.out.println(\"The string value is: \" + data1);\n // convert string variable to int\n int num1 = Integer.parseInt(data1);// we can also use Integer.valueOf() \n System.out.println(\"The integer value is: \" + num1);//////\n //str to long\n //creating str type variable\n String data2 = \"10\";\n System.out.println(\"The string value is: \" + data2);\n long l2 = Long.parseLong(data2);\n System.out.println(\"The long value is: \" + l2);//////\n //long to str\n //creating long type variable\n long data3 = 9225;\n System.out.println(\"The long value is: \" + data3);\n String str3 =String.valueOf(data3);///we can also use Long.toString()\n System.out.println(\"The string is: \" + str3);//////\n //str to float\n //creating str type variable\n String data4 = \"555555\";\n System.out.println(\"The string value is: \" + data4);\n float f4 = Float.parseFloat(data4);\n System.out.println(\"The float value is: \" + f4);//////\n //float to str\n //creating float type variable\n float data5 = 5555555;\n System.out.println(\"The float value is: \" + data5);\n String str5 =String.valueOf(data5);///we can also use Float.toString() \n System.out.println(\"The string is: \" + str5);//////\n //str to double\n //creating str type variable\n String data6 = \"555555.55\";\n System.out.println(\"The string value is: \" + data6);\n double d6 = Double.parseDouble(data6);\n System.out.println(\"The double value is: \" + d6);//////\n //double to str\n //creating float type variable\n double data7 = 55555.55;\n System.out.println(\"The double value is: \" + data7);\n String str7 =String.valueOf(data7);///we can also use double.toString() \n System.out.println(\"The string is: \" + str7);//////\n \n \n\n }",
"public abstract T getValue();",
"public abstract T getValue();",
"public String getNumber() throws Exception;",
"@Override\n\tpublic Object visit(ASTNum node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.jjtGetNumChildren() != 0)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 0));\n\t\t\treturn semantics;\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tDouble.parseDouble(node.getText());\n\t\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\t\tnew FormulaFormat(NUMBER_CLASS));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics, node.getClass()\n\t\t\t\t+ \" had invalid number: \" + node.getText());\n\t\t}\n\t\treturn semantics;\n\t}",
"public void testInferNumber1a() throws Exception {\n assertType(\"10 \", 0, 2, \"java.lang.Integer\");\n }",
"public static void main(String args[])\r\n\t{\n\t\tbyte byteVal = 10;\r\n\t\tshort shortVal = 20;\r\n\t\t\r\n\t\tByte firstByteObj = new Byte(byteVal);\r\n\t\tByte secondByteObj = new Byte(\"10\");\r\n\t\tSystem.out.println(\"Byte Created using Primitive - \" + firstByteObj);\r\n\t\tSystem.out.println(\"Byte Created using String - \" + secondByteObj);\r\n\t\t\r\n\t\tShort firstShortObj = new Short(shortVal);\r\n\t\tShort secondShortObj = new Short(\"20\");\r\n\t\tSystem.out.println(\"Short Created using primitive - \" + firstShortObj);\r\n\t\tSystem.out.println(\"Short Created using String - \" + secondShortObj);\r\n\t\t\r\n\t\tInteger firstIntegerObj = new Integer(100);\r\n\t\tInteger secondIntegerObj = new Integer(\"100\");\r\n\t\tSystem.out.println(\"Integer Created using primitive - \" + firstIntegerObj);\r\n\t\tSystem.out.println(\"Integer Created using String - \" + secondIntegerObj);\r\n\t\t\r\n\t\tLong firstLongObj = new Long(1000l);\r\n\t\tLong secondLongObj = new Long(\"1000\");\r\n\t\t//Long thirdLongObj = new Long(\"1000l\"); // throws java.lang.NumberFormatException: For input string: \"1000l\"\r\n\t\tSystem.out.println(\"Long Created using primitive - \" + firstLongObj);\r\n\t\tSystem.out.println(\"Long Created using String - \" + secondLongObj);\r\n\t\t//System.out.println(\"Long Created using String with convension - \" + thirdLongObj);\r\n\t\t\r\n\t\tFloat firstFloatObj = new Float(10.5f);\r\n\t\tFloat secondFloatObj = new Float(\"10.5f\");\r\n\t\tFloat thirdFloatObj = new Float(\"10.5\");\r\n\t\tFloat fourthFloatObj = new Float(10.5);\r\n\t\tSystem.out.println(\"Float created using primitive - \" + firstFloatObj);\r\n\t\tSystem.out.println(\"Float created using String with convension - \" + secondFloatObj);\r\n\t\tSystem.out.println(\"Float Created using String - \" + thirdFloatObj);\r\n\t\tSystem.out.println(\"Float created using Double - \" + fourthFloatObj);\r\n\t\t\r\n\t\tDouble firstDoubleObj = new Double(123.34);\r\n\t\tDouble secondDoubleObj = new Double(\"321.34\");\r\n\t\tSystem.out.println(\"Double Created using Double - \" + firstDoubleObj);\r\n\t\tSystem.out.println(\"Double Created using String - \" + secondDoubleObj);\r\n\t\t\r\n\t\tCharacter firstCharObj = new Character('a');\r\n\t\t// Character secondCharObj = new Character(\"a\"); // Cant create a Character wrapper using String\r\n\t\tSystem.out.println(\"Character created using primitive - \" + firstCharObj);\r\n\t\t\r\n\t\tBoolean firstBooleanObj = new Boolean(true);\r\n\t\tBoolean secondBooleanObj = new Boolean(false);\r\n\t\tBoolean thirdBooleanObj = new Boolean(\"true\");\r\n\t\tBoolean fourthBooleanObj = new Boolean(\"True\");\r\n\t\tBoolean fifthBooleanObj = new Boolean(\"TRUE\");\r\n\t\tBoolean sixthBooleanObj = new Boolean(\"false\");\r\n\t\tBoolean seventhBooleanObj = new Boolean(\"Baskar\");\r\n\t\t\r\n\t\tSystem.out.println(\"Boolean created using primitive - \" + firstBooleanObj); //true\r\n\t\tSystem.out.println(\"Boolean created using primitive - \" + secondBooleanObj); //false`\r\n\t\tSystem.out.println(\"Boolean created using String - \" + thirdBooleanObj); //true\r\n\t\tSystem.out.println(\"Boolean created using String - \" + fourthBooleanObj); // true\r\n\t\tSystem.out.println(\"Boolean created using String - \" + fifthBooleanObj); //true\r\n\t\tSystem.out.println(\"Boolean created using String - \" + sixthBooleanObj); //false\r\n\t\tSystem.out.println(\"Boolean created using String - \" + seventhBooleanObj); //false //default value is false\r\n\t}",
"@SuppressWarnings(\"OptionalUsedAsFieldOrParameterType\")\npublic interface Value<V> extends Supplier<V> {\n /** Creates an empty instance of Value */\n static <V> Value<V> empty() {\n return new ImmutableValue<>((V) null);\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(V value) {\n return new ImmutableValue<>(value);\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(Optional<V> value) {\n return new ImmutableValue<>(value.orElse(null));\n }\n\n /** Creates an instance of Value for the given value */\n static <V> Value<V> of(Value<V> value) {\n return new ImmutableValue<>(value.get());\n }\n\n /** Creates an instance of Value for the given String, treat empty strings as null */\n static Value<String> of(String value) {\n return new ImmutableValue<>((value == null || value.isEmpty()) ? null : value);\n }\n\n /** Tries to parse the integer from the String and returns the value if its found */\n static Value<Integer> parseInteger(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Integer.parseInt(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the long from the String and returns the value if its found */\n static Value<Long> parseLong(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Long.parseLong(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the double from the String and returns the value if its found */\n static Value<Double> parseDouble(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Double.parseDouble(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the float from the String and returns the value if its found */\n static Value<Float> parseFloat(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Float.parseFloat(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the short from the String and returns the value if its found */\n static Value<Short> parseShort(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Short.parseShort(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the byte from the String and returns the value if its found */\n static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Tries to parse the boolean from the String and returns the value if its found */\n static Value<Boolean> parseBoolean(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Boolean.parseBoolean(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }\n\n /** Does the value instance contain a non null value */\n default boolean isPresent() {\n return get() != null;\n }\n\n /** Does the value instance contain a null value */\n default boolean isEmpty() {\n return get() == null;\n }\n\n /** Get the value of this instance if its present for return the argument could be null */\n default V getOrElse(V value) {\n return isEmpty() ? value : get();\n }\n\n /** Gets the value of this instance or throw NullPointerException with the provided message */\n default V getOrThrow(String message) {\n return Conditions.nonNull(get(), message);\n }\n\n /** Gets the value of this instance or throw NullPointerException */\n default V getOrThrow() {\n return getOrThrow(\"null\");\n }\n\n /** Run a consumer instance on the value if it exists */\n default Value<V> ifPresent(Consumer<V> consumer) {\n if (isPresent()) {\n consumer.accept(get());\n }\n return this;\n }\n\n /** Run a runnable instance on the value if it exists */\n default Value<V> ifPresent(Runnable runnable) {\n if (isPresent()) {\n runnable.run();\n }\n return this;\n }\n\n /** Run a runnable instance on the value if it is empty */\n default Value<V> ifEmpty(Runnable runnable) {\n if (isEmpty()) {\n runnable.run();\n }\n return this;\n }\n}",
"private Double parseNumber(String num) {\r\n\t\tDouble tempnum = (double) 0;\r\n\t\tint opos; //operator position\r\n\t\tif ((num == null) || (num.length() < 1) ) {\r\n\t\t\treturn tempnum;\r\n\t\t}\r\n\r\n\t\t//replace constants with their value\r\n\t\twhile (num.indexOf(\"P\") >= 0) { //PI constant\r\n\t\t\tString[] numparts = StringUtil.splitData(num, 'P', 2);\r\n\t\t\tnum = numparts[0]+String.valueOf(Math.PI)+numparts[1];\r\n\t\t}\r\n\t\twhile (num.indexOf(\"X\") >= 0) { //e constant\r\n\t\t\tString[] numparts = StringUtil.splitData(num, 'X', 2);\r\n\t\t\tnum = numparts[0]+String.valueOf(Math.E)+numparts[1];\r\n\t\t}\r\n\r\n\t\tif (num.indexOf(\"^\") >= 0) { //allows to specify powers (e.g.: 2^10)\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '^', 2);\r\n\t\t\ttempnum = Math.pow(parseNumber(numparts[0]), parseNumber(numparts[1]));\r\n\t\t}\r\n\t\telse if ( ((opos = num.indexOf(\"-\")) > 0) && (num.charAt(opos-1) != 'E') && (num.charAt(opos-1) != '^')) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '-', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) - parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if ( ((opos = num.indexOf(\"+\")) > 0) && (num.charAt(opos-1) != 'E') && (num.charAt(opos-1) != '^')) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '+', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) + parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if (num.indexOf(\"/\") >= 0) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '/', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) / parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if (num.indexOf(\"*\") >= 0) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '*', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) * parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttempnum = Double.valueOf(num);\r\n\t\t}\r\n\r\n\t\treturn tempnum;\r\n\t}",
"T value();",
"@Override\n\tpublic Type generateIntermediateCode(Function fun) {\n\t\tif(number instanceof Double)\n\t\t\treturn Type.FLOAT;\n\t\telse if (number instanceof Integer)\n\t\t\treturn Type.INT;\n\t\treturn Type.NULL;\n\t\t\t\n\t}",
"public static Value makeAnyStrNumeric() {\n return theStrNumeric;\n }",
"@Override\n public Type arithmetic(Type type, ASTNode node) {\n String errorMsg = \"Type \" + this + \" cannot be used in arithmetic operation with \" + type;\n\n if (type instanceof RealType)\n return RealType.getInstance();\n if (type instanceof IntType)\n return this;\n if (type instanceof CharType)\n return IntType.getInstance();\n if (type instanceof ErrorType)\n return type;\n return new ErrorType(errorMsg, node);\n }",
"public interface DoubleType extends NumericType {\n}",
"abstract String convertEnglishNumber(String number);",
"public static Object translate2singed(Object number, char sign)\n\t\t\tthrows Exception {\n\t\tif (number.toString().equals(\"0\"))\n\t\t\treturn number;\n\t\tif (!isNumeric(number))\n\t\t\tthrow new IllegalArgumentException(\"NaN: \" + number);\n\n\t\tClass numClass = number.getClass();\n\t\tNumber minval = limit(numClass, true);\n\n\t\tif (sign == '+' && minval.toString().equals(number.toString()))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"out of Class limits number*(-1) bigger then MAX_VALUE : \"\n\t\t\t\t\t\t\t+ number);\n\n\t\tif (isIntegral(number)) {\n\t\t\tLong numberL = Long.parseLong(number.toString());\n\t\t\tLong minL = Long.parseLong(limit(numClass, true).toString());\n\t\t\tLong maxL = Long.parseLong(limit(numClass, false).toString());\n\t\t\tif (numberL > maxL || numberL < minL)\n\t\t\t\tthrow new IllegalArgumentException(\"out of Class limits : \"\n\t\t\t\t\t\t+ minL + \", \" + maxL + \", \" + numClass + \", \" + numberL);\n\t\t}\n\t\tif (isFloatingPoint(number)) {\n\t\t\tDouble numberD = Double.parseDouble(number.toString());\n\t\t\tDouble minD = Double.parseDouble(limit(numClass, true).toString());\n\t\t\tDouble maxD = Double.parseDouble(limit(numClass, false).toString());\n\t\t\tif (numberD > maxD || numberD < minD)\n\t\t\t\tthrow new IllegalArgumentException(\"out of Class limits : \"\n\t\t\t\t\t\t+ minD + \", \" + maxD + \", \" + numClass + \", \" + numberD);\n\t\t}\n\n\t\t// integral-Numbers\n\t\tif (isIntegral(number)) {\n\t\t\tLong integralNumber = Long.valueOf(number.toString());\n\t\t\tswitch (sign) {\n\t\t\tcase '+':\n\t\t\t\tnumber = Math.abs(integralNumber);\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\tnumber = -1 * Math.abs(integralNumber);\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tif (new Random().nextBoolean())\n\t\t\t\t\tnumber = -1 * Math.abs(integralNumber);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"unknown sign char: \" + sign);\n\t\t\t}\n\t\t}\n\t\t// floating point\n\t\tif (isFloatingPoint(number)) {\n\t\t\tDouble floatingNumber = Double.valueOf(number.toString());\n\t\t\tswitch (sign) {\n\t\t\tcase '+':\n\t\t\t\tnumber = Math.abs(floatingNumber);\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\tnumber = -1 * Math.abs(floatingNumber);\n\t\t\t\tbreak;\n\t\t\tcase '*':\n\t\t\t\tif (new Random().nextBoolean())\n\t\t\t\t\tnumber = -1 * Math.abs(floatingNumber);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\"unknown sign char: \" + sign);\n\t\t\t}\n\t\t}\n\t\tConstructor construct = numClass.getConstructor(String.class);\n\t\t// System.out.println(\"numClass: \"+numClass);\n\t\t// System.out.println(\"sign: \"+sign);\n\t\t// System.out.println(\"number: \"+number.toString());\n\t\tnumber = construct.newInstance(number.toString());\n\n\t\treturn number;\n\t}",
"public interface Measurable<T> {\r\n\t\r\n\t/**\r\n\t * Returns the value of the this object. For example this could be the \r\n\t * number of miles of a path. For now for more complex type a transformation to long is required\r\n\t * */\r\n\tint measure();\r\n}",
"public interface FloatExceptional<E extends Throwable> extends BaseExceptional<FloatStream, E> {\n FloatStream mapException(ToFloatFunction<E> mapper);\n}",
"public interface NumberDataElement {\r\n \r\n public int getValueI();\r\n public void setValueI(int value);\r\n\r\n public void setValue(int l);\r\n \r\n}",
"public T getValue();",
"public String getString(T value);",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public interface Value extends Formula {\n /**\n * Returns the raw Value.\n */\n public Object getRawValue();\n\n /**\n * Returns true if this value is a double.\n */\n public boolean isDouble();\n\n /**\n * Returns true if this value is a string.\n */\n public boolean isString();\n\n /**\n * Returns true if this value is a boolean.\n */\n public boolean isBoolean();\n\n}",
"@Test\n public void testStringFractionImplInvalidStrings() {\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"9 9 0/2\");\n });\n //Input value which is not a number\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"One\");\n });\n }",
"public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}",
"private void processNumeric() {\n\n Token token = tokens.get(currentTokenPointer);\n\n String tokenString = string(token);\n\n pushIt(new ReplacementTransformer(tokenString));\n\n }",
"public static void substitutionTests()\r\n {\n List<Number> nums = new ArrayList<Number>();\r\n\r\n // Substitution example 2\r\n // 1 is an Integer (autoboxing) and Integer is a subtype of Number.\r\n nums.add(1);\r\n nums.add(2);\r\n nums.add(3.14);\r\n assert nums.toString().compareTo(\"[1 2 3.14]\") == 0;\r\n\r\n // Question: Can a List<Integer> be a subtype of List<Number>?\r\n // no. because List<Number> can be List<Double> and List<Integer> can not be assigned to List<Double>\r\n // The Liskopf substitution princple fails as a double can be added to a list of integers.\r\n\r\n // Question: Can a List<Number> be a subtype of List<Integer>?\r\n // same reason as above, a List<Number> can contain doubles but a List<Double> can not be assigned to List<Integer>\r\n // The Liskof substitution principle fails as a list of doubles can be assigned to a list of integers.\r\n\r\n /// Array Examples.\r\n Number[] numarr = new Number[1];\r\n numarr[0] = 2.14;\r\n // casting allowed but this will cause an exception.\r\n Integer[] intarr = (Integer[])numarr;\r\n }",
"public T sum();",
"public void testObjectToStringScalar() {\n\n assertEquals(\"Boolean->String\", \"false\", LocaleConvertUtils.convert(Boolean.FALSE));\n assertEquals(\"Boolean->String\", \"true\", LocaleConvertUtils.convert(Boolean.TRUE));\n assertEquals(\"Byte->String\", \"123\", LocaleConvertUtils.convert(Byte.valueOf((byte) 123)));\n assertEquals(\"Character->String\", \"a\", LocaleConvertUtils.convert(Character.valueOf('a')));\n assertEquals(\"Double->String\", \"123\" + decimalSeparator + \"4\", LocaleConvertUtils.convert(Double.valueOf(123.4)));\n assertEquals(\"Float->String\", \"123\" + decimalSeparator + \"4\", LocaleConvertUtils.convert(Float.valueOf((float) 123.4)));\n assertEquals(\"Integer->String\", \"123\", LocaleConvertUtils.convert(Integer.valueOf(123)));\n assertEquals(\"Long->String\", \"123\", LocaleConvertUtils.convert(Long.valueOf(123)));\n assertEquals(\"Short->String\", \"123\", LocaleConvertUtils.convert(Short.valueOf((short) 123)));\n assertEquals(\"String->String\", \"abc\", LocaleConvertUtils.convert(\"abc\"));\n assertEquals(\"String->String null\", null, LocaleConvertUtils.convert(null));\n\n }",
"@Test\n\tpublic void testNumberType() throws Exception {\n\t\tassertThat(0, is(0));\n\t}",
"T getNullValue();",
"public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }",
"T convert(S e);"
] | [
"0.5980764",
"0.58572847",
"0.5739635",
"0.572621",
"0.56914324",
"0.5609221",
"0.5526895",
"0.5499116",
"0.5492115",
"0.54484165",
"0.5430645",
"0.5425502",
"0.53767514",
"0.5364003",
"0.53584427",
"0.5340971",
"0.5326827",
"0.5319005",
"0.5316959",
"0.5308412",
"0.529334",
"0.529214",
"0.5290813",
"0.52778137",
"0.52688396",
"0.52477",
"0.5187668",
"0.51722264",
"0.51070786",
"0.50955874",
"0.5075661",
"0.50448567",
"0.5012527",
"0.50076073",
"0.4998715",
"0.49974763",
"0.49907273",
"0.49871814",
"0.4978536",
"0.4974439",
"0.49640113",
"0.496376",
"0.49614453",
"0.4948095",
"0.49463874",
"0.49430218",
"0.49264815",
"0.49127105",
"0.4911553",
"0.49058616",
"0.49058616",
"0.49058616",
"0.49058616",
"0.49058616",
"0.49058616",
"0.4898429",
"0.48962036",
"0.4878099",
"0.48748133",
"0.4869634",
"0.48688087",
"0.48688087",
"0.48688087",
"0.48673162",
"0.48553815",
"0.4827653",
"0.48222673",
"0.48121652",
"0.4795218",
"0.4795218",
"0.47926524",
"0.4792017",
"0.4791102",
"0.47814274",
"0.4778302",
"0.47710705",
"0.47589695",
"0.47554144",
"0.475423",
"0.47524816",
"0.4746965",
"0.47363096",
"0.47324663",
"0.47229674",
"0.4701776",
"0.46972668",
"0.4690208",
"0.46881303",
"0.46710044",
"0.46708128",
"0.4670541",
"0.4664617",
"0.4648665",
"0.46387",
"0.462309",
"0.4621276",
"0.46152663",
"0.46144515",
"0.46001083",
"0.45878133"
] | 0.7111643 | 0 |
Basic arithmetic operation which adds two numbers | public T sum(T first, T second); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double add(int a, int b){\r\n return a + b;\r\n }",
"public int addition(int a, int b){\n return a + b;\n }",
"public int addition(int a, int b){\r\n\t\treturn a+b;\r\n\t}",
"public int addition(int a, int b){\r\n int result = a+b;\r\n return result;\r\n }",
"@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2;\n\t\t\t}",
"public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }",
"BaseNumber add(BaseNumber operand);",
"@Override\n\tpublic double add(double a, double b) {\n\t\treturn (a+b);\n\t}",
"public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"public static int plus(int value1, int value2){\r\n return value1 + value2;\r\n }",
"@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}",
"@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}",
"public static NumberP Addition(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Addition\n ); \t\n }",
"public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}",
"Double add(Double a, Double b);",
"public int addTwoNumbers(int a, int b) {\n return a + b;\n }",
"public static double add(double a, double b){\r\n\t\treturn a+b;\r\n\t}",
"public double add(double num1, double num2) {\n return num1 + num2;\n }",
"public int add(int number1, int number2)\n\t\tthrows CalculatorOperationException;",
"public int add(int a, int b) {\n return a + b;\n }",
"public int add(int a, int b) {\n return a + b;\n }",
"@Override\r\n\tpublic int plus(int x, int y) {\n\t\treturn x + y;\r\n\t}",
"@Override\r\n\tpublic int calculate(int a, int b) {\n\t\treturn (a + b) * 2;\r\n\t}",
"public static double add(int left, int right){\n return left + right;\n }",
"@Override\r\n\tpublic int plus(int left, int right) {\n\t\treturn left + right; \r\n\t\t//return 0;\r\n\t}",
"public static double add(double a, double b)\n\t{\n\t\treturn a + b;\n\t}",
"public int addNum(int a, int b){\n return a+b;\n }",
"public static int add(int a, int b)\n\t{\n\t\treturn a + b;\n\t}",
"public int add(int a, int b) {\n int sum = a+b;\n return sum;\n }",
"public Integer add(Integer a, Integer b) {\n\t\treturn a + b;\n\t}",
"public Integer add();",
"static long add(long a, long b){\n\t\treturn a+b;\n\t}",
"@Override\r\n\tprotected Integer add(Integer x1, Integer x2) {\n\t\treturn x2+x1;\r\n\t}",
"@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic double add() {\r\n\t\tdouble outcome = firstVariable + secondVariable;\r\n\t\treturn outcome;\r\n\t\r\n\t}",
"public void add (double a , int b) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}",
"@Override\n\t\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception {\n\t\t\t\t\t\treturn v1+v2;\n\t\t\t\t\t}",
"public Integer add(Integer first, Integer second){\n return first + second;\n }",
"@Override\r\n\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception {\n\t\t\t\t\treturn v1+v2;\r\n\t\t\t\t}",
"public double add(double x, double y) {\n\t\treturn x+y;\n\t}",
"@Override\n public Float plus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs + rhs;\n\treturn res;\t\n }",
"public int sum(int a, int b) {\n\t\treturn a + b;\n\t}",
"public static int addInt(int a, int b){\r\n\t\treturn a+b;\r\n\t}",
"public void add (int a , int b) {\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}",
"public double addition(double firstNumber, double secondNumber) {\n\t\tdouble returnValue = 0.0;\n\t\treturnValue = firstNumber + secondNumber;\n\t\treturn returnValue;\n\t}",
"@Override\n\tpublic int add(int num1, int num2) throws TException {\n\t\treturn num1+num2;\n\t}",
"@Override\n\tpublic int add(int x, int y) {\n\t\treturn x * y;\n\t}",
"public static int addNums(int a, int b) {\n int result = a + b;\n return(result);\n }",
"static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}",
"private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }",
"@Override\r\n\tpublic int add(int a, int b) {\n\t\tSystem.out.println(a+b);\r\n\t\treturn a+b;\r\n\t}",
"public static double Add(double x, double y) \n\t{\n\t\treturn x + y;\n\t\t\n\t}",
"public void add(double a, double b)\n\t{\n\t\tdouble c = a+b;\n\t\tSystem.out.println(\"Sum of numbers is \"+c);\n\t\t\n\t}",
"int sum(int a, int b) {\n return a + b;\n }",
"static void add() {\r\n\t\t\r\n\t\tint a = 500;\r\n\t\tint b = 300;\r\n\t\t\r\n\t\tint s = a +b;\r\n\t\tSystem.out.println(s);\r\n\t}",
"public void add (int b , double a) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}",
"public static UnitP Addition(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Addition,\n OperationsOther.GetOperationString(first, second, Operations.Addition)\n );\n }",
"public void addition() {\n\t\t x = 5;\n\t\t y = 11;\n\t\t z = 16;\n\t\t System.out.println(\"5 + 11 = \"+z);\n\t}",
"public static int sum(int a, int b) {\n return a + b;\n }",
"public static int suma(int num1, int num2){\r\n\t\treturn num1+num2;\r\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 + num2;\n\t\t}",
"public Integer call(Integer a, Integer b) throws Exception {\n\t\t\t\treturn a+b;\n\t\t\t}",
"int method01(int a, int b) {\n\n\t\ta = a + b;\n\t\treturn a;\n\t}",
"public void add(double a, int b)\n\t{\n\t\tdouble sum = a+b;\t\t\t\t\n\t\tSystem.out.println(\"Sum of numbers is \"+sum);\n\t}",
"public void add( int a, int b) {\n\t\t\n\t\t\n\tint c = a + b;\n\t\t\n\t\t\n\t\tSystem.out.println(c);\n\t}",
"public static int addThem(int x, int y)\n {\n return x + y;\n }",
"public static Digit plus(Digit first, Digit second){\n return Operations.plus(first.copy(), second.copy());\n }",
"public void add() {\r\n\t\tint num1=5,num2=3,sum;\r\n\r\n\t\tsum=num1+num2;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Adding two numbers\" + sum);\r\n\t\r\n\t\t\r\n\t}",
"public double add(double firstNumber, double secondNUmber){\n\t\treturn firstNumber + secondNUmber;\n\t}",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"public static int sum (int a, int b) {\n\t\t\n\t\treturn a + b;\n\t}",
"static void AddThemUP() { //defining a method to add 2 numbers\n int a = 4;\n int b = 5;\n\n System.out.println(\"The numbers add up to \" + (a + b));\n }",
"static int add(int a, int b){\n int carry = 0;\n int result = 0;\n int i;\n for(i=0; a>0||b>0; i++){\n int ba = a&1;\n int bb = b&1;\n result = result|((carry^ba^bb)<<i);\n carry = (ba&bb) | (bb&carry) | (carry&ba);\n a = a>>1;\n b = b>>1;\n }\n return result|(carry<<i);\n }",
"void addition(int num1, int num2){\n System.out.println(\"Addition \"+(num1+num2));\n }",
"public static int sum(int a,int b) {\n\t\tint c = a + b;\n\t\treturn c;\n\t}",
"void add(double a, double b) {\n\t\tdouble sum = a + b;\n\t\tSystem.out.println(\"Sum of a+b is \" + sum);\n\t}",
"static int sum(int value1, int value2) {\n return value1 + value2;\n }",
"static int sum(int a, int b) {\n return a+b;\r\n }",
"@Override\n\tpublic int arithmetical(int first, int second) {\n\t\treturn first - second;\n\t}",
"public static double sum(double a, double b) {\n return a + b;\n }",
"private void addTwoNumbers() {\n\t\t\n\t}",
"@Override\n public long addlong(long o1, long o2) {\n return o1 + o2;\n }",
"static double add(double a, double b){\nreturn a+b;\n}",
"public void add(int a, int b) {\n\n\t\tint sum = a + b;\n\t\tSystem.out.println(\"Sum = \" + sum);\n\n\t}",
"void add(int i, int j) {\r\n\t\tnum1 = i;\r\n\t\tnum2 = j;\r\n\t\tresult = i+j;\r\n\t\t}",
"void add(int a, int b) {\n\n\t\tint sum = a + b;\n\t\tSystem.out.println(\"Sum of a+b is \" + sum);\n\n\t}",
"void add(int a,int b){\r\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum =\"+c);\r\n\t}",
"void SumOfTwoNumbers()\n\t{\n\tSystem.out.println(\"sum is\"+(a+b));\n\t}",
"public static BinaryExpression add(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public static double sum() {\n System.out.println(\"Enter augend\");\n double a = getNumber();\n System.out.println(\"Enter addend\");\n double b = getNumber();\n\n return a + b;\n }",
"public void add(int add) {\r\n value += add;\r\n }",
"public static int suma (int x, int y){\n int s=x+y;\n return s;\n }",
"Point add (double x, double y, Point result);",
"public int operation(int number1,int number2,String operator)",
"public static int Sum(int a, int b)\r\n\t{\n\tint sum=a+b;\r\n\treturn sum;\r\n\t}",
"static int calculate(int a, int b, String op) {\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n case \"/\":\n return a / b;\n default:\n break;\n }\n return 0;\n }",
"void add(double val) {\r\n\t\tresult = result + val;\r\n\t}",
"public int sum(int x, int y) {\r\n\t\treturn (x+y);\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tMath.plus(5, 10);\r\n\t\tMath.plus(2.2, 3.4);\r\n\t\t\r\n\t\t/*\r\n\t\tMath myMath = new Math();\r\n\t\t\r\n\t\tint sum01 = myMath.plus(3,4);\r\n\t\tSystem.out.println(sum01);\r\n\t\t\r\n\t\tdouble sum02 =myMath.plus(2.3,3.2);\r\n\t\tSystem.out.println(sum02);\r\n\t\t*/\r\n\t}",
"void add(double p1, double p2){\n this.p1 += p1;\n this.p2 += p2;\n }"
] | [
"0.79781467",
"0.7878169",
"0.7754443",
"0.77067393",
"0.77007633",
"0.7662663",
"0.76366174",
"0.76041305",
"0.7594532",
"0.75146776",
"0.7513567",
"0.7509922",
"0.74905765",
"0.7460829",
"0.745232",
"0.7449809",
"0.74285805",
"0.74011153",
"0.73925674",
"0.7372414",
"0.7372414",
"0.73716486",
"0.73541355",
"0.7339291",
"0.73059744",
"0.7302617",
"0.7295654",
"0.7274308",
"0.7270767",
"0.7221615",
"0.72033376",
"0.71756107",
"0.7162246",
"0.71609646",
"0.7144076",
"0.71396995",
"0.71379936",
"0.7132065",
"0.7098768",
"0.7066537",
"0.70637244",
"0.70595926",
"0.70551026",
"0.7047242",
"0.7046884",
"0.70352817",
"0.70085764",
"0.69795376",
"0.6960944",
"0.69484544",
"0.69411206",
"0.6939978",
"0.6922512",
"0.69176376",
"0.68986696",
"0.68973714",
"0.68888944",
"0.6887809",
"0.6878646",
"0.6873323",
"0.6859977",
"0.6855086",
"0.68508005",
"0.6849741",
"0.6849289",
"0.6848581",
"0.68401456",
"0.68335843",
"0.68303406",
"0.68293226",
"0.68254197",
"0.6821558",
"0.68156374",
"0.6811798",
"0.6811243",
"0.6805117",
"0.67950976",
"0.67879546",
"0.67714405",
"0.6770471",
"0.67656344",
"0.6739436",
"0.67269796",
"0.67249537",
"0.6719367",
"0.67017055",
"0.6700581",
"0.66987693",
"0.6693828",
"0.66834754",
"0.6663841",
"0.6663841",
"0.664841",
"0.6643985",
"0.66416585",
"0.6623289",
"0.6613479",
"0.66053414",
"0.66032803",
"0.66016"
] | 0.6908888 | 54 |
Basic arithmetic operation which subtracts two numbers | public T sub(T first, T second); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BaseNumber subtract(BaseNumber operand);",
"int subtraction(int a, int b) {\n return a-b;\r\n }",
"default int subtract(int num1, int num2) {\n\t\treturn num1-num2;\n\t}",
"public int subtraction(int a, int b){\n return a - b;\n }",
"public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public int subtract(int number1, int number2)\n\t\tthrows CalculatorOperationException;",
"public static int minus(int value1, int value2){\r\n return value1 - value2;\r\n }",
"@Override\n\tpublic double substract(double a, double b) {\n\t\treturn (a-b);\n\t}",
"@Override\r\n\tpublic int sub(int a,int b) {\n\t\treturn a-b;\r\n\t}",
"public static double subtract(int left, int right){\n return left - right;\n }",
"public static int subtractTwoNumbers(int num1, int num2){\n int subtraction = num1 - num2;\n return subtraction;\n }",
"void minus(int a, int b){\n\t\tSystem.out.println(\"Method-3 (2 different Data Types) Minus is: \" + (a-b));\n\t}",
"@Override\r\n\tprotected double operate(double d1, double d2) {\n\t\tSystem.out.println(\"减法求值\");\r\n\t\treturn d1-d2;\r\n\t}",
"public void subtract() {\n\t\t\n\t}",
"public void substract(int sub) {\r\n value -= sub;\r\n }",
"public static double sub(double a, double b){\r\n\t\treturn a-b;\r\n\t}",
"public static String subtract(String num1, String num2) {\n\t\t// *** WRITE YOUR CODE HERE ***\n\t}",
"@Override\n\tpublic float subtrair(float op1, float op2) {\n\t\treturn op1 - op2;\n\t}",
"@Override\n public Float minus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs - rhs;\n\treturn res;\n }",
"public static NumberP Subtraction(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Subtraction\n ); \t\n }",
"public int soustraire(int a, int b){\r\n\t\treturn a-b;\r\n\t}",
"void minus(int a) {\n this.result -= a; // 이렇게 result 변수가 있는 인스턴스의 주소를 사용하여 계산을 수행한다.\n }",
"public static Digit minus(Digit first, Digit second){\n return Operations.minus(first.copy(), second.copy());\n }",
"@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a-b;\r\n\t}",
"public double subtract(double firstNumber, double secondNUmber){\n\t\treturn firstNumber - secondNUmber;\n\t}",
"@Override\n\tpublic int arithmetical(int first, int second) {\n\t\treturn first - second;\n\t}",
"public Inatnum subtract(Inatnum a){//purpose: to subtract 2 values\n\t\ttry {return(this.pred().subtract(a).pred());}//take the previous value of this and the previous value of a until one of them hits zero and then return the other value\n\t\tcatch(Exception e) {System.out.println(\"Error add: \"+ e.getMessage());// otherwise return an error, this needs to be greater than or equal to a otherise we'd get a negative\n\t\t\t\t \t\t\t\t\t\t\t// and there are no negative natural numbers\n\t\treturn null;}\n\t\t\t}",
"public double resta(double a, double b) {\n\t\treturn a-b;\n\t}",
"private void subtraction()\n\t{\n\t\tFun = Function.SUBTRACT; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"@Override\n\tpublic int sub(int val1, int val2) {\n\t\treturn val1 - val2;\n\t}",
"public void sub(int x, int y) {\r\n\t\tint diff = x - y;\r\n\t\tSystem.out.println(\"Subtracting\tIntegers: \" + diff);\r\n\t}",
"public BigInt minus(BigInt rhs) throws BigIntException {\n if (null == rhs) {\n throw new BigIntException(\"null parameter\");\n }\n\n if (!isPositive && rhs.isPositive) {\n // -x-y=-(x+y)\n BigInt num1 = new BigInt(number, true);\n BigInt num2 = new BigInt(rhs.number, true);\n\n BigInt result = num1.plus(num2);\n result.swapSign();\n\n return result;\n } else if (!isPositive && !rhs.isPositive) {\n // -x-(-y)=y-x\n BigInt num1 = new BigInt(number, true);\n BigInt num2 = new BigInt(rhs.number, true);\n\n return num2.minus(num1);\n } else if (isPositive && !rhs.isPositive) {\n // x-(-y)=x+y\n return plus(new BigInt(rhs.number, true));\n }\n\n // x-y\n int length = Math.max(number.size(), rhs.number.size());\n\n // Set the bigger and the smaller number\n ArrayList<Integer> bigger, smaller;\n boolean isDiffPositive = isGreater(rhs);\n if (isDiffPositive) {\n // this is greater\n bigger = new ArrayList<Integer>(number);\n smaller = new ArrayList<Integer>(rhs.number);\n } else {\n // rhs is greater\n bigger = new ArrayList<Integer>(rhs.number);\n smaller = new ArrayList<Integer>(number);\n }\n\n ArrayList<Integer> diff = new ArrayList<Integer>();\n int digit_diff = 0;\n for (int i = 0; i < length; ++i) {\n int subtracting_current_digit = getDigit(bigger, i);\n int subtracted_current_digit = getDigit(smaller, i);\n\n digit_diff = subtracting_current_digit - subtracted_current_digit;\n if (0 > digit_diff) {\n // The subtracted is bigger so we need to borrow\n borrow(bigger, i);\n digit_diff += 10;\n }\n\n diff.add(digit_diff);\n }\n\n return new BigInt(diff, isDiffPositive);\n }",
"public static int p_sub(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to subtract:\");\n int v_sub_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to subtract:\");\n int v_sub_number_2 = keyboard.nextInt();\n int v_total_sub= v_sub_number_1-v_sub_number_2;\n return v_total_sub;\n }",
"public static double Sub(double x, double y) \n\t{\n\t\treturn x - y;\n\t}",
"void sub(double val) {\r\n\t\tresult = result - val;\r\n\t}",
"@Test\n\tpublic void testSubtraction() {\n\t assertEquals(\"16 - 7 must be 9\", 9, this.tester.subTwoNumbers(16, 7));\n\t }",
"public static BinaryExpression subtract(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Subtract, expression0, expression1);\n }",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 - num2;\n\t\t}",
"public void subtract (int value) {\r\n\t\ttotal = total - value;\r\n\t\thistory = history + \" - \" + value;\r\n\t}",
"static int subs(int firstnumber, int secondnumber) {\n return (firstnumber - secondnumber);\n\n }",
"public static int subtractionOfTwoNumbers(int no1, int no2) {\n\t\t\n\t\tint result = no1 - no2;\n\t\tSystem.out.println(\"Subtraction of two numbers: \" + result);\n\t\t\n\t\treturn result;\n\t\t\t\t\n\t}",
"private int calculamenos(String a, String b) {\n int res=0;\n res= Integer.valueOf(a) - Integer.valueOf(b);\n return res;\n \n }",
"public static BIGNUM subtract(BIGNUM bn1, BIGNUM bn2) {\n\t\tBIGNUM newbn = new BIGNUM(-bn2.NUM, bn2.E);\n\t\treturn add(bn1, newbn);\n\t}",
"public void subtract(int value) {\n m_value -= value;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tint a,b,c;\r\n\t\ta=10;b=20;\r\n\t\t c=a-(-b);\r\n\t\t System.out.println(\"Addition: \"+c);\r\n\t\t\t\t \r\n\r\n\t}",
"public int subwith2Para(int a, int b) {\r\n\t\tint result = a - b;\r\n\t\treturn result;\r\n\t}",
"public void subtract (int value) {\n\t\ttotal = total - value;\n\n\t\thistory = history + \" - \" + value;\n\t\t\n\t}",
"public void testMinus() {\n \tMeasurement a = new Measurement(2,6);\n \tMeasurement b = new Measurement(1,5);\n \tMeasurement c = a.minus(b);\n \t\n assertTrue(a.getFeet() == 2);\n assertTrue(a.getInches() == 6);\n assertTrue(b.getFeet() == 1);\n assertTrue(b.getInches() == 5);\n \n assertTrue(c.getFeet() == 1);\n assertTrue(c.getInches() == 1);\n }",
"@Test(priority=2)\n\n\tpublic void subtractionTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.subtraction();\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20+10);\n\t}",
"public void substract1() {\r\n value--;\r\n }",
"public static double diff() {\n System.out.println(\"Enter minuend\");\n double a = getNumber();\n System.out.println(\"Enter subtrahend\");\n double b = getNumber();\n\n return a - b;\n }",
"public static BinaryExpression subtract(Expression expression0, Expression expression1, Method method) {\n return makeBinary(\n ExpressionType.Subtract,\n expression0,\n expression1,\n shouldLift(expression0, expression1, method),\n method);\n }",
"@Override\r\n\tpublic int subNo(int a, int b) {\n\t\treturn a-b;\r\n\t}",
"public T subtract(T measure);",
"public int resta(){\r\n return x-y;\r\n }",
"public static <T extends Vector> T Substract(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - b.axis[i];\n }\n return result;\n }\n return result;\n }",
"public void testMinus() {\r\n System.out.println(\"Minus\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E300, -1.1E300}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E300, 1.1E300}, \r\n {0., -5., -1., 0., 0., 4., 0.4, -0.2, 0., -2.2E300}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Minus(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"@Test\n\tpublic void testSubtraction() {\n\t\tint tmpRndVal = 0;\n\t\tint tmpRndVal2 = 0;\n\t\tint tmpResult = 0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = RandomNegativeNumbers();\n\t\t\ttmpRndVal2 = RandomNegativeNumbers();\n\t\t\ttmpResult = tmpRndVal - tmpRndVal2;\n\t\t\tassertEquals(bc.subtraction(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = RandomPositiveNumbers();\n\t\t\ttmpRndVal2 = RandomPositiveNumbers();\n\t\t\ttmpResult = tmpRndVal - tmpRndVal2;\n\t\t\tassertEquals(bc.subtraction(tmpRndVal, tmpRndVal2), tmpResult);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tint zero = 0;\n\t\tint tmpVal = 7;\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tassertTrue( ((bc.subtraction(tmpVal, zero) == zero) \n\t\t\t\t\t|| (bc.subtraction(zero, zero) == zero)\n\t\t\t\t\t|| (bc.subtraction(zero, tmpVal) == zero) ));\n\t\t}\n\t\t\n\t}",
"public HugeUInt subtract(HugeUInt arg) {\r\n //We only subtract smaller numbers\r\n HugeUInt result = new HugeUInt(this);\r\n int cur = 0;\r\n for (int i = 0; i < arg.getSize(); i++) {\r\n cur = cur + 10 + result.array[i] - arg.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n for (int i = arg.getSize(); i < getSize(); i++) {\r\n cur = cur + 10 + result.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n result.trim();\r\n return result;\r\n }",
"public static void subtract(int[] n1, int[] n2, int[] result, int[]sign) {\n\t\tint b = n1.length-1;\n\t\tint carry = 0;\n\t\t\n\t\tboolean smaller = (compareTo(n2, n1) < 0);\n//\t\t// confirm that n2 is smaller than n1. If so, we reverse. Assume that\n//\t\t// n2 is smaller.\n//\t\tboolean smaller = true;\n//\t\tfor (int i = 0; i < n1.length; i++) {\n//\t\t\tif (n2[i] == n1[i]) { \n//\t\t\t\tcontinue;\n//\t\t\t}\n//\n//\t\t\t// Must be able to report by now...\n//\t\t\tif (n2[i] > n1[i]) {\n//\t\t\t\tsmaller = false;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t\twhile (b >= 0) {\n\t\t\t\n\t\t\tint s = n1[b] - n2[b];\n\t\t\tif (!smaller) { s = -s; }\n\t\t\ts += carry;\n\t\t\tif (s >= 0) {\n\t\t\t\tresult[b] = s;\n\t\t\t\tcarry = 0;\n\t\t\t} else {\n\t\t\t\tcarry = -1;\n\t\t\t\tresult[b] = s + 10;\n\t\t\t}\n\t\t\t\n\t\t\tb--;\n\t\t}\n\t\t\n\t\tif (!smaller) {\n\t\t\tsign[0] = -1;\n\t\t} else {\n\t\t\tsign[0] = carry+0;\n\t\t}\n\t}",
"@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }",
"public Integer substractNumbers(List<Integer> numbers) throws Exception;",
"public static UnaryExpression decrement(Expression expression) { throw Extensions.todo(); }",
"public static double Subtract(double _a,double _b){\n\t\tBigDecimal a=new BigDecimal(Double.toString(_a));\n\t\tBigDecimal b=new BigDecimal(Double.toString(_b));\t\n\t\treturn a.subtract(b).doubleValue();\n\t}",
"public T minus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n T ret = A.createLike();\n\n A.ops.minus(A.mat, B.mat, ret.mat);\n return ret;\n }",
"@Test\n\tpublic void testUnaryMinusExpression() throws BcException, IOException {\n\t\tString[] params = { \"5/-1*-2\" };\n\t\tbcApp.run(params, inStream, outStream);\n\t\tassertEquals(\"10\", outStream.toString());\n\n\t}",
"public static Object subtract(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).subtract((BigDecimal) val2);\n\t\t} else if (isFloat(val1) && isInt(val2)) {\n\t\t\treturn ((BigDecimal) val1).subtract(new BigDecimal(\n\t\t\t\t\t(BigInteger) val2));\n\t\t} else if (isInt(val1) && isFloat(val2)) {\n\t\t\treturn new BigDecimal((BigInteger) val1)\n\t\t\t\t\t.subtract((BigDecimal) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).subtract((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in subtract\");\n\t}",
"@WebMethod(operationName = \"Resta\")\n public Integer Resta(@WebParam(name = \"num1\") Integer num1, @WebParam(name = \"num2\") Integer num2) {\n return num1-num2;\n }",
"public int pgcdBySubstract(int a, int b) throws Exception {\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int difference = Math.abs(a-b);\n if(difference == 0)\n return a;\n if(a > b){\n a = difference;\n }else b = difference;\n return pgcdBySubstract(a,b);\n }",
"public Vector<T> subtract(T aScalar);",
"public static double diff(double a, double b) {\n return a - b;\n }",
"public <V extends Number> FluentExp<V> minus (SQLExpression<V> expr)\n {\n return new Sub<V>(this, expr);\n }",
"public static void main(String[] args) {\n Money r1 = new Money(10, 0);\n Money r2 = new Money(2, 0);\n Money r3 = r1.minus(r2);\n r3.cents();\n System.out.println(r3.cents());\n }",
"public static BinaryExpression subtractAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.SubtractAssign, expression0, expression1);\n }",
"private static int[] subtract(int[] big, int[] little) {\n int bigIndex = big.length;\n int result[] = new int[bigIndex];\n int littleIndex = little.length;\n long difference = 0;\n\n // Subtract common parts of both numbers\n while (littleIndex > 0) {\n difference = (big[--bigIndex] & LONG_MASK) -\n (little[--littleIndex] & LONG_MASK) +\n (difference >> 32);\n result[bigIndex] = (int)difference;\n }\n\n // Subtract remainder of longer number while borrow propagates\n boolean borrow = (difference >> 32 != 0);\n while (bigIndex > 0 && borrow)\n borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1);\n\n // Copy remainder of longer number\n while (bigIndex > 0)\n result[--bigIndex] = big[bigIndex];\n\n return result;\n }",
"public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }",
"@Override\n\tpublic void calculating() {\n\t\tresult=leftVal-rightVal;\n\t\t\n\t}",
"public final void minus (Unit unit) throws ArithmeticException {\n\t\tboolean error = false;\n\t\tif (((mksa|unit.mksa)&_abs)!=0) {\t// Special dates\n\t\t\tif (mksa == unit.mksa)\t\t// date1 - date2\n\t\t\t\tmksa ^= _abs;\t\t\t// ... not a date any more\n\t\t\telse if ((unit.mksa&_abs)!=0) error = true;\n\t\t}\n\t\telse error = (mksa&(~_pic)) != (unit.mksa&(~_pic));\n\t\tif (error) throw new ArithmeticException\n\t\t(\"****Unit: can't combine: \" + symbol + \" - \" + unit.symbol);\n\t\tvalue -= (unit.value*unit.factor)/factor;\n\t}",
"public Fraction subtract(Fraction subtrahend)\n {\n int newDenominator = (this.getDenominator() * subtrahend.getDenominator());\n int convertedNumerator1 = (this.getNumerator() * subtrahend.getDenominator());\n int convertedNumerator2 = (subtrahend.getNumerator() * this.getDenominator());\n int newNumerator = convertedNumerator1 - convertedNumerator2;\n \n Fraction newFraction =new Fraction(newNumerator, newDenominator);\n return newFraction;\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(op.equals(\"-\")) {\r\n\t\t\t\t\tva2 = Integer.parseInt(text.getText());\r\n\t\t\t\t\tresult = va1 - va2;\r\n\t\t\t\t\ttext.setText(String.valueOf(result));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}",
"public Percentage minus(Percentage other) {\n return new Percentage(amount.minus(other.amount));\n }",
"public static UnitP Subtraction(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Subtraction,\n OperationsOther.GetOperationString(first, second, Operations.Subtraction)\n );\n }",
"public vec3 minus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public static Rational subtract(Rational num1, Rational num2){\r\n Rational difference = new Rational();\r\n \r\n // subtract common denominator\r\n difference.denominator = num1.getDenominator() * num2.getDenominator();\r\n difference.numerator = (num1.getNumerator() * num2.getDenominator()) -\r\n (num2.getNumerator() * num1.getDenominator());\r\n \r\n difference.reduce();\r\n return difference;\r\n }",
"@Override\n public InterpreterValue sub(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the subtraction-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() - ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the subtraction-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() - ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '-' is not defined for type double and \" + v.getName());\n\n }",
"public vec3 minus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.sub(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public static Currency Subtract(Currency op1, Currency op2) throws CurrencyException {\r\n\t\tif(!op1.getType().equals(op2.getType()))\r\n\t\t\tthrow new CurrencyException(\"Subtraction: different currency types!\");\r\n\t\t\r\n\t\tCurrency result = new Currency(op1.getType());\r\n\r\n\t\treturn result.setValue(op1.getValue()-op2.getValue());\t\r\n\t}",
"public void subtractNumbers (View view) {\n errorTrap();\n double difference = Double.parseDouble(num1.getText().toString()) + Double.parseDouble(num1.getText().toString());\n result.setText(\"DIFFERENCE: \"+difference);\n }",
"public void sub(vec3 a, vec3 b) {\r\n\t\tx = a.x - b.x;\r\n\t\ty = a.y - b.y;\r\n\t\tz = a.z - b.z;\r\n\t}",
"@Override\n\tpublic void calc() {\n\t\tcalculated = true;\n\t\tanswer=operand1-operand2;\n\t}",
"public int subtraction(int num1, int num2, int clientNo) {\n\t\ttry {\n\t\t\t// append details of request coming in\n\t\t\tserverDisplay.append(\"\\nRequest Coming in...\");\n\t\t\t// the client number and IP address\n\t\t\tserverDisplay.append(\"\\nClient: \" + clientNo + \" connected at IP: \" + InetAddress.getLocalHost().getHostAddress());\n\t\t\t// client instance number\n\t\t\tserverDisplay.append(\"\\nRequest from Client: \" + clientNo);\n\t\t\t// number 1 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 1: \" + num1);\n\t\t\t// number 2 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 2: \" + num2);\n\t\t\t// the chosen operator\n\t\t\tserverDisplay.append(\"\\nOperator: -\");\n\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// append calculating\n\t\tserverDisplay.append(\"\\nCalculating...\");\n\t\t// append what the result is\n\t\tserverDisplay.append(\"\\nData to Client \" + clientNo + \": \" + (num1 - num2));\n\t\t// display answer\n\t\tserverDisplay.append(\"\\nAnswer :\" + (num1 - num2));\n\t\t// append sending back to the client\n\t\tserverDisplay.append(\"\\nSending result back to the client...\");\n\t\tserverDisplay.append(\"\\n================================================\");\n\t\t// return the two numbers subtracted\n\t\treturn (num1 - num2);\n\t}",
"public static SinglyLinkedList<Poly> subtraction(SinglyLinkedList.Entry<Poly> list1,\n\t\t\tSinglyLinkedList.Entry<Poly> list2) {\n\t\tSinglyLinkedList<Poly> list3 = new SinglyLinkedList();\n\t\twhile (list2 != null) {\n\t\t\tPoly p = list2.element;\n\t\t\tp.num = p.num * -1;\n\t\t\tlist3.add(p);\n\t\t\tlist2 = list2.next;\n\t\t}\n\t\treturn addition(list1, list3.head.next);\n\t}",
"private void minus() throws Exception{\n\t\tif(!(stackBiggerThanTwo())) throw new Exception(\"Stack hat zu wenig einträge mindestens 2 werden gebraucht!!\");\n\t\telse{\n\t\t\tvalue1=stack.pop();\n\t\t\tvalue2=stack.pop();\n\t\t\tstack.push(value2-value1);\n\t\t}\n\t}",
"static int calculate(int a, int b, String op) {\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n case \"/\":\n return a / b;\n default:\n break;\n }\n return 0;\n }",
"public Vector subtract(Vector other) {\n\t\treturn new Vector(x - other.x, y - other.y);\n\t}",
"public Vector2f subtract (Vector2f other, Vector2f result)\n {\n return add(-other.x, -other.y, result);\n }",
"public T minus( double b ) {\n T ret = createLike();\n ops.minus(mat, b, ret.mat);\n return ret;\n }",
"public void\n\tsub( Vector3 other )\n\t{\n\t\tdata[0] -= other.data[0];\n\t\tdata[1] -= other.data[1];\n\t\tdata[2] -= other.data[2];\n\t}",
"public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}"
] | [
"0.81330514",
"0.8042247",
"0.80332905",
"0.7960357",
"0.778006",
"0.76973987",
"0.7576107",
"0.75745183",
"0.752365",
"0.7514533",
"0.745266",
"0.73802483",
"0.73567694",
"0.7325207",
"0.7324352",
"0.732125",
"0.7319405",
"0.7313149",
"0.7260739",
"0.7130314",
"0.70995146",
"0.708387",
"0.70662266",
"0.7003356",
"0.69774204",
"0.697535",
"0.6951932",
"0.6944873",
"0.6941632",
"0.69224375",
"0.69182616",
"0.68844265",
"0.6882586",
"0.6832839",
"0.6802274",
"0.6783294",
"0.6774924",
"0.6751213",
"0.6736082",
"0.67049843",
"0.6702971",
"0.66931844",
"0.6669963",
"0.6663772",
"0.66472477",
"0.6625804",
"0.6606442",
"0.6587561",
"0.65578544",
"0.6517088",
"0.6510975",
"0.65094835",
"0.65011424",
"0.64884454",
"0.64759064",
"0.6460337",
"0.6431541",
"0.6426097",
"0.64208513",
"0.6391564",
"0.63752866",
"0.63651323",
"0.63092226",
"0.6302688",
"0.629409",
"0.6288755",
"0.62690175",
"0.6236293",
"0.6210025",
"0.62097865",
"0.61883664",
"0.6181135",
"0.616044",
"0.61521107",
"0.61456895",
"0.6123671",
"0.6117574",
"0.61100924",
"0.6106748",
"0.61048996",
"0.6104754",
"0.61030674",
"0.60954356",
"0.60856426",
"0.608289",
"0.60827166",
"0.60761875",
"0.6074858",
"0.6072815",
"0.60593283",
"0.6044315",
"0.6032615",
"0.6017359",
"0.60153407",
"0.60144645",
"0.6014094",
"0.6011382",
"0.60062146",
"0.6004141",
"0.60009044",
"0.59837675"
] | 0.0 | -1 |
Basic arithmetic operation which multiplies two numbers | public T mul(T first, T second); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}",
"int multiply (int a, int b) {\n\t\t//let me do it in one step\n\t\treturn a * b; \n\t\t\n\t\t\n\t}",
"abstract int multiplication(int num1, int num2);",
"BaseNumber multiply(BaseNumber operand);",
"public static int mul(int value1, int value2){\r\n return value1 * value2;\r\n }",
"public int multiplication(int a, int b) {\n return a * b;\n }",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"public void multiply() {\n\t\t\n\t}",
"@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}",
"public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"private void mul() {\n\n\t}",
"public int multiply(int a, int b) {\r\n\t\treturn a*b;\r\n\t}",
"public static NumberP Multiplication(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Multiplication\n ); \t\n }",
"public static double mul(double a, double b){\r\n\t\treturn a*b;\r\n\t}",
"public int multiply(int number1, int number2)\n\t\tthrows CalculatorOperationException;",
"public int multiply(int a,int b) throws RemoteException;",
"public int mult()\r\n\t{\r\n\t\tint a=10;\r\n\t\tint b=20;\r\n\t\tint c = a*b;\r\n\t\treturn(c);\r\n\t}",
"public void multiply(Object mulValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, mulValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() * getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() * getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}",
"void mult(int a, int b) {\n\t\tSystem.out.println(\"Addition \"+(a*b));\n}",
"@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public int multiplicationFunction(int a, int b) {\n return a*b;\n }",
"public static double multiply(int left, int right){\n return left * right;\n }",
"@Override\r\n\tpublic int mulNo(int a, int b) {\n\t\treturn a*b;\r\n\t}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"void multiply(double value);",
"static Integer mul(final Integer a, final Integer b) {\n\t\tif (a > b) {\n\t\t\treturn doMul(a, b, null);\n\t\t} else {\n\t\t\treturn doMul(b, a, null);\n\t\t}\n\t}",
"public static double multi() {\n System.out.println(\"Enter multiplier\");\n double a = getNumber();\n System.out.println(\"Enter multiplicand\");\n double b = getNumber();\n\n return a * b;\n }",
"public static UnitP Multiplication(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication,\n OperationsOther.GetOperationString(first, second, Operations.Multiplication) \n );\n }",
"@Override\n\tpublic int mult(int val1, int val2) {\n\t\treturn val1 * val2;\n\t}",
"public static double multi(double a, double b) {\n return a * b;\n }",
"@Override\npublic void mul(int a, int b) {\n\t\n}",
"Multiply createMultiply();",
"@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}",
"public static int Multiplication(int a,int b){\n\tint result=a*b;\n\treturn result;\n}",
"void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}",
"public double multiplica(double a, double b) {\n\t\treturn a*b;\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}",
"private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"@Override\r\n\tpublic int multi(int x, int y) {\n\t\treturn x * y;\r\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 Digit multiply(Digit first, Digit second){\n Digit result = Digit.Zero();\n Digit multiplier = second.copy();\n\n while(!multiplier.isZero()){\n result = Operations.plus(result, first.copy());\n multiplier = multiplier.previous();\n }\n return result;\n }",
"@Override\n\tpublic long multi(int num1, int num2) throws TException {\n\t\treturn Long.valueOf(num1 * num2); \n\t}",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"public double multiply(double x, double y) {\n\t\treturn x * y;\n\t}",
"public void multiply(double multiplier) {\n x *= multiplier;\n y *= multiplier;\n }",
"public double multiply(double firstNumber, double secondNUmber){\n\t\treturn firstNumber * secondNUmber;\n\t}",
"public int multiply(int x, int y) {\n int n1 = x; //n1 = c_n * 2^n + c_n-1 * 2^n-1 + ... + c_1 * 2 + c_0 * 1 where c_i = {0, 1} \n int n2 = y; //n2 = c_m * 2^m + c_m-1 * 2^m-1 + ... + c_1 * 2 + c_0 * 1 where c_i ] {0, 1}\n int sum = 0; //named sum b/c represent the product of n1 and n2 as the sum of their constituent parts\n /*\n let n1 be rep as in its binary form (***...***) a bit string\n n1*n2 = (***...***)(c_m * 2^m + ... + c_0 * 1)\n = (***...***)(c_0 * 1) + (***...***)(c_1 * 2) + ... + (***...***)(c_m * 2^m)\n since << has the effect of multiplying a number by 2, can rep as\n = (***...***)(c_0 * 1) + (***...***)(c_1 * 1) << 1 + (***...***)(c_2 * 1) << 2 + ... + (***...***)(c_m * 1) << m\n so for each loop through a loop left shift n1 by one to simulate multiplying the next term by 2\n also right shift n2 to find c_i, the value of the bit in the bit string n2\n */\n while (n2 != 0) { // if n2 == 0 run through the length of n2 and nothing left to do\n if ((n2 & 1) == 0) { //find the last bit of n2; if it is 0 then do nothing because the n1 term will be multiplied by 0\n } else {//else it is 1 so add n1 to the sum\n sum = add(sum, n1); //bitwise addition has already been defined (implemented)\n }\n n1 = n1 << 1; //leftshift n1 to mult by 2; see above comments\n n2 = n2 >>> 1; //rightshift n2 to find value of next bit in bit string\n }\n return sum;\n }",
"public double Multiply(double x, double y){\n\t\treturn x*y;\n\t}",
"private static native double mul(int n);",
"public int Multiply(int x, int y){\n\t\treturn x*y;\n\t}",
"public static int multiply(int number1, int number2){\n\t\tint result = 0;\n\t\twhile(number2 != 0) {\n\t\t\t\n\t\t\tresult += number1;\t\t//it's okay if number1 <0; negative+negative = negative\n\t\t\tif (number2 < 0){\n\t\t\t\tnumber2 = number2 +1; \n\t\t\t}else{\n\t\t\t\tnumber2 = number2 +negate(1); \n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static UnitP Multiplication(UnitP first, double second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication, \n OperationsOther.GetOperationString(first, second, Operations.Multiplication)\n );\n }",
"public static UnitP Multiplication(double first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication,\n OperationsOther.GetOperationString(first, second, Operations.Multiplication)\n );\n }",
"public static Rational multiply(Rational num1, Rational num2){\r\n Rational product = new Rational();\r\n \r\n // multiply throughout\r\n product.denominator = num1.getDenominator() * num2.getDenominator();\r\n product.numerator = num1.getNumerator() * num2.getNumerator();\r\n \r\n product.reduce();\r\n return product;\r\n }",
"@Test(priority=3)\n\n\tpublic void multiplicationTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.multiplication();;\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20*10);\n\t}",
"@Override\n public Float mul(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs*rhs;\n\treturn res;\n }",
"public String multiply()\r\n {\r\n\r\n return First.multiply(Second).stripTrailingZeros().toString();\r\n }",
"public void testMultiply() {\r\n System.out.println(\"Multiply\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E100, 1.1E100}, \r\n {9., -6.25, 0., 0., 1., -4., 10.2, 12.95, 1.21E200, -1.21E200}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Multiply(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }",
"public int mul(int i,int j){\n\t\treturn i*j;\n\t}",
"public int multi(Integer x, Integer y) {\n\t\treturn x*y;\n\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"public static int multiply(int lafoot,int lapaki){\n\treturn 0;\n}",
"public double getProduct()\n {\n return first * second;\n }",
"public void mul()\n\t{\n\t\t\n\t\tSystem.out.println(\"Hey I am in base class********** and addition is 2500\");\n\t}",
"Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"static int incBy1AndMul(int x, int y)\r\n\t{\r\n\t\treturn Math.multiplyExact((x+1), y);\r\n\t}",
"public static BIGNUM multiply(BIGNUM bn1, BIGNUM bn2) {\n\t\tdouble multiply = bn1.NUM * bn2.NUM;\n\t\tdouble newE = bn1.E + bn2.E;\n\t\t//System.out.println(\"multiply function: \" + multiply + \"\\t\" + newE);\n\t\tBIGNUM result = new BIGNUM(multiply, newE);\n\t\treturn result;\n\t}",
"public int mul(int i, int j) {\n\t\treturn i*j;\r\n\t}",
"Sum getMultiplier();",
"abstract void mulS();",
"int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }",
"public double multiply(Coordinate other) {\n return _coord * other._coord;\n }",
"public static int doMath(int num1, int num2){\n return num1 * num2;\n }",
"@Override\n\tpublic void mul(double dx, double dy) {\n\t\t\n\t}",
"public void sampleMethod()\n {\n int a = 6;\n System.out.println(a *= a);\n \n }",
"@Test\n public void shouldMulTwoNumbers()\n {\n assertEquals(\"2 * 3 should be 6\", 6, Multiplication.mul(2, 3));\n }",
"private ASTNode binaryMultiplyRules(ASTNode left, ASTNode right) throws Exception {\n Token leftToken = left.getToken();\n Token rightToken = right.getToken();\n\n TokenType leftType = leftToken.getType();\n TokenType rightType = rightToken.getType();\n\n Token tempToken;\n TokenType numType = TokenType.NUMBER;\n TokenType minusType = TokenType.MINUS;\n TokenType mulType = TokenType.MUL;\n\n if (rightToken.getIdentifier().equals(\"0\")){\n //left is anything and right is 0\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (rightToken.getIdentifier().equals(\"1\")){\n //left is anything and right is 1\n return left;\n }\n else if (leftToken.getIdentifier().equals(\"0\")){\n //left is 0 and right is anything\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (leftToken.getIdentifier().equals(\"1\")){\n //left is 1 and right is anything\n return right;\n }\n else if(patternMatcher(leftType, rightType, numType, numType)){\n Double leftVal = Double.parseDouble(leftToken.getIdentifier());\n Double rightVal = Double.parseDouble(rightToken.getIdentifier());\n\n String prod = String.valueOf(leftVal * rightVal);\n tempToken = new Token(numType, prod);\n return new Num(tempToken);\n }\n else if (patternMatcher(leftType, rightType, minusType, minusType)){\n if (left instanceof UnaryOP && right instanceof UnaryOP){\n tempToken = new Token(mulType);\n ASTNode leftOP = ((UnaryOP) left).getOperand();\n ASTNode rightOp = ((UnaryOP) right).getOperand();\n return new BinaryOp(tempToken, leftOP, rightOp);\n }\n }\n tempToken = new Token(mulType);\n return new BinaryOp(tempToken ,left, right);\n }",
"public int producto(){\r\n return x*y;\r\n }",
"public double Multiplicar(double operador_1, double operador_2){\n return MultiplicacionC(operador_1, operador_2);\n }",
"@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a*b;\r\n\t}",
"public static byte GMul(int a, int b) {\n\n byte p = 0;\n byte counter;\n byte hi_bit_set;\n for (counter = 0; counter < 8; counter++) {\n if ((b & 1) != 0) {\n p ^= a;\n }\n hi_bit_set = (byte) (a & 0x80);\n a <<= 1;\n if (hi_bit_set != 0) {\n a ^= 0x1b; /* x^8 + x^4 + x^3 + x + 1 */\n }\n b >>= 1;\n }\n return p;\n}",
"public void multiply(double amount) {\n x *= amount;\n y *= amount;\n }",
"public int multiply(String firstNumber, String secondNumber) {\n int firstNum = Integer.parseInt(firstNumber);\n int secondNum = Integer.parseInt(secondNumber);\n int result = firstNum * secondNum;\n\n return (result);\n }",
"public static BigInteger multiply(BigInteger first, BigInteger second) {\n\t\t\n\t\tBigInteger sum = new BigInteger();\n\t\tint z = 0;\n\t\tfor(DigitNode n1 = first.front, dummy = new DigitNode(0, null), trailingZeros = dummy;\n\t\t\tn1 != null;\n\t\t\tn1 = n1.next, trailingZeros = new DigitNode(0, trailingZeros)) {\n\t\t\tBigInteger i = new BigInteger();\n\t\t\ti.numDigits = z++;\n\t\t\ti.front = trailingZeros;\n\t\t\tfor(DigitNode n2 = second.front, n = dummy; n2 != null; n2 = n2.next, n = n.next) {\n\t\t\t\tint value = n1.digit * n2.digit;\n\t\t\t\tn.next = new DigitNode(value, null);\n\t\t\t\ti.numDigits++;\n\t\t\t}\n\t\t\ti.front = i.front.next; //skip the dummy\n\t\t\tsum = forceAdd(sum, i);\n\t\t}\n\n\t\tnormalize(sum);\n\n\t\tsum.negative = first.negative ^ second.negative;\n\n\t\treturn sum;\n\t}",
"public static BigDecimal mul(BigDecimal a, BigDecimal b) {\n\t\treturn mul(a, b, 18);\n\t}",
"public double calculateValue () {\n return double1 * double2;\n }",
"int luasPP(int a, int b){\r\n return a*b;\r\n }",
"public String multiply(String num1, String num2) \n\t{\n if(num1 == null || num1.length() == 0) return num2;\n if(num2 == null || num2.length() == 0) return num1;\n if(num1.equals(\"0\") || num2.equals(\"0\")) return \"0\";\n \n int num2Ind = num2.length()-1;\n \n String result = \"0\";\n while(num2Ind >= 0)\n {\n String multiplied = multiplyDigit(num1, num2.charAt(num2Ind), num2.length()-num2Ind);\n --num2Ind;\n result = add(result, multiplied);\n }\n return result;\n }",
"private String multiply(String strOP1, String strOP2) {\n if (log4j.isDebugEnabled())\n log4j.debug(\"CreateCashFlowStatement - multiply - strOP1 - \" + strOP1 + \" - strOP2 - \"\n + strOP2);\n BigDecimal op1 = new BigDecimal(strOP1);\n BigDecimal op2 = new BigDecimal(strOP2);\n op1 = op1.setScale(200);\n op2 = op2.setScale(200);\n String strResult = \"\";\n try {\n strResult = op1.multiply(op2).toString();\n } catch (Exception e) {\n e.printStackTrace();\n log4j.warn(\"Servlet CreateCashFlowStatement - multiply - Exception\");\n }\n return strResult;\n }",
"Point mult (double s, Point result);",
"@ZenCodeType.Operator(ZenCodeType.OperatorType.MUL)\n default IData mul(IData other) {\n \n return notSupportedOperator(OperatorType.MUL);\n }",
"public static BinaryExpression multiply(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Multiply, expression0, expression1);\n }",
"public void multiply(int value) {\r\n\t\ttotal *= value;\r\n\t\thistory += \" * \" + value;\r\n\t}",
"static int multiply(int x, int y) {\n\n /* 0 multiplied with anything gives 0 */\n if (y == 0)\n return 0;\n\n /* Add x one by one */\n if (y > 0)\n return (x + multiply(x, y - 1));\n\n /* the case where y is negative */\n if (y < 0)\n return -multiply(x, -y);\n\n return -1;\n }",
"public static int multiplyTwoIntegers(int m, int n){\n return m*n;\r\n\t\r\n\t}",
"public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }",
"public BigDecimal multiplyNumbers(List<Integer> numbers) throws Exception;",
"public void multiply(Object mulValue) {\n\t\tvalue = operate(\n\t\t\t\ttransform(value),\n\t\t\t\ttransform(mulValue),\n\t\t\t\t(v1, v2) -> v1 * v2,\n\t\t\t\t(v1, v2) -> v1 * v2\n\t\t);\n\t}",
"@Test\n\tpublic void multiplyTest() {\n\t\t\n\t\tFraction expected = new Fraction(10, 200);\n\t\tFraction actual = y.multiply(x);\n\n\t\tassertEquals(expected.getNumerator(), actual.getNumerator());\n\t\tassertEquals(expected.getDenominator(), actual.getDenominator());\n\t\tassertEquals(expected.toString(), actual.toString());\n\t}",
"@Override\n public InterpreterValue mul(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() * ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() * ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '*' is not defined for type double and \" + v.getName());\n\n }"
] | [
"0.79671216",
"0.79515207",
"0.7941396",
"0.790615",
"0.7712604",
"0.7703817",
"0.76308733",
"0.7603463",
"0.76004434",
"0.7590237",
"0.7584973",
"0.75664234",
"0.75585514",
"0.7532651",
"0.75047463",
"0.7429221",
"0.7362163",
"0.7360011",
"0.7358933",
"0.7331952",
"0.73265857",
"0.7294865",
"0.72818565",
"0.7265549",
"0.7249142",
"0.72405964",
"0.7220618",
"0.7184753",
"0.71713954",
"0.7153841",
"0.7152445",
"0.71247923",
"0.7116788",
"0.70898694",
"0.70597756",
"0.70565957",
"0.6990215",
"0.6989075",
"0.6987046",
"0.69860107",
"0.6982461",
"0.6974452",
"0.69665086",
"0.6961217",
"0.695957",
"0.69451576",
"0.69367373",
"0.6928147",
"0.69213295",
"0.6912034",
"0.69112116",
"0.69065595",
"0.6892109",
"0.68452513",
"0.6840346",
"0.68210834",
"0.67884547",
"0.67750156",
"0.675447",
"0.6738942",
"0.67226",
"0.6714105",
"0.67110884",
"0.6707796",
"0.67027724",
"0.6702719",
"0.66993016",
"0.66867965",
"0.6678451",
"0.6578881",
"0.65770733",
"0.65742606",
"0.65737486",
"0.6568194",
"0.6562093",
"0.6557847",
"0.65572",
"0.6543264",
"0.65220094",
"0.65162027",
"0.65050024",
"0.6498185",
"0.6496438",
"0.6491393",
"0.6487033",
"0.64852977",
"0.6485086",
"0.647601",
"0.64741755",
"0.647347",
"0.6463254",
"0.6456676",
"0.64483565",
"0.644578",
"0.6444379",
"0.6439865",
"0.64371186",
"0.640926",
"0.6406016",
"0.6391953"
] | 0.8112402 | 0 |
Basic arithmetic operation which divides two numbers | public T div(T first, T second); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int division(int a, int b) {\n return a / b;\n }",
"BaseNumber divide(BaseNumber operand);",
"int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}",
"public int div(int a, int b) {\n\t\t\treturn compute(a, b, OPER_DIV);\n\t\t}",
"public double divisao (double numero1, double numero2){\n\t}",
"public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }",
"public static double div(double a, double b){\r\n\t\treturn a/b;\r\n\t}",
"@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}",
"public static NumberP Division(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Division\n ); \t\n }",
"public static double div(double a, double b) {\n return a / b;\n }",
"public static double div() {\n System.out.println(\"Enter dividend\");\n double a = getNumber();\n System.out.println(\"Enter divisor\");\n double b = getNumber();\n\n return a / b;\n }",
"@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}",
"public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public int division(){\r\n return Math.round(x/y);\r\n }",
"@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}",
"public double Dividir(double operador_1, double operador_2){\n return DivisionC(operador_1, operador_2);\n }",
"@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a/b;\r\n\t}",
"double divide (double a, double b) {\n\t\tdouble result = a/b;\n\t\treturn result;\n\t}",
"public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }",
"@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}",
"public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }",
"public int divide(int number1, int number2)\n\t\tthrows CalculatorOperationException;",
"public static int division(int x, int y) {\n\t\treturn x/y;\n\t}",
"@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}",
"@Test\n\tpublic void divisionTest() {\n\t\tMathOperation division = new Division();\n\n\t\tassertEquals(0, division.operator(ZERO, FIVE).intValue());\n\t\tassertEquals(4, division.operator(TWENTY, FIVE).intValue());\n\t}",
"public double divide(double a, double b) {\n\t\treturn a/b;\n\t}",
"@Override\npublic void div(int a, int b) {\n\t\n}",
"@Override\n public Float div(Float lhs, Float rhs) {\n\t\n\tassert(rhs != 0);\n\t\n\tfloat res = lhs/rhs;\n\treturn res;\n }",
"@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public static NodeValue numDivide(NodeValue nv1, NodeValue nv2) {\n switch (classifyNumeric(\"divide\", nv1, nv2)) {\n case OP_INTEGER : {\n // Note: result is a decimal\n BigDecimal d1 = new BigDecimal(nv1.getInteger()) ;\n BigDecimal d2 = new BigDecimal(nv2.getInteger()) ;\n return decimalDivide(d1, d2) ;\n }\n case OP_DECIMAL : {\n BigDecimal d1 = nv1.getDecimal() ;\n BigDecimal d2 = nv2.getDecimal() ;\n return decimalDivide(d1, d2) ;\n }\n case OP_FLOAT :\n // No need to check for divide by zero\n return NodeValue.makeFloat(nv1.getFloat() / nv2.getFloat()) ;\n case OP_DOUBLE :\n // No need to check for divide by zero\n return NodeValue.makeDouble(nv1.getDouble() / nv2.getDouble()) ;\n default :\n throw new ARQInternalErrorException(\"Unrecognized numeric operation : (\" + nv1 + \" ,\" + nv2 + \")\") ;\n }\n }",
"public void enfoncerDiv() {\n\t\ttry {\n\t\t\tthis.op = new Div();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (ArithmeticException e) {\n\t\t\tSystem.out.println(\"Erreur : Division par zero !\");\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}",
"void div(double val) {\r\n\t\tresult = result / val;\r\n\t}",
"public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }",
"public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public static BinaryExpression divide(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"public void divide(Object divValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, divValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() / getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() / getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}",
"public static BIGNUM divide(BIGNUM bn1, BIGNUM bn2) {\n\t\tdouble divide = bn1.NUM / bn2.NUM;\n\t\tdouble newE = bn1.E - bn2.E;\n\t\t//System.out.println(\"divide function: \" + multiply + \"\\t\" + newE);\n\t\tBIGNUM result = new BIGNUM(divide, newE);\n\t\treturn result;\n\t}",
"@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }",
"public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\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}",
"public void divide() {\n\t\t\n\t}",
"public int dividir(int a, int b) throws ExececaoCalculo{\n \n if(b==0){\n //ExececaoCalculo é uma class que esta nesse pacote atual\n throw new ExececaoCalculo(a, b);\n }\n return a/b;\n }",
"@Test\n\tvoid divide() {\n\t\tfloat result = calculator.divide(12, 4);\n\t\tassertEquals(3,result);\n\t}",
"@Override\n\tpublic int div(int val1, int val2) throws ZeroDiv {\n\t\tif (val2 == 0){\n\t\t\tZeroDiv e = new ZeroDiv(\"probleme\");\n\t\t\tthrow e;\n\t\t}\n\t\telse\n\t\t\treturn val1/val2;\n\t}",
"public void div(Fraction f1, Fraction f2) {\n\t\tnumerator = f1.getNumerator() * f2.getDenominator();\n\t\tdenominator = f1.getDenominator() * f2.getNumerator();\n\t\tint gcd = gcd(f1.getDenominator(), f2.getDenominator());\n\t\tnumerator /= gcd;\n\t\tdenominator /= gcd;\n\t}",
"public StatementParse mulDivTransform(StatementParse node) {\n // This function is called on _every_ multiply and divide node.\n StatementParse node1 = node.getChildren().get(0);\n StatementParse node2 = node.getChildren().get(1);\n if (!(node1 instanceof IntegerParse) || !(node2 instanceof IntegerParse)){\n return node;\n }\n int value1 = ((IntegerParse) node1).getValue();\n int value2 = ((IntegerParse) node2).getValue();\n int result;\n if (node.getName().equals(\"*\")){\n result = value1 * value2;\n } else{ // div node\n if (value2 == 0) return node;\n result = value1 / value2;\n }\n\n IntegerParse newNode = new IntegerParse(result);\n if (node.isNegative()) newNode.setNegative(true);\n return newNode;\n }",
"public static int DIV_ROUND_UP(int a, int b) {\n\treturn (a + b - 1) / b;\n }",
"public Fraccion division() {\r\n Fraccion division = new Fraccion(operador1.getNumerador()*operador2.getDenominador() , operador1.getDenominador()*operador2.getNumerador());\r\n return simplify(division);\r\n }",
"private long maxDivide(long a, long b) {\n\t\twhile (a % b == 0) {\n\t\t\ta = a / b;\n\t\t}\n\t\treturn a;\n\t}",
"@When(\"the Calculator divides {int} by {int} is Divided\")\n\tpublic void andAreDivided(Integer num1, Integer num2) {\n\t\tactualResult = calculator1.divide(num1, num2);\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}",
"public static Rational divide(Rational num1, Rational num2){\r\n Rational quotient = new Rational();\r\n // keep change flip\r\n \r\n quotient.numerator = num1.getNumerator() * num2.getDenominator();\r\n quotient.denominator = num1.getDenominator() * num2.getNumerator();\r\n \r\n quotient.reduce();\r\n return quotient;\r\n }",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"private static void divide(int[] n1, int[] n2, int[] quotient, int []remainder) {\n\t\tif (isZero(n2)) {\n\t\t\tthrow new ArithmeticException (\"Divide by Zero\");\n\t\t}\n\t\t\n\t\tclear (remainder);\n\t\tclear (quotient);\n\t\t\n\t\t// if clearly greater, then copy integer remainder\n\t\tif (compareTo(n2,n1) > 0) {\n\t\t\tint idx = remainder.length-1;\n\t\t\tfor (int i = 0; i < n1.length; i++ ) { \n\t\t\t\tremainder[idx--] = n1[i];\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// This returns a copy of n1/n2\n\t\tn1 = reduce(n1);\n\t\tn2 = reduce(n2);\n\n\t\t// we have to extend, and reduce length. Note that this WILL terminate because\n\t\t// we would have left earlier if n2 were greater than n1.\n\t\twhile (compareTo(n2,0,n2.length,n1,0) > 0) {\n\t\t\tn2 = expand(n2);\n\t\t}\n\t\t\n\t\t// return string \"quot+remainder\";\n\t\tString result = subProcess(n1, n2);\n\t\t\n\t\t// pack into quotient/remainder.\n\t\tint idx = result.indexOf(\"+\");\n\t\tif (idx == -1) {\n\t\t\tfor (int i = 0; i < quotient.length; i++) {\n\t\t\t\tquotient[i] = 0;\n\t\t\t}\n\t\t\tpack(remainder,result); // ever happen?\n\t\t} else {\n\t\t\tpack(quotient,result.substring(0,idx));\n\t\t\tpack(remainder,result.substring(idx+1));\n\t\t}\n\t}",
"@Test\n\tpublic void testDivideTwoFractions() {\n\t\tFraction f1 = new Fraction(3,4);\n\t\tFraction f2 = new Fraction (3,4);\n\t\t\n\t\tFraction expected = new Fraction (1,1);\n\t\t\n\t\tassertEquals(expected, f1.divide(f2));\n\t}",
"private static double calcDiv(float f, float g) {\n\t\treturn f / g;\n\t}",
"@Test\n public void test_DivisionWithTwoVariables() {\n Operator add = new Operator(new Constant(10), new Variable(\"x\"), Operator.Operators.ADD);\n Operator min = new Operator(new Constant(12), new Variable(\"y\"), Operator.Operators.MINUS);\n Operator mul = new Operator(add, min, Operator.Operators.MUL);\n Operator add2 = new Operator(new Constant(5), new Variable(\"x\"), Operator.Operators.ADD);\n Operator div = new Operator(mul, add2, Operator.Operators.DIV);\n\n\t\t/* x = 3 y = 2 */\n Context c = new Context();\n c.assign(\"x\", 3);\n c.assign(\"y\", 2);\n\n assertThat(div.evaluate(c), is(16.25));\n }",
"static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }",
"public static UnitP Division(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division) \n );\n }",
"@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}",
"private static BigInteger divideAndRound(BigInteger a, BigInteger b) {\r\n BigInteger result = a.divide(b);\r\n //Case 1: Integer part of the quotient is positive, a%b*2>=b, then the float part of the quotient>=.5, therefore add 1 to quotient\r\n if(result.signum()>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = result.add(BigInteger.ONE);\r\n //Case 2: Integer part of the quotient is negative, a%b*2<=b but a%b<>0 , \r\n //then the float part of the quotient<=-0.5, therefore subtract 1 from quotient\r\n else if(result.signum()<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0 && !a.mod(b).equals(BigInteger.ZERO))\r\n result = result.subtract(BigInteger.ONE);\r\n //Case 3: Integer part of the quotient is zero then two cases arise: a>0 or a<0\r\n else if(result.signum()==0)\r\n { \r\n //Case 1.1: a>0.5 then result=1\r\n if(a.compareTo(BigInteger.ZERO)>0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)>=0)\r\n result = BigInteger.ONE;\r\n //Case 1.1: a<-0.5 then result=-1\r\n else if(a.compareTo(BigInteger.ZERO)<0 && a.mod(b).multiply(new BigInteger(\"2\")).compareTo(b)<=0)\r\n result = BigInteger.ZERO.subtract(BigInteger.ONE); //-1 :)\r\n }\r\n return result;\r\n }",
"private int cal(int num1, int op, int num2){\n\n int ans=0;\n if(op<2){\n ans=num1+op*num2;\n }else if(op==2){\n ans=num1*num2;\n }else{\n ans=num1/num2;\n }\n return ans;\n }",
"static int valDiv2 (){\n return val/2;\n }",
"@Override\n\tpublic double dividir(double numerador, double denominador) throws ArithmeticException {\n\t\treturn 0;\n\t}",
"public void divide()\r\n {\r\n if (fractionDisplay)\r\n {\r\n result = Operations.fractionFormat(leftOperand, rightOperand);\r\n resultDoubles = Operations.divide(leftOperand, rightOperand);\r\n divisionFormatResult = true;\r\n }\r\n else \r\n {\r\n resultDoubles = Operations.divide(leftOperand, rightOperand);\r\n }\r\n resultResetHelper();\r\n }",
"private int calcula(int op,int a, int b){\n \n switch (op) {\n case 0: \n return a+b;\n case 1: \n return a-b;\n case 2: \n return a*b;\n case 3: \n return a/b;\n default: \n return 0;\n }\n \n }",
"@Override\r\n\tpublic int divNo(int a, int b) throws ArithmeticException {\n\t\tif(b==0)\r\n\t\t\tthrow new ArithmeticException();\r\n\t\treturn a/b;\r\n\t}",
"public <V extends Number> FluentExp<V> div (V value)\n {\n return new Div<V>(this, value);\n }",
"@Test(priority=4)\n\n\tpublic void divisionTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.division();\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20/10);\n\t}",
"public static BinaryExpression divideAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"public final void div() {\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 <V extends Number> FluentExp<V> div (SQLExpression<V> expr)\n {\n return new Div<V>(this, expr);\n }",
"public static double divide(int left, int right){\n double output = (double)left/right;\n if (output == Double.POSITIVE_INFINITY) {\n throw new ArithmeticException(\"Cannot divide by 0\");\n }\n return (double)left / right;\n }",
"public static Interval division(Interval in1, Interval in2){\r\n if(in2.getSecondExtreme()==0.0||in2.getFirstExtreme()==0.0){\r\n System.out.println(\"División por cero!\");\r\n System.exit(1);\r\n return new Interval();\r\n }else{\r\n return new Interval(in1.getFirstExtreme()/in2.getSecondExtreme(),in1.getSecondExtreme()/in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }\r\n }",
"public static RationalNumber divide(RationalNumber r1, RationalNumber r2)\n\t{\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t\n\t\t//Numerator and Denominator initialization\n\t\tint divNum;\n\t\tint divDeno;\n\t\t\n\t\t//Extracting variables: \n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\tint deno1 = r1.getDenominator();\n\t\tint deno2 = r2.getDenominator();\n\n\t\t//Division process: \n\t\tdivNum = num1 * deno2;\n\t\tdivDeno = num2 * deno1;\n\t\t\n\t\t//converting from an integer into a fraction:\n\t\tRationalNumber answer = new RationalNumberImpl_Luong(divNum,divDeno);\n\t\treturn answer;\n\n\t}",
"@ZenCodeType.Operator(ZenCodeType.OperatorType.DIV)\n default IData div(IData other) {\n \n return notSupportedOperator(OperatorType.DIV);\n }",
"public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }",
"public BigInt divide(BigInt rhs) throws ArithmeticException, BigIntException {\n if (null == rhs) {\n throw new BigIntException(\"null parameter\");\n }\n\n if (rhs.equals(new BigInt(\"0\"))) {\n // The rhs is 0\n throw new ArithmeticException(\"Zero division\");\n }\n\n BigInt absNumerator = new BigInt(number, true);\n BigInt quotient = new BigInt(new ArrayList<Integer>(), true);\n BigInt origDenominator = new BigInt(rhs.number, true);\n BigInt denominator = new BigInt(rhs.number, true);\n while (0 >= denominator.compareTo(absNumerator)) {\n quotient = quotient.plus(new BigInt(\"1\"));\n denominator = denominator.plus(origDenominator);\n }\n\n quotient.isPositive = (isPositive == rhs.isPositive);\n\n return quotient;\n }",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }",
"private static double operate(Double a, Double b, String op){\n\t switch (op){\r\n\t case \"+\": return Double.valueOf(a) + Double.valueOf(b);\r\n\t case \"-\": return Double.valueOf(a) - Double.valueOf(b);\r\n\t case \"*\": return Double.valueOf(a) * Double.valueOf(b);\r\n\t case \"/\": try{\r\n\t return Double.valueOf(a) / Double.valueOf(b);\r\n\t }catch (Exception e){\r\n\t e.getMessage();\r\n\t }\r\n\t default: return -1;\r\n\t }\r\n\t }",
"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}",
"private ASTNode binaryDivisionRules(ASTNode left, ASTNode right) throws Exception {\n\n Token leftToken = left.getToken();\n Token rightToken = right.getToken();\n\n TokenType leftType = leftToken.getType();\n TokenType rightType = rightToken.getType();\n\n TokenType varType = TokenType.VAR;\n TokenType numType = TokenType.NUMBER;\n TokenType divType = TokenType.DIV;\n\n Token tempToken;\n if (patternMatcher(leftType, rightType, varType, varType)){\n tempToken = new Token(numType, \"1\");\n return new Num(tempToken);\n }\n else if (rightToken.getIdentifier().equals(\"1\")){\n return left;\n }\n else if (leftToken.getIdentifier().equals(\"0\")){\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else{\n tempToken = new Token(divType);\n return new BinaryOp(tempToken, left, right);\n }\n }",
"static int calculate(int a, int b, String op) {\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n case \"/\":\n return a / b;\n default:\n break;\n }\n return 0;\n }",
"public LongNum div2(LongNum divided){\n LongNum res = divided.copy();\n for(int i = res.size()-1;i>=0;i--){\n if(i!=0)res.set(i-1,res.get(i-1)+(res.get(i)%2)*base);\n res.set(i , Math.floorDiv(res.get(i),2));\n }\n return res;\n }",
"public void div(String a, String b, int i, String reg) {\r\n registerName.add(reg);\r\n int posa = registerRegister.indexOf(a);\r\n int posb = registerRegister.indexOf(b);\r\n int element = Integer.parseInt(registerValues.get(posa));\r\n int element1 = Integer.parseInt(registerValues.get(posb));\r\n int div = element / element1;\r\n registerValues.add(Integer.toString(div));\r\n }",
"private void divOperands() {\n\t\tif (text_Operand3.getText().isEmpty()) {\n\t\t\ttext_Operand3.setText(\"5\");\n\t\t}\n\t\tif (text_Operand4.getText().isEmpty()) {\n\t\t\ttext_Operand4.setText(\"5\");\n\t\t}\n\n\t\t/*\n\t\t * It will pass the value to the bussiness logic so trhat the further logics can\n\t\t * be performed on them.\n\t\t */\n\n\t\tif (conversionIsRequired(comboBox1.getSelectionModel().getSelectedItem(),\n\t\t\t\tcomboBox2.getSelectionModel().getSelectedItem())) {\n\t\t\tdouble op1 = Double.parseDouble(text_Operand1.getText());\n\t\t\tdouble op1et = Double.parseDouble(text_Operand3.getText());\n\t\t\tperform.setOperand1(String.valueOf(op1 * theFactor));\n\t\t\tperform.setOperand3(String.valueOf(op1et * theFactor));\n\t\t}\n\t\tif (binaryOperandIssues()) // If there are issues with the operands, return\n\t\t\treturn; // without doing the computation\n\t\tdouble x = Double.parseDouble(text_Operand2.getText());\n\t\tif (x == 0f) {\n\t\t\tlabel_errResult.setText(\"Divide by zero is not allowed\");\n\t\t\ttext_Result.setText(\"\");\n\n\t\t} else {\n\t\t\tString theAnswer = perform.division(); // Call the business logic Division method\n\t\t\tlabel_errResult.setText(\"\"); // Reset any result error messages from before\n\t\t\tString theAnswer1 = perform.division1(); // Call the business logic Division method\n\t\t\tlabel_errResulterr.setText(\"\"); // Reset any result error messages from before\n\n\t\t\tif (theAnswer.length() > 0 || theAnswer1.length() > 0) { // Check the returned String to see if it is okay\n\t\t\t\ttext_Result.setText(theAnswer); // If okay, display it in the result field and\n\t\t\t\tlabel_Result.setText(\"Quotient\"); // change the title of the field to \"Divide\".\n\t\t\t\tlabel_Result.setLayoutX(70);\n\t\t\t\tlabel_Result.setLayoutY(345);\n\t\t\t\ttext_Resulterr.setText(theAnswer1); // If okay, display it in the result field and\n\t\t\t\t// change the title of the field to \"Divide\"\n\t\t\t\tcomboBoxRes.getSelectionModel().select(comboBox1.getSelectionModel().getSelectedItem() + \"/\"\n\t\t\t\t\t\t+ comboBox2.getSelectionModel().getSelectedItem());\n\t\t\t} else { // Some error occurred while doing the division.\n\t\t\t\ttext_Result.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\tlabel_Result.setText(\"Result\"); // Reset the result label if there is an error.\n\t\t\t\tlabel_errResult.setText(perform.getResultErrorMessage()); // Display the error message.\n\t\t\t\ttext_Resulterr.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\t// Reset the result label if there is an error.\n\t\t\t\tlabel_errResulterr.setText(perform.getResulterrErrorMessage()); // Display the error message.\n\t\t\t}\n\n\t\t}\n\t}",
"public void testORDINARY_DIV1() throws Exception {\n\t\tObject retval = execLexer(\"ORDINARY_DIV\", 10, \"fess\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"ORDINARY_DIV\", expecting, actual);\n\t}",
"public static UnitP Division(double first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }",
"public Divide(Expression a, Expression b) {\n super(Expression.X_IS_UNDEFINED);\n this.a = a;\n this.b = b;\n }",
"public final void mDIV() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.DIV;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:714:5: ( 'div' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:714:7: 'div'\n\t\t\t{\n\t\t\t\tthis.match(\"div\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"public Fraction divide( Fraction divisor ) {\n // Division ist genau wie multiplication aber in Kreuz\n // also, wir tauschen den numerator und den denomitanor aus, und\n // multiplizieren wie üblich\n Fraction upsideDown = new Fraction( divisor.denominator, divisor.numerator );\n Fraction result = this.multiply( upsideDown );\n\n return result;\n }",
"public static final int flooredMulDiv( int multiplicand, int multiplier, int divisor )\n {\n long result = (long) multiplicand * (long) multiplier;\n if ( result >= 0 ) return(int) (result / divisor);\n else return(int) ((result-divisor+1) / divisor);\n }",
"public static UnitP Division(UnitP first, double second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division, \n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }",
"@Override\n\tpublic double DivideOperation(double dividend, double divisor) {\n\t\treturn 0;\n\t}",
"public void testSUBORDINARY_DIV1() throws Exception {\n\t\tObject retval = execLexer(\"SUBORDINARY_DIV\", 28, \"pall\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"SUBORDINARY_DIV\", expecting, actual);\n\t}",
"public BigDecimal divideNumbers(List<Integer> numbers) throws Exception;",
"@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}",
"public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}",
"public static int [] divFrac(int[] operand1, int[] operand2) {\r\n \t//transfer the sign to the denominator before the switch\r\n \tif (operand2[0] <= -1) {\r\n \t\toperand2[1] *= -1;\r\n \t}\r\n \tint denominator = operand2[1]; //flip the second operand\r\n \toperand2[1] = Math.abs(operand2[0]);\r\n \toperand2[0] = denominator; //This way, the negative is always carried on the numerator\r\n \tint [] product = multFrac(operand1, operand2);\r\n \treturn product;\r\n }"
] | [
"0.78868276",
"0.7711782",
"0.7680864",
"0.7572252",
"0.753414",
"0.7494047",
"0.74209344",
"0.73958975",
"0.7332416",
"0.72806144",
"0.7264881",
"0.7245829",
"0.7188657",
"0.7168897",
"0.7147974",
"0.71208185",
"0.7117171",
"0.70834863",
"0.70222765",
"0.7003985",
"0.6989991",
"0.69852996",
"0.69570625",
"0.690488",
"0.68996966",
"0.68976337",
"0.68530357",
"0.68520814",
"0.6813851",
"0.6812273",
"0.6796779",
"0.6780325",
"0.67612225",
"0.6735143",
"0.67105544",
"0.6680145",
"0.6673817",
"0.664063",
"0.6614202",
"0.6610079",
"0.66010344",
"0.6598165",
"0.6597893",
"0.6552606",
"0.65375835",
"0.6514908",
"0.6495056",
"0.6474394",
"0.64664894",
"0.645945",
"0.6451424",
"0.6446615",
"0.643994",
"0.64328164",
"0.641601",
"0.6402232",
"0.6401806",
"0.63973695",
"0.6391531",
"0.6368473",
"0.6365167",
"0.63508856",
"0.63464755",
"0.6342846",
"0.6311294",
"0.6303762",
"0.63014704",
"0.6296543",
"0.62888193",
"0.6270692",
"0.6265612",
"0.62644726",
"0.6260074",
"0.62600446",
"0.62405086",
"0.62314796",
"0.62298644",
"0.6228498",
"0.62232786",
"0.6220126",
"0.6219817",
"0.6217158",
"0.6216196",
"0.6211948",
"0.620048",
"0.61995894",
"0.61994594",
"0.6188662",
"0.6184843",
"0.61816984",
"0.61791795",
"0.6170617",
"0.61289257",
"0.6127942",
"0.61116123",
"0.6109534",
"0.6102755",
"0.6100689",
"0.6096556",
"0.6095285"
] | 0.77907604 | 1 |
Basic operation which calculates the cosine of the value | public T cos(T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double cos(double number);",
"public static Expression cos(final Expression value) {\n return new Expression(\"$cos\", value);\n }",
"public double cosine(DocumentVector other) {\n\t\tdouble module1 = module();\n\t\tdouble module2 = other.module();\n\t\tif (module1 == 0 || module2 == 0)\n\t\t\treturn Constants.UNUSED;\n\t\telse\n\t\t\treturn product(other) / ( module1 * module2);\n\t}",
"public final void cos() {\n\t\tif (size > 0) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tpush(Math.cos(topMostValue));\n\t\t}\n\t}",
"public double calculate(double val) {\n double cosinus = Math.toRadians(val);\n return Math.cos(cosinus);\n }",
"double cosTheta();",
"E cos(final E n);",
"public Cos(Expression expression) {\n super(\"cos(%s)\", expression);\n }",
"public static float acos(float x) {\n \t\tfloat f=asin(x);\n \t\tif(f==Float.NaN)\n \t\t\treturn f;\n \t\treturn PiDiv2-f;\n \t}",
"public static double myCos(double x) {\n int n = 0;\n int N = 20;\n double y = 0;\n for (; n <= N; n++) {\n double p1 = 1;\n for (int i = 1; i <= n; i++) {\n p1 *= (-1);\n }\n double p2 = 1;\n for (int i = 1; i <= (2 * n); i++){\n p2*=i;\n }\n double p3 = 1;\n for (int i = 1; i <= (2 * n); i++){\n p3*=x;\n }\n y = y + (p1/p2)*p3;\n }\n return y;\n }",
"public static float cosine(float[] a, float[] b) {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"vector dimensions differ: \" + a.length + \"!=\" + b.length);\n }\n float r = IMPL.cosine(a, b);\n assert Float.isFinite(r);\n return r;\n }",
"public static float cosine(float a, float b, float x) {\n float ft = x * (float) Math.PI;\n float f = (1.0f - (float) Math.cos(ft)) * 0.5f;\n\n return a*(1-f) + b*f;\n }",
"E acos(final E n);",
"public static double cosine(double[] v1, double[] v2) {\n double length1 = length(v1);\n double length2 = length(v2);\n if (length1 == 0 || length2 == 0) return 0.0;\n else return dot(v1, v2) / (length1 * length2);\n }",
"public static Expression acos(final Expression value) {\n return new Expression(\"$acos\", value);\n }",
"static public double cosine(double complete) {\n\t\treturn Math.cos(Math.PI * (1 + complete)) / 2 + 1 / 2.0;\n\t}",
"public double cosAngle(Vector3 other) {\n\t\tif (isZeroVector(this) || isZeroVector(other)) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn dot(other) / (norm() * other.norm());\n\t}",
"public static double cos(double x)\n {\n int n=(int)(x/PI2)+1;\n if(n<1)n=n-1;\n x=x-(n&0xFFFFFFFE)*PI2; // reduce to the 4th and 1st quadrants\n\n double x2=x*x;\n\n float si=1f;\n if ((n&2)!=0) si=-1f; // if it from the 2nd or the 3rd quadrants\n return si*(0.9457092528f+(-0.4305320537f+0.1914993010e-1f*x2)*x2)/(0.9457093212f+(0.4232119630e-1f+0.9106317690e-3f*x2)*x2);\n }",
"public static float cos(float x) {\n float upper = PI * PI - 4f * x * x;\n float lower = PI * PI + x * x;\n return upper / lower;\n }",
"public double cosine(DocumentVector other, double average) {\n\t\tdouble product = 0;\n\t\tdouble length1 = 0;\n\t\tdouble length2 = 0;\n\t\tint n = Math.min(this.getAttCount(), other.getAttCount());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble value1 = this.getValueAsReal(i) - average;\n\t\t\tdouble value2 = other.getValueAsReal(i) - average;\n\t\t\t\n\t\t\tlength1 += value1 * value1;\n\t\t\tlength2 += value2 * value2;\n\t\t\tproduct += value1 * value2;\n\t\t}\n\t\t\n\t\tif (length1 == 0 || length2 == 0)\n\t\t\treturn Constants.UNUSED;\n\t\telse\n\t\t\treturn product / Math.sqrt(length1 * length2);\n\t}",
"public static float cosine(byte[] a, byte[] b) {\n if (a.length != b.length) {\n throw new IllegalArgumentException(\"vector dimensions differ: \" + a.length + \"!=\" + b.length);\n }\n return IMPL.cosine(a, b);\n }",
"private static double calculateCos(double dx, double distance) {\n if (distance > 0)\n return (dx) / distance;\n else\n return 0.0;\n }",
"public double cosSimCalculator(List<Double> vec1, List<Double> vec2) {\n double dotProduct = 0.0;\n for (int i=0; i < vec1.size(); i++)\n dotProduct += vec1.get(i) * vec2.get(i);\n\n double vec1Norm = vecNormCalculator(vec1);\n double vec2Norm = vecNormCalculator(vec2);\n\n return dotProduct / (vec1Norm * vec2Norm);\n }",
"public Cos(Expression exp) {\n super(exp);\n }",
"public static double CosineSimilarity(List<Double> Doc, List<Double> query) {\n double answer = 0 ;\n double sqA = 0;\n double sqB = 0;\n\n for(int i=0; i<query.size(); i++) {\n answer = answer + (Doc.get(i) * query.get(i));\n sqA = sqA+(Doc.get(i)*Doc.get(i));\n sqB = sqB+(query.get(i)*query.get(i));\n }\n if(sqA==0 &&sqB==0)\n return 2.0;\n\n return answer / (Math.sqrt(sqA) * Math.sqrt(sqB));\n }",
"@Test\n\tvoid cosTestWithDegreeInput() throws CustomException {\n\t\tdouble input = 60;\n\t\tdouble actual = 0.5000000000000001;\n\t\tdouble result = TrigLib.cosine(input);\n\t\tassertNotEquals(result, actual, \"Output is not as expected as input is not converted to radians\");\n\t}",
"@Test\n public void testCosineSimilarity() {\n SimilarityFunctions s = new SimilarityFunctions();\n\n double[] vector1 = new double[]{1, 2, 3};\n double[] vector2 = new double[]{2, 6, 3};\n double[] vector3 = new double[]{0, 1, 2};\n double[] vector4 = new double[]{2, 0, 0, 0};\n double[] vector5 = new double[]{1, 2.4, 3.9, 1};\n double[] vector6 = new double[]{1};\n double[] vector7 = new double[]{-1};\n\n assertEquals(0.8781440805693944, s.cosineSimilarity(vector1, vector2), .001);\n assertEquals(0.9561828874675149, s.cosineSimilarity(vector1, vector3), .001);\n assertEquals(0.7666518779999278, s.cosineSimilarity(vector2, vector3), .001);\n assertEquals(0.20865053489458874, s.cosineSimilarity(vector4, vector5), .001);\n assertEquals(-1.0, s.cosineSimilarity(vector6, vector7), .001);\n }",
"protected static final double acos(double c) {\n\t\t// case where c is a bit more than 1\n\t\tif (DoubleUtil.isEqual(c, 1) && c > 1) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t// case where c is a bit less than -1\n\t\tif (DoubleUtil.isEqual(c, -1) && c < -1) {\n\t\t\treturn Math.PI;\n\t\t}\n\n\t\treturn Math.acos(c);\n\t}",
"public static float cosSim(float[] vector1, float[] vector2) {\n\n if (vector1.length != vector2.length) {\n throw new IllegalArgumentException(\n \"Vectors must have the same dimensionality to compute cosine similarity\");\n }\n if (vector1.length == 0) {\n throw new IllegalArgumentException(\"Vector dimensionality must be greater than 0\");\n }\n\n float numerator = 0;\n float a2Sum = 0;\n float b2Sum = 0;\n\n for (int i = 0; i < vector1.length; i++) {\n numerator += vector1[i] * vector2[i];\n a2Sum += Math.pow(vector1[i], 2);\n b2Sum += Math.pow(vector2[i], 2);\n }\n\n float denominator = (float) (Math.sqrt(a2Sum) * Math.sqrt(b2Sum));\n\n if (denominator == 0) {\n return 0;\n }\n\n return numerator / denominator;\n }",
"private static double cosineVector(\n Map<Integer, Integer> v1, Map<Integer, Integer> v2, int length) {\n double dotProduct = 0.0;\n double norm1 = 0.0;\n double norm2 = 0.0;\n\n for (Integer index = 0; index < length; ++index) {\n Integer a = v1.get(index);\n Integer b = v2.get(index);\n dotProduct += a * b;\n norm1 += Math.pow(a, 2);\n norm2 += Math.pow(b, 2);\n }\n norm1 = (Math.sqrt(norm1));\n norm2 = (Math.sqrt(norm2));\n\n double product = norm1 * norm2;\n return formatDouble(product == 0.0 ? 0.0 : dotProduct / product);\n }",
"@Test\n\tvoid cosTestWithRadiansInput() throws CustomException {\n\t\tdouble input = 1.0471975511965976;\n\t\tdouble actual = 0.5000000000000001;\n\t\tdouble result = TrigLib.cosine(input);\n\t\tassertEquals(result, actual, \"Output is as expected as input is in radians\");\n\t}",
"public static Matrix cos(Matrix matrix)\n {\n int row = matrix.getRowDimension(), col = matrix.getColumnDimension();\n Matrix X = new Matrix(row, col);\n double[][] C = X.getArray();\n double[][] M = matrix.getArray();\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n C[i][j] = Math.cos(M[i][j]);\n }\n }\n return X;\n }",
"private double getCos(int rot) {\r\n\t\treturn Math.cos(Math.toRadians(rot));\r\n\t}",
"public static double findCos(double radiun) {\r\n\t\treturn Math.cos(radiun);\r\n\t}",
"public static double cosh(double myValue)\n {\n double aValue = (Math.pow(Math.E,myValue)+Math.pow(Math.E,-1*myValue))/2;\n return aValue;\n }",
"protected double computeCosineSimilarity(List<float[]> listVector1, List<float[]> listVector2)\r\n {\r\n if (listVector1.size() < 1 || listVector2.size() < 1) {\r\n return 0.f;\r\n }\r\n INDArray averageVector1 = computeVectorAverage(listVector1);\r\n INDArray averageVector2 = computeVectorAverage(listVector2);\r\n\r\n double similarity = Transforms.cosineSim(averageVector1, averageVector2);\r\n\r\n return similarity;\r\n }",
"public final static float COS(float deg) {\n\t\tdeg*=SINCOS_INVPREC;\n\t\treturn cosLUT[(int)deg];\n\t}",
"public Cos(String exp) {\n super(exp);\n }",
"public static double getCosineSimilarityDistance(VectorIntf x, VectorIntf y) {\r\n if (x==null || y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"at least one arg null\");\r\n if (x.getNumCoords()!=y.getNumCoords()) \r\n\t\t\tthrow new IllegalArgumentException(\"args of different dimensions\");\r\n double x_norm = norm2(x);\r\n double y_norm = norm2(y);\r\n if (Double.compare(x_norm,0.0)==0 || Double.compare(y_norm,0.0)==0)\r\n throw new IllegalArgumentException(\"x or y are zero\");\r\n double ip;\r\n if (x instanceof DblArray1SparseVector) {\r\n ip = ((DblArray1SparseVector) x).innerProduct(y);\r\n return ip/(x_norm*y_norm); // should be -ip/...\r\n }\r\n if (y instanceof DblArray1SparseVector) {\r\n ip = ((DblArray1SparseVector) y).innerProduct(x);\r\n return ip/(x_norm*y_norm); // should be -ip/...\r\n }\r\n // else\r\n ip = innerProduct(x,y);\r\n return ip/(x_norm*y_norm); // should be -ip/...\r\n }",
"public static Matrix acos(Matrix matrix)\n {\n double[][] M = matrix.getArray();\n int row = matrix.getRowDimension(), col = matrix.getColumnDimension();\n Matrix X = new Matrix(row, col);\n double[][] C = X.getArray();\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n if (M[i][j] <= 1.0 || M[i][j] >= -1.0)\n {\n C[i][j] = Math.acos(M[i][j]);\n }\n else\n {\n C[i][j] = Double.NaN;\n }\n }\n }\n return X;\n }",
"double cosSimWith(ParsedSentence ps){\n\t\tif(this.hasWords.size()*ps.hasWords.size()>0){\n\t\t\tMap<String, Double> map1 = this.atPost.atThreadf.tfidf;\n\t\t\tMap<String, Double> map2 = ps.atPost.atThreadf.tfidf;\n\t\t\tdouble sum1 = 0;\n\t\t\tdouble sum2 = 0;\n\t\t\tdouble sumsim = 0;\n\t\t\tfor(String w:this.hasWords){\t\n\t\t\t\tdouble x = map1.get(w);\n\t\t\t\tsum1+=x*x;\n\t\t\t\tif(ps.hasWords.contains(w)){\n\t\t\t\t\tsumsim+=x*map2.get(w);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(String r:ps.hasWords){\n\t\t\t\tsum2+=map2.get(r)*map2.get(r);\n\t\t\t}\n\t\t\tdouble rst = sumsim/(Math.sqrt(sum1)*Math.sqrt(sum2));\n\t\t\treturn rst>0? rst : 0;\n\t\t}else{\n\t\t\treturn 0;\n\t\t}\n\t}",
"@Test\n\tvoid cosTestWithConvertingToRadians() throws CustomException {\n\t\tdouble input = 60;\n\t\tdouble actual = 0.5000000000000001;\n\t\tdouble result1 = TrigLib.toRadians(input);\n\t\tdouble result = TrigLib.cosine(result1);\n\t\tassertEquals(result, actual, \"Output is as expected as input is converted to radians\");\n\t}",
"public String toString() {\n return this.strPrint(\"cos(\");\n }",
"public Snippet visit(CosExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f4 = n.identifier.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t \t_ret.returnTemp = \"Math.cos(\"+f4.returnTemp+\")\";\n\t return _ret;\n\t }",
"public static double acos(double d){\n\t\tif (d <= -1)\n\t\t\treturn Math.PI;\n\t\telse if (d >= 1)\n\t\t\treturn 0;\n\t\treturn Math.acos(d);\n\t}",
"public Cos(double exp) {\n super(exp);\n }",
"private double getStereoAngleCosine(Conformer conformer, double[] n, int atom0, int atom) {\n\t\t// calculate the three vectors leading from atom[0] to the other three atoms\n\t\tdouble[] v = new double[3];\n\t\tv[0] = conformer.getX(atom) - conformer.getX(atom0);\n\t\tv[1] = conformer.getY(atom) - conformer.getY(atom0);\n\t\tv[2] = conformer.getZ(atom) - conformer.getZ(atom0);\n\n\t\t// calculate cos(angle) of coords[2] to normal vector\n\t\treturn (v[0]*n[0]+v[1]*n[1]+v[2]*n[2]) / Math.sqrt(v[0]*v[0]+v[1]*v[1]+v[2]*v[2]);\n\t\t}",
"private static double acosh(double x){\n\t\treturn Math.log(x + Math.sqrt(x*x-1.0));\n\t}",
"public static double acos_safe(double x) {\n return Math.acos(Util.max(-1.0,Util.min(x,1.0)));\n }",
"public double sin(double number);",
"public static double \t\tcosh(double _x) {\n\t\treturn 0.5D * (Math.exp(_x) + Math.exp(- _x));\n\t}",
"public final static float COSSafer(float deg) {\n\t\tdeg=deg%360;\n\t\tif(deg<0) deg+=360;\n\n\t\tdeg*=SINCOS_INVPREC;\n\t\treturn cosLUT[(int)deg];\n\t}",
"private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }",
"public PriorityQueue<Pair> getCosineSimilarity(String query) throws IOException{\r\n\t\t\r\n\t\tPriorityQueue<Pair> cos = new PriorityQueue<Pair>();\r\n\t\tDocument req = new Document(query);\r\n\t\t\r\n\t\tMap<String, Double> tf_idf = new HashMap<>();\r\n\t\tfor (String s : req.wordSet)\r\n\t\t\tif(Idf.containsKey(s)) // calculate tf-idf if we have the word in our corpus\r\n\t\t\t\ttf_idf.put(s, req.getTf(s) * Idf.get(s));\r\n\t\t\r\n\t\tfor (String doc : Docs.keySet()){\r\n\t\t\tdouble q_n = Norm(tf_idf.values()); // check http://prntscr.com/pp793p\r\n\t\t\tdouble doc_n = Norm(getTfIdf(doc).values()); // check http://prntscr.com/pp79fx\r\n\t\t\tdouble cosine = DotProduct(tf_idf, getTfIdf(doc)) / (q_n * doc_n); // DotProduct is this http://prntscr.com/pp7azz \r\n\t\t\tcos.add(new Pair(doc, cosine));\r\n\t\t}\r\n\t\t\r\n\t\treturn cos;\r\n\t}",
"public double calculateSine(double angle);",
"@Test\n public void test14() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n double double0 = complex0.getReal();\n Complex complex1 = complex0.cosh();\n Complex complex2 = complex0.cos();\n }",
"public double averageCosineSimilarity() {\n\n\t\tdouble sumCosineSimilarities = 0;\n\t\tdouble nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble similarity = cosineSimilarityMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumCosineSimilarities += similarity;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\tSystem.out.println(sumCosineSimilarities);\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumCosineSimilarities / nDistances;\n\t}",
"private double sinc(double x) {\n return Math.sin(Math.PI * x) / (Math.PI * x);\n }",
"public double calcValue(Vector x) {\n return opensimSimulationJNI.FiberCompressiveForceCosPennationCurve_calcValue__SWIG_1(swigCPtr, this, Vector.getCPtr(x), x);\n }",
"public double calculateHyperbolicSine(double angle);",
"public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }",
"@Test\n public void test15() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n Complex complex1 = complex0.negate();\n Complex complex2 = complex0.cosh();\n Complex complex3 = complex0.acos();\n double double0 = complex0.getArgument();\n Complex complex4 = complex1.cosh();\n }",
"public static double function(double x) {\n double val = (Math.sin(x * 1) * 0.4 + (Math.sin(x * 2) * 0.4)) + (Math.sin(x * 5) * 0.2);\n //return (Math.cos(x)*0.5)+0.5;\n //return (Math.cos(x*5)*0.5)+0.5;\n //if (val<0) val=-0.5;\n //if (val>0) val=0.5;\n return val;\n }",
"public double cosineSimilarity(double[] docVector1, double[] docVector2) \r\n {\r\n double dotProduct = 0.0;\r\n double magnitude1 = 0.0;\r\n double magnitude2 = 0.0;\r\n double cosineSimilarity = 0.0;\r\n \r\n for (int i = 0; i < docVector1.length; i++) //docVector1 and docVector2 must be of same length\r\n {\r\n dotProduct += docVector1[i] * docVector2[i]; //a.b\r\n magnitude1 += Math.pow(docVector1[i], 2); //(a^2)\r\n magnitude2 += Math.pow(docVector2[i], 2); //(b^2)\r\n }\r\n \r\n magnitude1 = Math.sqrt(magnitude1);//sqrt(a^2)\r\n magnitude2 = Math.sqrt(magnitude2);//sqrt(b^2)\r\n \r\n if (magnitude1 != 0.0 | magnitude2 != 0.0)\r\n {\r\n cosineSimilarity = dotProduct / (magnitude1 * magnitude2);\r\n } \r\n else\r\n {\r\n return 0.0;\r\n }\r\n return cosineSimilarity;\r\n }",
"static double f(double x){\n \treturn Math.sin(x);\r\n }",
"public static double cauchy() {\n return Math.tan (Math.PI * ( uniform() - 0.5 ) );\n }",
"private native double SumaC(double operador_1, double operador_2);",
"public static void main(String[] args) {\n double x0=Math.PI/2;\n double dx=0.01;\n double f1;\n double f2;\n double m;\n\n double dr;\n f1=Math.cos(x0+dx);\n f2=Math.cos(x0-dx);\n m= Math.cos(x0)*2;\n dr=((f1)-(m)+(f2))/(dx*dx);\n\n System.out.println(dr);\n\n\n }",
"public static double cauchy() {\r\n return Math.tan(Math.PI * (uniform() - 0.5));\r\n }",
"protected double compute(int sample) {\n\t\tdouble v = Math.sin((double) sample * 2.0 * Math.PI * (double) frequency\n\t\t\t\t/ (double) AudioSequence.SAMPLES_PER_SECOND);\n\t\treturn v;\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}",
"public double carre(double v) {\n return v*v;\n }",
"public double evaluate() throws Exception {\n if (super.getExpression().evaluate() % 180 == 90) {\n return 0;\n }\n if (super.getExpression().evaluate() % 360 == 180) {\n return -1;\n }\n if (super.getExpression().evaluate() % 360 == 0) {\n return 1;\n }\n return Math.cos(Math.toRadians(super.getExpression().evaluate()));\n }",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 + num2;\n\t\t}",
"public void getCosineSimilarity(){\r\n\t\tfor(Integer i : read.rateMap.keySet()){\r\n\t\t\tif(i != this.userID){\r\n\t\t\t\t//Calculate the average rate.\r\n//\t\t\t\tdouble iAverage = average.get(i);\r\n\t\t\t\tdouble a = 0.0;\r\n\t\t\t\tdouble b = 0.0;\r\n\t\t\t\tdouble c = 0.0;\r\n\t\t\t\t//Set a flag by default meaning the user does not have common rate with this user.\r\n\t\t\t\tboolean intersection = false;\r\n\t\t\t\tArrayList<Map.Entry<String, Double>> list = read.rateMap.get(i);\r\n\t\t\t\tfor(int j = 0; j < list.size(); j++){\r\n\t\t\t\t\tdouble userRate = 0;\r\n\t\t\t\t\tif(ratedID.contains(list.get(j).getKey())){\r\n\t\t\t\t\t\t//The user has common rated movies with this user\r\n\t\t\t\t\t\tintersection = true;\r\n\t\t\t\t\t\tfor(int k = 0; k < read.rateMap.get(userID).size(); k++){\r\n\t\t\t\t\t\t\tif(read.rateMap.get(userID).get(k).getKey().equals(list.get(j).getKey())){\r\n\t\t\t\t\t\t\t\tuserRate = read.rateMap.get(userID).get(k).getValue();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ta += userRate * list.get(j).getValue();\r\n\t\t\t\t\t\tb += userRate * userRate;\r\n\t\t\t\t\t\tc += list.get(j).getValue() * list.get(j).getValue();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//Check if this user rated all the movies with the same rate.\r\n\t\t\t\tif(intersection && b == 0){\r\n\t\t\t\t\tfuckUser = true;//really bad user.\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} \r\n\t\t\t\t//Check if current user rated all the movies with the same rate. If so, just set similarity as 0.\r\n\t\t\t\tif(intersection && c != 0){\r\n\t\t\t\t\tdouble s = a / (Math.sqrt(b) * Math.sqrt(c));\r\n\t\t\t\t\tsimilarity.put(i, s);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdouble s = 0;\r\n\t\t\t\t\tsimilarity.put(i, s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.heap = new ArrayList<Map.Entry<Integer, Double>>();\r\n\t\tIterator<Map.Entry<Integer, Double>> it = similarity.entrySet().iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tMap.Entry<Integer, Double> newest = it.next();\r\n\t\t\theap.add(newest);\r\n\t\t}\r\n\t\tCollections.sort(this.heap, new Comparator<Map.Entry<Integer, Double>>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Map.Entry<Integer, Double> a, Map.Entry<Integer, Double> b){\r\n\t\t\t\treturn -1 * (a.getValue().compareTo(b.getValue()));\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public double calculateArcSine(double angle);",
"public static double \t\tacosh(double _x) {\n\t\tassertFalse(_x < 1.0D, \"acosh real number argument (\" + _x + \") must be >= 1\");\n\n\t\treturn Math.log(_x + Math.sqrt(_x * _x - 1.0D));\n\t}",
"public double componentX () {\n\t\tdouble component = 0;\n\t\tcomponent = this.magnitude*Math.cos(this.angle);\n\t\treturn component;\n\t}",
"private double function1(double x) {\n return Math.sin(x)*10;\n }",
"@Test\n\tvoid cosTestWithPositiveInfinity() throws CustomException {\n\t\tdouble input = Double.POSITIVE_INFINITY;\n\t\tassertThrows(CustomException.class, () -> {TrigLib.cosine(input);}, \"Throws Exception\");\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 * num2;\n\t\t}",
"public static final float m36423e(float f) {\n return (float) Math.cos((double) f);\n }",
"public static Matrix cosh(Matrix matrix)\n {\n double[][] M = matrix.getArray();\n int row = matrix.getRowDimension(), col = matrix.getColumnDimension();\n Matrix X = new Matrix(row, col);\n double val = 1.0;\n double[][] C = X.getArray();\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n val = Math.exp(M[i][j]);\n val = 0.5 * (val + 1 / val);\n C[i][j] = val;\n }\n }\n return X;\n }",
"public double tan(double number);",
"public double getCelsius(){\n return ((fahrenheit-32)*(5.0/9));\n }",
"@Override\n\tpublic float somar(float op1, float op2) {\n\t\treturn op1 + op2;\n\t}",
"@Override\n\t\tprotected int computeValue() {\n\t\t\treturn squareSide.get() * squareSide.get(); //return squared value\n\t\t}",
"@Override\n\t\tprotected String commandName() {\n\t\t\treturn \"cos\";\n\t\t}",
"double compute(String sequence){\n\t\tArrayList<Term> terms = Term.parseTermSequence(sequence);\n\t\tif(terms == null)\n\t\t\treturn Integer.MIN_VALUE;\n\t\t\n\t\tdouble result = 0;\n\t\tTerm processing = null;\n\t\tfor(int i = 0; i < terms.size(); i++){\n\t\t\tTerm current = terms.get(i);\n\t\t\tTerm next = i + 1 < terms.size() ? terms.get(i + 1) : null;\n\t\t\t\n\t\t\t//Apply the current term to 'processing'\n\t\t\tprocessing = collapseTerm(processing,current);\n\t\t\t\n\t\t\t//If next term is + or -, then this cluster is done and we should apply 'processing' to 'result'\n\t\t\tif(next == null || next.getOperator() == Operator.ADD || next.getOperator() == Operator.SUBTRACT){\n\t\t\t\tresult = applyOp(result,processing.getOperator(), processing.getNumber());\n\t\t\t\tprocessing = null;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"@Test\n public void test19() throws Throwable {\n Complex complex0 = new Complex((-138.659), 0.0);\n Complex complex1 = complex0.exp();\n String string0 = complex0.toString();\n Complex complex2 = complex1.subtract(complex0);\n Complex complex3 = complex0.multiply(complex1);\n Complex complex4 = complex0.cos();\n double double0 = complex4.getImaginary();\n }",
"public static Expression acosh(final Expression value) {\n return new Expression(\"$acosh\", value);\n }",
"@Test\n\tvoid cosTestWithNegativeInfinity() throws CustomException {\n\t\tdouble input = Double.NEGATIVE_INFINITY;\n\t\tassertThrows(CustomException.class, () -> {TrigLib.cosine(input);}, \"Throws Exception\");\n\t}",
"public static Matrix sinc(Matrix matrix)\n {\n double[][] M = matrix.getArray();\n int row = matrix.getRowDimension(), col = matrix.getColumnDimension();\n Matrix X = new Matrix(row, col);\n double[][] C = X.getArray();\n for (int i = 0; i < row; i++)\n {\n for (int j = 0; j < col; j++)\n {\n if (M[i][j] == 0.0d)\n {\n C[i][j] = 1.0;\n }\n else\n {\n C[i][j] = Math.sin(M[i][j]) / M[i][j];\n }\n }\n }\n return X;\n }",
"public static double getFuncValue(double x){\n return Math.sin(x);\r\n }",
"@Override\n\tpublic float calc(final float t, final float b, final float c, final float d) {\n\t\treturn (float) (c * FloatMath.sin(t / d * _HALF_PI) + b);\n\t}",
"public static Expression sin(final Expression value) {\n return new Expression(\"$sin\", value);\n }",
"public abstract double calculate(Complex c,Complex current);",
"static double sineWave(double timeInSeconds, double frequency) {\r\n\t\tdouble result= Math.sin(timeInSeconds);\r\n\t\t\t\r\n\t\treturn result; // hint: use Math.sin(...)\r\n\t}",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }"
] | [
"0.787538",
"0.74184316",
"0.7295906",
"0.7188665",
"0.7148411",
"0.699791",
"0.6981165",
"0.6944231",
"0.6838073",
"0.6836846",
"0.6819366",
"0.6785305",
"0.6744332",
"0.67327124",
"0.6719586",
"0.66174406",
"0.6615034",
"0.6609123",
"0.6540883",
"0.6533731",
"0.65256846",
"0.6502898",
"0.64935577",
"0.6416125",
"0.6389044",
"0.6376233",
"0.6311832",
"0.6268277",
"0.62606233",
"0.62108153",
"0.6177319",
"0.6168308",
"0.61626565",
"0.61276275",
"0.6069814",
"0.6052209",
"0.6042058",
"0.60407776",
"0.6025433",
"0.602074",
"0.5966402",
"0.5930466",
"0.5878486",
"0.5841074",
"0.5830283",
"0.5778862",
"0.5723235",
"0.57118315",
"0.5674697",
"0.5643702",
"0.5643053",
"0.56359106",
"0.5542534",
"0.5526287",
"0.55128306",
"0.54866886",
"0.5485279",
"0.5469452",
"0.5467819",
"0.5453148",
"0.5438202",
"0.54351413",
"0.53670764",
"0.5366466",
"0.5331511",
"0.5311682",
"0.5304788",
"0.5294188",
"0.5283011",
"0.52654976",
"0.5201705",
"0.51929295",
"0.51917714",
"0.5186686",
"0.51736814",
"0.51735395",
"0.5170881",
"0.5161002",
"0.5155704",
"0.515465",
"0.51507926",
"0.5145661",
"0.51294553",
"0.51117265",
"0.51037234",
"0.5094844",
"0.5092917",
"0.50914216",
"0.5082899",
"0.5059496",
"0.5048929",
"0.503764",
"0.503368",
"0.4998822",
"0.4986249",
"0.4978259",
"0.4977636",
"0.4976823",
"0.49704573",
"0.49643633"
] | 0.811498 | 0 |
Basic operation which calculates the (value)^e | public T exp(T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic double apply(double value) {\n\t\tfor (int i = 0; i < constants.length; i++) {\n\t\t\tnextConstant = new Constant(constants[constants.length - i - 1]);\n\t\t\tnextExponent = new LinearProduct(nextConstant, new Exponent(i));\n\t\t\tresult += nextExponent.apply(value);\n\t\t}\n\t\treturn result;\n\t}",
"public void e(double num1, double num2) {\r\n\t\t\r\n\t\tdouble operar;\r\n\t\t\r\n\t\tfor(int i=0; i<num1; i++) {\r\n\t\t\t\r\n\t\t\toperar=1/factorial(i);\r\n\t\t\tCalcularEValue+=operar;\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public abstract double mo9740e();",
"private void eToPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.eToPower ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"float mo106363e();",
"double getValue();",
"double getValue();",
"double getValue();",
"private double procesarOperadorExponente() throws Exception {\r\n double resultado = procesarCoeficientesFuncionesParentesis();\r\n while (!colaDeTokens.isEmpty()) {\r\n switch (colaDeTokens.element().tipoToken) {\r\n case EXPONENTE:\r\n \r\n colaDeTokens.remove();\r\n resultado = Math.pow(resultado, procesarCoeficientesFuncionesParentesis());\r\n continue;\r\n }\r\n break;\r\n }\r\n return resultado;\r\n }",
"@Override\n public double evaluate(double value, double scale) {\n return Math.exp(0.5 * Math.pow(value, 2.0) / scale);\n }",
"public abstract double compute(double value);",
"public static void main(String[] args) {\n int total = exponente(2,4);\n System.out.println(\"Total: \" + total );\n }",
"public abstract double calcular();",
"@Override\n\tpublic double calculate() \n\t{\t\n\t\t//return 2.45e6;\n\t\t//return (2499.64 - (2.51 * tempCelsius.value)) * 1000;\t\n\t\t//return ((2.501 - (0.002361 * tempCelsius.value)) * 1e6)*0.33;\n\t\treturn ((2.501 - (0.002361 * tempCelsius.value)) * 1e6);\n\t}",
"@Override\r\n\t\tpublic double value(double x, double... parameters) {\n\t\t\tfinal double a = parameters[0];\r\n\t\t\tfinal double b = parameters[1];\r\n\t\t\tfinal double c = parameters[2];\r\n\t\t\tfinal double d = parameters[3];\r\n\t\t\tfinal double e = parameters[4];\r\n\t\t\treturn d + ((a - d) / (1 + Math.pow((x+e)/c, b)));\r\n\t\t}",
"Sum getMultiplier();",
"public void power(int value) {\r\n\t\tif (value < 0) {\r\n\t\t\ttotal = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttotal ^= value;\r\n\t\t}\r\n\t\thistory += \" ^ \" + value;\r\n\t}",
"private double getExponentTerm(final double[] values) {\n //final double[] centered = new double[values.length];\n //for (int i = 0; i < centered.length; i++) {\n // centered[i] = values[i] - means[i];\n //}\n // I think they are already centered from earlier?\n //final double[] preMultiplied = covariance_rpt_inv_normal.multiply(values/*centered*/);\n double sum = 0;\n for (int i = 0; i < values.length; i++) {\n sum += (Math.exp(-0.5 * values[i]) / constant_normal);//centered[i];\n }\n return sum;\n }",
"public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }",
"public double getValue();",
"public static double equation() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Please enter a value for x: \");\n double x = userInput.nextDouble();\n double output = (x * Math.pow(Math.exp(1), -x)) + Math.sqrt(1 - Math.pow(Math.exp(1), -x));\n System.out.print(\"The answer to the equation xe^-x + sqrt(1-(e^-x)) \");\n\tSystem.out.println(\" with that x is: \");\n return output;\n }",
"@VisibleForTesting\n public final long e() {\n long b2 = this.f10064d.n().b();\n long j = b2 - this.f10062b;\n this.f10062b = b2;\n return j;\n }",
"public static double cosh(double myValue)\n {\n double aValue = (Math.pow(Math.E,myValue)+Math.pow(Math.E,-1*myValue))/2;\n return aValue;\n }",
"public BigInteger compute() {\n\t\tBigInteger g = parameters.getG();\n\t\tBigInteger h = parameters.getH();\n\t\tBigInteger p = parameters.getP();\n\n\t\tBigInteger gPowAik = g.modPow(aik.getValue(), p);\n\t\tBigInteger hPowBik = h.modPow(bik.getValue(), p);\n\n\t\t/*\n\t\t * ((x^a mod q) * (y^b mod q)) mod q = (x^a * y^b) mod q\n\t\t * \n\t\t * otherwise modPow cannot be used!\n\t\t */\n\t\tvalue = gPowAik.multiply(hPowBik).mod(p);\n\n\t\treturn value;\n\t}",
"public double powE(double exp) {\n return Double.parseDouble(String.format(\"%.8f\", Math.pow(StrictMath.E, exp)));\n }",
"public abstract double evaluate(double value);",
"public Scalar evaluate(Scalar scalar) {\n\t\tScalar ans=scalar;\n\t\tans=ans.pow(this.exponent);\n\t\treturn this.coefficient.mul(ans);\n\t}",
"Double getValue();",
"public abstract String getExponent();",
"public abstract double getValue();",
"public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}",
"public Vector porEscalar(double value){\n return new Vector(x*value,y*value);\n }",
"public int getExponent();",
"BigInteger getValue();",
"private void E()\n\t{\t\n\t\tString E = \"\";\t\t\t//Holds double which is approximated to the value of e\n\t\tString fieldText = \"\";\t//Holds the text currently in \"entry\". Used when leftValue is full.\n\t\tdouble e = Math.E;\t\t//Decimal approximation of e.\n\t\tE += e;\t\t\t\t\t//Decimal approximation of e inserted into a String\n\t\t\n\t\tif(Fun == null && calc.getLeftValue ( ) == 0.0)\n\t\t{\n\t\t\tentry.setText (E);\n\t\t\tsetLeftValue();\n\t\t}\n\t\telse if (calc.getLeftValue ( ) != 0.0 && calc.getRightValue ( ) == 0.0)\n\t\t{\n\t\t\tfieldText = entry.getText();\n\t\t\tfieldText += \" \" + E;\n\t\t\tentry.setText(fieldText);\n\t\t\tsetRightValue();\n\t\t}\n\t}",
"@Override\n public double evaluate() throws Exception {\n return Math.log(getEx2().evaluate()) / Math.log(getEx2().evaluate());\n }",
"protected abstract double operation(double val);",
"public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }",
"@Override\n\t\tprotected int computeValue() {\n\t\t\treturn squareSide.get() * squareSide.get(); //return squared value\n\t\t}",
"abstract public double compute(Composition comp, double e0);",
"public Double productoEscalar(Pixel p){\r\n\t\treturn this.getXDouble()*p.getXDouble() + this.getYDouble()*p.getYDouble(); \r\n\t}",
"@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}",
"@Override\n public InterpreterValue pow(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the power-result\n if(v instanceof IntegerValue) return new DoubleValue(Math.pow(getValue(), ((IntegerValue) v).getValue()));\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the power-result\n if(v instanceof DoubleValue) return new DoubleValue(Math.pow(getValue(), ((DoubleValue) v).getValue()));\n\n // In other case just throw an error\n throw new Error(\"Operator '**' is not defined for type double and \" + v.getName());\n\n }",
"E cos(final E n);",
"public static BinaryExpression power(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public Integer getExponent();",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"public String get_exponent_part();",
"float getValue();",
"float getValue();",
"float getValue();",
"@Override\n\tpublic double evalEnergy(Object... arguments)\n \t{\t\t\n\t\treturn _factorFunction.evalEnergy(expandInputList(arguments));\n \t}",
"private double kToEv(double value) {\n\t\treturn Converter.convertWaveVectorToEnergy(value, edgeEnergy);\n\t}",
"public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"public double result() {return 0;}",
"public BigInteger value() {\n\t\tBigInteger val = BigInteger.ONE;\n\t\tNode current_node = this.head;\n\t\twhile(current_node != null){\n\t\t\tval = val.multiply(BigInteger.valueOf(current_node.factor).pow(current_node.power));\n\t\t\tcurrent_node = current_node.next;\n\t\t}\n\t\treturn val;\n\t}",
"Expression getValue();",
"Expression getValue();",
"double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}",
"@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }",
"void multiply(double value);",
"public int producto(){\r\n return x*y;\r\n }",
"Double getMultiplier();",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"E getValue();",
"public Expression getGammaValue();",
"E tan(final E n);",
"private double calc_E(KeplerElements a) {\n\t\tdouble sqrome2 = Math.sqrt(1.0 - a.e * a.e);\r\n\t\tdouble cta = Math.cos(a.ta);\r\n\t\tdouble sta = Math.sin(a.ta);\r\n\t\tdouble sine0 = (sqrome2 * sta) / (1.0 + a.e * cta);\r\n\t\tdouble cose0 = (a.e + cta) / (1.0 + a.e * cta);\r\n\t\tdouble e0 = Math.atan2(sine0, cose0);\r\n\t\treturn e0;\r\n\r\n\t}",
"public java.lang.Float getE() {\n return e;\n }",
"public static void main(String[] args) throws Exception {\r\n Expression e = new Plus(new Mult(2, \"x\"), new Plus(new Sin(new Mult(4, \"y\")), new Pow(\"e\", \"x\")));\r\n System.out.println(e);\r\n Map<String, Double> assignment = new TreeMap<String, Double>();\r\n assignment.put(\"x\", 2.0);\r\n assignment.put(\"y\", 0.25);\r\n assignment.put(\"e\", 2.71);\r\n System.out.println(e.evaluate(assignment));\r\n e = e.differentiate(\"x\");\r\n System.out.println(e);\r\n System.out.println(e.evaluate(assignment));\r\n System.out.println(e.simplify());\r\n System.out.println(e);\r\n }",
"public Clorus (double e) {\n super(\"clorus\");\n if (e < 0) {\n energy = 0;\n }else { energy = e;}\n r = 0;\n g = 0;\n b = 0;\n }",
"private double f(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretador.getResultado(\"!\"+x1);\r\n }\r\n return interpretador.getResultado(x);\r\n }",
"protected final double fa(double x, double ac, double ae) {return ac*Math.pow(x, ae)/K;}",
"protected abstract SoyValue compute();",
"@Override\n public double evaluate(float x) {\n\n int polynomial[] = getPolynomialCoefficientArray();\n double result = 0;\n for (int i = 0; i < polynomial.length; i++) {\n result += polynomial[i] * Math.pow(x, i);\n }\n return result;\n }",
"public double getEquinox();",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }",
"public float e()\r\n/* 20: */ {\r\n/* 21:167 */ return this.c;\r\n/* 22: */ }",
"Expression powerExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = unaryExpression();\r\n\t\tif (isKind(OP_POWER)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\treturn new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"public double calculateValue () {\n return double1 * double2;\n }",
"public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}",
"@VTID(14)\r\n double getValue();",
"public double eval(double x) {\n double result = 0;\n for (int i = coefs.length - 1; i >= 0; i--) {\n result = result * x + coefs[i];\n }\n return result;\n }",
"public java.lang.Float getE() {\n return e;\n }",
"public double getValue() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 1.00;\n\t}",
"public static BinaryExpression power(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }",
"public double getCelsius(){\n return ((fahrenheit-32)*(5.0/9));\n }",
"public double getCoefficient();",
"public int value(){ // no input , some output\n\t\t\tSystem.out.println(\"value method\");\n\n\t\t\tint a = 10;\n\t\t\tint b = 20;\n\t\t\tint c = a+b;\n\t\t\treturn c ;\n\t\t}",
"private double f(double x) {\n return (1 / (1 + Math.exp(-x)));\n }",
"public Float getE1() {\r\n return e1;\r\n }",
"E cot(final E n);",
"protected Object evaluate( ) throws Exception {\n return new Double(Math.atan(getDouble(0)));\n }",
"public static BigInteger factoria(double value){\n BigInteger f = new BigInteger(\"1\");\n for (int i =1;i<=value;i++){\n f = f.multiply(BigInteger.valueOf(i));\n }\n return f; \n }",
"@Test\n\tpublic void testExponentiation() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.pow(zero, zero);\n\t\t\tassertEquals(ac.exponentiation(zero, zero), expResult, 0);\n\t\t}\n\t\t\n\t}",
"public double power ( int num1, int num2, Credential aCrendential) throws RemoteException;",
"public double evaluate(double x);",
"public double eval(double x) {\n return c - x*x;\n }"
] | [
"0.6627544",
"0.66029674",
"0.6486054",
"0.64241976",
"0.6401357",
"0.63756245",
"0.63756245",
"0.63756245",
"0.6325597",
"0.6325297",
"0.62956285",
"0.6227002",
"0.6213349",
"0.6199704",
"0.61439556",
"0.6137783",
"0.6084426",
"0.60683906",
"0.60515153",
"0.60308975",
"0.60303366",
"0.6028743",
"0.6021461",
"0.6018172",
"0.60181195",
"0.60002583",
"0.5999119",
"0.5994615",
"0.5981197",
"0.5974165",
"0.595693",
"0.59404194",
"0.59335566",
"0.5923122",
"0.592168",
"0.5921258",
"0.589713",
"0.58964235",
"0.5889612",
"0.5879241",
"0.5878752",
"0.58769906",
"0.5864684",
"0.58630633",
"0.58597827",
"0.58422613",
"0.5837137",
"0.5829058",
"0.58282137",
"0.58282137",
"0.58282137",
"0.5811997",
"0.5807693",
"0.58004415",
"0.5795537",
"0.57878965",
"0.57837254",
"0.57718086",
"0.57718086",
"0.5761988",
"0.5747509",
"0.5736398",
"0.57320523",
"0.5724907",
"0.5714112",
"0.57067806",
"0.56960917",
"0.5693857",
"0.5693241",
"0.56913567",
"0.56889254",
"0.56885284",
"0.5687281",
"0.5685357",
"0.56786346",
"0.5675187",
"0.56736434",
"0.5669727",
"0.5669322",
"0.5666006",
"0.56635445",
"0.56525743",
"0.5636334",
"0.5618057",
"0.56161875",
"0.56089956",
"0.56058",
"0.55908257",
"0.55878556",
"0.55875653",
"0.5587182",
"0.558478",
"0.55667",
"0.55526555",
"0.555091",
"0.5543909",
"0.5542873",
"0.5540519",
"0.5532696",
"0.55320716"
] | 0.6665828 | 0 |
Basic operation which calculates the square root of a value. | public T sqrt(T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void squareRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squareRoot ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public static double sqrt(double x)\n {\n double root = x, guess=0;\n\n if(x<0) return NaN;\n\n // the accuarcy test is percentual\n for(int i=0; (i<16) && ((guess > x*(1+5e-7f)) || (guess < x*(1-5e-7f))); i++)\n {\n root = (root+x/root)*0.5f; // a multiplication is faster than a division\n guess=root*root; // cache the square to the test\n }\n return root;\n }",
"public abstract void squareRootThis();",
"double getSquareNumber();",
"public final void sqrt() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tif ((mksa&0x0101010101010101L)!=0) throw new ArithmeticException\n\t\t(\"****Unit: sqrt(\" + symbol + \") is impossible\");\n\t\tvalue = Math.sqrt(value);\n\t\tfactor = Math.sqrt(factor);\n\t\tmksa = (mksa+underScore)>>1;\n\t\t/* Try to remove the squared edition */\n\t\tif ((symbol != null) && (symbol.length()>1)) {\n\t\t\tParsing t = new Parsing(symbol);\n\t\t\tint i=0;\n\t\t\tint pow=0;\n\t\t\tpow = getPower(t);\n\t\t\tif ((pow&1) != 0) \t// Odd power not possible\n\t\t\t\tpow = 0;\n\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\tif (pow == 2) symbol = symbol.substring(i, t.pos);\n\t\t\telse if (pow != 0) {\n\t\t\t\tpow /= 2;\n\t\t\t\tsymbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t}\n\t\t\tif ((pow == 0) && (t.length>0)) symbol = \"sqrt(\" + symbol + \")\";\n\t\t}\n\t}",
"public static double signedSqrt(double value) {\n return Math.copySign(value * value, value);\n }",
"public double squareRoot (double firstNumber){\n\t\tif (firstNumber < 0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Input \", \"Error message\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn -1111.1111;\n\t\t}\n\t\tdouble result = Math.sqrt(firstNumber);\n\t\treturn result;\n\t}",
"public static void squareRoot()\n\t{\n\t\tSystem.out.println(\"enter a non-negative number\");\n\t\tint c = scanner.nextInt();\n\t\tdouble epsilon = 1e-15; \n\t\tdouble t = c;\n\t\t\n\t\t while (Math.abs(t - c/t) > epsilon*t) \n\t\t\t{\n\t\t t = (c/t + t) / 2.0;\n\t\t } \n\t\tSystem.out.println(t);\n\t}",
"private double square(double x) {\r\n return x * x;\r\n }",
"public double square( double doublevalue){\n System.out.printf(\"\\nCalled square with double arguments: %f\\n\", doublevalue);\n return doublevalue * doublevalue;\n }",
"private static double sqrtPiSqr() {\n\t\tfinal double PI = Math.PI;\n\t\tfinal int POWER = 2;\n\n\t\t// Solving equation and return value\n\t\treturn Math.sqrt(Math.pow(PI*PI,POWER));\n\t}",
"public double square ( int number ) throws RemoteException;",
"@Test\n\tpublic void testSquare() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers(); \n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.sqrt(zero);\n\t\t\tassertEquals(ac.square(zero), expResult, 0);\n\t\t}\n\t\t\n\t}",
"private static double square (double x)\r\n\t{\r\n\t\treturn x * x;\r\n\t}",
"private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }",
"public static double square(double x)\n {\n return x * x;\n }",
"public Double squareRoot(Double advNum1) {\n answer = Math.sqrt(advNum1);\n return answer;\n }",
"public int sqrt(int x) {\n if(x==0) return 0;\n if(x<0) return -1;\n double y=(double)x/2;\n while(Math.abs(y*y-x)>0.00001){\n y=(y+x/y)/2;\n }\n return (int)y;\n }",
"private static double sq (double x) {\n return Math.pow(x, 2);\n }",
"public static int mySqrt(int x) {\n\t\tif (x <= 1) return x;\n\t\t\n double x1 = 0, x2 = 1;\n while (Math.abs(x1 - x2) > 0.000001) {\n x1 = x2;\n x2 = (x1 + x/x1) / 2;\n }\n return (int)x1;\n\t}",
"static double squareRoot(double num){\n double epsilon=.01;\n double ans=0;\n double increment=.001;\n int count=0;\n while(Math.abs(ans*ans-num)>epsilon){\n System.out.println(ans);\n ans+=increment;\n }\n if (Math.abs(ans*ans-num)<epsilon){\n System.out.println(\"Found square at count: \"+count+\" It is: \"+ans);\n return ans;\n }\n else {\n System.out.println(\"Failed to find square root\");\n return ans;\n }\n }",
"public int mySqrt(int x) {\n if(x < 2)\n return x;\n\n int tmp = x / 2;\n\n while(x / tmp < tmp) {\n tmp /= 2;\n }\n\n int l = tmp;\n int r = 2 * tmp;\n\n while(l <= r) {\n int mid = l + (r - l) / 2;\n\n tmp = x / mid;\n\n if(mid == tmp)\n return mid;\n\n if(tmp < mid)\n r = mid - 1;\n else\n l = mid + 1;\n }\n\n return r;\n }",
"public static double sqrt(double num) {\r\n\t\tif (num<0)throw new IllegalArgumentException(\"This method cannot find the square root of a ngeative number.\");\r\n\t\tdouble educatedGuess = num/2;\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\teducatedGuess = (num/educatedGuess+educatedGuess)/2;\r\n\t\t}\r\n\t\tint ans = (int) (((educatedGuess+.005)*100)/100);\r\n\t\treturn ans;\r\n\t\t}",
"public static float BAKSH_sqrt(float x) {\n float a;\n float x0 = 1f;\n\n int n = (int) (x % 5) + DEFAULT_ACCURACY >> 1;\n for (int i = 0; i < n; i++) {\n a = 0.5f * (x - x0 * x0) / x0;\n x0 = (x0 * x0 + 2f * a * x0 + a * a * 0.5f) / (x0 + a);\n }\n return x0;\n }",
"public static void main(String[] args) \r\n\t{\r\n\t\tSystem.out.println(squareRoot(90));\r\n\t\t\r\n\t\t\r\n\t}",
"public double sqrt(int n) {\n\t\tif(n<0)\n\t\t\treturn Double.NaN;\n\t\treturn Math.sqrt(n);\n\t}",
"public static double sqrt_safe(double x) {\n return Math.sqrt(Util.max(x, 0));\n }",
"public static int sqrt(final int a) {\n return (int) sqrt(a, 0, a);\n }",
"private double sqrt(double d) {\n\t\t\treturn 0;\n\t\t}",
"public int mySqrt(int x) {\n int exp100 = 0;\n int divBy100 = x;\n while (divBy100 >= 100) {\n exp100++;\n divBy100 /= 100;\n }\n\n long sqrt = 1;\n while (exp100-- > 0) sqrt *= 10;\n\n // When `int` sqrt = 46341, sqrt*sqrt becomes negative.\n // Integer.MAX_VALUE = 2,147,483,647\n while (sqrt * sqrt <= x) {\n sqrt++;\n }\n\n return (int)sqrt - 1;\n }",
"public static void main(String[] args) {\n\t\t\n\t\t//Reading input from the user\n\t\tSystem.out.println(\"Enter the number to find sqaure root of\");\n\t\tdouble num=AlgorithmUtility.userDouble();\n\t\t\n\t\t//Method 1- using static function of AlgorithmUtility class of\n\t\t//com.bridgelabz.util package\n\t\tdouble res=AlgorithmUtility.squareRoot(num);\n\t\t\n\t\tSystem.out.println(\"The square root of the given number using Newton's Method is: \"+ res);\n\t}",
"public int sqrt(int x) {\n if(x>=0)\n {\n long left=0;\n long right=x;\n long mid=0;\n while(left<=right)\n {\n mid=left+(right-left)/2;\n long tmp=mid*mid;\n if(tmp<mid){\n right=mid-1;\n }\n else if(tmp==x){\n return (int)mid;\n }\n else if(tmp<x){\n left=mid+1;\n }\n else{\n right=mid-1;\n }\n \n }\n return (int)right;\n }\n return -1;\n }",
"public static UNumber squareRoot(UNumber input) {\r\n\t\t\t\r\n\t\t\t\t\tUNumber theValue = new UNumber(input,numSignificantDigits);\t\t\t\t\t\r\n\t\t\t\t\tUNumber two = new UNumber(\"2.0\", 1, true, 40);\t\t\t\t\r\n\t\t\t\t\tUNumber newGuess = new UNumber(theValue,40);\t\t\t\t// Compute the estimate\r\n\t\t\t\t\tnewGuess.div(two);\r\n\t\t\t\t\tUNumber oldGuess = null;\t\t\t\t\t\t\t\t\t\t// Temporary value for determining when to terminate the loop\r\n\t\t\t\t\tint digitsMatch = 0;\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\toldGuess = newGuess;\t\t\t\t\t\t\t\t// Save the old guess\t\t\t\t\t\t\r\n\t\t\t\t\t\tUNumber temp = new UNumber(theValue,numSignificantDigits);\r\n\t\t\t\t\t\ttemp.div(oldGuess);\r\n\t\t\t\t\t\ttemp.add(oldGuess);\r\n\t\t\t\t\t\ttemp.div(two);\r\n\t\t\t\t\t\tnewGuess = new UNumber(temp, 40);\r\n\r\n\t\t\t\t\t\tdigitsMatch = howManyDigitsMatch(newGuess, oldGuess);\r\n\t\t\t\t\t} while (digitsMatch < numSignificantDigits);\t\t\t// Determine if the old and the new guesses are \"close enough\"\r\n\r\n\t\t\t\t\t//System.out.println(newGuess);\r\n\t\t\t\t\treturn newGuess;\r\n\t\t\t\t\r\n\t\t\t}",
"public double sqRoot(double num) {\n double base = 0;\n while (base < num) {\n base++;\n if ((base * base) == num) {\n return base;\n }\n }\n\n double termInSequence = ((base * base) + num) / (2 * base);\n for (int i = 0; i < 10; i++) {\n termInSequence = ((termInSequence * termInSequence) + num) / (2 * termInSequence);\n }\n return Double.parseDouble(String.format(\"%.9f\", termInSequence));\n }",
"public static double sq(double x) {\n return x * x;\n }",
"private void sqrtOperands() {\n\t\tif (text_Operand1.getText().isEmpty()) {\n\t\t\ttext_Operand3.setText(\"5\");\n\t\t}\n\t\tif (unaryOperandIssues())\n\t\t\treturn;\n\n\t\tif (text_Operand1.getText() != \"\")\n\t\t\tif (text_Operand1.getText().charAt(0) == '-') {\n\t\t\t\tlabel_errOperand1.setText(\"Negative Input not Allowed\");\n\t\t\t\ttext_Result.setText(\"\");\n\t\t\t\ttext_Resulterr.setText(\"\");\n\t\t\t\tlabel_Result.setText(\"\");\n\t\t\t\tlabel_errResult.setText(\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\tif (text_Operand1.getText().isEmpty()) {\n\t\t\ttext_Operand1.setText(\"0.0\");\n\t\t}\n\t\t// Check to see if both operands are defined and valid\n\n\t\t// Check to see if both operands are defined and valid\n\t\t// without doing the computation\n\n\t\tif (text_Operand2.getLength() != 0) {\n\t\t\ttext_Operand2.setText(\"\");\n\t\t\tlabel_errOperand2.setText(\"Second Input not Required.\");\n\t\t}\n\t\tif (text_Operand4.getLength() != 0) {\n\t\t\ttext_Operand4.setText(\"\");\n\t\t\tlabel_errOperand4.setText(\"Second Input not Required.\");\n\n\t\t}\n\n\t\t// If the operands are defined and valid, request the business logic method to\n\t\t// do the Square Root and return the\n\t\t// result as a String. If there is a problem with the actual computation, an\n\t\t// empty string is returned\n\t\tString theAnswer = perform.squareroot(); // Call the business logic Root method\n\t\tlabel_errResult.setText(\"\"); // Reset any result error messages from before\n\t\tString theAnswer1 = perform.squareroot1(); // Call the business logic Square Root method\n\t\tlabel_errResulterr.setText(\"\"); // Reset any result error messages from before\n\t\tif (theAnswer.length() > 0 || theAnswer1.length() > 0) { // Check the returned String to see if it is okay\n\t\t\ttext_Result.setText(theAnswer); // If okay, display it in the result field and\n\t\t\tlabel_Result.setText(\"Square Root\"); // change the title of the field to \"Square Root\".\n\t\t\tlabel_Result.setLayoutX(40);\n\t\t\tlabel_Result.setLayoutY(345);\n\t\t\ttext_Resulterr.setText(theAnswer1); // If okay, display it in the result field and\n\t\t\tcomboBoxRes.getSelectionModel().select(\"\\u221A\" + comboBox1.getSelectionModel().getSelectedItem());\n\t\t\t// change the title of the field to \"Square Root\"\n\t\t} else { // Some error occurred while doing the Square Root.\n\t\t\ttext_Result.setText(\"\"); // Do not display a result if there is an error.\n\t\t\tlabel_Result.setText(\"Result\"); // Reset the result label if there is an error.\n\t\t\tlabel_errResult.setText(perform.getResultErrorMessage()); // Display the error message.\n\t\t\ttext_Resulterr.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t// Reset the result label if there is an error.\n\t\t\tlabel_errResulterr.setText(perform.getResulterrErrorMessage()); // Display the error message.\n\t\t}\n\t}",
"public static double findSquareRoot(double num) {\n\t\tif(num>0)\n\t\t\treturn Math.sqrt(num);\n\t\telse \n\t\t\treturn 0;\n\t}",
"private static void calculateRoot() throws IllegalArgumentException {\n\t\tdouble[] userInputs = getInputs();\n\t\tdouble value = Main.root(userInputs[0], userInputs[1], userInputs[2]);\n\t\tSystem.out.println(\"The root value is: \" + value);\n\t}",
"public static int sqrt(int x) {\n\t\treturn (int) precomputedSqrt.charAt(x);\n\t}",
"public double r() { return Math.sqrt(x*x + y*y); }",
"public double square(double num) {\n\t\treturn num * num;\n\t}",
"public int square( int intvalue){\n System.out.printf(\"\\nCalled square with int arguments: %d\\n\", intvalue);\n return intvalue * intvalue;\n }",
"public static double sqr(double x) {\n\t\treturn x * x;\n\t}",
"public static double sqr(double x) {\n\t\treturn x * x;\n\t}",
"public double vectorSquareSumRoot()\n\t{\n\t\tdouble sum =0;\n\t\tfor(int i=0;i<vector.size();i++)\n\t\t{\n\t\t\tsum += (vector.get(i)*vector.get(i));\n\t\t}\n\t\treturn Math.sqrt(sum);\n\t}",
"public static int mySqrt(int x) {\n int res = 0;\n\t\twhile(true){\n\t\t\tif(res * res <= x){\n\t\t\t\tres ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn res - 1;\n\t\t\t}\n\t\t}\n }",
"public static int calculateSquare(int x) {\n int squareOfTheInt = x * x;\n return squareOfTheInt;\n //Write a method called `calculateSquareRoot` that takes an int as a parameter and returns the square root of that integer.\n private static double calculateSquareRoot ( int x){\n return Math.sqrt(x);\n }\n\n // Write a method called `toLowerCase` that takes a String as a parameter and returns the String in lower case.\n private static String toLowerCase (String string){\n return string.toLowerCase();\n }\n\n // Write a method called `isMultiple` that takes 2 int parameters and determines if the second is a multiple of the first.\n private static boolean isMultiple ( int x, int y){\n if (y % x == 0) {\n return true;\n }\n\n\n //Write a method called `prettyInteger` that takes an int as a parameter and prints the integer surrounded by asterisks\n private static void prettyInteger ( int x){\n for (int i = 0; i < x; i++) {\n System.out.print(\"*\");\n }\n System.out.print(x);\n for (int i = 0; i < x; i++) {\n System.out.print(\"*\");\n }\n }\n\n\n // Write a method called `random` that takes 2 ints as parameters and returns a random int within that range.\n private static int random ( int x, int y){\n int randomNum = (int) (Math.random() * ((x - 1) - y)) + y;\n return randomNum;\n }\n\n\n }",
"public static long sqr(long x) {\n\t\treturn x * x;\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(mySqrt(0));\n\t}",
"private void sqrt() throws Exception{\n\t\tif(stackEmpty()) throw new Exception(\"Stack ist leer\");\n\t\telse{\n\t\t\tvalue1 = stack.pop();\n\t\t\tstack.push(Math.sqrt(value1));\n\t\t}\n\t\t\n\t}",
"public double sqrMagnitude()\n {\n return ((x*x) + (y*y) + (z*z) + (w * w));\n }",
"public static int sqr(int x) {\n\t\treturn x * x;\n\t}",
"double getSquareDistance();",
"public float squared(){\r\n\t\treturn this.dottedWith( this );\r\n\t}",
"public abstract double evaluate(double value);",
"private void xSquared()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squared ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public int mySqrt(int x) {\n\t\t// If x is less than 1, it is corner case. \n\t\tif (x < 2) {\n\t\t\treturn x;\n\t\t}\n\n\t\tlong squared;\n\t\tint guess, left = 1, right = x;\n\t\twhile (left <= right) {\n\t\t\tguess = left + (right - left) / 2;\n\t\t\tsquared = (long) guess * guess;\n\t\t\tif (squared == x) {\n\t\t\t\treturn guess;\n\t\t\t}\n\n\t\t\tif (squared > x) {\n\t\t\t\tright = guess - 1;\n\t\t\t} else {\n\t\t\t\tleft = guess + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn left - 1;\n\t}",
"public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}",
"public boolean isSquared(){\n double sq = Math.sqrt(value);\n return (sq - Math.floor(sq)) == 0;\n }",
"public static float sqrt(float a, int iterations) {\n float x = 0.5f * (a + 1);\n for (int i = 0; i < iterations; i++) {\n x = 0.5f * (x + a / x);\n }\n return x;\n }",
"public int mySqrt2(int x) {\n\t\tif (x <= 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t// Binary Search. \n\t\tint left = 1, right = x;\n\t\twhile (left <= right) {\n\t\t\tint mid = left + (right - left) / 2;\n\t\t\t// Be careful with inequalities. \n\t\t\tif (mid <= x / mid && mid + 1 > x / (mid + 1)) {\n\t\t\t\treturn mid;\n\t\t\t}\n\n\t\t\tif (mid > x / mid) {\n\t\t\t\tright = mid - 1;\n\t\t\t} else {\n\t\t\t\tleft = mid + 1;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\treturn left;\n\t}",
"public static int mySqrt2(int x) {\n if (x < 2) return x;\n\n long num;\n int pivot, left = 2, right = x / 2;\n while (left <= right) {\n pivot = left + (right - left) / 2;\n num = (long)pivot * pivot;\n if (num > x) right = pivot - 1;\n else if (num < x) left = pivot + 1;\n else return pivot;\n }\n\n return right;\n }",
"public static int square(int number) {\n\t\tint answer=0;\r\n\t\tanswer = number * number;\r\n\t\treturn answer;\r\n\t\t\r\n\t}",
"public static int mySqrt1(int x) {\n if (x < 2) return x;\n int l = (int)Math.pow(Math.E, 0.5*Math.log(x));\n int r = l + 1;\n return (long)r*r > x ? l : r;\n }",
"public static double equation() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Please enter a value for x: \");\n double x = userInput.nextDouble();\n double output = (x * Math.pow(Math.exp(1), -x)) + Math.sqrt(1 - Math.pow(Math.exp(1), -x));\n System.out.print(\"The answer to the equation xe^-x + sqrt(1-(e^-x)) \");\n\tSystem.out.println(\" with that x is: \");\n return output;\n }",
"public static double sqr(double dValue) {\n double result = dValue * dValue;\n\n if (Double.isInfinite(result)) {\n String message = String.format(\n \"Overflow from squaring %g.\", dValue);\n logger.warning(message);\n }\n assert result >= 0.0 : result;\n return result;\n }",
"public static double calcRoot( double coef_B, double discrimSqrt, double denom ) \r\n {\n return 0;\r\n }",
"public double evaluate(double x);",
"public abstract double compute(double value);",
"static double root(double x, int n) {\n double err = Double.MAX_VALUE;\n\n double l = 1;\n double r = x;\n\n if (x >= 0 && x <= 1){\n l = x;\n r = 1;\n }\n\n double cur = (l + r)/2;\n\n while (err > OK_ERROR) {\n\n\n double powerNum = Math.pow(cur, n);\n\n err = Math.abs(powerNum - x);\n\n if (powerNum > x) {\n r = cur;\n } else {\n l = cur;\n }\n\n cur = (l + r)/2;\n }\n\n return cur;\n }",
"static int square(int num) {\n \tnum *= num;\n \tSystem.out.println(\"num in square method: \" + num);\n \treturn num;\n }",
"public int sqr(int n) {\n\t\tif(n>=Integer.MAX_VALUE)\n\t\t\treturn (int) Double.NaN;\n\t\treturn n*n;\n\t}",
"public static double sumSqrt(double[] a) {\n\t\tdouble sum = 0.0;\n\t\tfor(int i = 0; i<a.length; i++) {\n\t\t\tsum = sum + Math.sqrt(a[i]);\n\t\t}\n\t\treturn sum;\n\t}",
"public int squareIt(int a);",
"public double square(int number, Credential aCrendential) throws RemoteException;",
"public static int mySqrt(int x) {\n\t\tif (x == 0)\n\t\t\treturn 0;\n\n\t\tint left = 1;\n\t\tint right = x / 2;\n\t\tint result = 1;\n\n\t\twhile (left <= right) {\n\t\t\tlong mid = (left + right) / 2;\n\n\t\t\tif (mid * mid > x) {\n\t\t\t\tright = (int) mid - 1;\n\t\t\t} else {\n\t\t\t\tif ((mid + 1) * (mid + 1) > x) {\n\t\t\t\t\tresult = (int) mid;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tleft = (int) mid + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public double squareMagnitude() {\n\t\treturn x*x + y*y + z*z;\n\t}",
"public static float sqr(float x) {\n\t\treturn x * x;\n\t}",
"public static int square( int num ) {\n\t\treturn num * num;\n\t}",
"public static BigInteger sqrt(BigInteger n) {\n BigInteger xi = n.divide(primes.get(0));\n for (int i = 0; i < 3; i++) {\n xi = xi.subtract(xi.pow(2).subtract(n).divide(xi.multiply(new\n BigInteger(\"2\"))));\n }\n return (xi.pow(2).compareTo(n) > 0) ? xi : xi.add(ONE);\n }",
"@Override\n\t\tprotected int computeValue() {\n\t\t\treturn squareSide.get() * squareSide.get(); //return squared value\n\t\t}",
"public T magnitudeSquared();",
"public static double computeSqrtLevel(double selectivity, int level, SelectivityHolder holder) throws StandardException {\n if (level ==0) {\n selectivity *= holder.getSelectivity();\n return selectivity;\n }\n double incrementalSelectivity = 0.0d;\n incrementalSelectivity += holder.getSelectivity();\n for (int i =1;i<=level;i++)\n incrementalSelectivity=Math.sqrt(incrementalSelectivity);\n selectivity*=incrementalSelectivity;\n return selectivity;\n }",
"public void calculate(double a){\n System.out.println(\"Square = \"+(a * a));\n }",
"public static double realExec(double value)\n throws IllegalArgumentException\n {\n return real( value, lessFactorExec_, moreFactorExec_, doubleSample() );\n }",
"protected abstract double operation(double val);",
"public static Function<Integer, Integer> getSquareFunction() {\n return (Integer x) -> x * x;\n\n }",
"@Test\n public void testCircleCircum() {\n System.out.println(\"circleCircum\");\n int radius = 5;\n double expResult = 31.42;\n double result = JavaApplication1.circleCircum(radius);\n assertEquals(expResult, result, 0.0);\n }",
"public void square(int a)\n {\n System.out.println(a*a);\n }",
"double test(double a){\n System.out.println(\"double a: \"+a);\n return a*a;\n }",
"double getValue();",
"double getValue();",
"double getValue();",
"public Double square(Double advNum1) {\n answer = Math.pow(advNum1, 2);\n return answer;\n }",
"int main()\n{\n float s1,s2;\n scanf(\"%f%f\",&s1,&s2);\n printf(\"%.2f\",sqrt((s1*s1)+(s2*s2)));\n \n return 0;\n}",
"void multiply(double value);",
"public static final int accurateSqrt(int x) \n\t {\n\t int xn;\n\n\t if (x >= 0x10000) {\n\t if (x >= 0x1000000) {\n\t if (x >= 0x10000000) {\n\t if (x >= 0x40000000) {\n\t xn = table[x >> 24] << 8;\n\t } else {\n\t xn = table[x >> 22] << 7;\n\t }\n\t } else {\n\t if (x >= 0x4000000) {\n\t xn = table[x >> 20] << 6;\n\t } else {\n\t xn = table[x >> 18] << 5;\n\t }\n\t }\n\n\t xn = (xn + 1 + (x / xn)) >> 1;\n\t xn = (xn + 1 + (x / xn)) >> 1;\n\t return adjustment(x, xn);\n\t } else {\n\t if (x >= 0x100000) {\n\t if (x >= 0x400000) {\n\t xn = table[x >> 16] << 4;\n\t } else {\n\t xn = table[x >> 14] << 3;\n\t }\n\t } else {\n\t if (x >= 0x40000) {\n\t xn = table[x >> 12] << 2;\n\t } else {\n\t xn = table[x >> 10] << 1;\n\t }\n\t }\n\n\t xn = (xn + 1 + (x / xn)) >> 1;\n\n\t return adjustment(x, xn);\n\t }\n\t } else {\n\t if (x >= 0x100) {\n\t if (x >= 0x1000) {\n\t if (x >= 0x4000) {\n\t xn = (table[x >> 8]) + 1;\n\t } else {\n\t xn = (table[x >> 6] >> 1) + 1;\n\t }\n\t } else {\n\t if (x >= 0x400) {\n\t xn = (table[x >> 4] >> 2) + 1;\n\t } else {\n\t xn = (table[x >> 2] >> 3) + 1;\n\t }\n\t }\n\n\t return adjustment(x, xn);\n\t } else {\n\t if (x >= 0) {\n\t return adjustment(x, table[x] >> 4);\n\t }\n\t }\n\t }\n\t \n\t //illegalArgument();\n\t return -1;\n\t }",
"public float lengthSquared ( );",
"private int squareRoot(int dataSize) {\n int binNum = currentBinNum;\n\n if (dataSize != 0) {\n binNum = 1 + (int) (.5 + Math.pow((double) dataSize, 0.5));\n }\n return binNum;\n }",
"public double std(ArrayList<Double> x) {\n double sum = 0;\n double round;\n for (int i = 0; i < x.size(); i++) {\n sum += Math.pow((x.get(i) - average(x)), 2) / x.size();\n }\n round = Math.sqrt(sum) * 100;\n round = Math.round(round);\n round /= 100;\n return round;\n\n\n }"
] | [
"0.6864932",
"0.673404",
"0.66196686",
"0.66063356",
"0.6597877",
"0.65652776",
"0.6504692",
"0.64666593",
"0.641844",
"0.6415015",
"0.6399715",
"0.6389285",
"0.63617074",
"0.63283426",
"0.6325073",
"0.62392193",
"0.62317073",
"0.6206918",
"0.620364",
"0.61549205",
"0.6128264",
"0.60732234",
"0.6044502",
"0.6037755",
"0.6032196",
"0.60102993",
"0.600829",
"0.59762347",
"0.59578305",
"0.59539086",
"0.59341294",
"0.593026",
"0.59286857",
"0.5926222",
"0.5918798",
"0.5902898",
"0.59018475",
"0.5867767",
"0.5864641",
"0.584906",
"0.58239007",
"0.5807183",
"0.57968146",
"0.57968146",
"0.5787486",
"0.57835776",
"0.5767675",
"0.57299566",
"0.57287425",
"0.57259536",
"0.57109326",
"0.57071674",
"0.5698315",
"0.5694723",
"0.5657338",
"0.5652207",
"0.56382024",
"0.56214917",
"0.56175756",
"0.5607967",
"0.56027",
"0.5595895",
"0.5581711",
"0.55812794",
"0.5579735",
"0.55770797",
"0.55756354",
"0.5568546",
"0.55602515",
"0.55487055",
"0.55478734",
"0.55438614",
"0.5537061",
"0.55353135",
"0.5527045",
"0.5516611",
"0.5513554",
"0.55079937",
"0.54866767",
"0.54701066",
"0.5469238",
"0.54680616",
"0.54486644",
"0.5414752",
"0.54128385",
"0.53951794",
"0.53821677",
"0.53809",
"0.5374308",
"0.5373308",
"0.53722906",
"0.53722906",
"0.53722906",
"0.53621864",
"0.5359399",
"0.53384185",
"0.53231055",
"0.53141785",
"0.5308241",
"0.5304277"
] | 0.79186773 | 0 |
Convert a String to a T value | public T getFromString(String str) throws NumberFormatException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T convert(String value);",
"public T parse(String value);",
"private T convert(String value)\n {\n if (value == null)\n {\n return null;\n }\n\n Object result = null;\n\n if (this.converter != null)\n {\n try\n {\n result = converter.convert(value);\n }\n catch (Exception e)\n {\n throw ExceptionUtils.throwAsRuntimeException(e);\n }\n }\n else if (String.class.equals(configEntryType))\n {\n result = value;\n }\n else if (Class.class.equals(configEntryType))\n {\n result = ClassUtils.tryToLoadClassForName(value);\n }\n else if (Boolean.class.equals(configEntryType))\n {\n Boolean isTrue = \"TRUE\".equalsIgnoreCase(value);\n isTrue |= \"1\".equalsIgnoreCase(value);\n isTrue |= \"YES\".equalsIgnoreCase(value);\n isTrue |= \"Y\".equalsIgnoreCase(value);\n isTrue |= \"JA\".equalsIgnoreCase(value);\n isTrue |= \"J\".equalsIgnoreCase(value);\n isTrue |= \"OUI\".equalsIgnoreCase(value);\n\n result = isTrue;\n }\n else if (Integer.class.equals(configEntryType))\n {\n result = Integer.parseInt(value);\n }\n else if (Long.class.equals(configEntryType))\n {\n result = Long.parseLong(value);\n }\n else if (Float.class.equals(configEntryType))\n {\n result = Float.parseFloat(value);\n }\n else if (Double.class.equals(configEntryType))\n {\n result = Double.parseDouble(value);\n }\n\n return (T) result;\n }",
"public abstract T parse(String str);",
"private T parse(String value)\n\t\t{\n\t\t\treturn null;\n\t\t}",
"<S> S fromStr(String s, Class<S> clazz);",
"public abstract T parse(String s);",
"public IValuable parse(String value);",
"@Override\r\n\t@SuppressWarnings(\"unchecked\")\r\n\tpublic <T> T asObject(String string, Class<T> valueType) throws IllegalArgumentException {\r\n\t\t// at this point value type is guaranteed to be a Locale\r\n\t\tint dashIndex = string.indexOf('-');\r\n\t\tif (dashIndex == -1) {\r\n\t\t\tthrow new IllegalArgumentException(String.format(\"Cannot convert |%s| to locale instance.\", string));\r\n\t\t}\r\n\t\treturn (T) new Locale(string.substring(0, dashIndex), string.substring(dashIndex + 1));\r\n\t}",
"protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }",
"default T convert(final String value, final String format) {\n return convert(value);\n }",
"private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }",
"private static Object makeValue(String string, Schema schema) {\n if (string == null) {\n return null;\n }\n\n try {\n switch (schema.getType()) {\n case BOOLEAN:\n return Boolean.valueOf(string);\n case STRING:\n return string;\n case FLOAT:\n return Float.valueOf(string);\n case DOUBLE:\n return Double.valueOf(string);\n case INT:\n return Integer.valueOf(string);\n case LONG:\n return Long.valueOf(string);\n case ENUM:\n // TODO: translate to enum class\n if (schema.hasEnumSymbol(string)) {\n return string;\n } else {\n try {\n return schema.getEnumSymbols().get(Integer.valueOf(string));\n } catch (IndexOutOfBoundsException ex) {\n return null;\n }\n }\n case UNION:\n Object value = null;\n for (Schema possible : schema.getTypes()) {\n value = makeValue(string, possible);\n if (value != null) {\n return value;\n }\n }\n return null;\n case NULL:\n return null;\n default:\n // FIXED, BYTES, MAP, ARRAY, RECORD are not supported\n throw new RuntimeException(\n \"Unsupported field type:\" + schema.getType());\n }\n } catch (NumberFormatException ex) {\n return null;\n }\n }",
"public static <T> T parse(String value, Class<T> clz){\r\n\r\n if (StringUtils.isEmpty(value)) {\r\n return null;\r\n }\r\n try {\r\n return mapper.readValue(value, clz);\r\n }\r\n catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n }",
"private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }",
"public String getString(T value);",
"public abstract T parse(Object valueToParse, Type type);",
"public String makeConversion(String value);",
"public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}",
"public static Object parseStringObject(String value, Schema.Type dataType) throws TimeSeriesException {\r\n\t\tswitch(dataType) {\r\n\t\t\tcase DOUBLE: \r\n\t\t\t\treturn new Double(Double.parseDouble(value));\r\n\t\t\tcase BOOLEAN: \r\n\t\t\t\treturn new Boolean(Boolean.parseBoolean(value));\r\n\t\t\tcase FLOAT: \r\n\t\t\t\treturn new Float(Float.parseFloat(value));\r\n\t\t\tcase INT: \r\n\t\t\t\treturn new Integer(Integer.parseInt(value));\r\n\t\t\tcase LONG: \r\n\t\t\t\treturn new Long(Long.parseLong(value));\r\n\t\t\tcase STRING: \r\n\t\t\t\treturn value;\r\n\t\t\tcase BYTES: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t\tdefault: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t}\r\n\t}",
"public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }",
"protected abstract SimpleType doParseString(String s);",
"@SuppressWarnings(\"rawtypes\")\n public Object convert(Class type, String value) throws ConversionException {\n return value;\n }",
"private Variable stringToVariable(String value, int smiSyntax) {\n Variable var = AbstractVariable.createFromSyntax(smiSyntax);\n try {\n if (var instanceof AssignableFromString) {\n ((AssignableFromString) var).setValue(value);\n } else if (var instanceof AssignableFromInteger) {\n ((AssignableFromInteger) var).setValue(Integer.valueOf(value));\n } else if (var instanceof AssignableFromLong) {\n ((AssignableFromLong) var).setValue(Long.valueOf(value));\n } else {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString());\n var = null;\n }\n } catch (IllegalArgumentException e) {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString(), e);\n var = null;\n }\n return var;\n }",
"public static <T> T parseSimple(String value, Class<T> argType) {\n if (UUID.class.equals(argType)) {\n try {\n return argType.cast(UUID.fromString(value));\n } catch (Exception e) {\n throw wrapException(\n BadRequest,\n e,\n UUID.randomUUID().toString());\n }\n }\n\n try {\n return argType.getConstructor(String.class).newInstance(value);\n } catch (Exception e) {\n return JSonUtil.parseJson(value, argType)\n .orElseThrow(() -> wrapException(\n BadRequest,\n new IllegalArgumentException(\"Unable to parse \" + value),\n UUID.randomUUID().toString()));\n }\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void setStringValue(final String valueString) {\n // figure out the type of T and create object based on T=Integer, T=Double, T=Boolean, T=Valuable\n if (value instanceof List<?>) {\n List list = (List) get();\n list.clear();\n // remove start and end spaces\n String valueString2 = valueString.replaceAll(\"^\\\\s+\", \"\");\n valueString2 = valueString2.replaceAll(\"\\\\s+$\", \"\");\n // split into space-separated bits\n String[] valuesString = valueString2.split(\"\\\\s+\");\n for (int i = 0; i < valuesString.length; i++) {\n if (theClass.equals(Integer.class)) {\n list.add(new Integer(valuesString[i % valuesString.length]));\n } else if (theClass.equals(Double.class)) {\n list.add(new Double(valuesString[i % valuesString.length]));\n } else if (theClass.equals(Boolean.class)) {\n String str = valuesString[i % valuesString.length].toLowerCase();\n list.add(str.equals(\"1\") || str.equals(\"true\") || str.equals(\"yes\"));\n } else if (theClass.equals(String.class)) {\n list.add(new String(valuesString[i % valuesString.length]));\n }\n }\n return;\n }\n\n if (theClass.equals(Integer.class)) {\n setValue(new Integer(valueString));\n return;\n }\n if (theClass.equals(Double.class)) {\n \tsetValue(new Double(valueString));\n return;\n }\n if (theClass.equals(Boolean.class)) {\n final String valueString2 = valueString.toLowerCase();\n if (valueString2.equals(\"yes\") || valueString2.equals(\"true\")) {\n \tsetValue(Boolean.TRUE);\n return;\n } else if (valueString2.equals(\"no\") || valueString2.equals(\"false\")) {\n \tsetValue(Boolean.FALSE);\n return;\n }\n }\n if (theClass.equals(Function.class)) {\n \tfinal Function.Constant param = new Function.Constant(valueString);\n \tsetValue(param);\n param.getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));\n return;\n }\n\n if (theClass.isEnum()) {\n \tif (possibleValues == null) {\n \t\tpossibleValues = (T[]) theClass.getDeclaringClass().getEnumConstants();\n \t}\n for (final T t : possibleValues) {\n if (valueString.equals(t.toString())) {\n \tsetValue(t);\n return;\n }\n }\n throw new IllegalArgumentException(\"Input 104: value \" + valueString + \" not found. Select one of \" + Arrays.toString(possibleValues));\n }\n\n // call a string constructor of theClass\n try {\n Constructor ctor;\n Object v = valueString;\n try {\n \tctor = theClass.getDeclaredConstructor(String.class);\n } catch (NoSuchMethodException e) {\n \t// we get here if there is not String constructor\n \t// try integer constructor instead\n \ttry {\n \t\tif (valueString.startsWith(\"0x\")) {\n \t\t\tv = Integer.parseInt(valueString.substring(2), 16);\n \t\t} else {\n \t\t\tv = Integer.parseInt(valueString);\n \t\t}\n \tctor = theClass.getDeclaredConstructor(int.class);\n \t\n \t} catch (NumberFormatException e2) {\n \t// could not parse as integer, try double instead\n \t\tv = Double.parseDouble(valueString);\n \tctor = theClass.getDeclaredConstructor(double.class);\n \t}\n }\n ctor.setAccessible(true);\n final Object o = ctor.newInstance(v);\n setValue(o);\n if (o instanceof BEASTInterface) {\n ((BEASTInterface) o).getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));\n }\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Input 103: type mismatch, cannot initialize input '\" + getName() +\n \"' with value '\" + valueString + \"'.\\nExpected something of type \" + getType().getName() +\n \".\\n\" + (e.getMessage() != null ? e.getMessage() : \"\"));\n }\n }",
"<T> T fromJson(String source, JavaType type);",
"protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }",
"Object transform(String cellValue, Type toValueType) throws Throwable;",
"public static <T> T createObjectInstance(String content, Class<T> valueType) {\n\t\t ObjectMapper objectMapper = new ObjectMapper();\n\t\t try {\n\t\t\treturn objectMapper.readValue(content, valueType);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t }",
"T translate(final String stringRepresentation);",
"public abstract void fromString(String s, String context);",
"<T> T fromJson(String source, Class<T> type);",
"public static Result<MessageType, JSONException> fromString(String str) {\r\n return Result.ofRuntime(() -> valueOf(str))\r\n .mapError(ignored -> new JSONException(\"command not recognised\"));\r\n }",
"private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}",
"public static JavaDataType fromString(String type) {\r\n switch (type) {\r\n case \"String\":\r\n return STRING;\r\n case \"Integer\":\r\n return INTEGER;\r\n case \"Boolean\":\r\n return BOOLEAN;\r\n case \"Double\":\r\n return DOUBLE;\r\n case \"Float\":\r\n return FLOAT;\r\n case \"Long\":\r\n return LONG;\r\n }\r\n return null;\r\n }",
"@Override\n\t\t\tprotected Type convert(String text) {\n\t\t\t\tType t = null;\n\t\t\t\ttry {\n\t\t\t\t\t// return null if the types do not match the\n\t\t\t\t\t// original\n\t\t\t\t\tt = Type.getType(text);\n\t\t\t\t\tif (t == null || !match(t, original)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {}\n\t\t\t\treturn t;\n\t\t\t}",
"public static Object convertString(Class targetType, String value) {\r\n\t\tValidate.notNull(targetType, \"Null targetType not allowed.\");\r\n\t\tif (value == null) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, String.class)) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, Integer.class)) {\r\n\t\t\treturn Integer.valueOf(value);\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, int.class)) {\r\n\t\t\treturn Integer.valueOf(value);\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, Long.class)) {\r\n\t\t\treturn Long.valueOf(value);\r\n\t\t}\r\n\t\tif (ClassUtils.isAssignable(targetType, long.class)) {\r\n\t\t\treturn Long.valueOf(value);\r\n\t\t}\r\n\t\tBoolean bValue = BooleanUtils.toBooleanObject(value);\r\n\t\tif (bValue != null) {\r\n\t\t\treturn bValue;\r\n\t\t}\r\n\t\t\r\n\t\tthrow new MonetaException(\"Property type not supported\")\r\n\t\t\t.addContextValue(\"targetType\", targetType.getName());\r\n\t}",
"@Override\r\n\tprotected Object stringToValue(String valueString) throws ParseException {\r\n\t\ttry {\r\n\t\t\treturn PersistentBean.findOrCreate(beanClass, valueString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ParseException(e.getMessage(), 0);\r\n\t\t}\r\n\t}",
"public static <T> T loadJson(String input, Class<T> classOfT) {\n Gson gson = new GsonBuilder().create();\n return gson.fromJson(input, classOfT);\n }",
"protected <T> T deserialize(final String value, final Class<T> type) throws JsonDeserializationException {\n return json.deserialize(value, type);\n }",
"public static Value makeTemporaryStr(String s) {\n if (s == null)\n throw new NullPointerException();\n Value r = new Value();\n r.str = s;\n return r; // don't canonicalize here!\n }",
"Optional<T> parse(@Nonnull String s);",
"T convert(S s) throws UnconvertableException;",
"@SuppressWarnings({\"unchecked\", \"deprecation\"})\n protected static <T extends ExpandableStringEnum<T>> T fromString(String name, Class<T> clazz) {\n if (name == null) {\n return null;\n }\n\n ConcurrentHashMap<String, ?> clazzValues = VALUES.computeIfAbsent(clazz, key -> new ConcurrentHashMap<>());\n T value = (T) clazzValues.get(name);\n\n if (value != null) {\n return value;\n } else {\n MethodHandle ctor = CONSTRUCTORS.computeIfAbsent(clazz, ExpandableStringEnum::getDefaultConstructor);\n\n if (ctor == null) {\n // logged in ExpandableStringEnum::getDefaultConstructor\n return null;\n }\n\n try {\n value = (T) ctor.invoke();\n } catch (Throwable e) {\n LOGGER.warning(\"Failed to create {}, default constructor threw exception\", clazz.getName(), e);\n return null;\n }\n\n return value.nameAndAddValue(name, value, clazz);\n }\n }",
"public static Object parseStringObject(String value, String dataType) throws TimeSeriesException {\r\n\t\treturn parseStringObject(value, getSchemaType(dataType));\r\n\t}",
"public static Value makeStr(String s) {\n Value r = new Value();\n r.str = s;\n return canonicalize(r);\n }",
"public static TripStatus fromString(String str) {\n\t\tfor (TripStatus status : values()) {\n\t\t\tif (StringUtils.equalsIgnoreCase(status.name, str)) {\n\t\t\t\treturn status;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"String convertStringForStorage(String value);",
"public <V> V readValue(String jsonString, Type valueType) throws JsonException {\n try (StringReader reader = new StringReader(jsonString)) {\n return readValue(reader, valueType);\n }\n }",
"private static final Object getFieldValue(Field field, String value) {\r\n if (String.class == field.getType()) {\r\n // for fields of type String return value as-is\r\n return value;\r\n } else {\r\n // in all other cases try to construct an object using it's class single-arg constructor\r\n return newObjectFromString(field.getType(), value);\r\n }\r\n }",
"private static Object parseStringToObject(String text, Class ObjectType) {\n if (ObjectType == Integer.class) return Integer.parseInt(text);\n else if (ObjectType == Float.class) return Float.parseFloat(text);\n else if (ObjectType == Double.class) return Double.parseDouble(text);\n return null;\n }",
"public Object makeValue(String source) throws Exception\n {\n if (isNil)\n return null;\n if (fromStringMethod == null) {\n try {\n fromStringMethod = MethodCache.getInstance().getMethod(javaType, \"fromString\", STRING_CLASS);\n } catch (Exception e) {\n throw new IntrospectionException(e.toString());\n }\n }\n return fromStringMethod.invoke(null,new Object [] { source });\n }",
"@JsonCreator\n public static IntermediateType fromString(final String text) {\n if (text != null) {\n for (final IntermediateType v : IntermediateType.values()) {\n if (text.equalsIgnoreCase(v.text)) {\n return v;\n }\n }\n }\n throw new IllegalArgumentException(\"Unrecognized type: \" + text);\n }",
"public abstract void parseValue(String value);",
"static <T> T m61432a(T t, String str) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException(str);\n }",
"@FunctionalInterface\n\tpublic interface StringConverter<T> {\n\t\tString convert(T value);\n\t}",
"<T> T fromJson(String json, Class<T> type);",
"public abstract String toText(T value);",
"public interface Parser<T> {\n\t\n\t/**\n\t * Il metodo che deve essere completato per poter analizzare la stringa\n\t * @param value la stringa da analizzare\n\t * @return il tipo di dato voluto\n\t */\n\tpublic T parse(String value);\n\t\n}",
"public Object parse(String arg) {\n return (arg);\n }",
"public static <T> T convertJsonStringToObject(String json,\n\t\t\tClass<T> valueType) {\n\t\ttry {\n\t\t\treturn mapper.readValue(json, valueType);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Error converting Json String [\" + json\n\t\t\t\t\t+ \"] to [\" + valueType.getCanonicalName() + \"]\", e);\n\t\t}\n\t}",
"public static Type Type(String str) {\n\t\ttry {\n\t\t\tJavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);\n\t\t\tBinaryInputStream bin = new BinaryInputStream(jin);\n\t\t\tBinaryAutomataReader reader = new BinaryAutomataReader(bin,\n\t\t\t\t\tTypes.SCHEMA);\n\t\t\tAutomaton automaton = reader.read();\n\t\t\treader.close();\n\n\t\t\treturn Type.construct(automaton);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"runtime failure constructing type\", e);\n\t\t}\n\t}",
"public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}",
"public static VariableValue createValueObject(String value) {\n\t\tif (value == null)\n\t\t\treturn null;\n\t\treturn new StringValue(value);\n\t}",
"public interface StringTranslation<T> {\n\n /**\n * Method defines hos to change string representation to instance of object.\n * @param stringRepresentation string that will be dispatched into object.\n * @return instance of expected object.\n */\n T translate(final String stringRepresentation);\n\n /**\n * Helper method that gives a hint, in case when during reading a null indicator would be found\n * what will should be returned. It can look kind of artificial, but this was introduced to solve problem\n * with raw types, and define behaviour of such translation, externally and give ability of control for user.\n *\n * To understand please have a look for example StringToDoubleTranslation vs StringToRawDoubleTranslation.\n * @return null representation.\n */\n T getNullRepresentation();\n}",
"protected abstract MAJOR_JAVA_TYPE parseValue(@Nonnull String value) throws ParsingException;",
"T convert(S e);",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"public void parse(T obj) {\n }",
"private static Object convert(final String identifier, final Class<?> type, Object value) throws ParseException {\n if (type == Date.class) {\n return toDate(value, identifier);\n }\n if (type == PeriodDuration.class && value instanceof String) {\n try {\n return new PeriodDurationType((String) value);\n } catch (IllegalArgumentException ex) {\n // TODO: \"log and continue\" is not appropriate here, since the user can not know that his data is lost.\n LOGGER.log(Level.WARNING, \"Bad period duration value: {0} (property: {1})\",\n new Object[] {value, identifier});\n return null;\n }\n }\n if (InternationalString.class.isAssignableFrom(type) && value instanceof String) {\n return new SimpleInternationalString(value.toString());\n }\n if (Charset.class.isAssignableFrom(type) && value instanceof String) {\n return Charset.forName(value.toString());\n }\n if (Locale.class.isAssignableFrom(type) && value instanceof String) {\n String text = value.toString();\n text = text.substring(text.indexOf('.') + 1).trim();\n return Locales.parse(text);\n }\n if (!CharSequence.class.isAssignableFrom(type) && (value instanceof CharSequence)) {\n String text = value.toString();\n if (text.startsWith(\"nilReason:\")) {\n try {\n value = NilReason.valueOf(text.substring(\"nilReason:\".length())).createNilObject(type);\n } catch (URISyntaxException | IllegalArgumentException e) {\n throw new ParseException(\"Illegal value: \\\"\" + text + \"\\\".(property:\" + identifier + \")\", e);\n }\n } else {\n final boolean isCodeList = CodeList.class.isAssignableFrom(type);\n if (isCodeList || type == Locale.class || type == Charset.class || type.isEnum()) {\n text = text.substring(text.indexOf('.') + 1).trim();\n if (isCodeList) {\n value = Types.forCodeName(type.asSubclass(CodeList.class), text, false);\n } else {\n value = text;\n }\n }\n }\n }\n return value;\n }",
"public void set_T(String str_T) {\n this.t.set_Atomic_Symbol(str_T);\n }",
"public Token toToken(String s);",
"public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"T convert(S source) throws ConversionException;",
"public DataValue parse(String value) {\r\n \tthrow new RuntimeException(\"no implementation\");\r\n }",
"@JsonCreator\n public static DataType fromString(String name) {\n return fromString(name, DataType.class);\n }",
"public static WebDriverStrategyType fromString(String value) {\n try {\n return valueOf(value.toUpperCase());\n } catch (IllegalArgumentException e) {\n return UNKNOWN;\n }\n }",
"private static Object parseData(String source, Class<?> expectedType){\n\t\tif(expectedType.equals(Integer.class)) return new Integer(source);\n\t\tif(expectedType.equals(Boolean.class)) return new Boolean(source);\n\t\tif(expectedType.equals(Double.class)) return new Double(source);\n\t\treturn source;\n\t}",
"@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }",
"public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }",
"public Object parseValue(String expr);",
"public static ResultType fromValue(String v) {\n return Arrays.stream(values()).\n filter(s -> s.value.equals(v)).\n findFirst().orElseThrow(() -> new IllegalArgumentException(v));\n }",
"public static MElement createFromStrings(String attribute, String value,\n MFeatureType type) {\n AbstractMFeature2 mf = AbstractMFeature2.getInstance(attribute,\n value);\n return getInstance(mf, type);\n }",
"@Override\n\tpublic OrdineTestata fromString(String ordineTestata) {\n\t\treturn null;\n\t}",
"@JsonCreator\n public static QueryExecutionType fromString(String value) {\n QueryExecutionType[] items = QueryExecutionType.values();\n for (QueryExecutionType item : items) {\n if (item.toString().equalsIgnoreCase(value)) {\n return item;\n }\n }\n return null;\n }",
"public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }",
"<T> T getElementFromString(final String elementString, final Class<T> movilizerElementClass);",
"public final <T> T m2178a(String str, Class<T> cls, T t, JsonValue jsonValue) {\n JsonValue a = jsonValue.m2259a(str);\n return a == null ? t : mo511a((Class) cls, null, a);\n }",
"private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }",
"public static DsoType parse(String text) {\n DsoType result = map.get(text);\n if (result == null) {\n throw new IllegalArgumentException(\"Unknown type: '\" + text + \"'\");\n }\n return result;\n }",
"public <T> T deserialize(String jsonString, Class<T> valueType) {\n\t\tlong time = System.currentTimeMillis();\n\t\ttry {\n\t\t\tlogger.debug(\"Deserializer Json Instance: \" + this);\n\t\t\treturn mapper.readValue(jsonString, valueType);\n\t\t} catch (IOException ex) {\n\t\t\tlogger.error(\"Error deserializing the given json: \", ex);\n\t\t} finally {\n\t\t\tlogger.info(\"Deserialize in \" + (System.currentTimeMillis() - time) + \" ms.\");\n\t\t}\n\t\treturn null;\n\t}",
"public static DataValue parseValue(String value) {\r\n \tif(value == null) {\r\n \t\tthrow new IllegalArgumentException(\"null value\");\r\n \t}\r\n \t\r\n \tint i = value.indexOf(\",\");\r\n \tif(i < 0 || i == value.length()) {\r\n \t\tthrow new IllegalArgumentException(\"wrong string format\");\r\n \t}\r\n \t\r\n \tString rmName = value.substring(0, i);\r\n \tDataValue dv = dataValueMap.get(rmName);\r\n \t\r\n \tif(dv == null) {\r\n \t\tthrow new IllegalArgumentException(\"unsupported RM class[\" + rmName + \"]\");\r\n \t}\r\n \t\r\n \tString v = value.substring(i + 1).trim(); \t\r\n \treturn dv.parse(v);\r\n }",
"public Value(String s) {\n string = s;\n itemClass = String.class;\n type = DataType.STRING;\n }"
] | [
"0.8227569",
"0.78811145",
"0.7081964",
"0.6906121",
"0.6869478",
"0.6835971",
"0.6766502",
"0.66612166",
"0.6579966",
"0.65412986",
"0.6493842",
"0.6478884",
"0.6441758",
"0.6430438",
"0.63135964",
"0.63134253",
"0.62975097",
"0.6296117",
"0.62848026",
"0.62390697",
"0.62251204",
"0.62189645",
"0.620235",
"0.6179191",
"0.615123",
"0.60815215",
"0.60793746",
"0.60742116",
"0.6061745",
"0.60478765",
"0.604046",
"0.6021862",
"0.60204786",
"0.59997267",
"0.59661007",
"0.59524703",
"0.5894723",
"0.58906937",
"0.5890447",
"0.58632714",
"0.5853845",
"0.58521765",
"0.5846346",
"0.58447224",
"0.5830763",
"0.58175635",
"0.5804799",
"0.58043385",
"0.5790648",
"0.5787963",
"0.57427526",
"0.56990755",
"0.5697064",
"0.56965816",
"0.56927145",
"0.5692056",
"0.56840146",
"0.5676314",
"0.56741524",
"0.5669962",
"0.5662277",
"0.5655329",
"0.56543654",
"0.5649543",
"0.5646408",
"0.56399703",
"0.5636397",
"0.56291455",
"0.56027067",
"0.56027067",
"0.56027067",
"0.56027067",
"0.56027067",
"0.56027067",
"0.5588372",
"0.55847466",
"0.55732906",
"0.5568118",
"0.556757",
"0.555791",
"0.55381495",
"0.5537866",
"0.55280626",
"0.5527749",
"0.551541",
"0.55057317",
"0.5497187",
"0.5483371",
"0.54820687",
"0.5481517",
"0.5471301",
"0.5469067",
"0.54581726",
"0.54523945",
"0.54444957",
"0.54395086",
"0.54373896",
"0.5424673",
"0.54151314",
"0.5411231"
] | 0.7467122 | 2 |
Check a String on a possibility of converting | public boolean isCorrect(String str); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canConvert(String s);",
"public boolean canConvertFromString(String str) {\r\n if (this == BOOLEAN) {\r\n return str.equals(\"true\") || str.equals(\"false\");\r\n }\r\n\r\n if (this == CHAR && str.length() == 0) {\r\n return false;\r\n }\r\n\r\n try {\r\n if (this == INT) {\r\n Integer.parseInt(str);\r\n } else if (this == LONG) {\r\n Long.parseLong(str);\r\n } else if (this == SHORT) {\r\n Short.parseShort(str);\r\n } else if (this == DOUBLE) {\r\n Double.parseDouble(str);\r\n } else if (this == FLOAT) {\r\n Float.parseFloat(str);\r\n }\r\n } catch (NumberFormatException ex) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }",
"private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }",
"boolean mo1887a(String str);",
"String validate(String toValidate);",
"public boolean canProvideString();",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }",
"public abstract boolean accepts(String string);",
"private static void checkFormat(String str) {\n if (str.length() != 8)\n throw new IllegalArgumentException(\"length has too be 8\");\n try {\n Integer.parseInt(str.substring(0,2)); //Hours\n Integer.parseInt(str.substring(3,5)); //Minutes\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"These numbers are wrong\");\n }\n if (str.charAt(2) != ':') {\n throw new IllegalArgumentException(\"requires colon between times\");\n }\n if (str.charAt(5) != ' ') {\n throw new IllegalArgumentException(\"requires space between time and period\");\n }\n String mStr = str.substring(6);\n if (!mStr.equals(\"PM\") && !mStr.equals(\"AM\")) {\n throw new IllegalArgumentException(\"Must be AM or PM\");\n }\n }",
"public boolean FromString(String string) {\n if (string.length() >= 38 && string.charAt(0) == '{' && string.charAt(37) == '}') {\n string = string.substring(1, 37);\n } else if (string.length() > 36) {\n string = string.substring(0, 36);\n }\n if (string.length() == 36) {\n string = string.substring(0, 36).replaceAll(\"-\", \"\");\n }\n if (string.length() != 32) {\n string = string.substring(0, 32);\n }\n data = new byte[16];\n for (int i = 0; i < 16; ++i) {\n data[i] = (byte) Integer.parseInt(string.substring(i * 2, (i * 2) + 2), 16);\n }\n return true;\n }",
"@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }",
"public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}",
"public boolean isString();",
"public boolean checkInput(String str)\n {\n try\n {\n Integer.parseInt(str);\n } \n catch(NumberFormatException ex)\n {\n return false;\n } \n return true;\n }",
"private boolean okay( String s )\n {\n try{\n double x = Double.parseDouble( s );\n return true;\n }\n catch(Exception e)\n {\n return false;\n }\n }",
"boolean checkChar(String s1, String s2);",
"public boolean isParsable(String input){\n boolean parsable = true;\n try{\n Integer.parseInt(input);\n }catch(NumberFormatException e){\n parsable = false;\n }\n return parsable;\n}",
"private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }",
"boolean allowsValue (final String str, final ValidationContext vc)\n {\n try\n {\n getValue (str, vc);\n return true;\n }\n catch (final DatatypeException e)\n {\n return false;\n }\n }",
"public static boolean checkInput(String saInput) {\r\n\t\treturn checkGenericPattern(saInput) && checkGenericPattern(unalter(saInput));\r\n\t}",
"public static boolean validatenum(String str) {\n\t\tchar[] s=str.toCharArray();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar temp=s[i];\n\t\t\ts[i]=temp; \n\t\t}\n\t\tchar ch;\n\t\tboolean capital=false;\n\t\tboolean lower=false;\n\t\tboolean num=false;\n\t\tboolean spc=false;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t\tch=s[i];\n\t\t\tif(s.length>9) {\n\t\t\t\tif(Character.isDigit(ch)) {\n\t\t\t\t\tSystem.out.println(\"digit char: \"+ch);\n\t\t\t\t\tnum=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isUpperCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"upper char: \"+ch);\n\t\t\t\t\tcapital=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"lower char: \"+ch);\n\t\t\t\t\tlower=true;\n\t\t\t\t}\n\t\t\t\telse if((int)ch==(int)'$'|| (int)ch==(int)'#') {\n\t\t\t\t\tSystem.out.println(\"special char: \"+ch);\n\t\t\t\t\tspc=true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Extra :\"+ch);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tif(num && spc && lower && capital) {\n\t\t\tSystem.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\t\treturn true;\n\t\t}\n\t\t//System.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\treturn false;\n\t}",
"private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }",
"@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}",
"protected boolean stringToBoolean(String input) {\n if (input.equals(\"Y\")) {\n return true;\n }\n return false;\n }",
"public static boolean tryParse(String str) { \n try { \n Integer.parseInt(str); \n return true;\n } catch (NumberFormatException ex) {\n return false; \n } catch (Exception ex) {\n\t logError(ex);\n\t return false;\n }\n }",
"boolean isSetString();",
"private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}",
"public synchronized boolean validate(Object data) {\n if (!(data instanceof String)) {\n return false;\n }\n\n String dataString = (String) data;\n dataString = dataString.replaceAll(\"\\\\s\", \"\").replaceAll(\"-\", \"\");\n if (dataString.length() != 6) {\n return false;\n }\n\n for (Character c : dataString.substring(0, 2).toCharArray()) {\n if (!Character.isLetter(c)) {\n return false;\n }\n }\n for (Character c : dataString.substring(3, 5).toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }",
"@Override\n protected boolean isValueIsValid(String value) {\n return false;\n }",
"public static boolean isParsable(String inString)\n\t{\n\t\tboolean blnParsable= true; //tells if the value can be parsed \n\t\ttry\n\t\t{\n\t\t\tDouble.parseDouble (inString);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tblnParsable = false;\n\t\t}\n\t\treturn blnParsable;\n\t}",
"public static boolean check(String s)\n {\n if (s.length() < 0 || s.length() > 10)\n {\n return true;\n }\n for (int i = 0 ; i < s.length(); i++)\n {\n if ((s.charAt(i) < 'a' || s.charAt(i) > 'z') && \n (s.charAt(i) < 'A' || s.charAt(i) > 'Z') && \n (s.charAt(i) < '0' || s.charAt(i) > '9'))\n {\n return true;\n }\n }\n return false;\n }",
"@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }",
"public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public abstract boolean isValid(String s);",
"boolean isValidValue(String value);",
"private boolean preTest(String str) {\n\t\treturn str.matches(\"^[\\\"A-Z][\\u0000-\\u0080]+$\");\n\t}",
"@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }",
"boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@Test\n public void testIsStringOnlyAlphabetAndNumbersAndWhiteSpaces() {\n System.out.println(\"isStringOnlyAlphabetAndNumbersAndWhiteSpaces\");\n String input = \".%6gwdye\";\n boolean expResult = false;\n boolean result = ValidVariables.isStringOnlyAlphabetAndNumbersAndWhiteSpaces(input);\n assertEquals(expResult, result);\n }",
"@Test\n\tpublic void caseNameWithCorrectInput() {\n\t\tString caseName = \"led case\";\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.stringUtil(caseName);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (StringException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}",
"public static boolean stringHasValidEscapes( String string )\n\t{\t\t\n\t\tboolean answer = true;\n\t\tfor( int i = 0; i < string.length(); i++ )\n\t\t{\n\t\t\tif( string.charAt( i ) == '\\\\' && i + 1 < string.length() )\n\t\t\t{\n\t\t\t\tchar nextchar = string.charAt( i + 1 );\n\t\t\t\tif( nextchar == '\\\"' || nextchar == '\\\\' || nextchar == '/' \n\t\t\t\t|| nextchar == 'b' || nextchar == 'f' || nextchar == 'n' \n\t\t\t\t|| nextchar == 'r' || nextchar == 't' || nextchar == 'u' )\n\t\t\t\t{\n\t\t\t\t\tif( nextchar == 'u' && i + 5 < string.length() )\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//the next 4 characters should be hex digits\n\t\t\t\t\t\t\tfor(int j = i + 2; j < i + 6; j++ )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tInteger.parseInt( string.substring( j , j + 1 ) , 16 ); //substring instead of charAt because parseInt requires a string\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch( NumberFormatException nfe )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//one of the 4 characters was not a hex value\n\t\t\t\t\t\t\tanswer = false;\n\t\t\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}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//the character following the slash was not a valid escape character\n\t\t\t\t\tanswer = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn answer;\n\t}",
"@Override\n\t\tpublic Boolean convert(String s) {\n\t\t\tString value = s.toLowerCase();\n\t\t\tif (\"true\".equals(value) || \"1\".equals(value) /* || \"yes\".equals(value) || \"on\".equals(value) */) {\n\t\t\t\treturn Boolean.TRUE;\n\t\t\t}\n\t\t\telse if (\"false\".equals(value) || \"0\".equals(value) /* || \"no\".equals(value) || \"off\".equals(value) */) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Can not parse to boolean type of value: \" + s);\n\t\t\t}\n\t\t}",
"public abstract boolean isValidValue(String input);",
"private boolean STRING(String s) {\r\n int n = input.match(s, in);\r\n in += n;\r\n return (n > 0);\r\n }",
"private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }",
"private static boolean stringToBoolean(String value) {\n if (value.equals(\"1\")) {\n return true;\n }\n else {\n return false;\n }\n }",
"public static Boolean stringToBool(String stringToConvert) \n\t{\n\t\tstringToConvert = stringToConvert.toLowerCase();\n\n\t\tif (stringToConvert.equals(\"y\")) return true;\n\t\telse if (stringToConvert.equals(\"yes\")) return true;\n\t\telse if (stringToConvert.equals(\"true\")) return true;\n\t\telse if (stringToConvert.equals(\"n\")) return false;\n\t\telse if (stringToConvert.equals(\"no\")) return false;\n\t\telse if (stringToConvert.equals(\"false\")) return false;\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(\"Utils.stringToBool: Error '\" + stringToConvert + \"' not recognised\");\n\t\t\treturn false;\n\t\t}\t\n\t}",
"@Test\n\tpublic void testStringToBoolean() {\n\n\t\t// forwards for yes and no\n\t\tAssert.assertEquals(converter.convertForward(\"Yes\"), new Boolean(true));\n\t\tAssert.assertEquals(converter.convertForward(\"No\"), new Boolean(false));\n\n\t}",
"private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }",
"@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}",
"public static boolean isValidDate(String dateString) {\r\n\t\tboolean convertSuccess = true;\r\n\t\tSimpleDateFormat dateformat = new SimpleDateFormat(SDF_DATE, Locale.CHINA);\r\n\t\ttry {\r\n\t\t\tdateformat.setLenient(false);\r\n\t\t\tdateformat.parse(dateString);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tconvertSuccess = false;\r\n\t\t}\r\n\t\treturn convertSuccess;\r\n\t}",
"@Override\n\tprotected void isValid(String input) throws DataInputException\n\t{\n\t}",
"public boolean validate(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tif(!Character.isDigit(c))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}",
"private boolean checkDouble(String str) {\n\t\tint i = 0, flag = 0;\n\t\tchar ch;\n\n\t\tif (str.length() == 0)\n\t\t\treturn false;\n\n\t\twhile (i < str.length()) {\n\t\t\tch = str.charAt(i);\n\n\t\t\tif (ch == '-' && flag == 0) {\n\t\t\t\tflag = 1;\n\t\t\t} else if (ch >= '0' && ch <= '9' && (flag <= 2)) {\n\t\t\t\tflag = 2;\n\t\t\t} else if (ch == '.' && (flag < 3)) {\n\t\t\t\tflag = 3;\n\t\t\t} else if (ch >= '0' && ch <= '9' && (flag == 3 || flag == 4)) {\n\t\t\t\tflag = 4;\n\t\t\t} else if (whiteSpace(ch) && (flag == 2 || flag == 4)) {\n\t\t\t\tflag = 5;\n\t\t\t} else if (!(whiteSpace(ch) && flag == 0)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tif (flag < 2)\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public static boolean ComprobarNumero(String str) {\n try {\n double d = Double.parseDouble(str);\n return true;\n } catch (NumberFormatException nfe) {\n \treturn false;\n }\n }",
"private static boolean isParsable(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"public boolean tryParse(String toParse) {\n\t\tif(toParse == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttoParse.strip().replaceAll(\"[^0-9\"+delimiter+\"]\", \"\");\n\t\tif(toParse.length() < 3) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\ttoParse = delimiter+delimiter + toParse; \n\t\t//making sure, there are at least 3 parts in the string\n\t\t//best case: --00-00-00, worst cases --,--000 , when 0-0 -> --0-0\n\t\t\n\t\tduration = parse(toParse);\n\t\treturn true;\n\t}",
"@Test\n public void testIsStringOnlyAlphabetAndWhiteSpaces() {\n System.out.println(\"isStringOnlyAlphabetAndWhiteSpaces\");\n String str = \"52374ggs\";\n boolean expResult = false;\n boolean result = ValidVariables.isStringOnlyAlphabetAndWhiteSpaces(str);\n assertEquals(expResult, result);\n }",
"private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }",
"public static boolean isValid(String str)\n\t{\n\t\tboolean len = false;\n\t\tboolean cap = false;\n\t\tboolean small = false;\n\t\tboolean num = false;\n\t\tboolean valid = false;\n\n\t\tchar[] pieces = str.toCharArray();\n\n\t\tif(!(pieces.length<6))\n\t\t{\n\t\t\tlen = true;\n\t\t\tfor(int i=0; i<pieces.length; i++)\n\t\t\t{\n\t\t\t\tif(Character.isLowerCase(pieces[i])) \n\t\t\t\t\tcap = true;\n\t\t\t\telse if(Character.isUpperCase(pieces[i])) \n\t\t\t\t\tsmall = true;\n\t\t\t\telse if(Character.isDigit(pieces[i])) \n\t\t\t\t\tnum = true;\n\t\n\t\t\t\tif(len && cap && small && num)\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}",
"public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}",
"protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean checkInCashe(String s) {\n return true;\n }",
"private boolean canConvertTextToFloat(String currentText) {\n try {\n Float.valueOf(currentText);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public abstract boolean mo70721d(String str);",
"private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }",
"public static boolean string2boolean(String str) {\r\n \tif (Constants.FALSE.equals(str)) {\r\n \t\treturn false;\r\n \t} else {\r\n \t\treturn true;\r\n \t}\r\n }",
"public String makeConversion(String value);",
"public static boolean fromStringForRequired(String string)\n throws IllegalArgumentException, TypeValueException {\n if (\"true\".equals(string)) {\n return true;\n } else if (\"false\".equals(string)) {\n return false;\n } else if (string == null) {\n throw new IllegalArgumentException(\"string == null\");\n } else {\n throw new TypeValueException(SINGLETON, string);\n }\n }",
"public abstract boolean mo70724g(String str);",
"public abstract boolean mo70720c(String str);",
"private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }",
"public boolean isPrimitiveOrString(String fieldType) {\n return fieldType.equals(\"int\") || fieldType.equals(\"short\") || fieldType.equals(\"long\") ||\n fieldType.equals(\"byte\") || fieldType.equals(\"char\") || fieldType.equals(\"float\") ||\n fieldType.equals(\"double\") || fieldType.equals(\"boolean\") || fieldType.equals(\"String\");\n }",
"@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}",
"private static boolean isJSONValid(String jsonInString){\n\n\t\ttry {\n\t\t\tfinal ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.readTree(jsonInString);\n\t\t\treturn true;\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"INVALID JSON-LD SYNTAX\");\n\t\t\treturn false;\n\t\t}\n\n\t}",
"boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static void main(String[] args) {\n Solution solution = new Solution();\n boolean convertString = solution.canConvertString(\"mygdwuntwkoc\", \"btydmdiatnhx\", 48);\n System.out.println(convertString);\n }",
"@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }",
"public static boolean isNumericInternational(String str)\n {\n try\n {\n double d = Double.parseDouble(str);\n }\n catch(NumberFormatException nfe)\n {\n return false;\n }\n return true;\n }",
"static boolean isDouble(String str) {\n\t\n\t\ttry {\n\t\t\tDouble.parseDouble(str);\n\t\t} \n\t\tcatch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean isInt(String str) { \n\t try { \n\t int d = Integer.parseInt(str); \n\t } catch(NumberFormatException nfe) { \n\t return false; \n\t } \n\t return true; \n\t}",
"private static boolean m4389a(String str) {\n return str != null && str.length() != 0 && Pattern.compile(\"^[0-9A-Fa-f]{13,18}+$\").matcher(str).matches() && str.indexOf(\"000000000\") == -1 && str.indexOf(\"111111111\") == -1 && str.indexOf(\"222222222\") == -1 && str.indexOf(\"333333333\") == -1 && str.indexOf(\"444444444\") == -1 && str.indexOf(\"555555555\") == -1 && str.indexOf(\"666666666\") == -1 && str.indexOf(\"777777777\") == -1 && str.indexOf(\"888888888\") == -1 && str.indexOf(\"999999999\") == -1;\n }",
"private static boolean isTypeMatch(String s) {\n s = s.substring(1, s.length() - 1); \n /*\n * input is \n * case1: \"abc\", +3, -7.5, -7.5f, 2e3\n * case2: ?i:int, ?f:float, ?s:string\n * \n * 1. split by \",\" , get field [\" ?i:int \", \" 3\"]\n * 2. check whether is type match\n */\n String[] ss = s.split(\",\"); // [\" ?i:int \", \" 3\"]\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // \"abc\" +3 -7.5f 2e3\n // type match\n if (temp.charAt(0) == '?' && temp.indexOf(':') != -1) {\n return true;\n }\n }\n return false;\n }",
"@Test\n\tpublic void stringIsUnmodifiedIfNoWordNumbersAreFound() {\n\t\tString input = \"I have 3 apples and 2 bananas.\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have 3 apples and 2 bananas.\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isInteger(String a) {\n try \n {\n Integer.parseInt(a);\n return true;\n }\n catch(Exception e) {\n return false;\n }\n }",
"public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }",
"boolean deserialize(String inputString);",
"private static boolean isParseDate(String dateStr) {\n try {\n simpleDateFormat.parse(dateStr);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"boolean hasStringValue();",
"public static boolean checkValid(String text)\r\n {\n if (text.length() == 0)\r\n {\r\n return false;\r\n }\r\n // should only have characters 0, 1, +, -.\r\n int counter = 0; // will count occurrences of + and - characters\r\n for (int i = 0; i < text.length(); i++)\r\n {\r\n char c = text.charAt(i);\r\n if (\"01+-\".indexOf(c) < 0)\r\n {\r\n return false;\r\n } \r\n if (\"+-\".indexOf(c) >= 0)\r\n {\r\n counter++;\r\n }\r\n }\r\n \r\n // should only have one occurrence of a + or - character\r\n if (counter != 1)\r\n {\r\n return false;\r\n }\r\n \r\n // the operator (+ or - character) should not be at the beginning\r\n // or end of the string\r\n char start = text.charAt(0);\r\n char end = text.charAt(text.length() - 1);\r\n if (\"01\".indexOf(start) < 0)\r\n {\r\n return false;\r\n }\r\n if (\"01\".indexOf(end) < 0)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}",
"public static boolean ShouldEncode(String str) {\r\n\r\n char SAFE_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 0};\r\n char SAFE_INIT_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 32, ':', '<', 0};\r\n\r\n // Are there safe initial character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_INIT_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_INIT_CHAR_EXCEPTIONS[ji]) == 0) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Are there safe character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_CHAR_EXCEPTIONS[ji]) != -1) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Is there a trailing space?\r\n if (str.endsWith(\" \")) {\r\n return (true);\r\n }\r\n\r\n\r\n return (false);\r\n }",
"public static void main(String[] args) {\n System.out.println(\"1. \" + StringTools.isAlpha(\"Happy\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"Happy-Happy\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '-'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isNumeric(\"09368955866\"));\n System.out.println(\"2. \" + StringTools.isNumeric(\"0936-895-5866\"));\n System.out.println(\"3. \" + StringTools.isNumeric(\"0936/895/5866\", '/'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isAlpha(\"HappyDay\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"#Happy-Day\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '#', '-'));\n // alpha space\n System.out.println(\"1. \" + StringTools.isAlpha(\"asd\", ' '));\n }",
"protected final boolean isValidValueImpl(String value) {\n if (value.length() != 8) {\n return false;\n }\n\n // Convert all 3 components of the string to integers\n int y, m, d;\n try {\n y = Integer.parseInt(value.substring(0, 4));\n m = Integer.parseInt(value.substring(4, 6));\n d = Integer.parseInt(value.substring(6, 8));\n } catch (NumberFormatException nfe) {\n return false;\n }\n\n // Check that the values are in the correct range\n return (y >= 0) && (m >= 1) && (m <= 12) && (d >= 1) && (d <= 31);\n }"
] | [
"0.8582676",
"0.7158287",
"0.6422256",
"0.6342411",
"0.6295311",
"0.6197879",
"0.6193875",
"0.6193875",
"0.6149028",
"0.6037273",
"0.6020577",
"0.6017636",
"0.6007686",
"0.5994167",
"0.58985424",
"0.58885133",
"0.58734006",
"0.5856469",
"0.5847279",
"0.5841959",
"0.5836196",
"0.58157563",
"0.581026",
"0.5796457",
"0.579544",
"0.5781631",
"0.5778682",
"0.5778645",
"0.5778133",
"0.5775286",
"0.5772026",
"0.57714075",
"0.57603866",
"0.5755114",
"0.5742609",
"0.57190377",
"0.5713139",
"0.57116485",
"0.5706327",
"0.56977826",
"0.56899583",
"0.56829816",
"0.5666781",
"0.56537986",
"0.56532115",
"0.56433195",
"0.5641083",
"0.563264",
"0.5629813",
"0.56157154",
"0.561417",
"0.5598803",
"0.5591522",
"0.55806714",
"0.5580118",
"0.5578828",
"0.55612344",
"0.55556846",
"0.55471116",
"0.55451447",
"0.5542275",
"0.5523769",
"0.55230093",
"0.5522064",
"0.551762",
"0.5516022",
"0.55122185",
"0.55080813",
"0.55074584",
"0.54953134",
"0.54892033",
"0.54735464",
"0.54658204",
"0.5463092",
"0.54610467",
"0.54601157",
"0.5458358",
"0.5458247",
"0.54526824",
"0.5451251",
"0.54215056",
"0.54213476",
"0.5419853",
"0.54185027",
"0.5410727",
"0.5405029",
"0.5405005",
"0.5402166",
"0.54002166",
"0.53991663",
"0.5396623",
"0.5394048",
"0.5392936",
"0.5387456",
"0.5386018",
"0.53854686",
"0.53820527",
"0.53816575",
"0.53813344",
"0.5379292"
] | 0.591223 | 14 |
Convert a T value to a String | public String getString(T value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String toText(T value);",
"String format(T value);",
"public String toString(T value) {\n\t\treturn toStringReverse(getNode(value));\n\t}",
"public String toStr() {\r\n return value.toString();\r\n }",
"public java.lang.String getT() {\n java.lang.Object ref = t_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n t_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getT() {\n java.lang.Object ref = t_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n t_ = s;\n return s;\n }\n }",
"protected String formatValue (Object value)\n {\n return String.valueOf(value);\n }",
"protected static String toString(Value value) {\n String result = StringProvider.toIvmlString(value);\n IDatatype type = value.getType();\n if (StringType.TYPE.isAssignableFrom(type)) {\n while (result.startsWith(\"\\\"\")) {\n result = result.substring(1);\n }\n while (result.endsWith(\"\\\"\")) {\n result = result.substring(0, result.length() - 1);\n }\n } else if (Enum.TYPE.isAssignableFrom(type)) {\n int pos = result.lastIndexOf(\".\");\n if (pos > 0 && pos + 1 < result.length()) {\n result = result.substring(pos + 1);\n }\n } else if (Container.TYPE.isAssignableFrom(type)) {\n if (result.startsWith(\"{\\\"\")) {\n result = result.substring(2);\n }\n while (result.endsWith(\"\\\"}\")) {\n result = result.substring(0, result.length() - 2);\n }\n }\n return result;\n }",
"public abstract String format(T t);",
"private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }",
"abstract String display(T value);",
"String getValueAsString();",
"String buildFrom(T t);",
"public static String toString(Object value) {\n if (value != null)\n return value.toString();\n else\n return null;\n }",
"@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }",
"public static String readString(Value value) {\n return SafeEncoder.encode((byte[]) value.get());\n }",
"public static String getValueString(final VType value, final boolean with_units)\n {\n if (value instanceof VByteArray)\n return FormatOptionHandler.format(value, FormatOption.STRING, -1, false);\n return FormatOptionHandler.format(value, FormatOption.DEFAULT, -1, with_units);\n }",
"public static String getString(Object t) {\r\n String s = t.getClass().getName();\r\n if (t instanceof String) {\r\n s = (String) t;\r\n } else if (t instanceof Element) {\r\n Element copy = new Element((Element)t);\r\n Nodes texts = copy.query(\"//text()\");\r\n for (int i = 0; i < texts.size(); i++) {\r\n texts.get(i).detach();\r\n }\r\n s = copy.toXML();\r\n } else if (t instanceof Element) {\r\n // skipped\r\n s = ((Element)t).toXML();\r\n }\r\n return s;\r\n }",
"@Override\n public String toString(){\n return String.valueOf(value);\n }",
"public String getString() {\n\t\treturn \"T\";\n\t}",
"public String toString(Tree<K, V> t) {\n\t\tString result = \"\", leftString, rightString;\n\n\t\tleftString = left.toString(left);\n\t\trightString = right.toString(right);\n\t\tresult = leftString + (leftString.equals(\"\") ? \"\" : \" \") + key + \"/\"\n\t\t\t\t+ value + (rightString.equals(\"\") ? \"\" : \" \") + right;\n\n\t\treturn result;\n\t}",
"public String toString() {\n\t\treturn \"T\";\n\t}",
"@NotNull\n protected String format(@NotNull final Object value) {\n return value != null\n ? value.toString()\n : \"\";\n }",
"private String convertToString( Value recordValue, GraphPropertyDataType sourceType ) {\n if ( recordValue == null ) {\n return null;\n }\n if ( sourceType == null ) {\n return JSONValue.toJSONString( recordValue.asObject() );\n }\n switch ( sourceType ) {\n case String:\n return recordValue.asString();\n default:\n return JSONValue.toJSONString( recordValue.asObject() );\n }\n }",
"public static MessageString toString(MessageValue<?> value) {\n\t\tif (value != null) {\n\t\t\tif (value instanceof MessageString) {\n\t\t\t\treturn (MessageString) value;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn new MessageStringImpl(value.asString());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static <T> String object2String(T obj){\n\t\treturn JSON.toJSONString(obj);\n\t}",
"public abstract String valueAsText();",
"String toStr(Object o);",
"@Override\n protected String toCloudEventsValue(final Object value) {\n return value.toString();\n }",
"@Override\n public String toString() {\n return String.valueOf(value());\n }",
"public static String toString(Value value) {\n\n // Short-circuit if the argument is null\n if (value == null) {\n return null;\n }\n\n return toString(value.getYear(),\n value.getMonthOfYear(),\n value.getDayOfMonth());\n }",
"@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }",
"public static String stringType(Obj type) {\n\t\tString str = ObjStr.get(type);\n\t\t\treturn str != null ? str : \"\";\n\t}",
"public String getValue() {\n return String.valueOf(value);\n }",
"public String toString (Token T);",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}",
"public static String valueOf(Object x) {\n return x == null ? \"null\" : x.toString();\n }",
"public String calculateTimestampAsString(Object value) \r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\tif (value != null) \r\n\t\t{\r\n\t\t\tvalueString = value.toString();\r\n\t\t}\r\n\t\treturn valueString;\r\n\t}",
"@Nonnull\n public Function<Object, String> getValueToString()\n {\n return _valueToString;\n }",
"public String calculateBaseTypeToString(Object value) \r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\tif(value instanceof Boolean)\r\n\t\t{\r\n\t\t\tvalueString = value.toString();\r\n\t\t}\r\n\t\tif (value == null) \r\n\t\t{\r\n\t\t\tvalueString = \"\";\r\n\t\t}\r\n\t\tif (value instanceof Integer) \r\n\t\t{\r\n\t\t\tvalueString = ((Integer) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof Long)\r\n\t\t{\r\n\t\t\tvalueString = ((Long) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof Float) \r\n\t\t{\r\n\t\t\tvalueString = ((Float) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof BigDecimal)\r\n\t\t{\r\n\t\t\tvalueString = ((BigDecimal) value).toString();\r\n\t\t}\r\n\t\treturn valueString;\r\n\t}",
"@Override\n public String toString() {\n \treturn String.valueOf(val);\n }",
"public <T> String toString(Class<T> type, T source) {\n return toRepresentation(new EntityType<>(type), String.class, source);\n }",
"public String getValueAsString() {\n return value == null ? StringUtils.EMPTY : value.toString();\n }",
"public final String getPrimitiveStringValue() {\r\n return (String) (value = value.toString());\r\n }",
"public String format(Object value);",
"public String toString() {\n return value;\r\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"String getValue()\n {\n return value.toString();\n }",
"org.hl7.fhir.String getValueString();",
"public String toString() {\n return value;\n }",
"protected String toString(Node<T> node) {\n\t\tif (node == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn node.value.toString() + \" \" \n\t\t\t\t+ toString(node.left) + \" \"\n\t\t\t\t+ toString(node.right);\n\t}",
"String value();",
"String value();",
"@Override\n\tpublic String getAsString(FacesContext context, UIComponent component, Object value) {\n\t\tif (value != null) {\n\n\t\t\tLong codigo = ((Fabricante) value).getCodigo();\n\t\t\tString retorno = (codigo == null ? null : codigo.toString());\n\t\t\treturn retorno;\n\t\t}\n\n\t\treturn \"\";\n\t}",
"public String toString()\n\t{\n\t\treturn \"\" + val;\n\t}",
"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();",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public String asText() {\n return value;\n }",
"public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return ((Float)o).toString();\n\n case DOUBLE:\n return ((Double)o).toString();\n\n case DATETIME:\n return ((DateTime)o).toString();\n\n case BYTEARRAY:\n return ((DataByteArray)o).toString();\n\n case CHARARRAY:\n return ((String)o);\n\n case BIGINTEGER:\n return ((BigInteger)o).toString();\n\n case BIGDECIMAL:\n return ((BigDecimal)o).toString();\n\n case NULL:\n return null;\n\n case BOOLEAN:\n return ((Boolean)o).toString();\n\n case BYTE:\n return ((Byte)o).toString();\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a String\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to String.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }",
"public String getTypeStr(Type t)\n\t{\n\t\tString type;\n\t\t\n\t\tif(t instanceof IntegerType)\n\t\t{\n\t\t\ttype = \"int\";\n\t\t}\n\t\telse if(t instanceof IntArrayType)\n\t\t{\n\t\t\ttype = \"int[]\";\n\t\t}\n\t\telse if(t instanceof BooleanType)\n\t\t{\n\t\t\ttype = \"boolean\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tIdentifierType t1 = (IdentifierType)t;\n\t\t\ttype = t1.s;\n\t\t}\n\t\t\n\t\treturn type;\n\t}",
"public String getText(T anItem) { return anItem.toString(); }",
"static String getStringValue(Object uazFactorValueObj) {\n String uazFactorValue;\n if (uazFactorValueObj instanceof Double) {\n LOGGER.trace(\"transforming a double value\");\n uazFactorValue = uazFactorValueObj.toString();\n }\n if (uazFactorValueObj instanceof Integer) {\n LOGGER.trace(\"transforming an integer value \");\n uazFactorValue = uazFactorValueObj.toString();\n } else if (uazFactorValueObj instanceof String) {\n LOGGER.trace(\"string value, no need to transform\");\n uazFactorValue = uazFactorValueObj.toString();\n } else {\n // TODO checked before entering this function!\n // LOGGER.warn(\" the type of the uaz feature for ALU is not recognized, the analysis may not be correct!\");\n LOGGER.trace(\"assuming the factor value is a string\");\n uazFactorValue = uazFactorValueObj.toString();\n }\n return uazFactorValue;\n }",
"public static <T> String serizalize(T entity) {\n\t\t\n\t\tif (entity != null) {\n\t\t\tGson gson = new GsonBuilder()\n\t\t\t\t\t// .setPrettyPrinting() // uncomment this line to turn on debugging\n\t\t\t\t\t.registerTypeAdapterFactory(new EnumAdapterFactory())\n\t\t\t\t\t.registerTypeAdapter(Date.class, new JSONDateTypeAdapter())\n\t\t\t\t\t.create();\n\n\t\t\treturn gson.toJson(entity);\n\t\t}\n\n\t\treturn null;\n\t}",
"private String toString2(BinaryNode<E> t) {\n if (t == null) return \"\";\n StringBuilder sb = new StringBuilder();\n sb.append(toString2(t.left));\n sb.append(t.element.toString() + \" \");\n sb.append(toString2(t.right));\n return sb.toString();\n }",
"public String toString(Object o) { return Objects.toString(o,null); }",
"public String asString();",
"public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }"
] | [
"0.79365826",
"0.74888164",
"0.7176799",
"0.69299376",
"0.6908105",
"0.6901036",
"0.6756325",
"0.6721484",
"0.6704129",
"0.6666383",
"0.6652468",
"0.6598374",
"0.65889436",
"0.6547389",
"0.6497197",
"0.6485127",
"0.6396215",
"0.63783604",
"0.6331095",
"0.6314431",
"0.6311075",
"0.6307952",
"0.63001674",
"0.62988746",
"0.62424344",
"0.62365294",
"0.6210405",
"0.61755854",
"0.61625904",
"0.6160754",
"0.61589915",
"0.6099999",
"0.60574234",
"0.6055862",
"0.6021576",
"0.60172725",
"0.6016563",
"0.6008721",
"0.5982878",
"0.59645414",
"0.5957639",
"0.5957612",
"0.5942447",
"0.594163",
"0.593738",
"0.5928989",
"0.589755",
"0.5895217",
"0.5895217",
"0.5895217",
"0.5895217",
"0.5895217",
"0.5895217",
"0.5886974",
"0.588333",
"0.58827746",
"0.5879009",
"0.587679",
"0.587679",
"0.5849937",
"0.5845033",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5844965",
"0.5830126",
"0.5827078",
"0.5822855",
"0.5807835",
"0.58024204",
"0.57976854",
"0.5786322",
"0.5780498",
"0.5770107",
"0.5761628",
"0.57564694"
] | 0.81219906 | 0 |
for internal reference; this will make organising a list based on alphabets faster | public int getNormalizedFirstChar() {
return normalizedFirstChar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void populateLetterList() {\n int numberOfTabs = LETTERS_IN_ALPHABET / numberInGroup;\n\n if (LETTERS_IN_ALPHABET % numberInGroup != 0) {\n numberOfTabs++;\n }\n for (int i = 0; i < numberOfTabs; i++) {\n Character startLetter = (char) ((i * numberInGroup) + 65);\n Character endLetter = (char) (startLetter + numberInGroup - 1);\n if ((int) endLetter > (25 + 65)) {\n endLetter = (char) (25 + 65);\n }\n startLetterList.put(startLetter, endLetter);\n }\n }",
"private static void alphabetize() {\r\n Collections.sort(kwicIndex, String.CASE_INSENSITIVE_ORDER);\r\n }",
"public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }",
"private static List<List<String>> groupAnagrams(String[] strs) {\n List<List<String>> result = new ArrayList<List<String>>();\n\n HashMap<Integer, ArrayList<String>> map = new HashMap<Integer, ArrayList<String>>();\n for(String str: strs){\n int key = 0;\n for(int i=0; i<str.length(); i++){\n key = key + (str.charAt(i)-'a');\n }\n\n if(map.containsKey(key)){\n map.get(key).add(str);\n }else{\n ArrayList<String> al = new ArrayList<String>();\n al.add(str);\n map.put(key, al);\n }\n }\n\n result.addAll(map.values());\n\n return result;\n }",
"public List<DictionaryData> alphabeticalList() {\r\n //System.out.println(\"Checkpoint 5: alphabeticalList() not implemented yet\");\r\n //using the java collection set\r\n //wordlist here is the collection containing elements to be added to this set values\r\n Collection<DictionaryData> wordlist = dictionaryMap.values();\r\n //return list of words as an arrarylist using the same format as above\r\n return new ArrayList<DictionaryData>(wordlist);\r\n\r\n //return null;\r\n }",
"public static List<List<String>> groupAnagrams2(String[] strs) {\n Map<String, List<String>> map = new HashMap<>();\n for(String s : strs){\n char[] ch = s.toCharArray();\n Arrays.sort(ch);\n String key = String.valueOf(ch);\n if(!map.containsKey(key)) map.put(key, new ArrayList<>());\n map.get(key).add(s);\n }\n return new ArrayList<>(map.values());\n }",
"public List<List<String>> groupAnagrams(String[] strs) {\n Map<String, List<String>> map = new HashMap<>();\n StringBuilder sb = new StringBuilder();\n for (String currStr : strs) {\n int[] counts = new int[26];\n for (int i = 0; i < currStr.length(); i++)\n counts[currStr.charAt(i) - 97]++;\n sb.setLength(0);\n for (int i = 0; i < counts.length; i++)\n for (int j = 0; j < counts[i]; j++)\n sb.append('a' + i);\n\n map.computeIfAbsent(sb.toString(), k -> new LinkedList<>()).add(currStr);\n }\n\n return new LinkedList<>(map.values());\n }",
"void increaseSortLetter();",
"public void sortChars(String[] array){\n HashMap<String, LinkedList<String>> list = new HashMap<String, LinkedList<String>>();\n\n for(String s: array){\n String key = sortChars(s);\n if(!list.containsKey(key)){\n list.put(key, new LinkedList<String>());\n }\n LinkedList<String> anagrams = list.get(key);\n anagrams.push(s);\n }\n\n int index = 0;\n for(String key: list.keySet()){\n LinkedList<String> anagrams = list.get(key);\n for(String val: anagrams){\n array[index] = val;\n index++;\n }\n }\n }",
"public List<List<String>> groupAnagrams(String[] strs) {\n \n int len = strs.length;\n Hashtable<String, List<String>> anagrams = new Hashtable<>();\n \n for(int i=0; i<len; i++){\n char[] sorted = strs[i].toCharArray(); \n Arrays.sort(sorted);\n String key = String.valueOf(sorted);\n List<String> temp = new ArrayList<>();\n \n if(anagrams.containsKey(key)){\n temp = anagrams.get(key);\n \n }\n temp.add(strs[i]);\n anagrams.put(key, temp);\n }\n \n \n List<List<String>> answer = new ArrayList<>();\n \n for(List<String> item: anagrams.values() ){\n answer.add(item);\n }\n \n return answer;\n \n }",
"public static void viewPatientsStoredInAlphabetical() {\n\r\n String[] alphabeticalOrder = new String[6]; //Creates an array called 'alphabeticalOrder'\r\n for (int y=0; y<firstName.length; y++) {\r\n alphabeticalOrder[y] = firstName[y]; //Getting values from the 'vaccinationCenter' array and passing them to the 'alphabeticalOrder' array\r\n }\r\n for(int a=0; a<(alphabeticalOrder.length-1); a++)\r\n {\r\n for(int b=a+1; b<alphabeticalOrder.length; b++)\r\n {\r\n if((alphabeticalOrder[a].toLowerCase(Locale.ROOT)).compareTo(alphabeticalOrder[b].toLowerCase(Locale.ROOT))> 0)\r\n {\r\n String temp = alphabeticalOrder[a];\r\n alphabeticalOrder[a] = alphabeticalOrder[b];\r\n alphabeticalOrder[b] = temp;\r\n //Sorted elements of the array to alphabetical order\r\n }\r\n }\r\n }\r\n System.out.println(Arrays.toString(alphabeticalOrder));\r\n }",
"public static void alphabetize() {\r\n\t\tArrayList<Patron> alphabetic = dblogic.getAlphabetic();\r\n\t\tresetTable();\r\n\t\tfor (int i = 0; i < alphabetic.size(); i++) {\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getLastName(), i, COL_LAST);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getFirstName(), i, COL_FIRST);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getPatronEmail(), i, COL_EMAIL);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getPatronDOB(), i, COL_BIRTH);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getPatronSince(), i, COL_ADDED);\r\n\t\t\ttable.setValueAt(alphabetic.get(i).getAnniv().toString(), i, COL_ANNIV);\r\n\t\t}\r\n\t}",
"public List<List<String>> groupAnagrams_var2(String[] strs) {\n Map<Map<Character, Integer>, List<String>> map = new HashMap<>();\n for (String currStr : strs) {\n Map<Character, Integer> currMap = new HashMap<>();\n for (int i = 0; i < currStr.length(); i++)\n currMap.put(currStr.charAt(i), currMap.getOrDefault(currStr.charAt(i), 0) + 1);\n map.computeIfAbsent(currMap, k -> new LinkedList<>()).add(currStr);\n }\n\n return new LinkedList<>(map.values());\n }",
"public List<List<String>> groupAnagramsApproach2(String[] strs) {\n\t\tif (strs.length == 0) return new ArrayList();\n\t\tMap<String, List> ans = new HashMap<String, List>();\n\t\tint[] count = new int[26];\n\t\tfor (String s : strs) {\n\t\t\tArrays.fill(count, 0);\n\t\t\tfor (char c : s.toCharArray()) count[c - 'a']++;\n\n\t\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tsb.append('#');\n\t\t\t\tsb.append(count[i]);\n\t\t\t}\n\t\t\tString key = sb.toString();\n\t\t\tif (!ans.containsKey(key)) ans.put(key, new ArrayList());\n\t\t\tans.get(key).add(s);\n\t\t}\n\t\treturn new ArrayList(ans.values());\n\t}",
"private TreeMap<String, ArrayList<String>> fillLists (char guess) {\r\n \t//Tree Map to Return\r\n \tTreeMap <String, ArrayList<String>> lists = new TreeMap<String, ArrayList<String>>();\r\n \t\r\n \t//Loop through the Active Words\r\n \tfor (int word = 0; word < activeWords.size(); word ++) {\r\n \t\tStringBuilder currentPattern = new StringBuilder();\r\n \t\t//Use existing pattern as base\r\n \t\tcurrentPattern.append(pattern);\r\n \t\t\r\n \t\t//New pattern is created based on each Active Word's relation to guess\r\n \t\tfor (int letter = 0; letter < activeWords.get(word).length(); letter++) {\r\n \t\t\t//If match, update pattern\r\n \t\t\tif (activeWords.get(word).charAt(letter) == guess) {\r\n \t\t\t\tcurrentPattern.setCharAt(letter, guess);\r\n \t\t\t}\r\n \t\t}\t\r\n \t\t//Convert Builder to String here for simplicity\r\n \t\tString newPattern = currentPattern.toString();\r\n \t\t\r\n \t\t//Each temp is the ArrayList of words for each pattern\r\n \t\tArrayList <String> temp = new ArrayList <String>();\r\n \t\t//Below takes into account if this key's list already has other words in it.\r\n \t\tif (lists.containsKey(newPattern)) {\r\n \t\t\ttemp = lists.get(newPattern);\r\n \t\t}\t\r\n \t\t\r\n \t\t//Add current word\r\n\t\t\ttemp.add(activeWords.get(word));\r\n\t\t\t//Add updated list to key (pattern created)\r\n\t\t\tlists.put(newPattern, temp);\r\n \t} \t\r\n \treturn lists;\r\n }",
"public static void main(String [] args) {\n ArrayList<String> all;\n LinkedList<String> ll;\n CircularlyLinkedList<String> sll = new CircularlyLinkedList<>();\n\n String[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n\n for (String s : alphabet) {\n sll.addFirst(s);\n sll.addLast(s);\n }\n System.out.println(sll.toString());\n\n sll.rotate();\n sll.rotate();\n\n for (String s : sll) {\n System.out.print(s + \", \");\n }\n\n }",
"private static List<String> sort(String a)\n {\n String temp;\n List<String> list = new ArrayList<String>();\n for(int t = 0; t < a.length(); t++)\n {\n list.add(\"\"+a.charAt(t));\n }\n for(int i = 1; i < list.size(); i++)\n {\n for(int j = i ; j > 0; j--)\n {\n if(list.get(j).charAt(0) < list.get(j-1).charAt(0))\n {\n temp = list.get(j);\n list.set(j,list.get(j-1));\n list.set(j-1,temp);\n }\n \n }\n }\n return list;\n }",
"public Alphabet()\n {\n \tthis.growing = true;\n this.map = new TObjectIntHashMap<T>();\n this.entries = new ArrayList<T>();\n }",
"Alphabet(String chars) {\n char[] newChars = chars.toCharArray();\n Map<Character, Integer> map = new HashMap<>();\n for (char c : newChars) {\n if (map.containsKey(c)) {\n int counter = map.get(c);\n map.put(c, ++counter);\n } else {\n map.put(c, 1);\n }\n }\n\n for (char c : map.keySet()) {\n if (map.get(c) > 1) {\n throw new EnigmaException(\"Duplicates Found\");\n } else {\n _letters = chars;\n }\n }\n }",
"public List<List<String>> groupAnagrams(String[] strs) {\n\t\tif (strs.length == 0) return new ArrayList();\n\t\tMap<String, List> ans = new HashMap<String, List>();\n\t\tfor (String s : strs) {\n\t\t\tchar[] ca = s.toCharArray();\n\t\t\tArrays.sort(ca);\n\t\t\tString key = String.valueOf(ca);\n\t\t\tif (!ans.containsKey(key)) ans.put(key, new ArrayList());\n\t\t\tans.get(key).add(s);\n\t\t}\n\t\treturn new ArrayList(ans.values());\n\t}",
"public List<List<String>> groupAnagramsI(String[] strs) {\n\t\tList<List<String>> res = new ArrayList<>();\n\t\tif (strs == null || strs.length == 0) return res;\n\t\tint[] primes = new int[] {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103};\n\t\tMap<Integer, List<String>> map = new HashMap<>();\n\t\tfor (String str: strs) {\n\t\t\tint key = 1;\n\t\t\tfor (char c: str.toCharArray()) {\n\t\t\t\tkey *= primes[c - 'a'];\n\t\t\t}\n\t\t\tif (!map.containsKey(key)) map.put(key, new ArrayList<String>());\n\t\t\tmap.get(key).add(str);\n\t\t}\n\t\tfor (List<String> list: map.values()) {\n\t\t\tCollections.sort(list);\n\t\t\tres.add(list);\n\t\t}\n\t\treturn res;\n\t}",
"private static List<List<String>> groupAnagramsBestCase(String[] strings) {\n List<List<String>> result = new ArrayList<>();\n Map<String, List<String>> keyToValues = new HashMap<>();\n\n for(String str : strings) {\n String key = getKey(str);\n List<String> anagrams = keyToValues.getOrDefault(key, new ArrayList<>());\n anagrams.add(str);\n\n keyToValues.put(key, anagrams);\n }\n\n result.addAll(keyToValues.values());\n return result;\n }",
"public static ArrayList<String> encode(ArrayList<String> List) {\n String tempstr;\n for (int i = 0; i < List.size(); i++) {\n tempstr = \"\";\n for (int j = 0; j < List.get(i).length(); j++) {\n for (int k = 0; k < basealpha.length; k++) {\n if (List.get(i).charAt(j) == basealpha[k]) {\n tempstr += temps[k];\n }\n }\n }\n List.set(i, tempstr);\n }\n return List;\n }",
"private TreeMap<Character, Character> generateMap() {\r\n this.charMap = new TreeMap<Character, Character>();\r\n // generates an array of characters representing the alphabet\r\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\r\n for (int i=0; i<26; i++) {\r\n this.charMap.put(alphabet[i], alphabet[(i+key) % 26]);\r\n }\r\n\r\n return this.charMap;\r\n }",
"public List<String> letterCombinations(String digits) {\n\t\tString[][] letter = { {}, {}, { \"a\", \"b\", \"c\" }, { \"d\", \"e\", \"f\" }, { \"g\", \"h\", \"i\" }, { \"j\", \"k\", \"l\" },\n\t\t\t\t{ \"m\", \"n\", \"o\" }, { \"p\", \"q\", \"r\", \"s\" }, { \"t\", \"u\", \"v\" }, { \"w\", \"x\", \"y\", \"z\" } };\n\n\t\tList<String> list = new ArrayList<String>();\n\t\tList<String> list2 = null;\n\n\t\tchar[] ch = digits.toCharArray();\n\n\t\tfor (int i = 0; i < ch.length; i++) {\n\t\t\tString[] str = letter[ch[i] - 48];\n\t\t\tif (i == 0) {\n\t\t\t\tfor (String s : str) {\n\t\t\t\t\tlist.add(s);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlist2 = new ArrayList<String>();\n\t\t\twhile (!list.isEmpty()) {\n\t\t\t\tString top = list.remove(0);\n\t\t\t\tfor (String s : str) {\n\t\t\t\t\tlist2.add(top + s);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist = list2;\n\t\t}\n\n\t\treturn list;\n\t}",
"public List<List<String>> groupAnagrams(String[] strs) {\n Map<Map<Character, Integer>, List<String>> keyToAnagrams = Arrays\n .stream(strs)\n .collect(\n Collectors.groupingBy(\n this::letterFrequency\n )\n );\n return new ArrayList<>(keyToAnagrams.values());\n }",
"public static List<List<String>> groupAnagrams(String[] strs) {\n Map<List<Integer>, List<String>> map = new HashMap<>();\n for(String s : strs){\n List<Integer> curr = transform(s);\n if(map.containsKey(curr)) map.get(curr).add(s);\n else{\n List<String> newGrp = new ArrayList<>();\n newGrp.add(s);\n map.put(curr, newGrp);\n }\n }\n\n return new ArrayList<>(map.values());\n }",
"public List<DictionaryData> frequencyOrderedList() {\n List<DictionaryData> wordlist = alphabeticalList();\r\n\r\n //using insertion sort\r\n int j;\r\n DictionaryData k;\r\n for (int i = 1; i < wordlist.size(); i++) {\r\n j = i;\r\n\r\n while (j > 0 && compare_dictdata(wordlist.get(j), wordlist.get(j - 1))) {\r\n k = wordlist.get(j);\r\n wordlist.set(j, wordlist.get(j - 1));\r\n wordlist.set(j - 1, k);\r\n j--;\r\n\r\n }\r\n //i++;\r\n }\r\n return wordlist;\r\n }",
"private static Map<String, List<Pair<String, Integer>>> regroup(List<List<Pair<String, Integer>>> pairsList) {\n // Exercise 31.3 groups\n char g1 = 'a';\n char g2 = 'f';\n char g3 = 'k';\n char g4 = 'p';\n char g5 = 'u';\n Map<String, List<Pair<String, Integer>>> result = new HashMap<>();\n for (List<Pair<String, Integer>> pairs : pairsList) {\n for (Pair<String, Integer> p : pairs) {\n char group;\n char firstLetter = p.first().charAt(0);\n if (firstLetter >= g1 && firstLetter < g2) {\n group = g1;\n } else if (firstLetter >= g2 && firstLetter < g3) {\n group = g2;\n } else if (firstLetter >= g3 && firstLetter < g4) {\n group = g3;\n } else if (firstLetter >= g4 && firstLetter < g5) {\n group = g4;\n } else {\n // Everything else (including numeric \"words\", e.g., \"2008\") goes in group 5.\n group = g5;\n }\n result.computeIfAbsent(String.valueOf(group), k -> new ArrayList<>()).add(p);\n }\n }\n return result;\n }",
"int getCharacterOrdering(char key);",
"@Test\n public void testLetterCasePermutation() {\n System.out.println(\"testLetterCasePermutation\");\n LetterCasePermutation instance = new LetterCasePermutation();\n\n List<String> result1 = instance.letterCasePermutation(\"a1b2\");\n List<String> expect1 = ListUtil.buildList(new String[]{\"a1b2\", \"a1B2\", \"A1b2\", \"A1B2\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect1, result1));\n\n List<String> result2 = instance.letterCasePermutation(\"3z4\");\n List<String> expect2 = ListUtil.buildList(new String[]{\"3z4\", \"3Z4\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect2, result2));\n\n List<String> result3 = instance.letterCasePermutation(\"12345\");\n List<String> expect3 = ListUtil.buildList(new String[]{\"12345\"});\n assertTrue(ListUtil.equalsIgnoreOrder(expect3, result3));\n }",
"private static Map<String, List<String>> getCustomStringStructure(@NotNull String s) {\n String[] arr = s.split(\" \");\n // the storage\n Map<String, List<String>> map = new TreeMap<>();\n // put the first element in the storage\n List<String> l = new ArrayList<>();\n l.add(arr[0]);\n map.put(arr[0].substring(0, 1), l);\n\n for (int i = 1; i < arr.length; i++) {\n String sub = arr[i].substring(0, 1);\n // if map contains key put String arr[i] in the List\n if (map.containsKey(sub)) {\n map.get(sub).add(arr[i]);\n } else {\n // if not put first letter as a key and arr[i] as a value in the map\n List<String> list = new ArrayList<>();\n list.add(arr[i]);\n map.put(sub, list);\n }\n }\n\n // sort by size, by string's length and alphabetically\n Map<String, List<String>> collect = map.entrySet()\n .stream()\n .filter(k -> k.getValue().size() > 1)\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().stream().sorted((o1, o2) -> {\n if (o2.length() != o1.length()) {\n return o2.length() - o1.length();\n } else {\n return o1.compareTo(o2);\n }\n })\n .collect(Collectors.toList())\n ));\n\n // return TreeMap to sort keys\n return new TreeMap<>(collect);\n }",
"public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }",
"public ArrayList<ArrayList<Integer>> anagrams(final List<String> a) \n {\n //The idea here is simple we can make sure two strings are anagrams if we sort them and then check \n HashMap<String,ArrayList<Integer>> map=new HashMap<>();\n for(int i=0;i<a.size();i++)\n {\n char c[]=a.get(i).toCharArray();//pick every String\n Arrays.sort(c);//sort the string\n String s=new String(c);\n ArrayList<Integer> b;\n if(map.containsKey(s))//put its relative index in the HashMap\n {\n b=map.get(s);\n b.add(i+1);\n map.put(s,b);\n }\n else\n {\n b=new ArrayList<>();\n b.add(i+1);\n map.put(s,b);\n }\n }\n //Add the values of HashMap to ArrayList\n ArrayList<ArrayList<Integer>> ans=new ArrayList<>();\n for(Map.Entry<String,ArrayList<Integer>> it:map.entrySet())\n {\n ans.add(it.getValue());\n }\n \n return ans;\n }",
"public List<String> letterCombinations(String digits) {\n List<String> bags = new ArrayList<>();\n\n Map<Character, String> keys = new HashMap<>();\n keys.put('2', \"abc\");\n keys.put('3', \"def\");\n keys.put('4', \"ghi\");\n keys.put('5', \"jkl\");\n keys.put('6', \"mno\");\n keys.put('7', \"pqrs\");\n keys.put('8', \"tuv\");\n keys.put('9', \"wxyz\");\n\n lc(digits, 0, bags, \"\", keys);\n return bags;\n }",
"private static Map<String, String> m19376a(List<ajr> list) {\n if (list == null) {\n return null;\n }\n if (list.isEmpty()) {\n return Collections.emptyMap();\n }\n Map<String, String> treeMap = new TreeMap(String.CASE_INSENSITIVE_ORDER);\n for (ajr ajr : list) {\n treeMap.put(ajr.m19223a(), ajr.m19224b());\n }\n return treeMap;\n }",
"public static List<List<String>> groupAnagrams(String[] strs) {\n String[] wordHash = new String[strs.length];\n for (int i = 0; i < strs.length; i++) { // O(n)\n wordHash[i] = hashWord(strs[i]); // O(c + 26)\n }\n HashMap<String,List<String>> map = new HashMap<>();\n for (int i = 0; i < strs.length; i++) {\n List<String> words = map.getOrDefault(wordHash[i], new ArrayList<String>());\n words.add(strs[i]);\n map.put(wordHash[i], words);\n }\n List<List<String>> out = new ArrayList<>();\n for (String k : map.keySet()) {\n out.add(map.get(k));\n }\n return out;\n }",
"private void sortAlphabet()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }",
"public ArrayList<String> anagrams(String[] strs) {\n HashMap<String, ArrayList<String>> rec=new HashMap<String,ArrayList<String>>();\n ArrayList<String> ans=new ArrayList<String>();\n if(strs.length==0)return ans;\n for(int i=0;i<strs.length;i++){\n char[] key=strs[i].toCharArray();\n Arrays.sort(key);\n String newkey=new String(key);\n if(rec.containsKey(newkey)){\n rec.get(newkey).add(strs[i]);\n }\n else{\n ArrayList<String> ad=new ArrayList<String>();\n ad.add(strs[i]);\n rec.put(newkey,ad);\n }\n }\n for(ArrayList<String> value:rec.values()){\n if(value.size()>1)ans.addAll(value);\n }\n return ans;\n }",
"private static ArrayList<String> createOrderedDeck() {\n\t\t// Create a new deck of \"unshuffled\" cards from the unique suits and values\n\t\tArrayList<String> newDeck = new ArrayList<String>();\n\t\tfor (int s = 0; s < SUITS.length; s++)\n\t\t\tfor (int v = 0; v < VALUES.length; v++)\n\t\t\t\tnewDeck.add(VALUES[v] + \" of \" + SUITS[s]);\n\t\t\n\t\t// Return new deck of cards\n\t\treturn newDeck;\n\t}",
"private static char[] generateAlphabet() {\n char[] bet = new char[26];\n\n int i = 0;\n for(char alpha = 'A'; alpha <= 'Z'; alpha++) {\n bet[i] = alpha;\n i++;\n }\n\n return bet;\n }",
"public List<String> letterCombinations2(String digits) {\n String[] mapping = new String[] {\"0\", \"1\", \"abc\", \"def\", \"ghi\", \"jkl\", \"mno\", \"pqrs\", \"tuv\", \"wxyz\"};\n\n LinkedList<String> ans = new LinkedList<String>();\n if (digits.isEmpty()) {\n return ans;\n }\n ans.add(\"\");\n\n while(ans.peek().length() != digits.length()){\n String remove = ans.remove();\n String map = mapping[digits.charAt(remove.length())-'0'];\n for(char c: map.toCharArray()){\n ans.addLast(remove+c);\n }\n }\n\n return ans;\n }",
"private List<List<String>> groupAnagrams(String[] strs) {\n List<List<String>> ans = new ArrayList<>();\n if (strs.length == 0) {\n return ans;\n }\n\n List<String> group = new ArrayList<>();\n group.add(strs[0]);\n ans.add(group);\n\n for (int i = 1; i < strs.length; i++) {\n boolean flag = false;\n for (int j = 0; j < ans.size(); j++) { // cause time cost\n if (isAnagram(strs[i], ans.get(j).get(0))) {\n ans.get(j).add(strs[i]);\n flag = true;\n break;\n }\n }\n if (!flag) {\n List<String> newGroup = new ArrayList<>();\n newGroup.add(strs[i]);\n ans.add(newGroup);\n }\n }\n\n return ans;\n }",
"private ArrayList<Character> characterArrayListMaker(String s) {\n ArrayList<Character> result = new ArrayList<Character>();\n for (int i = 0; i < s.length(); i++){\n result.add(s.charAt(i));\n }\n return result;\n }",
"private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }",
"private void combine(char[] chars, int begin) {\n\t\tif(begin==chars.length) {\r\n\t\t\tString result = String.valueOf(chars);\r\n\t\t\tif(!list.contains(result)) {\r\n\t\t\t\tlist.add(result);\r\n\t\t\t}\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tfor(int i=begin;i<chars.length;i++) {\r\n\t\t\tswap(chars,i,begin);\r\n\t\t\tcombine(chars, begin+1);\r\n\t\t\tswap(chars,i,begin);\r\n\t\t}\t\r\n\t}",
"public static void orderByFirstLetter(List<String> list) {\n\t\tlist.sort((s1, s2) -> s1.substring(0,1).toLowerCase().compareTo(\n\t\t\t\t\t\t\t s2.substring(0,1).toLowerCase()));\n\t}",
"public static List<String> anagrams(String[] strs) {\n ArrayList<String> ret = new ArrayList<String>();\n if (strs == null || strs.length == 0) return ret;\n HashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();\n for (int i = 0; i < strs.length; ++i) {\n String temp = strs[i];\n char[] chars = temp.toCharArray();\n Arrays.sort(chars);\n String sorted = new String(chars);\n if (map.containsKey(sorted)) {\n map.get(sorted).add(strs[i]);\n }\n else {\n ArrayList<String> list = new ArrayList<String>();\n list.add(strs[i]);\n map.put(sorted, list);\n }\n }\n Iterator<ArrayList<String>> iter = map.values().iterator();\n while (iter.hasNext()) {\n ArrayList<String> item = (ArrayList<String>)iter.next();\n if (item.size() > 1) {\n ret.addAll(item);\n }\n }\n return ret;\n }",
"private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }",
"public List<List<String>> anagrams(List<String> words) {\n HashMap<String, List<String>> wordsByAnagram = new HashMap<>();\n\n for (String word: words) {\n char[] sortedCharArray = word.toCharArray();\n Arrays.sort(sortedCharArray);\n\n String anagram = String.valueOf(sortedCharArray);\n\n if (wordsByAnagram.containsKey(anagram)) {\n List<String> anagrams = wordsByAnagram.get(anagram);\n anagrams.add(word);\n } else {\n ArrayList<String> anagrams = new ArrayList<>();\n anagrams.add(word);\n wordsByAnagram.put(anagram, anagrams);\n }\n }\n\n ArrayList<List<String>> result = new ArrayList<>();\n\n for (List<String> anagrams: wordsByAnagram.values()) {\n result.add(anagrams);\n }\n\n return result;\n }",
"public static void main(String[] args){\n \tunsortedWords = new ArrayList<String>();\n sortedWords = new ArrayList<String>();\n \ttry{\n \t\tInputStreamReader in = new InputStreamReader(System.in);\n \t\tBufferedReader input = new BufferedReader(in);\n \t\talphabetString = input.readLine();\n \t\tif (alphabetString == null || alphabetString == \"\"){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n\n \t\tstr = input.readLine();\n if (str == null || str == \"\"){\n throw new IllegalArgumentException();\n }\n \n \t\twhile (str != null){\n \t\t\tunsortedWords.add(str);\n \t\t\tstr = input.readLine();\n numberOfWords += 1;\n \t\t}\n\n\n\n \t}\n \tcatch (IOException io){\n \t\tSystem.out.println(\"There are no words given\");\n \t\tthrow new IllegalArgumentException();\n\n \t}\n\n alphabetMap = new HashMap<String, Integer>();\n String[] alphabetLetters = alphabetString.split(\"\");\n \tint j = 0;\n \tString letter;\n \t// String[] alphabetLetters = alphabetString.split(\"\");\n \twhile (j < alphabetLetters.length){\n letter = alphabetLetters[j];\n if (alphabetString.length() - alphabetString.replace(letter, \"\").length() > 1) {\n System.out.println(letter);\n throw new IllegalArgumentException();\n }\n alphabetMap.put(alphabetLetters[j], j);\n j += 1;\n }\n //for checking the last value something is in the outputed list. \n lastArrayIndex = 0;\n\n //sorts words\n int k = 0;\n String chosenWord;\n while (k < unsortedWords.size()){\n chosenWord = unsortedWords.get(k);\n sorting(chosenWord, sortedWords);\n k += 1; \n }\n\n //prints words\n int l = 0;\n String printedWord;\n while (l < sortedWords.size()){\n printedWord = sortedWords.get(l);\n System.out.println(printedWord);\n l += 1;\n }\n\n\n \t//making the trie\n // usedTrie = makeATrie(unsortedWords);\n\n //printing out the order\n // recursiveAlphabetSorting(usedTrie, \"\", alphabetString);\n\n\n }",
"public static String encode(String List) {\n String tempstr = \"\";\n for (int j = 0; j < List.length(); j++) {\n for (int k = 0; k < basealpha.length; k++) {\n if (List.charAt(j) == basealpha[k]) {\n tempstr += temps[k];\n }\n }\n }\n return tempstr;\n }",
"@Override\n public LinkedList<String> orderAlphabetically(){\n LinkedList<String> stringLL = super.orderAlphabetically();\n stringLL.add(\"Years Until Tenure: \" + m_yearsUntilTenure);\n Collections.sort(stringLL);\n return stringLL;\n }",
"@Override\n\tpublic Multimap<String, List<String>> fileRecordsIntoMap(List<String> list) {\n\t\tMultimap<String, List<String>> multimap = ArrayListMultimap.create();\n\t\tCollections.sort(list);\n\t\tfor(String key :list)\n\t\t{\n\t\t\tkey=key.trim().toLowerCase();\n\t\t\tif(!key.isEmpty())\n\t\t\t{\n\t\t\t\tspaceRemover(key);\n\t\t\t\tString withoutSort=key;\n\t\t\t\tkey=sortString(key);\n\t\t\t\tmultimap = putIntoMAP(key , withoutSort, multimap);\n\t\t\t}\n\t\t}\n\t\treturn multimap;\n\t}",
"java.util.List<com.vine.vinemars.net.pb.SocialMessage.LetterObj> \n getLettersList();",
"public static void projectInventory() {\n\n String ProductBrandunsorted = \"dca\";\n\n char[] ProductBrandsorted = ProductBrandunsorted.toCharArray();\n\n Arrays.sort(ProductBrandsorted);\n System.out.println(ProductBrandsorted);\n\n\n String[] proBrandsSorted = {\"bi\", \"apple\", \"free\"};\n\n\n Arrays.sort(proBrandsSorted);\n //loop\n for (String name : proBrandsSorted) {\n System.out.println(name);\n\n }\n }",
"private void generateLists(String num, Stack<String> numberList)\n {\n\tfor(int i = 0, len = num.length(); i < len; i++)\n\t numberList.push(new Character(num.charAt(i)).toString());\n }",
"public static void main(String[] args) {\n\t\tArrayList<String> givenArray = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithA = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithG = new ArrayList<String>();\n\t\tgivenArray.add(\"apple\");\n\t\tgivenArray.add(\"appleinc\");\n\t\tgivenArray.add(\"applemac\");\n\t\tgivenArray.add(\"google\");\n\t\t\n\t\tHashMap<String, ArrayList> map = new HashMap<String, ArrayList>();\n\t\tmap.clone();\n\t\tIterator<String> itr = givenArray.iterator();\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString arrayListOb = itr.next();\n\n\t\t\tString key =arrayListOb.substring(0, 1);\n\t\t\tif(key.startsWith(\"a\")) {\n\t\t\t\tlistOfNamesStartingWithA.add(arrayListOb);\t\n\t\t\t\tmap.put(key, listOfNamesStartingWithA);\t\n\t\t\t}\n\t\t\tif(key.startsWith(\"g\")) {\n\t\t\t\tlistOfNamesStartingWithG.add(arrayListOb);\n\t\t\t\tmap.put(key, listOfNamesStartingWithG);\n\t\t\t}\t\t\t\t\n\t\t\tSystem.out.println(key);\n\t\t\tSystem.out.println(map.get(key));\n\t\t}\n\t\tSystem.out.println(map.size());\n\t\t//System.out.println(map.get(\"g\"));\n\t\t//System.out.println(map.get(\"a\"));\n\t\t/*for(Map.Entry<String,ArrayList> entry: map.entrySet())\n\t\t{\n\t\t\tSystem.out.println(map.get(\"a\"));\n\t\t}*/\n\t}",
"static List DuplicateElements(List<Character> characters){\r\n\t\tList newlist=new ArrayList<>();\r\n\t\tfor(char c:characters)\r\n\t\t{\r\n\t\t\tnewlist.add(Collections.nCopies(2,c ));\r\n\t\r\n\t\t}\r\n\tSystem.out.println(newlist);\r\n\treturn newlist;\r\n\t}",
"public static void main(String [] args) {\n DoublyLinkedList<String> ll = new DoublyLinkedList<String>();\n\n String[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n\n for (String s : alphabet) {\n ll.addFirst(s);\n ll.addLast(s);\n }\n System.out.println(ll.toString());\n\n for (String s : ll) {\n System.out.print(s + \", \");\n }\n }",
"public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtracking(ans,S,\"\",0);\n return ans;\n }",
"public List<Integer> partitionLabels(String S) {\n List<Integer> sizes = new ArrayList<>();\n\n int[] lastIndex = new int[26]; //cuz only lower case letters will be given to us\n\n //finding the lastIndexes of all the characters in the given string so that inside the loop start->end, we don't have to\n //do S.lastIndexOf('someCharacter') over & over cuz if we do that than the solution will be O(n^2) cuz string.lastIndexOf loops\n //through the string everytime it needs to find the last occurance & if the character happens to be at the end of the string\n //than it'll string.lastIndexOf would have to loop through the entire string over and over inside the start->end loop\n for(int i=0; i< S.length(); i++) {\n //subtracting the current character from a that's how we can map the lower case letters to an array of 26 Eg. 'a' -'a' = 0, 'b' -'a' = 1 so on and so forth. Otherwise we can also use an array of length 128 and loop from 97->122 but the array slots from 0->97 & 123->128 will be taking memory for nothing\n lastIndex[S.charAt(i) - 'a'] = i;\n }\n\n int start=0, end = 0, extendedEnd = 0;\n while(start < S.length()) {\n char startCharacter = S.charAt(start);\n end = lastIndex[startCharacter - 'a'];\n extendedEnd = end;\n\n for(int i=start; i<end; i++) {\n\n //checking if the current character that lies in the window start till end has last occurance index that's greater than current end, than we extend end.\n //NOTE: if we don't check the occurance like lastIndex[S.charAt(i)- 'a'] instead we check it like lastIndex[i], we won't be getting correct answer cuz lastIndex[] contains last occurances of characters from a-z\n //the characters in String S might not occur in the order a-z. They'll be jumbled across the string.\n //therefore in order to get the last occurance of current character, we do it like lastIndex[S.charAt(i)- 'a']\n if(lastIndex[S.charAt(i)- 'a'] > end) {\n extendedEnd = lastIndex[S.charAt(i)- 'a'];\n end = extendedEnd;\n }\n }\n\n sizes.add((extendedEnd - start + 1));\n start = extendedEnd + 1;\n }\n\n return sizes;\n }",
"private static void cryptanalysis() {\n\t for (char cipherChar : cipherText.toCharArray()) {\n\t if (Character.isLetter(cipherChar)) { // only letters are encrypted, punctuation marks and whitespace are not\n\t // following line converts letters to numbers between 0 and 25\n\t int cipher = (int) cipherChar - alphaIndex;\n\t // following line increments the value at frequency[cipher] to count frequency of letters used\n\t frequency[cipher] = frequency[cipher] + 1;\n\t }\n\t } \n\t char currChar = 'A';\n \t for (int i = 0; i < 26; i++) {\n \t\t System.out.println(currChar++ + \" \" + frequency[i]);\n \t }\n }",
"public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}",
"public static boolean testAlphabetListAdd() {\r\n AlphabetList list1 = new AlphabetList();\r\n list1.add(new Cart(\"D\"));\r\n if (list1.size() != 1)\r\n return false;\r\n list1.add(new Cart(\"A\"));\r\n if (list1.size() != 2)\r\n return false;\r\n list1.add(new Cart(\"Z\"));\r\n if (list1.size() != 3)\r\n return false;\r\n list1.add(new Cart(\"C\"));\r\n if (list1.size() != 4)\r\n return false;\r\n if (list1.get(2).getCargo().toString() != \"D\")\r\n return false;\r\n if (list1.indexOf(new Cart(\"C\")) != 1)\r\n return false;\r\n if (!list1.readForward().equals(\"ACDZ\"))\r\n return false;\r\n if (!list1.readBackward().equals(\"ZDCA\"))\r\n return false;\r\n return true;\r\n }",
"public static void sortStringsNumAs( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] A = a.split(\"\");\n String[] B = b.split(\"\");\n int acount = 0;\n int bcount = 0;\n for (String i : A){\n if (i == \"a\" || i == \"A\"){\n acount += 1;\n }\n }\n for (String i : B){\n if (i == \"a\" || i == \"A\"){\n bcount += 1;\n }\n }\n\n if (acount > bcount) return true;\n else return false;\n };\n sortStrings(lst, p);\n \n }",
"public List<List<String>> groupAnagrams(String[] strs) {\n\t\tList<List<String>> result = new ArrayList<>();\n\t\tif (strs == null || strs.length == 0) {\n\t\t\treturn result;\n\t\t}\n\t\tMap<String, List<String>> hash = new HashMap<>();\n\t\tfor (String s: strs) {\n\t\t\tString sortedStr = sorted(s);\n\t\t\tif (!hash.containsKey(sortedStr)) {\n\t\t\t\thash.put(sortedStr, new ArrayList<String>());\n\t\t\t}\n\t\t\thash.get(sortedStr).add(s);\n\t\t}\n\t\tfor (List<String> list: hash.values()) {\n\t\t\tCollections.sort(list); // can ignore\n\t\t\tresult.add(list);\n\t\t}\n\t\treturn result;\n\t}",
"public List<List<String>> groupStrings(String[] strings) {\n\n Map<String, List<String>> map = new HashMap<>();\n\n for(String str : strings) {\n char[] chars = str.toCharArray();\n\n if(chars.length == 1) {\n map.computeIfAbsent(\"0\", k -> new ArrayList<String>()).add(str);\n continue;\n }\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"0\");\n for(int i = 1; i < chars.length; i++) {\n sb.append(\"#\");\n int difference = chars[i] - chars[i-1];\n if(difference >= 0) {sb.append(difference);}\n else{sb.append(difference + 26);}\n }\n\n map.computeIfAbsent(sb.toString(), k -> new ArrayList<String>()).add(str);\n }\n\n List<List<String>> result = new ArrayList<>();\n for(Map.Entry<String,List<String>> entry : map.entrySet()) {\n result.add(entry.getValue());\n }\n\n return result;\n }",
"public List<String> letterCasePermutation(String S) {\n List<String> ans = new ArrayList<>();\n backtrack(ans, 0, S.toCharArray());\n return ans;\n }",
"public Set<Character> alphabet(){\n\t\tSet<Character> a = new HashSet<Character>();\n\t\ta.addAll(gauche.alphabet());\n\t\ta.addAll(droit.alphabet());\n\t\treturn a;\n\t}",
"public static ArrayList<String> decode(ArrayList<String> List) {\n String tempstr;\n for (int i = 0; i < List.size(); i++) {\n tempstr = \"\";\n for (int j = 0; j < List.get(i).length(); j++) {\n for (int k = 0; k < temps.length; k++) {\n if (List.get(i).charAt(j) == temps[k]) {\n tempstr += basealpha[k];\n }\n }\n }\n List.set(i, tempstr);\n }\n return List;\n }",
"public static Map<String, List<CommonName>> sortCommonNameSources(List<CommonName> names){\n \tString pattern = \"[^a-zA-Z0-9]\";\n \tCommonName prevName = null;\n \tMap<String, List<CommonName>> map = new Hashtable<String, List<CommonName>>();\n \tList<CommonName> list = new ArrayList<CommonName>();\n \t\n \t//made a copy of names, so sorting doesn't effect original list order ....\n \tList<CommonName> newArrayList = (List<CommonName>)((ArrayList<CommonName>)names).clone();\n \tCollections.sort(newArrayList, new Comparator<CommonName>(){\n \t@Override\n public int compare(CommonName o1, CommonName o2) {\n \t\tint i = -1;\n \t\ttry{\n \t\t\ti = o1.getNameString().trim().compareToIgnoreCase(o2.getNameString().trim());\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tlogger.error(e);\n \t\t}\n \t\treturn i;\n \t}\n \t});\n \tIterator<CommonName> it = newArrayList.iterator();\n \tif(it.hasNext()){\n \t\tprevName = it.next();\n \t\tlist.add(prevName);\n \t}\n \t\n \t// group the name with infosource, compare the name with alphabet & number only.\n \twhile(it.hasNext()){\n \t\tCommonName curName = it.next();\n \t\tif(prevName.getNameString().trim().replaceAll(pattern, \"\").equalsIgnoreCase(\n \t\t\t\tcurName.getNameString().trim().replaceAll(pattern, \"\"))){\n \t\t\tlist.add(curName);\n \t\t}\n \t\telse{\n \t\t\tmap.put(prevName.getNameString().trim(), list);\n \t\t\t\n \t\t\tlist = new ArrayList<CommonName>();\n \t\t\tlist.add(curName);\n \t\t\tprevName = curName;\n \t\t}\n \t}\n \tif(prevName != null){\n \t\tmap.put(prevName.getNameString().trim(), list);\n \t}\n \treturn map;\n }",
"public static void main(String[] args) {\r\n\r\n\t\tList<Character> list=new LinkedList<Character>() {{add('A');add('B');add('C');add('D');add('A');add('D');add('E');add('F');}};\r\n\t\tCollections.sort(list);\r\n\t\tIterator<Character>itr=list.iterator();\r\n\t\tCharacter tempchar=itr.next();\r\n\t\twhile(itr.hasNext()) {\r\n\t\t\tif(tempchar==itr.next()) {\r\n\t\t\t\titr.remove();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(itr.hasNext())\r\n\t\t\ttempchar=itr.next();\r\n\t\tSystem.out.println(list.toString());\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"Alphabet(String chars) {\n _charsString = chars;\n _chars = new char[chars.length()];\n for (int i = 0; i < _chars.length; i += 1) {\n if (alreadyAdded(chars.charAt(i))) {\n throw new EnigmaException(\"Alphabet cannot have duplicates.\");\n } else {\n _chars[i] = chars.charAt(i);\n }\n }\n }",
"Alphabet alphabet() {\n return _alphabet;\n }",
"static HashMap runLengthEncoding(List<Character> list){\r\n\t\t\r\n\t\tHashMap<Character,Integer> map=new HashMap<>();\r\n\t\t\r\n\t\tfor(char a:list)\r\n\t\t{\r\n\t\tif(map.get(a)==null)\r\n\t\t{\r\n\t\t\tmap.put(a, 1);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmap.put(a, map.get(a)+1);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\treturn map;\r\n\t\r\n\t}",
"public void insertionStringSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0)\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }",
"private Set<String> insertionHelper(String word) {\n\t\tSet<String> insertionWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\n\t\t\t\tinsertionWords.add(word.substring(0, i) + letter + word.substring(i));\n\t\t\t}\n\t\t}\n\t\treturn insertionWords;\n\t}",
"public List<String> letterCombinations(String digits) {\n\t \n\t recurse(digits, \"\");\n\t return ans; \n\t}",
"public String alienOrder(String[] words) {\n // HashMap to maintain the map relationship between letters\n HashMap<Character, HashSet<Character>> hashMap = new HashMap<Character, HashSet<Character>>();\n // Store the indegree of each letter\n HashMap<Character, Integer> degree = new HashMap<Character, Integer>();\n StringBuilder ret = new StringBuilder();\n if (words == null || words.length < 1) return ret.toString();\n\n // Init indegree for every letter\n for (int i = 0; i < words.length; i++) {\n String word = words[i];\n for (int j = 0; j < word.length(); j++) {\n degree.put(word.charAt(j), 0);\n }\n }\n\n // Build graph\n for (int i = 0; i < words.length - 1; i++) {\n String currentWord = words[i];\n String nextWord = words[i + 1];\n int diffCharIndex = 0;\n int minLength = Math.min(currentWord.length(), nextWord.length());\n while (diffCharIndex < minLength && currentWord.charAt(diffCharIndex) == nextWord.charAt(diffCharIndex))\n diffCharIndex++;\n if (diffCharIndex < minLength) {\n Character currentChar = currentWord.charAt(diffCharIndex);\n Character nextChar = nextWord.charAt(diffCharIndex);\n // Add next letter to the map of current letter\n HashSet<Character> setForCurrentLetter = hashMap.get(currentChar);\n if (setForCurrentLetter == null) {\n setForCurrentLetter = new HashSet<Character>();\n }\n if (!setForCurrentLetter.contains(nextChar)) {\n setForCurrentLetter.add(nextChar);\n hashMap.put(currentChar, setForCurrentLetter);\n // Add 1 to next letter's indegree\n degree.put(nextChar, degree.get(nextChar) + 1);\n }\n }\n }\n\n Queue<Character> queue = new LinkedList<Character>();\n for (Character c: degree.keySet()) {\n if (degree.get(c) == 0) {\n queue.add(c);\n }\n }\n while (!queue.isEmpty()) {\n Character c = queue.poll();\n ret.append(c);\n\n HashSet<Character> setForCurrentChar = hashMap.get(c);\n if (setForCurrentChar != null) {\n for (Character ch: setForCurrentChar) {\n int indegree = degree.get(ch);\n degree.put(ch, indegree - 1);\n if (indegree - 1 == 0) {\n queue.add(ch);\n }\n }\n }\n }\n String retString = ret.toString();\n if (retString.length() != degree.size()) return \"\";\n return retString;\n }",
"public static List<String> getAnagrams(List<String> strings)\n {\n /*Each character 'a'-'z' can be mapped to the nth prime number, where n is the index of\n the character in the alphabet. E.g. 'a': prime(0)=2, 'b': prime(1)=3, 'c': prime(2)=5, etc.\n Compute the product of the prime number mappings of the characters in s. Anagrams will have\n the same character product. Thus we can use the product as a key to a set of anagrams.*/\n\n Map<Long, Set<String>> map = new HashMap<Long, Set<String>>();\n\n for (String s : strings)\n {\n long prod = 1;\n for (char c : s.toCharArray())\n {\n prod *= (long) getCharToPrimeMap().get(c);\n }\n if (!map.containsKey(prod))\n {\n /*Key-value pair doesn't exist, so for the new key, create a new HashSet instance\n * for the new word (not yet an anagram match)*/\n map.put(prod, new HashSet<String>());\n }\n map.get(prod).add(s);\n }\n\n /*Add only the sets in the mapping with 2 or more elements (anagram match exists) to the result list*/\n List<String> result = new ArrayList<String>(map.size());\n for (Set<String> set : map.values())\n {\n if (set.size() > 1) result.addAll(set);\n }\n\n return result;\n }",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}",
"public ArrayList<String> letterCombinations(String digits)\n {\n ArrayList<String> result=new ArrayList<String>();\n String[] buttons=initButtons();\n letterCombinations(digits, buttons, 0, new StringBuffer(), result);\n return result;\n }",
"public List<String> letterCombinations(String digits) {\n HashSet<String> rnt = new HashSet<String>();\n \n for(int i=0 ;i<digits.length(); i++){\n char[] array = getChar(digits.charAt(i));\n HashSet<String> newSet = new HashSet<String>();\n for(int j=0; j<array.length; j++){\n for(String currs: rnt){\n newSet.add(currs+array[j]);\n }\n if(i==0){\n newSet.add(array[j]+\"\");\n }\n }\n \n rnt = newSet;\n }\n \n ArrayList<String> rntList = new ArrayList<String>();\n for(String currs: rnt){\n rntList.add(currs);\n }\n return rntList;\n }",
"public static void main(String[] args) {\n\r\n\t\tMyList l = new MyList();\r\n\t\tl.add(\"LOUNIS\");\r\n\t\tl.addLast(\"LOUNIS\");\r\n\t\tl.add(\"LOUNIS-2\");\r\n\t\tl.add(\"LOUNIS-3\");\r\n\t\tl.addLast(\"LOUNIS-6\");\r\n\t\tl.add(\"LOUNIS-4\");\r\n\t\tl.add(\"test\",6);\r\n\t\tSystem.out.println(l.toString()); \r\n\t\tSystem.out.println(l.get(5)); \r\n\t\tSystem.out.println(l.sumLetter());\r\n\t}",
"private void buildUnsortedList(String list)\n\t{\n\t\ttokenBuffer = new StringTokenizer(line);\n\t\tlistSize = Integer.parseInt(tokenBuffer.nextToken());\n\t\tunsortedList = new int[listSize];\n\t\tsortedList = new int[listSize];\n\n\t\t// Grab each integer from the line and throw it in our lists\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tunsortedList[i] = Integer.parseInt(tokenBuffer.nextToken());\n\t\t\tsortedList[i] = unsortedList[i];\n\t\t}\n\t}",
"private List<String> putKeysInList() {\n List<String> stringList = new LinkedList<>();\n for (String node : registeredNodes.keySet()) {\n stringList.add(node);\n }\n return stringList;\n }",
"private ArrayList<String> createOrderedAEs(FlowControllerContext aContext) throws ResourceInitializationException {\n\t\ttry {\n\t\t\t\n\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\tSystem.out.println(\"INFO:: size of original AE list = \" + list.size());\n\n\t\t\tfor(String key : aContext.getAnalysisEngineMetaDataMap().keySet()) {\n\t\t\t\tlist.add(key);\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> orderedList = (ArrayList<String>) list.clone();\n\t\t\t\n\t\t\tfor(String key : list) {\n\t\t\tSystem.out.println(\"INFO:: AE key = \" + key );\n\t\t\t\t// hard wire key order in list\n\t\t\t\tif(key.contains(\"DocType\")) {\n\t\t\t\t\torderedList.set(0, key);\n\t\t\t\t} else if(key.contains(\"Name\")) {\n\t\t\t\t\torderedList.set(1, key);\n\t\t\t\t} else if(key.contains(\"Org\")) {\n\t\t\t\t\torderedList.set(2, key);\n\t\t\t\t} else if(key.contains(\"Place\")) {\n\t\t\t\t\torderedList.set(3, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist = null;\n\t\t\tSystem.out.println(\"AE list::\\n\" + orderedList);\n\t\t\treturn orderedList;\n\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new ResourceInitializationException(e);\n\t\t}\n\t}",
"public List<C0906d> mo10186a() {\n LinkedList linkedList = new LinkedList();\n StringBuilder sb = new StringBuilder();\n while (true) {\n int i = this.f4496d;\n if (i < this.f4494b) {\n char charAt = this.f4493a.charAt(i);\n this.f4496d++;\n switch (this.f4495c) {\n case LITERAL_STATE:\n m4675a(charAt, linkedList, sb);\n break;\n case START_STATE:\n m4677b(charAt, linkedList, sb);\n break;\n case DEFAULT_VAL_STATE:\n m4678c(charAt, linkedList, sb);\n break;\n }\n } else {\n switch (this.f4495c) {\n case LITERAL_STATE:\n m4676a(linkedList, sb);\n break;\n case START_STATE:\n sb.append('$');\n m4676a(linkedList, sb);\n break;\n case DEFAULT_VAL_STATE:\n sb.append(':');\n m4676a(linkedList, sb);\n break;\n }\n return linkedList;\n }\n }\n }",
"public List<String> getPatternAuthors() {\n Set<String> authors = mapAuths.keySet();\r\n //int n = authors.size();\r\n List <String> authorList = new LinkedList<String>();\r\n //iterate through set and add to list\r\n for(String author : authors) {\r\n authorList.add(author);\r\n }\r\n\r\n Collections.sort(authorList, new Comparator<String>() {\r\n public int compare(String author1, String author2) {\r\n return author1.compareToIgnoreCase(author2);\r\n }\r\n });\r\n\r\n return authorList;\r\n }",
"public static void main(String[] args) {\n\tString [] ciudades_init = {\"Barcelona\", \"Madrid\", \"Valencia\", \"Malaga\", \"Cadis\", \"Santander\"};\t\r\n\t\r\n\t//Iniciar Arraylist. 4.1\r\n\tArrayList<char[]> CiudadArray = new ArrayList<char[]>();\r\n\tfor(int i = 0;i<ciudades_init.length;i++)\r\n\t{\r\n\t\t// Crear Char Array para cada ciudad\r\n\t\tCiudadArray.add(new char[ciudades_init[i].length()]);\r\n\t\t\r\n\t\t//4.2\r\n\t\tchar [] temp = new char[ciudades_init[i].length()];\r\n\t\t\r\n\t\tfor (int j = 0;j<ciudades_init[i].length();j++)\r\n\t\t{\r\n\t\t\ttemp[j]=ciudades_init[i].charAt(j);\r\n\t\t}\r\n\t\t\r\n\t\tCiudadArray.set(i, temp);\r\n\t\t\r\n\t\t//4.3\r\n\t\tSystem.out.print(ciudades_init[i] + \" - \");\r\n\t\tfor (int j = CiudadArray.get(i).length-1; j >= 0 ; j--){\r\n\t\t System.out.print(CiudadArray.get(i)[j]);\t\t\t\r\n\t\t}\r\n\t\tSystem.out.print(\"\\n\");\t\r\n\t}\r\n}",
"public List<String> letterCasePermutation(String S) {\n if (S.length() <= 0) {\n List<String> ret = new ArrayList<>();\n ret.add(\"\");\n return ret;\n }\n\n if (S.length() == 1) {\n List<String> ret = new ArrayList<>();\n char c = S.charAt(0);\n ret.add(S);\n if (Character.isLetter(c)) {\n if (Character.isLowerCase(c)) {\n ret.add(String.valueOf(Character.toUpperCase(c)));\n } else {\n ret.add(String.valueOf(Character.toLowerCase(c)));\n }\n }\n\n return ret;\n }\n\n List<String> ret = letterCasePermutation(S.substring(1));\n\n char c = S.charAt(0);\n if (Character.isLetter(c)) {\n List<String> ret2 = new LinkedList<>(ret);\n appendToFront(Character.toLowerCase(c), ret);\n appendToFront(Character.toUpperCase(c), ret2);\n ret.addAll(ret2);\n } else {\n appendToFront(c, ret);\n }\n\n return ret;\n }",
"private void createAA() {\r\n\r\n\t\tfor( int x = 0 ; x < dnasequence.size(); x++) {\r\n\t\t\tString str = dnasequence.get(x);\r\n\t\t\t//put catch for missing 3rd letter\r\n\t\t\tif(str.substring(0, 1).equals(\"G\")) {\r\n\t\t\t\taasequence.add(getG(str));\r\n\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"C\")) {\r\n\t\t\t\taasequence.add(getC(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"A\")) {\r\n\t\t\t\taasequence.add(getA(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0, 1).equals(\"T\")) {\r\n\t\t\t\taasequence.add(getT(str));\r\n\t\t\t\t\r\n\t\t\t}else if(str.substring(0,1).equals(\"N\")) {\r\n\t\t\t\taasequence.add(\"ERROR\");\r\n\t\t\t}else\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t}\r\n\t}",
"private static int[] letterHist(String acharArray) {\n int[] alphabet = new int[26];\n\n for (int i = 0; i < acharArray.length(); i++) {\n char singleChar = acharArray.toLowerCase().charAt(i);\n\n if ('a' <= singleChar && 'z' >= singleChar) {\n alphabet[singleChar - 'a']++;\n }\n }\n return alphabet;\n }",
"void countSortG(char[] str) {\n\t\tchar[] output = new char[str.length];\n\n\t\t// Create a count array to store count of inidividul characters and\n\t\t// initialize count array as 0\n\t\tint[] count = new int[RANGEG + 1];\n\t\t;\n\t\tint i = 0;\n\n\t\t// Store count of each character\n\t\tfor (i = 0; i < str.length; ++i)\n\t\t\t++count[str[i]];\n\n\t\t// Change count[i] so that count[i] now contains actual position of\n\t\t// this character in output array\n\t\tfor (i = 1; i <= RANGE; ++i)\n\t\t\tcount[i] += count[i - 1];\n\n\t\t// Build the output character array\n\t\tfor (i = 0; i < str.length; ++i) {\n\t\t\toutput[count[str[i]] - 1] = str[i];\n\t\t\t--count[str[i]];\n\t\t}\n\n\t\t// Copy the output array to str, so that str now\n\t\t// contains sorted characters\n\t\tfor (i = 0; i < str.length; ++i)\n\t\t\tstr[i] = output[i];\n\n\t\tSystem.out.println();\n\t}",
"public static String[][] groupAnagrams(String[] strs) {\n\t\tif (strs.length == 0) return new String[][] {};\n\t\tMap<String, List<String>> map = new HashMap<String, List<String>>();\n\t\tfor (String s : strs) {\n\t\t\tchar[] ch = s.toCharArray();\n\t\t\tArrays.sort(ch);\n\t\t\tString key = new String(ch);\n\t\t\tif(!map.containsKey(key)) {\n\t\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\tlist.add(s);\n\t\t\t\tmap.put(key, list);\n\t\t\t}else\n\t\t\t\tmap.get(key).add(s);\n\t\t}\n//\t\tprint(map);\n\t\treturn convertMapToArray2D(map);\n }",
"public void charSorting(char input[]) {\n int n = input.length;\n char[] output = new char[n];\n\n // Create an array of 256 size to store count the frequency of char and assign with 0\n int[] count = new int[256];\n for (int i = 0; i < 256; i++)\n count[i] = 0;\n\n //Count the frequency of char in input array\n for (int i = 0; i < n; i++)\n count[input[i]]++;\n\n // Change count[i] so that count[i] now contains actual\n // position of this character in output array\n //Computing cumulative sum\n for (int i = 1; i <= 255; i++)\n count[i] += count[i - 1];\n\n //Assign the chars in output array by operating in reverse order\n for (int i = n - 1; i >= 0; i--) {\n output[count[input[i]] - 1] = input[i];\n count[input[i]]--;\n }\n\n //Print the output array\n for (int i = 0; i < n ; i++)\n System.out.print(output[i] + \" \");\n }",
"protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }",
"@Test\n public void myTest() {\n // FIXME: Delete this function and add your own tests\n ech.put(\"c\");\n assertEquals(ech.contains(\"c\"),true);\n\n ech.put(\"d\");\n assertEquals(ech.contains(\"d\"),true);\n\n ArrayList<String> tmp = new ArrayList();\n tmp.add(\"d\");\n tmp.add(\"c\");\n assertEquals(tmp,ech.asList());\n\n ech.put(\"a\");\n ArrayList<String> tmp0 = new ArrayList();\n tmp0.add(\"d\");\n tmp0.add(\"a\");\n tmp0.add(\"c\");\n assertEquals(tmp0,ech.asList());\n\n ech.put(\"v\");\n ech.put(\"A\");\n ech.put(\"r\");\n ArrayList<String> tmp1 = new ArrayList();\n tmp1.add(\"d\");\n tmp1.add(\"A\");\n tmp1.add(\"a\");\n tmp1.add(\"v\");\n tmp1.add(\"c\");\n tmp1.add(\"r\");\n assertEquals(tmp1,ech.asList());\n\n ech.put(\"I LOVE 61B\");\n ArrayList<String> tmp2 = new ArrayList();\n tmp2.add(\"d\");\n tmp2.add(\"A\");\n tmp2.add(\"a\");\n tmp2.add(\"I LOVE 61B\");\n tmp2.add(\"v\");\n tmp2.add(\"c\");\n tmp2.add(\"r\");\n assertEquals(tmp2,ech.asList());\n assertEquals(true,ech.contains(\"I LOVE 61B\"));\n\n for(int i = 0;i<10000;i++){\n ech.put((Integer.toString(i)));\n }\n assertEquals(true,ech.contains(\"9999\"));\n }",
"public static void sortStringsDictionary( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] newA = a.split(\"\");\n String[] newB = b.split(\"\");\n int min;\n boolean mismatch = false;\n String adif = \"\";\n String bdif = \"\";\n if (a.length() < b.length()) {\n min = a.length();\n } else {\n min = b.length();\n }\n\n for (int i = 0; i < min; i++) {\n if (!newA[i].equals(newB[i])) {\n mismatch = true;\n adif = newA[i];\n bdif = newB[i];\n break;\n\n }\n }\n if (mismatch == false) {\n if(a.length() < b.length()) {\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(adif.matches(\"[a-zA-Z]\") && !bdif.matches(\"[a-zA-Z]\")) {\n return true;\n }\n else if (bdif.matches(\"[a-zA-Z]\") && !adif.matches(\"[a-zA-Z]\")) {\n return false;\n }\n else if (adif.matches(\"[a-zA-Z]\") && bdif.matches(\"[a-zA-Z]\")){\n //Automates the creation of the custom alphabetical ordering\n ArrayList<String> alph = new ArrayList<String>();\n for (int i = 0; i < 26; i++){\n alph.add(Character.toString(97 + i));\n alph.add(Character.toString(65 + i));\n }\n if (alph.indexOf(adif) < alph.indexOf(bdif)){\n return true;\n }\n else {\n return false;\n }\n }\n else {\n if (adif.compareTo(bdif) > 1) {\n return false;\n }\n else{\n return true;\n }\n\n\n }\n\n }\n\n };\n sortStrings(lst, p);\n }",
"public static void main(String[] args) {\n /*camelCase(\"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\");*/\n\n String str = \"Bill is,\\n\" +\n \"in my opinion,\\n\" +\n \"an easier name to spell than William.\\n\" +\n \"Bill is shorter,\\n\" +\n \"and Bill is\\n\" +\n \"first alphabetically.\";\n convertToCamelCase(str,str.toCharArray());\n\n String value = \"BillIs,\\n\" +\n \"InMyOpinion,\\n\" +\n \"AnEasierNameToSpellThanWilliam.\\n\" +\n \"BillIsShorter,\\n\" +\n \"AndBillIsFirstAlphabetically.\";\n\n //reverseCamelCase(value,value.toCharArray());\n\n /* Set<Integer> set = new LinkedHashSet<Integer>(\n Arrays.asList(1,2,3,4,5,6));\n\n ArrayList<List<List<Integer>>> results =\n new ArrayList<List<List<Integer>>>();\n compute(set, new ArrayList<List<Integer>>(), results);\n for (List<List<Integer>> result : results)\n {\n System.out.println(result);\n }*/\n\n /*reverseCamelCase(\"BillIsOk\\n\" +\n \"ThisIsGood.\");*/\n\n //System.out.println(\"abc \\r\\n test\");\n\n //permutation(\"abc\");\n\n /*String[] database = {\"a\",\"b\",\"c\"};\n for(int i=1; i<=database.length; i++){\n String[] result = getAllLists(database, i);\n for(int j=0; j<result.length; j++){\n System.out.println(result[j]);\n }\n }*/\n\n /*char[] database = {'a', 'b', 'c'};\n char[] buff = new char[database.length];\n int k = database.length;\n for(int i=1;i<=k;i++) {\n permGen(database,0,i,buff);\n }*/\n\n\n\n }"
] | [
"0.7141498",
"0.66103524",
"0.651589",
"0.6469038",
"0.6334763",
"0.6234956",
"0.6213947",
"0.61890745",
"0.6183135",
"0.60728514",
"0.60011125",
"0.59614056",
"0.5953956",
"0.5926721",
"0.58917487",
"0.58868015",
"0.58704716",
"0.5869918",
"0.58523256",
"0.5850259",
"0.58298403",
"0.58194506",
"0.58121127",
"0.57775104",
"0.57572377",
"0.57539564",
"0.57458824",
"0.5717382",
"0.5692606",
"0.5683971",
"0.5678825",
"0.5663739",
"0.56545156",
"0.5647216",
"0.5640672",
"0.56404746",
"0.56234896",
"0.5617771",
"0.55938804",
"0.55806327",
"0.5568191",
"0.55576557",
"0.55529696",
"0.5549327",
"0.5546422",
"0.5524931",
"0.5523203",
"0.55105954",
"0.5500727",
"0.549129",
"0.548566",
"0.5480335",
"0.5478235",
"0.54769456",
"0.54754573",
"0.5472983",
"0.5458825",
"0.5451272",
"0.54473466",
"0.54422003",
"0.5436511",
"0.54350704",
"0.54335386",
"0.5425509",
"0.5423934",
"0.5422195",
"0.54212487",
"0.54127884",
"0.5411318",
"0.54065335",
"0.5405535",
"0.5399073",
"0.53985626",
"0.53972787",
"0.53912103",
"0.5382444",
"0.537859",
"0.53740233",
"0.5371619",
"0.53489536",
"0.534865",
"0.5339552",
"0.5338818",
"0.5337509",
"0.533412",
"0.5329401",
"0.5328728",
"0.532366",
"0.532137",
"0.5310376",
"0.5305577",
"0.5304212",
"0.53013706",
"0.52954227",
"0.5295103",
"0.5290496",
"0.52902657",
"0.5275329",
"0.5268185",
"0.52637136",
"0.52573127"
] | 0.0 | -1 |
The title property is a short plain text description of the RESTful API. The value SHOULD be suitable for use as a title for the contained user documentation. | String title(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ApiModelProperty(example = \"BadRequest\", value = \"The type of the error\")\n /**\n * The type of the error\n *\n * @return title String\n */\n public String getTitle() {\n return title;\n }",
"@ApiModelProperty(value = \"A short, human-readable summary of the problem type\")\n \n public String getTitle() {\n return title;\n }",
"@JsonProperty(\"title\")\n @ApiModelProperty(value = \"The alias used to identify the dialog node.\")\n public String getTitle() {\n return title;\n }",
"@ApiModelProperty(value = \"Title of the card\")\n @JsonProperty(\"title\")\n public String getTitle() {\n return title;\n }",
"@ApiModelProperty(value = \"Title of the party. The title of a person. e.g. Mr, Mrs, Reverend, Lieutenant Colonel.\")\n\n@Size(min=1,max=70) \n public String getTitle() {\n return title;\n }",
"@Override\r\n public String getTitle() {\n return title;\r\n }",
"public String getTitle() { return title; }",
"public java.lang.String getTitle() {\n return title;\n }",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"@DISPID(-2147418043)\n @PropGet\n java.lang.String title();",
"public java.lang.String getTitle() {\n return title;\n }",
"@Override\r\n public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() { return this.title; }",
"public String getTitle(){\n\n\t\treturn title;\n\t}",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String title() {\n\t\treturn title;\n\t}",
"@Element \n public String getTitle() {\n return title;\n }",
"public String getTitle()\n {\n return title;\n }",
"public String title()\n\t{\n\t\treturn title;\n\t}",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"@Override\n public String getTitle() {\n return title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The individual title of the character\")\n public String getTitle() {\n return title;\n }",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle_() {\n return title_;\n }",
"public String getTitle() {\n \t\treturn title;\n \t}",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public void setTitle(String title) { this.title = title; }"
] | [
"0.80045927",
"0.80021286",
"0.7890947",
"0.77393854",
"0.77230394",
"0.7701268",
"0.7698687",
"0.76838696",
"0.7651516",
"0.7648038",
"0.76460165",
"0.76418036",
"0.7634804",
"0.76321787",
"0.76289856",
"0.76289856",
"0.76289856",
"0.76289856",
"0.76289856",
"0.7626502",
"0.76241714",
"0.75935566",
"0.75908285",
"0.7582002",
"0.7582002",
"0.7580722",
"0.7580722",
"0.7580722",
"0.7580722",
"0.7580722",
"0.7580722",
"0.7580722",
"0.75739306",
"0.75722617",
"0.75722617",
"0.75722617",
"0.75722617",
"0.75722015",
"0.75722015",
"0.75722015",
"0.7565556",
"0.7559009",
"0.7559009",
"0.7559009",
"0.7559009",
"0.7559009",
"0.7559009",
"0.7559009",
"0.7552463",
"0.754237",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.75386536",
"0.7533302"
] | 0.0 | -1 |
If the RAML API definition is targeted to a specific API version, the API definition MUST contain a version property. The version property is OPTIONAL and should not be used if: The API itself is not versioned. The API definition does not change between versions. The API architect can decide whether a change to user documentation elements, but no change to the API's resources, constitutes a version change. The API architect MAY use any versioning scheme so long as version numbers retain the same format. For example, 'v3', 'v3.0', and 'V3' are all allowed, but are not considered to be equal. | String version(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Version getApiVersion();",
"@Path(\"version\")\n@Consumes({ VersionRESTResource.MEDIA_TYPE_JSON_V })\n@Produces({ VersionRESTResource.MEDIA_TYPE_JSON_V })\n@Api(value = \"/version\", produces = \"application/vnd.health-v1+json\", consumes = \"application/vnd.health-v1+json\")\n@SwaggerDefinition(\n\t\tinfo = @Info(\n\t\t description = \"Provides the current version of this api.\",\n\t\t version = \"1.00.00-SNAPSHOT\",\n\t\t title = \"The Version API\",\n\t\t termsOfService = \"http://localhost:8180/bomc-swagger\",\n\t\t contact = @Contact(\n\t\t\t\tname = \"bomc\", \n\t\t\t\temail = \"bomc@bomc.org\", \n\t\t\t\turl = \"http://bomc.org\"\n\t\t ),\n\t\t license = @License(\n\t\t\t\tname = \"Apache 2.0\", \n\t\t\t\turl = \"http://www.apache.org/licenses/LICENSE-2.0\"\n\t\t )\n\t\t),\n\t\tconsumes = {\"application/vnd.version-v1+json\"},\n\t\tproduces = {\"application/vnd.version-v1+json\"},\n\t\tschemes = {SwaggerDefinition.Scheme.HTTP},\n\t\ttags = {\n\t\t\t\t@Tag(name = \"current-version\", description = \"Return the current version in json format.\")\n\t\t}, \n\t\texternalDocs = @ExternalDocs(value = \"Documentation\", url = \"http://confluence.org/bomc-swagger.html\")\n\t)\npublic interface VersionRESTResource {\n\n\tString MEDIA_TYPE_JSON_V = \"application/vnd.version-v1+json\";\n\n\t/**\n\t * <pre>\n\t * http://localhost:8080/bomc-swagger/rest/version/current-version\n\t * </pre>\n\t * \n\t * @return available heap as JsonObject.\n\t */\n\t@GET\n\t@Path(\"/current-version\")\n\t@ApiOperation(notes = \"Return the current version in json format.\", value = \"getVersion\", httpMethod = \"GET\", nickname = \"getVersion\", position = 1)\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Successful retrieval of current version.\", response = String.class),\n\t\t\t@ApiResponse(code = 500, message = \"Request failed\", response = String.class) })\n\tResponse getVersion();\n}",
"public String getApiVersion();",
"@ApiModelProperty(value = \"(Is this valid?)\")\n public Long getVersion() {\n return version;\n }",
"public void setApiVersion(Integer apiVersion)\n {\n this.apiVersion = apiVersion;\n }",
"public Integer getApiVersion()\n {\n return apiVersion;\n }",
"@JsonProperty(\"apiVersion\")\n public String getApiVersion() {\n return apiVersion;\n }",
"SchemaReference setVersion(String version);",
"public void setVersion(String version);",
"public static void showVersion() {\r\n String apiTitle = ImdbApi.class.getPackage().getSpecificationTitle();\r\n \r\n if (StringUtils.isNotBlank(apiTitle)) {\r\n String apiVersion = ImdbApi.class.getPackage().getSpecificationVersion();\r\n String apiRevision = ImdbApi.class.getPackage().getImplementationVersion();\r\n StringBuilder sv = new StringBuilder();\r\n sv.append(apiTitle).append(\" \");\r\n sv.append(apiVersion).append(\" r\");\r\n sv.append(apiRevision);\r\n LOGGER.debug(sv.toString());\r\n } else {\r\n LOGGER.debug(\"API-IMDB version/revision information not available\");\r\n }\r\n }",
"public String getApiVersion() {\n return this.apiVersion;\n }",
"@PUT\n @Consumes({\"application/xml\", \"application/json\"})\n @Path(\"/{version}\")\n public String commit(@PathParam(\"version\") String version) {\n throw new UnsupportedOperationException();\n }",
"@GET\n @Produces({\"application/xml\", \"application/json\"})\n @Path(\"/{version}\")\n public String query(@PathParam(\"version\") String version) {\n if (version.equals(NPSGlobalState.getTopologyManager().getTopologyOntHeadModelVersion())) {\n return \"LATEST\";\n }\n return \"OUTDATED\";\n }",
"public interface Version {\n\n /**\n * Check if this version is a major version.\n * \n * @return true if major version, false if it is a minor version\n */\n boolean isMajor();\n\n /**\n * Check if this version is a private working copy.\n * \n * @return true if it a PWC, false if not\n */\n boolean isPwc();\n\n /**\n * make the private working copy an official version.\n * \n * @param isMajor\n * true if major version, false if it is a minor version\n */\n void commit(boolean isMajor);\n\n /**\n * Set the check.in comment.\n * \n * @param comment\n * check-in comment\n */\n void setCheckinComment(String comment);\n\n /**\n * Get the check-in comment.\n * \n * @return check-in comment\n */\n String getCheckinComment();\n\n /**\n * Get the version label.\n * \n * @return the version label\n */\n String getVersionLabel();\n\n /**\n * Get the versioned document (parent) of this version.\n * \n * @return versioned document\n */\n VersionedDocument getParentDocument();\n}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Deprecated, use the appropriate `pipeline` version. Specify a specific verison of PrinceXML to use.\")\n @JsonProperty(JSON_PROPERTY_VERSION)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getVersion() {\n return version;\n }",
"@NotNull\n @JsonProperty(\"version\")\n public Long getVersion();",
"public void setVersion(String version){\r\n this.version = version;\r\n }",
"private void apiVersion(RoutingContext context) {\n context.response()\n .end(new JsonObject().put(\"version\", \"v1\").encodePrettily());\n }",
"String apiVersion();",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"@CompositeValue(ignore=true)\n @XmlAttribute(name=\"version\")\n public void setVersion(Version version)\n {\n versionRange = new VersionRange(version, true, version, true);\n }",
"public ApplicationCreator setApiVersion(final String apiVersion) {\n this.apiVersion = apiVersion;\n return this;\n }",
"public void setVersion(String version)\n {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n\t\t\r\n\t}",
"@Test\n public void apiVersionTest() {\n // TODO: test apiVersion\n }",
"@ApiModelProperty(example = \"1.0.0\", value = \"The raw version for this package.\")\n public String getVersion() {\n return version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version)\n {\n this.ver = version;\n }",
"public void setVersion(Integer version)\r\n {\r\n this.version = version;\r\n }",
"@ApiModelProperty(value = \"The version is used for optimistic locking and incremented whenever the object is updated.\")\n public Integer getVersion() {\n return version;\n }",
"@OnThread(Tag.Any)\n public static Version getAPIVersion()\n {\n if (version == null)\n {\n try\n {\n Class<?> bootCls = Class.forName(\"bluej.Boot\");\n Field field = bootCls.getField(\"GREENFOOT_API_VERSION\");\n String versionStr = (String) field.get(null);\n version = new Version(versionStr);\n }\n catch (ClassNotFoundException | SecurityException | NoSuchFieldException |\n IllegalArgumentException | IllegalAccessException e)\n {\n Debug.reportError(\"Could not get Greenfoot API version\", e);\n throw new InternalGreenfootError(e);\n }\n }\n return version;\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"@Path(\"/providers/Microsoft.Compute/locations/{location}\")\n@RequestFilters({ OAuthFilter.class, ApiVersionFilter.class })\n@Consumes(APPLICATION_JSON)\npublic interface OSImageApi {\n\n /**\n * List Publishers in location\n */\n @Named(\"publisher:list\")\n @GET\n @Path(\"/publishers\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Publisher> listPublishers();\n\n /**\n * List Offers in publisher\n */\n @Named(\"offer:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Offer> listOffers(@PathParam(\"publisher\") String publisher);\n\n /**\n * List SKUs in offer\n */\n @Named(\"sku:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<SKU> listSKUs(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer);\n\n /**\n * List Versions in SKU\n */\n @Named(\"version:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Version> listVersions(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku);\n \n /**\n * Get the details of a Version\n */\n @Named(\"version:get\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions/{version}\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n Version getVersion(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku, @PathParam(\"version\") String version);\n\n}",
"public void setVersion(Integer version) {\r\n this.version = version;\r\n }",
"public void setVersion( Integer version ) {\n this.version = version;\n }",
"public void setVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"boolean hasVersion();",
"boolean hasVersion();",
"@ApiModelProperty(value = \"Software Statement version as provided by the organisation's PTC\")\n\n @Valid\n\n public BigDecimal getVersion() {\n return version;\n }",
"Builder addSchemaVersion(URL value);",
"public SupportApplicationVersionResponse supportApplicationVersion(Long versionId) {\n\n ApplicationVersionEntity version = applicationVersionRepository.findOne(versionId);\n version.setSupported(true);\n version = applicationVersionRepository.save(version);\n\n SupportApplicationVersionResponse response = new SupportApplicationVersionResponse();\n response.setApplicationVersionId(version.getId());\n response.setSupported(version.getSupported());\n\n return response;\n }",
"public void setVersion(String version) {\n\t\tthis.version = version;\n\t}",
"void setVersion(String version);",
"void setVersion(String version);",
"@Test\n public void multipleVersions() {\n repo.addDocument(\"test1\", \"{\\\"test\\\":1}\", \"arthur\", \"test version 1\", false);\n repo.addDocument(\"test1\", \"{\\\"test\\\":2}\", \"arthur\", \"this is version 2\", false);\n\n String result = repo.getDocument(\"test1\");\n assertEquals(\"{\\\"test\\\":2}\", result);\n }",
"@Override\n public int compareTo(ApiVersion other) {\n if (!prerelease.isEmpty()) {\n if (other.prerelease.isEmpty()) {\n return -1;\n }\n return prerelease.compareTo(other.prerelease);\n }\n if (!other.prerelease.isEmpty()) {\n return 1;\n }\n if (major != other.major) {\n return Integer.compare(major, other.major);\n }\n if (minor != other.minor) {\n return Integer.compare(minor, other.minor);\n }\n return Integer.compare(patch, other.patch);\n }",
"String getVersion() throws IOException, SoapException;",
"public void setVersion(final Long version);",
"@java.lang.Deprecated\n public A withNewApiVersion(java.lang.String arg0);",
"public ValidationResult validateAgainstApiDefinition(ApiDefinition apiDefinition) {\n ApiContract temporaryContract = new ApiContract();\n temporaryContract.setApiDefinition(apiDefinition);\n temporaryContract.setApiSpecification(this);\n\n return validateContract(temporaryContract);\n }",
"@Description(\"response with HTTP version '{version}'\")\n public static Criteria<HarEntry> recordedResponseHttpVersion(@DescriptionFragment(\"version\") HttpClient.Version version) {\n checkArgument(nonNull(version), \"Http version should be defined\");\n\n return condition(entry -> {\n HttpClient.Version httpVersion = entry.getResponse().getHttpVersion().equals(\"HTTP/1.1\") ? HTTP_1_1 : HTTP_2;\n\n return Objects.equals(httpVersion, version);\n });\n }",
"@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}",
"private void getVersion(RoutingContext routingContext) {\n response(routingContext, 200, new JsonObject().put(\"version\", \"0.1\"));\n }",
"public void setVersion(String _version) {\n this._version = _version;\n }",
"public void setVersion(long version) {\n this.version = version;\n }",
"public int getVersion() { return 1; }",
"public void setVersion(int value) {\n this.version = value;\n }",
"public void setVersion(Integer version) {\n\t\tthis.version = version;\n\t}",
"List<String> apiVersions();",
"@java.lang.Override\n public boolean hasVersion() {\n return instance.hasVersion();\n }",
"@Override\n\tpublic ApiResponseResult queryAppVersion() throws Exception {\n\t\tMap m = new HashMap();\n\t\t List<Map<String, Object>> l = sysUserDao.queryAppVersion();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Version\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t return ApiResponseResult.failure(\"未设置更新版本\");\n\t\t }\n\t\t \n\t\t l = sysUserDao.queryApkUrl();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Url\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t return ApiResponseResult.failure(\"未设置更新版本的下载地址\");\n\t\t }\n\t\t \n\t\t l = sysUserDao.queryAppSize();\n\t\t if(l.size() > 0){\n\t\t\t m.put(\"Size\", l.get(0).get(\"PV\"));\n\t\t }else{\n\t\t\t m.put(\"Size\", 0);\n\t\t }\n\t\t\n\t\treturn ApiResponseResult.success().data(m);\n\t}",
"@CheckForNull\n String getVersion();",
"public abstract int getVersion();",
"Builder addSchemaVersion(String value);",
"@Test\n public void requestFormatIncreased() {\n assertOpenApiBackwardIncompatible(BASE, \"bc_request_schema_format_increased.yaml\");\n }",
"public abstract HttpClient.Version version();",
"@RequestMapping(value = \"/project/{projectId}/version/{versionId}\", method = RequestMethod.GET)\n @ApiOperation(value = \"查询项目版本信息\", notes = \"查询某个项目下某个版本的信息\",\n httpMethod = \"GET\", response = ApiResult.class)\n @ApiImplicitParams({@ApiImplicitParam(paramType = \"path\", name = \"projectId\",value = \"项目id\",required = true,dataType = \"Integer\"),\n @ApiImplicitParam(paramType = \"path\", name = \"versionId\",value = \"版本id\",required = true,dataType = \"Integer\")})\n @AuthorityCheck\n public void queryProjectSingleVersion(@PathVariable Integer projectId,\n @PathVariable Integer versionId) throws ApiBusinessException{\n try {\n EtVersion version = serviceManager.getVersionService().queryVersionById(versionId);\n if(version != null){\n Version version1 = new Version(version);\n this.renderResult(\"查询项目版本信息成功\", version1);\n }else{\n throw new ApiBusinessException(ExceptionEnum.PROJECT_VERSION_QUERY_NOTEXIST);\n }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new ApiBusinessException(e.getEe());\n }\n }",
"public ReadAPIServer resourceVersion(String resourceVersion) {\n put(\"resourceVersion\", resourceVersion);\n return this;\n }",
"public Single<Version> createVersion(\n Version version, Optional<RestRequestEnhancer> restRequestEnhancer) {\n\n RestRequest.Builder requestBuilder = RestRequest.builder()\n .method(HttpMethod.POST)\n .basePath(DEFAULT_BASE_PATH)\n .path(\"/rest/api/3/version\");\n\n Map<String, String> pathParams = new HashMap<>();\n requestBuilder.pathParams(pathParams);\n\n Map<String, Collection<String>> queryParams = new HashMap<>();\n requestBuilder.queryParams(queryParams);\n\n Map<String, String> headers = new HashMap<>();\n requestBuilder.headers(headers);\n\n requestBuilder.requestBody(Optional.of(version));\n\n return restClient.callEndpoint(requestBuilder.build(), restRequestEnhancer, returnType_createVersion);\n }",
"public interface SwaggerDescriptions {\n\n String VIN = \"Identifies a vehicle. This is a required parameter unless year, make, and model are provided as input values.\";\n String COUNTRY = \"Identifies a country. This country could be different than the country in which the vehicle was manufactured.\";\n String USED = \"Identifies whether the vehicle is used. If set to true, you can specify install options for the vehicle using other input values.\";\n String VEHICLE_YEAR = \"Identifies the year in which the vehicle was manufactured. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MAKE = \"Identifies the vehicle make. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MODEL = \"Identifies the vehicle model. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_TRIM = \"Identifies the vehicle trim. If you submit a VIN that returns multiple style ids, you can specify a trim to focus the response on one style id.\";\n String VEHICLE_BODY_STYLE = \"Identifies the vehicle body style to install on the vehicle.\";\n String VEHICLE_ENGINE = \"Identifies the vehicle engine code to install on the vehicle.\";\n String VEHICLE_TRANS = \"Identifies the vehicle transmission to install on the vehicle.\";\n String VEHICLE_EXT_COLOR = \"Identifies the vehicle's exterior color to install on the vehicle.\";\n String VEHICLE_INT_COLOR = \"Identifies the vehicle's interior color to install on the vehicle.\";\n String LIST_OPTIONS = \"Identifies a list of vehicle options to install on the vehicle.\";\n String LIST_UNSTRUCTURED = \"Identifies unstructured text that is mapped to the vehicle features you want installed on the vehicle.\";\n\n String INCLUDE_DEBUG_INFO = \"Include debug information in the response object\";\n String INCLUDE_SUPPORT_INFO = \"Include support information in the response object\";\n\n String LANGUAGE = \"Language\";\n\n String GET_WS_VERSION = \"Get the version of the web service\";\n String GET_WS_HEALTH = \"Check the health of the services\";\n String GET_WS_CONNECTION = \"Get the status of micro service connections\";\n\n String WS_RESPONSE_ID = \"Displays a unique identifier of the web service response.\";\n String WS_DATE_TIME = \"Displays the date and time on the server when the request was made.\";\n\n String WS_MESSAGE = \"Displays messages from the server.\";\n String WS_ERROR = \"Identifies whether an error occurred with the request.\";\n String EXECUTION_TIME = \"Displays the execution time of the request in milliseconds.\";\n String WS_DEBUG_INFO = \"Displays debug information.\";\n String WS_SUPPORT_INFO = \"Displays support information.\";\n String WS_RESULT = \"Displays the web service results.\";\n String WS_EXECUTION_DETAILS = \"Displays Akana related billing informations.\";\n String WS_COPYRIGHT = \"Displays the copywrite message.\";\n\n}",
"void setVersion(long version);",
"public FullVersion MprisVersion();",
"Builder addVersion(String value);",
"@BusProperty(name = \"Version\", signature = \"u\")\n int getVersion() throws BusException;",
"public Version getVersion();",
"public final void setVersion(String version) {\n this.version = version;\n }",
"@Description(\"request with HTTP version '{version}'\")\n public static Criteria<HarEntry> recordedRequestHttpVersion(@DescriptionFragment(\"version\") HttpClient.Version version) {\n checkArgument(nonNull(version), \"Http version should be defined\");\n\n return condition(entry -> {\n HttpClient.Version httpVersion = entry.getRequest().getHttpVersion().equals(\"HTTP/1.1\") ? HTTP_1_1 : HTTP_2;\n\n return Objects.equals(httpVersion, version);\n });\n }",
"public interface IdeaApiService {\n @GET(\"version/android\")\n Observable<BasicResponse<VersionAfterBean>> updateVersionTEST(@Query(\"version\") String version);\n\n @GET(\"version/upgrade\")\n Observable<BasicResponse<Bean>> getappfindmeanu(@Query(\"version\") String version);\n\n @GET(\"merchandise/index\")\n Observable<BasicResponse<Bean>> getaa();\n}",
"private RequestMappingInfo createApiVersionInfo(final ApiVersion annotation,\n\t\t\t\t\t\t\t\t\t\t\t\t\tfinal RequestCondition<?> customCondition)\n\t{\n\t\tfinal String[] values = annotation.value();\n\t\tfinal String[] patterns = new String[values.length];\n\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t// Build the URL prefix\n\t\t\tpatterns[i] = this.prefix + values[i];\n\t\t}\n\t\t\n\t\treturn new RequestMappingInfo(\n\t\t\t\tnew PatternsRequestCondition(patterns, getUrlPathHelper(), getPathMatcher(), useSuffixPatternMatch(),\n\t\t\t\t\t\tuseTrailingSlashMatch(), getFileExtensions()), new RequestMethodsRequestCondition(),\n\t\t\t\tnew ParamsRequestCondition(), new HeadersRequestCondition(), new ConsumesRequestCondition(),\n\t\t\t\tnew ProducesRequestCondition(), customCondition);\n\t}",
"@Test\n\tpublic void testResolveAPIVersionByPlatformVersion()\n\t\t\tthrows Exception {\n\t\tAPIVersionResolver fixture = new APIVersionResolver();\n\n\t\tfinal String sysPropBefore = System.getProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_REST_API_VERSION);\n\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_REST_API_VERSION);\n\n\t\tString result = fixture.resolveAPIVersion();\n\t\ttry {\n\t\t\tAssert.assertEquals(PlatformVersion.getVersion(), result);\n\t\t} finally {\n\t\t\tif (sysPropBefore == null) {\n\t\t\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_REST_API_VERSION);\n\t\t\t} else {\n\t\t\t\tSystem.setProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_REST_API_VERSION, sysPropBefore);\n\t\t\t}\n\n\t\t}\n\t}",
"@Api(description = \"supermarket client api\")\npublic interface SupermarketClientApi extends ProductApi {\n}",
"private static final void u() {\n try {\n Object object = StaticLoggerBinder.REQUESTED_API_VERSION;\n Object object2 = v;\n int n10 = ((String[])object2).length;\n int n11 = 0;\n boolean bl2 = false;\n while (true) {\n if (n11 >= n10) {\n if (bl2) return;\n object2 = new StringBuilder();\n String string2 = \"The requested version \";\n ((StringBuilder)object2).append(string2);\n ((StringBuilder)object2).append((String)object);\n object = \" by your slf4j binding is not compatible with \";\n ((StringBuilder)object2).append((String)object);\n object = v;\n object = Arrays.asList(object);\n object = object.toString();\n ((StringBuilder)object2).append((String)object);\n object = ((StringBuilder)object2).toString();\n i.h.h.i.c((String)object);\n object = \"See http://www.slf4j.org/codes.html#version_mismatch for further details.\";\n i.h.h.i.c((String)object);\n return;\n }\n String string3 = object2[n11];\n boolean bl3 = ((String)object).startsWith(string3);\n if (bl3) {\n bl2 = true;\n }\n ++n11;\n }\n }\n catch (Throwable throwable) {\n String string4 = \"Unexpected problem occured during version sanity check\";\n i.h.h.i.d(string4, throwable);\n return;\n }\n catch (NoSuchFieldError noSuchFieldError) {\n return;\n }\n }",
"public boolean isVersion()\n {\n return !getVersion().isNull();\n }",
"public void setVersion(String version) {\n this.version = version == null ? null : version.trim();\n }",
"@Named(\"version:get\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions/{version}\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n Version getVersion(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku, @PathParam(\"version\") String version);",
"public interface GetVersionInterface {\n\n @GET\n Call<NativeVersionResBean> getVersionRes(@Url String url, @QueryMap Map<String, String> params);\n\n}",
"Builder addSchemaVersion(Text value);",
"public void setVersion(String version) {\r\n this.version = version == null ? null : version.trim();\r\n }",
"default boolean doesUpdateExist(String version) {\n return !getLatestVersion().getVersion().equals(version);\n }"
] | [
"0.6745524",
"0.6625621",
"0.6503672",
"0.6455022",
"0.6359327",
"0.61972535",
"0.6043901",
"0.60369706",
"0.59740543",
"0.59717673",
"0.5964465",
"0.5934417",
"0.5887707",
"0.5872324",
"0.58312184",
"0.5822007",
"0.58087695",
"0.57992834",
"0.5772023",
"0.57473695",
"0.57473695",
"0.5725027",
"0.5690791",
"0.5685599",
"0.56648314",
"0.56648314",
"0.56648314",
"0.56391346",
"0.5637077",
"0.56322074",
"0.56188685",
"0.559811",
"0.5588368",
"0.5585435",
"0.5583382",
"0.555609",
"0.555609",
"0.555336",
"0.5548816",
"0.55413103",
"0.55300355",
"0.55220336",
"0.55220336",
"0.55220336",
"0.55220336",
"0.55220336",
"0.55220336",
"0.549865",
"0.549865",
"0.54959166",
"0.5494017",
"0.54895055",
"0.5488958",
"0.5477417",
"0.5477417",
"0.5453759",
"0.54510486",
"0.54509276",
"0.5450264",
"0.5440612",
"0.54336303",
"0.54155225",
"0.54120195",
"0.5393932",
"0.5390762",
"0.5381987",
"0.5378131",
"0.5370267",
"0.536621",
"0.5364294",
"0.53613025",
"0.5359671",
"0.53561157",
"0.5355441",
"0.5349905",
"0.5347338",
"0.53403604",
"0.533969",
"0.5336525",
"0.531662",
"0.53111666",
"0.5301835",
"0.53007644",
"0.5298119",
"0.52883255",
"0.5286766",
"0.5286304",
"0.528556",
"0.52781713",
"0.5276775",
"0.52672344",
"0.52612734",
"0.5258104",
"0.525326",
"0.5248258",
"0.524635",
"0.5239519",
"0.5239347",
"0.52393216",
"0.52276593",
"0.52262497"
] | 0.0 | -1 |
(Optional during development; Required after implementation) A RESTful API's resources are defined relative to the API's base URI. The use of the baseUri field is OPTIONAL to allow describing APIs that have not yet been implemented. After the API is implemented (even a mock implementation) and can be accessed at a service endpoint, the API definition MUST contain a baseUri property. The baseUri property's value MUST conform to the URI specification RFC2396 or a Level 1 Template URI as defined in RFC6570. The baseUri property SHOULD only be used as a reference value. | FullUriTemplateString baseUri(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setBaseUri(String baseUri);",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"@Path(JaxRsActivator.OVERVIEW_ENDPOINT_PATH)\npublic interface ApiOverviewRestEndpoint {\n /**\n * A {@code String} constant representing json v1 \"{@value #MEDIA_TYPE_JSON_V1}\" media type .\n */\n String MEDIA_TYPE_JSON_V1 = \"application/vnd.overview-v1+json\";\n /**\n * A {@link MediaType} constant representing json v1 \"{@value #MEDIA_TYPE_JSON_V1}\" media type.\n */\n MediaType MEDIA_TYPE_JSON_V1_TYPE = new MediaType(\"application\", \"vnd.overview-v1+json\");\n\n /**\n * <pre>\n * http://127.0.0.1:8180/auth-microservice/auth-api/overview/endpoints\n * curl -v -H \"Accept: application/vnd.overview-v1+json\" -H \"Content-Type: application/vnd.overview-v1+json\" -H \"X-BOMC-REQUEST-ID: SET-BY-CURL-123\" -H \"X-BOMC-AUTHORIZATION: BOMC_USER\" -X GET \"127.0.0.1:8180/auth-microservice/auth-api/overview/endpoints\"\n * </pre>\n * @return JSON response for all available endpoints.\n * @description List all available endpoints. responseType javax.json.JsonObject\n * @responseMessage 200 A Response object that wraps the javax.json.JsonObject.\n * @responseMessage 400 Invalid Request.\n * @responseMessage 401 Unauthorized. API key does not need access privileges.\n * @responseMessage 404 Endpoint not found.\n */\n @GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);\n}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The URI for this resource, relative to /apiserver.\")\n\n public String getUri() {\n return uri;\n }",
"public SampleApiClient(String baseUri) {\n\t\t// Setup a request specification that can be applied to multiple requests\n\t\tRequestSpecBuilder requestSpecBuilder = new RequestSpecBuilder();\n\t\trequestSpecBuilder.setBaseUri(baseUri);\n\t\trequestSpecification = requestSpecBuilder.build();\n\t\t\n\t\t// Setup a response specification that can be applied to all responses\n\t\tResponseSpecBuilder responseSpecBuilder = new ResponseSpecBuilder();\n\t\tresponseSpecBuilder.setDefaultParser(Parser.JSON);\n\t\tResponseSpecification responseSpecification = responseSpecBuilder.build();\n\t\t//this.responseSpecification = responseSpecification;\t// Does not work, for some reason -> bug with Rest Assured!\n\t\tRestAssured.responseSpecification = responseSpecification;\t// Setting the responseSpec globally as an alternative...\n\t}",
"@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();",
"public String getApiBase() {\n\t\treturn apiBase;\n\t}",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"ResourceAPI createResourceAPI();",
"public abstract RestURL getURL();",
"public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }",
"public interface ApiEndpointDefinition extends Serializable {\n\n\t/**\n\t * Get the endpoint class.\n\t * @return the endpoint class\n\t */\n\tClass<?> getEndpointClass();\n\n\t/**\n\t * Get the endpoint type.\n\t * @return the endpoint type\n\t */\n\tApiEndpointType getType();\n\n\t/**\n\t * Get the scanner type.\n\t * @return the scanner type\n\t */\n\tJaxrsScannerType getScannerType();\n\n\t/**\n\t * Get the endpoint path.\n\t * @return the endpoint path\n\t */\n\tString getPath();\n\n\t/**\n\t * Get the API context id to which the endpoint is bound.\n\t * @return the API context id to which the endpoint is bound\n\t */\n\tString getContextId();\n\n\t/**\n\t * Init the endpoint context.\n\t * @return <code>true</code> if initialized, <code>false</code> if already initialized\n\t */\n\tboolean init();\n\n\t/**\n\t * Create a new {@link ApiEndpointDefinition}.\n\t * @param endpointClass The endpoint class (not null)\n\t * @param type The endpoint type\n\t * @param scannerType The scanner type\n\t * @param path The endpoint path\n\t * @param contextId the API context id to which the endpoint is bound\n\t * @param initializer Initializer (not null)\n\t * @return A new {@link ApiEndpointDefinition} instance\n\t */\n\tstatic ApiEndpointDefinition create(Class<?> endpointClass, ApiEndpointType type, JaxrsScannerType scannerType,\n\t\t\tString path, String contextId, Callable<Void> initializer) {\n\t\treturn new DefaultApiEndpointDefinition(endpointClass, type, scannerType, path, contextId, initializer);\n\t}\n\n}",
"public interface RestConstants {\n\n /**\n * Base for rest api requests\n */\n String BASE = \"/api\";\n\n /**\n * end-point for calculating an area\n */\n String CALCULATE_AREA = \"/area\";\n /**\n * end-point for calculating a volume\n */\n String CALCULATE_VOLUME = \"/volume\";\n /**\n * end-point for calculating a light to area ratio\n */\n String CALCULATE_LIGHT_TO_AREA = \"/light-area\";\n /**\n * end-point for calculating an energy to volume ratio\n */\n String CALCULATE_ENERGY_TO_VOLUME = \"/energy-volume\";\n /**\n * end-point for finding rooms above provided norm\n */\n String GET_ROOMS_ABOVE_ROOM = \"/norm-check\";\n /**\n * end-point for calculating penalty for rooms above norm\n */\n String CALCULATE_PENALTY = \"/penalty\";\n}",
"java.lang.String getApiUrl();",
"@Override\n public String getBaseUri() {\n return null;\n }",
"protected abstract String getBaseEndpointPath();",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"public String getApiBaseUrl() {\n return this.apiBaseUrl;\n }",
"@Override\r\n public UriBuilder getBaseUriBuilder() {\n return null;\r\n }",
"public String getApiUrl();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set the baseurl for assets.\")\n @JsonProperty(JSON_PROPERTY_BASEURL)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getBaseurl() {\n return baseurl;\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"public interface IServiceApi {\n public static final String VERSION = \"v1/\";\n public static final String BASE = \"/api/\"+VERSION;\n \n}",
"public interface ApiEndPointsAndPatameters {\n\t\n//\t/** Resource path for api resources */\n//\tString API_PREFIX = \"/api\";\n//\n\t/** Resource path for API version 1 */\n\tString API_VERSION_1 = \"/v1\";\n//\n//\t/** Resource path to get available power plants. */\n//\tString POWER_PLANT_PATH = \"/powerPlant\";\n//\n//\t/** Resource path to get power plant data for a given power plant id. */\n//\tString POWER_PLANT_DATA_PATH = \"/{id}\";\n//\n//\tString POWER_PLANT_DETAILS = \"/details\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_DAY = \"/sumByDay\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_WEEK = \"/sumByWeek\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_MONTH = \"/sumByMonth\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_YEAR = \"/sumByYear\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_HOUR_FORECAST = \"/nextHourForecast\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_DAY_FORECAST = \"/nextDayForecast\";\n//\n//\t/** Query parameter for filtering by start date. */\n//\tString QUERY_PARAMETER_START_DATE = \"startDate\";\n//\n//\t/** Query parameter for filtering by end date. */\n//\tString QUERY_PARAMETER_END_DATE = \"endDate\";\n//\n//\t/** Query parameter for filtering by power plant data type. */\n//\tString QUERY_PARAMETER_DATA_TYPE = \"dataType\";\n//\t\n//\t\n\t\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHENTICATION_ID = \"Authentication-ID\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_USER_PASSWORD = \"UserPassword\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHORISATION_ID = \"authorisation-id\";\n\t\n\t/** Resource path to get a list to the components a User has access to. */\n\tString USER_COMPONENT_LIST = \"/UserComponentLists\";\n\t\n\t/** Resource path to get a list of available resources for a component. */\n\tString DATA_LIST = \"/DataLists\";\n\t\n\t/** Resource path to authenticate. */\n\tString AUTHENTICATION = \"/authentication\";\n\t\n\t/** Resource path to logout. */\n\tString LOGOUT = \"/logout\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString COMPONENT_ID_PATH = \"/{cId}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString SIDE_PATH = \"/{side}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString TYPE_PATH = \"/{type}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString DATE_PATH = \"/{date}\";\n}",
"@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}",
"public UsersFollowsResource(String baseUrl) {\n super(baseUrl);\n }",
"public interface EndpointsApi {\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getRecentMedia(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_PROFILE_USER_WITH_ID)\n Call<MascotasResponse> getProfile(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_FOLLOWS)\n Call<MascotasResponse> getFollows();\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getFollowsMediaRecent(@Path(\"user-id\") String id);\n}",
"public String swaggerUri() {\n return this.swaggerUri;\n }",
"protected abstract String getBaseEndpoint();",
"public interface RestApi {\n}",
"void setDefaultEndpointUri(String endpointUri);",
"public interface ResourceDefinition\n{\n\n\t/**\n\t * Get the native path in the repository for the resource\n\t * \n\t * @return\n\t */\n\tString getRepositoryPath();\n\n\t/**\n\t * Get the external path of the passed in path releative to this resource\n\t * \n\t * @param path\n\t * @return\n\t */\n\tString getExternalPath(String path);\n\n\t/**\n\t * Get the repository path, relative to this resource\n\t * \n\t * @param name\n\t * @return\n\t */\n\tString getRepositoryPath(String name);\n\n\t/**\n\t * Does the path represent a resource that is private for the current\n\t * request This may relate to a logged in user or context. This will control\n\t * the caching headers in the http response.\n\t * \n\t * @return\n\t */\n\tboolean isPrivate();\n\n\t/**\n\t * @return\n\t */\n\tString getFunctionDefinition();\n\n\t/**\n\t * @return\n\t */\n\tint getDepth();\n\n}",
"@Override\r\n\tpublic void setAPIBaseUrl(String apiBaseUrl) {\n\t\tthis.apiBaseUrl = apiBaseUrl;\r\n\t}",
"public abstract String getBaseURL();",
"URI getBaseURI() {\n return _baseURI;\n }",
"String getBaseUri();",
"public interface BaseController {\n\n\t/**\n\t * Root Endpoint\n\t *\n\t * @return the root\n\t */\n\tResponseEntity<String> getRoot();\n\n\t/**\n\t * This method exposes API to show the main application info\n\t *\n\t * @return the main application info\n\t */\n\tResponseEntity<String> getAbout();\n\t#if (${withCache} == 'Y')\n\t/**\n\t * Cache Endpoint\n\t *\n\t * @return the cache\n\t */\n\tResponseEntity<String> cleanCache();\n\t#end\n\n}",
"SourceBuilder createRestController();",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public URL makeBase(URL startingURL);",
"@Test\n\t@Given(\"The URI API for foreign Exchange\")\n\tpublic void the_uri_api_for_foreign_exchange() {\n\t\tRestAssured.baseURI = BASE_URL;\n\t\t RequestSpecification request = RestAssured.given();\n\t\t response = request.get(\"2050-01-12\");\n\t}",
"public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}",
"public abstract String getResUri();",
"public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}",
"public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}",
"List<Parameter> baseUriParameters();",
"private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }",
"RaptureURI getBaseURI();",
"@Path(\"policyDefs\")\npublic interface IPolicyDefinitionResource {\n\n @GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<PolicyDefinitionSummaryBean> list() throws NotAuthorizedException;\n\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public PolicyDefinitionBean create(PolicyDefinitionBean bean) throws PolicyDefinitionAlreadyExistsException, NotAuthorizedException;\n \n @GET\n @Path(\"{policyDefinitionId}\")\n @Produces(MediaType.APPLICATION_JSON)\n public PolicyDefinitionBean get(@PathParam(\"policyDefinitionId\") String policyDefinitionId) throws PolicyDefinitionNotFoundException, NotAuthorizedException;\n\n @PUT\n @Path(\"{policyDefinitionId}\")\n public void update(@PathParam(\"policyDefinitionId\") String policyDefinitionId, PolicyDefinitionBean bean)\n throws PolicyDefinitionNotFoundException, NotAuthorizedException;\n\n @DELETE\n @Path(\"{policyDefinitionId}\")\n public void delete(@PathParam(\"policyDefinitionId\") String policyDefinitionId)\n throws PolicyDefinitionNotFoundException, NotAuthorizedException;\n\n}",
"@Api(description = \"supermarket client api\")\npublic interface SupermarketClientApi extends ProductApi {\n}",
"public ResourceTypeExtension withEndpointUri(String endpointUri) {\n this.endpointUri = endpointUri;\n return this;\n }",
"public String getRestUrl() {\n return this.restUrl;\n }",
"@Before\n public void setBaseUri () {\n RestAssured.port = 8080;\n RestAssured.baseURI = \"http://localhost\";\n RestAssured.basePath = \"/v1\";\n }",
"public interface ResourceBase {\n\tString getName();\n\tString getLocation();\n\t/** Path equals location*/\n\tString getPath();\n\tResourceBase getParent();\n\tList<ResourceBase> getSubResources();\n\t\n\t/** TODO: May be interface extension if resource structure cannot be changed via the interface*/\n\tvoid addElement(String newSubResourceName, ResourceBase newSubResource);\n\tResourceBase removeElement(String subResourceName);\n}",
"public RestAPI setBaseURL(String url) throws APIException {\n\t\tthis.url = url;\n\t\tcheckBaseURL();\n\n\t\treturn this;\n\t}",
"private String getRestUrl() {\n return restUrl;\n }",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"@Path(\"version\")\n@Consumes({ VersionRESTResource.MEDIA_TYPE_JSON_V })\n@Produces({ VersionRESTResource.MEDIA_TYPE_JSON_V })\n@Api(value = \"/version\", produces = \"application/vnd.health-v1+json\", consumes = \"application/vnd.health-v1+json\")\n@SwaggerDefinition(\n\t\tinfo = @Info(\n\t\t description = \"Provides the current version of this api.\",\n\t\t version = \"1.00.00-SNAPSHOT\",\n\t\t title = \"The Version API\",\n\t\t termsOfService = \"http://localhost:8180/bomc-swagger\",\n\t\t contact = @Contact(\n\t\t\t\tname = \"bomc\", \n\t\t\t\temail = \"bomc@bomc.org\", \n\t\t\t\turl = \"http://bomc.org\"\n\t\t ),\n\t\t license = @License(\n\t\t\t\tname = \"Apache 2.0\", \n\t\t\t\turl = \"http://www.apache.org/licenses/LICENSE-2.0\"\n\t\t )\n\t\t),\n\t\tconsumes = {\"application/vnd.version-v1+json\"},\n\t\tproduces = {\"application/vnd.version-v1+json\"},\n\t\tschemes = {SwaggerDefinition.Scheme.HTTP},\n\t\ttags = {\n\t\t\t\t@Tag(name = \"current-version\", description = \"Return the current version in json format.\")\n\t\t}, \n\t\texternalDocs = @ExternalDocs(value = \"Documentation\", url = \"http://confluence.org/bomc-swagger.html\")\n\t)\npublic interface VersionRESTResource {\n\n\tString MEDIA_TYPE_JSON_V = \"application/vnd.version-v1+json\";\n\n\t/**\n\t * <pre>\n\t * http://localhost:8080/bomc-swagger/rest/version/current-version\n\t * </pre>\n\t * \n\t * @return available heap as JsonObject.\n\t */\n\t@GET\n\t@Path(\"/current-version\")\n\t@ApiOperation(notes = \"Return the current version in json format.\", value = \"getVersion\", httpMethod = \"GET\", nickname = \"getVersion\", position = 1)\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"Successful retrieval of current version.\", response = String.class),\n\t\t\t@ApiResponse(code = 500, message = \"Request failed\", response = String.class) })\n\tResponse getVersion();\n}",
"@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"@Path(\"property\")\n@Tag(name = \"Property\", description = \"This endpoint is used for sharing properties between different data\")\npublic interface PropertyControllerDefinition extends IPropertyControllerJaxRS {\n\n @Override\n @Operation(summary = \"Get JSON\", description = \"GET a JSON document.\")\n String getJsonConfiguration(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Save JSON\", description = \"Saves a JSON document.\")\n void setJsonConfiguration(String name, String json) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Property\", description = \"Gets property's value\")\n String getProperty(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Property\", description = \"Updates the property's value\")\n void setProperty(String name, String value) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets all properties as key / value pairs.\")\n Map<String, String> getProperties() throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets properties as key / value pairs of specified properties.\")\n Map<String, String> getProperties(String[] names) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Properties\", description = \"Updates the values of multiple properties.\")\n void setProperties(Map<String, String> values) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Principal\", description = \"Returns user's principal used by front-ends for queries or to determine what to display.\")\n ICoalescePrincipal whoami();\n}",
"@Path(\"/providers/Microsoft.Compute/locations/{location}\")\n@RequestFilters({ OAuthFilter.class, ApiVersionFilter.class })\n@Consumes(APPLICATION_JSON)\npublic interface OSImageApi {\n\n /**\n * List Publishers in location\n */\n @Named(\"publisher:list\")\n @GET\n @Path(\"/publishers\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Publisher> listPublishers();\n\n /**\n * List Offers in publisher\n */\n @Named(\"offer:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Offer> listOffers(@PathParam(\"publisher\") String publisher);\n\n /**\n * List SKUs in offer\n */\n @Named(\"sku:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<SKU> listSKUs(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer);\n\n /**\n * List Versions in SKU\n */\n @Named(\"version:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Version> listVersions(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku);\n \n /**\n * Get the details of a Version\n */\n @Named(\"version:get\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions/{version}\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n Version getVersion(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku, @PathParam(\"version\") String version);\n\n}",
"abstract String getUri();",
"public interface IEndpoint\n{\n @GET(Contract.PATH_POPULAR_MOVIE)\n Call<MovieResponse> getPopularMovies(@Query(\"api_key\") String apiKey);\n\n @GET(Contract.PATH_TOP_RATED_MOVIE)\n Call<MovieResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/videos\")\n Call<MovieTrailer> getMovieTrailer(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(\"movie/{id}/reviews\")\n Call<MovieReview> getMovieReview(@Path(\"id\") int id,\n @Query(\"api_key\") String apiKey);\n\n @GET(Contract.SIZE_MOBILE + \"{posterImagePath}\")\n Call<ResponseBody> getPosterImage(\n @Path(value = \"posterImagePath\", encoded = true)\n String posterImagePath);\n\n @GET(\"w780{backdropImagePath}\")\n Call<ResponseBody> getBackdropImage(\n @Path(value = \"backdropImagePath\", encoded = true)\n String backdropImagePath);\n}",
"public void determineBaseUrl() {\n if (Environment.isLatest()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isStage()) {\n baseUrl = \"api-stage.wdpro.starwave.com\";\n } else if (Environment.isENV4()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isENV2()) {\n // baseUrl = \"api-qa.wdpro.disney.go.com:8088\";\n baseUrl = \"api-env2.wdpro.starwave.com\";\n } else if (Environment.isSoftLaunch()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else if (Environment.isShadow()) {\n baseUrl = \"api-shadow.wdpro.starwave.com\";\n } else if (Environment.isProduction()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else {\n baseUrl = \"api.wdpro.disney.go.com\";\n }\n }",
"@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\r\n public List<String> buildRequestUrl(String resource, Endpoint endpoint) {\r\n //log = LoggerFactory.getLogger(ScopusAuthorSearchProvider.class);\r\n namespaceDC = Namespace.getNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\");\r\n namespacePRISM = Namespace.getNamespace(\"prism\", \"http://prismstandard.org/namespaces/basic/2.0/\");\r\n namespaceATOM = Namespace.getNamespace(\"atom\", \"http://www.w3.org/2005/Atom\");\r\n String url = null;\r\n Matcher m = Pattern.compile(PATTERN).matcher(resource);\r\n if (m.find()) {\r\n url = resource;\r\n apiKeyParam = m.group(4);\r\n } else {\r\n Preconditions.checkState(StringUtils.isNotBlank(resource));\r\n String id = resource.substring(resource.lastIndexOf('/') + 1);\r\n url = String.format(API, id.replace('_', '+'));\r\n }\r\n return Collections.singletonList(url);\r\n }",
"BasicRestAnnotation() {\n\t}",
"@VisibleForTesting\n public JsonSchemaValidator(final URI baseUri) {\n this.jsonSchemaFactory = JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V7);\n this.baseUri = baseUri;\n }",
"public String getUri();",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"public XMLTypeResourceImpl(URI uri)\n {\n super(uri);\n }",
"public interface RestAPI {\n String API_PROTOCOL = \"https://\";\n\n String API_URL = \".fusion-universal.com\";\n\n String API_SEARCH_COMPANY = \"/api/v1/company.json\";\n\n\n Observable<CompanyEntity> companySearch(final String companyName);\n}",
"public interface APIEndpoints {\n\n @GET(\"user/{id}\")\n Call<User> getUser(@Path(\"id\") String userId);\n\n @GET(\"user\")\n Call<List<User>> getUsers();\n\n @POST(\"user\")\n Call<User> createUser(@Body User user);\n\n @PATCH(\"user/{id}\")\n Call<User> updateUser(@Body User user, @Path(\"id\") String userId);\n\n @DELETE\n Call<User> deleteUser(@Path(\"id\") String userID);\n\n @GET(\"challenge\")\n Call<List<Challenge>> getChallenges();\n\n @GET(\"challenge/{id}\")\n Call<Challenge> getChallenge(@Path(\"id\") String challengeID);\n\n @POST(\"challenge\")\n Call<User> createChallenge(@Body Challenge challenge);\n\n @PATCH(\"challenge/{id}\")\n Call<Challenge> updateChallenge(@Body Challenge challenge, @Path(\"id\") String challengeID);\n\n @DELETE\n Call<User> deleteChallenge(@Path(\"id\") String challengeID);\n\n @GET(\"issue\")\n Call<List<Issue>> getIssues();\n\n @GET(\"issue/{id}\")\n Call<Issue> getIssue(@Path(\"id\") String issueId);\n\n @POST(\"issue\")\n Call<Issue> createIssue(@Body Issue issue);\n\n @PUT(\"issue/{id}\")\n Call<Issue> updateIssue(@Body Issue issue, @Path(\"id\") String issueId);\n\n @DELETE(\"issue/{id}\")\n Call<Issue> deleteIssue(@Path(\"id\") String issueId);\n\n}",
"@Bean\n\tpublic Docket createRestApi() {\n\t\treturn new Docket(DocumentationType.SWAGGER_2)\n\t\t\t\t.apiInfo(apiInfo())\n\t\t\t\t.groupName(\"rest\")\n\t\t\t\t.select()\n\t\t\t\t.apis(RequestHandlerSelectors.basePackage(\"com.ly.edu.controller\"))\n\t\t\t\t.paths(PathSelectors.any())\n\t\t\t\t.build();\n\t}",
"String basePath();",
"public interface Rest {\n}",
"@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}",
"public String getBaseUrl() {\r\n return baseUrl;\r\n }",
"@Override\n public synchronized Response getRootDoc(final UriInfo uriInfo) {\n final ResourceList rootDoc;\n if (isNew(uriInfo)) {\n rootDoc = apiDocGeneratorRFC8040.getResourceListing(uriInfo);\n } else {\n rootDoc = apiDocGeneratorDraft02.getResourceListing(uriInfo);\n }\n\n return Response.ok(rootDoc).build();\n }",
"@GET\n @Path(\"{path : .+}\")\n @Produces(value = MediaType.APPLICATION_JSON)\n// @ApiOperation(value = \"Retrieve a image by id\",\n// produces = MediaType.APPLICATION_JSON)\n// @ApiResponses({\n// @ApiResponse(code = HttpStatus.NOT_FOUND_404,\n// message = \"The requested image could not be found\"),\n// @ApiResponse(code = HttpStatus.BAD_REQUEST_400,\n// message = \"The request is not valid. The response body will contain a code and \" +\n// \"details specifying the source of the error.\"),\n// @ApiResponse(code = HttpStatus.UNAUTHORIZED_401,\n// message = \"User is unauthorized to perform the desired operation\")\n// })\n\n public Response getMethod(\n @ApiParam(name = \"id\", value = \"id of page to retrieve image content\", required = true)\n @PathParam(\"path\") String getpath, @Context HttpServletRequest httpRequest, @Context UriInfo uriInfo) {\n String contentType = \"application/json\";\n String method = \"getMethod\";\n String httpMethodType = \"GET\";\n String resolvedResponseBodyFile = null;\n Response.ResponseBuilder myresponseFinalBuilderObject = null;\n\n try {\n\n\n\n String paramPathStg = getpath.replace(\"/\", \".\");\n\n //Step 1: Get responseGuidanceObject\n //TODO: handle JsonTransformationException exception.\n LocationGuidanceDTO responseGuidanceObject = resolveResponsePaths(httpMethodType, paramPathStg);\n\n //Step 2: Create queryparams hash and headers hash.\n Map<String, String> queryParamsMap = grabRestParams(uriInfo);\n Map<String, String> headerMap = getHeaderMap(httpRequest);\n\n\n //Step 3: TODO: Resolve header and params variables from Guidance JSON Body.\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(responseGuidanceObject.getResponseBodyFile(), HEADER_REGEX, headerMap);\n resolvedResponseBodyFile = findExtractAndReplaceSubStg(resolvedResponseBodyFile, PARAMS_REGEX, headerMap);\n\n //Step 4: TODO: Validate responseBody, responseHeader, responseCode files existence and have rightJson structures.\n\n //Step 6: TODO: Grab responses body\n\n String responseJson = replaceHeadersAndParamsInJson(headerMap, queryParamsMap, resolvedResponseBodyFile);\n\n //Step 5: TODO: Decorate with response header\n String headerStg = \"{\\\"ContentType\\\": \\\"$contentType\\\"}\";\n\n //Step 7: TODO: Grab response code and related responsebuilderobject\n Response.ResponseBuilder myRespBuilder = returnRespBuilderObject(responseGuidanceObject.getResponseCode(), null).entity(responseJson);\n\n //Step 5: TODO: Decorate with response headers\n myresponseFinalBuilderObject = decorateWithResponseHeaders(myRespBuilder, responseGuidanceObject.getResponseHeaderFile());\n\n return myresponseFinalBuilderObject.build();\n } catch (IOException ex) {\n logger.error(\"api={}\", \"getContents\", ex);\n mapAndThrow(ex);\n }\n return myresponseFinalBuilderObject.build();\n }",
"public Restlet createInboundRoot() {\n\t\t\n\t\tRouter baseRouter = new Router(getContext());\n\t\tDemoResource demoRestlet = new DemoResource(\n getContext());\n\t\tdemoRestlet.setApiInboundRoot(this);\n attachSwaggerDocumentationRestlets(baseRouter, \"/api-docs\",\n \t\tdemoRestlet, \"/api-docs/demo\", demoRestlet);\n return baseRouter;\n }",
"public Response bound() throws ServiceCloudException {\n List<Resource> resources = Lists.newArrayList();\n Resource r = new Resource();\n r.setName(\"http://foo/bar/baz\");\n r.setId(\"1234567890\");\n resources.add(r);\n return Response.ok(resources).build();\n }",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"public String getBaseUrl()\n {\n return baseUrl;\n }",
"@Override\r\n public UriBuilder getAbsolutePathBuilder() {\n return null;\r\n }",
"public Builder setApiEndpoint(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n apiEndpoint_ = value;\n bitField0_ |= 0x00080000;\n onChanged();\n return this;\n }",
"private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }",
"public interface Endpoint {\n public static final String REDDIT_BASE_URL = \"http://www.reddit.com\";\n\n //public Object call(String subreddit);\n\n}",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public interface RestaurantRest {\r\n\t}",
"public AbstractReceiverRest(String platformEndpoint) {\n \t\tthis(platformEndpoint + SubscriptionService.PATH, platformEndpoint + TopicService.PATH);\n \t}",
"public interface RestService {\n\n //\n //\n // AUTH\n //\n //\n @POST(\"auth\")\n Call<AccessToken> logIn(@Body Credentials credentials);\n\n @POST(\"users\")\n Call<Void> signUp(@Body Credentials credentials);\n\n //\n //\n // Fetch Data\n //\n //\n @GET(\"data\")\n Call<CategoriesWrapper> fetchData();\n\n @POST(\"categories\")\n Call<Category> addCategory(@Body AddCategoryWrapper wrapper);\n\n @POST(\"feeds\")\n Call<Void> subscribeFeed(@Body AddFeedWrapper wrapper);\n\n @DELETE(\"feeds/{id_feed}\")\n Call<Void> unsubscribeFeed(@Path(\"id_feed\") Integer channelId);\n\n //\n //\n // Update Read Items. Mark as read.\n //\n //\n @PUT(\"items\")\n Call<Void> updateReadAllItems(@Body ItemStateWrapper wrapper);\n\n @PUT(\"feeds/{id_feed}/items/\")\n Call<Void> updateReadItemsByChannelId(@Path(\"id_feed\") Integer channelId,\n @Body ItemStateWrapper wrapper);\n\n @PUT(\"items/{id_item}\")\n Call<Void> updateStateItem(@Path(\"id_item\") Integer itemId,\n @Body ItemStateWrapper wrapper);\n}",
"public Bpmn2ResourceImpl(URI uri) {\r\n super(uri);\r\n this.xmlHelper = new BpmnXmlHelper(this);\r\n this.uriHandler = new QNameURIHandler(xmlHelper);\r\n this.getDefaultLoadOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n this.getDefaultSaveOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n }",
"private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}",
"public String getBaseUrl() {\n return baseUrl;\n }",
"public String getBaseUrl() {\n return baseUrl;\n }",
"private static URI toResourceURI( Class<?> baseClass, String baseDir) {\n try {\n return\n baseClass != null\n ? baseClass.getResource( baseDir==null? \".\" : baseDir).toURI()\n : new URI( \"file://\" + (baseDir==null? \"\" : baseDir));\n }\n catch( Exception e) {\n throw new IllegalArgumentException( \"Can't create URI\", e);\n }\n }",
"java.lang.String getUri();",
"java.lang.String getUri();"
] | [
"0.66111636",
"0.650296",
"0.6485743",
"0.64161795",
"0.6371597",
"0.63273895",
"0.60577536",
"0.60350597",
"0.60181785",
"0.59775764",
"0.59555197",
"0.59395945",
"0.5938475",
"0.59246945",
"0.59115565",
"0.58881754",
"0.5838576",
"0.58184135",
"0.57931185",
"0.5754041",
"0.5748955",
"0.5741244",
"0.5725705",
"0.5710373",
"0.57100075",
"0.57065785",
"0.5702889",
"0.57014394",
"0.5684961",
"0.565847",
"0.5650695",
"0.56155604",
"0.5611066",
"0.56071836",
"0.55923796",
"0.55923545",
"0.5575835",
"0.5573719",
"0.553256",
"0.5530524",
"0.5524193",
"0.55115837",
"0.5508997",
"0.5477167",
"0.547051",
"0.5469428",
"0.5469123",
"0.5460083",
"0.54598033",
"0.54537934",
"0.5451992",
"0.5448305",
"0.5418364",
"0.541338",
"0.5407259",
"0.5403443",
"0.53983814",
"0.53908765",
"0.53742",
"0.5369032",
"0.5365525",
"0.5358802",
"0.53564435",
"0.53553516",
"0.535109",
"0.53390586",
"0.53265595",
"0.5315102",
"0.5302351",
"0.5298717",
"0.52981114",
"0.52871805",
"0.5284155",
"0.5272877",
"0.5265354",
"0.52588814",
"0.5258619",
"0.52542996",
"0.5241484",
"0.52405685",
"0.5237987",
"0.52354974",
"0.5232208",
"0.52299994",
"0.5219805",
"0.521835",
"0.5217481",
"0.5215167",
"0.5212484",
"0.5204579",
"0.52021915",
"0.5201864",
"0.519472",
"0.51939356",
"0.51925564",
"0.51861936",
"0.51861936",
"0.51844305",
"0.51844215",
"0.51844215"
] | 0.6514339 | 1 |
Base uri parameters are named parameters which described template parameters in the base uri | List<Parameter> baseUriParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FullUriTemplateString baseUri();",
"void setBaseUri(String baseUri);",
"protected void extractAndFillParameters( String URI, RestParamsPropertyHolder params )\n\t{\n\t\tRestUtils.extractParams( URI, params, false, RestUtils.TemplateExtractionOption.EXTRACT_TEMPLATE_PARAMETERS );\n\t}",
"public Template match(URI uri, URI base)\n {\n if (uri == null) throw new IllegalArgumentException(\"URI being matched cannot be null\");\n if (base == null) throw new IllegalArgumentException(\"Base URI cannot be null\");\n if (!uri.isAbsolute()) throw new IllegalArgumentException(\"URI being matched \\\"\" + uri + \"\\\" is not absolute\");\n if (base.relativize(uri).equals(uri)) throw new IllegalArgumentException(\"URI being matched \\\"\" + uri + \"\\\" is not relative to the base URI \\\"\" + base + \"\\\"\");\n \n StringBuilder path = new StringBuilder();\n // instead of path, include query string by relativizing request URI against base URI\n path.append(\"/\").append(base.relativize(uri));\n return match(getOntology(), path);\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"String getBaseUri();",
"List<Parameter> uriParameters();",
"private static String buildUrlString(String base, Map<String, String> params) {\n if (params == null || params.isEmpty()) return API_URL + base;\n //construct get parameters list\n StringBuilder get = new StringBuilder();\n boolean first = true;\n for (String param : params.keySet()) {\n if (!first) get.append('&'); else first = false;\n //add the parameter\n get.append(param);\n String value = params.get(param);\n if (value != null) {\n get.append('=');\n get.append(value);\n }\n }\n //return the full string\n if (get.length() == 0) return API_URL + base;\n return API_URL + base + \"?\" + get.toString();\n }",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"protected URI createProjectApiUriMap(String template, Map<String, ?> params) {\n\t\treturn createProjectUri(PROJECT_API_URI, template, params);\n\t}",
"@Override\n public String getBaseUri() {\n return null;\n }",
"private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }",
"@Override\r\n public URI getBaseUri() {\n try{\r\n return new URI(\"http://localhost:8080/app/jpa-rs/\");\r\n } catch (URISyntaxException e){\r\n return null;\r\n }\r\n }",
"@Override\r\n public UriBuilder getBaseUriBuilder() {\n return null;\r\n }",
"protected abstract String getBaseEndpointPath();",
"public void setBaseId(String baseId) {\n this.baseId = baseId;\n }",
"public abstract String getBaseURL();",
"protected abstract String getBaseEndpoint();",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"public interface BaseRouteConfig {\n\n String FRAGMENT_ID_TIP = \"fragment_id_tip\";\n String PAGE_PATH = \"page_path\";\n String BUNDLE_TIP = \"bundle_tip\";\n\n}",
"private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }",
"private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }",
"public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }",
"RaptureURI getBaseURI();",
"static String getBase(HttpServletRequest request) {\n String fullPath = request.getRequestURI();\n int baseEnd = getDividingIndex(fullPath);\n return fullPath.substring(0, baseEnd + 1);\n }",
"public URL makeBase(URL startingURL);",
"abstract String getUri();",
"public void setRoutes(Route base) {\n\t\tthis.base = base;\n\t}",
"public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }",
"public static void setBaseURL() {\n\n\t\tRestAssured.baseURI = DataReader.dataReader(\"baseURL\");\n\t}",
"@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}",
"public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}",
"URISegmentWithParameter createURISegmentWithParameter();",
"@Before\n public void setBaseUri () {\n RestAssured.port = 8080;\n RestAssured.baseURI = \"http://localhost\";\n RestAssured.basePath = \"/v1\";\n }",
"private String fill(String url, String requestPath, String... parameters) {\n String filledUrl = url.replaceFirst(\"\\\\{url\\\\}\", requestPath.substring(1,requestPath.length()));\n for (String parameter : parameters) {\n filledUrl = filledUrl.replaceFirst(\"\\\\{[^}]*\\\\}\", parameter);\n }\n\n return filledUrl;\n }",
"public XMLWriterNamespaceBase(XMLWriterNamespaceBase base, String[] uris) {\n this(uris);\n m_extensionUris = base.m_extensionUris;\n m_extensionPrefixes = base.m_extensionPrefixes;\n m_nestingDepth = base.m_nestingDepth;\n }",
"@org.junit.Test\n public void constrCompelemBaseuri1() {\n final XQuery query = new XQuery(\n \"fn:base-uri(element elem {attribute xml:base {\\\"http://www.example.com\\\"}})\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"String basePath();",
"protected String replaceUriTemplateParams(String uri, List<Param> params, Set<String> usedParams)\n\t\t\tthrows JspException {\n\n\t\tString encoding = this.pageContext.getResponse().getCharacterEncoding();\n\t\tfor (Param param : params) {\n\t\t\tString template = URL_TEMPLATE_DELIMITER_PREFIX + param.getName() + URL_TEMPLATE_DELIMITER_SUFFIX;\n\t\t\tif (uri.contains(template)) {\n\t\t\t\tusedParams.add(param.getName());\n\t\t\t\tString value = param.getValue();\n\t\t\t\ttry {\n\t\t\t\t\turi = StringUtils.replace(uri, template,\n\t\t\t\t\t\t\t(value != null ? UriUtils.encodePath(value, encoding) : \"\"));\n\t\t\t\t}\n\t\t\t\tcatch (UnsupportedCharsetException ex) {\n\t\t\t\t\tthrow new JspException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttemplate = URL_TEMPLATE_DELIMITER_PREFIX + '/' + param.getName() + URL_TEMPLATE_DELIMITER_SUFFIX;\n\t\t\t\tif (uri.contains(template)) {\n\t\t\t\t\tusedParams.add(param.getName());\n\t\t\t\t\tString value = param.getValue();\n\t\t\t\t\ttry {\n\t\t\t\t\t\turi = StringUtils.replace(uri, template,\n\t\t\t\t\t\t\t\t(value != null ? UriUtils.encodePathSegment(value, encoding) : \"\"));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (UnsupportedCharsetException ex) {\n\t\t\t\t\t\tthrow new JspException(ex);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn uri;\n\t}",
"URI createWorkspaceInternalApiUriMap(String template, long workspaceId, Object... params) {\n\t\treturn URI.create(createBaseUri(WORKSPACE_INTERNAL_API_URI, sharedSpace, workspaceId).toString() + \"/\" + resolveTemplate(template, asMap(params)));\n\t}",
"URI getBaseURI() {\n return _baseURI;\n }",
"@org.junit.Test\n public void constrCompelemBaseuri2() {\n final XQuery query = new XQuery(\n \"fn:base-uri(exactly-one((<elem xml:base=\\\"http://www.example.com\\\">{element a {}}</elem>)/a))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"http://www.example.com\")\n );\n }",
"public interface IServiceApi {\n public static final String VERSION = \"v1/\";\n public static final String BASE = \"/api/\"+VERSION;\n \n}",
"public DefaultHref(String baseUrl)\r\n {\r\n this.parameters = new HashMap();\r\n setFullUrl(baseUrl);\r\n }",
"@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }",
"public URI getBaseURI() {\n Map<String, String> map = new LinkedHashMap<>();\n map.put(\"xml\", XML_NAMESPACE);\n return getLink(\"/*/@xml:base\", map);\n }",
"public interface InterfaceReTrofits {\n\n @GET(\"{viewname}?name=101020100&id=11\")\n Call<String> fundGETRequest(@Path(\"viewname\") String viewname);\n\n @GET(\"{viewname}?id=12\")\n Call<BaseCallBean> fundGETRequestForBean(@Path(\"viewname\") String viewname);\n\n\n Call<BaseCallBean> fundGETRequest(@Url String url, @QueryMap Map<String, String> queryMaps);\n\n\n}",
"@Override\n protected void validateParameters(String uri, Map<String, Object> parameters, String optionPrefix) {\n }",
"private Uri computeUri(Context param1) {\n }",
"public static String getBaseURI(NodeInfo node) {\n String xmlBase = node.getAttributeValue(StandardNames.XML_BASE);\n if (xmlBase != null) {\n String escaped = EscapeURI.escape(xmlBase,\"!#$%&'()*+,-./:;=?_[]~\").toString();\n URI escapedURI;\n try {\n escapedURI = new URI(escaped);\n if (!escapedURI.isAbsolute()) {\n NodeInfo parent = node.getParent();\n if (parent == null) {\n // We have a parentless element with a relative xml:base attribute. We need to ensure that\n // in such cases, the systemID of the element is always set to reflect the base URI\n // TODO: ignoring the above comment, in order to pass fn-base-uri-10 in XQTS...\n //return element.getSystemId();\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n // TODO: we are resolving a relative base URI against the base URI of the parent element.\n // This isn't what the RFC says we should do: we should resolve it against the base URI\n // of the containing entity. So xml:base on an ancestor element should have no effect (check this)\n URI base = new URI(node.getParent().getBaseURI());\n escapedURI = base.resolve(escapedURI);\n } else {\n URI base = new URI(startSystemId);\n escapedURI = base.resolve(escapedURI);\n }\n }\n } catch (URISyntaxException e) {\n // xml:base is an invalid URI. Just return it as is: the operation that needs the base URI\n // will probably fail as a result.\n return xmlBase;\n }\n return escapedURI.toString();\n }\n String startSystemId = node.getSystemId();\n NodeInfo parent = node.getParent();\n if (parent == null) {\n return startSystemId;\n }\n String parentSystemId = parent.getSystemId();\n if (startSystemId.equals(parentSystemId)) {\n return parent.getBaseURI();\n } else {\n return startSystemId;\n }\n }",
"public SampleApiClient(String baseUri) {\n\t\t// Setup a request specification that can be applied to multiple requests\n\t\tRequestSpecBuilder requestSpecBuilder = new RequestSpecBuilder();\n\t\trequestSpecBuilder.setBaseUri(baseUri);\n\t\trequestSpecification = requestSpecBuilder.build();\n\t\t\n\t\t// Setup a response specification that can be applied to all responses\n\t\tResponseSpecBuilder responseSpecBuilder = new ResponseSpecBuilder();\n\t\tresponseSpecBuilder.setDefaultParser(Parser.JSON);\n\t\tResponseSpecification responseSpecification = responseSpecBuilder.build();\n\t\t//this.responseSpecification = responseSpecification;\t// Does not work, for some reason -> bug with Rest Assured!\n\t\tRestAssured.responseSpecification = responseSpecification;\t// Setting the responseSpec globally as an alternative...\n\t}",
"public Saml2AuthHelper(String baseOAuthUrl)\n {\n if (baseOAuthUrl != null && !baseOAuthUrl.isEmpty())\n {\n this.baseUrl = Uri.parse(baseOAuthUrl);\n }\n }",
"public abstract String toURLParam();",
"public interface BaseURL {\n\n //INFOQ网址[目前全为移动端]\n String INFOQ_PATH = \"http://www.infoq.com/cn/\";\n\n //CSDN网址\n String CSDN_PATH = \"http://geek.csdn.net/\";\n\n //CSDN ajax请求算法\n String GEEK_CSDN_PATH = \"http://geek.csdn.net/service/news/\";\n\n String ITEYE_PATH_SHORT = \"http://www.iteye.com\";\n\n //ITEYE网址\n String ITEYE_PATH = ITEYE_PATH_SHORT + \"/\";\n\n //泡在网上的日子[移动版块]\n String JCC_PATH = \"http://www.jcodecraeer.com/\";\n\n //开源中国 [使用ajax请求]\n String OS_CHINA_PATH = \"https://www.oschina.net/\";\n\n //开源中国 [使用ajax请求]\n String OS_CHINA_PATH_AJAX = \"https://www.oschina.net/action/ajax/\";\n\n //CSDN搜索区\n String SEARCH_CSDN = \"http://so.csdn.net/so/search/\";\n\n //OSCHINA搜索区\n String SEARCH_OSCHINA = \"https://www.oschina.net/\";\n\n //INFOQ搜索区\n String SEARCH_INFOQ = \"http://www.infoq.com/\";\n\n\n /**\n * 获取CSDN文章链接\n *\n * @return\n * @\n */\n @GET(\"get_category_news_list\")\n Observable<String> getCSDNArticle(@Query(\"category_id\") String category_id,\n @Query(\"jsonpcallback\") String jsonpcallback,\n @Query(\"username\") String username,\n @Query(\"from\") String from,\n @Query(\"size\") String size,\n @Query(\"type\") String type,\n @Query(\"_\") String other);\n\n /**\n * ITeye文章链接\n *\n * @param page\n * @return\n */\n @GET(\"{type}\")\n Observable<String> getITEyeArticle(@Path(\"type\") String path, @Query(\"page\") int page);\n\n /**\n * ITEye 专栏笔记 位于blog之下\n *\n * @param path\n * @return\n */\n @GET(\"{path}\")\n Observable<String> getITEyeSubject(@Path(\"path\") String path);\n\n\n /**\n * Info文章链接\n *\n * @param id\n * @return\n */\n @GET(\"{type}/articles/{id}\")\n Observable<String> getInfoQArticle(@Path(\"type\") String type, @Path(\"id\") int id);\n\n /**\n * 泡在网上的日子 链接\n *\n * @param tid\n * @param pageNo\n * @return\n */\n @GET(\"plus/list.php\")\n Observable<String> getJccArticle(@Query(\"tid\") int tid, @Query(\"PageNo\") int pageNo);\n\n /**\n * OSChina 链接 ?type=0&p=5#catalogs\n *\n * @return\n */\n @GET(\"get_more_recommend_blog\")\n Observable<String> getOSChinaArticle(@Query(\"classification\") String classification, @Query(\"p\") int p);\n\n /**\n * 获取网页详细内容\n *\n * @return\n */\n @GET(\"{path}\")\n Observable<String> getWebContent(@Path(\"path\") String path);\n\n //http://so.csdn.net/so/search/s.do?q=Android&t=blog&o=&s=&l=null\n @GET(\"s.do\")\n Observable<String> searchCSDNContent(@Query(\"q\") String keyWords,\n @Query(\"t\") String type,\n @Query(\"o\") String o,\n @Query(\"s\") String s,\n @Query(\"l\") String l);\n\n //https://www.oschina.net/search?scope=blog&q=Android&fromerr=Nigvshhe\n @GET(\"search\")\n Observable<String> searchOSChinaContent(@Query(\"q\") String keyWords,\n @Query(\"scope\") String type,\n @Query(\"fromerr\") String formerr);\n\n\n //http://www.iteye.com/search?query=Android&type=blog\n @GET(\"search\")\n Observable<String> searchItEyeContent(@Query(\"query\") String keyWords,\n @Query(\"type\") String type);\n\n\n //http://www.jcodecraeer.com/plus/search.php?kwtype=0&q=Java\n @GET(\"plus/search.php\")\n Observable<String> searchJCCContent(@Query(\"keyword\") String keyWord,\n @Query(\"searchtype\") String searchType,\n @Query(\"orderby\") String orderby,\n @Query(\"kwtype\") String type,\n @Query(\"pagesize\") String pagesize,\n @Query(\"typeid\") String typeid,\n @Query(\"pageNo\") String pageNo);\n\n //http://www.infoq.com/cn/search.action?queryString=java&page=1&searchOrder=&sst=o9OURhPD52ER0BUp\n //sst 在infoQ中为搜索验证时使用 不对的话 将会有HTTP 404 异常\n //o9OURhPD52ER0BUp\n @GET(\"search.action\")\n Observable<String> searchInfoQContent(@Query(\"queryString\") String keyWords,\n @Query(\"page\") int page,\n @Query(\"searchOrder\") String order,\n @Query(\"sst\") String sst);\n\n //获取INFOQ的sst用于搜索\n @GET(\"mobile\")\n Observable<String> searchInfoQSST();\n\n //文件下载\n @GET(\"{photoPath}\")\n Observable<ResponseBody> downloadFile(@Path(value = \"photoPath\") String photoPath);\n\n\n}",
"protected void setRenderParameters(BaseURL baseURL) {\n\t\tMap<String, String[]> urlParameterMap = getParameterMap();\n\n\t\t// Copy the public render parameters of the current view to the BaseURL.\n\t\tMap<String, String[]> preservedActionParams = bridgeContext.getPreservedActionParams();\n\t\tPortletRequest portletRequest = bridgeContext.getPortletRequest();\n\t\tMap<String, String[]> publicParameterMap = portletRequest.getPublicParameterMap();\n\n\t\tif (publicParameterMap != null) {\n\t\t\tSet<Entry<String, String[]>> publicParamterMapEntrySet = publicParameterMap.entrySet();\n\n\t\t\tfor (Entry<String, String[]> mapEntry : publicParamterMapEntrySet) {\n\t\t\t\tString publicParameterName = mapEntry.getKey();\n\n\t\t\t\t// Note that preserved action parameters, parameters that already exist in the URL string,\n\t\t\t\t// and \"javax.faces.ViewState\" must not be copied.\n\t\t\t\tif (!ResponseStateManager.VIEW_STATE_PARAM.equals(publicParameterName) &&\n\t\t\t\t\t\t!preservedActionParams.containsKey(publicParameterName) &&\n\t\t\t\t\t\t!urlParameterMap.containsKey(publicParameterName)) {\n\t\t\t\t\tbaseURL.setParameter(publicParameterName, mapEntry.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Copy the private render parameters of the current view to the BaseURL.\n\t\tMap<String, String[]> privateParameterMap = portletRequest.getPrivateParameterMap();\n\n\t\tif (privateParameterMap != null) {\n\t\t\tSet<Entry<String, String[]>> privateParameterMapEntrySet = privateParameterMap.entrySet();\n\n\t\t\tfor (Entry<String, String[]> mapEntry : privateParameterMapEntrySet) {\n\t\t\t\tString privateParameterName = mapEntry.getKey();\n\n\t\t\t\t// Note that preserved action parameters, parameters that already exist in the URL string,\n\t\t\t\t// and \"javax.faces.ViewState\" must not be copied.\n\t\t\t\tif (!ResponseStateManager.VIEW_STATE_PARAM.equals(privateParameterName) &&\n\t\t\t\t\t\t!preservedActionParams.containsKey(privateParameterName) &&\n\t\t\t\t\t\t!urlParameterMap.containsKey(privateParameterName)) {\n\t\t\t\t\tbaseURL.setParameter(privateParameterName, mapEntry.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Inject\n public JaxRsApplicationUriNamingStrategy(BeanContext beanContext) {\n this.contextPath = normalizeContextPath(\n beanContext.getBeanDefinition(Application.class)\n .stringValue(ApplicationPath.class)\n .orElse(\"/\")\n );\n }",
"String getRootServerBaseUrl();",
"java.lang.String getUri();",
"java.lang.String getUri();",
"@Override\n public String getBase() {\n return base;\n }",
"public static boolean BaseURIDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"BaseURIDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, BASE_URI_DECL, null);\n r = consumeTokens(b, 2, K_DECLARE, K_BASE_URI);\n p = r; // pin = 2\n r = r && report_error_(b, URILiteral(b, l + 1));\n r = p && Separator(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public UrlBuilder compileBaseUrl(HttpServletRequest request, String repositoryId) {\n String baseUrl = (String) request.getAttribute(Dispatcher.BASE_URL_ATTRIBUTE);\n if (baseUrl != null) {\n int repIdPos = baseUrl.indexOf(REPOSITORY_PLACEHOLDER);\n if (repIdPos < 0) {\n return new UrlBuilder(baseUrl);\n } else {\n return new UrlBuilder(baseUrl.substring(0, repIdPos) + repositoryId\n + baseUrl.substring(repIdPos + REPOSITORY_PLACEHOLDER.length()));\n }\n }\n\n UrlBuilder url = new UrlBuilder(request.getScheme(), request.getServerName(), request.getServerPort(), null);\n\n url.addPath(request.getContextPath());\n url.addPath(request.getServletPath());\n\n if (repositoryId != null) {\n url.addPathSegment(repositoryId);\n }\n\n return url;\n }",
"private String getUrlBaseForLocalServer() {\n\t HttpServletRequest request = ((ServletRequestAttributes) \n\t\t\t RequestContextHolder.getRequestAttributes()).getRequest();\n\t String base = \"http://\" + request.getServerName() + ( \n\t (request.getServerPort() != 80) \n\t \t\t ? \":\" + request.getServerPort() \n\t\t\t\t : \"\");\n\t return base;\n\t}",
"private static String composeApiUrl(String string){\r\n\t\treturn API_BASE + API_VERSION + string;\r\n\t}",
"public SimpleUriGenerator(String uriPrefix) {\n this.namedGraphURIPrefix = uriPrefix;\n }",
"private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\n }",
"public BaseParameters(){\r\n\t}",
"public ConfigurationProviderHTTP(List<URI> baseList, String restUsr, String restPwd) throws IOException {\n this.baseList = baseList;\n this.restUsr = restUsr;\n this.restPwd = restPwd;\n }",
"public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }",
"public interface HeadUri {\n\n\tString ROOT = \"/\";\n\n\tString CONNECT = \"/connect\";\n\n\tString PUSH = \"/push\";\n\n}",
"private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }",
"String getUri();",
"private String generateUrlParameters(HashMap<String, String> parameters) {\n\n\t\tString urlAttachment = \"?\";\n\n\t\tObject[] keys = parameters.keySet().toArray();\n\n\t\tfor(Object key : keys)\n\n\t\t\turlAttachment += key.toString() + \"=\" + parameters.get(key) + \"&\";\n\n\t\treturn urlAttachment;\n\t}",
"private static String getPrefixRewriteParams(String params) {\n\n URLMapping[] urlMappings = getParamsURLMappings(params);\n\n if (urlMappings == null) {\n return params;\n }\n\n StringBuilder sb = new StringBuilder();\n\n for (URLMapping urlMapping : urlMappings) {\n\n sb.append(urlMapping.getSplitKey()[3]);\n sb.append(\"=\");\n sb.append(urlMapping.getFinalValue());\n sb.append(\"&\");\n }\n\n return StringUtils.substring(sb.toString(), 0, sb.length() - 1);\n }",
"IParser setServerBaseUrl(String theUrl);",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"String getServerBaseURL();",
"private String createBaseImageUrl(IViewingSession session, String baseURL)\n\t{\n\t\tString sessionIdPart = \"\"; //$NON-NLS-1$\n\t\t// Prepare image base url.\n\t\tif (session != null)\n\t\t{\n\t\t\tsessionIdPart = ParameterAccessor.PARAM_VIEWING_SESSION_ID\n\t\t\t\t\t+ \"=\" + session.getId() + \"&\"; //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\n\t\treturn baseURL\n\t\t\t\t+ IBirtConstants.SERVLET_PATH_PREVIEW\n\t\t\t\t+ \"?\" + sessionIdPart + ParameterAccessor.PARAM_IMAGEID + \"=\"; //$NON-NLS-1$ //$NON-NLS-2$\n\t}",
"@Override\n protected String getTestURL(String... parameters) {\n return super.getTestURL(parameters).replace(\"?\", \"\");\n }",
"public ResourceSite( Class<?> baseClass, String baseDir) {\n super( toResourceURI( baseClass, baseDir));\n }",
"protected abstract HttpUriRequest getHttpUriRequest();",
"public interface RequestServiceMzitu {\n\n @GET(\"{number}\")\n Observable<String> getDetialData(@Path(\"number\") String number, @Query(\"time\") long time);\n\n @GET(\"page/{pageNumber}\")\n Observable<String> getIndexMoreData(@Path(\"pageNumber\") int pageNumber, @Query(\"time\") long time);\n\n @GET(UrlPath.BaseUrlRequestServiceMzitu)\n Observable<String> getIndexData(@Query(\"time\") long time);\n\n @GET(\"/tag/{path}\")\n Observable<String> getTagData(@Path(\"path\") String path, @Query(\"time\") long time);\n\n @GET(\"/tag/{path}/page/{pageNumber}\")\n Observable<String> getTagMoreData(@Path(\"path\") String path, @Path(\"pageNumber\") int pageNumber, @Query(\"time\") long time);\n}",
"void projectUriRequest(Request request);",
"@Override\r\n public UriBuilder getRequestUriBuilder() {\n return null;\r\n }",
"public URIParameters(Map<String, String[]> parameters) {\r\n this._parameters = new HashMap<String, String[]>(parameters);\r\n }",
"@Override\n\tprotected void initParamsForFragment() {\n\n\t}",
"@Override\n protected Map<String, String> getParams()\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fullname\", fullName);\n\n\n\n\n return params;\n }",
"private Map<String, Object> buildResourcesParameters() {\n Map<String, Object> parameters = new HashMap<String, Object>();\n \n parameters.put(\"portalSiteSelectedNodes\", getSelectedResources(StagingService.SITES_PORTAL_PATH));\n parameters.put(\"groupSiteSelectedNodes\", getSelectedResources(StagingService.SITES_GROUP_PATH));\n parameters.put(\"userSiteSelectedNodes\", getSelectedResources(StagingService.SITES_USER_PATH));\n parameters.put(\"siteContentSelectedNodes\", getSelectedResources(StagingService.CONTENT_SITES_PATH));\n parameters.put(\"applicationCLVTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_CLV_PATH));\n parameters.put(\"applicationSearchTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_SEARCH_PATH));\n parameters.put(\"documentTypeTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_DOCUMENT_TYPE_PATH));\n parameters.put(\"metadataTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_METADATA_PATH));\n parameters.put(\"taxonomySelectedNodes\", getSelectedResources(StagingService.ECM_TAXONOMY_PATH));\n parameters.put(\"querySelectedNodes\", getSelectedResources(StagingService.ECM_QUERY_PATH));\n parameters.put(\"driveSelectedNodes\", getSelectedResources(StagingService.ECM_DRIVE_PATH));\n parameters.put(\"scriptSelectedNodes\", getSelectedResources(StagingService.ECM_SCRIPT_PATH));\n parameters.put(\"actionNodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_ACTION_PATH));\n parameters.put(\"nodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_NODETYPE_PATH));\n parameters.put(\"registrySelectedNodes\", getSelectedResources(StagingService.REGISTRY_PATH));\n parameters.put(\"viewTemplateSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_TEMPLATES_PATH));\n parameters.put(\"viewConfigurationSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_CONFIGURATION_PATH));\n parameters.put(\"userSelectedNodes\", getSelectedResources(StagingService.USERS_PATH));\n parameters.put(\"groupSelectedNodes\", getSelectedResources(StagingService.GROUPS_PATH));\n parameters.put(\"roleSelectedNodes\", getSelectedResources(StagingService.ROLE_PATH));\n \n parameters.put(\"selectedResources\", selectedResources);\n parameters.put(\"selectedOptions\", selectedOptions);\n \n return parameters;\n }",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"public URI(URI p_base, String p_uriSpec) throws MalformedURIException {\n initialize(p_base, p_uriSpec);\n }",
"private static URI GetEndpoint(String accountName) throws URISyntaxException {\n String endpoint = EndpointTemplate.replace(\"{account-name}\", accountName);\n return new URI(endpoint);\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"public String getBaseURL() {\n return baseURL;\n }",
"public static URI uri(UriInfo uriInfo) {\n return uriInfo.getBaseUriBuilder().path(WebHomeResource.class).build();\n }",
"public void setBaseId(Long baseId) {\n this.baseId = baseId;\n }",
"protected URI getPageURI(String uid, UriInfo uriInfo) {\n\t\tUriBuilder builder = UriBuilder.fromUri(uriInfo.getBaseUri());\n\t\tbuilder.path(\"uid\");\n\t\tbuilder.path(uid);\n\t\treturn builder.build();\n\t}",
"public BaseElement(String uri, String name) {\n this.uri = uri;\n this.name = name;\n this.attributes = new AttributesImpl();\n }",
"private String getPingUri() {\n\t\treturn BASE_URI + \"?_wadl\";\n\t}",
"public String getUri();"
] | [
"0.7783052",
"0.66950333",
"0.5989333",
"0.59236944",
"0.58748144",
"0.58344394",
"0.577433",
"0.57211876",
"0.57199126",
"0.5708101",
"0.5707328",
"0.56105506",
"0.556676",
"0.55603826",
"0.5536081",
"0.55240464",
"0.55192655",
"0.54462415",
"0.5433686",
"0.5397478",
"0.538264",
"0.53196573",
"0.529029",
"0.52716887",
"0.5260104",
"0.52149546",
"0.5203842",
"0.51825297",
"0.51589566",
"0.5146563",
"0.51023924",
"0.50780517",
"0.5074826",
"0.5074208",
"0.5073973",
"0.5072335",
"0.5065227",
"0.5064904",
"0.5063197",
"0.5055066",
"0.50519645",
"0.5041049",
"0.50309634",
"0.50286406",
"0.50221986",
"0.4962994",
"0.4952197",
"0.49452794",
"0.48976964",
"0.48938537",
"0.48793977",
"0.48786885",
"0.4849934",
"0.4848988",
"0.48489514",
"0.48433605",
"0.48366222",
"0.48342162",
"0.4822505",
"0.4822505",
"0.4808745",
"0.4806363",
"0.48026162",
"0.4786503",
"0.47835472",
"0.47717983",
"0.4760009",
"0.47556713",
"0.47508302",
"0.47444823",
"0.47347847",
"0.4731478",
"0.4730093",
"0.4715659",
"0.47073466",
"0.470381",
"0.46999836",
"0.46948478",
"0.46910894",
"0.4688255",
"0.46842578",
"0.4675378",
"0.4672536",
"0.46708924",
"0.46670994",
"0.46652684",
"0.46639377",
"0.46624464",
"0.46605268",
"0.46570742",
"0.4654569",
"0.4653848",
"0.4647118",
"0.4647118",
"0.46424535",
"0.46373364",
"0.46319476",
"0.46286783",
"0.46220076",
"0.4617351"
] | 0.7029361 | 1 |
URI parameters can be further defined by using the uriParameters property. The use of uriParameters is OPTIONAL. The uriParameters property MUST be a map in which each key MUST be the name of the URI parameter as defined in the baseUri property. The uriParameters CANNOT contain a key named version because it is a reserved URI parameter name. The value of the uriParameters property is itself a map that specifies the property's attributes as named parameters | List<Parameter> uriParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Parameter> baseUriParameters();",
"public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }",
"@Override\n protected void validateParameters(String uri, Map<String, Object> parameters, String optionPrefix) {\n }",
"public URIParameters(Map<String, String[]> parameters) {\r\n this._parameters = new HashMap<String, String[]>(parameters);\r\n }",
"public URIBuilder setParameters(final List<BasicNameValuePair> nvps) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n this.queryParams.addAll(nvps);\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }",
"public URIBuilder addParameters(final List<BasicNameValuePair> nvps) {\n if (this.queryParams == null || this.queryParams.isEmpty()) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n }\n this.queryParams.addAll(nvps);\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }",
"public URIBuilder setParameters(final BasicNameValuePair... nvps) {\n if (this.queryParams == null) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n } else {\n this.queryParams.clear();\n }\n for (final BasicNameValuePair nvp : nvps) {\n this.queryParams.add(nvp);\n }\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }",
"public Properties getUriProperties() {\n\t\treturn uriProperties;\n\t}",
"void setBaseUri(String baseUri);",
"public Map<String, Object> uriToValueMap();",
"public void setUriInfo(UriInfo uriInfo) {\n this._uriInfo = uriInfo;\n }",
"java.lang.String getUri();",
"java.lang.String getUri();",
"private static Map<String, String> getQueryParams(final URI uri) {\n final String[] params = uri.getQuery().split(\"&\");\n return new HashMap<String, String>(params.length) {{\n for (String param : params) {\n final String[] kv = param.split(\"=\");\n final String name = kv[0];\n final String value;\n if (kv.length == 2) {\n value = kv[1];\n } else {\n value = \"\";\n }\n\n put(name,\n value);\n }\n }};\n }",
"public void setUri(URI uri)\n {\n this.uri = uri;\n }",
"@Override\r\n public MultivaluedMap<String, String> getPathParameters() {\n return null;\r\n }",
"FullUriTemplateString baseUri();",
"abstract String getUri();",
"URISegmentWithParameter createURISegmentWithParameter();",
"public interface Parameters {\n\t\n\t// HTTP request parameters\n\tfinal static String OPENID_REMEMBERME = \"rememberOpenid\";\n\tfinal static String OPENID_IDENTIFIER = \"openid_identifier\";\n\tfinal static String OPENID_IDENTITY_COOKIE = \"esg.openid.identity.cookie\";\n\tfinal static int OPENID_IDENTITY_COOKIE_LIFETIME = 86400*365*10; // ten years\n\t\n\t// OpenID RP target URL\n\tfinal static String OPENID_URL = \"/j_spring_openid_security_check.htm\";\n\t\n\t// OpenID RP login URL\n\tfinal static String LOGIN_URL = \"/home.htm\";\n\t\n\t// OpenID Relying Party parameters\n\tfinal static String KEYSTORE_PATH = \"kestorePath\";\n\tfinal static String KEYSTORE_PASSWORD = \"kestorePassword\";\n\tfinal static String KEYSTORE_ALIAS = \"kestoreAlias\";\n\t\n\t// Secured application parameters\n\tfinal static String POLICY_SERVICE = \"policyServiceClass\";\n\tfinal static String POLICY_SERVICES = \"policyServiceClasses\";\n\tfinal static String POLICY_FILES = \"policyFiles\";\n\tfinal static String AUTHORIZATION_SERVICE = \"authorizationServiceClass\";\n\tfinal static String TRUSTORE_FILE = \"trustoreFile\";\n\tfinal static String TRUSTORE_PASSWORD = \"trustorePassword\";\n\tfinal static String OPENID_RP_URL = \"openidRelyingPartyUrl\";\n\tfinal static String REGISTRATION_RELAY_URL = \"registrationRelayUrl\";\n\tfinal static String AUTHORIZATION_SERVICE_URL = \"authorizationServiceUrl\";\n\tfinal static String AUTHORIZATION_URL_TRANSFORMER = \"urlTransformer\";\n\tfinal static String AUTHORIZATION_URL_TRANSFORMER_REPLACEMENTS = \"urlTransformerReplacements\";\n final static String AUTHORIZATION_REQUEST_ATTRIBUTE = \"eske.model.security.AuthorizationToken\"; // legacy value compatible with old TDS filter\n final static String AUTHENTICATION_REQUEST_ATTRIBUTE = \"esg.openid\";\n final static String AUTHENTICATION_ONLY_FLAG = \"authenticationOnlyFlag\";\n final static String AUTHENTICATION_REQUIRED_PATTERNS = \"authenticationRequiredPatterns\";\n final static String AUTHENTICATION_NOT_REQUIRED_PATTERNS = \"authenticationNotRequiredPatterns\";\n final static String AUTHORIZED_IP = \"authorizedIp\";\n final static String IP_WHITELIST = \"ip_whitelist\";\n\t\n\t// shared parameters\n\tfinal static String OPENID_REDIRECT = \"redirect\";\n\tfinal static String OPENID_IDENTITY = \"openid\";\n\tfinal static String OPENID_SAML_COOKIE = \"esg.openid.saml.cookie\";\n\tfinal static String SESSION_AUTH = \"authentication\";\n\t\n\t// new cookies\n\tfinal static String ORP_SESSION_ID_COOKIE = \"esg.session.cookie\";\n\t\n\t// HTTP request parameters\n public final static String HTTP_PARAMETER_XML = \"xml\";\n public final static String HTTP_PARAMETER_GROUP = \"group\";\n public final static String HTTP_PARAMETER_ROLE = \"role\";\n public final static String HTTP_PARAMETER_USER = \"user\";\n public final static String HTTP_PARAMETER_URL = \"url\";\n public final static String HTTP_PARAMETER_RESOURCE = \"resource\";\n public final static String HTTP_PARAMETER_RESULT = \"result\";\n\t\n\t// test file\n\tfinal static String TEST_FILE = \"esg-saml-test-file.xml\";\n\tfinal static String TEST_OPENID = \"http://JoeTester.myopenid.com/\";\n\n}",
"public String getUri();",
"private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }",
"String getUri();",
"public void addParameter(String key, Object value) {\n if (!super.requestURL.contains(\"?\")) {\n super.requestURL = super.requestURL + \"?\";\n }\n String strValue = \"\";\n try{\n strValue = Uri.encode(value.toString(), \"utf-8\");\n super.requestURL = super.requestURL + key + \"=\" + strValue + \"&\";\n } catch (Exception e){\n Log.e(TAG, e.getMessage());\n }\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"oid\", oid);\n\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"latitude\", latitude_file);\n params.put(\"longitude\", longitude_file);\n params.put(\"link\", link);\n\n return params;\n }",
"public URIBuilder addParameter(final String param, final String value) {\n if (this.queryParams == null) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n }\n this.queryParams.add(new BasicNameValuePair(param, value));\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }",
"URI getUri();",
"@JsonProperty()\n\tpublic abstract String getURI();",
"@Override\r\n public MultivaluedMap<String, String> getPathParameters(boolean arg0) {\n return null;\r\n }",
"public UriInfo getUriInfo() {\n return _uriInfo;\n }",
"public void setUri(URI uri) {\n this.uri = uri;\n }",
"public void setUri(URI uri) {\n this.uri = uri;\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"private String generateUrlParameters(HashMap<String, String> parameters) {\n\n\t\tString urlAttachment = \"?\";\n\n\t\tObject[] keys = parameters.keySet().toArray();\n\n\t\tfor(Object key : keys)\n\n\t\t\turlAttachment += key.toString() + \"=\" + parameters.get(key) + \"&\";\n\n\t\treturn urlAttachment;\n\t}",
"public DocumentVersionReference(DocumentReference documentReference, Serializable version)\n {\n super(documentReference);\n setParameter(VERSION, version);\n }",
"public URIBuilder(final URI uri) {\n super();\n digestURI(uri);\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"@Test\n public void normalizeParameters() {\n Properties parameters = new Properties();\n \n parameters.setProperty(\"oauth_consumer_key\", \"key\");\n parameters.setProperty(\"oauth_nonce\", \"12345\");\n parameters.setProperty(\"oauth_signature_method\", \"HMAC-SHA1\");\n parameters.setProperty(\"oauth_token\", \"\");\n parameters.setProperty(\"oauth_timestamp\", \"1234567890\");\n parameters.setProperty(\"oauth_version\", \"1.0\");\n \n assertEquals(\"oauth_consumer_key=key&oauth_nonce=12345&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1234567890&oauth_token=&oauth_version=1.0\",\n OAuth10.getNormalizedParameters(parameters, null));\n }",
"protected void extractAndFillParameters( String URI, RestParamsPropertyHolder params )\n\t{\n\t\tRestUtils.extractParams( URI, params, false, RestUtils.TemplateExtractionOption.EXTRACT_TEMPLATE_PARAMETERS );\n\t}",
"@Override\n public DefaultUrlBuilder queryParam(String name, String value) {\n this.queryNamesAndValues.put(\n BaseUrl.UrlEncoder.encodeQueryNameOrValue(name), BaseUrl.UrlEncoder.encodeQueryNameOrValue(value));\n return this;\n }",
"com.google.protobuf.ByteString\n getUriBytes();",
"com.google.protobuf.ByteString\n getUriBytes();",
"public RequestLine(HttpMethod method, URI uri, HttpVersion httpVersion) {\n\t\tthis.method = method;\n\t\tthis.uri = uri;\n\t\tthis.httpVersion = httpVersion;\n\t}",
"Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }",
"public void addUrlArg(String key, String value);",
"public interface Parametralizable {\n\n /**\n * Gets reprezentation of the contents as the URL parameters.\n * @return reprezentation of the contents as the URL parameters\n */\n String toParameter();\n}",
"public String getUri() {\n return uri;\n }",
"String getUri( );",
"private static String buildUrlString(String base, Map<String, String> params) {\n if (params == null || params.isEmpty()) return API_URL + base;\n //construct get parameters list\n StringBuilder get = new StringBuilder();\n boolean first = true;\n for (String param : params.keySet()) {\n if (!first) get.append('&'); else first = false;\n //add the parameter\n get.append(param);\n String value = params.get(param);\n if (value != null) {\n get.append('=');\n get.append(value);\n }\n }\n //return the full string\n if (get.length() == 0) return API_URL + base;\n return API_URL + base + \"?\" + get.toString();\n }",
"@Override\n\tpublic URI createURI(String... parts) throws URISyntaxException {\n\t\treturn null;\n\t}",
"public static String getUriValue() {\n\t\treturn uriValue;\n\t}",
"public void setUri( final String uri )\r\n {\r\n this.uri = uri;\r\n }",
"public UriSegment(String uriSegment) {\n this.pattern = extractPattern(uriSegment);\n this.paramId = extractParamId();\n this.paramClass = extractParamClass();\n this.paramField = extractParamField();\n this.paramMethod = extractParamMethod();\n this.segments = new HashSet<>();\n }",
"public String getUri()\r\n {\r\n return uri;\r\n }",
"public void setUri(String uri) {\n\t\tthis.uri = uri;\n\t}",
"public abstract String toURLParam();",
"public Klient(String urlParameters) {\n url = baseURL + \"?\" + urlParameters;\n }",
"default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }",
"public String getUri() {\n return uri;\n }",
"public String getURI() {\n/* 95 */ return this.uri;\n/* */ }",
"public interface GetVersionInterface {\n\n @GET\n Call<NativeVersionResBean> getVersionRes(@Url String url, @QueryMap Map<String, String> params);\n\n}",
"public void setUri(java.lang.String uri) {\n this.uri = uri;\n }",
"public void setUri(final URI uri) {\n this.uri = uri;\n }",
"@Value.Default\n public String getUri() {\n\treturn \"\";\n }",
"@Override\n\tpublic int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) {\n\t\treturn 0;\r\n\t}",
"public URI getUri()\n {\n return uri;\n }",
"public void setUri(final String uri) {\r\n\t\tthis.uri = uri;\r\n\t}",
"private void addParameter(String key, String value) {\n urlParameters.put(key, new BasicNameValuePair(key, value));\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"public String getUri() {\r\n\t\treturn uri;\r\n\t}",
"public URIBuilder setParameter(final String param, final String value) {\n if (this.queryParams == null) {\n this.queryParams = new ArrayList<BasicNameValuePair>();\n }\n if (!this.queryParams.isEmpty()) {\n for (final Iterator<BasicNameValuePair> it = this.queryParams.iterator(); it.hasNext(); ) {\n final BasicNameValuePair nvp = it.next();\n if (nvp.getName().equals(param)) {\n it.remove();\n }\n }\n }\n this.queryParams.add(new BasicNameValuePair(param, value));\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n this.query = null;\n return this;\n }",
"URI uri();",
"public interface Params\n{\n\tpublic static final String DEFAULT_PATH=\"default_path\";\n\tpublic static final String DEFAULT_NAME=\"default_name\";\n\tpublic static final String MODE=\"mode\";\n\tpublic static final String FILE_TYPE=\"file_type\";\n}",
"Map<String, String> getParameters();",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }",
"protected DsSipNameAddressHeader(DsURI uri, DsParameters parameters) {\n super();\n m_paramTable = parameters;\n setURI(uri);\n }",
"RequestBuilder setQueryParameters(Map<String, String> queryParams);",
"public String getUri() {\n\t\treturn uri;\n\t}",
"public URIBuilder clearParameters() {\n this.queryParams = null;\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n return this;\n }",
"public Builder setQueryParameters(Map<String, String> params) {\n\t\t\turl.query.clear();\n\n\t\t\tif (params != null && params.size() > 0)\n\t\t\t\turl.query.putAll(params);\n\n\t\t\treturn this;\n\t\t}",
"String getURI();",
"String getURI();",
"String getURI();",
"@Override\r\n public UriBuilder getBaseUriBuilder() {\n return null;\r\n }",
"public Optional<ProtectedReference> forUri(\n String uri, Consumer<String> onUpdate, NewReferenceValueStrategy newValue) {\n if (isBlank(uri)) {\n return Optional.empty();\n }\n String[] parts = uri.split(\"/\", -1);\n if (parts.length < 2) {\n return Optional.empty();\n }\n String resource = parts[parts.length - 2];\n String id = parts[parts.length - 1];\n if (isBlank(resource) || isBlank(id)) {\n return Optional.empty();\n }\n return Optional.of(\n ProtectedReference.builder()\n .type(resource)\n .id(id)\n .onUpdate(\n s -> {\n var update =\n ReferenceUpdate.builder()\n .uriParts(parts)\n .resourceType(resource)\n .oldResourceId(id)\n .newResourceId(s)\n .build();\n onUpdate.accept(newValue.apply(update));\n })\n .build());\n }",
"public void setRequestURI(URI requestURI);",
"public String getUri() {\n\t\treturn Uri;\n\t}",
"void projectUriRequest(Request request);",
"protected URI createProjectApiUriMap(String template, Map<String, ?> params) {\n\t\treturn createProjectUri(PROJECT_API_URI, template, params);\n\t}",
"public RouteInterface setUri(String uri);",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"public Builder setUri(String uri) {\n this.uri = uri;\n return this;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }",
"public URI(URI p_base, String p_uriSpec) throws MalformedURIException {\n initialize(p_base, p_uriSpec);\n }",
"@Override\n protected Map<String, String> getParams() throws AuthFailureError {\n Map<String, String> params = new HashMap<>();\n params.put(\"location\", value_cord);\n\n return params;\n }",
"@Override\r\n public Uri insert(Uri uri, ContentValues initValues) {\n return null;\r\n }"
] | [
"0.69056123",
"0.68918437",
"0.6475873",
"0.64164543",
"0.6125529",
"0.6046922",
"0.5855086",
"0.5851968",
"0.57033837",
"0.5591994",
"0.5337442",
"0.53116447",
"0.53116447",
"0.5296093",
"0.52685755",
"0.524554",
"0.5228444",
"0.52228194",
"0.5214583",
"0.51922077",
"0.51647717",
"0.5164013",
"0.5155238",
"0.51481324",
"0.51402485",
"0.5124444",
"0.5114025",
"0.50981927",
"0.50966305",
"0.5084327",
"0.5064303",
"0.5057863",
"0.5057863",
"0.5049077",
"0.5001517",
"0.4991126",
"0.49687174",
"0.4942934",
"0.4942934",
"0.4942934",
"0.49379307",
"0.49318123",
"0.49310282",
"0.49260783",
"0.49260783",
"0.4924261",
"0.49089321",
"0.48981708",
"0.48958007",
"0.48954597",
"0.4890941",
"0.4872212",
"0.4868539",
"0.48674756",
"0.4851828",
"0.4838086",
"0.48307815",
"0.48269546",
"0.48137122",
"0.47686094",
"0.4767727",
"0.47613618",
"0.47573584",
"0.47482732",
"0.4747618",
"0.47426623",
"0.474256",
"0.47299784",
"0.4721353",
"0.47189233",
"0.4718433",
"0.47007143",
"0.46956566",
"0.4690549",
"0.4687757",
"0.46839428",
"0.4683189",
"0.46827897",
"0.4682103",
"0.46805978",
"0.46773744",
"0.46770838",
"0.46769726",
"0.46708888",
"0.46705458",
"0.46705458",
"0.46705458",
"0.46637848",
"0.4652761",
"0.46462074",
"0.4645871",
"0.46437007",
"0.4642899",
"0.46392745",
"0.46359885",
"0.46264854",
"0.462406",
"0.4617307",
"0.46144134",
"0.4611999"
] | 0.7105117 | 0 |
A RESTful API can be reached HTTP, HTTPS, or both. The protocols property MAY be used to specify the protocols that an API supports. If the protocols property is not specified, the protocol specified at the baseUri property is used. The protocols property MUST be an array of strings, of values `HTTP` and&47;or `HTTPS`. | List<String> protocols(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected String inferProtocol() {\n return \"http\";\n }",
"protected void buildProtocols() {\n\n if (httpProtocol == null) {\n\n RESTProtocol p = new RESTProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n httpProtocol = p;\n\n }\n\n if (legacyProtocol == null) {\n\n LegacyProtocol p = new LegacyProtocol(validator, protocolListener,\n connectTimeout, readTimeout);\n\n p.setSkipHostnameChecks(skipHostnameChecks);\n\n legacyProtocol = p;\n\n }\n }",
"public static boolean isApiProtocolHttps () {\n\t\treturn true;\n\t}",
"private final static void setup() {\r\n\r\n supportedSchemes = new SchemeRegistry();\r\n\r\n // Register the \"http\" and \"https\" protocol schemes, they are\r\n // required by the default operator to look up socket factories.\r\n SocketFactory sf = PlainSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"http\", sf, 80));\r\n sf = SSLSocketFactory.getSocketFactory();\r\n supportedSchemes.register(new Scheme(\"https\", sf, 80));\r\n\r\n // prepare parameters\r\n HttpParams params = new BasicHttpParams();\r\n HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\r\n HttpProtocolParams.setContentCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUseExpectContinue(params, true);\r\n HttpProtocolParams.setHttpElementCharset(params, \"UTF-8\");\r\n HttpProtocolParams.setUserAgent(params, \"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/2008052906 Firefox/3.0\");\r\n defaultParameters = params;\r\n }",
"@Deprecated // Use TrcApplicationContext\n URI getApiEndpoint();",
"public abstract RestURL getURL();",
"java.lang.String getApiUrl();",
"public void setRequestProtocol(String requestProtocol){\n this.requestProtocol = requestProtocol;\n }",
"public interface RestAPI {\n String API_PROTOCOL = \"https://\";\n\n String API_URL = \".fusion-universal.com\";\n\n String API_SEARCH_COMPANY = \"/api/v1/company.json\";\n\n\n Observable<CompanyEntity> companySearch(final String companyName);\n}",
"public String getApiUrl();",
"public interface HttpApi {\n /**\n * 使用YiXinApp.isDebug来标记是测试还是正式的\n * {@link BaseApplication}\n *\n */\n /*使用同一的开关来标识测试还是正式\n * :左侧为测试网\n * :右侧为正式网\n * */\n String unionPayMode = BaseApplication.isDebug ? \"01\" : \"00\";\n String ROOT_HOST_NAME = BaseApplication.isDebug ? \"http://210.14.72.52\" : \"http://firstaid.skyhospital.net\";\n String URL_BASE = BaseApplication.isDebug ? \"/firstaid/1.0/\" : \"/firstaid/1.0/\";\n String URL_WEB = BaseApplication.isDebug ? \"/shopweb/index.php/\" : \"/shopweb/index.php/\";\n\n /**\n * 用户登录\n */\n String lOGIN_URL = ROOT_HOST_NAME + URL_BASE + \"login.php\";\n\n}",
"public interface Api {\n\n// String BASE_URL_REMOTE = \"http://192.168.0.11/videoworld/v1/\"; //远程服务器的\n\n String BASE_URL_REMOTE = \"http://www.luocaca.cn/VideoWorld/v1/\"; //远程服务器的\n// String BASE_URL_REMOTE = \"http://115.159.196.175/VideoWorld/v1/\"; //远程服务器的\n\n// String BASE_URL = \"http://v.juhe.cn/weather/\";\n\n\n @GET(\"citys\")\n Observable<AllCity> getAllCity(@Query(\"key\") String key);\n\n\n /**\n * http://localhost:8089/hello/book/add?name=大傻1&book_id=222&number=222&detail=详细信息\n *\n * @param book_id\n * @param number\n * @param detail\n * @param name\n * @return\n */\n\n @GET(\"book/add\")\n Observable<ApiResult> requestAdd(@Query(\"book_id\") String book_id,\n @Query(\"number\") String number,\n @Query(\"detail\") String detail,\n @Query(\"name\") String name,\n @Query(\"url\") String url\n );\n\n\n @GET(\"book/allbook\")\n Observable<ApiResult<List<Book>>> requestBookList();\n\n @GET(\"book/del/{bookId}\")\n Observable<ApiResult> requestDelete(@Path(\"bookId\") String bookId);\n\n @GET\n Observable<ObjectResponse> requestGetMovies(@Url String baseUrl, @Query(\"url\") String url);\n\n @GET\n Observable<ObjectResponse> requestAddMovies(@Url String baseUrl, @Query(\"url\") String url, @Query(\"list\") String list);\n\n //http://api.nlkmlk.com:81/love/user/1711111\n @GET\n Observable<Result> requestVip(@Url String baseUrl );\n\n\n}",
"public interface UrlConnector {\n /**\n * Obtains an HTTP GET request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpGet getRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PUT request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPut putRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP POST request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPost postRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP DELETE request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PATCH request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPatch patchRequest(HttpServletRequest request, String address) throws IOException;\n}",
"public JSONArray protocols() throws Exception {\n\t\ttry {\n\t\t\tClient c = getHttpClient();\n\t\t\tWebResource r = c.resource(url + \"/protocols\");\n\t\t\tString response = r.get(String.class);\n\t \t\ttry { return new JSONArray(new JSONTokener(response)); }\n\t \t\tcatch (JSONException e) { throw new Exception(\"JSON syntax error in response\", e); }\n\t\t} catch (UniformInterfaceException e) {\n\t\t\tthrow new Exception(e.getMessage() + \" (\" + e.getResponse().getEntity(String.class) + \")\");\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t}\n\t}",
"public interface RestApi {\n}",
"public void setProtocol(String protocol) {\n this.protocol = protocol;\n }",
"public void setProtocol(String protocol) {\n this.protocol = protocol;\n }",
"public interface HTTPConstantsInterface {\n \n int DEFAULT_HTTPS_PORT = 443;\n String DEFAULT_HTTPS_PORT_STRING = \"443\"; // $NON-NLS-1$\n int DEFAULT_HTTP_PORT = 80;\n String DEFAULT_HTTP_PORT_STRING = \"80\"; // $NON-NLS-1$\n String PROTOCOL_HTTP = \"http\"; // $NON-NLS-1$\n String PROTOCOL_HTTPS = \"https\"; // $NON-NLS-1$\n String HEAD = \"HEAD\"; // $NON-NLS-1$\n String POST = \"POST\"; // $NON-NLS-1$\n String PUT = \"PUT\"; // $NON-NLS-1$\n String GET = \"GET\"; // $NON-NLS-1$\n String OPTIONS = \"OPTIONS\"; // $NON-NLS-1$\n String TRACE = \"TRACE\"; // $NON-NLS-1$\n String DELETE = \"DELETE\"; // $NON-NLS-1$\n String PATCH = \"PATCH\"; // $NON-NLS-1$\n String PROPFIND = \"PROPFIND\"; // $NON-NLS-1$\n String PROPPATCH = \"PROPPATCH\"; // $NON-NLS-1$\n String MKCOL = \"MKCOL\"; // $NON-NLS-1$\n String COPY = \"COPY\"; // $NON-NLS-1$\n String MOVE = \"MOVE\"; // $NON-NLS-1$\n String LOCK = \"LOCK\"; // $NON-NLS-1$\n String UNLOCK = \"UNLOCK\"; // $NON-NLS-1$\n String CONNECT = \"CONNECT\"; // $NON-NLS-1$\n+ String REPORT = \"REPORT\"; // $NON-NLS-1$\n+ String MKCALENDAR = \"MKCALENDAR\"; // $NON-NLS-1$\n String HEADER_AUTHORIZATION = \"Authorization\"; // $NON-NLS-1$\n String HEADER_COOKIE = \"Cookie\"; // $NON-NLS-1$\n String HEADER_CONNECTION = \"Connection\"; // $NON-NLS-1$\n String CONNECTION_CLOSE = \"close\"; // $NON-NLS-1$\n String KEEP_ALIVE = \"keep-alive\"; // $NON-NLS-1$\n // e.g. \"Transfer-Encoding: chunked\", which is processed automatically by the underlying protocol\n String TRANSFER_ENCODING = \"transfer-encoding\"; // $NON-NLS-1$\n String HEADER_CONTENT_ENCODING = \"content-encoding\"; // $NON-NLS-1$\n String HTTP_1_1 = \"HTTP/1.1\"; // $NON-NLS-1$\n String HEADER_SET_COOKIE = \"set-cookie\"; // $NON-NLS-1$\n String ENCODING_GZIP = \"gzip\"; // $NON-NLS-1$\n String HEADER_CONTENT_DISPOSITION = \"Content-Disposition\"; // $NON-NLS-1$\n String HEADER_CONTENT_TYPE = \"Content-Type\"; // $NON-NLS-1$\n String HEADER_CONTENT_LENGTH = \"Content-Length\"; // $NON-NLS-1$\n String HEADER_HOST = \"Host\"; // $NON-NLS-1$\n String HEADER_LOCAL_ADDRESS = \"X-LocalAddress\"; // $NON-NLS-1$ pseudo-header for reporting Local Address\n String HEADER_LOCATION = \"Location\"; // $NON-NLS-1$\n String APPLICATION_X_WWW_FORM_URLENCODED = \"application/x-www-form-urlencoded\"; // $NON-NLS-1$\n String MULTIPART_FORM_DATA = \"multipart/form-data\"; // $NON-NLS-1$\n // For handling caching\n String IF_NONE_MATCH = \"If-None-Match\"; // $NON-NLS-1$\n String IF_MODIFIED_SINCE = \"If-Modified-Since\"; // $NON-NLS-1$\n String ETAG = \"Etag\"; // $NON-NLS-1$\n String LAST_MODIFIED = \"Last-Modified\"; // $NON-NLS-1$\n String EXPIRES = \"Expires\"; // $NON-NLS-1$\n String CACHE_CONTROL = \"Cache-Control\"; //e.g. public, max-age=259200\n String DATE = \"Date\"; //e.g. Date Header of response \n \n }",
"public interface API {\n\n// String BASE_URL = \"http://logicalsofttech.com/helpmewaka/api/\";\n// String BASE_URL_IMG_CON = \"https://logicalsofttech.com/helpmewaka/upload/contractor/profile/\";\n// String BASE_URL_IMG_CUST = \"https://logicalsofttech.com/helpmewaka/upload/customer/\";\n// String BASE_URL_DOWNLOAD_IMG_CUST = \"https://logicalsofttech.com/helpmewaka/upload/jobs/customer/\";\n// String BASE_URL_DOWNLOAD_IMG_CONTRACTOR = \"https://logicalsofttech.com/helpmewaka/upload/jobs/contractor/\";\n// String BASE_URL_IMEGES = \"https://www.helpmewaka.com/images/\";\n\n String BASE_URL = \"https://helpmewaka.com/api/\";\n String BASE_URL_IMG_CON = \"https://www.helpmewaka.com/upload/contractor/profile/\";\n String BASE_URL_IMG_CUST = \"https://www.helpmewaka.com/upload/customer/\";\n String BASE_URL_DOWNLOAD_IMG_CUST = \"https://www.helpmewaka.com/upload/jobs/customer/\";\n String BASE_URL_DOWNLOAD_IMG_CONTRACTOR = \"https://www.helpmewaka.com/upload/jobs/contractor/\";\n String BASE_URL_IMEGES = \"https://www.helpmewaka.com/images/\";\n\n}",
"private static String getRequestsProtocol() {\n boolean isXForwardedProtoHttps = Controller.request().header(\"X-Forwarded-Proto\").map(h -> h.equals(\"https\"))\n .orElse(false);\n boolean isRefererProtoHttps = Controller.request().header(\"Referer\").map(h -> h.startsWith(\"https\")).orElse(\n false);\n return isXForwardedProtoHttps || isRefererProtoHttps || Controller.request().secure() ? \"https\" : \"http\";\n }",
"List<Parameter> baseUriParameters();",
"@java.lang.Override\n public boolean hasProtocol() {\n return protocol_ != null;\n }",
"@Path(JaxRsActivator.OVERVIEW_ENDPOINT_PATH)\npublic interface ApiOverviewRestEndpoint {\n /**\n * A {@code String} constant representing json v1 \"{@value #MEDIA_TYPE_JSON_V1}\" media type .\n */\n String MEDIA_TYPE_JSON_V1 = \"application/vnd.overview-v1+json\";\n /**\n * A {@link MediaType} constant representing json v1 \"{@value #MEDIA_TYPE_JSON_V1}\" media type.\n */\n MediaType MEDIA_TYPE_JSON_V1_TYPE = new MediaType(\"application\", \"vnd.overview-v1+json\");\n\n /**\n * <pre>\n * http://127.0.0.1:8180/auth-microservice/auth-api/overview/endpoints\n * curl -v -H \"Accept: application/vnd.overview-v1+json\" -H \"Content-Type: application/vnd.overview-v1+json\" -H \"X-BOMC-REQUEST-ID: SET-BY-CURL-123\" -H \"X-BOMC-AUTHORIZATION: BOMC_USER\" -X GET \"127.0.0.1:8180/auth-microservice/auth-api/overview/endpoints\"\n * </pre>\n * @return JSON response for all available endpoints.\n * @description List all available endpoints. responseType javax.json.JsonObject\n * @responseMessage 200 A Response object that wraps the javax.json.JsonObject.\n * @responseMessage 400 Invalid Request.\n * @responseMessage 401 Unauthorized. API key does not need access privileges.\n * @responseMessage 404 Endpoint not found.\n */\n @GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);\n}",
"public SSLOpts setProtocols(String protocols) {\r\n\t\tthis.protocols = protocols;\r\n\t\treturn this;\r\n\t}",
"public interface EndpointsApi {\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getRecentMedia(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_PROFILE_USER_WITH_ID)\n Call<MascotasResponse> getProfile(@Path(\"user-id\") String id);\n\n @GET(ConstantesRestApi.URL_GET_FOLLOWS)\n Call<MascotasResponse> getFollows();\n\n @GET(ConstantesRestApi.URL_GET_FOLOWS_MEDIA_RECENT)\n Call<MascotasResponse> getFollowsMediaRecent(@Path(\"user-id\") String id);\n}",
"public String getProtocols() {\r\n\t\treturn protocols;\r\n\t}",
"Collection<HttpMethod> getMinimalSupportedHttpMethods();",
"IHttpService getHttpService();",
"boolean hasApiUrl();",
"public boolean isHTTPorHTTPS() {\n if (proxyURL.getProtocol().equalsIgnoreCase(\"HTTP\") ||\n proxyURL.getProtocol().equalsIgnoreCase(\"HTTPS\")) {\n return true;\n } else {\n return false;\n }\n }",
"public static Set<String> getSupportedProtocols() {\n return SUPPORTED_PROTOCOLS;\n }",
"public String getRequestProtocol(){\n return this.requestProtocol;\n }",
"public SampleApiClient(String baseUri) {\n\t\t// Setup a request specification that can be applied to multiple requests\n\t\tRequestSpecBuilder requestSpecBuilder = new RequestSpecBuilder();\n\t\trequestSpecBuilder.setBaseUri(baseUri);\n\t\trequestSpecification = requestSpecBuilder.build();\n\t\t\n\t\t// Setup a response specification that can be applied to all responses\n\t\tResponseSpecBuilder responseSpecBuilder = new ResponseSpecBuilder();\n\t\tresponseSpecBuilder.setDefaultParser(Parser.JSON);\n\t\tResponseSpecification responseSpecification = responseSpecBuilder.build();\n\t\t//this.responseSpecification = responseSpecification;\t// Does not work, for some reason -> bug with Rest Assured!\n\t\tRestAssured.responseSpecification = responseSpecification;\t// Setting the responseSpec globally as an alternative...\n\t}",
"public HttpConnector(){\n super();\n }",
"public interface Protocol {\n /** The name of the extension point. */\n public final static String X_POINT_ID = Protocol.class.getName();\n\n /** Returns the {@link Content} for a url.\n * @throws IOException for any errors.\n */\n Content getContent(String url) throws ProtocolException;\n}",
"public void setProtocol (java.lang.String protocol) {\r\n this.protocol = protocol;\r\n }",
"com.google.protobuf.ByteString\n getApiUrlBytes();",
"void setBaseUri(String baseUri);",
"public HttpConnector(JsonSystem system) {\r\n super(system);\r\n }",
"public interface StarWarsAPI {\r\n\r\n @GET\r\n Call<Character> getCharacter(@Url String url);\r\n\r\n @GET\r\n Call<Film> getFilm(@Url String url);\r\n}",
"public interface HttpContract {\n\n WelfareService welfareHttp();\n\n}",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public ConfigurationProviderHTTP(List<URI> baseList, String restUsr, String restPwd) throws IOException {\n this.baseList = baseList;\n this.restUsr = restUsr;\n this.restPwd = restPwd;\n }",
"DataURL(String protocol){\n super(protocol);\n }",
"public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }",
"public void setProtocol(String protocol) {\n m_Protocol = protocol;\n }",
"private Set<Protocol> discoverSupportedProtocols() throws IOException {\n HttpHead head = new HttpHead(uri);\n head.addHeader(HttpHeaders.ACCEPT, \"text/xml, application/x-frpc\");\n HttpResponse response = httpClient.execute(head);\n // get all \"Accept\" header values as Set of strings\n Set<String> acceptHeaderValues = Arrays.stream(response.getHeaders(HttpHeaders.ACCEPT))\n .map(Header::getElements).flatMap(Arrays::stream).map(HeaderElement::getName)\n .collect(Collectors.toSet());\n // check if they contain \"application/x-frpc\" or \"text/xml\" or both\n Set<Protocol> result = EnumSet.noneOf(Protocol.class);\n if (acceptHeaderValues.contains(Protocol.FRPC.getContentType())) {\n result.add(Protocol.FRPC);\n }\n if (acceptHeaderValues.contains(Protocol.XML_RPC.getContentType())) {\n result.add(Protocol.XML_RPC);\n }\n // return the result as set of protocols supported by the server\n return result;\n }",
"private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }",
"public interface ApiInterface {\n String HOST = \"http://fanyi.youdao.com/\";\n String IMG_HOST = \"http://www.bing.com/\";\n\n @GET(\"openapi.do\")\n Observable<Translation> getTranslation(@Query(\"keyfrom\") String keyfrom,\n @Query(\"key\") String key,\n @Query(\"type\") String type,\n @Query(\"doctype\") String doctype,\n @Query(\"version\") String version,\n @Query(\"q\") String q);\n\n @GET(\"HPImageArchive.aspx\")\n Observable<BackImg> getBackgroundImg(@Query(\"format\") String format,\n @Query(\"idx\") int idx,\n @Query(\"n\") int n);\n\n\n\n}",
"public interface ApiService {\n\n\n public static final String BASE_URL = \"http://112.124.22.238:8081/course_api/cniaoplay/\";\n\n// @GET(\"featured\")\n// public Call<PageBean<AppInfo>> getApps(@Query(\"p\") String jsonParam);\n\n @GET(\"featured\")\n public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query(\"p\") String jsonParam);\n\n}",
"public interface APIInterface {\n// @GET(\"api/home/books\")\n// Call<BookListResponse> getBookList();\n//\n// @GET(\"api/home/tests\")\n// Call<BookListResponse> getTestList();\n//\n// @GET(\"api/home/banners\")\n// Call<BannerResponse> getBanners();\n//\n\n @GET\n Call<LectureResponse> loadLectures(@Url String url);\n\n @GET\n Call<HomeResponse> loadHomePageFromApi(@Url String url);\n\n @GET(\"api/root\")\n Call<RootApiResponse> loadApiList();\n\n @GET\n Call<BannerResponse> loadBanners(@Url String url);\n\n @GET\n Call<BookListResponse> loadBookList(@Url String url);\n\n @GET\n Call<PracticeDetailResponse> loadPracticeDetail(@Url String url);\n\n @GET\n Call<PracticeListResponse> loadPracticeList(@Url String url);\n\n @GET\n Call<SectionResponse> loadSections(@Url String url);\n\n @GET\n Call<QuestionResponse> loadQuestion(@Url String url);\n\n @GET\n Call<ReadingTestResponse> loadReadingTest(@Url String url);\n\n @GET\n Call<ReadingQuestionResponse> loadReadingAnswer(@Url String url);\n\n @GET\n Call<AudioListRespone> loadAudioList(@Url String url);\n\n @FormUrlEncoded\n @POST\n Call<LoginResponse> login(@Url String url,\n @Field(\"email\") String username,\n @Field(\"password\") String password,\n @Field(\"facebookId\") String facebookId,\n @Field(\"googlePlusId\") String googlePlusId);\n\n @FormUrlEncoded\n @POST\n Call<BaseResponse> logout(@Url String url,\n @Field(\"accessToken\") String accessToken);\n}",
"public interface ApiEndPointsAndPatameters {\n\t\n//\t/** Resource path for api resources */\n//\tString API_PREFIX = \"/api\";\n//\n\t/** Resource path for API version 1 */\n\tString API_VERSION_1 = \"/v1\";\n//\n//\t/** Resource path to get available power plants. */\n//\tString POWER_PLANT_PATH = \"/powerPlant\";\n//\n//\t/** Resource path to get power plant data for a given power plant id. */\n//\tString POWER_PLANT_DATA_PATH = \"/{id}\";\n//\n//\tString POWER_PLANT_DETAILS = \"/details\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_DAY = \"/sumByDay\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_WEEK = \"/sumByWeek\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_MONTH = \"/sumByMonth\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_YEAR = \"/sumByYear\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_HOUR_FORECAST = \"/nextHourForecast\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_DAY_FORECAST = \"/nextDayForecast\";\n//\n//\t/** Query parameter for filtering by start date. */\n//\tString QUERY_PARAMETER_START_DATE = \"startDate\";\n//\n//\t/** Query parameter for filtering by end date. */\n//\tString QUERY_PARAMETER_END_DATE = \"endDate\";\n//\n//\t/** Query parameter for filtering by power plant data type. */\n//\tString QUERY_PARAMETER_DATA_TYPE = \"dataType\";\n//\t\n//\t\n\t\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHENTICATION_ID = \"Authentication-ID\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_USER_PASSWORD = \"UserPassword\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHORISATION_ID = \"authorisation-id\";\n\t\n\t/** Resource path to get a list to the components a User has access to. */\n\tString USER_COMPONENT_LIST = \"/UserComponentLists\";\n\t\n\t/** Resource path to get a list of available resources for a component. */\n\tString DATA_LIST = \"/DataLists\";\n\t\n\t/** Resource path to authenticate. */\n\tString AUTHENTICATION = \"/authentication\";\n\t\n\t/** Resource path to logout. */\n\tString LOGOUT = \"/logout\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString COMPONENT_ID_PATH = \"/{cId}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString SIDE_PATH = \"/{side}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString TYPE_PATH = \"/{type}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString DATE_PATH = \"/{date}\";\n}",
"public ConfigurationProviderHTTP(List<URI> baseList) throws IOException {\n this(baseList, null, null);\n }",
"@Nullable Boolean isHttps();",
"public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}",
"public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}",
"public String[] getSupportedSchemes() {\n return new String[] { NAMESPACE_SCHEME_WS };\n }",
"public interface API {\n\n// String BASE_URL = \"https://www.apiopen.top/\";\n String BASE_URL = \"http://gc.ditu.aliyun.com/\";\n\n\n @GET\n Observable<Response<ResponseBody>> doGet(@Url String Url);\n\n @FormUrlEncoded\n @POST\n Observable<Response<ResponseBody>> doPost(@Url String Url, @FieldMap HashMap<String, String> map);\n\n @Streaming\n @GET\n Observable<Response<ResponseBody>> doDownload(@Url String Url);\n}",
"public interface APIEndpoints {\n\n @GET(\"user/{id}\")\n Call<User> getUser(@Path(\"id\") String userId);\n\n @GET(\"user\")\n Call<List<User>> getUsers();\n\n @POST(\"user\")\n Call<User> createUser(@Body User user);\n\n @PATCH(\"user/{id}\")\n Call<User> updateUser(@Body User user, @Path(\"id\") String userId);\n\n @DELETE\n Call<User> deleteUser(@Path(\"id\") String userID);\n\n @GET(\"challenge\")\n Call<List<Challenge>> getChallenges();\n\n @GET(\"challenge/{id}\")\n Call<Challenge> getChallenge(@Path(\"id\") String challengeID);\n\n @POST(\"challenge\")\n Call<User> createChallenge(@Body Challenge challenge);\n\n @PATCH(\"challenge/{id}\")\n Call<Challenge> updateChallenge(@Body Challenge challenge, @Path(\"id\") String challengeID);\n\n @DELETE\n Call<User> deleteChallenge(@Path(\"id\") String challengeID);\n\n @GET(\"issue\")\n Call<List<Issue>> getIssues();\n\n @GET(\"issue/{id}\")\n Call<Issue> getIssue(@Path(\"id\") String issueId);\n\n @POST(\"issue\")\n Call<Issue> createIssue(@Body Issue issue);\n\n @PUT(\"issue/{id}\")\n Call<Issue> updateIssue(@Body Issue issue, @Path(\"id\") String issueId);\n\n @DELETE(\"issue/{id}\")\n Call<Issue> deleteIssue(@Path(\"id\") String issueId);\n\n}",
"String getProtocol();",
"public interface RestApis {\n\n @POST(Constants.ApiMethods.REGISTER_URL)\n Call<RegisterResponse> registerUser(@Body RegisterRequest aRegisterRequest);\n\n @POST(Constants.ApiMethods.LOGIN_URL)\n Call<LoginResponse> loginUser(@Body LoginRequest aRequest);\n\n @GET(Constants.ApiMethods.USER_LIST_URL)\n Call<BaseResponse<List<UserModel>>> getUserList(@Query(\"page\") int pageId);\n\n @GET(Constants.ApiMethods.ALBUM_LIST_URL)\n Call<List<AlbumModel>> getAlbumList();\n\n}",
"private static String composeApiUrl(String string){\r\n\t\treturn API_BASE + API_VERSION + string;\r\n\t}",
"public interface HttpConstants {\n\n String BASE_URL = \"http://apis.tudou.com/\";\n String REQUEST_HTTP_URL = \"classification/v1/startPage\";\n}",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkProtocol() {\n\t\tboolean flag = oTest.checkProtocol();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}",
"public interface Rest {\n}",
"@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}",
"public interface IHttpEngine {\n // get请求\n void get(Context context, String url, Map<String,Object> params,EngineCallBack callBack);\n\n // post请求\n void post(Context context,String url,Map<String,Object> params,EngineCallBack callBack);\n\n // 下载文件\n\n\n // 上传文件\n\n\n // https 添加证书\n}",
"@Path(\"/providers/Microsoft.Compute/locations/{location}\")\n@RequestFilters({ OAuthFilter.class, ApiVersionFilter.class })\n@Consumes(APPLICATION_JSON)\npublic interface OSImageApi {\n\n /**\n * List Publishers in location\n */\n @Named(\"publisher:list\")\n @GET\n @Path(\"/publishers\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Publisher> listPublishers();\n\n /**\n * List Offers in publisher\n */\n @Named(\"offer:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Offer> listOffers(@PathParam(\"publisher\") String publisher);\n\n /**\n * List SKUs in offer\n */\n @Named(\"sku:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<SKU> listSKUs(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer);\n\n /**\n * List Versions in SKU\n */\n @Named(\"version:list\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n List<Version> listVersions(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku);\n \n /**\n * Get the details of a Version\n */\n @Named(\"version:get\")\n @GET\n @Path(\"/publishers/{publisher}/artifacttypes/vmimage/offers/{offer}/skus/{sku}/versions/{version}\")\n @Fallback(EmptyListOnNotFoundOr404.class)\n Version getVersion(@PathParam(\"publisher\") String publisher, @PathParam(\"offer\") String offer,\n @PathParam(\"sku\") String sku, @PathParam(\"version\") String version);\n\n}",
"public interface RpcURI {\n String rpcproto = \"http\";\n String rpcssl = \"https\";\n String rpchost = \"127.0.0.1\";\n String rpcfile = \"/\";\n\n int RPCPORT_MAINNET = 8332;\n int RPCPORT_TESTNET = 18332;\n int RPCPORT_REGTEST = 18443; // Was same port as TESTNET until Bitcoin Core 0.16.0\n\n URI DEFAULT_MAINNET_URI = rpcURI( rpchost, RPCPORT_MAINNET);\n URI DEFAULT_TESTNET_URI = rpcURI( rpchost, RPCPORT_TESTNET );\n URI DEFAULT_REGTEST_URI = rpcURI( rpchost, RPCPORT_REGTEST);\n\n // TODO: Deprecate?\n URI defaultMainNetURI = DEFAULT_MAINNET_URI;\n URI defaultTestNetURI = DEFAULT_TESTNET_URI;\n URI defaultRegTestURI = DEFAULT_REGTEST_URI;\n\n static URI getDefaultMainNetURI() {\n return DEFAULT_MAINNET_URI;\n }\n\n static URI getDefaultTestNetURI() {\n return DEFAULT_TESTNET_URI;\n }\n\n static URI getDefaultRegTestURI() {\n return DEFAULT_REGTEST_URI;\n }\n\n static URI getDefaultRegTestWalletURI() {\n return getRegTestWalletURI(rpchost);\n }\n\n static URI getRegTestWalletURI(String hostName) {\n return rpcWalletURI(hostName, RPCPORT_REGTEST, BitcoinExtendedClient.REGTEST_WALLET_NAME);\n }\n\n static URI rpcURI(String hostName, int port) {\n return URI.create(rpcproto + \"://\" + hostName + \":\" + port + rpcfile);\n }\n\n static URI rpcWalletURI(String hostName, int port, String walletName) {\n return URI.create(rpcproto + \"://\" + hostName + \":\" + port + \"/wallet/\" + walletName);\n }\n}",
"@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getProtocol() {\n\t\treturn null;\n\t}",
"public interface ApiEndpoints {\n @GET\n Call<String> rxGetImageCall(@Url String imageUrl);\n}",
"public void determineBaseUrl() {\n if (Environment.isLatest()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isStage()) {\n baseUrl = \"api-stage.wdpro.starwave.com\";\n } else if (Environment.isENV4()) {\n baseUrl = \"api-latest.wdpro.starwave.com\";\n } else if (Environment.isENV2()) {\n // baseUrl = \"api-qa.wdpro.disney.go.com:8088\";\n baseUrl = \"api-env2.wdpro.starwave.com\";\n } else if (Environment.isSoftLaunch()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else if (Environment.isShadow()) {\n baseUrl = \"api-shadow.wdpro.starwave.com\";\n } else if (Environment.isProduction()) {\n baseUrl = \"api.wdpro.disney.go.com\";\n } else {\n baseUrl = \"api.wdpro.disney.go.com\";\n }\n }",
"protected String getDefaultProtocols() {\r\n\t\tString sp = System.getProperty(\"transport.client.protocol\");\r\n\t\tif (isEmpty(sp))\r\n\t\t\tsp = \"SSL_TLS,TLS,SSL\";\r\n\t\treturn sp;\r\n\t}",
"private void initialize(URI p_base, String p_uriSpec)\n throws MalformedURIException {\n \n String uriSpec = p_uriSpec;\n int uriSpecLen = (uriSpec != null) ? uriSpec.length() : 0;\n \n if (p_base == null && uriSpecLen == 0) {\n throw new MalformedURIException(\n \"Cannot initialize URI with empty parameters.\");\n }\n \n // just make a copy of the base if spec is empty\n if (uriSpecLen == 0) {\n initialize(p_base);\n return;\n }\n \n int index = 0;\n \n // Check for scheme, which must be before '/', '?' or '#'. Also handle\n // names with DOS drive letters ('D:'), so 1-character schemes are not\n // allowed.\n int colonIdx = uriSpec.indexOf(':');\n if (colonIdx != -1) {\n final int searchFrom = colonIdx - 1;\n // search backwards starting from character before ':'.\n int slashIdx = uriSpec.lastIndexOf('/', searchFrom);\n int queryIdx = uriSpec.lastIndexOf('?', searchFrom);\n int fragmentIdx = uriSpec.lastIndexOf('#', searchFrom);\n \n if (colonIdx < 2 || slashIdx != -1 || \n queryIdx != -1 || fragmentIdx != -1) {\n // A standalone base is a valid URI according to spec\n if (colonIdx == 0 || (p_base == null && fragmentIdx != 0)) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n }\n else {\n initializeScheme(uriSpec);\n index = m_scheme.length()+1;\n \n // Neither 'scheme:' or 'scheme:#fragment' are valid URIs.\n if (colonIdx == uriSpecLen - 1 || uriSpec.charAt(colonIdx+1) == '#') {\n throw new MalformedURIException(\"Scheme specific part cannot be empty.\"); \n }\n }\n }\n else if (p_base == null && uriSpec.indexOf('#') != 0) {\n throw new MalformedURIException(\"No scheme found in URI.\"); \n }\n \n // Two slashes means we may have authority, but definitely means we're either\n // matching net_path or abs_path. These two productions are ambiguous in that\n // every net_path (except those containing an IPv6Reference) is an abs_path. \n // RFC 2396 resolves this ambiguity by applying a greedy left most matching rule. \n // Try matching net_path first, and if that fails we don't have authority so \n // then attempt to match abs_path.\n //\n // net_path = \"//\" authority [ abs_path ]\n // abs_path = \"/\" path_segments\n if (((index+1) < uriSpecLen) &&\n (uriSpec.charAt(index) == '/' && uriSpec.charAt(index+1) == '/')) {\n index += 2;\n int startPos = index;\n \n // Authority will be everything up to path, query or fragment\n char testChar = '\\0';\n while (index < uriSpecLen) {\n testChar = uriSpec.charAt(index);\n if (testChar == '/' || testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n \n // Attempt to parse authority. If the section is an empty string\n // this is a valid server based authority, so set the host to this\n // value.\n if (index > startPos) {\n // If we didn't find authority we need to back up. Attempt to\n // match against abs_path next.\n if (!initializeAuthority(uriSpec.substring(startPos, index))) {\n index = startPos - 2;\n }\n }\n else {\n m_host = \"\";\n }\n }\n \n initializePath(uriSpec, index);\n \n // Resolve relative URI to base URI - see RFC 2396 Section 5.2\n // In some cases, it might make more sense to throw an exception\n // (when scheme is specified is the string spec and the base URI\n // is also specified, for example), but we're just following the\n // RFC specifications\n if (p_base != null) {\n \n // check to see if this is the current doc - RFC 2396 5.2 #2\n // note that this is slightly different from the RFC spec in that\n // we don't include the check for query string being null\n // - this handles cases where the urispec is just a query\n // string or a fragment (e.g. \"?y\" or \"#s\") -\n // see <http://www.ics.uci.edu/~fielding/url/test1.html> which\n // identified this as a bug in the RFC\n if (m_path.length() == 0 && m_scheme == null &&\n m_host == null && m_regAuthority == null) {\n m_scheme = p_base.getScheme();\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n m_path = p_base.getPath();\n \n if (m_queryString == null) {\n m_queryString = p_base.getQueryString();\n }\n return;\n }\n \n // check for scheme - RFC 2396 5.2 #3\n // if we found a scheme, it means absolute URI, so we're done\n if (m_scheme == null) {\n m_scheme = p_base.getScheme();\n }\n else {\n return;\n }\n \n // check for authority - RFC 2396 5.2 #4\n // if we found a host, then we've got a network path, so we're done\n if (m_host == null && m_regAuthority == null) {\n m_userinfo = p_base.getUserinfo();\n m_host = p_base.getHost();\n m_port = p_base.getPort();\n m_regAuthority = p_base.getRegBasedAuthority();\n }\n else {\n return;\n }\n \n // check for absolute path - RFC 2396 5.2 #5\n if (m_path.length() > 0 &&\n m_path.startsWith(\"/\")) {\n return;\n }\n \n // if we get to this point, we need to resolve relative path\n // RFC 2396 5.2 #6\n String path = \"\";\n String basePath = p_base.getPath();\n \n // 6a - get all but the last segment of the base URI path\n if (basePath != null && basePath.length() > 0) {\n int lastSlash = basePath.lastIndexOf('/');\n if (lastSlash != -1) {\n path = basePath.substring(0, lastSlash+1);\n }\n }\n else if (m_path.length() > 0) {\n path = \"/\";\n }\n \n // 6b - append the relative URI path\n path = path.concat(m_path);\n \n // 6c - remove all \"./\" where \".\" is a complete path segment\n index = -1;\n while ((index = path.indexOf(\"/./\")) != -1) {\n path = path.substring(0, index+1).concat(path.substring(index+3));\n }\n \n // 6d - remove \".\" if path ends with \".\" as a complete path segment\n if (path.endsWith(\"/.\")) {\n path = path.substring(0, path.length()-1);\n }\n \n // 6e - remove all \"<segment>/../\" where \"<segment>\" is a complete\n // path segment not equal to \"..\"\n index = 1;\n int segIndex = -1;\n String tempString = null;\n \n while ((index = path.indexOf(\"/../\", index)) > 0) {\n tempString = path.substring(0, path.indexOf(\"/../\"));\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n if (!tempString.substring(segIndex).equals(\"..\")) {\n path = path.substring(0, segIndex+1).concat(path.substring(index+4));\n index = segIndex;\n }\n else\n index += 4;\n }\n else\n index += 4;\n }\n \n // 6f - remove ending \"<segment>/..\" where \"<segment>\" is a\n // complete path segment\n if (path.endsWith(\"/..\")) {\n tempString = path.substring(0, path.length()-3);\n segIndex = tempString.lastIndexOf('/');\n if (segIndex != -1) {\n path = path.substring(0, segIndex+1);\n }\n }\n m_path = path;\n }\n }",
"public interface RequestServes {\n @GET(\"PlayVideo/{firstVideoId}\")\n Call<JsonElement> getPlayVideo(@Path(\"firstVideoId\") String firstVideoId);\n @GET\n Call<JsonElement> getData(@Url String url);\n @GET(\"{test}\")\n Call<ResponseBody> getString(@Path(\"test\") String test);\n\n @GET(\"users/{user}/repos\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user);\n\n}",
"@Override\n\t\tpublic String getProtocol() {\n\t\t\treturn null;\n\t\t}",
"public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }",
"default AdvancedWorkdayEndpointBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }",
"@Override\npublic void get(String url) {\n\t\n}",
"public interface HeroesApi {\n String BASE_URL = \"https://www.simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Hero>> getAll();\n}",
"public interface URLs\r\n{\r\n String BASIC_URL = \"http://api.timetable.asia/\";\r\n\r\n String KEY = \"221b368d7f5f597867f525971f28ff75\";\r\n\r\n String COMPANY_URL = \"operator.json\";\r\n String LANGUAGE_URL = \"lang.json\";\r\n String VEHICLE_URL = \"fleet.json\";\r\n String ROUTE_URL = \"route.json\";\r\n String TRIP_URL = \"trip.json\";\r\n String COMMIT_URL = \"commit.json\";\r\n String CURRENT_STATIONS_URL = \"station.json\";\r\n public static final String LANGPACK_URL = \"langpack.json\";\r\n}",
"public interface TumblrApi {\n // No trailing slashes!\n String BASE_DOMAIN = \"tumblr.com\";\n String API_URL = \"https://api.\" + BASE_DOMAIN;\n\n String[] VALID_DOMAINS = {\n \"*.\" + BASE_DOMAIN\n };\n Set<String> VALID_DOMAINS_SET = new HashSet<>(Arrays.asList(VALID_DOMAINS));\n\n /** The width of the image to use as the \"low quality\" version */\n int LOW_QUALITY_WIDTH = 500;\n /** The width of the image to use as the preview version */\n int PREVIEW_WIDTH = 400;\n\n @GET(\"/v2/blog/{blogDomain}/posts/photo\")\n Call<TumblrResponse> getPost(@Path(\"blogDomain\") String blogDomain,\n @Query(\"id\") String postId,\n @Query(\"api_key\") String apiKey);\n}",
"@Override\n public String getAuthenticationScheme() {\n return \"OAuth2\";\n }",
"public java.lang.String getApiUrl() {\n java.lang.Object ref = apiUrl_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n apiUrl_ = s;\n }\n return s;\n }\n }",
"default AdvancedWorkdayEndpointBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }",
"public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}",
"public java.lang.String getProxyScheme()\r\n {\r\n return proxyScheme;\r\n }",
"private URLConnection urlConnBuilder(URI base, URI resource) throws IOException {\n if (!resource.isAbsolute() && base != null) {\n resource = base.resolve(resource);\n }\n URL specURL = resource.toURL();\n URLConnection connection = specURL.openConnection();\n connection.setRequestProperty(\"Accept\", \"application/json\");\n connection.setRequestProperty(\"user-agent\", \"spymemcached vbucket client\");\n connection.setRequestProperty(\"X-memcachekv-Store-Client-Specification-Version\", CLIENT_SPEC_VER);\n\tif (restUsr != null) {\n\t try {\n\t\tconnection.setRequestProperty(\"Authorization\", buildAuthHeader(restUsr, restPwd));\n\t } catch (UnsupportedEncodingException ex) {\n\t\tthrow new IOException(\"Could not encode specified credentials for HTTP request.\", ex);\n\t }\n\t}\n\n return connection;\n\n }",
"public static void setProtocol(int protocolVersion) {\n\t\t\n\t}",
"public List<String> supportedProtocols()\r\n/* 69: */ {\r\n/* 70:162 */ return this.supportedProtocols;\r\n/* 71: */ }",
"public interface HttpClientable {\n\n void get(String url);\n\n void get(String url, ParamStore params);\n\n void get(String url, ParamStore params, String tag);\n\n void post(String url, SparseArray<String> params);\n\n void post(String url, SparseArray<String> params, String tag);\n\n void upload(String url, HashMap<String, Object> params);\n\n void upload(String url, HashMap<String, Object> params, String tag);\n\n void download(String url);\n\n void download(String url, String tag);\n\n void cancelAll();\n\n void cancel(String tag);\n\n}",
"@GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);",
"protected abstract HttpUriRequest getHttpUriRequest();",
"public interface apiService {\n\n\n\n String base_url= \"http://192.168.43.154:8081/\";\n\n @GET(\"getprofile\")\n Call<Employee> getProfilehero(@Query(\"racf\") String id,@Query(\"password\") String pass);\n\n @GET(\"getpeopleonleave\")\n Call<Datesss> getdetailsondate(@Query(\"date\") String d);\n\n @GET(\"authentication\")\n Call<Auth> getAuth(@Query(\"racf\") String d,@Query(\"password\") String dd);\n\n @GET(\"getleavedates\")\n Call<leaves> getleavedates(@Query(\"racf\") String d);\n\n @GET(\"getwfhdates\")\n Call<WorkFromHome> getwfhdates(@Query(\"racf\") String dd);\n\n @GET(\"updateno\")\n Call<Auth> updating(@Query(\"racf\") String d,@Query(\"contacts\") String dd,@Query(\"contactnames\") String ddd);\n\n @GET(\"updateworkfromhome\")\n Call<Auth> updatingwfh(@Query(\"racf\") String d,@Query(\"dates\") String dd,@Query(\"reasons\") String ddd);\n\n @GET(\"updateonleave\")\n Call<Auth> updatingleave(@Query(\"racf\") String d,@Query(\"date\") String dd,@Query(\"reason\") String ddd);\n\n\n}",
"public interface Api {\n\n\n @GET(\"users?site=stackoverflow\")\n Call<UserResponse> getUser(@Query(\"pagesize\")int size,@Query(\"sort\")String sort);\n\n @GET(\"comments?site=stackoverflow\")\n Call<CommentsResponse> getComments(@Query(\"order\")String order,@Query(\"sort\")String votes,@Query(\"pagesize\")int size,@Query(\"min\")int min);\n\n @GET(\"posts/{ids}?site=stackoverflow\")\n Call<PostResponse> getPostResponseCall(@Path(\"ids\") long id);\n @GET(\"users/{ids}/questions?site=stackoverflow\")\n Call<QuestionsResponse> getQuestionsResponseCall (@Path(\"ids\")long id),@Query(\"sort\")String votes,\n}",
"public static String getProtocol() {\n return DEFAULT_PROTOCOL;\n }",
"public interface ApiService {\n\n @GET(\"datacatalog?format=json\")\n Call<Catalog> getTopCatalog();\n\n\n/* @GET(\"item/{storyid}.json\")\n Call<StoryResponse> getStoryDetails(@Path(\"storyid\") String storyid);\n\n @GET(\"autocomplete/json\")\n Call<AutoCompleteGooglePlaces> getAutoCompleteResults(@Query(\"key\") String API_KEY,\n @Query(\"input\") String encode);\n\n @GET(\"nearbysearch/json\")\n Call<GetPlacesResponse> getPlaceDetails(@Query(\"location\") String location,\n @Query(\"radius\") int radius,\n @Query(\"key\") String key);*/\n}",
"public interface ApiService {\n\t@GET(\"photos\")\n\tCall<List<ApiModel>> getApiData();\n}",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getProtocol();"
] | [
"0.6118147",
"0.5849779",
"0.57364607",
"0.54861546",
"0.5336492",
"0.53330255",
"0.5332177",
"0.5242256",
"0.52325517",
"0.5173402",
"0.51215315",
"0.5114993",
"0.5107952",
"0.5076726",
"0.50621",
"0.5029334",
"0.50211173",
"0.5014755",
"0.50023806",
"0.49778455",
"0.4975353",
"0.49651825",
"0.4963732",
"0.49358132",
"0.49326143",
"0.49253517",
"0.49230894",
"0.49224582",
"0.4908373",
"0.49007893",
"0.4883658",
"0.48814213",
"0.48677638",
"0.4865038",
"0.48579538",
"0.48549658",
"0.48488522",
"0.48443213",
"0.48416755",
"0.48295644",
"0.48249465",
"0.480279",
"0.47985998",
"0.47952557",
"0.47938675",
"0.4790296",
"0.47786194",
"0.47699448",
"0.4768257",
"0.4759245",
"0.47541317",
"0.47520804",
"0.4750411",
"0.4734002",
"0.47338936",
"0.47335535",
"0.47300306",
"0.4729969",
"0.47248873",
"0.4722627",
"0.4708538",
"0.47022063",
"0.47010365",
"0.4699942",
"0.46863484",
"0.4676043",
"0.46707907",
"0.46647313",
"0.465408",
"0.46535757",
"0.46535757",
"0.4639952",
"0.46366718",
"0.46315926",
"0.4630291",
"0.46287566",
"0.46155676",
"0.46060628",
"0.46054506",
"0.46041673",
"0.46034032",
"0.4601548",
"0.46010292",
"0.45956522",
"0.45883042",
"0.4587785",
"0.45773458",
"0.4576807",
"0.4575649",
"0.45661095",
"0.456467",
"0.45643842",
"0.45622376",
"0.455948",
"0.45574522",
"0.4557092",
"0.4550479",
"0.45454025",
"0.4543936",
"0.45406356"
] | 0.46932885 | 64 |
(Optional) The media types returned by API responses, and expected from API requests that accept a body, MAY be defaulted by specifying the mediaType property. This property is specified at the root level of the API definition. The property's value MAY be a single string with a valid media type described in the specification. | MimeType mediaType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMediaType() {\r\n return mediaType;\r\n }",
"protected abstract MediaType getSupportedMediaType();",
"@Value.Default\n public String getMediaType() {\n\treturn \"\";\n }",
"MediaType getMediaType();",
"public String getMediaType() {\n\t\treturn mediaType;\n\t}",
"public MediaType getDefault();",
"public String getMediaType() {\n\t\t\treturn mediaType;\n\t\t}",
"public Set<MediaType> getSupportedMediaTypes();",
"public ReactorResult<java.lang.String> getAllMediaType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), MEDIATYPE, java.lang.String.class);\r\n\t}",
"MediaType createMediaType();",
"public List<MediaType> getAccept()\r\n/* 87: */ {\r\n/* 88:148 */ String value = getFirst(\"Accept\");\r\n/* 89:149 */ return value != null ? MediaType.parseMediaTypes(value) : Collections.emptyList();\r\n/* 90: */ }",
"public MediaType getType() {\n return type;\n }",
"public interface MediaTypeOperations\r\n{\r\n\t/**\r\n\t * This method returns true if the concrete implementation can \"deal\" with the given media/mime type. Otherwise false is returned.\r\n\t * If null is passed to this method then false shall be returned.\r\n\t * \r\n\t * @param mediaType The media type to test for support by the concrete implementation of this interface methods.\r\n\t * \r\n\t * @return TRUE or FALSE.\r\n\t */\r\n\tpublic boolean isSupported(MediaType mediaType);\r\n\t\r\n\t/**\r\n\t * This method shall return the default mime/media type the concrete implementation will assume if something is not specified of\r\n\t * wrongly specified. For example if an unsupported media type is used (see isSupported() method in this interface) then the implementation \r\n\t * of the concrete class may assume the media type given by this method. Should not return null as that behaviour may not be defined.\r\n\t * \r\n\t * @return See desc.\r\n\t */\r\n\tpublic MediaType getDefault();\r\n\t\r\n\t/**\r\n\t * This method returns a set of mime/media types a marshaller/unmarshaller may support. This should never return null. If a\r\n\t * marshaller/unmarshaller should not support any mime/media types (unlikely scenario) then an empty set rather than null\r\n\t * shall be returned.\r\n\t * \r\n\t * @return See desc.\r\n\t */\r\n\tpublic Set<MediaType> getSupportedMediaTypes();\r\n}",
"String getPreferredMediaType( Document testRunArgs ) {\r\n String mediaTypeFromTestRunArg = parseMediaTypeFromTestRunArgs( testRunArgs );\r\n if ( mediaTypeFromTestRunArg != null && SUPPORTED_MEDIA_TYPES.contains( mediaTypeFromTestRunArg ) )\r\n return mediaTypeFromTestRunArg;\r\n return \"application/xml\";\r\n }",
"public void setAccept(List<MediaType> acceptableMediaTypes)\r\n/* 82: */ {\r\n/* 83:139 */ set(\"Accept\", MediaType.toString(acceptableMediaTypes));\r\n/* 84: */ }",
"public MediaType() {\n this(WILDCARD_TYPE, WILDCARD_TYPE, Collections.emptyMap());\n }",
"public MediaType ToMediaType() {\n return new MediaType(this.type, this.subtype, this.parameters);\n }",
"public final String getAcceptContentType() {\n return properties.get(ACCEPT_CONTENT_TYPE_PROPERTY);\n }",
"public void setAcceptedMediaTypes(\n List<Preference<MediaType>> acceptedMediaTypes) {\n this.acceptedMediaTypes = acceptedMediaTypes;\n }",
"public MediaType getContentType()\r\n/* 193: */ {\r\n/* 194:289 */ String value = getFirst(\"Content-Type\");\r\n/* 195:290 */ return value != null ? MediaType.parseMediaType(value) : null;\r\n/* 196: */ }",
"public boolean isSupported(MediaType mediaType);",
"@Override\n public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {\n\n Map<String, MediaType> types = new HashMap<>();\n types.put(\"json\", MediaType.APPLICATION_JSON);\n types.put(\"xml\", MediaType.APPLICATION_XML);\n\n configurer.favorPathExtension(false).\n useJaf(false).\n defaultContentType(MediaType.APPLICATION_JSON).\n mediaType(\"xml\", MediaType.APPLICATION_XML).\n mediaType(\"json\", MediaType.APPLICATION_JSON);\n }",
"public static String getMediaType(Request request) {\n\t\tList<Preference<MediaType>> acceptedMediaTypes = request.getClientInfo().getAcceptedMediaTypes();\n\t\tfor (Preference<MediaType> preference : acceptedMediaTypes) {\n\t\t\tMediaType mediaType = preference.getMetadata();\n\t\t\tString mediaTypeName = mediaType.getName().trim();\n\t\t\tmediaTypeName=mediaTypeName.replaceAll(\"\\\\s\", \"\");\n\t\t\tif(mediaTypeName.equalsIgnoreCase(MediaType.APPLICATION_JSONVERBOSE.getName())){\n\t\t\t\treturn \".json\";\n\t\t\t}\n\t\t\tif(mediaTypeName.equalsIgnoreCase(MediaType.APPLICATION_ATOM.getName())){\n\t\t\t\treturn \".xml\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getMediaType() throws SdpParseException {\n\t\treturn getMedia();\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Specify the CSS media type. Defaults to \\\"print\\\" but you may want to use \\\"screen\\\" for web styles.\")\n @JsonProperty(JSON_PROPERTY_MEDIA)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getMedia() {\n return media;\n }",
"@Override\n protected ResponseEntity<Object> handleHttpMediaTypeNotSupported(\n HttpMediaTypeNotSupportedException ex,\n HttpHeaders headers,\n HttpStatus status,\n WebRequest request) {\n\n LOGGER.info(\"handleHttpMediaTypeNotSupported\");\n return new ResponseEntity<>(new ErrorDto(\"handleHttpMediaTypeNotSupported\"), HttpStatus.UNSUPPORTED_MEDIA_TYPE);\n }",
"public void setMediaType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), MEDIATYPE, value);\r\n\t}",
"public SimpleResponse ERROR_UNSUPPORTED_MEDIA_TYPE() {\n this.state = HttpStatus.UNSUPPORTED_MEDIA_TYPE.value();\n return ERROR_CUSTOM();\n }",
"public MediaTypeBuilder () {\n this.parameters = new HashMap<String, String>();\n this.type = \"application\";\n this.subtype = \"octet-stream\";\n }",
"public List<MediaType> getContentTypes() {\n\t\treturn this.contentTypes;\n\t}",
"public abstract String[] getSupportedMediaTypes();",
"public void setContentType(MediaType mediaType)\r\n/* 186: */ {\r\n/* 187:278 */ Assert.isTrue(!mediaType.isWildcardType(), \"'Content-Type' cannot contain wildcard type '*'\");\r\n/* 188:279 */ Assert.isTrue(!mediaType.isWildcardSubtype(), \"'Content-Type' cannot contain wildcard subtype '*'\");\r\n/* 189:280 */ set(\"Content-Type\", mediaType.toString());\r\n/* 190: */ }",
"public Optional<String> contentType() {\n return body.contentType()\n .map(\n h -> {\n if (h.contains(\";\")) {\n return h.substring(0, h.indexOf(';')).trim();\n } else {\n return h.trim();\n }\n });\n }",
"@Override\n public Optional<ApiResponse> filterResponse(ApiResponse response, Operation operation, ApiDescription api, Map<String, List<String>> params, Map<String, String> cookies, Map<String, List<String>> headers) {\n // fix spec for object media types, e.g. json\n config.getObjectMediaTypes().stream()\n .map(mts -> response.getContent().get(mts))\n .filter(mt -> mt != null && mt.getSchema() == null)\n .forEach(mt -> {\n Schema schema = new Schema();\n schema.setType(\"object\");\n mt.setSchema(schema);\n });\n\n // fix spec for binary media types\n config.getBinaryMediaTypes().stream()\n .map(mts -> response.getContent().get(mts))\n .filter(mt -> mt != null && mt.getSchema() == null)\n .forEach(mt -> {\n final Schema schema = new Schema();\n schema.setType(\"string\");\n schema.setFormat(\"binary\");\n mt.setSchema(schema);\n });\n\n return Optional.of(response);\n }",
"public java.lang.String getMediaType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MEDIATYPE$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(MEDIATYPE$18);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@ResponseStatus (HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n\t@ExceptionHandler (HttpMediaTypeNotSupportedException.class)\n\tpublic Result handleHttpMediaTypeNotSupportedException (Exception e)\n\t{\n\t\treturn new Result ().failure (\"content_type_not_supported\");\n\t}",
"public void addMediaType(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), MEDIATYPE, value);\r\n\t}",
"public interface SpecialMediaTypeUtils {\n\n boolean isDefaultMediaType(SpecialMediaType specialMediaType);\n}",
"public void addMediaType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), MEDIATYPE, value);\r\n\t}",
"@Override\r\n\tprotected ResponseEntity<Object> handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex,\r\n\t\t\tHttpHeaders headers, HttpStatus status, WebRequest request) {\n\t\treturn super.handleHttpMediaTypeNotSupported(ex, headers, status, request);\r\n\t}",
"public static ReactorResult<java.lang.String> getAllMediaType_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, MEDIATYPE, java.lang.String.class);\r\n\t}",
"VrsMediaType(String name) {\n\t\tthis.type= MediaType.valueOf(name);\n\t}",
"public DataURL setMediaType(String mediaType){\n this.mediaType = mediaType;\n return this;\n }",
"@ResponseStatus(HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n @ExceptionHandler(HttpMediaTypeNotSupportedException.class)\n public Result handleHttpMediaTypeNotSupportedException(Exception e) {\n logger.error(\"不支持当前媒体类型\", e);\n return new Result(415,\"不支持当前媒体类型\");\n }",
"@ResponseStatus(HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n @ExceptionHandler(HttpMediaTypeNotSupportedException.class)\n public R handleHttpMediaTypeNotSupportedException(HttpMediaTypeNotSupportedException e) {\n log.error(\"不支持当前媒体类型\", e);\n return R.error(400 , \"content_type_not_supported\");\n }",
"static FHIRMediaType getType(final String mediaType) {\n\t\t\tFHIRMediaType retValue = null;\n\t\t\t// if the input type contains semicolons and bits for things like\n\t\t\t// \"charset\", filter those out.\n\t\t\tfinal String[] mediaTypeSplits = mediaType.split(\";\");\n\t\t\tfor (FHIRMediaType type : values()) {\n\t\t\t\tif (type.getMediaType().equals(mediaTypeSplits[0])) {\n\t\t\t\t\tretValue = type;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn retValue;\n\t\t}",
"@Bean\n MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter() {\n MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();\n converter.setSupportedMediaTypes(Collections.singletonList(MediaType.ALL));\n return converter;\n }",
"@JsonProperty(\"contentType\")\n public String getContentType() {\n return contentType;\n }",
"@Override\n\tpublic boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType arg3) {\n\t\treturn arg0 == JSONObject.class && MediaType.APPLICATION_JSON_TYPE.equals(arg3);\n\t}",
"private Predicate<RequestHandler> withMediaType(final MediaType[] mediaTypes) {\n\t\treturn input -> {\n\t\t\tif (mediaTypes != null) {\n\t\t\t\tProducesRequestCondition producesCondition = input.getRequestMapping().getProducesCondition();\n\t\t\t\tRequestCondition<?> customCondition = input.getRequestMapping().getCustomCondition();\n\n\t\t\t\tProducesRequestCondition combinedCondition = producesCondition;\n\t\t\t\tif (customCondition != null && customCondition instanceof ProducesRequestCondition)\n\t\t\t\t\tcombinedCondition = producesCondition.combine((ProducesRequestCondition) customCondition);\n\n\t\t\t\tfor (MediaType mt : combinedCondition.getProducibleMediaTypes()) {\n\t\t\t\t\tfor (MediaType mediaType : mediaTypes) {\n\t\t\t\t\t\tif (mt.equals(mediaType))\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}",
"@Override public String toString() {\n return this.ToMediaType().toString();\n }",
"@Override\n public String getBodyContentType() {\n return (mBodyContentType != null) ? mBodyContentType : super.getBodyContentType();\n }",
"@Override\n\tprotected ResponseEntity<Object> handleHttpMediaTypeNotAcceptable(\n\t\t\tHttpMediaTypeNotAcceptableException ex, HttpHeaders headers,\n\t\t\tHttpStatus status, WebRequest request) {\n\t\tMediaType mediaType= MediaType.parseMediaType(request.getHeader(\"accept\"));\n\t\tHttpMediaTypeNotSupportedException exa = new HttpMediaTypeNotSupportedException(mediaType, ex.getSupportedMediaTypes());\n\t\theaders.setAccept(ex.getSupportedMediaTypes());\n\t\tResponseError body= createResponseError(exa, HttpStatus.UNSUPPORTED_MEDIA_TYPE,HttpStatus.UNSUPPORTED_MEDIA_TYPE.toString(), \"ERROR_BUSINESS_EXCEPTION\");\n\t\treturn handleExceptionInternal(exa,body, headers, HttpStatus.UNSUPPORTED_MEDIA_TYPE, request);\n\t}",
"public void setMediaType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), MEDIATYPE, value);\r\n\t}",
"public MediaType(String type) {\n this(type, WILDCARD_TYPE, Collections.emptyMap());\n }",
"protected AbstractGenericHttpMessageConverter(MediaType... supportedMediaTypes)\n/* */ {\n/* 58 */ super(supportedMediaTypes);\n/* */ }",
"@JsonGetter(\"media\")\r\n public List<String> getMedia() {\r\n return media;\r\n }",
"public void removeAllMediaType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), MEDIATYPE);\r\n\t}",
"public interface VCloudDirectorMediaType {\n public final static String NS = \"http://www.vmware.com/vcloud/v1.5\";\n\n public final static String SESSION_XML = \"application/vnd.vmware.vcloud.session+xml\";\n\n public final static String ORGLIST_XML = \"application/vnd.vmware.vcloud.orgList+xml\";\n \n public final static String METADATA_XML = \"application/vnd.vmware.vcloud.metadata+xml\";\n \n public static final String METADATAENTRY_XML = \"TODO\"; // TODO\n \n public final static String ORG_XML = \"application/vnd.vmware.vcloud.org+xml\";\n\n public static final String ORG_NETWORK_XML = \"application/vnd.vmware.vcloud.orgNetwork+xml\";\n\n}",
"public org.apache.xmlbeans.XmlString xgetMediaType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(MEDIATYPE$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(MEDIATYPE$18);\n }\n return target;\n }\n }",
"public boolean isSetMediaType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(MEDIATYPE$18) != null;\n }\n }",
"public List<Preference<MediaType>> getAcceptedMediaTypes() {\n // Lazy initialization with double-check.\n List<Preference<MediaType>> a = this.acceptedMediaTypes;\n if (a == null) {\n synchronized (this) {\n a = this.acceptedMediaTypes;\n if (a == null) {\n this.acceptedMediaTypes = a = new ArrayList<Preference<MediaType>>();\n }\n }\n }\n return a;\n }",
"@ApiModelProperty(required = true, value = \"The mime type of the file/folder. If unknown, it defaults to application/binary.\")\n public String getMimeType() {\n return mimeType;\n }",
"private void setContentType(Operation operation) {\n operation.getResponses().values().forEach(response -> {\n Content content = response.getContent();\n if (content != null) {\n MediaType mediaType = content.remove(\"*/*\");\n if (mediaType != null) {\n content.addMediaType(\"application/json\", mediaType);\n }\n }\n });\n }",
"@ApiModelProperty(\n example = \"image/jpeg\",\n value = \"MimeType of the file (image/png, image/jpeg, application/pdf, etc..)\")\n /**\n * MimeType of the file (image/png, image/jpeg, application/pdf, etc..)\n *\n * @return mimeType String\n */\n public String getMimeType() {\n return mimeType;\n }",
"public static void addMediaType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, MEDIATYPE, value);\r\n\t}",
"public interface HttpMimeType {\n\n\t// Image\n \n public static final String APNG_IMAGE = \"image/apng\";\n \n public static final String BMP_IMAGE = \"image/bmp\";\n\n\tpublic static final String GIF_IMAGE = \"image/gif\";\n\t\n\tpublic static final String ICO_IMAGE = \"image/ico\";\n\n\tpublic static final String JPEG_IMAGE = \"image/jpeg\";\n\n\tpublic static final String JPG_IMAGE = \"image/jpg\";\n\n public static final String PNG_IMAGE = \"image/png\";\n\n\tpublic static final String SVG_IMAGE = \"image/svg+xml\";\n\n\tpublic static final String TIFF_IMAGE = \"image/tiff\";\n\t\n\tpublic static final String WEBP_IMAGE = \"image/webp\";\n\n\t// text formats\n\n\tpublic static final String TEXT_PLAIN = \"text/plain\";\n\n\tpublic static final String CSV = \"text/csv\";\n\n\tpublic static final String CSS = \"text/css\";\n\n\tpublic static final String HTML = \"text/html\";\n\n\tpublic static final String JAVASCRIPT = \"text/javascript\";\n\n\tpublic static final String RTF = \"text/rtf\";\n\n\tpublic static final String XML = \"text/xml\";\n\n\t// document formats\n\n\tpublic static final String JSON = \"application/json\";\n\n\tpublic static final String ATOM = \"application/atom+xml\";\n\n\tpublic static final String PDF = \"application/pdf\";\n\n\tpublic static final String POSTSCRIPT = \"application/postscript\";\n\n\tpublic static final String XLS = \"application/vnd.ms-excel\";\n\n\tpublic static final String XLSX = \"application/vnd.ms-excel\";\n\n\tpublic static final String PPT = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String PPTX = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String XPS = \"application/vnd.ms-xpsdocument\";\n\n\t// binary\n\n\tpublic static final String BINARY = \"application/octet-stream\";\n\n\t// music ones\n\n\tpublic static final String MP4_AUDIO = \"audio/mp4\";\n\n\tpublic static final String MP3_AUDIO = \"audio/mpeg\";\n\n\tpublic static final String OGG_VORBIS_AUDIO = \"audio/ogg\";\n\n\tpublic static final String OPUS_AUDIO = \"audio/opus\";\n\n\tpublic static final String VORBIS_AUDIO = \"audio/vorbis\";\n\n\tpublic static final String WEBM_AUDIO = \"audio/webm\";\n\n\t// video\n\n\tpublic static final String MPEG_VIDEO = \"video/mpeg\";\n\n\tpublic static final String MP4_VIDEO = \"video/mp4\";\n\n\tpublic static final String OGG_THEORA_VIDEO = \"video/ogg\";\n\n\tpublic static final String QUICKTIME_VIDEO = \"video/quicktime\";\n\n\tpublic static final String WEBM_VIDEO = \"video/webm\";\n\n\t// feeds\n\n\tpublic static final String RDF = \"application/rdf+xml\";\n\n\tpublic static final String RSS = \"application/rss+xml\";\n\n}",
"public RetrieveApiResourcesResponse typesUrl(String typesUrl) {\n this.typesUrl = typesUrl;\n return this;\n }",
"public static boolean validateResponseMediaType(final String responseMediaType) {\n\t\treturn responseMediaType == null || MediaType.APPLICATION_JSON.equals(responseMediaType) || MediaType.APPLICATION_XML.equals(responseMediaType);\n\t}",
"@ResponseStatus(HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n @ExceptionHandler(HttpMediaTypeNotSupportedException.class)\n public String handleHttpMediaTypeNotSupportedException(Exception e) {\n log.error(\"不支持当前媒体类型\", e);\n return new Msg().fail().addVal(Msg.msg, \"content_type_not_supported\").toJson();\n }",
"public ZserioType getResponseType()\n {\n return responseType;\n }",
"public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllMediaType_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), MEDIATYPE, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();",
"public Integer getOptContentType() { return(content_type); }",
"protected String getDefaultContentType() {\n return DEFAULT_CONTENT_TYPE;\n }",
"@JsonSetter(\"media\")\r\n public void setMedia(List<String> media) {\r\n this.media = media;\r\n }",
"public String[] getContentTypes() {\n return new String[] { \"application/x-www-form-urlencoded\" };\n }",
"public static void addMediaType(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, MEDIATYPE, value);\r\n\t}",
"public boolean supportsJsonType() {\n return false;\n }",
"@Ignore\n @Test\n public void testPostDisambiguatesOnContentType() throws ClientProtocolException, IOException\n {\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", xml, ContentType.APPLICATION_XML_TYPE), \"xml\");\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", json, ContentType.APPLICATION_JSON_TYPE), \"json\");\n verifyOkResult(new PostRequestResult(\"post/bycontenttype\", text, ContentType.TEXT_PLAIN_TYPE), \"text\");\n }",
"public ParameterContentNegotiationStrategy(Map<String, MediaType> mediaTypes) {\n\t\tsuper(mediaTypes);\n\t}",
"public interface BodyParser {\n\n play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength);\n\n /**\n * Specify the body parser to use for an Action method.\n */\n @Target({ElementType.TYPE, ElementType.METHOD})\n @Retention(RetentionPolicy.RUNTIME)\n public @interface Of {\n Class<? extends BodyParser> value();\n int maxLength() default -1;\n }\n\n /**\n * Guess the body content by checking the Content-Type header.\n */\n public static class AnyContent implements BodyParser { \n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.anyContent(maxLength);\n }\n }\n\n /**\n * Parse the body as Json if the Content-Type is text/json or application/json.\n */\n public static class Json implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.json(maxLength);\n }\n }\n\n /**\n * Parse the body as Json without checking the Content-Type.\n */\n public static class TolerantJson implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.tolerantJson(maxLength);\n }\n }\n\n /**\n * Parse the body as Xml if the Content-Type is application/xml.\n */\n public static class Xml implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.xml(maxLength);\n }\n }\n\n /**\n * Parse the body as Xml without checking the Content-Type.\n */\n public static class TolerantXml implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.tolerantXml(maxLength);\n }\n }\n\n /**\n * Parse the body as text if the Content-Type is text/plain.\n */\n public static class Text implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.text(maxLength);\n }\n }\n\n /**\n * Parse the body as text without checking the Content-Type.\n */\n public static class TolerantText implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.tolerantText(maxLength);\n }\n }\n\n /**\n * Store the body content in a RawBuffer.\n */\n public static class Raw implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.raw(maxLength);\n }\n }\n\n /**\n * Parse the body as form url encoded if the Content-Type is application/x-www-form-urlencoded.\n */\n public static class FormUrlEncoded implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.formUrlEncoded(maxLength);\n }\n }\n\n /**\n * Parse the body as form url encoded without checking the Content-Type.\n */\n public static class MultipartFormData implements BodyParser {\n public play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength) {\n return play.core.j.JavaParsers.multipartFormData(maxLength);\n }\n }\n\n}",
"public MediaFormat getMediaFormat() {\n return mediaFormat;\n }",
"public void setMediaType(java.lang.String mediaType)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MEDIATYPE$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MEDIATYPE$18);\n }\n target.setStringValue(mediaType);\n }\n }",
"public MediaType matchClosest(final MediaType defaultType, final MediaType... list) {\n\t\tif (list != null && list.length > 0) {\n\t\t\tfor (AcceptMediaTypeRange acceptType : this.acceptMediaTypes) {\n\t\t\t\tfor (MediaType type : list) {\n\t\t\t\t\tif (acceptType.isAccepted(type)) {\n\t\t\t\t\t\treturn type;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn defaultType;\n\t}",
"FHIRMediaType(final String mediaType, final ParserType parserType) {\n\t\t\tthis.mediaType = mediaType;\n\t\t\tthis.parserType = parserType;\n\t\t}",
"public final GetHTTP removeAcceptContentType() {\n properties.remove(ACCEPT_CONTENT_TYPE_PROPERTY);\n return this;\n }",
"public int getResponseTypeValue() {\n return responseType_;\n }",
"public java.lang.CharSequence getResponseType() {\n return ResponseType;\n }",
"public String getBodyContentType() {\n return mContentType;\n }",
"@Path(JaxRsActivator.OVERVIEW_ENDPOINT_PATH)\npublic interface ApiOverviewRestEndpoint {\n /**\n * A {@code String} constant representing json v1 \"{@value #MEDIA_TYPE_JSON_V1}\" media type .\n */\n String MEDIA_TYPE_JSON_V1 = \"application/vnd.overview-v1+json\";\n /**\n * A {@link MediaType} constant representing json v1 \"{@value #MEDIA_TYPE_JSON_V1}\" media type.\n */\n MediaType MEDIA_TYPE_JSON_V1_TYPE = new MediaType(\"application\", \"vnd.overview-v1+json\");\n\n /**\n * <pre>\n * http://127.0.0.1:8180/auth-microservice/auth-api/overview/endpoints\n * curl -v -H \"Accept: application/vnd.overview-v1+json\" -H \"Content-Type: application/vnd.overview-v1+json\" -H \"X-BOMC-REQUEST-ID: SET-BY-CURL-123\" -H \"X-BOMC-AUTHORIZATION: BOMC_USER\" -X GET \"127.0.0.1:8180/auth-microservice/auth-api/overview/endpoints\"\n * </pre>\n * @return JSON response for all available endpoints.\n * @description List all available endpoints. responseType javax.json.JsonObject\n * @responseMessage 200 A Response object that wraps the javax.json.JsonObject.\n * @responseMessage 400 Invalid Request.\n * @responseMessage 401 Unauthorized. API key does not need access privileges.\n * @responseMessage 404 Endpoint not found.\n */\n @GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);\n}",
"public DocumentLifecycleWorkflowRequest setContentTypeJson() {\n\t\tthis.headerContentType = HttpRequestConnector.HTTP_CONTENT_TYPE_JSON;\n\t\treturn this;\n\t}",
"@Override\n public String getContentType() {\n return null;\n }",
"public java.lang.CharSequence getResponseType() {\n return ResponseType;\n }",
"public String getContentType() {\n return this.response.getContentType();\n }",
"public int getResponseTypeValue() {\n return responseType_;\n }",
"@GET\n @Path(\"additionalTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAdditionalTypes() {\n return typesJSONResponse(_types.getAdditionalTypes());\n }",
"public KnownMediaType normalize() {\n KnownMediaType kmt = this;\n while (kmt.getAliasOf() != null) {\n kmt = kmt.getAliasOf();\n }\n return kmt;\n }",
"public void setResponseType(java.lang.CharSequence value) {\n this.ResponseType = value;\n }",
"@GET\n @Path(\"simpleTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getSimpleTypes() {\n return typesJSONResponse(_types.getSimpleTypes());\n }"
] | [
"0.6890652",
"0.6862427",
"0.67699605",
"0.67463803",
"0.6710083",
"0.66470265",
"0.66155976",
"0.64725596",
"0.6320081",
"0.63026935",
"0.62244403",
"0.61027515",
"0.6096302",
"0.6062074",
"0.60594934",
"0.59306395",
"0.5911687",
"0.58544683",
"0.5849513",
"0.5807275",
"0.5778012",
"0.5679644",
"0.5667373",
"0.5623102",
"0.5610669",
"0.5608414",
"0.5602018",
"0.5577585",
"0.55689067",
"0.5562443",
"0.5562309",
"0.55582154",
"0.5547416",
"0.55421746",
"0.55204785",
"0.5495031",
"0.54785746",
"0.5429706",
"0.5410475",
"0.5377151",
"0.5364592",
"0.5317643",
"0.530827",
"0.52839756",
"0.52758706",
"0.5251815",
"0.5248325",
"0.5234839",
"0.5228311",
"0.52021337",
"0.51514775",
"0.5135569",
"0.51011086",
"0.5101036",
"0.50996524",
"0.5098371",
"0.50841063",
"0.50798374",
"0.50735295",
"0.5070345",
"0.5069623",
"0.504455",
"0.50227904",
"0.5022023",
"0.50214696",
"0.5017084",
"0.5000872",
"0.4999224",
"0.4998715",
"0.49914435",
"0.49719608",
"0.4969806",
"0.49534383",
"0.49254853",
"0.49247062",
"0.4920901",
"0.49020895",
"0.4875561",
"0.48741582",
"0.48724133",
"0.48674893",
"0.48579958",
"0.4853266",
"0.48518887",
"0.48475233",
"0.48254418",
"0.48196626",
"0.4819403",
"0.4808786",
"0.48045546",
"0.48021492",
"0.4792462",
"0.4789198",
"0.4782184",
"0.4774642",
"0.47685847",
"0.47679415",
"0.47537348",
"0.4743492",
"0.4738482"
] | 0.57811064 | 20 |
To better achieve consistency and simplicity, the API definition SHOULD include an OPTIONAL schemas property in the root section. The schemas property specifies collections of schemas that could be used anywhere in the API definition. The value of the schemas property is an array of maps; in each map, the keys are the schema name, and the values are schema definitions. The schema definitions MAY be included inline or by using the RAML !include userdefined data type. | List<GlobalSchema> schemas(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Map<String, String>> getSchemas() {\n\t\treturn null;\r\n\t}",
"public int getMetaSchemas();",
"public boolean schemasEnabled() {\n return schemasEnabled;\n }",
"@ApiModelProperty(value = \"A URI to a JSON-Schema file that defines additional attributes and relationships\")\n\n\n public String getSchemaLocation() {\n return schemaLocation;\n }",
"@ApiModelProperty(value = \"A URI to a JSON-Schema file that defines additional attributes and relationships\")\n\n\n public String getSchemaLocation() {\n return schemaLocation;\n }",
"AstroSchema getSchema();",
"public Collection<TapSchema> findAllSchemas();",
"SchemaDefinition createSchemaDefinition();",
"S getSchema();",
"public Schema getSchema();",
"public List<Schema> getAnyOf() {\n\t\treturn anyOf;\n\t}",
"public abstract String getSchemaURI();",
"public TypeDescription getSchema() {\n return schema;\n }",
"public Iterator<SchemaDefinition> getSchemas(){\n return(schemaDefs.values().iterator());\n }",
"public MetaSchema getMetaSchema(int iSchema);",
"Schema createSchema();",
"public String getSchemaLocation();",
"void schema(String schema);",
"void schema(String schema);",
"public SchemaInfo readServerSchema() {\n String path = \"/schema\";\n Span span = this.tracer.buildSpan(\"Client.Schema\").start();\n try {\n try (CloseableHttpResponse response = clientExecute(\"GET\", path, null, null, \"Error while reading schema\",\n ReturnClientResponse.ERROR_CHECKED_RESPONSE, false)) {\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n try (InputStream src = entity.getContent()) {\n return SchemaInfo.fromInputStream(src);\n }\n }\n throw new PilosaException(\"Server returned empty response\");\n }\n } catch (IOException ex) {\n throw new PilosaException(\"Error while reading response\", ex);\n } finally {\n span.finish();\n }\n }",
"public List<Schema> getOneOf() {\n\t\treturn oneOf;\n\t}",
"public TapSchema findOneSchema(String schemaName);",
"@Override\n public void setXMLSchemas(Object[] schemas) throws XMLPlatformException {\n if ((null == schemas) || (schemas.length == 0)) {\n return;\n }\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, schemas);\n } catch (IllegalArgumentException e) {\n // The attribute isn't supported so do nothing\n } catch (Exception e) {\n XMLPlatformException.xmlPlatformErrorResolvingXMLSchemas(schemas, e);\n }\n }",
"private ArrayList<ResultPair> InitializeSchemas()\n {\n\t ArrayList<ResultPair> schemas = new ArrayList<ResultPair>();\n\t schemas.add(new ResultPair(\"z39.50s\", true));\n\t schemas.add(new ResultPair(\"z39.50r\", true));\n\t schemas.add(new ResultPair(\"xmpp\", true));\n\t schemas.add(new ResultPair(\"xmlrpc.beeps\", true));\n\t schemas.add(new ResultPair(\"xmlrpc.beep\", true));\n\t schemas.add(new ResultPair(\"xcon-userid\", true));\n\t schemas.add(new ResultPair(\"xcon\", true));\n\t schemas.add(new ResultPair(\"wss\", true));\n\t schemas.add(new ResultPair(\"ws\", true));\n\t schemas.add(new ResultPair(\"vemmi\", true));\n\t schemas.add(new ResultPair(\"urn\", true));\n\t schemas.add(new ResultPair(\"tv\", true));\n\t schemas.add(new ResultPair(\"turns\", true));\n\t schemas.add(new ResultPair(\"turn\", true));\n\t schemas.add(new ResultPair(\"tn3270\", true));\n\t schemas.add(new ResultPair(\"tip\", true));\n\t schemas.add(new ResultPair(\"thismessage\", true));\n\t schemas.add(new ResultPair(\"tftp\", true));\n\t schemas.add(new ResultPair(\"telnet\", true));\n\t schemas.add(new ResultPair(\"tel\", true));\n\t schemas.add(new ResultPair(\"tag\", true));\n\t schemas.add(new ResultPair(\"stuns\", true));\n\t schemas.add(new ResultPair(\"stun\", true));\n\t schemas.add(new ResultPair(\"soap.beeps\", true));\n\t schemas.add(new ResultPair(\"soap.beep\", true));\n\t schemas.add(new ResultPair(\"snmp\", true));\n\t schemas.add(new ResultPair(\"sms\", true));\n\t schemas.add(new ResultPair(\"sips\", true));\n\t schemas.add(new ResultPair(\"sip\", true));\n\t schemas.add(new ResultPair(\"sieve\", true));\n\t schemas.add(new ResultPair(\"shttp\", true));\n\t schemas.add(new ResultPair(\"session\", true));\n\t schemas.add(new ResultPair(\"service\", true));\n\t schemas.add(new ResultPair(\"rtspu\", true));\n\t schemas.add(new ResultPair(\"rtsps\", true));\n\t schemas.add(new ResultPair(\"rtsp\", true));\n\t schemas.add(new ResultPair(\"reload\", true));\n\t schemas.add(new ResultPair(\"pres\", true));\n\t schemas.add(new ResultPair(\"pop\", true));\n\t schemas.add(new ResultPair(\"pkcs11\", true));\n\t schemas.add(new ResultPair(\"opaquelocktoken\", true));\n\t schemas.add(new ResultPair(\"nntp\", true));\n\t schemas.add(new ResultPair(\"nih\", true));\n\t schemas.add(new ResultPair(\"ni\", true));\n\t schemas.add(new ResultPair(\"nfs\", true));\n\t schemas.add(new ResultPair(\"news\", true));\n\t schemas.add(new ResultPair(\"mupdate\", true));\n\t schemas.add(new ResultPair(\"mtqp\", true));\n\t schemas.add(new ResultPair(\"msrps\", true));\n\t schemas.add(new ResultPair(\"msrp\", true));\n\t schemas.add(new ResultPair(\"mid\", true));\n\t schemas.add(new ResultPair(\"mailto\", true));\n\t schemas.add(new ResultPair(\"ldap\", true));\n\t schemas.add(new ResultPair(\"jabber\", true));\n\t schemas.add(new ResultPair(\"iris.xpcs\", true));\n\t schemas.add(new ResultPair(\"iris.xpc\", true));\n\t schemas.add(new ResultPair(\"iris.lwz\", true));\n\t schemas.add(new ResultPair(\"iris.beep\", true));\n\t schemas.add(new ResultPair(\"iris\", true));\n\t schemas.add(new ResultPair(\"ipps\", true));\n\t schemas.add(new ResultPair(\"ipp\", true));\n\t schemas.add(new ResultPair(\"info\", true));\n\t schemas.add(new ResultPair(\"imap\", true));\n\t schemas.add(new ResultPair(\"im\", true));\n\t schemas.add(new ResultPair(\"icap\", true));\n\t schemas.add(new ResultPair(\"iax\", true));\n\t schemas.add(new ResultPair(\"https\", true));\n\t schemas.add(new ResultPair(\"http\", true));\n\t schemas.add(new ResultPair(\"h323\", true));\n\t schemas.add(new ResultPair(\"gopher\", true));\n\t schemas.add(new ResultPair(\"go\", true));\n\t schemas.add(new ResultPair(\"geo\", true));\n\t schemas.add(new ResultPair(\"ftp\", true));\n\t schemas.add(new ResultPair(\"file\", true));\n\t schemas.add(new ResultPair(\"example\", true));\n\t schemas.add(new ResultPair(\"dns\", true));\n\t schemas.add(new ResultPair(\"dict\", true));\n\t schemas.add(new ResultPair(\"dav\", true));\n\t schemas.add(new ResultPair(\"data\", true));\n\t schemas.add(new ResultPair(\"crid\", true));\n\t schemas.add(new ResultPair(\"coaps\", true));\n\t schemas.add(new ResultPair(\"coap\", true));\n\t schemas.add(new ResultPair(\"cid\", true));\n\t schemas.add(new ResultPair(\"cap\", true));\n\t schemas.add(new ResultPair(\"acct\", true));\n\t schemas.add(new ResultPair(\"acap\", true));\n\t schemas.add(new ResultPair(\"about\", true));\n\t schemas.add(new ResultPair(\"aaas\", true));\n\t schemas.add(new ResultPair(\"aaa\", true));\n\t return schemas;\n }",
"public SchemaInfo getSchema () throws Exception;",
"@ApiModelProperty(value = \"The schema describing each field present on the issue.\")\n public Map<String, JsonTypeBean> getSchema() {\n return schema;\n }",
"boolean requiresConfigSchema();",
"public static Iterable<WellKnownSchema> wellKnownSchemas() {\r\n\t\treturn new Iterable<PureLibSettings.WellKnownSchema>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Iterator<WellKnownSchema> iterator() {\r\n\t\t\t\treturn new Iterator<PureLibSettings.WellKnownSchema>() {\r\n\t\t\t\t\tint\tindex = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override public boolean hasNext() {return index < schemasList.length;}\r\n\t\t\t\t\t@Override public WellKnownSchema next() {return schemasList[index++];}\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public String getSchema()\n {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"@Override\r\n\t\tpublic TypeInfo getSchemaTypeInfo()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public interface Schema {\n /**\n * Get the list of {@link AddressSpaceType} instances.\n */\n List<AddressSpaceType> getAddressSpaceTypes();\n}",
"public List<String> getSchema() {\n\t\treturn schema;\n\t}",
"String getRemoteSchema();",
"public void setSchema(Schema schema)\n {\n this.schema = schema;\n }",
"@Override\n public AbstractSchema getSchema(final String name) {\n if (name == null) {\n return getDefaultSchema();\n }\n\n return schemas.get(name);\n }",
"public SchemaDefinition isSchema(String name){\n return((SchemaDefinition)schemaDefs.get(getDefName(name)));\n }",
"public SchemaInfo getAssociatedSchema() {\n return lookupSchema(getTargetNamespace());\n }",
"public void setResponseSchemaType(SchemaType responseSchemaType)\n {\n this.responseSchemaType = responseSchemaType;\n }",
"public static Map<String, Object> getSchema (Request req, Response res) {\n return GTFSGraphQL.getGraphQl().execute(IntrospectionQuery.INTROSPECTION_QUERY).toSpecification();\n }",
"public String getSchema() {\n return schema;\n }",
"public String getSchema() {\n return schema;\n }",
"String handlerSchema();",
"public void setSchema(String schema) {\n this.schema = schema;\n }",
"@Test\n void docs() {\n Schema schema = new Schema.Parser().parse(SCHEMA_WITH_DOC_TAGS);\n assertEquals(\"This is not a world record.\", schema.getDoc());\n assertEquals(\"Inner Fixed\", schema.getField(\"inner_fixed\").doc());\n assertEquals(\"Very Inner Fixed\", schema.getField(\"inner_fixed\").schema().getDoc());\n assertEquals(\"Inner String\", schema.getField(\"inner_string\").doc());\n assertEquals(\"Inner Enum\", schema.getField(\"inner_enum\").doc());\n assertEquals(\"Very Inner Enum\", schema.getField(\"inner_enum\").schema().getDoc());\n assertEquals(\"Inner Union\", schema.getField(\"inner_union\").doc());\n }",
"private static Schema createSchema(List<File> schemas)\r\n\t\t\tthrows ParserConfigurationException, SAXException, IOException {\r\n\t\tSchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\r\n\t\tSchemaResourceResolver resourceResolver = new SchemaResourceResolver();\r\n\t\tsf.setResourceResolver(resourceResolver);\r\n\r\n\t\tSource[] sources = new Source[schemas.size()];\r\n\r\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n\t\tdocFactory.setValidating(false);\r\n\t\tdocFactory.setNamespaceAware(true);\r\n\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n\r\n\t\tfor (int i = 0; i < schemas.size(); i++) {\r\n\t\t\torg.w3c.dom.Document doc = docBuilder.parse(schemas.get(i));\r\n\t\t\tDOMSource stream = new DOMSource(doc, schemas.get(i).getAbsolutePath());\r\n\t\t\tsources[i] = stream;\r\n\t\t}\r\n\r\n\t\treturn sf.newSchema(sources);\r\n\t}",
"public boolean isSetRollup_schemas() {\n return this.rollup_schemas != null;\n }",
"@Deprecated\npublic interface SchemaRegistryService {\n /**\n * This method should be where all Custom schemas are registered.\n */\n void register();\n}",
"RecordDataSchema getActionResponseSchema();",
"SchemaComponentType createSchemaComponentType();",
"@Test\n public void testFullIntrospectionResponse() throws IOException {\n String jsonResponse = getResource(\"responses/magento-schema-2.3.4.min.json\");\n\n // Check that the reference response can be parsed and fields are properly set\n Query query = QueryDeserializer.getGson().fromJson(jsonResponse, Query.class);\n __Schema schema = query.__getSchema();\n Assert.assertEquals(256, schema.getTypes().size());\n Assert.assertEquals(3, schema.getDirectives().size());\n }",
"@java.lang.Override\n public boolean hasAvro() {\n return schemaCase_ == 1;\n }",
"@Override\n\tpublic void buildSchema() {\n\t\tchild.buildSchema();\n\t\tschema = child.schema;\n\t}",
"public SchemaType getResponseSchemaType()\n {\n return responseSchemaType;\n }",
"public Schema getSchema() {\n return schema;\n }",
"@java.lang.Override\n public boolean hasAvro() {\n return schemaCase_ == 1;\n }",
"@Override\r\n\tpublic String geSchemaInfoWithPath(Context context, String strSchemaName, String strExportPath) throws Exception {\n\t\treturn null;\r\n\t}",
"public List<Schema> getAllOf() {\n\t\treturn allOf;\n\t}",
"public java.lang.String getSchema() {\r\n return schema;\r\n }",
"public interface WellKnownSchema {\r\n\t\t/**\r\n\t\t * <p>Get schema name, that is supported with the given service</p>\r\n\t\t * @return schema name. Can't be null or empty\r\n\t\t */\r\n\t\tString getSchemaName();\r\n\t\t\r\n\t\t/**\r\n\t\t * <p>Get schema description for the given SPI service</p>\r\n\t\t * @return schema description. Can be null or empty\r\n\t\t */\r\n\t\tString getDescription();\r\n\t\t\r\n\t\t/**\r\n\t\t * <p>Get factory class for the given SPI service</p>\r\n\t\t * @return factory class for schema. Can't be null\r\n\t\t */\r\n\t\tClass<?> getFactoryClass();\r\n\t\t\r\n\t\t/**\r\n\t\t * <p>Does the class supports {@linkplain SpiService} interface</p> \r\n\t\t * @return true if yes\r\n\t\t */\r\n\t\tboolean supportsSpiService();\r\n\t\t\r\n\t\t/**\r\n\t\t * <p>Create service instance by it's URI.</p>\r\n\t\t * @param <T> service instance to create\r\n\t\t * @param description uri to pass to service factory\r\n\t\t * @return instance created\r\n\t\t * @throws EnvironmentException on creation errors\r\n\t\t */\r\n\t\t<T> T newInstance(URI description) throws EnvironmentException;\r\n\r\n\t\t/**\r\n\t\t * <p>Does the service supports given URI</p>\r\n\t\t * @param uri URI to test. Can't be null\r\n\t\t * @return true if can, false otherwise\r\n\t\t * @throws EnvironmentException on checking errors\r\n\t\t */\r\n\t\tboolean canServe(URI uri) throws EnvironmentException;\r\n\t}",
"@Override\n\tpublic ResultSet getSchemas(String catalog, String schemaPattern)\n\t\t\tthrows SQLException {\n\t\treturn null;\n\t}",
"SchemaBuilder withResourceResolver(LSResourceResolver resourceResolver);",
"public boolean canUseSchema(FormatSchema schema)\n/* */ {\n/* 445 */ if (schema == null) {\n/* 446 */ return false;\n/* */ }\n/* 448 */ String ourFormat = getFormatName();\n/* 449 */ return (ourFormat != null) && (ourFormat.equals(schema.getSchemaType()));\n/* */ }",
"public List<SchemaInfo> getImportedSchemas() {\n Set<String> importedNamespaces = getImportedNamespaces();\n importedNamespaces.remove(getTargetNamespace()); //the \"associated\" schema is either inlined or included, but not imported.\n List<SchemaInfo> schemas = new ArrayList<SchemaInfo>();\n for (String ns : importedNamespaces) {\n SchemaInfo schema = lookupSchema(ns);\n if (schema != null) {\n schemas.add(schema);\n }\n }\n return schemas;\n }",
"public Schema getSchema() {\n return schema;\n }",
"Map<String, Object> swagger();",
"private String getSchema(Document doc) {\n\t\tElement rootElement = doc.getRootElement();\n\t\treturn rootElement.getAttributeValue(\"schemaLocation\", xsiNamespace).replace(\"http://www.github.com/biosemantics\", \"\").trim();\n\t}",
"public SchemaDef getSourceSchema();",
"public JsonSchemaMappingLookup() {\n // initialize all mappings from URLs to the respective schema\n businessObjectToJsonSchema.put(\"/rules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/bnrules\", DCC_VALIDATION_RULE_JSON_CLASSPATH);\n businessObjectToJsonSchema.put(\"/cclrules\", CCL_JSON_SCHEMA);\n }",
"public Set getXmlSchemas() {\n\t\tSet theSchemas = new HashSet();\n\t\ttheSchemas.add(\"registry-1.0.xsd\");\n\t\treturn theSchemas;\n\t}",
"public Schema getSchema() {\n\t\treturn _schema;\n\t}",
"void addSchema(SchemaDefinition sd) throws ResultException, DmcValueException {\n currentSchema = sd;\n\n if (checkAndAdd(sd.getObjectName(),sd,schemaDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(sd.getObjectName(),sd,schemaDefs,\"schema names\"));\n currentSchema = null;\n \tthrow(ex);\n }\n\n if (checkAndAddDOT(sd.getDotName(),sd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(sd.getObjectName(),sd,globallyUniqueMAP,\"definition names\"));\n currentSchema = null;\n \tthrow(ex);\n }\n \n if (sd.getObjectName().getNameString().length() > longestSchemaName)\n longestSchemaName = sd.getObjectName().getNameString().length();\n\n currentSchema = null;\n \n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addSchema(sd);\n \t}\n }\n\n }",
"public Schema getSchema()\n {\n return schema;\n }",
"public void setSchema(java.lang.String schema) {\r\n this.schema = schema;\r\n }",
"protected SchemaInfo lookupSchema(String namespace) {\n if (\"\".equals(namespace)) {\n namespace = null;\n }\n\n return this.jaxbContext.getSchemas().get(namespace);\n }",
"public void getAbsoluteSchema( final ObjectCallback<JSONObject> callback ){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n\n \n\n\n \n \n invokeStaticMethod(\"getAbsoluteSchema\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n callback.onSuccess(response);\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }",
"Set<URI> getKeyedSchemaUris();",
"public MetaSchema getMetaSchema(String sName);",
"String createParameterJsonSchema();",
"public final void schema() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:219:2: ( SCHEMA )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:219:4: SCHEMA\r\n {\r\n match(input,SCHEMA,FOLLOW_SCHEMA_in_schema1347); \r\n putSchema();\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"void setSchema(S schema);",
"private void adjustAllSchemaReferences() throws Exception {\n File[] schemas = new File(new File(getRootDir(), ToolboxFoldersFileConstants.WEB_INF), ToolboxFoldersFileConstants.SCHEMAS).listFiles(new FileFilter() {\n\n public boolean accept(File file) {\n return file.getName().endsWith(\".xsd\");\n }\n });\n for (int index = 0; index < schemas.length; adjustSchemaReferences(schemas[index++]));\n }",
"public String getObject_schema() {\n return object_schema;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"@Override\n public Schema getSchema() {\n return schema$;\n }",
"SchemaManager getSchemaManager();",
"public JSONArray getSchemasForConnection(ConnectionModel connectionModel) throws SQLException {\n\t\tJSONArray jsonArray = new JSONArray();\n\t\ttry (Connection connection = getConnection(connectionModel, false);\n\t\t\t\tStatement statement = connection.createStatement()) {\n\t\t\tDatabaseMetaData databaseMetaData = connection.getMetaData();\n\t\t\tResultSet schemas = databaseMetaData.getCatalogs();\n\t\t\twhile (schemas.next()) {\n\t\t\t\tString tableSchema = schemas.getString(1); // \"TABLE_SCHEM\"\n\t\t\t\tjsonArray.add(tableSchema);\n\t\t\t}\n\t\t}\n\n\t\treturn jsonArray;\n\t}",
"public Schema getSchema() {\n return mSchema;\n }",
"public void loadSchema (String... schemas)\n throws IOException, BlinkException\n {\n synchronized (monitor)\n {\n for (String f : schemas)\n SchemaReader.read (f, schema);\n }\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema() {\n return null; // cause a plugin exception to get thrown\n }",
"@Override\n protected SourceXmlSchemaHelper setUpSchema() {\n return null; // cause a plugin exception to get thrown\n }",
"public void setSchemaLocation(String schemaLocation) {\n\t\t\r\n\t}",
"public void checkSchema(ResourceSchema schema) throws IOException\n {\n }",
"public interface SimpleRestriction extends SchemaComponent {\n public static final String ENUMERATION_PROPERTY = \"enumerations\";\n public static final String PATTERN_PROPERTY = \"patterns\";\n public static final String MIN_EXCLUSIVE_PROPERTY = \"minExclusives\";\n public static final String MIN_LENGTH_PROPERTY = \"minLengths\";\n public static final String MAX_LENGTH_PROPERTY = \"maxLengths\";\n public static final String FRACTION_DIGITS_PROPERTY = \"fractionDigits\";\n public static final String WHITESPACE_PROPERTY = \"whitespaces\";\n public static final String MAX_INCLUSIVE_PROPERTY = \"maxInclusives\";\n public static final String TOTAL_DIGITS_PROPERTY = \"totalDigits\";\n public static final String LENGTH_PROPERTY = \"lengths\";\n public static final String MIN_INCLUSIVE_PROPERTY = \"minInclusives\";\n public static final String MAX_EXCLUSIVE_PROPERTY = \"maxExclusives\";\n public static final String BASE_PROPERTY = \"base\";\n public static final String INLINETYPE_PROPERTY = \"inlinetype\";\n \n Collection<TotalDigits> getTotalDigits();\n void addTotalDigit(TotalDigits td);\n void removeTotalDigit(TotalDigits td);\n \n Collection<MinExclusive> getMinExclusives();\n void addMinExclusive(MinExclusive me);\n void removeMinExclusive(MinExclusive me);\n \n Collection<MinInclusive> getMinInclusives();\n void addMinInclusive(MinInclusive me);\n void removeMinInclusive(MinInclusive me);\n \n Collection<MinLength> getMinLengths();\n void addMinLength(MinLength ml);\n void removeMinLength(MinLength ml);\n \n Collection<MaxLength> getMaxLengths();\n void addMaxLength(MaxLength ml);\n void removeMaxLength(MaxLength ml);\n \n Collection<Pattern> getPatterns();\n void addPattern(Pattern p);\n void removePattern(Pattern p);\n \n Collection<MaxExclusive> getMaxExclusives();\n void addMaxExclusive(MaxExclusive me);\n void removeMaxExclusive(MaxExclusive me);\n \n Collection<MaxInclusive> getMaxInclusives();\n void addMaxInclusive(MaxInclusive me);\n void removeMaxInclusive(MaxInclusive me);\n \n Collection<Length> getLengths();\n void addLength(Length me);\n void removeLength(Length me);\n \n Collection<Whitespace> getWhitespaces();\n void addWhitespace(Whitespace me);\n void removeWhitespace(Whitespace me);\n \n Collection<FractionDigits> getFractionDigits();\n void addFractionDigits(FractionDigits fd);\n void removeFractionDigits(FractionDigits fd);\n \n Collection<Enumeration> getEnumerations();\n void addEnumeration(Enumeration fd);\n void removeEnumeration(Enumeration fd);\n \n LocalSimpleType getInlineType();\n void setInlineType(LocalSimpleType aSimpleType);\n \n}",
"public void add(AXSDSchema value)throws AException\n {\n if(value==null)throw new AException(\"value=null\");\n if(value.getNamespaceURI().isEmpty())throw new AException(\"NamespaceURI of value is empty\");\n for(int q=0;q<PGetCount();q++)\n {\n AXSDSchema schema=(AXSDSchema)PGetPtr(q);\n int cmp=schema.getNamespaceURI().compareTo(value.getNamespaceURI());\n if(cmp<0)continue;\n if(cmp==0)\n {\n sendWarning(\"add\",\"Schema with NamespaceURI \\\"\"+schema.getNamespaceURI()+\"\\\" alredy exists\",q);\n return;\n }\n PInsert(value,q);\n return;\n }\n PAdd(value);\n }",
"public com.google.cloud.aiplatform.v1.MetadataSchema getMetadataSchema(\n com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMetadataSchemaMethod(), getCallOptions(), request);\n }",
"public Schema getOutputSchema(Schema inputSchema) {\n\n\t\tList<Schema.Field> fields = new ArrayList<>();\n\t\t\n\t\tfields.add(Schema.Field.of(\"ante_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"ante_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"cons_token\", Schema.of(Schema.Type.STRING)));\n\t\tfields.add(Schema.Field.of(\"cons_tag\", Schema.of(Schema.Type.STRING)));\n\t\t\n\t\tfields.add(Schema.Field.of(\"toc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\tfields.add(Schema.Field.of(\"doc_score\", Schema.of(Schema.Type.DOUBLE)));\n\t\t\n\t\treturn Schema.recordOf(inputSchema.getRecordName() + \".related\", fields);\n\n\t}",
"public void loadSchema (Reader... schemas)\n throws IOException, BlinkException\n {\n synchronized (monitor)\n {\n for (Reader rd : schemas)\n SchemaReader.read (rd, \"-\", schema);\n }\n }"
] | [
"0.6443458",
"0.611455",
"0.603935",
"0.5985991",
"0.5985991",
"0.58933395",
"0.58731544",
"0.57792544",
"0.5710034",
"0.56645936",
"0.56503505",
"0.5523187",
"0.55210483",
"0.55068946",
"0.54586655",
"0.5424672",
"0.54220563",
"0.5405055",
"0.5405055",
"0.5393878",
"0.5384664",
"0.5355024",
"0.5317617",
"0.5305935",
"0.53008056",
"0.52909863",
"0.52773803",
"0.5268304",
"0.52596134",
"0.5248524",
"0.5248505",
"0.52395576",
"0.5235354",
"0.52151453",
"0.52105546",
"0.519401",
"0.51796955",
"0.517942",
"0.5167922",
"0.51657593",
"0.5130166",
"0.5130166",
"0.5126549",
"0.51178634",
"0.5117504",
"0.5116717",
"0.5099628",
"0.50949365",
"0.5093547",
"0.5079977",
"0.50789684",
"0.50779754",
"0.5067793",
"0.5067616",
"0.5059903",
"0.50594074",
"0.50545543",
"0.50430286",
"0.5035407",
"0.50138503",
"0.50047356",
"0.4992275",
"0.4990592",
"0.49765173",
"0.496968",
"0.4968148",
"0.49423116",
"0.49359915",
"0.4929272",
"0.49259514",
"0.49218297",
"0.49214733",
"0.49179995",
"0.49166363",
"0.4910417",
"0.4907931",
"0.49038315",
"0.49016914",
"0.48772863",
"0.48766714",
"0.48676443",
"0.48648396",
"0.4857814",
"0.48528314",
"0.48528314",
"0.48528314",
"0.48528314",
"0.48453343",
"0.48451582",
"0.48397243",
"0.4823119",
"0.48171657",
"0.48171657",
"0.48164463",
"0.48052922",
"0.47844315",
"0.47839758",
"0.47819564",
"0.47817817",
"0.47722718"
] | 0.6316011 | 1 |
Declarations of traits used in this API | List<Trait> traits(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Trait> getTraitsOfPrey();",
"public interface TestType {\n /**\n * Marker interface for tests that use the Enterprise data set for use with {@link org.junit.experimental.categories.Category}\n */\n interface DataSetEnterprise {}\n\n /**\n * Marker interface for tests that use the Lite data set for use with {@link org.junit.experimental.categories.Category}\n */\n interface DataSetLite {}\n\n /**\n * Marker interface for tests that use the Premium data set for use with {@link org.junit.experimental.categories.Category}\n */\n interface DataSetPremium {}\n\n /**\n * Marker interface for tests that take a long time\n */\n interface Lengthy {}\n\n /**\n * Marker Interface for API Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeApi {}\n\n /**\n * Marker Interface for HTTP Header Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeHttpHeader {}\n\n /**\n * Marker Interface for Memory Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeMemory {}\n\n /**\n * Marker Interface for Metadata Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeMetadata {}\n\n /**\n * Marker Interface for Performance Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypePerformance {}\n \n /**\n * Marker Interface for Unit Tests for use with {@link org.junit.experimental.categories.Category}\n */\n interface TypeUnit{}\n}",
"public interface Tweetable {\n /*\n Typically in an interface you put lists of methods with no code in them. They don't\n usually have constructors. How they work: like saying \"I promise to have these methods\". If\n I want to implement this interface I must have these methods. Like a checklist that\n classes need to check off. How to use: like a super class. Instead of 'extends' we use\n 'implements'\n */\n public String getText();\n public Date getDate();\n\n}",
"public Retrait() {\n\t\tsuper();\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic Set<Class<? extends CoreAnnotation>> requires() {\n\t\tArraySet<Class<? extends CoreAnnotation<?>>> set = new ArraySet<Class<? extends CoreAnnotation<?>>>();\n\t\tif (heat != null && Evaluators.contains(heat)) {\n\t\t\tset.add(MusicalHeatScoreAnnotation.class);\n\t\t\tset.add(MusicalHeatAnnotation.class);\n\t\t}\n\t\tif (musicentity != null && Evaluators.contains(musicentity)) {\n\t\t\tset.add(MusicalEntityAnnotation.class);\n\t\t}\n\t\treturn Collections.unmodifiableSet(set);\n\t}",
"public interface Understandability extends Usability {\n}",
"public interface CanKnowItsExactBuildingTypeTrait {\n /**\n * Is building boolean.\n *\n * @return the boolean\n */\n default boolean isBuilding() {\n return this instanceof Building;\n }\n\n /**\n * Is cannon boolean.\n *\n * @return the boolean\n */\n default boolean isCannon() {\n return this instanceof Cannon;\n }\n\n /**\n * Is inferno tower boolean.\n *\n * @return the boolean\n */\n default boolean isInfernoTower() {\n return this instanceof InfernoTower;\n }\n}",
"public Collection<ITrait<T>> getTraitsInDimension() {\n return this.traitMap.values();\n }",
"public interface HasScrolling extends HasHorizontalScrolling,\r\n HasVerticalScrolling, HasScrollHandlers, IsWidget {\r\n\r\n}",
"private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}",
"public interface Meta {\r\n\r\n\t/**\r\n\t * Lists method names exposed by endpoint.\r\n\t *\r\n\t * @return method name list\r\n\t */\r\n\t@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();\r\n\r\n\t/**\r\n\t * Provides help/usage information for a method.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return help/usage information for a method\r\n\t */\r\n\t@XRMethod(value = \"system.help\", help = \"Returns usage information for a method\")\r\n\tString help(String methodName);\r\n\r\n\t// @XRMethod(\"system.multicall\")\r\n\t// List multicall(List calls);\r\n\r\n\t/**\r\n\t * Checks if method is supported by endpoint or not.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return true if method is supported by endpoint, false otherwise\r\n\t */\r\n\t@XRMethod(value = \"system.supports\", help = \"Returns true if method is supported, false otherwise\")\r\n\tboolean supports(String methodName);\r\n}",
"public interface Squad extends Unit {\n List<Individual> getMembers();\n List<Trait> getSquadOffensiveTraits();\n List<Trait> getSquadDefensiveTraits();\n}",
"public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }",
"public interface C21597a {\n }",
"public interface Enemy {\n /**\n * Prints Enemy name and health\n */\n void printInfo();\n\n /**\n * Returns an Enemy's current health\n *\n * @return health : Float\n */\n Float getHealth();\n\n /**\n * Decreases an Enemy's health by the amount of damage taken\n */\n void decreaseHealth(Float damage);\n\n /**\n * Checks if an Enemy is a Boss\n *\n * @return Boolean\n */\n Boolean isBoss();\n\n /**\n * Checks if an Enemy died and returns the result\n *\n * @return Boolean\n */\n Boolean isDead();\n\n /**\n * Returns the damage an Enemy has inflicted\n *\n * @return damage : Integer\n */\n Float attack();\n}",
"public interface Kit\n{\n\n//////////////////////////////////////////////////////////////////////////\n// Identity\n//////////////////////////////////////////////////////////////////////////\n\n /**\n * Get globally unique name of kit.\n */\n public String name();\n\n//////////////////////////////////////////////////////////////////////////\n// Types\n//////////////////////////////////////////////////////////////////////////\n\n /**\n * Get the list of types defined by kit.\n */\n public Type[] types();\n\n /**\n * Get a type by its name or return null if no type with specified name.\n */\n public Type type(String name);\n\n}",
"public interface PrivacyHeader extends Header\n{\n\n /**\n * Name of PrivacyHeader\n */\n public final static String NAME = \"Privacy\";\n\n\n /**\n * Set Privacy header value\n * @param privacy -- privacy type to set.\n */\n public void setPrivacy(String privacy) throws ParseException;\n\n /**\n * Get Privacy header value\n * @return privacy token name\n */\n public String getPrivacy();\n\n\n}",
"public interface T10K extends T10A,T10B,T10C,T10D,T10E,T10F,T10G{\n @OOPTraitMethod(modifier = OOPTraitMethodModifier.INTER_CONFLICT)\n @OOPTraitConflictResolver(resolve = T10B.class)\n public String throwShuriken() throws OOPTraitException;\n\n @OOPTraitMethod(modifier = OOPTraitMethodModifier.INTER_CONFLICT)\n @OOPTraitConflictResolver(resolve = T10A.class)\n public String winUltimate(Object p1,Object p2) throws OOPTraitException;\n\n @OOPTraitMethod(modifier = OOPTraitMethodModifier.INTER_CONFLICT)\n @OOPTraitConflictResolver(resolve = T10C.class)\n public String winUltimate(A p1,A p2) throws OOPTraitException;\n\n @OOPTraitMethod(modifier = OOPTraitMethodModifier.INTER_CONFLICT)\n @OOPTraitConflictResolver(resolve = T10G.class)\n public String winUltimate(D p1,C p2) throws OOPTraitException;\n\n}",
"public interface PHPDocTagKinds {\n\n public static final int ABSTRACT = 0;\n\n public static final int AUTHOR = 1;\n\n public static final int DEPRECATED = 2;\n\n public static final int FINAL = 3;\n\n public static final int GLOBAL = 4;\n\n public static final int NAME = 5;\n\n public static final int RETURN = 6;\n\n public static final int PARAM = 7;\n\n public static final int SEE = 8;\n\n public static final int STATIC = 9;\n\n public static final int STATICVAR = 10;\n\n public static final int TODO = 11;\n\n public static final int VAR = 12;\n\n public static final int PACKAGE = 13;\n\n public static final int ACCESS = 14;\n\n public static final int CATEGORY = 15;\n\n public static final int COPYRIGHT = 16;\n\n public static final int DESC = 17;\n\n public static final int EXAMPLE = 18;\n\n public static final int FILESOURCE = 19;\n\n public static final int IGNORE = 20;\n\n public static final int INTERNAL = 21;\n\n public static final int LICENSE = 22;\n\n public static final int LINK = 23;\n\n public static final int SINCE = 24;\n\n public static final int SUBPACKAGE = 25;\n\n public static final int TUTORIAL = 26;\n\n public static final int USES = 27;\n\n public static final int VERSION = 28;\n\n public static final int THROWS = 29;\n\n public static final int PROPERTY = 30;\n\n public static final int PROPERTY_READ = 31;\n\n public static final int PROPERTY_WRITE = 32;\n\n public static final int METHOD = 33;\n\n}",
"UsedTypes getTypes();",
"public interface C0136c {\n }",
"interface HasBatteries {}",
"public interface C22383h {\n}",
"public interface MDataType extends MClassifier\r\n{\r\n}",
"public interface ClassDeclaring extends SymDeclaring {\n public ModsAttrs getMods();\n}",
"public interface IEnemyFeature {\n\n}",
"public interface IHead extends IDetail {\n}",
"public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}",
"public interface AttributeTypeAttack extends EObject\n{\n}",
"public interface CaracteristiquesJoueurDeChamps{\n /**\n * This method is for a celebration when a goal is scored\n */\n \n void celebrer();\n \n /**\n * This method is for shoot on the goal\n * @return double, the stat of shoot\n */\n \n double tirer();\n \n /**\n * This method is for pass the ball\n * @return double, the stat of pass\n */\n \n double passer();\n \n /**\n * This method is for defend on the ball\n * @return double, the stat of defense\n */\n \n double defendre();\n \n /**\n * This method is for injury a player\n * @return double, the stat of injury\n */\n double seBlesser();\n \n /**\n * This method is for the mood of the player\n * @return double, the stat of agressivity\n */\n double agression();\n \n \n /**\n * This method is for run\n */\n void courir();\n \n \n double fatigue();\n \n \n }",
"public interface FrequencyConstraintShapeType extends ExternalConstraintShapeType {\n}",
"@Override\n public List<JavaType> getInterfaces() {\n return ImmutableList.of();\n }",
"protected void onTraitChange(){}",
"public interface IClass extends IVisible, IMetaDataListHolder, INamableNode, IAsDocHolder, ICommentHolder\n{\n /**\n * @return\n */\n List< IAttribute > getAttributes();\n\n /**\n * @return\n */\n double getAverageCyclomaticComplexity();\n\n /**\n * @return\n */\n IParserNode getBlock();\n\n /**\n * @return\n */\n List< IConstant > getConstants();\n\n /**\n * @return\n */\n IFunction getConstructor();\n\n /**\n * @return\n */\n String getExtensionName();\n\n /**\n * @return\n */\n List< IFunction > getFunctions();\n\n /**\n * @return\n */\n List< IParserNode > getImplementations();\n\n /**\n * @return\n */\n boolean isBindable();\n\n /**\n * @return\n */\n boolean isFinal();\n}",
"@Override\n public Set<Class<?>> getClasses() {\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(api.Auth.class);\n resources.add(api.UserApi.class);\n resources.add(api.TicketApi.class);\n resources.add(api.DepartmentApi.class);\n resources.add(api.MessageApi.class);\n resources.add(api.MilestoneApi.class);\n resources.add(api.InvitationApi.class);\n return resources;\n }",
"TypeInfo[] interfaces();",
"@Override\n\tpublic Collection<ComponentTypeInfo> getComponentTypes() {\n\t\treturn Arrays.asList(activityComponentType, timelineComponentType, decisionComponentType , scenarioComponentType );\n\t}",
"public interface C22379d {\n}",
"public interface C11910c {\n}",
"public interface Visitor {\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param user\n */\n void visit(User user);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param entitlement\n */\n void visit(Entitlement entitlement);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param authToken\n */\n void visit(AuthToken authToken);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param resource\n */\n void visit(Resource resource);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isValidStatus();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isValidExpTime();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isHasPermissions();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isHasResources();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n User getUserUnderValidation();\n\n}",
"public interface IChws_wdt extends IChws, IWdt{\n\n\tpublic IRI iri();\n\n}",
"public interface BaseHelpFeedbackItemViewModel extends Observable {\n\n @ViewType\n int getViewType();\n\n @IntDef({ViewType.HELP_FEEDBACK, ViewType.HEADER})\n @Retention(RetentionPolicy.SOURCE)\n @interface ViewType {\n int HEADER = 1;\n int HELP_FEEDBACK = 2;\n }\n}",
"public interface C13719g {\n}",
"public List getTypeSpecifiers() {\n return member.getTypeSpecifiers();\n }",
"public interface IPlatform \n{\n /**\n * Main function of the interface. Returns the boolean representing if the given actor\n * can stand on it.\n * \n * @param a The entity to query\n */\n boolean canSupportEntity(Entity a);\n \n boolean bottomIsCollidable();\n}",
"public abstract Annotations mo30682c();",
"public interface AbstractC03680oI {\n}",
"public interface HeaderData extends StickyMainData {\n @LayoutRes\n int getHeaderLayout();\n\n int getHeaderType();\n}",
"public interface C0939c {\n }",
"public interface AbstractC1953c50 {\n}",
"public interface C24717ak {\n}",
"public interface IWeather extends IOpenScenarioModelElement {\n /**\n * From OpenSCENARIO class model specification: Definition of the cloud state, i.e. cloud state\n * and sky visualization settings.\n *\n * @return value of model property cloudState\n */\n public CloudState getCloudState();\n /**\n * From OpenSCENARIO class model specification: Definition of the sun, i.e. position and\n * intensity.\n *\n * @return value of model property sun\n */\n public ISun getSun();\n /**\n * From OpenSCENARIO class model specification: Definition of fog, i.e. visual range and bounding\n * box.\n *\n * @return value of model property fog\n */\n public IFog getFog();\n /**\n * From OpenSCENARIO class model specification: Definition of precipitation, i.e. type and\n * intensity.\n *\n * @return value of model property precipitation\n */\n public IPrecipitation getPrecipitation();\n}",
"public interface LizaCow extends Cow {\n\n}",
"@ImplementationClass(get=SensoryTest.class)\n\n@AssignableSubInterfaces(get={IAdhesiveRemovalTest.class, IHindpawSensationTest.class, })\n public interface ISensoryTest\n extends IFunctionalTest{\n\n}",
"public Object[] getImplementations() {\n\t\tObject[] res = { HackProjectLearner.class };\n\t\treturn res;\n\t}",
"public interface HasCharacterStatistic {\n /**\n * Returns the statistic about the characters.\n * \n * @return The statistic about the characters.\n */\n CharacterStatistic getCharacterStatistic();\n\n /**\n * Sets the statistic about the characters.\n * \n * @param statistic The statistic about the characters.\n */\n void setCharacterStatistic(CharacterStatistic statistic);\n}",
"interface Ability {\n\n}",
"interface C2578d {\n}",
"public interface Declarations {\n\n /**\n * Tests whether one type, method, or field declaration hides another.\n *\n * @param sub the first member\n * @param sup the second member\n * @return <tt>true</tt> if and only if the first member hides\n *\t\tthe second\n */\n boolean hides(MemberDeclaration sub, MemberDeclaration sup);\n\n /**\n * Tests whether one method overrides another. When a\n * non-abstract method overrides an abstract one, the\n * former is also said to <i>implement</i> the latter.\n *\n * @param sub the first method\n * @param sup the second method\n * @return <tt>true</tt> if and only if the first method overrides\n *\t\tthe second\n */\n boolean overrides(MethodDeclaration sub, MethodDeclaration sup);\n}",
"public interface C4999x extends C4929d, C4995v1 {\n}",
"public interface UpdatablePhysicsComponent extends Component, Updatable {\n}",
"public interface FaceInterface {\n List<PointF> getFacePoints();\n\n List<PointF> getLeftEyePoints();\n\n List<PointF> getRightEyePoints();\n\n public List<PointF> transformPoints(DrawingViewConfig config, boolean mirrorPoints);\n\n public RectF getEyesRect();\n public Emotions getEmotions();\n Emojis getEmojis();\n Appearance getAppearance();\n}",
"public interface Actor extends NamedElement {\r\n}",
"public interface C14016a {\n void abU(String str);\n\n void cHM();\n\n void cHO();\n\n /* renamed from: mh */\n void mo26249mh(boolean z);\n }",
"public interface Expert {\n}",
"public interface Measurable {\n\n /**\n * It returns the perimeter of the shape.\n *\n * @return perimeter in cm\n */\n double getPerimeter();\n\n /**\n * It returns the area of the shape.\n *\n * @return area in cm^2\n */\n double getArea();\n}",
"public interface C1477a {\n /* renamed from: a */\n boolean mo1835a();\n\n /* renamed from: b */\n boolean mo1836b();\n\n int getCurrentPosition();\n\n boolean getGlobalVisibleRect(Rect rect);\n\n long getInitialBufferTime();\n\n int getMeasuredHeight();\n\n int getMeasuredWidth();\n\n VideoStartReason getVideoStartReason();\n\n float getVolume();\n }",
"public interface IWomen {\n //获得个人情况, 是否结婚,丈夫是否去世\n int getType();\n //获得个人请示,\n String getRequest();\n}",
"public interface IAttributableType {\n\n\t/**\n\t * Gets an attribute definition by its name.\n\t * \n\t * @param name\n\t * the name of the attribute definition\n\t * \n\t * @return the attribute definition, null if not found\n\t * @since 2.0\n\t */\n\tpublic IAttributeType<?> getAttributeType(String name);\n\n//\t/**\n//\t * Gets an attribute definition by its name. If the attribute definition is\n//\t * not found, a new attribute definition set as unresolved can be created.\n//\t * \n//\t * @param name\n//\t * the name of the attribute definition\n//\t * @param createUnresolvedDefinition\n//\t * if true, create an unresolved definition if the attribute\n//\t * definition is not found\n//\t * @return the attribute definition, or null if createUnresolvedDefinition\n//\t * is false and the attribute definition is not found\n//\t * @since 2.2.1\n//\t */\n//\tpublic IAttributeType<?> getAttributeType(String name, boolean createUnresolvedDefinition);\n\n\t/**\n\t * Adds all the attribute definition into the list given into parameter.\n\t * Follows the hierarchy links and returns all the definitions even\n\t * duplicates one.\n\t * \n\t * @param all\n\t * a list\n\t * @since 2.0\n\t */\n\tpublic void getAllAttributeTypes(List<IAttributeType<?>> all);\n\n\t/**\n\t * Adds all the attribute definition into the list given into parameter.\n\t * Follows the hierarchy links and returns only one definition for\n\t * duplicates one.\n\t * \n\t * @param all :\n\t * a given map where put the result\n\t * @param keepLastAttribute\n\t * If true, keep the last definition (on the sub-type). Else keep\n\t * the definition on the super-type\n\t * @since 2.0\n\t */\n\tpublic void getAllAttributeTypes(Map<String, IAttributeType<?>> all, boolean keepLastAttribute);\n\n\t/**\n\t * Adds all the attribute definition into the list given into parameter.\n\t * Follows the hierarchy links and returns all the definitions even\n\t * duplicates one. Only attributes matching filter are added.\n\t * \n\t * @param all\n\t * a given list where to put the result\n\t * @param filter\n\t * A filter to select attribute definition\n\t * @since 2.0\n\t */\n\tpublic void getAllAttributeTypes(List<IAttributeType<?>> all, ItemFilter<IAttributeType<?>> filter);\n\n\t/**\n\t * Returns all the attribute definition. Follows the hierarchy links and\n\t * returns the last definition (on the sub-type).\n\t * \n\t * @return a possibly empty list with all the attribute definition\n\t * @since 2.0\n\t */\n\tpublic IAttributeType<?>[] getAllAttributeTypes();\n\n\t/**\n\t * Adds all the attribute definition into the map given into parameter.\n\t * Follows the hierarchy links and returns only one definition for\n\t * duplicates one. Only attributes matching filter are added.\n\t * \n\t * @param all :\n\t * a given map where to put the result\n\t * @param keepLastAttribute\n\t * If true, keep the last definition (on the sub-type). Else keep\n\t * the definition on the super-type\n\t * @param filter\n\t * A filter to select attribute definition\n\t * @since 2.0\n\t */\n\tpublic void getAllAttributeTypes(Map<String, IAttributeType<?>> all, boolean keepLastAttribute,\n\t\t\tItemFilter<IAttributeType<?>> filter);\n\n\t/**\n\t * Add all the attribute definition names to the Set given into parameter.\n\t * Only attributes matching filter are added.\n\t * \n\t * @param all\n\t * a given set where to put the result\n\t * @param filter\n\t * A filter to select attribute definition\n\t */\n\tpublic void getAllAttributeTypesKeys(Set<String> all, ItemFilter<IAttributeType<?>> filter);\n\n\t/**\n\t * Returns a list with all the attribute definition names.\n\t * \n\t * @return a possibly empty list with all the attribute definition names.\n\t * @since 2.0\n\t */\n\tpublic String[] getAttributeTypeIds();\n\n\t/**\n\t * Adds an attribute definition to this object.\n\t * \n\t * @param type\n\t * the attribute definition to add\n\t * @since 2.0\n\t */\n\tpublic <T> Link addAttributeType(IAttributeType<T> type);\n\n}",
"interface C0747b extends C0736b, C0738d, C0739e<Object> {\n }",
"public interface SystemType3 extends HVACSystem{\n //Marker Interface\n}",
"public interface TVisualization{\n\t/**\n\t * Visualize detected beats with lower pitch.\n\t */\n\tpublic void kick();\n\t/**\n\t * Visualize detected beats with high pitch.\n\t */\n\tpublic void hat();\n\t/**\n\t * Visualize detected beats with medium pitch.\n\t */\n\tpublic void snare();\n\t/**\n\t * Draws visualization to the main application.\n\t */\n\tpublic void draw();\n}",
"public interface IEventType<T> {\n\n /**\n * It sets the event name for an event instance.\n * @param name A simple name for the event instance.\n */\n public void setEventName(String name);\n\n /**\n * It returns the event name for an event instance.\n * @return A simple name for the event instance.\n */\n public String getEventName();\n\n /**\n * It sets the class name for the event type.\n * @param clazz The full class name for the event instance.\n */\n public void setClazzName(String clazz);\n\n /**\n * It returns the class name for the event type.\n * @return The full class name for the event instance.\n */\n public String getClazzName();\n\n /**\n * It returns the super types for a specific event.\n * @return array of the super types.\n */\n public IEventType<T>[] getSuperTypes();\n\n /**\n * It returns the deep super types.\n * @return an iteration of the deep super types.\n */\n public Iterator<IEventType<T>> getDeepSuperTypes();\n\n /**\n * It sets the properties for the event type.\n * @param propSchema minimum schema for a property.\n */\n public void setProperties(List<IPropertyDescriptor<T>> propSchema);\n\n /**\n * It returns the properties for the event type.\n * @param propSchema minimum schema for a property.\n */\n public List<IPropertyDescriptor<T>> getProperties();\n}",
"public interface C3183a {\n}",
"@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}",
"public interface Fox extends Animals, Sittable {\r\n\r\n /**\r\n * Gets the current type of this fox.\r\n *\r\n * @return Type of the fox.\r\n */\r\n @NotNull\r\n public Type getFoxType();\r\n\r\n /**\r\n * Sets the current type of this fox.\r\n *\r\n * @param type New type of this fox.\r\n */\r\n public void setFoxType(@NotNull Type type);\r\n\r\n /**\r\n * Checks if this animal is crouching\r\n *\r\n * @return true if crouching\r\n */\r\n boolean isCrouching();\r\n\r\n /**\r\n * Sets if this animal is crouching.\r\n *\r\n * @param crouching true if crouching\r\n */\r\n void setCrouching(boolean crouching);\r\n\r\n /**\r\n * Sets if this animal is sleeping.\r\n *\r\n * @param sleeping true if sleeping\r\n */\r\n void setSleeping(boolean sleeping);\r\n\r\n /**\r\n * Gets the first trusted player.\r\n *\r\n * @return the owning AnimalTamer, or null if not owned\r\n */\r\n @Nullable\r\n public AnimalTamer getFirstTrustedPlayer();\r\n\r\n /**\r\n * Set the first trusted player.\r\n * <p>\r\n * The first trusted player may only be removed after the second.\r\n *\r\n * @param player the AnimalTamer to be trusted\r\n */\r\n public void setFirstTrustedPlayer(@Nullable AnimalTamer player);\r\n\r\n /**\r\n * Gets the second trusted player.\r\n *\r\n * @return the owning AnimalTamer, or null if not owned\r\n */\r\n @Nullable\r\n public AnimalTamer getSecondTrustedPlayer();\r\n\r\n /**\r\n * Set the second trusted player.\r\n * <p>\r\n * The second trusted player may only be added after the first.\r\n *\r\n * @param player the AnimalTamer to be trusted\r\n */\r\n public void setSecondTrustedPlayer(@Nullable AnimalTamer player);\r\n\r\n /**\r\n * Represents the various different fox types there are.\r\n */\r\n public enum Type {\r\n RED,\r\n SNOW;\r\n }\r\n}",
"public interface TestCategories {\n\n public static interface PositiveTests {}\n public static interface NegativeTests {}\n\n public static interface BrokenTests {}\n}",
"public interface Header extends Tuple {\n\n /**\n * {@inheritDoc}\n */\n @Override\n default boolean equatable(Object obj) {\n return obj instanceof Header;\n }\n\n /**\n * Return an attribute by the given index position.\n *\n * @param index the index position of the value\n * @return an attribute by the given index position\n * @throws IndexOutOfBoundsException if the index is out of range ({@code index < 0 || index >= size()})\n * @throws RdbmsException an exception in case of attribute obtaining error\n */\n @Override\n KeyValue<String, ? extends Type<?>> get(int index);\n\n /**\n * Return the RDBMS data type of the relation attribute by the given name.\n *\n * @param name the given relation attribute name\n * @return the RDBMS data type of the relation attribute by the given name\n * @throws IllegalArgumentException an exception in case of absence of the given attribute name\n * @throws RdbmsException an exception in case of attribute type obtaining error\n */\n Type<?> get(String name);\n\n /**\n * Return the width of the RDBMS relation.\n *\n * @return the width of the RDBMS relation\n * @throws RdbmsException an exception in case of the width obtaining error\n */\n @Override\n int width();\n}",
"public interface RobotCommunicationProtocol {\n}",
"public interface Position {}",
"public List<Declaration> implicitMembers();",
"public interface eit {\n}",
"interface Surgeon extends Doctor {\n\t\n}",
"public interface Capability\n{\n String BUNDLE = \"bundle\";\n String FRAGMENT = \"fragment\";\n String PACKAGE = \"package\";\n String SERVICE = \"service\";\n String EXECUTIONENVIRONMENT = \"ee\";\n\n /**\n * Return the name of the capability.\n *\n */\n String getName();\n\n /**\n * Return the properties of this capability\n *\n * @return\n */\n Property[] getProperties();\n\n /**\n * Return the map of properties.\n *\n * @return a Map<String,Object>\n */\n Map<String, Object> getPropertiesAsMap();\n\n /**\n * Return the directives of this capability. The returned map\n * can not be modified.\n *\n * @return a Map of directives or an empty map there are no directives.\n */\n Map<String, String> getDirectives();\n}",
"public interface C19588a {\n }",
"public interface IRole extends INameable, IDisable, IDocumentable, IStringable {\n\n void addPermission(IPermission permision);\n\n void removePermission(IPermission permision);\n\n void addPermissions(IPermission... permisions);\n\n void removePermissions(IPermission... permisions);\n\n void addPermissions(List<IPermission> permisions);\n\n void removePermissions(List<IPermission> permisions);\n\n IPermission[] getPermissionArray();\n\n List<IPermission> getPermissionList();\n\n Set<IPermission> getPermissionSet();\n\n List<String> getPermissionString();\n\n}",
"interface DefinitionStages {\n /**\n * The first stage of namespace authorization rule definition.\n */\n interface Blank extends AuthorizationRule.DefinitionStages.WithListenOrSendOrManage<WithCreate> {\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<NamespaceAuthorizationRule> {\n }\n }",
"public interface Activity extends RUP_Core_Elements {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#hasRecommendation\n */\n \n /**\n * Gets all property values for the hasRecommendation property.<p>\n * \n * @returns a collection of values for the hasRecommendation property.\n */\n Collection<? extends PM_Learning_Material> getHasRecommendation();\n\n /**\n * Checks if the class has a hasRecommendation property value.<p>\n * \n * @return true if there is a hasRecommendation property value.\n */\n boolean hasHasRecommendation();\n\n /**\n * Adds a hasRecommendation property value.<p>\n * \n * @param newHasRecommendation the hasRecommendation property value to be added\n */\n void addHasRecommendation(PM_Learning_Material newHasRecommendation);\n\n /**\n * Removes a hasRecommendation property value.<p>\n * \n * @param oldHasRecommendation the hasRecommendation property value to be removed.\n */\n void removeHasRecommendation(PM_Learning_Material oldHasRecommendation);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#isPerformOf\n */\n \n /**\n * Gets all property values for the isPerformOf property.<p>\n * \n * @returns a collection of values for the isPerformOf property.\n */\n Collection<? extends Role> getIsPerformOf();\n\n /**\n * Checks if the class has a isPerformOf property value.<p>\n * \n * @return true if there is a isPerformOf property value.\n */\n boolean hasIsPerformOf();\n\n /**\n * Adds a isPerformOf property value.<p>\n * \n * @param newIsPerformOf the isPerformOf property value to be added\n */\n void addIsPerformOf(Role newIsPerformOf);\n\n /**\n * Removes a isPerformOf property value.<p>\n * \n * @param oldIsPerformOf the isPerformOf property value to be removed.\n */\n void removeIsPerformOf(Role oldIsPerformOf);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}",
"public interface C0385a {\n }",
"public interface Specification {\n}",
"private void initialize() {\n this.traitMap = new HashMap<T, ITrait<T>>();\n this.traitList = new ArrayList<ITrait<T>>();\n this.observers = Collections.synchronizedList(new ArrayList<IStatisticsObserver>());\n this.dimensionName = \"UNNAMED\";\n\n }",
"public interface TypeKey {\n}",
"public interface C5906u {\n String getName();\n\n String getValue();\n}",
"@Who(name = \"Jennifer\", age = 18)\npublic interface PersonInterface {\n}",
"public interface CharacterData extends EntityData {\n\n}",
"public interface C31889b {\n }",
"public interface IAttributes {\n\n\t/***\n\t * Integer index of the attribute. Should be used with defined public static final int values.\n\t * Chosen because of better extensibility (an enum cannot extend another enum).\n\t * More specific object attribute definitions should extend the ObjectAttributesBase class in order\n\t * to have access to all derived attributes.\n\t * \n\t * @param attribute integer index of attribute\n\t * @return\n\t */\n\tObject getAttribute(int attribute);\n\t\n\tvoid setAttribute(int attribute, Object value);\n}",
"public interface Meta {\r\n\r\n /**\r\n * Get the Type of the OSM object\r\n * \r\n * @return the Type\r\n */\r\n @NotNull\r\n default Type getType() {\r\n throw new IllegalArgumentException(\"getType is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM elements tags\r\n * \r\n * @return a Map of KV tupels\r\n */\r\n @Nullable\r\n default Map<String, String> getTags() {\r\n throw new IllegalArgumentException(\"getTags is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM display name\r\n * \r\n * @return the OSM display name\r\n */\r\n String getUser();\r\n\r\n /**\r\n * Get the OSM id of the object\r\n * \r\n * @return the OSM id of the object\r\n */\r\n long getId();\r\n\r\n /**\r\n * Get the version of the object\r\n * \r\n * @return the version of the object\r\n */\r\n long getVersion();\r\n\r\n /**\r\n * Get the changeset id for this object\r\n * \r\n * @return the changeset id for this object\r\n */\r\n long getChangeset();\r\n\r\n /**\r\n * Get the timestamp (when this version of the object was created)\r\n * \r\n * @return the timestamp in seconds since the Unic EPOCH\r\n */\r\n long getTimestamp();\r\n\r\n /**\r\n * Get the state of the object\r\n * \r\n * @return a State\r\n */\r\n @NotNull\r\n State getState();\r\n\r\n /**\r\n * If the object is a Way check if it is closed\r\n * \r\n * @return true if the way is closed\r\n */\r\n boolean isClosed();\r\n\r\n /**\r\n * If the object is a Way return the number of way nodes\r\n * \r\n * @return the number of way nodes\r\n */\r\n int getNodeCount();\r\n\r\n /**\r\n * If the object is a Node return the number of ways it is a member of\r\n * \r\n * @return the number of ways the Node is a member of\r\n */\r\n int getWayCount();\r\n\r\n /**\r\n * If the object is a Relation return the number of members it has\r\n * \r\n * If not implemented this returns -1 which should always evaluate to false\r\n * \r\n * @return the number of members the Relation has\r\n */\r\n default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }\r\n\r\n /**\r\n * If the object is a Way and closed return the area it covers\r\n * \r\n * @return the area it covers in m^2\r\n */\r\n int getAreaSize();\r\n\r\n /**\r\n * If the object is a Way return its length\r\n * \r\n * @return the the length in m\r\n */\r\n int getWayLength();\r\n\r\n /**\r\n * Get any roles the element has in Relations\r\n * \r\n * @return a Collection containing the roles\r\n */\r\n @NotNull\r\n Collection<String> getRoles();\r\n\r\n /**\r\n * Check if the element is selected\r\n * \r\n * @return true if selected\r\n */\r\n boolean isSelected();\r\n\r\n /**\r\n * Check if a relation has a member with role\r\n * \r\n * @param role the role\r\n * @return true if there is a member with the role\r\n */\r\n boolean hasRole(@NotNull String role);\r\n\r\n /**\r\n * Get a preset from a path specification\r\n * \r\n * @param presetPath the path\r\n * @return an Object that should be a instance of a preset for the syste,\r\n */\r\n @Nullable\r\n Object getPreset(@NotNull String presetPath);\r\n\r\n /**\r\n * Check if the object matches with a preset or a preset group\r\n * \r\n * @param preset the path to the preset or group\r\n * @return true if the object matches\r\n */\r\n boolean matchesPreset(@NotNull Object preset);\r\n\r\n /**\r\n * Check if the element is incomplete (this is not defined in the documentation)\r\n * \r\n * @return true if incomplete\r\n */\r\n boolean isIncomplete();\r\n\r\n /**\r\n * Check if the element is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInview();\r\n\r\n /**\r\n * Check if the element and all member elements is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInview();\r\n\r\n /**\r\n * Check if the element is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInDownloadedArea();\r\n\r\n /**\r\n * Check if the element and all member elements is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInDownloadedArea();\r\n\r\n /**\r\n * Check if the current element is a child of an element\r\n * \r\n * @param type type of the element\r\n * @param element the meta interface to the element\r\n * @param parents a List of elements\r\n * @return true if element is a child\r\n */\r\n default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if the current element is a parent of an element\r\n * \r\n * @param type type of the element\r\n * @param meta the meta interface to the element\r\n * @param children a List of elements\r\n * @return true if element is a parent\r\n */\r\n default boolean isParent(@NotNull Type type, @NotNull Meta meta, @NotNull List<Object> children) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Return a List of Elements that match the condition c\r\n * \r\n * This is necessary so that we can cache these results in the caller\r\n * \r\n * @param c the Condition\r\n * @return a List of elements\r\n */\r\n @NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }\r\n \r\n /**\r\n * Get an Meta implementing object \r\n * \r\n * @param o imput object\r\n * @return returns something that implements this interface\r\n */\r\n @NotNull\r\n Meta wrap(Object o);\r\n}",
"public interface Actions extends EObject\n{\n}"
] | [
"0.60672367",
"0.56190675",
"0.5546221",
"0.55073243",
"0.54504234",
"0.54465336",
"0.54163265",
"0.53944796",
"0.5369589",
"0.53242123",
"0.5296308",
"0.52675885",
"0.5263806",
"0.52412826",
"0.5240829",
"0.5234243",
"0.5232885",
"0.52252316",
"0.52222854",
"0.52202654",
"0.52151084",
"0.52015775",
"0.5194874",
"0.51862556",
"0.5178537",
"0.51684505",
"0.5165283",
"0.5138344",
"0.5136984",
"0.5136357",
"0.51330125",
"0.51104254",
"0.50945723",
"0.50734586",
"0.5069923",
"0.50588053",
"0.5050657",
"0.50477093",
"0.5043265",
"0.5040624",
"0.503664",
"0.5034698",
"0.50289273",
"0.5028205",
"0.5027613",
"0.50260013",
"0.50241864",
"0.5018432",
"0.5017696",
"0.5014137",
"0.5012523",
"0.50079495",
"0.5006333",
"0.50051975",
"0.49971887",
"0.49957153",
"0.4992885",
"0.49896786",
"0.49857944",
"0.4984333",
"0.49827725",
"0.4974938",
"0.49747634",
"0.4974039",
"0.4972719",
"0.4964278",
"0.49630743",
"0.49605566",
"0.49591148",
"0.49585328",
"0.49580047",
"0.49520522",
"0.49470437",
"0.49415874",
"0.49415728",
"0.49166107",
"0.49073458",
"0.49020788",
"0.4893153",
"0.4893087",
"0.48917326",
"0.4891511",
"0.48881397",
"0.48793218",
"0.48752284",
"0.48744395",
"0.4870293",
"0.4866916",
"0.48578742",
"0.48552284",
"0.48536935",
"0.48530233",
"0.48523584",
"0.48487264",
"0.48487142",
"0.48456922",
"0.4844951",
"0.4844457",
"0.48444235",
"0.48439825"
] | 0.69362223 | 0 |
A list of the security schemes to apply to all methods, these must be defined in the securitySchemes declaration. | List<SecuritySchemeRef> securedBy(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<SecurityScheme> securitySchemes();",
"Set<Scheme> getSchemes();",
"Future<IssueSecuritySchemesBean> getIssueSecuritySchemes();",
"public String[] getSupportedSchemes() {\n return new String[] { NAMESPACE_SCHEME_WS };\n }",
"SecurityScheme createSecurityScheme();",
"void applySchemes(ReaderContext context, Operation operation, Method method);",
"ImmutableSet<Scheme> getSchemes(String type);",
"SecuritySchemeLibrary createSecuritySchemeLibrary();",
"public List<VatSchemeRec> getVatSchemesAll() throws BacException {\n LOGGER.log(INFO, \"BasicSetup.getVatSchemesAll called\");\n List<VatSchemeRec> schemes = vatDM.getVatSchemesAll();\n LOGGER.log(INFO, \"Vat Schemes returned from DB layer\", schemes);\n return schemes;\n }",
"String getScheme();",
"public ProtectionSchemeResiliency[] getProtectionSchemeResiliencies() { return this.protectionSchemeResiliencies; }",
"@Override\r\n public String getScheme() {\r\n return scheme;\r\n }",
"public interface SchemesProvider {\n void requestSchemeData(String access_token, boolean language, OnSchemesRecieved onSchemesRecieved);\n}",
"public List<String> getSupportedMessageDigestAlgorithms() {\n if (supportedMessageDigestAlgorithms == null) {\n supportedMessageDigestAlgorithms = new ArrayList<String>();\n\n for (Provider provider : Security.getProviders()) {\n\tlog.trace(\"provider = {}\", provider);\n\n for (Provider.Service service : provider.getServices()) {\n log.trace(\"service = {}\", service);\n\n if (\"MessageDigest\".equals(service.getType())) {\n supportedMessageDigestAlgorithms.add(service.getAlgorithm());\n log.trace(\"algorithm = {}\", service.getAlgorithm());\n\n String displayService = service.toString();\n int beginIndex =\n \tdisplayService.indexOf(\"aliases: [\") + \"aliases: [\".length();\n\n if (beginIndex >= \"aliases: [\".length()) {\n int endIndex = displayService.indexOf(\"]\", beginIndex);\n String aliases = displayService.substring(beginIndex, endIndex);\n\n for (String alias : StringUtil.breakAt(aliases, \",\")) {\n supportedMessageDigestAlgorithms.add(alias.trim());\n log.trace(\"alias = {}\", alias.trim());\n }\n }\n }\n }\n }\n\n log.trace(\"supportedMessageDigestAlgorithms = {}\",\n\t supportedMessageDigestAlgorithms);\n }\n\n return supportedMessageDigestAlgorithms;\n }",
"List<String> protocols();",
"public String getScheme() {\n return scheme;\n }",
"public String getScheme() {\n return scheme;\n }",
"public String getScheme() {\n return scheme;\n }",
"@Override\n @SuppressFBWarnings(\"BC_UNCONFIRMED_CAST\")\n protected void validateSecurityMethods() throws SuiteBroken {\n // GATTT, PATTT, GHTTT, PHTTT\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n }",
"java.lang.String getScheme();",
"@Override\n\t\tpublic String getScheme() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public String getScheme() {\n return this.scheme;\n }",
"public AuthMethod[] getAuthMethods() {\n\t\treturn authMethods.clone();\n\t}",
"@Override\n\tpublic String getScheme() {\n\t\treturn null;\n\t}",
"public List<ResourceMethod> getResourceMethods() {\n return resourceMethods;\n }",
"protected Set<String> supportedMethods() {\n return SUPPORTED_METHODS;\n }",
"public String getProtocols() {\r\n\t\treturn protocols;\r\n\t}",
"public List<String> supportedProtocols()\r\n/* 69: */ {\r\n/* 70:162 */ return this.supportedProtocols;\r\n/* 71: */ }",
"public static Set<String> getSupportedProtocols() {\n return SUPPORTED_PROTOCOLS;\n }",
"public static Set<String> getPreferredProtocols() {\n return PREFERRED_PROTOCOLS;\n }",
"Collection<HttpMethod> getMinimalSupportedHttpMethods();",
"public int getAuthMethods() throws FrameException {\n try {\n byte data[] = (byte[])infoElements.get(new Integer(InfoElement.AUTHMETHODS));\n ByteBuffer byteBuffer = new ByteBuffer(data);\n return byteBuffer.get16bits();\n } catch (Exception e) {\n throw new FrameException(e);\n }\n }",
"ISourceMethod[] getMethods();",
"com.google.protobuf.ByteString getSchemeBytes();",
"@Nullable\n public String getScheme ()\n {\n return m_sScheme;\n }",
"private Set<Protocol> discoverSupportedProtocols() throws IOException {\n HttpHead head = new HttpHead(uri);\n head.addHeader(HttpHeaders.ACCEPT, \"text/xml, application/x-frpc\");\n HttpResponse response = httpClient.execute(head);\n // get all \"Accept\" header values as Set of strings\n Set<String> acceptHeaderValues = Arrays.stream(response.getHeaders(HttpHeaders.ACCEPT))\n .map(Header::getElements).flatMap(Arrays::stream).map(HeaderElement::getName)\n .collect(Collectors.toSet());\n // check if they contain \"application/x-frpc\" or \"text/xml\" or both\n Set<Protocol> result = EnumSet.noneOf(Protocol.class);\n if (acceptHeaderValues.contains(Protocol.FRPC.getContentType())) {\n result.add(Protocol.FRPC);\n }\n if (acceptHeaderValues.contains(Protocol.XML_RPC.getContentType())) {\n result.add(Protocol.XML_RPC);\n }\n // return the result as set of protocols supported by the server\n return result;\n }",
"public String getScheme() {\n return m_scheme;\n }",
"@GetMapping(\"/api/skos/schemes\")\n public ResponseEntity<List<Scheme>> getSkosSchemes(@Nullable @RequestParam(value = \"resultGraphIri\", required = false) String graphIri) throws LpAppsException {\n return ResponseEntity.ok(visualizationService.getSkosSchemes(graphIri));\n }",
"@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}",
"java.util.List<java.lang.String>\n getAuthenticationMechanismsList();",
"public String[] getMethods() {\n\t\treturn methods;\n\t}",
"@Nonnull protected List<String> getEffectiveSignatureAlgorithms(@Nonnull final CriteriaSet criteria, \n @Nonnull final Predicate<String> includeExcludePredicate) {\n\n final SignatureSigningConfigurationCriterion criterion =\n criteria.get(SignatureSigningConfigurationCriterion.class);\n assert criterion != null;\n\n final ArrayList<String> accumulator = new ArrayList<>();\n for (final SignatureSigningConfiguration config : criterion.getConfigurations()) {\n \n config.getSignatureAlgorithms()\n .stream()\n .filter(PredicateSupport.and(getAlgorithmRuntimeSupportedPredicate(), includeExcludePredicate))\n .forEach(accumulator::add);\n }\n return accumulator;\n }",
"public Set<HttpMethod> getAllow()\r\n/* 137: */ {\r\n/* 138:209 */ String value = getFirst(\"Allow\");\r\n/* 139:210 */ if (value != null)\r\n/* 140: */ {\r\n/* 141:211 */ List<HttpMethod> allowedMethod = new ArrayList(5);\r\n/* 142:212 */ String[] tokens = value.split(\",\\\\s*\");\r\n/* 143:213 */ for (String token : tokens) {\r\n/* 144:214 */ allowedMethod.add(HttpMethod.valueOf(token));\r\n/* 145: */ }\r\n/* 146:216 */ return (Set)EnumSet.copyOf(allowedMethod);\r\n/* 147: */ }\r\n/* 148:219 */ return (Set)EnumSet.noneOf(HttpMethod.class);\r\n/* 149: */ }",
"public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }",
"public List<String> getSupportedMethods(Set<String> restParams) {\n //we try to avoid hardcoded mappings but the index api is the exception\n if (\"index\".equals(name) || \"create\".equals(name)) {\n List<String> indexMethods = Lists.newArrayList();\n for (String method : methods) {\n if (restParams.contains(\"id\")) {\n //PUT when the id is provided\n if (HttpPut.METHOD_NAME.equals(method)) {\n indexMethods.add(method);\n }\n } else {\n //POST without id\n if (HttpPost.METHOD_NAME.equals(method)) {\n indexMethods.add(method);\n }\n }\n }\n return indexMethods;\n }\n\n return methods;\n }",
"@ImplementedBy(DefaultSchemeManager.class)\npublic interface SchemeManager {\n\n\t/**\n\t * Creates schemes.\n\t */\n\tinterface Factory {\n\n\t\t/**\n\t\t * Gets the set of schemes.\n\t\t * \n\t\t * @return the schemes.\n\t\t */\n\t\tSet<Scheme> getSchemes();\n\t}\n\n\t/**\n\t * Gets a scheme entry by scheme id and code.\n\t * \n\t * @param id\n\t * the scheme id.\n\t * @param code\n\t * the entry code.\n\t * @return the entry or null.\n\t */\n\tSchemeEntry getEntry(String id, String code);\n\n\t/**\n\t * Gets a scheme by id.\n\t * \n\t * @param id\n\t * the scheme id.\n\t * @return the scheme or null if not found.\n\t */\n\tScheme getScheme(String id);\n\n\t/**\n\t * Gets all schemes.\n\t * \n\t * @return the set of schemes.\n\t */\n\tImmutableSet<Scheme> getSchemes();\n\n\t/**\n\t * Gets schemes by type.\n\t * \n\t * @param type\n\t * the type.\n\t * @return the set of schemes.\n\t */\n\tImmutableSet<Scheme> getSchemes(String type);\n\n\t/**\n\t * Register a scheme.\n\t * \n\t * @param scheme\n\t * the scheme.\n\t */\n\tvoid registerScheme(Scheme scheme);\n\n\t/**\n\t * Unregisters a scheme.\n\t * \n\t * @param scheme\n\t * the scheme.\n\t */\n\tvoid unregisterScheme(Scheme scheme);\n}",
"@Override\n\tpublic String[] getAuthorizedUrlPatterns() {\n\t\treturn null;\n\t}",
"public String getScheme( ) {\n\t\treturn scheme;\n\t}",
"@Override // com.oppo.enterprise.mdmcoreservice.utils.defaultapp.DefaultApp\n public List<IntentFilter> getFilterList() {\n List<IntentFilter> filterList = new ArrayList<>();\n for (int i = 0; i < DEFAULT_MATCH_TYPE_LIST.size(); i++) {\n for (int j = 0; j < DEFAULT_SCHEME_LIST.size(); j++) {\n for (int k = 0; k < DEFAULT_URI_DATA_TYPE_LIST.size(); k++) {\n IntentFilter filter = new IntentFilter(\"android.intent.action.VIEW\");\n filter.addCategory(\"android.intent.category.DEFAULT\");\n filter.addDataScheme(DEFAULT_SCHEME_LIST.get(j));\n filterList.add(filter);\n }\n }\n }\n IntentFilter filter2 = new IntentFilter(\"android.intent.action.VIEW\");\n filter2.addCategory(\"android.intent.category.DEFAULT\");\n filter2.addDataScheme(\"http\");\n filterList.add(filter2);\n IntentFilter filter3 = new IntentFilter(\"android.intent.action.VIEW\");\n filter3.addCategory(\"android.intent.category.DEFAULT\");\n filter3.addDataScheme(\"http\");\n filterList.add(filter3);\n IntentFilter filter4 = new IntentFilter(\"android.intent.action.VIEW\");\n filter4.addCategory(\"android.intent.category.DEFAULT\");\n filter4.addDataScheme(\"https\");\n filterList.add(filter4);\n return filterList;\n }",
"@Nonnull protected List<String> getEffectiveKeyTransportAlgorithms(@Nonnull final CriteriaSet criteria, \n @Nonnull final Predicate<String> whitelistBlacklistPredicate) {\n \n final ArrayList<String> accumulator = new ArrayList<>();\n for (final EncryptionConfiguration config : criteria.get(EncryptionConfigurationCriterion.class)\n .getConfigurations()) {\n \n accumulator.addAll(Collections2.filter(config.getKeyTransportEncryptionAlgorithms(), \n PredicateSupport.and(getAlgorithmRuntimeSupportedPredicate(), whitelistBlacklistPredicate)::test));\n \n }\n return accumulator;\n }",
"@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();",
"private ArrayList<String> selectSecurityLevels(String apiSecurity) {\n ArrayList<String> securityLevels = new ArrayList<>();\n String[] apiSecurityLevels = apiSecurity.split(\",\");\n boolean isOauth2 = false;\n boolean isMutualSSL = false;\n boolean isBasicAuth = false;\n boolean isApiKey = false;\n boolean isMutualSSLMandatory = false;\n boolean isOauthBasicAuthMandatory = false;\n\n boolean securitySchemeFound = false;\n\n for (String apiSecurityLevel : apiSecurityLevels) {\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.DEFAULT_API_SECURITY_OAUTH2)) {\n isOauth2 = true;\n securityLevels.add(APIConstants.DEFAULT_API_SECURITY_OAUTH2);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_MUTUAL_SSL)) {\n isMutualSSL = true;\n securityLevels.add(APIConstants.API_SECURITY_MUTUAL_SSL);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_BASIC_AUTH)) {\n isBasicAuth = true;\n securityLevels.add(APIConstants.API_SECURITY_BASIC_AUTH);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_API_KEY)){\n isApiKey = true;\n securityLevels.add(APIConstants.API_SECURITY_API_KEY);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_MUTUAL_SSL_MANDATORY)) {\n isMutualSSLMandatory = true;\n securityLevels.add(APIConstants.API_SECURITY_MUTUAL_SSL_MANDATORY);\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY)) {\n isOauthBasicAuthMandatory = true;\n securityLevels.add(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY);\n }\n }\n\n // If no security schema found, set OAuth2 as default\n if (!securitySchemeFound) {\n isOauth2 = true;\n securityLevels.add(APIConstants.DEFAULT_API_SECURITY_OAUTH2);\n }\n // If Only OAuth2/Basic-Auth specified, set it as mandatory\n if (!isMutualSSL && !isOauthBasicAuthMandatory) {\n securityLevels.add(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY);\n }\n // If Only Mutual SSL specified, set it as mandatory\n if (!isBasicAuth && !isOauth2 && !isApiKey && !isMutualSSLMandatory) {\n securityLevels.add(APIConstants.API_SECURITY_MUTUAL_SSL_MANDATORY);\n }\n // If OAuth2/Basic-Auth and Mutual SSL protected and not specified the mandatory scheme,\n // set OAuth2/Basic-Auth as mandatory\n if ((isOauth2 || isBasicAuth || isApiKey) && isMutualSSL && !isOauthBasicAuthMandatory && !isMutualSSLMandatory) {\n securityLevels.add(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY);\n }\n return securityLevels;\n }",
"protected String getDefaultProtocols() {\r\n\t\tString sp = System.getProperty(\"transport.client.protocol\");\r\n\t\tif (isEmpty(sp))\r\n\t\t\tsp = \"SSL_TLS,TLS,SSL\";\r\n\t\treturn sp;\r\n\t}",
"public List<String> getHttpsTransports() {\n\n List<String> httpsTransports = new ArrayList<>();\n for (Iterator iter = axisConfig.getTransportsIn().keySet().iterator(); iter.hasNext(); ) {\n String transport = (String) iter.next();\n if (transport.toLowerCase().indexOf(SecurityConstants.HTTPS_TRANSPORT) != -1) {\n httpsTransports.add(transport);\n }\n }\n return httpsTransports;\n }",
"public Set<String> getValidMethods() {\n\t\treturn this.validMethods.keySet();\n\t}",
"Future<IssueSecuritySchemeBean> getIssueSecurityScheme(String id);",
"public boolean isSecure( ) {\n\t\treturn scheme.equals( \"https\" );\n\t}",
"public com.google.protobuf.ProtocolStringList\n getAuthenticationMechanismsList() {\n return authenticationMechanisms_;\n }",
"public List<Yng_Security> findAll() {\n\t\treturn securityDao.findAll();\r\n\t}",
"void enableSecurity();",
"@Override\n public String getAuthenticationScheme() {\n return \"OAuth2\";\n }",
"private static void hackRequestForSwitchingSecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingSecureScheme\");\n Http.Request.current().secure = true;\n hackRequestPort();\n }",
"@Override\n\tpublic List<Scheme> viewAllDonations() throws SchemeNotFoundException {\n\t\tlog.info(\"Entering into viewAllDonations of SchemeServiceImpl\");\n\t\tList<Scheme> schemes = schemeRepository.findAll();\n\t\tif (schemes.isEmpty()) {\n\t\t\tlog.info(\"Entering into schemes not available block in viewAllDonations of SchemeServiceImpl\");\n\t\t\tthrow new SchemeNotFoundException(Constant.SCHEME_NOT_FOUND_EXCEPTION);\n\t\t}\n\t\treturn schemes;\n\t}",
"public static String[] getSupportedCompressionAlgorithms() {\n return Compression.getSupportedAlgorithms();\n }",
"public boolean hasScheme(Scheme scheme) {\n for (Role role :this.allRoles()) {\n if (role.hasResponsibility(scheme)) {\n return true;\n }\n }\n return false;\n }",
"public List<IMethod> getMethods();",
"public List<IMethod> getMethods();",
"public com.google.protobuf.ProtocolStringList\n getAuthenticationMechanismsList() {\n return authenticationMechanisms_.getUnmodifiableView();\n }",
"@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();",
"public static Set<String> listFormats(){\n\t\tif(s == null){\n\t\t\t\n\t\ts = new HashSet<String>();\n\t\ts.add(\"srx\") ;\n s.add(\"xml\") ;\n s.add(\"rdf\") ; \n// syntaxNames.put(\"rdf/n3\", syntaxRDF_N3) ;\n s.add(\"rdf/xml\") ;\n// syntaxNames.put(\"n3\", syntaxRDF_N3) ;\n// syntaxNames.put(\"ttl\", syntaxRDF_TURTLE) ;\n// syntaxNames.put(\"turtle\", syntaxRDF_TURTLE) ;\n s.add(\"text\") ;\n s.add(\"json\") ;\n s.add(\"yaml\") ; // The JSON format is a subset of YAML\n// syntaxNames.put(\"sse\", syntaxSSE) ;\n// syntaxNames.put(\"csv\", syntaxCSV) ;\n// syntaxNames.put(\"tsv\", syntaxTSV) ;\n\t\t}\n\t\treturn s;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getSchemeBytes() {\n java.lang.Object ref = scheme_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n scheme_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static Collection<String> getSignatureAlgorithms(final PublicKey publickey) {\n\t\tfinal Collection<String> ret;\n\t\tif ( publickey instanceof RSAPublicKey ) {\n\t\t\tret = SIG_ALGS_RSA;\n\t\t} else if ( publickey instanceof DSAPublicKey ) {\n\t\t\tret = SIG_ALGS_DSA;\n\t\t} else if ( publickey instanceof ECPublicKey ) {\n\t\t\tret = SIG_ALGS_ECDSA;\n\t\t} else {\n\t\t\tret = Collections.emptyList();\t\t\t\n\t\t}\n\t\treturn ret;\n\t}",
"public String getSchemeSpecific() {\n return \"\";\n }",
"SecuritySchemeParameter createSecuritySchemeParameter();",
"@Override\n protected javax.servlet.Filter[] getServletFilters() {\n DelegatingFilterProxy delegateFilterProxy = new DelegatingFilterProxy();\n delegateFilterProxy.setTargetBeanName(\"springSecurityFilterChain\");\n return new Filter[] { delegateFilterProxy };\n }",
"public Set<HttpMethod> getHttpMethodsToRetry() {\r\n if (configuration.getHttpMethodsToRetry() == null) {\r\n return null;\r\n }\r\n return configuration.getHttpMethodsToRetry().stream()\r\n .map(httpMethod -> HttpMethod.valueOf(httpMethod.toString()))\r\n .collect(Collectors.toSet());\r\n }",
"public com.google.protobuf.ByteString getSchemeBytes() {\n java.lang.Object ref = scheme_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n scheme_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setAllow(Set<HttpMethod> allowedMethods)\r\n/* 132: */ {\r\n/* 133:200 */ set(\"Allow\", StringUtils.collectionToCommaDelimitedString(allowedMethods));\r\n/* 134: */ }",
"public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }",
"String [] getSupportedTypes();",
"public Collection<Resolver> getSupports() {\r\n return Collections.unmodifiableCollection(supports);\r\n }",
"Set<HttpMethod> optionsForAllow(URI url) throws RestClientException;",
"private Optional<Map.Entry<String, SecurityScheme>> getSecurityScheme(OpenAPI openAPI) {\n return Optional.ofNullable(openAPI.getComponents())\n .map(Components::getSecuritySchemes)\n .map(Map::entrySet)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst();\n }",
"List<Method> getAllMethods();",
"public static short[] getPolicies() {\n\t\treturn POLICIES;\n\t}",
"public Set<AbstractProgramData<?>> getMethods()\n {\n return this.methods;\n }",
"@Test\n\tpublic void shouldDefineComponentsSecuritySchemesForOAuth2() throws Exception {\n\t\tmockMvc\n\t\t\t\t.perform(get(\"/api-docs\"))\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(jsonPath(\"$.security[2].oAuthScheme\", is(new ArrayList<String>())))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.type\", is(\"oauth2\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.description\", is(\"This API uses OAuth 2 with the implicit grant flow. [More info](https://api.example.com/docs/auth)\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.flows.implicit.authorizationUrl\", is(\"https://api.example.com/oauth2/authorize\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.flows.implicit.scopes.read_pets\", is(\"read your pets\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.flows.implicit.scopes.write_pets\", is(\"modify pets in your account\")))\n\t\t;\n\t}",
"public java.lang.Short getUriScheme() {\r\n return uriScheme;\r\n }",
"List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);",
"public java.lang.String getCodingSchemeURI() {\n return codingSchemeURI;\n }",
"public String getEncryptionScheme() {\n return encrypted;\n }",
"List<ShippingMethode> getSupportedShippingMethods(Country currentCountry);",
"public static boolean hasScheme(URI uri, String... schemes) {\r\n final String scheme = uri.getScheme();\r\n for (final String sch : schemes) {\r\n if (scheme == null) {\r\n if (sch == null) {\r\n return true;\r\n }\r\n } else if (scheme.equalsIgnoreCase(sch)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Override\n public ServiceResponse allowedMethods(final ServiceRequest request) throws SOAPException {\n return this.soapClient.allowedMethods(request, this.getTargetUrl());\n }",
"public List<ResourceMethod> getSubResourceMethods() {\n return subResourceMethods;\n }",
"public String getSchemeName() {\n return \"basic\";\n }",
"private static void hackRequestForSwitchingInsecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingInsecureScheme\");\n Http.Request.current().secure = false;\n hackRequestPort();\n }",
"public java.beans.MethodDescriptor[] getMethodDescriptors() {\n\ttry {\n\t\tjava.beans.MethodDescriptor aDescriptorList[] = {\n\t\t\tclearMethodDescriptor()\n\t\t\t,main_javalangString__MethodDescriptor()\n\t\t\t,toggleVisibilityMethodDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}",
"public Enumeration getMethods()\n {\n ensureLoaded();\n return m_tblMethod.elements();\n }",
"public IFunctionPattern[] getPatterns();"
] | [
"0.84535134",
"0.71784776",
"0.70069206",
"0.66235304",
"0.61474645",
"0.60311544",
"0.5947652",
"0.57867444",
"0.5662929",
"0.55409396",
"0.55279505",
"0.5454319",
"0.53291297",
"0.5318732",
"0.53135484",
"0.52995074",
"0.52995074",
"0.52995074",
"0.5296382",
"0.5288146",
"0.5287998",
"0.52861136",
"0.5256885",
"0.52435637",
"0.52345955",
"0.52301407",
"0.52280605",
"0.5224621",
"0.5220631",
"0.5193745",
"0.51664037",
"0.51624185",
"0.5136961",
"0.51357526",
"0.51186484",
"0.51107407",
"0.5087368",
"0.50790244",
"0.5078054",
"0.5072689",
"0.50693095",
"0.50545484",
"0.5048387",
"0.502754",
"0.4999014",
"0.49858123",
"0.4984001",
"0.4966206",
"0.4948049",
"0.49351245",
"0.49272296",
"0.49110326",
"0.49101233",
"0.48884448",
"0.4863921",
"0.48467818",
"0.48299578",
"0.48278838",
"0.48214006",
"0.4816637",
"0.47992745",
"0.47882062",
"0.47857946",
"0.47812453",
"0.4781165",
"0.47802633",
"0.47802633",
"0.4776927",
"0.4760648",
"0.47594362",
"0.4755511",
"0.47532165",
"0.47507462",
"0.4730395",
"0.4729964",
"0.47273445",
"0.47159025",
"0.47083932",
"0.46850994",
"0.4684056",
"0.46828791",
"0.46802676",
"0.4675058",
"0.46618792",
"0.46572047",
"0.46542186",
"0.46508747",
"0.4641519",
"0.46385702",
"0.4627464",
"0.461868",
"0.461601",
"0.46117574",
"0.4608642",
"0.46085408",
"0.46030527",
"0.45963898",
"0.45918828",
"0.45906004",
"0.45848736"
] | 0.6872255 | 3 |
Security schemes that can be applied using securedBy | List<SecurityScheme> securitySchemes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<SecuritySchemeRef> securedBy();",
"SecurityScheme createSecurityScheme();",
"SecuritySchemeLibrary createSecuritySchemeLibrary();",
"SecuritySchemeParameter createSecuritySchemeParameter();",
"void enableSecurity();",
"Future<IssueSecuritySchemesBean> getIssueSecuritySchemes();",
"private static void hackRequestForSwitchingSecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingSecureScheme\");\n Http.Request.current().secure = true;\n hackRequestPort();\n }",
"@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}",
"boolean isSecureAccess();",
"void applySecurityPolicy(HttpsURLConnection connection);",
"private static void hackRequestForSwitchingInsecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingInsecureScheme\");\n Http.Request.current().secure = false;\n hackRequestPort();\n }",
"Future<IssueSecuritySchemeBean> getIssueSecurityScheme(String id);",
"private ArrayList<String> selectSecurityLevels(String apiSecurity) {\n ArrayList<String> securityLevels = new ArrayList<>();\n String[] apiSecurityLevels = apiSecurity.split(\",\");\n boolean isOauth2 = false;\n boolean isMutualSSL = false;\n boolean isBasicAuth = false;\n boolean isApiKey = false;\n boolean isMutualSSLMandatory = false;\n boolean isOauthBasicAuthMandatory = false;\n\n boolean securitySchemeFound = false;\n\n for (String apiSecurityLevel : apiSecurityLevels) {\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.DEFAULT_API_SECURITY_OAUTH2)) {\n isOauth2 = true;\n securityLevels.add(APIConstants.DEFAULT_API_SECURITY_OAUTH2);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_MUTUAL_SSL)) {\n isMutualSSL = true;\n securityLevels.add(APIConstants.API_SECURITY_MUTUAL_SSL);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_BASIC_AUTH)) {\n isBasicAuth = true;\n securityLevels.add(APIConstants.API_SECURITY_BASIC_AUTH);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_API_KEY)){\n isApiKey = true;\n securityLevels.add(APIConstants.API_SECURITY_API_KEY);\n securitySchemeFound = true;\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_MUTUAL_SSL_MANDATORY)) {\n isMutualSSLMandatory = true;\n securityLevels.add(APIConstants.API_SECURITY_MUTUAL_SSL_MANDATORY);\n }\n if (apiSecurityLevel.trim().equalsIgnoreCase(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY)) {\n isOauthBasicAuthMandatory = true;\n securityLevels.add(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY);\n }\n }\n\n // If no security schema found, set OAuth2 as default\n if (!securitySchemeFound) {\n isOauth2 = true;\n securityLevels.add(APIConstants.DEFAULT_API_SECURITY_OAUTH2);\n }\n // If Only OAuth2/Basic-Auth specified, set it as mandatory\n if (!isMutualSSL && !isOauthBasicAuthMandatory) {\n securityLevels.add(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY);\n }\n // If Only Mutual SSL specified, set it as mandatory\n if (!isBasicAuth && !isOauth2 && !isApiKey && !isMutualSSLMandatory) {\n securityLevels.add(APIConstants.API_SECURITY_MUTUAL_SSL_MANDATORY);\n }\n // If OAuth2/Basic-Auth and Mutual SSL protected and not specified the mandatory scheme,\n // set OAuth2/Basic-Auth as mandatory\n if ((isOauth2 || isBasicAuth || isApiKey) && isMutualSSL && !isOauthBasicAuthMandatory && !isMutualSSLMandatory) {\n securityLevels.add(APIConstants.API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY);\n }\n return securityLevels;\n }",
"@Override\n @SuppressFBWarnings(\"BC_UNCONFIRMED_CAST\")\n protected void validateSecurityMethods() throws SuiteBroken {\n // GATTT, PATTT, GHTTT, PHTTT\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_NONE,\n CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS, CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"GET\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n this.currentState.combinations.add(\n new Combination(\"POST\", this.currentState.url, getMatchedApiEntry(),\n CombEntry.CLIAUTH_HTTPSIG, CombEntry.SRVAUTH_TLSCERT, CombEntry.REQENCR_TLS,\n CombEntry.RESENCR_TLS\n ));\n }",
"public interface Insecure {\n}",
"public interface ISecurityVerifier {\n public static final String COMPONENT_NAME = \"ISecurityVerifier\";\n\n Access getAllPossibleAccess(SecurityAccessor accessor, String resourceEntity, Access mask);\n\n boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access);\n\n boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access, Object... instances);\n\n void checkAccess(SecurityAccessor accessor, String resourceEntity, Access access) throws NoPermissionException;\n\n void checkAccess(SecurityAccessor accessor, String resourceEntity, Access access, Object... instances) throws NoPermissionException;\n\n boolean canAccessMappedResource(SecurityAccessor accessor, String mappedResource, Access access);\n\n void setAuthorityProvider(IAuthorityProvider provider);\n}",
"public static synchronized void configureSecurity()\n {\n // import Component.Application.Console.Coherence;\n // import Component.Net.Security.Standard;\n // import com.tangosol.internal.net.security.DefaultStandardDependencies;\n // import com.tangosol.internal.net.security.LegacyXmlStandardHelper;\n // import com.tangosol.run.xml.XmlElement;\n \n if (isConfigured())\n {\n return;\n }\n \n DefaultStandardDependencies deps = null;\n Security security = null;\n \n try\n {\n // create security dependencies including default values\n deps = new DefaultStandardDependencies();\n \n // internal call equivalent to \"CacheFactory.getSecurityConfig();\"\n XmlElement xmlConfig = Coherence.getServiceConfig(\"$Security\");\n if (xmlConfig != null)\n {\n // load the security dependencies given the xml config \n deps = LegacyXmlStandardHelper.fromXml(xmlConfig, deps);\n \n if (deps.isEnabled())\n {\n // \"model\" element is not documented for now\n security = (Standard) _newInstance(\"Component.Net.Security.\" + deps.getModel()); \n }\n }\n }\n finally\n {\n // if Security is not instantiated, we still neeed to process\n // the dependencies to pickup the IdentityAsserter and IdentityTransformer\n // objects for the Security component (see onDeps()).\n if (security == null)\n {\n processDependencies(deps.validate());\n }\n else\n {\n // load the standard dependencies (currently only support Standard)\n if (deps.getModel().equals(\"Standard\"))\n {\n ((Standard) security).setDependencies(deps);\n }\n setInstance(security);\n }\n \n setConfigured(true);\n }\n }",
"SecurityProfile securityProfile();",
"public void securityOn()\n {\n m_bSecurity = true;\n }",
"private static SecurityHandler setUpSecurityHandler() {\r\n\r\n HashLoginService loginService = new HashLoginService();\r\n loginService.setName(REALM_NAME);\r\n for (User user : MongoDB.getAll(User.class)) {\r\n BCryptPassword password = new BCryptPassword(user.getPassword());\r\n loginService.putUser(user.getLogin(), password, User.ROLES);\r\n }\r\n\r\n Constraint constraint = new Constraint();\r\n constraint.setName(Constraint.__FORM_AUTH);\r\n constraint.setRoles(User.ROLES);\r\n constraint.setAuthenticate(true);\r\n\r\n ConstraintMapping cm = new ConstraintMapping();\r\n cm.setConstraint(constraint);\r\n cm.setPathSpec(\"/*\");\r\n\r\n Constraint relaxation = new Constraint();\r\n relaxation.setName(Constraint.ANY_ROLE);\r\n relaxation.setAuthenticate(false);\r\n\r\n ConstraintMapping rm = new ConstraintMapping();\r\n rm.setConstraint(relaxation);\r\n rm.setPathSpec(\"/signup\");\r\n\r\n ConstraintSecurityHandler csh = new ConstraintSecurityHandler();\r\n csh.setAuthenticator(new FormAuthenticator(\"/login\", \"/login/error\",\r\n false));\r\n\r\n csh.setRealmName(REALM_NAME);\r\n csh.addConstraintMapping(cm);\r\n csh.addConstraintMapping(rm);\r\n csh.setLoginService(loginService);\r\n\r\n return csh;\r\n }",
"@Override\n public boolean isSecure() {\n return secure;\n }",
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"public interface SchemesProvider {\n void requestSchemeData(String access_token, boolean language, OnSchemesRecieved onSchemesRecieved);\n}",
"public abstract I_Authenticate getSecurityCtx();",
"public boolean isSecure() {\n return false;\n }",
"public boolean isSecure() {\n return false;\n }",
"public interface AgroalSecurityProvider {\n\n /**\n * Converts a custom principal / credential objects to properties to be passed to the JDBC driver.\n * @return null if not capable of handle the security object, otherwise return a {@link Properties} object even if empty.\n */\n Properties getSecurityProperties(Object securityObject);\n}",
"public interface SecurityConfiguration {\n\t\n\t/**\n\t * Gets the executor.\n\t *\n\t * @return the executor\n\t */\n\tExecutor getExecutor();\t\n\t\n\t/**\n\t * User preemptive auth.\n\t *\n\t * @return true, if successful\n\t */\n\tboolean userPreemptiveAuth();\n}",
"void applySecurityRequirements(ReaderContext context, Operation operation, Method method);",
"boolean isApplicable(SecurityMode securityMode);",
"void assertSecureChannel(HttpServletRequest request) throws AccessControlException;",
"@Override\n\t\tpublic boolean isSecure() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}",
"private void validateAndSetAPISecurity(APIProduct apiProduct) {\n String apiSecurity = APIConstants.DEFAULT_API_SECURITY_OAUTH2;\n String security = apiProduct.getApiSecurity();\n if (security!= null) {\n apiSecurity = security;\n ArrayList<String> securityLevels = selectSecurityLevels(apiSecurity);\n apiSecurity = String.join(\",\", securityLevels);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"APIProduct \" + apiProduct.getId() + \" has following enabled protocols : \" + apiSecurity);\n }\n apiProduct.setApiSecurity(apiSecurity);\n }",
"public Security getSecurity()\n {\n return __m_Security;\n }",
"private static Integer makeSecure(PreBidRequestContext preBidRequestContext, ConversantParams params) {\n final Integer secure = preBidRequestContext.getSecure();\n final boolean validSecure = secure != null && secure != 0;\n final Integer secureInParams = params.getSecure();\n return !validSecure && secureInParams != null ? secureInParams : secure;\n }",
"public interface SecurityContext {\n\n}",
"public void setSecure(boolean secure)\n {\n this.secure = secure;\n }",
"public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }",
"private void authorize() {\r\n\r\n\t}",
"void cacheSecurities(Collection<Security> securities);",
"@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String authorizationHeader =\n requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n // Validate the Authorization header\n if (!isTokenBasedAuthentication(authorizationHeader)) {\n abortWithUnauthorized(requestContext);\n return;\n }\n\n // Extract the token from the Authorization header\n String token = authorizationHeader\n .substring(AUTHENTICATION_SCHEME.length()).trim();\n\n try {\n // Check if the token is valid\n validateToken(token);\n\n //extract the data you need\n String username = Jwts.parser().setSigningKey(keyGenerator.getKey()).parseClaimsJws(token).getBody().getIssuer();\n if (username!=null) {\n final SecurityContext securityContext = requestContext.getSecurityContext();\n requestContext.setSecurityContext(new SecurityContext() {\n @Override\n public Principal getUserPrincipal() {\n return new Principal() {\n @Override\n public String getName() {\n return username;\n }\n };\n }\n @Override\n public boolean isUserInRole(String permission) {\n\n List<RoleEntity> roleEntities = userDao.getUserByUsername(username).getRoleEntityList();\n List<PermissionEntity> permissionEntities = new ArrayList<>();\n\n //creating the list containg all the permissionsAllowed\n for (RoleEntity r : roleEntities) {\n for (PermissionEntity p : r.getPermissionEntityList()) {\n if (!permissionEntities.contains(p)) {\n permissionEntities.add(p);\n }\n }\n\n }\n\n List<String> permissionStrings = new ArrayList<>();\n\n //getting all the types (description and id are not important)\n for (PermissionEntity p : permissionEntities) {\n permissionStrings.add(p.getType());\n }\n\n //returns true if the list contains the permission given as parameter\n for (String p : permissionStrings) {\n if (p.equals(permission)) {\n return true;\n }\n }\n return false;\n }\n @Override\n public boolean isSecure() {\n return true;\n }\n @Override\n public String getAuthenticationScheme() {\n return AUTHENTICATION_SCHEME;\n }\n });\n }\n //getting value from annotation\n Method resourceMethod = resourceInfo.getResourceMethod();\n Secured secured = resourceMethod.getAnnotation(Secured.class);\n if (secured != null){\n List<String> permissionStrings = new ArrayList<>();\n for (SecurityPermission s : secured.permissionsAllowed()) {\n permissionStrings.add(s.getText());\n }\n\n //performing authorization\n if (permissionStrings.size() > 0 && !isAuthenticated(requestContext)) {\n refuseRequest();\n }\n\n for (String role : permissionStrings) {\n if (requestContext.getSecurityContext().isUserInRole(role)) {\n return;\n }\n else {\n throw new AuthentificationException(ExceptionMessageCatalog.NOT_ALLOWED);\n }\n }\n\n refuseRequest();\n }\n } catch (AuthentificationException e) {\n abortWithUnauthorized(requestContext);\n }\n }",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();",
"public boolean isSecure( ) {\n\t\treturn scheme.equals( \"https\" );\n\t}",
"private void processSecurity(SecurityContext securityContext, ServerRequest req, ServerResponse res) {\n SecurityTracing tracing = SecurityTracing.get();\n tracing.securityContext(securityContext);\n\n // extract headers\n extractQueryParams(securityContext, req);\n\n securityContext.endpointConfig(securityContext.endpointConfig()\n .derive()\n .configMap(configMap)\n .customObjects(customObjects.orElse(new ClassToInstanceStore<>()))\n .build());\n\n try {\n AtxResult atnResult = processAuthentication(res, securityContext, tracing.atnTracing());\n\n AtxResult atzResult;\n if (atnResult.proceed) {\n atzResult = processAuthorization(req, res, securityContext, tracing.atzTracing());\n } else {\n atzResult = AtxResult.STOP;\n }\n\n if (atzResult.proceed) {\n // authorization was OK, we can continue processing\n tracing.logProceed();\n tracing.finish();\n\n // propagate context information in call to next\n res.next();\n } else {\n tracing.logDeny();\n tracing.finish();\n }\n } catch (Exception e) {\n tracing.error(e);\n LOGGER.log(Level.SEVERE, \"Unexpected exception during security processing\", e);\n abortRequest(res, null, Http.Status.INTERNAL_SERVER_ERROR_500.code(), Map.of());\n }\n\n // auditing\n res.whenSent(() -> processAudit(req, res, securityContext));\n }",
"public Integer getSecurity() {\n return security;\n }",
"@Override\n public void init(HttpSecurity http) throws Exception {\n http\n // disable csrf because of API mode\n .csrf().disable().sessionManagement()\n .sessionCreationPolicy(SessionCreationPolicy.STATELESS)\n\n .and()\n // manage routes securisation here\n .authorizeRequests().antMatchers(HttpMethod.OPTIONS).permitAll()\n\n // manage routes securisation here\n .and().authorizeRequests().antMatchers(HttpMethod.OPTIONS).permitAll()\n\n .antMatchers(\"/logout\", \"/\", \"/unsecured\").permitAll() //\n // .antMatchers(\"/**/catalog\").authenticated() //\n // .antMatchers(\"/**/catalog\").hasRole(\"CATALOG_MANAGER\") //\n\n .anyRequest().authenticated();\n\n }",
"private void validateAndSetAPISecurity(API api) {\n String apiSecurity = APIConstants.DEFAULT_API_SECURITY_OAUTH2;\n String security = api.getApiSecurity();\n if (security!= null) {\n apiSecurity = security;\n ArrayList<String> securityLevels = selectSecurityLevels(apiSecurity);\n apiSecurity = String.join(\",\", securityLevels);\n }\n if (log.isDebugEnabled()) {\n log.debug(\"API \" + api.getId() + \" has following enabled protocols : \" + apiSecurity);\n }\n\n api.setApiSecurity(apiSecurity);\n }",
"private Security() { }",
"PasswordProtection protection();",
"private Optional<Map.Entry<String, SecurityScheme>> getSecurityScheme(OpenAPI openAPI) {\n return Optional.ofNullable(openAPI.getComponents())\n .map(Components::getSecuritySchemes)\n .map(Map::entrySet)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst();\n }",
"public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}",
"@Bean\n EndpointsSecurityConfig endpointsConfig() {\n return http -> http\n .pathMatchers(HttpMethod.POST, \"/api/users\", \"/api/users/login\").permitAll()\n .pathMatchers(HttpMethod.GET, \"/api/profiles/**\").permitAll()\n .pathMatchers(HttpMethod.GET, \"/api/articles/**\").permitAll()\n .pathMatchers(HttpMethod.GET, \"/api/tags/**\").permitAll()\n .anyExchange().authenticated();\n }",
"public interface Securable\r\n{\r\n\t// public SecurityCheck addSecurityCheck( String checkType, String checkName\r\n\t// );\r\n\t//\r\n\t// public void addSecurityChecksListener( SecurityTestListener listener );\r\n\t//\r\n\t// public int getSecurityCheckCount();\r\n\t//\r\n\t// public SecurityCheck getSecurityCheckAt( int c );\r\n\t//\r\n\t// public void removeSecurityChecksListener( SecurityTestListener listener );\r\n\t//\r\n\t// public void removeSecurityCheck( SecurityCheck securityCheck );\r\n\t//\r\n\t// // public AssertionStatus getAssertionStatus();\r\n\t// //\r\n\t// // public enum AssertionStatus\r\n\t// // {\r\n\t// // UNKNOWN, VALID, FAILED\r\n\t// // }\r\n\t//\r\n\t// // public String getAssertableContent();\r\n\t//\r\n\t// // public String getDefaultAssertableContent();\r\n\t//\r\n\t// // public AssertableType getAssertableType();\r\n\t//\r\n\t// public List<SecurityCheck> getSecurityCheckList();\r\n\t//\r\n\t// public SecurityCheck getSecurityCheckByName( String name );\r\n\t//\r\n\t// public ModelItem getModelItem();\r\n\t//\r\n\t// public Interface getInterface();\r\n\t//\r\n\t// public SecurityCheck cloneSecurityCheck( SecurityCheck source, String name\r\n\t// );\r\n\t//\r\n\t// public Map<String, SecurityCheck> getSecurityChecks();\r\n\t//\r\n\t// public SecurityCheck moveSecurityCheck( int ix, int offset );\r\n}",
"WithCreate withSecurityToken(SourceControlSecurityTokenProperties securityToken);",
"public boolean requiresSecurityPolicy()\n {\n return true;\n }",
"public interface ICredentials extends RequestPolicyFactory {\n\n}",
"boolean isNonSecureAccess();",
"public Boolean hasSecurity() {\n return this.hasSecurity;\n }",
"@Override\n protected void configure(HttpSecurity httpSecurity) throws Exception {\n httpSecurity.cors().configurationSource(request -> {\n var cors = new CorsConfiguration();\n cors.setAllowedOrigins(List.of(\"*\"));\n cors.setAllowedMethods(List.of(\"GET\",\"POST\", \"PUT\", \"DELETE\", \"OPTIONS\"));\n cors.setAllowedHeaders(List.of(\"*\"));\n return cors;\n })\n .and()\n .csrf()\n .disable()\n .authorizeRequests()\n .antMatchers(DOCS_WHITELIST).permitAll()\n\n .antMatchers(HttpMethod.POST, jwtConfig.getUri() + \"/login\").permitAll()\n\n .antMatchers(HttpMethod.POST, \"/users/**\").permitAll()\n .antMatchers(HttpMethod.GET, \"/users/me/\").permitAll()\n .antMatchers(HttpMethod.GET, \"/users/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.DELETE, \"/users/**\").hasAnyRole(\"ADMIN\")\n .antMatchers(HttpMethod.PUT, \"/users/{userId}/\").hasAnyRole(\"ADMIN\")\n\n .antMatchers(\"/rooms/{roomId}/reservations/\").permitAll()\n\n .antMatchers(HttpMethod.GET, \"/buildings/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.POST,\"/buildings/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.PUT,\"/buildings/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.DELETE, \"/buildings/**\").hasRole(\"ADMIN\")\n\n .antMatchers(HttpMethod.GET, \"/rooms/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.POST,\"/rooms/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.PUT,\"/rooms/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.DELETE, \"/rooms/**\").hasRole(\"ADMIN\")\n\n .antMatchers(HttpMethod.GET, \"/sections/**\").hasAnyRole(\"USER\", \"MODERATOR\", \"ADMIN\")\n .antMatchers(HttpMethod.POST,\"/sections/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.PUT,\"/sections/**\").hasAnyRole(\"ADMIN\", \"MODERATOR\")\n .antMatchers(HttpMethod.DELETE, \"/sections/**\").hasRole(\"ADMIN\")\n\n .antMatchers(\"/admin/**\").hasRole(\"ADMIN\")\n\n .anyRequest()\n .authenticated()\n .and()\n .exceptionHandling()\n .authenticationEntryPoint(\n (req, res, e) -> {\n res.setContentType(\"application/json\");\n res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n res.getOutputStream().println(\"{ \\\"message\\\": \\\"Brukernavn eller passord er feil\\\"}\");\n })\n .and()\n .addFilter(new JWTUsernamePasswordAuthenticationFilter(refreshTokenService, authenticationManager(), jwtConfig))\n .addFilterAfter(new JWTAuthenticationFilter(jwtConfig, jwtUtil, userDetailsService), UsernamePasswordAuthenticationFilter.class)\n .sessionManagement()\n .sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n }",
"FirewallPolicyService firewallpolicy();",
"public List<Yng_Security> findAll() {\n\t\treturn securityDao.findAll();\r\n\t}",
"public WebloungeWebConsoleSecurityProvider(SecurityService securityService) {\n this.securityService = securityService;\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer security) {\n //allow send client_id and client_secret in params\n //otherwise headers:{Authorization: 'Basic client_id:client_secret in base64}\n security.allowFormAuthenticationForClients();\n security.checkTokenAccess(\"isAuthenticated()\");\n// security.checkTokenAccess(\"permitAll()\");\n }",
"@Test\n\tpublic void shouldDefineComponentsSecuritySchemesForApiKey() throws Exception {\n\t\tmockMvc\n\t\t\t\t.perform(get(\"/api-docs\"))\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(jsonPath(\"$.security[1].apiKeyScheme\", is(new ArrayList<String>())))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.apiKeyScheme.type\", is(\"apiKey\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.apiKeyScheme.in\", is(\"header\")))\n\t\t;\n\t}",
"public boolean isSecure() {\n return m_Secure;\n }",
"public void setSecurity(Security security)\n {\n __m_Security = security;\n }",
"public interface SecurityConfigurator {\n\n /**\n * The provider to use for {@link SSLEngine}.\n */\n enum SslProvider {\n /**\n * Use the stock JDK implementation.\n */\n JDK,\n /**\n * Use the openssl implementation.\n */\n OPENSSL,\n /**\n * Auto detect which implementation to use.\n */\n AUTO\n }\n\n /**\n * Trusted certificates for verifying the remote endpoint's certificate. The input stream should\n * contain an {@code X.509} certificate chain in {@code PEM} format.\n *\n * @param trustCertChainSupplier a supplier for the certificate chain input stream.\n * <p>\n * The responsibility to call {@link InputStream#close()} is transferred to callers of the returned\n * {@link Supplier}. If this is not the desired behavior then wrap the {@link InputStream} and override\n * {@link InputStream#close()}.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(Supplier<InputStream> trustCertChainSupplier);\n\n /**\n * Trust manager for verifying the remote endpoint's certificate.\n * The {@link TrustManagerFactory} which take preference over any configured {@link Supplier}.\n *\n * @param trustManagerFactory the {@link TrustManagerFactory} to use.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(TrustManagerFactory trustManagerFactory);\n\n /**\n * The SSL protocols to enable, in the order of preference.\n *\n * @param protocols the protocols to use.\n * @return {@code this}.\n * @see SSLEngine#setEnabledProtocols(String[])\n */\n SecurityConfigurator protocols(String... protocols);\n\n /**\n * The cipher suites to enable, in the order of preference.\n *\n * @param ciphers the ciphers to use.\n * @return {@code this}.\n */\n SecurityConfigurator ciphers(Iterable<String> ciphers);\n\n /**\n * Set the size of the cache used for storing SSL session objects.\n *\n * @param sessionCacheSize the cache size.\n * @return {@code this}.\n */\n SecurityConfigurator sessionCacheSize(long sessionCacheSize);\n\n /**\n * Set the timeout for the cached SSL session objects, in seconds.\n *\n * @param sessionTimeout the session timeout.\n * @return {@code this}.\n */\n SecurityConfigurator sessionTimeout(long sessionTimeout);\n\n /**\n * Sets the {@link SslProvider} to use.\n *\n * @param provider the provider.\n * @return {@code this}.\n */\n SecurityConfigurator provider(SslProvider provider);\n}",
"@Test\n\tpublic void shouldDefineComponentsSecuritySchemesForOAuth2() throws Exception {\n\t\tmockMvc\n\t\t\t\t.perform(get(\"/api-docs\"))\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(jsonPath(\"$.security[2].oAuthScheme\", is(new ArrayList<String>())))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.type\", is(\"oauth2\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.description\", is(\"This API uses OAuth 2 with the implicit grant flow. [More info](https://api.example.com/docs/auth)\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.flows.implicit.authorizationUrl\", is(\"https://api.example.com/oauth2/authorize\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.flows.implicit.scopes.read_pets\", is(\"read your pets\")))\n\t\t\t\t.andExpect(jsonPath(\"$.components.securitySchemes.oAuthScheme.flows.implicit.scopes.write_pets\", is(\"modify pets in your account\")))\n\t\t;\n\t}",
"@Override\n public void close() throws SecurityException {\n }",
"public void setSecure(boolean mySecure)\n\t{\n\t\tthis.secure = mySecure;\n\t}",
"WithCreate withSecurityProfile(SecurityProfile securityProfile);",
"public boolean isSecure() {\n return secure;\n }",
"public abstract boolean authenticate(ServiceSecurity serviceSecurity, SecurityContext securityContext);",
"public ShowSecurityResponse showSecurity(ShowSecurityRequest request) throws GPUdbException {\n ShowSecurityResponse actualResponse_ = new ShowSecurityResponse();\n submitRequest(\"/show/security\", request, actualResponse_, false);\n return actualResponse_;\n }",
"@GetMapping(path = \"/secure/hello\")\n\t@PreAuthorize(\"hasRole('USER') and #oauth2.hasScope('read')\")\n\tpublic String getSecureHello() {\n\t\treturn \"Hello Secure\";\n\t}",
"Set<Scheme> getSchemes();",
"public interface SecurityMechanism extends EObject {\r\n}",
"public interface SecurityService\r\n{\r\n\t/**\r\n\t * This method return true if the given 'securityToken' is a valid token for the given security service. The security service can be any service\r\n\t * such as OAuth, LDAP, ActiveDirectory, OpenID etc. It is up to the implementor of this interface to interact with the appropriate security\r\n\t * service to determine if the given securityToken is valid. Reasons for a token to not be valid include but are not limited to, expired tokens, \r\n\t * incorrect tokens, not authenticated tokens etc.<br/>\r\n\t * This method will be used by the provider in a DIRECT environment to authenticate/validate a consumer.\r\n\t * \r\n\t * @param securityToken The token that shall be validated against a given security service such as LDAP, OAuth, Active Directory, etc.\r\n\t * @param requestMetadata Metadata that has been sourced from a request. The environmentID property is always null because the token is\r\n * not yet authenticated and therefore the environment is not yet determined. \r\n\t * \r\n\t * @return TRUE if the token is known and valid to the security server and not expired. If a token is expired then FALSE should be returned.\r\n\t */\r\n\tpublic boolean validate(String securityToken, RequestMetadata requestMetadata);\r\n\r\n\t/**\r\n\t * This method may contact the security server which can be an OAuth server, and LDAP server a Active Directory etc. In return it will provide \r\n\t * information that relate to the securityToken such as: <br/>\r\n\t * a) Information about the application and/or user of that securityToken (appUserInfo property populated in the TokenInfo) or<br/>\r\n\t * b) Information about the SIF environment or SIF session the securityToken relates to. This would be the case for already existing SIF\r\n\t * Environments.<br/>\r\n\t * Further an expire date might be set for the securityToken if the token has expired. If the securityToken does not expire then the \r\n\t * expire date is null in the returned TokenInfo object.<br/>\r\n * This method will be used by the provider in a DIRECT environment to get information about a consumer's security token.\r\n\t * \r\n\t * @param securityToken The security token for which the TokenInfo shall be returned.\r\n\t * @param requestMetadata Metadata that has been sourced from a request. The environmentID property is always null because the token is\r\n * not yet authenticated and therefore the environment is not yet determined. \r\n\t * \r\n\t * @return See Desc. It is expected that this method only returns either the environmentKey or the SIF environment ID or the SIF session token but\r\n\t * not all of these at the same time.\r\n\t */\r\n\tpublic TokenInfo getInfo(String securityToken, RequestMetadata requestMetadata);\r\n\t\r\n\t/**\r\n\t * This method may contact the security server which can be an OAuth server, and LDAP server a Active Directory etc. to generate a \r\n\t * security token based on the given 'coreInfo'. It is expected that any consumer or a provider in a BROKERED environment calls this \r\n\t * method to retrieve a security token which it will use as the authorisation token in all SIF requests to a provider or broker.\r\n\t * \r\n\t * @param coreInfo Information about the consumer/provider that might be used to generate a security token by the external security service.\r\n\t * In most cases it would at least need the application key.\r\n\t * @param password It is very likely that some sort of password will be required to generate a security token.\r\n\t * \r\n\t * @return A TokenInfo object which will have the 'token' property set (the security token). Optional the 'tokenExpiryDate' may be set\r\n\t * if the token has an expire date. If the 'tokenExpiryDate' is null it is assumed that the returned security token won't expire.\r\n\t * The returned token should only be a token without any authentication method as a prefix. For example the token may be\r\n\t * \"ZjI2NThiNTktNDM1Yi00YThkLTlmNzYtYzI0MDBiNjY1NWMxOlBhc3N3b3JkMQ\". It should not hold the authentication method such as 'Bearer'\r\n\t * (i.e. not look like this: \"Bearer ZjI2NThiNTktNDM1Yi00YThkLTlmNzYtYzI0MDBiNjY1NWMxOlBhc3N3b3JkMQ\"). The SIF3 Framework will\r\n\t * manage the authentication method.\r\n\t */\r\n\tpublic TokenInfo createToken(TokenCoreInfo coreInfo, String password);\r\n}",
"@Test\n public void schemeTest() {\n assertEquals(\"VISA_BUSINESS\", authResponse.getScheme());\n }",
"public boolean isSecure() {\n return channel.isSecure();\n }",
"void assertSecureRequest(HttpServletRequest request) throws AccessControlException;",
"@Override\n public void configure(WebSecurity web) throws Exception {\n web.ignoring().antMatchers(\"/v2/api-docs\")//\n .antMatchers(\"/swagger-resources/**\")//\n .antMatchers(\"/swagger-ui.html\")//\n .antMatchers(\"/configuration/**\")//\n .antMatchers(\"/webjars/**\")//\n .antMatchers(\"/public\")\n \n // Un-secure H2 Database (for testing purposes, H2 console shouldn't be unprotected in production)\n .and()\n .ignoring()\n .antMatchers(\"/h2-console/**/**\");;\n }",
"public SecurityType getSecurityType() {\n return securityType;\n }",
"void applySchemes(ReaderContext context, Operation operation, Method method);",
"public Secure() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}",
"public boolean checksec( String method,int ref)\n\t{\n\t\tASPManager mgr = getASPManager();\n\t\tString isSecure[] = new String[6] ;\n\n\t\tisSecure[ref] = \"false\" ; \n\t\tString splitted[] = split(method, \".\"); \n\n\t\tsecBuff = mgr.newASPTransactionBuffer();\n\t\tsecBuff.addSecurityQuery(splitted[0],splitted[1]);\n\n\t\tsecBuff = mgr.perform(secBuff);\n\n\t\tif (secBuff.getSecurityInfo().itemExists(method))\n\t\t{\n\t\t\tisSecure[ref] = \"true\";\n\t\t\treturn true; \n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}",
"public void applySecurity(String serviceName, String scenarioId, String policyPath,\n String[] trustedStores, String privateStore,\n String[] userGroups) throws SecurityConfigException {\n\n AxisService service = axisConfig.getServiceForActivation(serviceName);\n if (service == null) {\n throw new SecurityConfigException(\"nullService\");\n }\n\n String serviceGroupId = service.getAxisServiceGroup().getServiceGroupName();\n\n try {\n if (userGroups != null) {\n Arrays.sort(userGroups);\n if (Arrays.binarySearch(userGroups, CarbonConstants.REGISTRY_ANONNYMOUS_ROLE_NAME) > -1) {\n log.error(\"Security breach. A user is attempting to enable anonymous for UT access\");\n throw new SecurityConfigException(\"Invalid data provided\"); // obscure error message\n }\n }\n\n boolean transactionStarted = serviceGroupFilePM.isTransactionStarted(serviceGroupId);\n if (!transactionStarted) {\n serviceGroupFilePM.beginTransaction(serviceGroupId);\n }\n boolean registryTransactionStarted = Transaction.isStarted();\n if (!registryTransactionStarted) {\n registry.beginTransaction(); //is this really needed?\n }\n\n this.disableSecurityOnService(serviceName);\n\n // if the service is a ghost service, load the actual service\n if (GhostDeployerUtils.isGhostService(service)) {\n try {\n service = GhostDeployerUtils.deployActualService(axisConfig, service);\n } catch (AxisFault axisFault) {\n log.error(\"Error while loading actual service from Ghost\", axisFault);\n }\n }\n\n boolean isRahasEngaged = false;\n applyPolicy(service, scenarioId, policyPath, trustedStores, privateStore);\n isRahasEngaged = engageModules(scenarioId, serviceName, service);\n disableRESTCalls(serviceName, scenarioId);\n persistData(service, scenarioId, privateStore, trustedStores, userGroups, isRahasEngaged);\n if (!transactionStarted) {\n serviceGroupFilePM.commitTransaction(serviceGroupId);\n }\n if (!registryTransactionStarted) {\n registry.commitTransaction();\n }\n // finally update the ghost file if GD is used..\n if (service.getFileName() != null) {\n updateSecScenarioInGhostFile(service.getFileName().getPath(), serviceName, scenarioId);\n }\n\n this.getPOXCache().remove(serviceName);\n Cache<String, String> cache = getPOXCache();\n if (cache != null) {\n cache.remove(serviceName);\n }\n\n //Adding the security scenario ID parameter to the axisService\n //This parameter can be used to get the applied security scenario\n //without reading the service meta data file.\n try {\n Parameter param = new Parameter();\n param.setName(SecurityConstants.SCENARIO_ID_PARAM_NAME);\n param.setValue(scenarioId);\n service.addParameter(param);\n } catch (AxisFault axisFault) {\n log.error(\"Error while adding Scenario ID parameter\", axisFault);\n }\n\n try {\n AxisModule rahas = service.getAxisConfiguration().getModule(\"rahas\");\n if (!\"scenario1\".equals(scenarioId)) {\n service.disengageModule(rahas);\n service.engageModule(rahas);\n }\n } catch (AxisFault e1) {\n String msg = \"Failed to propagate changes immediately. It will take time to update nodes in cluster\";\n log.error(msg, e1);\n throw new SecurityConfigException(msg, e1);\n }\n\n } catch (RegistryException | PersistenceException e) {\n log.error(\"Error in applying security\", e);\n serviceGroupFilePM.rollbackTransaction(serviceGroupId);\n try {\n registry.rollbackTransaction();\n } catch (RegistryException ex) {\n log.error(\"Error while rollback\", ex);\n throw new SecurityConfigException(\"Error in applying security\", e);\n }\n throw new SecurityConfigException(\"Error in applying security\", e);\n }\n }",
"private void addRoles(Secured secured, WebServlet webServlet, Map<String, String[]> map) {\n if (secured != null && webServlet != null) {\n if (webServlet.urlPatterns().length > 0) {\n Arrays.stream(webServlet.urlPatterns()).forEach(p -> map.put(p, secured.roles()));\n }\n }\n }",
"@Override\npublic boolean supports(Class<?> authentication) {\n return true;\n}",
"@Override\n public List<ResourceFilter> create(AbstractMethod am) {\n if (am.isAnnotationPresent(DenyAll.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter());\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.DENNY_ALL_METHOD)));\n }\n\n // RolesAllowed on the method takes precedence over PermitAll\n RolesAllowed ra = am.getAnnotation(RolesAllowed.class);\n if (ra != null) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.ROLES_ALLOWED_METHOD, ra.value())));\n }\n\n // PermitAll takes precedence over RolesAllowed on the class\n if (am.getResource().isAnnotationPresent(PermitAll.class)) {\n if (am.getResource().isAnnotationPresent(Authenticated.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(true));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.PERMIT_ALL_CLASS)));\n }\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.UNAUTHENTICATED)));\n }\n\n // RolesAllowed on the class takes precedence over PermitAll\n ra = am.getResource().getAnnotation(RolesAllowed.class);\n if (ra != null) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.ROLES_ALLOWED_CLASS, ra.value())));\n }\n\n if (am.getResource().isAnnotationPresent(Authenticated.class)\n && !am.isAnnotationPresent(DenyAll.class)\n && !am.isAnnotationPresent(RolesAllowed.class)) {\n// return Collections.<ResourceFilter>singletonList(new RestAuthenticationFilter(ra.value()));\n return new ArrayList<ResourceFilter>(Arrays.asList(new RestAuthenticationFilter(AuthType.PERMIT_ALL_METHOD)));\n }\n\n // No need to check whether PermitAll is present.\n return null;\n }",
"public void setSecure(boolean secure) {\n m_Secure = secure;\n }",
"public interface HttpAuthenticationScheme<C extends AuthenticationSchemeConfiguration> {\n\n /**\n * Called one time during initialization.\n *\n * @param config The configuration.\n */\n void initialize(C config);\n\n /**\n * Extracts the credentials from the given {@link javax.servlet.http.HttpServletRequest} and populates the\n * {@link org.picketlink.credential.DefaultLoginCredentials} with them. If the request is not an authentication attempt (as defined by the\n * implementation), then {@code creds} is not affected.\n *\n * @param request\n * The current request, to examine for authentication information.\n * @param creds\n * The credentials instance that will be populated with the credentials found in the request, if any.\n */\n void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds);\n\n /**\n * Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue\n * with the authentication.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * If this method is called, the rest of the filter chain will <i>not</i> be processed, so\n * implementations are free to read the request body if they so choose.\n * @param response\n * The current response, which can be used to send HTTP error results, redirects, or for sending\n * additional challenge headers.\n */\n void challengeClient(HttpServletRequest request, HttpServletResponse response);\n\n /**\n * Performs any post-authentication logic regarding of the authentication result.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * @param response\n * The current response, which can be used to send an HTTP response, or a redirect.\n * @return true if the processing of the filter chain should continue, false if the processing should stop\n * (typically because this filter has already sent a response).\n */\n void onPostAuthentication(HttpServletRequest request, HttpServletResponse response);\n}",
"@Override\n public void configure(WebSecurity web) throws Exception {\n }",
"ContentSecurityPolicy getContentSecurityPolicy();",
"public abstract T useTransportSecurity(File certChain, File privateKey);",
"@Override\n\tpublic String[] getAuthorizedUrlPatterns() {\n\t\treturn null;\n\t}",
"private JwtConsumer validateSoftwareStatement(VerificationKeyResolver resolver)\n {\n return new JwtConsumerBuilder()\n .setExpectedIssuer(true, issuer)// Ensure expected issuer\n .setVerificationKeyResolver(resolver) // Verify the signature\n .setJwsAlgorithmConstraints(signatureConstraint)// Restrict the list of allowed signing algorithms\n .build();\n }"
] | [
"0.83928627",
"0.7343119",
"0.6788539",
"0.6449437",
"0.6408042",
"0.6139753",
"0.6004057",
"0.5881046",
"0.58345467",
"0.5702554",
"0.56907374",
"0.56773674",
"0.5627138",
"0.56034625",
"0.55243695",
"0.5500224",
"0.54921967",
"0.54903764",
"0.5455307",
"0.53996336",
"0.53530633",
"0.5348041",
"0.53440213",
"0.53395486",
"0.5319512",
"0.5319512",
"0.5307057",
"0.52888685",
"0.5287716",
"0.527363",
"0.5241091",
"0.5235211",
"0.5234557",
"0.5234557",
"0.5220927",
"0.5215245",
"0.5209396",
"0.51998",
"0.51862603",
"0.51822096",
"0.5163409",
"0.515153",
"0.5145694",
"0.5140099",
"0.5128253",
"0.5123522",
"0.5101325",
"0.50925916",
"0.50866765",
"0.5082214",
"0.5069677",
"0.5065634",
"0.5059585",
"0.50557935",
"0.50188595",
"0.5013902",
"0.5012213",
"0.5010687",
"0.49992612",
"0.49986622",
"0.49980855",
"0.49971688",
"0.49905673",
"0.4946067",
"0.49389386",
"0.49360874",
"0.4934908",
"0.49312085",
"0.49301794",
"0.49254352",
"0.49211696",
"0.4912911",
"0.4909185",
"0.49027714",
"0.4900503",
"0.48898134",
"0.48877656",
"0.4885909",
"0.48836702",
"0.48799267",
"0.4869887",
"0.48674184",
"0.48627666",
"0.4854622",
"0.48517454",
"0.4847083",
"0.4831111",
"0.48185897",
"0.48185265",
"0.4817938",
"0.48172206",
"0.48051456",
"0.47964114",
"0.4795741",
"0.47953042",
"0.47827363",
"0.4770614",
"0.47608298",
"0.47540444",
"0.4742626"
] | 0.7375261 | 1 |
Declaration of resource types used in this API | List<ResourceType> resourceTypes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ResourceBase> listTypes() throws ResourceException;",
"public List getResourceTypes(ResourceType resourceType);",
"public interface IResourceType {\n\n\t/**\n\t * A required attribute that identifies the ResourceType-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * A ResourceType-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A ResourceType-element contains zero or more Param-elements whith one of the following values for its\n\t * style-attribute: query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A ResourceType-element contains zero or more Method-elements, each of which describes a HTTP protocol method that\n\t * can be applied to a resource of this type.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\tpublic String toString();\n\n}",
"public IResourceType getType();",
"ResourceFilesType createResourceFilesType();",
"public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}",
"public List<Class<? extends Resource>> getAvailableTypes(OgemaLocale locale);",
"public static java.util.Iterator<org.semanticwb.model.ResourceType> listResourceTypes()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceType>(it, true);\r\n }",
"public final ArrayList<Class<? extends IResource>> getSelectableResourceTypes() {\n\treturn mSelectableResourceTypes;\n}",
"Class<? extends Resource> getResourceType();",
"public ResourceType getResouceType() {\n return type;\n }",
"String getResourceType();",
"public void setResources(List<PrimaryType> resources) {\n this.resources = resources;\n }",
"@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class);\n resources.add(JobResource.class);\n return resources;\n }",
"@XmlAttribute (namespace = CommonNamespaces.GEDCOMX_COMMON_NAMESPACE)\n @XmlQNameEnumRef (ResourceType.class)\n @XmlSchemaType (name = \"anyURI\", namespace = XMLConstants.W3C_XML_SCHEMA_NS_URI)\n public URI getType() {\n return type;\n }",
"public String getResourceType () {\n return resourceType;\n }",
"public String getResourceType () {\n return resourceType;\n }",
"public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}",
"public String getResourceType() {\n return this.resourceType;\n }",
"public ResourceType type() {\n return type;\n }",
"public String getResourceType() {\n return resourceType;\n }",
"public interface IResource {\n\t// TODO: Have priorities for resources either here or implemented in IResourceView\n\n\n\tpublic String getName();\n\t\n\tpublic IUniformLocation getLocation(); // public IStorageLocation getLocation() ?\n\t\n\tpublic IResourceType getType();\n}",
"public interface ResourceManager extends RemoteService{\n\n /**\n * This method returns a list of the resources.\n *\n * @return This list of resources.\n * @throws ResourcesException\n */\n public List<ResourceBase> listTypes() throws ResourceException;\n}",
"public Set<ResourceType> getAllResourceTypes() {\n parseExternalResources();\n Set<ResourceType> resourceTypes = new HashSet<ResourceType>();\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (ResourceType rt : group.getResourceTypeCollection()) {\n if (!contains(resourceTypes, rt))\n resourceTypes.add(rt);\n }\n }\n return resourceTypes;\n }",
"public void setType(Class<? extends Resource> type) {\n this.type = type;\n }",
"public void setResourceType (String resourceType) {\n this.resourceType = resourceType;\n }",
"public boolean isTypeAvailable(Class<? extends Resource> resourceType, OgemaLocale locale);",
"public Set<String> getAvailableTypes() {\n return ApiSpecificationFactory.getTypes();\n }",
"public String getResourceType() {\n return this.ResourceType;\n }",
"public String getResourceType( )\r\n {\r\n return _strResourceType;\r\n }",
"@Override\n public IOperation.Type getOperationType() {\n return IOperation.Type.RESOURCE;\n }",
"public List<PrimaryType> getResources() {\n return resources;\n }",
"public void setResourceType (String resourceType) {\n this.resourceType = resourceType;\n }",
"public String getResourceType() {\n\t\treturn _resourceType;\n\t}",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(rest.RmiApiResource.class);\n }",
"UsedTypes getTypes();",
"public static Collection<CheckNameResourceTypes> values() {\n return values(CheckNameResourceTypes.class);\n }",
"public void setResourceType(String ResourceType) {\n this.ResourceType = ResourceType;\n }",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(com.compguide.web.Persistence.WebService.ActiveIngredientFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.AutenticationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ConditionFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ConditionSetFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.CyclePartDefinitionFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.CyclePartPeriodicityFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.DurationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.EventFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ExamFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.FormulaFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.GeneratedTaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.GuideExecFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.GuidelineFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.InteractionpairFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.MedicationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.MedicationtaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.NonMedicationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.NotificationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ObservationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.OutcomeFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.PatientFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.PeriodicityFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ProcedureFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ScheduleTaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.SimilarmedicationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.StopConditionSetFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalElementFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalOperatorFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalRestrictionFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalUnitFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.UserFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.WaitingTimeFacadeREST.class);\n resources.add(org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider.class);\n resources.add(org.codehaus.jackson.jaxrs.JacksonJsonProvider.class);\n resources.add(org.codehaus.jackson.jaxrs.JsonMappingExceptionMapper.class);\n resources.add(org.codehaus.jackson.jaxrs.JsonParseExceptionMapper.class);\n resources.add(org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.EntityResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.MetadataResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceUnitResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.QueryResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.SingleResultQueryResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.EntityResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceUnitResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.QueryResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.SingleResultQueryResource.class);\n }",
"@Override\n public Set<Class<?>> getClasses() {\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(api.Auth.class);\n resources.add(api.UserApi.class);\n resources.add(api.TicketApi.class);\n resources.add(api.DepartmentApi.class);\n resources.add(api.MessageApi.class);\n resources.add(api.MilestoneApi.class);\n resources.add(api.InvitationApi.class);\n return resources;\n }",
"public void setResourceType(String resourceType) {\n this.resourceType = resourceType;\n }",
"public void setResourceType(String resourceType) {\n this.resourceType = resourceType;\n }",
"public List<URI> getType();",
"@Test\n public void testCreateResourceType()\n {\n JsonNode userResourceType = JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON);\n ResourceType resourceType = Assertions.assertDoesNotThrow(() -> new ResourceType(schemaFactory, userResourceType));\n Assertions.assertEquals(Collections.singletonList(\"urn:ietf:params:scim:schemas:core:2.0:ResourceType\"),\n new ArrayList<>(resourceType.getSchemas()));\n Assertions.assertEquals(\"User\", resourceType.getId().get());\n Assertions.assertEquals(\"User\", resourceType.getName());\n Assertions.assertEquals(\"User Account\", resourceType.getDescription().get());\n Assertions.assertEquals(SchemaUris.USER_URI, resourceType.getSchema());\n Assertions.assertEquals(\"/Users\", resourceType.getEndpoint());\n\n JsonNode chuckNorris = JsonHelper.loadJsonDocument(USER_RESOURCE);\n DocumentDescription documentDescription = new DocumentDescription(resourceType, chuckNorris);\n Assertions.assertEquals(schemaFactory.getResourceSchema(SchemaUris.USER_URI), documentDescription.getMetaSchema());\n Assertions.assertEquals(1, resourceType.getSchemas().size());\n Assertions.assertEquals(schemaFactory.getMetaSchema(SchemaUris.RESOURCE_TYPE_URI),\n schemaFactory.getMetaSchema(resourceType.getSchemas().iterator().next()));\n\n List<Schema> schemaExtensions = resourceType.getNotRequiredResourceSchemaExtensions();\n Assertions.assertEquals(1, schemaExtensions.size());\n Assertions.assertEquals(schemaFactory.getResourceSchema(SchemaUris.ENTERPRISE_USER_URI), schemaExtensions.get(0));\n\n Assertions.assertEquals(0, resourceType.getRequiredResourceSchemaExtensions().size());\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();",
"public ResourceType getResourceType() {\n\treturn this.resourceType;\n }",
"protected void setResourceType(ResourceType resrcType) {\n\tthis.resourceType = resrcType;\n }",
"Collection<? extends Resource> getResources();",
"String resourceType();",
"List<Resource> resources();",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(CorsFilter.class);\n resources.add(ExceptionHandler.class);\n resources.add(org.glassfish.jersey.server.wadl.internal.WadlResource.class);\n resources.add(BaseResource.class);\n resources.add(CustomerResource.class);\n }",
"public ArrayList<Resource> getStaticInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientStaticInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuSpeedAttribute = new Attribute();\n\t\tcpuSpeedAttribute.setAttributeType(AttributeType.CPUSpeed);\n\t\tcpuSpeedAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getCPUSpeed()));\n\t\tcpuSpeedAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuSpeedAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramTotalAttribute = new Attribute();\n\t\tramTotalAttribute.setAttributeType(AttributeType.TotalMemory);\n\t\tramTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getRAMInfo()));\n\t\tramTotalAttribute.setDate(new Date());\n\t\tramResource.addAttribute(ramTotalAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ OS\n\t\tResource osResource = new Resource();\n\t\tosResource.setResourceType(ResourceType.OS);\n\t\tosResource.setName(clientStaticInfo.getOSInfo());\n\n\t\tresources.add(osResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageTotalAttribute = new Attribute();\n\t\tsstorageTotalAttribute.setAttributeType(AttributeType.TotalStorage);\n\t\tsstorageTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getSStorageInfo()));\n\t\tsstorageTotalAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageTotalAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}",
"@objid (\"5292c322-23d0-4a99-9d8c-234433b5b53c\")\n EList<ResourceType> getDefinedResourceType();",
"private int getSelectedResourceTypes(IResource[] resources) {\r\n int types = 0;\r\n for (IResource resource : resources) {\r\n types |= resource.getType();\r\n }\r\n return types;\r\n }",
"@ApiModelProperty(value = \"The UUIDs of the resource type associated with the policy\")\n public String getResourceTypeUuid() {\n return resourceTypeUuid;\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();",
"@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(org.olanto.translate.service.rest.myclass.class);\n }",
"ResourceAPI createResourceAPI();",
"public List getResourceTypesByIdList(final Map idList);",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(nl.tjonahen.abk.backend.AbkCrossOriginResourceSharingFilter.class);\n resources.add(nl.tjonahen.abk.backend.boundry.account.AccountsResource.class);\n resources.add(nl.tjonahen.abk.backend.boundry.contraaccount.ContraAccountsResource.class);\n resources.add(nl.tjonahen.abk.backend.boundry.costcenter.CostCentersResource.class);\n resources.add(nl.tjonahen.abk.backend.boundry.transaction.FinancialTransactionsResource.class);\n }",
"public static Map<String, List<?>> getResourcesPerType(SearchResponse resp) {\n\n\t\tMap<String, List<ObjectId>> idsOfEachType = new HashMap<String, List<ObjectId>>();\n\t\tresp.getHits().forEach( (h) -> {\n\t\t\tif(!idsOfEachType.containsKey(h.getType())) {\n\t\t\t\tidsOfEachType.put(h.getType(), new ArrayList<ObjectId>() {{ add(new ObjectId(h.getId())); }});\n\t\t\t} else {\n\t\t\t\tidsOfEachType.get(h.getType()).add(new ObjectId(h.getId()));\n\t\t\t}\n\t\t});\n\n\t\tMap<String, List<?>> resourcesPerType = new HashMap<String, List<?>>();\n\n\t\tfor(Entry<String, List<ObjectId>> e: idsOfEachType.entrySet()) {\n\t\t\tresourcesPerType.put(e.getKey() , DB.getRecordResourceDAO().getByIds(e.getValue()));\n\n\t\t}\n\n\t\treturn resourcesPerType;\n\t}",
"@objid (\"be13c135-d5bf-4f14-9794-2c2fbdc9e900\")\n <T extends ResourceType> List<T> getDefinedResourceType(java.lang.Class<T> filterClass);",
"ImmutableList<SchemaOrgType> getLearningResourceTypeList();",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(co.matisses.web.mbean.BaruApplicationMBean.class);\n resources.add(co.matisses.web.mbean.ImagenProductoMBean.class);\n resources.add(co.matisses.web.rest.ClienteWebFacadeREST.class);\n resources.add(co.matisses.web.rest.DepartamentoSAPFacadeREST.class);\n resources.add(co.matisses.web.rest.EmpaqueVentaFacadeREST.class);\n resources.add(co.matisses.web.rest.EmpleadoFacadeREST.class);\n resources.add(co.matisses.web.rest.FacturaSAPFacadeREST.class);\n resources.add(co.matisses.web.rest.ItemInventarioFacadeREST.class);\n resources.add(co.matisses.web.rest.MercadoLibreREST.class);\n resources.add(co.matisses.web.rest.MunicipioFacadeREST.class);\n resources.add(co.matisses.web.rest.NotaCreditoFacadeREST.class);\n resources.add(co.matisses.web.rest.OperacionCajaFacadeREST.class);\n resources.add(co.matisses.web.rest.POSSessionValidatorREST.class);\n resources.add(co.matisses.web.rest.SocioDeNegociosFacadeREST.class);\n resources.add(co.matisses.web.rest.TarjetaCreditoSAPFacadeREST.class);\n resources.add(co.matisses.web.rest.TipoDocumentoREST.class);\n resources.add(co.matisses.web.rest.VentaPOSFacadeREST.class);\n resources.add(co.matisses.web.rest.regalos.ConsultaProductosREST.class);\n resources.add(co.matisses.web.rest.regalos.ContactoREST.class);\n resources.add(co.matisses.web.rest.regalos.FiltrosProductoREST.class);\n resources.add(co.matisses.web.rest.regalos.ListaRegalosREST.class);\n resources.add(co.matisses.web.rest.regalos.ListaRegalosSessionValidatorREST.class);\n }",
"@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }",
"public ArrayList<Resource> getDynamicInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientDynamicInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuUtilizationAttribute = new Attribute();\n\t\tcpuUtilizationAttribute.setAttributeType(AttributeType.CPUUtilization);\n\t\tcpuUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getCPUUsage()));\n\t\tcpuUtilizationAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuUtilizationAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramFreeAttribute = new Attribute();\n\t\tramFreeAttribute.setAttributeType(AttributeType.FreeMemory);\n\t\tramFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMFreeInfo()));\n\n\t\tramResource.addAttribute(ramFreeAttribute);\n\n\t\tramFreeAttribute.setDate(new Date());\n\n\t\tAttribute ramUtilizationAttribute = new Attribute();\n\t\tramUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.MemoryUtilization);\n\t\tramUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMUtilizationInfo()));\n\t\tramResource.addAttribute(ramUtilizationAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageFreeAttribute = new Attribute();\n\t\tsstorageFreeAttribute.setAttributeType(AttributeType.FreeStorage);\n\t\tsstorageFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getSStorageFreeInfo()));\n\t\tsstorageFreeAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageFreeAttribute);\n\n\t\tAttribute sstorageUtilizationAttribute = new Attribute();\n\t\tsstorageUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.StorageUtilization);\n\t\tsstorageUtilizationAttribute.setValue(Double\n\t\t\t\t.parseDouble(clientDynamicInfo.getSStorageUtilizationInfo()));\n\t\tsstorageUtilizationAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageUtilizationAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}",
"ApiEndpointType getType();",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(com.newgen.ws.usl.CCP.CCPApproval.class);\n resources.add(com.newgen.ws.usl.OTCBRZR.OTCBRZRApproval.class);\n resources.add(com.newgen.ws.usl.PTPInvoice.PTPInvoiceApproval.class);\n resources.add(com.newgen.ws.usl.PTPPayments.PTPPaymentsApproval.class);\n resources.add(com.newgen.ws.usl.SRApproval.SRApproval.class);\n resources.add(com.newgen.ws.usl.VM.VMApproval.class);\n resources.add(com.newgen.ws.usl.atl.ATLApproval.class);\n resources.add(com.newgen.ws.usl.legal.LegalApproval.class);\n resources.add(com.newgen.ws.usl.otc.OTCApproval.class);\n resources.add(com.newgen.ws.usl.rtr.RTRApproval.class);\n }",
"public void setResourceType(String resourceType) {\n\t\tthis._resourceType = resourceType;\n\t}",
"public int getResources(Type type) {\n \t\treturn resources[type.ordinal()];\n \t}",
"@JsonProperty(\"resourceType\")\n public ImportResourceType getResourceType();",
"IntegerResource installationType();",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(webservice.CampanhaFacadeREST.class);\n resources.add(webservice.CorreiosFacadeREST.class);\n resources.add(webservice.DisponibilidadecampanhasFacadeREST.class);\n resources.add(webservice.EmailFacadeREST.class);\n resources.add(webservice.EquipaFacadeREST.class);\n resources.add(webservice.EquipaTurnoFacadeREST.class);\n resources.add(webservice.EstabelecimentoFacadeREST.class);\n resources.add(webservice.GrupoFacadeREST.class);\n resources.add(webservice.HistoricocampanhaFacadeREST.class);\n resources.add(webservice.MaterialFacadeREST.class);\n resources.add(webservice.ModuloFacadeREST.class);\n resources.add(webservice.ModulogrupoFacadeREST.class);\n resources.add(webservice.NoticiaFacadeREST.class);\n resources.add(webservice.RelogiopontoFacadeREST.class);\n resources.add(webservice.TurnoEstabelecimentoFacadeREST.class);\n resources.add(webservice.TurnoFacadeREST.class);\n resources.add(webservice.UtilizadorFacadeREST.class);\n resources.add(webservice.VoluntarioEquipaFacadeREST.class);\n resources.add(webservice.VoluntarioFacadeREST.class);\n resources.add(webservice.VoluntarioMaterialFacadeREST.class);\n resources.add(webservice.VoluntarioTurnoFacadeREST.class);\n resources.add(webservice.VoluntariojuniorFacadeREST.class);\n resources.add(webservice.VoluntariosCampanhasFacadeREST.class);\n }",
"@JsonCreator\n public MetadataResourceType(\n @JsonProperty(value = \"id\", required = true) String id,\n @JsonProperty(value = \"type\", required = true) String type) {\n this.id = id;\n this.type = type;\n }",
"@NotNull\n private Set<String> getAllResourceTypes(@NotNull final ResourceResolver resourceResolver) {\n Set<String> allResourceTypes = new LinkedHashSet<>(resourceTypeSet);\n if (inherited) {\n for (String resourceType : resourceTypeSet) {\n allResourceTypes.addAll(Utils.getSuperTypes(resourceType, resourceResolver));\n }\n }\n return allResourceTypes;\n }",
"public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}",
"public List<ScheduleResource> neededSpecificResources();",
"ResourceMethod getMethodType();",
"@Nullable\n public com.commercetools.api.models.type.TypeResourceIdentifier getType() {\n return this.type;\n }",
"public interface XspResource extends DesignBaseNamed {\n\tpublic Collection<String> getClassNames();\n\n\tpublic Map<String, byte[]> getClassData();\n\n\tpublic void setClassData(Map<String, byte[]> classData);\n}",
"public void setResourceType( String strResourceType )\r\n {\r\n _strResourceType = strResourceType;\r\n }",
"public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }",
"public RetrieveApiResourcesResponse typesUrl(String typesUrl) {\n this.typesUrl = typesUrl;\n return this;\n }",
"String [] getSupportedTypes();",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(controllers.KatedraController.class);\n resources.add(controllers.KorisnikController.class);\n resources.add(controllers.NastavnikController.class);\n resources.add(controllers.OsobaUVeziSaUdzbenikomController.class);\n resources.add(controllers.PredmetController.class);\n resources.add(controllers.PredmetNaStdProgramuController.class);\n resources.add(controllers.StatusPredmetaController.class);\n resources.add(controllers.StudijskiProgramController.class);\n resources.add(controllers.TematskaCelinaController.class);\n resources.add(controllers.TipNastaveController.class);\n resources.add(controllers.UdzbenikController.class);\n resources.add(controllers.UlogaController.class);\n resources.add(controllers.UlogaUdzbenikController.class);\n resources.add(controllers.VrstaINivoStudijaController.class);\n }",
"public List<IResource> getResources();",
"public Class<? extends Resources> getResourcesClass() {\n\t\treturn Resources.class;\n\t}",
"public interface ApplicationResourceUsage extends ResourceUsage\n{\n}",
"RequiredResourceType getRequiredResource();",
"public int getContents( Resource.Type type );",
"public Resources() {\n this(DSL.name(\"Resources\"), null);\n }",
"@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }",
"public List<Resource> getAvailableResources();",
"private void addRestResourceClasses(Set<Class<?>> resources) {\r\n resources.add(br.edu.femass.controleestagio.webservice.EstagioService.class);\r\n resources.add(br.edu.femass.controleestagio.webservice.Filter.class);\r\n resources.add(br.edu.femass.controleestagio.webservice.LoginService.class);\r\n }",
"@Nonnull\n @Override\n public Set<ResourceType> list() {\n return getTables().stream()\n .map(Table::name)\n .map(String::toLowerCase)\n .map(LOWER_CASE_RESOURCE_NAMES::get)\n .filter(Objects::nonNull)\n .collect(Collectors.toSet());\n }",
"public void addResources(Type type, int count) {\n \t\tresources[type.ordinal()] += count;\n \t}",
"public static java.util.Iterator<org.semanticwb.model.ResourceType> listResourceTypes(org.semanticwb.model.SWBModel model)\r\n {\r\n java.util.Iterator it=model.getSemanticObject().getModel().listInstancesOfClass(sclass);\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceType>(it, true);\r\n }",
"public interface ResourceAdapter {\n\n public enum Item {\n INPUT_SAME_AS_OUTPUT_ERROR,\n AUTO_KEY_SELECTION_ERROR,\n LOADING_CERTIFICATE_AND_KEY,\n PARSING_CENTRAL_DIRECTORY,\n GENERATING_MANIFEST,\n GENERATING_SIGNATURE_FILE,\n GENERATING_SIGNATURE_BLOCK,\n COPYING_ZIP_ENTRY\n };\n\n public String getString( Item item, Object... args);\n}",
"public List<Resource> findByType(ResourceType type) {\n\t\tMap<String, Object> typeFilter = new HashMap<>(1);\n\n\t\ttypeFilter.put(\"type\", new ValueParameter(type));\n\n\t\treturn this.filter(typeFilter);\n\t}"
] | [
"0.7385925",
"0.71638733",
"0.7012462",
"0.67666125",
"0.67628896",
"0.67049235",
"0.6604222",
"0.658316",
"0.65548134",
"0.65424234",
"0.6524091",
"0.64572775",
"0.6391672",
"0.6335379",
"0.6313285",
"0.6295428",
"0.6270946",
"0.62643695",
"0.625888",
"0.62553567",
"0.6244901",
"0.6234471",
"0.62162226",
"0.61933273",
"0.61740386",
"0.6172829",
"0.61648244",
"0.61562324",
"0.6147624",
"0.6142493",
"0.6139228",
"0.61251825",
"0.61147016",
"0.61054504",
"0.61023766",
"0.608612",
"0.60582125",
"0.60440594",
"0.6009878",
"0.60019577",
"0.6001269",
"0.6001269",
"0.59973043",
"0.59966415",
"0.59883016",
"0.5969884",
"0.59594256",
"0.59576887",
"0.59542865",
"0.59247446",
"0.5919353",
"0.59035033",
"0.5896959",
"0.5895748",
"0.5876583",
"0.5869831",
"0.585905",
"0.5855958",
"0.5842559",
"0.5835472",
"0.5835057",
"0.5822749",
"0.5814761",
"0.5802336",
"0.5777197",
"0.5776303",
"0.57351184",
"0.57327574",
"0.57264894",
"0.5722228",
"0.5717679",
"0.5708674",
"0.5685835",
"0.5672985",
"0.56593645",
"0.56538075",
"0.5651099",
"0.56506103",
"0.564596",
"0.56416297",
"0.56399417",
"0.5636352",
"0.5623581",
"0.5623291",
"0.5620298",
"0.56110036",
"0.56079274",
"0.5607553",
"0.5605777",
"0.56046295",
"0.5604003",
"0.55878234",
"0.5576741",
"0.5569571",
"0.5566057",
"0.55654943",
"0.556377",
"0.55635834",
"0.55483127",
"0.5544001"
] | 0.7726752 | 0 |
Resources are identified by their relative URI, which MUST begin with a slash (&47;). A resource defined as a rootlevel property is called a toplevel resource. Its property's key is the resource's URI relative to the baseUri. A resource defined as a child property of another resource is called a nested resource, and its property's key is its URI relative to its parent resource's URI. Every property whose key begins with a slash (&47;), and is either at the root of the API definition or is the child property of a resource property, is a resource property. The key of a resource, i.e. its relative URI, MAY consist of multiple URI path fragments separated by slashes; e.g. `&47;bom&47;items` may indicate the collection of items in a bill of materials as a single resource. However, if the individual URI path fragments are themselves resources, the API definition SHOULD use nested resources to describe this structure; e.g. if `&47;bom` is itself a resource then `&47;items` should be a nested resource of `&47;bom`, while `&47;bom&47;items` should not be used. | List<Resource> resources(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ObjectNode ProcessUri(Resource resource){\n //handle uri\n String uri = resource.getURI();\n\n ObjectNode json_object = mapper.createObjectNode();\n\n json_object.put(ArangoAttributes.TYPE, RdfObjectTypes.IRI);\n json_object.put(ArangoAttributes.VALUE, uri);\n\n return json_object;\n }",
"java.lang.String getResourceUri();",
"public interface ResourceBase {\n\tString getName();\n\tString getLocation();\n\t/** Path equals location*/\n\tString getPath();\n\tResourceBase getParent();\n\tList<ResourceBase> getSubResources();\n\t\n\t/** TODO: May be interface extension if resource structure cannot be changed via the interface*/\n\tvoid addElement(String newSubResourceName, ResourceBase newSubResource);\n\tResourceBase removeElement(String subResourceName);\n}",
"@JsonProperty()\n\tpublic abstract String getURI();",
"com.google.protobuf.ByteString\n getResourceUriBytes();",
"public void testResourceURI() throws Exception {\n testResourceURI(\"RELS-EXT\");\n testResourceURI(\"RELS-INT\");\n }",
"public String getResourceUri() {\n return resourceUri;\n }",
"public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}",
"@Override\r\n public String toString()\r\n {\r\n return \"baseResource=[\" + baseResource_ + \"], subResource=[\"\r\n + subResource_ + \"]\";\r\n }",
"public abstract String getResUri();",
"@Override\r\n\t\t public boolean isResourceFiltered(Resource resource) {\n\t\t return \"pathmap\".equals(resource.getURI().scheme());\r\n\t\t }",
"protected URI getResourceURI(XCapResourceId resourceId)\n {\n try\n {\n return new URI(uri.toString() + \"/\" + resourceId);\n }\n catch (URISyntaxException e)\n {\n throw new IllegalArgumentException(\n \"Invalid XCAP resource identifier\", e);\n }\n }",
"public interface Resource { \n /**\n * @return the time, in <code>millis</code>, at which this resource was\n * last modified.\n */\n public long lastModified();\n\n /**\n * @return the URI that this resource corresponds to.\n */\n public String getURI();\n\n /**\n * @return the <code>InputStream</code> corresponding to this resource.\n * @throws IOException\n */\n public InputStream getInputStream() throws IOException;\n \n \n /**\n * @return the <code>Resource</code> corresponding to the given relative URI.\n * @param uri a URI.\n * @throws IOException\n */ \n public Resource getRelative(String uri) throws IOException;\n \n}",
"public void setResource(URI resource) {\n this.resource = resource;\n }",
"@XmlAttribute (namespace= CommonNamespaces.RDF_NAMESPACE)\n @XmlSchemaType (name = \"anyURI\", namespace = XMLConstants.W3C_XML_SCHEMA_NS_URI)\n public URI getResource() {\n return resource;\n }",
"public interface ResourceLocation\n{\n\t/**\n\t * Create a new location that represents this resource but with a\n\t * different extension.\n\t *\n\t * @param newExtension\n\t * @return\n\t */\n\tResourceLocation withExtension(String newExtension);\n\n\t/**\n\t * Resolve a path relative to this location.\n\t *\n\t * @param path\n\t * @return\n\t */\n\tResourceLocation resolve(String path);\n\n\t/**\n\t * Get the name of this resource.\n\t *\n\t * @return\n\t */\n\tString getName();\n}",
"public interface ResourceDefinition\n{\n\n\t/**\n\t * Get the native path in the repository for the resource\n\t * \n\t * @return\n\t */\n\tString getRepositoryPath();\n\n\t/**\n\t * Get the external path of the passed in path releative to this resource\n\t * \n\t * @param path\n\t * @return\n\t */\n\tString getExternalPath(String path);\n\n\t/**\n\t * Get the repository path, relative to this resource\n\t * \n\t * @param name\n\t * @return\n\t */\n\tString getRepositoryPath(String name);\n\n\t/**\n\t * Does the path represent a resource that is private for the current\n\t * request This may relate to a logged in user or context. This will control\n\t * the caching headers in the http response.\n\t * \n\t * @return\n\t */\n\tboolean isPrivate();\n\n\t/**\n\t * @return\n\t */\n\tString getFunctionDefinition();\n\n\t/**\n\t * @return\n\t */\n\tint getDepth();\n\n}",
"public interface StringMapResource<V> extends SharedResourceObject, Iterable<String> {\n /**\n * Return the mapped value V for a given key.\n * \n * @param key to fetch the value V for\n * @return the value V mapped to the key\n */\n public V get(String key);\n\n /**\n * Check if the given key exists.\n * \n * @param key to check\n * @return <code>true</code> if the key is known to the resource\n */\n public boolean containsKey(String key);\n \n /**\n * Return the number of keys.\n * \n * @return the number of keys known by this resource.\n */\n public int size();\n\n /**\n * Fetch an iterator for the keys.\n * \n * @return a key iterator\n */\n public Iterator<String> iterator();\n\n /**\n * Get the name of this resource.\n * \n * @return resource name\n */\n public String getResourceName();\n\n /**\n * Get the URL or URI of this resource.\n * \n * @return the resource URL string or <code>null</code>\n */\n public String getUrl();\n}",
"public interface IResourceSource\n{\n /**\n * Get resource location based on resource name.\n *\n * @param name Name of resource to be searched\n * @return URL of resource\n */\n public URL getResourceLocation( String name );\n\n /**\n * Get resource locations based on resource name.\n *\n * @param name Name of resources to be searched\n * @return Enumeration of URLs of resources\n */\n public Enumeration getResourceLocations( String name );\n\n /**\n * Get resource path this resource source references. Each entry including the last must be\n * terminated with a semicolon.\n *\n * @return Resource path this resource source references\n */\n public String getResourcePath();\n}",
"protected static String getObjectPath(URI resource) {\n String objectPath = resource.getPath().isEmpty() ? \"/\" : resource.getPath();\n return String.format(\"%s%s\", resource.getAuthority(),\n objectPath.charAt(0) == '/' ? objectPath : \"/\" + objectPath);\n }",
"private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}",
"public URI getURI()\r\n/* 34: */ {\r\n/* 35:60 */ return this.uri;\r\n/* 36: */ }",
"public String getURI() {\n/* 95 */ return this.uri;\n/* */ }",
"public static Map<String, JSONObject> getAllAPIsByResourcePath(JSONObject resource) {\n Map<String, JSONObject> parameters = new HashMap<String, JSONObject>();\n\n String basePath = (String) resource.get(Constants.API_DOC_11_BASE_PATH);\n String key = null;\n\n JSONArray apiArray = (JSONArray) resource.get(Constants.API_DOC_11_APIS);\n for (Object apiObject : apiArray) {\n\n JSONObject apiInfo = (JSONObject) apiObject;\n String path = (String) apiInfo.get(Constants.API_DOC_11_PATH);\n key = basePath + path;\n parameters.put(key, apiInfo);\n }\n\n return parameters;\n\n }",
"public interface DppBaseResource {\n /**\n * Gets the id property: Resource Id represents the complete path to the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: Resource name associated with the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: Resource type represents the complete path of the form\n * Namespace/ResourceType/ResourceType/...\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner object.\n *\n * @return the inner object.\n */\n DppBaseResourceInner innerModel();\n}",
"public abstract Promise<JsonValue, ResourceException> getRelationshipValueForResource(Context context, \n String resourceId);",
"abstract String getUri();",
"FullUriTemplateString baseUri();",
"public Properties getUriProperties() {\n\t\treturn uriProperties;\n\t}",
"public String getUri();",
"public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}",
"public URI getURI(final String key) {\n return get(URI.class, key);\n }",
"public Bpmn2ResourceImpl(URI uri) {\r\n super(uri);\r\n this.xmlHelper = new BpmnXmlHelper(this);\r\n this.uriHandler = new QNameURIHandler(xmlHelper);\r\n this.getDefaultLoadOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n this.getDefaultSaveOptions().put(XMLResource.OPTION_URI_HANDLER, uriHandler);\r\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"java.lang.String getUri();",
"java.lang.String getUri();",
"public interface ResourcePaths {\n String imageFolderPath();\n String imageResourcePath();\n String videoFolderPath();\n String videoResourcePath();\n}",
"Uri getJurisdiction();",
"public Map<String, Object> uriToValueMap();",
"@Test\n public void testRemainingResourceStringValidDeepString() {\n Matcher mtch = filter.getMatcher(FULL_URI + \"/something/very/deep/nested\");\n\n filter.isResourceAccess(mtch);\n\n assertEquals(\"resource string differs\", REMAINING_RES_STRING, filter.getRootResourceString(mtch));\n }",
"String getBaseUri();",
"public MapResourcePack(MapResourcePack baseResourcePack, String resourcePackPath) {\n this(baseResourcePack, resourcePackPath, \"\");\n }",
"private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}",
"@Override\r\n public List<String> buildRequestUrl(String resource, Endpoint endpoint) {\r\n //log = LoggerFactory.getLogger(ScopusAuthorSearchProvider.class);\r\n namespaceDC = Namespace.getNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\");\r\n namespacePRISM = Namespace.getNamespace(\"prism\", \"http://prismstandard.org/namespaces/basic/2.0/\");\r\n namespaceATOM = Namespace.getNamespace(\"atom\", \"http://www.w3.org/2005/Atom\");\r\n String url = null;\r\n Matcher m = Pattern.compile(PATTERN).matcher(resource);\r\n if (m.find()) {\r\n url = resource;\r\n apiKeyParam = m.group(4);\r\n } else {\r\n Preconditions.checkState(StringUtils.isNotBlank(resource));\r\n String id = resource.substring(resource.lastIndexOf('/') + 1);\r\n url = String.format(API, id.replace('_', '+'));\r\n }\r\n return Collections.singletonList(url);\r\n }",
"public JSONObject SourceResource() {\n JSONObject source = jsonParent.getJSONObject(\"sourceResource\");\n return source;\n }",
"private ResourceProperties(ResourceProperties parentProperties, String prefix) {\n this.parentProperties = parentProperties;\n this.prefix = prefix;\n this.resources = new LinkedHashSet();\n setIgnoreCase(parentProperties.ignoreCase);\n forceUpdate();\n }",
"public XMLTypeResourceImpl(URI uri)\n {\n super(uri);\n }",
"public String getBaseUri() {\n\t\treturn baseUri;\n\t}",
"Resource getResource();",
"@Override\n protected FlexiBean createRootData(UriInfo uriInfo) {\n FlexiBean out = super.createRootData(uriInfo);\n out.put(\"uris\", new WebHomeUris(uriInfo));\n \n for (ResourceConfig config : RESOURCE_CONFIGS) {\n if (_publishedTypes.contains(config._resourceType)) {\n Object uriObj = createUriObj(config, uriInfo);\n out.put(config._name, uriObj);\n }\n }\n for (ResourceConfig config : s_resourceConfigs) {\n Object uriObj = createUriObj(config, uriInfo);\n out.put(config._name, uriObj);\n }\n return out;\n }",
"public ICodeBaseEntry lookupResource(String resourceName) throws ResourceNotFoundException;",
"public interface XspResource extends DesignBaseNamed {\n\tpublic Collection<String> getClassNames();\n\n\tpublic Map<String, byte[]> getClassData();\n\n\tpublic void setClassData(Map<String, byte[]> classData);\n}",
"String encodeResourceToString(IBaseResource theResource) throws DataFormatException;",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"String getUri();",
"public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}",
"private static String getCanonicalizedResourceName(Reference resourceRef) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(resourceRef.getPath());\r\n \r\n Form query = resourceRef.getQueryAsForm();\r\n if (query.getFirst(\"acl\", true) != null) {\r\n sb.append(\"?acl\");\r\n } else if (query.getFirst(\"torrent\", true) != null) {\r\n sb.append(\"?torrent\");\r\n }\r\n \r\n return sb.toString();\r\n }",
"public IPath[] getAdditionalResources();",
"@JsonIgnore\n public String getResource() {\n return this.resource;\n }",
"public interface WebResource {\n public String getName();\n\n public URL getBaseURL() throws MalformedURLException;\n\n public WebPageIterator getIterator();\n}",
"public MyPathResource() {\r\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The URI for this resource, relative to /apiserver.\")\n\n public String getUri() {\n return uri;\n }",
"public String getResourceId();",
"URI getUri();",
"public String getPhysicalURI()\n {\n return physicalURI;\n }",
"public abstract IResource getResource();",
"public interface HeadUri {\n\n\tString ROOT = \"/\";\n\n\tString CONNECT = \"/connect\";\n\n\tString PUSH = \"/push\";\n\n}",
"public String getUri() {\n return uri;\n }",
"private String getBaseUri() {\n\t\treturn null;\n\t}",
"public byte[] uri() {\n return uri;\n }",
"public void addResourcePropertiesToResponse(String schemaURI,\n Map<String, String> props, Map<String, Element> propsNodes) {\n String prefix = NameSpaceHelper.getNameSpacePrefix(schemaURI);\n\n // add NS alias\n Namespace ns = new Namespace(prefix, schemaURI);\n for (Element propsNode : propsNodes.values()) {\n propsNode.add(ns);\n }\n\n // get prop node\n Element prop = propsNodes.get(String.valueOf(WebDavConst.SC_OK)).element(propTag);\n Element prop404 = propsNodes.get(String.valueOf(WebDavConst.SC_NOT_FOUND)).element(\n propTag);\n\n for (String propName : props.keySet()) {\n QName qn = DocumentFactory.getInstance().createQName(propName,\n prefix, schemaURI);\n\n String propValue = props.get(propName);\n if (propName.equals(\"supportedlock\")) {\n // hard coded Lock config !!!\n\n Element tag = prop.addElement(qn);\n\n QName stqn = DocumentFactory.getInstance().createQName(\n \"lockentry\", prefix, schemaURI);\n Element lentry = tag.addElement(stqn);\n\n QName stqn2 = DocumentFactory.getInstance().createQName(\n \"lockscope\", prefix, schemaURI);\n Element lscope = lentry.addElement(stqn2);\n\n QName stqn3 = DocumentFactory.getInstance().createQName(\n \"exclusive\", prefix, schemaURI);\n lscope.addElement(stqn3);\n\n QName stqn4 = DocumentFactory.getInstance().createQName(\n \"locktype\", prefix, schemaURI);\n Element ltype = lentry.addElement(stqn4);\n\n QName stqn5 = DocumentFactory.getInstance().createQName(\n \"write\", prefix, schemaURI);\n ltype.addElement(stqn5);\n\n continue;\n }\n\n if (propValue != null) {\n Element tag = prop.addElement(qn);\n if (propValue.startsWith(MappingHelper.PROP_AS_TAG_PREFIX)) {\n String subTagName = propValue.split(\":\")[1];\n QName stqn = DocumentFactory.getInstance().createQName(\n subTagName, prefix, schemaURI);\n tag.addElement(stqn);\n } else {\n // if (propName.equals(WebDavConst.DAV_PROP_DISPLAYNAME))\n if (propValue.contains(\"<\") || propValue.contains(\">\")) {\n tag.add(new DOMCDATA(propValue));\n } else {\n tag.setText(propValue);\n }\n }\n } else {\n prop404.addElement(qn);\n }\n }\n }",
"public String getResourcePath() {\n return BARDConstants.API_BASE + \"/biology/\" + serial;\n }",
"public synchronized void readResources(InputStream stream)\r\n {\r\n Properties prop = new Properties();\r\n Enumeration keys;\r\n String key, value;\r\n List values;\r\n\r\n try\r\n {\r\n // load the properties\r\n prop.load(stream);\r\n keys = prop.propertyNames();\r\n\r\n while(keys.hasMoreElements())\r\n {\r\n // extract this key and value\r\n key = (String) keys.nextElement();\r\n value = prop.getProperty(key).trim();\r\n\r\n // only store valid resources\r\n if (isValidResource(key))\r\n {\r\n // store the key/value pair\r\n setTheResource(root, key, value);\r\n }\r\n else if (DEBUG)\r\n {\r\n // inform the user of the ill formed resource\r\n System.err.println(\"ResourceManager.readResources(): \"+\r\n \"the key '\"+key+\"' is illformed - skipping\");\r\n }\r\n }\r\n }\r\n catch(IOException e)\r\n {\r\n if (DEBUG)\r\n System.err.println(\"ResourceManager.readResources(): \"+e.getMessage());\r\n }\r\n }",
"public static String encodedURI(Resource resource) {\r\n\t\tString result = null;\r\n\t\tif (resource != null) {\r\n\t\t\tresult = encodedURI(resource.getURI(), JenaUtils.prefixedURI(resource));\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"OauthResource getResourceByIllegalUri(String testId);",
"public String uri() {\n return this.uri;\n }",
"private URI getRefinedResourceURI(Resource resource, String newName) {\n\t\tURI newUri = resource.getURI();\n\t\tString fileExtension = newUri.fileExtension();\n\t\tnewUri = newUri.trimSegments(1).appendSegment(newName).appendFileExtension(fileExtension);\n\t\treturn newUri; \n\t}",
"public OptionalThing<UrlMappingOption> toRestfulMappingPath(UrlMappingResource resource) {\n final String workingMappingPath = resource.getWorkingMappingPath(); // may be filtered before\n final List<String> elementList = splitPath(workingMappingPath); // only for determination\n\n if (!determineRestfulPath(resource, elementList)) { // e.g. /, /1/products/, /products/purchases/\n return OptionalThing.empty(); // no filter\n }\n // comment out because of virtual list handling and RESTful mapping message\n // so always call conversion process here even if e.g. /products/\n //if (elementList.size() <= 2) { // e.g. /products/, /products/1/\n // return OptionalThing.empty(); // no filter\n //}\n return OptionalThing.of(createUrlMappingOption(resource, elementList));\n }",
"ResourceLocation resolve(String path);",
"public WellKnownCoreResource(Map<String, WebService> initialStatus) {\n super(\"/.well-known/core\", initialStatus);\n }",
"private <TRes> void putResource(\n\t\tMap<String,TRes> mapUri, TRes resource, String uri)\n\t{\n\t\tmapUri.put(uri, resource);\n\t}",
"public DataResourceBuilder _resourcePart_(Resource _resourcePart_) {\n this.dataResourceImpl.getResourcePart().add(_resourcePart_);\n return this;\n }",
"private void setTheResourceRecursive(Node startNode, String resource,\r\n String value)\r\n throws IllegalArgumentException\r\n {\r\n int idx;\r\n\r\n Node newNode;\r\n String name;\r\n HashMap hashmap;\r\n\r\n int tightIndex = resource.indexOf(TIGHT_BINDING);\r\n\r\n // 1st character may be '*' so skip over it\r\n int looseIndex = resource.indexOf(LOOSE_BINDING, LOOSE_BINDING_LEN);\r\n\r\n // if no delimiter was found, set a sentinel value that is tested for\r\n // later\r\n if (tightIndex == -1)\r\n tightIndex = Integer.MAX_VALUE;\r\n if (looseIndex == -1)\r\n looseIndex = Integer.MAX_VALUE;\r\n\r\n\r\n // find the index of the first delimiter ('.' or '*')\r\n int pos = (tightIndex < looseIndex)?tightIndex:looseIndex;\r\n\r\n // is this the last name in the resource string?\r\n boolean atLastName = (pos == Integer.MAX_VALUE);\r\n\r\n // if the first character is '*' then we have a loose binding\r\n boolean looseBinding = resource.startsWith(LOOSE_BINDING);\r\n\r\n // determine the name of this node, ensure we don't include the delimiter\r\n // in the name.\r\n // create the node for this name\r\n if (looseBinding)\r\n {\r\n name = (atLastName) ? resource.substring(LOOSE_BINDING_LEN) :\r\n resource.substring(LOOSE_BINDING_LEN, pos);\r\n }\r\n else\r\n {\r\n name = (atLastName) ? resource : resource.substring(0, pos);\r\n }\r\n\r\n String binding = looseBinding ? LOOSE_BINDING : TIGHT_BINDING;\r\n newNode = startNode.createChild(name, binding);\r\n\r\n // if this is the last component of the resource then store the value\r\n if (atLastName)\r\n {\r\n newNode.setData(value);\r\n }\r\n else\r\n {\r\n // if loosely bound, ensure that '*' is the first character of the tail\r\n String tail;\r\n if (resource.regionMatches(pos, LOOSE_BINDING, 0, LOOSE_BINDING_LEN))\r\n tail = resource.substring(pos);\r\n else\r\n tail = resource.substring(pos+LOOSE_BINDING_LEN);\r\n\r\n // recurse to next level\r\n setTheResourceRecursive(newNode, tail, value);\r\n }\r\n }",
"@Path(\"/get7\")\n\t@GET\n\tpublic String get7() {\n\t\treturn (\"In get7 - showing URI of this request using UriInfo - \" + uriInfo.getAbsolutePath().toASCIIString());\n\t}",
"String getURI();",
"String getURI();",
"String getURI();",
"public DataResourceBuilder _resourcePart_(List<Resource> _resourcePart_) {\n this.dataResourceImpl.setResourcePart(_resourcePart_);\n return this;\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"@Path(\"property\")\n@Tag(name = \"Property\", description = \"This endpoint is used for sharing properties between different data\")\npublic interface PropertyControllerDefinition extends IPropertyControllerJaxRS {\n\n @Override\n @Operation(summary = \"Get JSON\", description = \"GET a JSON document.\")\n String getJsonConfiguration(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Save JSON\", description = \"Saves a JSON document.\")\n void setJsonConfiguration(String name, String json) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Property\", description = \"Gets property's value\")\n String getProperty(String name) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Property\", description = \"Updates the property's value\")\n void setProperty(String name, String value) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets all properties as key / value pairs.\")\n Map<String, String> getProperties() throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Properties\", description = \"Gets properties as key / value pairs of specified properties.\")\n Map<String, String> getProperties(String[] names) throws RemoteException;\n\n @Override\n @Operation(summary = \"Set Properties\", description = \"Updates the values of multiple properties.\")\n void setProperties(Map<String, String> values) throws RemoteException;\n\n @Override\n @Operation(summary = \"Get Principal\", description = \"Returns user's principal used by front-ends for queries or to determine what to display.\")\n ICoalescePrincipal whoami();\n}",
"public String getResourceUrl() {\n return this.resourceUrl;\n }",
"public String getUri()\r\n {\r\n return uri;\r\n }",
"@DSSource({DSSourceKind.FILE_INFORMATION})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.376 -0500\", hash_original_method = \"AC6673E983BE229DBE393CCBB4A72E75\", hash_generated_method = \"03FD0CE5F473571E708DB9317FA1B856\")\n \npublic String getURI (String prefix)\n {\n return currentContext.getURI(prefix);\n }",
"protected abstract URL resolve(NamespaceId namesapace, String resource) throws IOException;",
"public URI getUri() {\n return this.uri;\n }",
"@Override\n\tpublic synchronized <K extends Resource> K getResource(String uri, Class<K> resourceType) {\n\t\tif (hasServerUrl(uri, resourceType) && c != null) {\n\t\t\tif (uri.startsWith(\"repo:\")) {\n\t\t\t\t// it's possible to have a resource with id=repo:something (from\n\t\t\t\t// practice)\n\t\t\t\tK r = doGetResource(uri.startsWith(\"repo:\") ? uri : \"repo:\" + uri, resourceType);\n\t\t\t\tif (r != null)\n\t\t\t\t\treturn r;\n\t\t\t}\n\t\t\treturn doGetResource(uri, resourceType);\n\t\t}\n\t\tif (c == null && uri.startsWith(\"repo:\")) {\n\t\t\tK r = doGetResource(uri.startsWith(\"repo:\") ? uri : \"repo:\" + uri, resourceType);\n\t\t\tif (r != null)\n\t\t\t\treturn r;\n\t\t}\n\t\treturn repService != null ? repService.getResource(uri, resourceType) : null;\n\t}",
"void setBaseUri(String baseUri);",
"public ResourceProperties() {\n // TODO: we can't use TreeSet because we don't have the app's resource comparator\n // Since resources don't implement Comparable, we can't add them to a \"naked\" TreeSet\n // As a result, resource ordering is random when updating.\n this.resources = new LinkedHashSet();\n }",
"@NotNull URI getURI();",
"@JsonProperty(\"resource\")\n public void setResource(String resource) {\n this.resource = resource;\n }"
] | [
"0.62156564",
"0.6101274",
"0.57489526",
"0.57456744",
"0.57451564",
"0.573712",
"0.57315075",
"0.57306015",
"0.57240427",
"0.5630657",
"0.5617731",
"0.5533332",
"0.5514313",
"0.54426533",
"0.54341197",
"0.5432916",
"0.53793585",
"0.5357648",
"0.5348165",
"0.5325935",
"0.5318704",
"0.5281238",
"0.5267551",
"0.52567077",
"0.52562684",
"0.5255592",
"0.5242474",
"0.51970047",
"0.51731795",
"0.5123634",
"0.5118555",
"0.5107254",
"0.5102534",
"0.50898653",
"0.50854796",
"0.50854796",
"0.50771475",
"0.5074579",
"0.50735503",
"0.50721884",
"0.50694764",
"0.50621986",
"0.505232",
"0.5037179",
"0.50351316",
"0.5035114",
"0.50213575",
"0.50205153",
"0.50202286",
"0.5004283",
"0.4991639",
"0.49907058",
"0.49884173",
"0.4987624",
"0.49837717",
"0.49830702",
"0.49825424",
"0.49652374",
"0.49585658",
"0.49540633",
"0.49539718",
"0.49510422",
"0.4950398",
"0.4946195",
"0.49434084",
"0.49403897",
"0.49387264",
"0.4933685",
"0.49335897",
"0.49251688",
"0.49188694",
"0.49180028",
"0.49176705",
"0.49176055",
"0.4907877",
"0.49012318",
"0.48952165",
"0.4894835",
"0.48942205",
"0.4888414",
"0.4879076",
"0.4874853",
"0.4871661",
"0.48638836",
"0.48490542",
"0.48490542",
"0.48490542",
"0.4842009",
"0.48325002",
"0.4830001",
"0.48295212",
"0.48279238",
"0.4825855",
"0.48238108",
"0.48195615",
"0.48191562",
"0.48146513",
"0.48129293",
"0.48081407",
"0.4807409"
] | 0.48397535 | 88 |
The API definition can include a variety of documents that serve as a user guides and reference documentation for the API. Such documents can clarify how the API works or provide business context. Documentationgenerators MUST include all the sections in an API definition's documentation property in the documentation output, and they MUST preserve the order in which the documentation is declared. To add user documentation to the API, include the documentation property at the root of the API definition. The documentation property MUST be an array of documents. Each document MUST contain title and content attributes, both of which are REQUIRED. If the documentation property is specified, it MUST include at least one document. Documentationgenerators MUST process the content field as if it was defined using Markdown. | List<DocumentationItem> documentation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Documentation createDocumentation();",
"Documentation createDocumentation();",
"default void buildMainGenerateAPIDocumentation() {\n if (!bach().project().settings().tools().enabled(\"javadoc\")) return;\n say(\"Generate API documentation\");\n var api = bach().folders().workspace(\"documentation\", \"api\");\n bach().run(buildMainJavadoc(api)).requireSuccessful();\n bach().run(buildMainJavadocJar(api)).requireSuccessful();\n }",
"private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}",
"@JsonProperty(\"documentation\")\r\n public void setDocumentation(String documentation) {\r\n this.documentation = documentation;\r\n }",
"public interface IControllerDocBuilder {\n\n /**\n * build api docs and return as string\n *\n * @param controllerNode\n * @return\n */\n String buildDoc(ControllerNode controllerNode) throws IOException;\n\n}",
"org.hl7.fhir.String getDocumentation();",
"protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}",
"@JsonProperty(\"documentation\")\r\n public String getDocumentation() {\r\n return documentation;\r\n }",
"String getDocumentation();",
"String getDocumentation();",
"public static void updateAPISwaggerDocs(String apiDocJson, String[] docResourcePaths,\n Registry registry) throws ParseException, RegistryException {\n\n JSONParser parser = new JSONParser();\n JSONObject apiDoc11 = (JSONObject) parser.parse(apiDocJson);\n\n Map<String, JSONArray> allParameters = ResourceUtil.getAllParametersForResources(apiDoc11);\n Map<String, JSONObject> allOperations = ResourceUtil.getAllOperationsForResources(apiDoc11);\n Map<String, JSONObject> apisByPath = ResourceUtil.getAllAPIsByResourcePath(apiDoc11);\n\n //this collection holds description given for each resource against the resource name.\n //descriptions added resources in an api in AM 1.7 are stored in api-doc 1.1. this desciption\n //is showed in am 1.7 api console in the store applicatoin. AM 1.8 uses descriptions in\n // api-doc in 1.2 resource folder. following map collects this value from api-doc 1.1 and\n // store it to add to api-doc 1.2\n Map<String, String> descriptionsForResource = new HashMap<String, String>();\n\n String basePath = (String) apiDoc11.get(Constants.API_DOC_11_BASE_PATH);\n String resourcePath = (String) apiDoc11.get(Constants.API_DOC_11_RESOURCE_PATH);\n String apiVersion = (String) apiDoc11.get(Constants.API_DOC_11_API_VERSION);\n\n resourcePath = resourcePath.endsWith(\"/\") ? resourcePath : resourcePath + \"/\";\n String basePathForResource = basePath + resourcePath + apiVersion;\n\n String apidoc12path = \"\";\n\n //update each resource in the 1.2 folder except the api-doc resource\n for (String docResourcePath : docResourcePaths) {\n String resourceName = docResourcePath.substring(docResourcePath.lastIndexOf(\"/\"));\n\n if (resourceName.equals(APIConstants.API_DOC_1_2_RESOURCE_NAME)) {\n //store api-doc in 1.2 folder for future use\n apidoc12path = docResourcePath;\n continue;\n }\n\n Resource resource = registry.get(docResourcePath);\n JSONObject apiDoc =\n (JSONObject) parser.parse(new String((byte[]) resource.getContent()));\n\n\n String description = \"\";\n //generate the key to query the descriptionsForResource map\n JSONArray apisInResource = (JSONArray) apiDoc.get(Constants.API_DOC_12_APIS);\n JSONObject apiTemp = (JSONObject) apisInResource.get(0);\n String path = (String) apiTemp.get(Constants.API_DOC_12_PATH);\n\n String key = \"\";\n if (path.equals(\"/*\")) {\n key = basePathForResource;\n } else {\n key = basePathForResource + path;\n }\n\n\n //get the description for that resource. query the api list generated using api-doc 1.1\n if (apisByPath.containsKey(key)) {\n JSONObject apiInfo = apisByPath.get(key);\n description = (String) apiInfo.get(\"description\");\n descriptionsForResource.put(resourceName, description);\n }\n\n String updatedJson =\n ResourceUtil.getUpdatedSwagger12Resource(apiDoc, allParameters, allOperations,\n basePathForResource);\n log.info(\"\\t update \" + resourceName.substring(1));\n Resource res = registry.get(docResourcePath);\n res.setContent(updatedJson);\n //update the registry\n registry.put(docResourcePath, res);\n }\n\n //update the api-doc. add the descriptions to each api resource\n ResourceUtil.updateSwagger12APIdoc(apidoc12path, descriptionsForResource, registry, parser);\n }",
"DocumentationFactory getDocumentationFactory();",
"public Documentation updateDocumentation(String apiId, Documentation documentation, String organization) throws APIManagementException {\n\n if (documentation != null) {\n org.wso2.carbon.apimgt.persistence.dto.Documentation mappedDoc = DocumentMapper.INSTANCE\n .toDocumentation(documentation);\n try {\n org.wso2.carbon.apimgt.persistence.dto.Documentation updatedDoc = apiPersistenceInstance\n .updateDocumentation(new Organization(organization), apiId, mappedDoc);\n if (updatedDoc != null) {\n return DocumentMapper.INSTANCE.toDocumentation(updatedDoc);\n }\n } catch (DocumentationPersistenceException e) {\n handleException(\"Failed to add documentation\", e);\n }\n }\n return null;\n }",
"public String getDocumentation() {\n return m_documentation;\n }",
"public abstract ModuleDoc doc();",
"public void setDocumentation(String text) {\n m_documentation = text;\n }",
"public static void document(String[] args)\n throws org.apache.commons.cli.ParseException,\n ConfigurationException,\n IOException,\n shadow.ShadowException,\n HelpRequestedException {\n // Detect and establish the current settings and arguments\n DocumentationArguments arguments = new DocumentationArguments(args);\n\n // Exit if help was requested (Arguments handles printing)\n if (arguments.hasOption(Arguments.HELP)) return;\n\n Configuration.buildConfiguration(\n arguments.getMainArguments()[0], arguments.getConfigFileArg(), false);\n\n /* TYPECHECKING */\n\n long startTime = System.currentTimeMillis(); // Time the type checking\n\n // Generate a list of source files from the command line arguments.\n // If packages/directories are specified, they will be searched for\n // source files\n Map<String, Documentation> pkgDocs = new HashMap<>();\n List<Path> sourceFiles = getRequestedFiles(arguments.getMainArguments(), pkgDocs);\n\n // Perform basic type-checking on each source file\n Set<Type> typesToDocument = DocumentationTypeChecker.typeCheck(sourceFiles);\n Set<Package> packagesToDocument = new HashSet<>();\n\n logger.info(\n \"Successfully type-checked all files in \"\n + (System.currentTimeMillis() - startTime)\n + \"ms\");\n\n /* DOCUMENTATION INFO ORGANIZATION */\n\n startTime = System.currentTimeMillis(); // Time the documentation\n\n // If a directory was provided use it. Otherwise, create docs/ in the\n // current working directory\n Path outputDirectory;\n if (arguments.hasOption(DocumentationArguments.OUTPUT_DIR))\n outputDirectory = Paths.get(arguments.getOutputDirectory()).toAbsolutePath().normalize();\n else outputDirectory = Paths.get(\"docs\").toAbsolutePath().normalize();\n\n // Capture visible inner classes for documentation\n List<Type> outerClasses = new ArrayList<>(typesToDocument);\n for (Type outer : outerClasses)\n for (Type inner : outer.getInnerTypes().values())\n if (inner.getModifiers().isPublic() || inner.getModifiers().isProtected())\n typesToDocument.add(inner);\n\n // Capture all packages of classes being documented\n for (Type type : typesToDocument) packagesToDocument.addAll(type.getAllPackages());\n\n // Associate packages with package-info files\n for (Package pkg : packagesToDocument) {\n String pkgName = pkg.getQualifiedName();\n // The default package cannot be documented\n if (!pkgName.isEmpty() && pkgDocs.containsKey(pkgName))\n pkg.setDocumentation(pkgDocs.get(pkgName));\n }\n\n /* FORMATTED DOCUMENTATION GENERATION */\n\n DocumentationTemplate template =\n new StandardTemplate(arguments.getTemplateArgs(), typesToDocument, packagesToDocument);\n template.write(outputDirectory);\n\n logger.info(\n \"Successfully generated all documentation in \"\n + (System.currentTimeMillis() - startTime)\n + \"ms\");\n }",
"@ApiModelProperty(example = \"String content\", required = true, value = \"Base64 Encoded String of document\")\n @JsonProperty(JSON_PROPERTY_DOC_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getDocField() {\n return docField;\n }",
"public EndpointBuilder _endpointDocumentation_(URI _endpointDocumentation_) {\n this.endpointImpl.getEndpointDocumentation().add(_endpointDocumentation_);\n return this;\n }",
"public EndpointBuilder _endpointDocumentation_(List<URI> _endpointDocumentation_) {\n this.endpointImpl.setEndpointDocumentation(_endpointDocumentation_);\n return this;\n }",
"public List<IDoc> getDocs();",
"public List<IDoc> getDocs();",
"public void generarDoc(){\n generarDocP();\n }",
"public static void addApi(String api) {\r\n\t\tString path = jEdit.getProperty(\"options.javadoc.path\", \"\");\r\n\t\tif (path.indexOf(api) != -1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (path.length() > 0) {\r\n\t\t\tpath += File.pathSeparator;\r\n\t\t}\r\n\t\tpath += api;\r\n\t\tjEdit.setProperty(\"options.javadoc.path\", path);\r\n\t\tjEdit.propertiesChanged();\r\n\t}",
"springfox.documentation.schema.Model create(ModelContext context);",
"private Doc addDoc(String title, String text) {\n\t\tDoc doc = objectFactory.createDoc();\n\t\tdoc.setTitle(title);\n\t\tdoc.setLang(ParserConstants.english.toString());\n\t\tdoc.getContent().add(text);\n\t\treturn doc;\n\t}",
"public interface SwaggerDescriptions {\n\n String VIN = \"Identifies a vehicle. This is a required parameter unless year, make, and model are provided as input values.\";\n String COUNTRY = \"Identifies a country. This country could be different than the country in which the vehicle was manufactured.\";\n String USED = \"Identifies whether the vehicle is used. If set to true, you can specify install options for the vehicle using other input values.\";\n String VEHICLE_YEAR = \"Identifies the year in which the vehicle was manufactured. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MAKE = \"Identifies the vehicle make. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_MODEL = \"Identifies the vehicle model. This is an optional parameter unless VIN is not specified.\";\n String VEHICLE_TRIM = \"Identifies the vehicle trim. If you submit a VIN that returns multiple style ids, you can specify a trim to focus the response on one style id.\";\n String VEHICLE_BODY_STYLE = \"Identifies the vehicle body style to install on the vehicle.\";\n String VEHICLE_ENGINE = \"Identifies the vehicle engine code to install on the vehicle.\";\n String VEHICLE_TRANS = \"Identifies the vehicle transmission to install on the vehicle.\";\n String VEHICLE_EXT_COLOR = \"Identifies the vehicle's exterior color to install on the vehicle.\";\n String VEHICLE_INT_COLOR = \"Identifies the vehicle's interior color to install on the vehicle.\";\n String LIST_OPTIONS = \"Identifies a list of vehicle options to install on the vehicle.\";\n String LIST_UNSTRUCTURED = \"Identifies unstructured text that is mapped to the vehicle features you want installed on the vehicle.\";\n\n String INCLUDE_DEBUG_INFO = \"Include debug information in the response object\";\n String INCLUDE_SUPPORT_INFO = \"Include support information in the response object\";\n\n String LANGUAGE = \"Language\";\n\n String GET_WS_VERSION = \"Get the version of the web service\";\n String GET_WS_HEALTH = \"Check the health of the services\";\n String GET_WS_CONNECTION = \"Get the status of micro service connections\";\n\n String WS_RESPONSE_ID = \"Displays a unique identifier of the web service response.\";\n String WS_DATE_TIME = \"Displays the date and time on the server when the request was made.\";\n\n String WS_MESSAGE = \"Displays messages from the server.\";\n String WS_ERROR = \"Identifies whether an error occurred with the request.\";\n String EXECUTION_TIME = \"Displays the execution time of the request in milliseconds.\";\n String WS_DEBUG_INFO = \"Displays debug information.\";\n String WS_SUPPORT_INFO = \"Displays support information.\";\n String WS_RESULT = \"Displays the web service results.\";\n String WS_EXECUTION_DETAILS = \"Displays Akana related billing informations.\";\n String WS_COPYRIGHT = \"Displays the copywrite message.\";\n\n}",
"public static void buildApiDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder) {\n config.setParamsDataToTree(true);\n RpcDocBuilderTemplate builderTemplate = new RpcDocBuilderTemplate();\n builderTemplate.checkAndInit(config);\n ProjectDocConfigBuilder configBuilder = new ProjectDocConfigBuilder(config, javaProjectBuilder);\n RpcDocBuildTemplate docBuildTemplate = new RpcDocBuildTemplate();\n List<RpcApiDoc> apiDocList = docBuildTemplate.getApiData(configBuilder);\n buildTorna(apiDocList, config);\n }",
"public manageDoc() {\r\r\r\n\r\r\r\n }",
"@ApiModelProperty(example = \"String content\", required = true, value = \"Name of document to display in SigniFlow\")\n @JsonProperty(JSON_PROPERTY_DOC_NAME_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getDocNameField() {\n return docNameField;\n }",
"@Bean\n public Docket api(){\n //Enables following endpoints once configured\n //http://localhost:8080/swagger-ui.html\n //http://localhost:8080/v2/api-docs\n return new Docket(DocumentationType.SWAGGER_2)\n //.apiInfo(ApiInfo.DEFAULT)\n .apiInfo(DEFAULT_API_INFO)\n .produces(DEFAULT_PRODUCES_AND_CONSUMES)\n .consumes(DEFAULT_PRODUCES_AND_CONSUMES);\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }",
"public interface DocumentDefinition extends NodeDefinition {\n\n String getContentPath();\n\n String getMimeType();\n\n String getEncoding();\n}",
"DocBook createDocBook();",
"interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }",
"private void getDocumentation(Document doc, SemSimModel semsimmodel){\n\t\tElement docel = doc.getRootElement().getChild(\"documentation\", RDFNamespace.DOC.createJdomNamespace());\n\t\tif(docel!=null){\n\t\t\tString text = getUTFformattedString(xmloutputter.outputString(docel));\n\t\t\tsemsimmodel.addAnnotation(new Annotation(SemSimRelations.SemSimRelation.CELLML_DOCUMENTATION, text));\n\t\t}\n\t}",
"@Override\n public String commandDocumentation() {\n return (\"Displays the documentation of various commands.\");\n }",
"private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}",
"private ApiInfo getApiInfo()\n {\n Contact contact = new Contact(\"Melchior Vrolijk\", \"\",\"vrol0004@gmail.com\");\n\n return new ApiInfo(\n \"Spring boot secure API documentation\",\n \"This is the demo spring boot secure api project documentation\",\n \"1.0\",\"\",contact,\n \"\",\"\",Collections.emptyList());\n }",
"@GetMapping(value = \"{key}\", produces = MediaType.TEXT_PLAIN_VALUE)\n public ResponseEntity<String> readDoc(@PathVariable String key) {\n String doc = DocumentationUtil.readDocumentation(key, LocaleContextHolder.getLocale());\n if (StringUtils.hasText(doc)) {\n return new ResponseEntity<>(doc, HttpStatus.OK);\n }\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }",
"@Bean\n\tpublic Docket api() {\n\t\treturn new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())\n\t\t\t\t.paths(PathSelectors.any()).build();\n\t}",
"protected void appendDocText(StringBuffer buff) {\n String doctext = getDocumentation();\n if (doctext != null) {\n buff.append(\" (\");\n if (doctext.length() > DESCRIPTION_DOCUMENTATION_LIMIT) {\n doctext = doctext.substring(0, DESCRIPTION_DOCUMENTATION_LIMIT) + \"...\";\n }\n doctext = doctext.trim().replace('\\n', '|').replace('\\r', '|');\n buff.append(doctext);\n buff.append(')');\n }\n }",
"public abstract String commandDocumentation();",
"Documentable createDocumentable();",
"Map<String, Object> swagger();",
"private static void updateSwagger12APIdoc(String apiDoc12Path,\n Map<String, String> descriptionsForResource,\n Registry registry, JSONParser parser)\n throws RegistryException, ParseException {\n Resource res = registry.get(apiDoc12Path);\n JSONObject api12Doc = (JSONObject) parser.parse(new String((byte[]) res.getContent()));\n JSONArray apis = (JSONArray) api12Doc.get(Constants.API_DOC_12_APIS);\n for (int j = 0; j < apis.size(); j++) {\n JSONObject api = (JSONObject) apis.get(j);\n\n // get the resource name for each api in api-doc 1.2\n String resPathName = (String) api.get(Constants.API_DOC_12_PATH);\n if (descriptionsForResource.containsKey(resPathName)) {\n // if the descrption is available for that resource update it\n api.put(\"description\", descriptionsForResource.get(resPathName));\n }\n }\n log.info(\"\\t update api-doc\");\n res.setContent(api12Doc.toJSONString());\n // update the registry\n registry.put(apiDoc12Path, res);\n }",
"public Docket api( ) {\r\n\t\t return new Docket(DocumentationType.SWAGGER_2)\r\n\t .select()\r\n\t .apis(RequestHandlerSelectors.any())\r\n\t .paths(regex(\"/.*\"))\r\n\t .build().apiInfo(apiInfo());\r\n\t}",
"interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"public interface DocumentRenderer\n{\n /** Plexus lookup role. */\n String ROLE = DocumentRenderer.class.getName();\n\n /**\n * Render a document from a set of files, depending on a rendering context.\n *\n * @param files the path name Strings (relative to a common base directory)\n * of files to include in the document generation.\n * @param outputDirectory the output directory where the document should be generated.\n * @param documentModel the document model, containing all the metadata, etc.\n * If the model contains a TOC, only the files found in this TOC are rendered,\n * otherwise all files from the Collection of files will be processed.\n * If the model is null, render all files individually.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any.\n * @throws java.io.IOException if any.\n */\n void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;\n\n /**\n * Render a document from the files found in a source directory, depending on a rendering context.\n *\n * @param baseDirectory the directory containing the source files.\n * This should follow the standard Maven convention, ie containing all the site modules.\n * @param outputDirectory the output directory where the document should be generated.\n * @param documentModel the document model, containing all the metadata, etc.\n * If the model contains a TOC, only the files found in this TOC are rendered,\n * otherwise all files found under baseDirectory will be processed.\n * If the model is null, render all files from baseDirectory individually.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n * @throws java.io.IOException if any\n// * @deprecated since 1.1.2, use {@link #render(File, File, DocumentModel, DocumentRendererContext)}\n */\n void render( File baseDirectory, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;\n\n// /**\n// * Render a document from the files found in a source directory, depending on a rendering context.\n// *\n// * @param baseDirectory the directory containing the source files.\n// * This should follow the standard Maven convention, ie containing all the site modules.\n// * @param outputDirectory the output directory where the document should be generated.\n// * @param documentModel the document model, containing all the metadata, etc.\n// * If the model contains a TOC, only the files found in this TOC are rendered,\n// * otherwise all files found under baseDirectory will be processed.\n// * If the model is null, render all files from baseDirectory individually.\n// * @param context the rendering context when processing files.\n// * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n// * @throws java.io.IOException if any\n// * @since 1.1.2\n// */\n// void render( File baseDirectory, File outputDirectory, DocumentModel documentModel,\n// DocumentRendererContext context )\n// throws DocumentRendererException, IOException;\n\n /**\n * Read a document model from a file.\n *\n * @param documentDescriptor a document descriptor file that contains the document model.\n * @return the document model, containing all the metadata, etc.\n * @throws org.apache.maven.doxia.docrenderer.DocumentRendererException if any\n * @throws java.io.IOException if any\n */\n DocumentModel readDocumentModel( File documentDescriptor )\n throws DocumentRendererException, IOException;\n\n /**\n * Get the output extension associated with this DocumentRenderer.\n *\n * @return the ouput extension.\n */\n String getOutputExtension();\n}",
"public interface RESTDocument {\n\n}",
"@Test\n void docs() {\n Schema schema = new Schema.Parser().parse(SCHEMA_WITH_DOC_TAGS);\n assertEquals(\"This is not a world record.\", schema.getDoc());\n assertEquals(\"Inner Fixed\", schema.getField(\"inner_fixed\").doc());\n assertEquals(\"Very Inner Fixed\", schema.getField(\"inner_fixed\").schema().getDoc());\n assertEquals(\"Inner String\", schema.getField(\"inner_string\").doc());\n assertEquals(\"Inner Enum\", schema.getField(\"inner_enum\").doc());\n assertEquals(\"Very Inner Enum\", schema.getField(\"inner_enum\").schema().getDoc());\n assertEquals(\"Inner Union\", schema.getField(\"inner_union\").doc());\n }",
"interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }",
"@Override\r\n\tpublic ApiDocResponse parse(final MultipartFile file, final String operation, final String contentType,\r\n\t\t\tfinal String apiDocUrl) throws ApiDocParserException {\r\n\t\tApiDocResponse apiDocResponse = null;\r\n\t\tfinal OpenAPI openAPI = getOpenApi(file, apiDocUrl);\r\n\t\tfinal Set<String> allOperationIds = getAllOperationIds(openAPI);\r\n\t\tif (!CollectionUtils.isEmpty(allOperationIds) && (allOperationIds.size() == 1 || StringUtils.isNotBlank(operation))) {\r\n\t\t\tLOG.info(\"Processing API Doc started\");\r\n\t\t\tOperationHolder operationHolder = null;\r\n\t\t\tfinal String operationId = (allOperationIds.size() == 1) ? Iterables.getFirst(allOperationIds, null) : operation;\r\n\t\t\tif (openAPI != null && openAPI.getPaths() != null && !CollectionUtils.isEmpty(openAPI.getPaths().values())) {\r\n\t\t\t\toperationHolder = openAPI.getPaths().entrySet().stream().map(e -> {\r\n\t\t\t\t\tfinal PathItem s = e.getValue();\r\n\t\t\t\t\treturn getOperationById(operationId, e.getKey(), getOperationMap(s));\r\n\t\t\t\t}).filter(Objects::nonNull).findFirst().orElse(null);\r\n\t\t\t}\r\n\t\t\tapiDocResponse = populateResponse(contentType, openAPI, operationHolder);\r\n\t\t\tLOG.info(\"Processing API Doc ended\");\r\n\t\t} else {\r\n\t\t\tLOG.info(\"More than one API available in the API Doc so returning operation Ids {}\", String.join(\",\", allOperationIds));\r\n\t\t\tfinal Response<Set<String>> errorResponse = new Response<Set<String>>(MetaConstant.API_PARSER_VALIDATION_FAILURE_OPERATION_ID_CODE, \"More than one API is configured in the API document\", allOperationIds);\r\n\t\t\tthrow new ApiDocParserException(errorResponse);\r\n\t\t}\r\n\t\treturn apiDocResponse;\r\n\t}",
"public RichDocument()\n {\n setMeta(new DocumentMeta());\n _paragraphs=new ArrayList<Paragraph>();\n }",
"@Bean\n public Docket api() {\n return new Docket(DocumentationType.SWAGGER_2)\n .groupName(groupName)\n .select()\n .apis(RequestHandlerSelectors.basePackage(basePackage))\n .paths(PathSelectors.any())\n .build()\n .enable(enable)\n .apiInfo(apiInfo());\n }",
"@Test\n public void testSetAndGetDocuments() {\n DocumentsResponse testResponse = new DocumentsResponse();\n testResponse.setDocuments(testDocList);\n checkDocumentsList(testResponse);\n }",
"@Test\n public void application_with_document_api() throws IOException {\n String services =\n \"<container version='1.0'>\" +\n \" <http><server port=\\\"\" + findRandomOpenPortOnAllLocalInterfaces() + \"\\\" id=\\\"foobar\\\"/></http>\" +\n \" <document-api/>\" +\n \"</container>\";\n try (Application application = Application.fromServicesXml(services, Networking.enable)) {\n }\n }",
"private static Documentation generateDocumentation(Processor processor, IJavaProject project) {\r\n\r\n\t\tString processorclassname = processor.getClazz();\r\n\r\n\t\ttry {\r\n\t\t\tIType type = project.findType(processorclassname, new NullProgressMonitor());\r\n\t\t\tif (type != null) {\r\n\t\t\t\tReader reader = JavadocContentAccess.getHTMLContentReader(type, false, false);\r\n\t\t\t\tif (reader != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tStringBuilder javadoc = new StringBuilder();\r\n\t\t\t\t\t\tint nextchar = reader.read();\r\n\t\t\t\t\t\twhile (nextchar != -1) {\r\n\t\t\t\t\t\t\tjavadoc.append((char)nextchar);\r\n\t\t\t\t\t\t\tnextchar = reader.read();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tDocumentation documentation = new Documentation();\r\n\t\t\t\t\t\tdocumentation.setValue(javadoc.toString());\r\n\t\t\t\t\t\treturn documentation;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfinally {\r\n\t\t\t\t\t\treader.close();\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 (JavaModelException ex) {\r\n\t\t\tlogError(\"Unable to access \" + processorclassname + \" in the project\", ex);\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\tlogError(\"Unable to read javadocs from \" + processorclassname, ex);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public void add(PhotonDoc doc);",
"public String getDocumentation()\n {\n StringBuffer s = new StringBuffer(\"\");\n s.append(\"@overview This operator divides this DataSet by another.\");\n s.append(\"@assumptions The units on the two DataSets are compatible.\");\n s.append(\"@algorithm Uses the binary divide from DSOpsImplementation.\");\n s.append(\"@param ds The DataSet for the operation.\");\n s.append(\"@param ds_to_divide The DataSet with which to divide by.\");\n s.append(\"@param make_new_ds A boolean value of true if you want a new \");\n s.append(\"DataSet to be created, or false if you want the operation \");\n s.append(\"performed on the original DataSet.\");\n s.append(\"@return The DataSet which is the result of dividing the \");\n s.append(\"first DataSet by the second\");\n s.append(\"@error An error if the units of the two DataSets do not match.\");\n return s.toString();\n }",
"public void javadocStarted() { }",
"public void javadocStarted() { }",
"public interface DocumentManager extends Manager {\n\n /* Document related properties */\n public static final String DOCUMENT_THUMBNAIL_PROPERTY = \"dell.document.thumbnail\";\n\n /**\n * Method to retrieve the the Document objects list\n *\n * @return - List of Document's\n */\n Collection<Document> getDocuments();\n\n\n /**\n * Method to retrieve the list of Document's using retailer siteID\n *\n * @param retailerSiteID\n * @return -Return the list of Document's with matching siteID\n * @see com.dell.acs.persistence.domain.RetailerSite\n */\n @Deprecated\n Collection<Document> getDocumentByRetailerSiteID(Long retailerSiteID);\n\n // Library page helper method\n @Deprecated\n Collection<Document> getLatestDocuments(Long retailerSiteID);\n\n public boolean doesDocumentExists(Document document);\n /* Document management related methods */\n\n\n /**\n * Method to persist the Document object\n *\n * @return - Return the document object\n */\n Document saveDocument(Document document) throws EntityExistsException;\n\n /**\n * Method to load the Document by ID\n *\n * @param documentID - Document ID\n * @return - Document object with ID = documentID\n */\n Document getDocument(Long documentID) throws EntityNotFoundException;\n\n /**\n * Method to delete a Document object by ID\n *\n * @param documentID - Document ID\n */\n void deleteDocument(Long documentID) throws EntityNotFoundException;\n\n /**\n * Method to get the BASECDN path for Document\n *\n * @param document\n * @return\n */\n String getBaseCDNPathForDocument(Document document);\n\n /**\n * To get the filtered documents.\n *\n * @param paramsMap\n * @return\n */\n List<Map<String, String>> getFilteredDocuments(Map<String, Object> paramsMap);\n\n\n // <======= New methods introduced in sprint 4 =======>\n\n /**\n Retrieve the published document.\n @param documentId, store the document id.\n @param type , store the document type.\n @return published document name.\n */\n @Deprecated\n String getDocumentNameByID(Long documentId,Integer type);\n\n /**\n Check the name existence , so that duplicate entry not allowed.\n It checks during ajax call.\n @param documentName , store the document name.\n @return boolean status , according to existence status.\n @throws NonUniqueResultException\n */\n @Deprecated\n boolean checkNameExistence(String documentName) throws NonUniqueResultException;\n\n /**\n * Method to load the Document by ID and type.\n *\n * @param documentID - Long - document ID\n * @return - Document object with ID = documentID\n * @throws - EntityNotFoundException - if document with given ID and type is not found.\n */\n Document getDocument(Long documentID, Integer type) throws EntityNotFoundException;\n\n /**\n * retrieve the documents on the basis of RetailerSite and source Type.\n *\n * @param retailerSiteID - Long - retailer site ID\n * @param type - Integer - Refer {@link com.dell.acs.content.EntityConstants}\n * @return Collection of {@link Document}\n */\n Collection<Document> getDocuments(Long retailerSiteID, Integer type, ServiceFilterBean filterBean);\n\n /**\n * retrieve the documents on the basis of RetailerSite Name and source Type.\n *\n * @param retailerSiteName - String - retailer site name\n * @param type - Integer - Refer {@link com.dell.acs.content.EntityConstants}\n * @return Collection of {@link}\n */\n Collection<Document> getDocuments(String retailerSiteName, Integer type, ServiceFilterBean filterBean);\n\n\n}",
"public static void updateSwagger12ResourcesForAM18(String[] docResourcePaths,\n Registry registry) throws RegistryException, ParseException {\n JSONParser parser = new JSONParser();\n for (String docResourcePath : docResourcePaths) {\n\n String resourceName = docResourcePath.substring(docResourcePath.lastIndexOf(\"/\"));\n\n //modify this if api-doc resource needed to be changed\n if (resourceName.equals(APIConstants.API_DOC_1_2_RESOURCE_NAME)) {\n continue;\n }\n\n Resource resource = registry.get(docResourcePath);\n JSONObject resourceDoc =\n (JSONObject) parser.parse(new String((byte[]) resource.getContent()));\n JSONArray apis = (JSONArray) resourceDoc.get(Constants.API_DOC_12_APIS);\n for (Object api1 : apis) {\n JSONObject api = (JSONObject) api1;\n JSONArray operations = (JSONArray) api.get(\"operations\");\n\n for (Object operation1 : operations) {\n JSONObject operation = (JSONObject) operation1;\n JSONArray parameters = (JSONArray) operation.get(\"parameters\");\n String method = (String) operation.get(\"method\");\n JSONArray parametersNew = new JSONArray();\n //remove header and body parameters\n for (Object parameter1 : parameters) {\n JSONObject parameter = (JSONObject) parameter1;\n /*\n if(parameter.get(\"paramType\").equals(\"header\") ||\n\t\t\t\t\t\t\t\tparameter.get(\"paramType\").equals(\"body\")){\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t} */\n if (parameter.get(\"paramType\").equals(\"header\")) {\n continue;\n }\n if (parameter.get(\"paramType\").equals(\"body\")) {\n\n //only remove body of a GET and DELETE\n if (\"GET\".equalsIgnoreCase(method) ||\n \"DELETE\".equalsIgnoreCase(method)) {\n continue;\n }\n }\n parametersNew.add(parameter);\n }\n operation.put(\"parameters\", parametersNew);\n }\n }\n\n resource.setContent(resourceDoc.toJSONString());\n //update the registry\n registry.put(docResourcePath, resource);\n }\n }",
"public static boolean start(RootDoc root) {\n\t\tSystem.out.println(\"Generating MDX docs for IRI V\" + version);\n\t\tMDXDoclet doclet = new MDXDoclet(root);\n\t\t\n\t\tfor (ClassDoc c : root.classes()) {\n \tif (c.name().equals(API_NAME)) {\n \t\tdoclet.generate(c);\n \t\tbreak;\n \t}\n }\n \n System.out.println(\"Documentation generated\");\n return true;\n }",
"void inlineToDocx(WordprocessingMLPackage wordPackage, Text destination, Object paramValue, Matcher paramsMatcher);",
"public void saveBeforeJavadoc() { }",
"public void saveBeforeJavadoc() { }",
"public OpenDefinitionsDocument getDocument() { return _document; }",
"private void addMetaData() {\r\n\t\tdocument.open();\r\n\t\tdocument.addTitle(\"My first PDF\");\r\n\t\tdocument.addSubject(\"Using iText\");\r\n\t\tdocument.addKeywords(\"Java, PDF, iText\");\r\n\t\tdocument.addAuthor(\"Lars Vogel\");\r\n\t\tdocument.addCreator(\"Lars Vogel\");\r\n\t\tdocument.close();\r\n\t}",
"public DocumentController(String date, String content) {\n document = new DocumentSchema();\n document.setDocumentStr(content);\n document.setPublicationDate(date);\n document.setDocId(UUID.randomUUID().toString());\n }",
"@Bean\n\tpublic Docket postApi() {\n\t\treturn new Docket(DocumentationType.SWAGGER_2)\n\t\t\t\t.apiInfo(metadata()).select().paths(regex(\"/api.*\")).build();\n\t}",
"public String getDocumentation(){\n StringBuffer S = new StringBuffer();\n S.append(\"@overview \"); \n S.append(\"This finds a bunch of peaks in a data set for a given detector number.\");\n S.append(\"\\r\\n\");\n S.append(\" This operator wraps the method DataSetTools.operator.Generic.TOF_SCD.FindPeaks#findDetectorPeaks\\n\");\n S.append(\"@algorithm \"); \n S.append(\"\");\n S.append(\"@assumptions \"); \n S.append(\"\");\n S.append(\"@param \");\n S.append(\"The data set for which peaks will be found\");\n S.append(\"@param \");\n S.append(\"The ID of the detector on this data set where the peaks are to be found\");\n S.append(\"@param \");\n S.append(\"The minimum time channel to use\");\n S.append(\"@param \");\n S.append(\"The maximum time channel to use\");\n S.append(\"@param \");\n S.append(\"The maximum number of peaks to find on this detector\");\n S.append(\"@param \");\n S.append(\"The minimum count for a cell to represent a peak\");\n S.append(\"@param \");\n S.append(\"The list of rows to consider\");\n S.append(\"@param \");\n S.append(\"The list of columns to consider\");\n S.append(\"@return \");\n S.append(\"Vector of Old peaks objects\");\n S.append(\"@error \");\n S.append(\"Data Set is null\");\n S.append(\" No such detector id for this DataSet\");\n return S.toString();\n }",
"Rule Document() {\n // Push 1 DocumentNode onto the value stack\n return Sequence(\n WhiteSpace(),\n ZeroOrMore(Header()),\n ZeroOrMore(Definition()),\n EOI,\n actions.pushDocumentNode());\n }",
"private ApiInfo apiDetails() {\n\t\tApiInfo apiInfo= new ApiInfoBuilder()\n\t\t\t\t.title(\"AuthorizationMicroservice Documentation\")\n\t\t\t\t.description(\"Gets the login details and checks the login details if yes it will generate a JWT token which we can use to validate the user.\")\n\t\t\t\t.termsOfServiceUrl(\"Help\")\n\t\t\t\t.license(\"Audit Management System 1.0\")\n\t\t\t\t.contact(new Contact(\"Souraj Mukhopadhyay\",\"cognizant.com\",\"907390@cognizant.com\"))\n\t\t\t\t.version(\"1.0\")\t\t\n\t\t\t\t.build();\n\t\tlog.debug(\"API Info{}:\", apiInfo);\n\t\treturn apiInfo;\n\t}",
"@Bean\n public Docket userApi() {\n return new Docket(DocumentationType.SWAGGER_2)\n .apiInfo(metaData())\n .select()\n .apis(RequestHandlerSelectors.basePackage(API_BASE_PACKAGE))\n .apis(RequestHandlerSelectors.any())\n .paths(PathSelectors.any())\n .build();\n }",
"interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }",
"public DocumentListDefinitionBuilder addDescription(final String description) {\n documentListDefinitionImpl.setDescription(description);\n return this;\n }",
"private ApiInfo getApiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"Online Salon Appointment API\").version(\"1.0\")\n\t\t\t\t.description(\"API for online salon appointment.\").contact(new Contact(\"TEAM 1\",\n\t\t\t\t\t\t\"http://localhost:8100/OnlineSalonAppointment/swagger-ui/\", \"salonservice.office@gmail.com\"))\n\t\t\t\t.license(\"Apache License Version 2.0\").build();\n\t}",
"boolean writeMemberDocs(Model model, MemberShape member) {\n return member.getMemberTrait(model, DocumentationTrait.class)\n .map(DocumentationTrait::getValue)\n .map(docs -> {\n if (member.getMemberTrait(model, DeprecatedTrait.class).isPresent()) {\n docs = \"@deprecated\\n\\n\" + docs;\n }\n writeDocs(docs);\n return true;\n }).orElse(false);\n }",
"public interface DocumentService {\n Document create(Long userId, Document document);\n\n Document update(Long userId, Document document);\n\n Page<Document> findAll(Long userId, Integer documentType, RestPageRequest pageRequest);\n\n Page<Document> findAll(Long userId, Long parentId, Integer documentType, RestPageRequest pageRequest);\n\n Page<Document> findAll(Long userId, Long businessPartnerId, Integer businessPartnerType, Integer documentType, RestPageRequest pageRequest);\n\n List<Document> getAll(Long userId, Integer documentType);\n\n Document findOne(Long userId, Integer documentType, Long recordId);\n\n Document findOne(Long userId, Long recordId);\n\n Document findByDocNumber(Long userId, Integer documentType, String docNumber);\n\n Document findByOrderRefNumber(Long userId, Integer documentType, String orderRefNumber);\n\n Document findByDocNumber(Long userId, Integer documentType, Integer childDocumentType, String docNumber);\n\n void updateAmounts(Double totalTax, Double amountWithoutTax, Double totalAll, Integer quantity, Long userId, Long documentId);\n\n Double getBusinessPartnerBalance(Long userId, Long businessPartnerId);\n\n Double getDocumentAmount(Long userId, Long documentId);\n\n Double getAmountByDocumentByBusinessPartner(Long userId, Long businessPartnerId, Integer documentType, Integer childDocumentType);\n\n Double getInvoicePaymentsTotal(Long userId, Long businessPartnerId, Integer documentType, Integer childDocumentType, Long parentId);\n\n void updateDocumentBalance(Long userId, Long documentId);\n\n Double getSumByTenant(Long userId, Integer documentType, Integer status);\n\n Double getSumByTenantByDate(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate);\n\n Integer getQuantityByTenantByDate(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate);\n\n Double getSumByTenantByDateByBusinessUnit(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate,Long businessUnitId);\n\n Integer getQuantityByTenantByDateByBusinessUnit(Long userId, Integer documentType, Integer status, DateTime startDate, DateTime endDate,Long businessUnitId);\n\n Long countByTenant(Long userId, Integer documentType, Integer status);\n}",
"@Bean\r\n public Docket api() {\n\r\n return new Docket(DocumentationType.SWAGGER_2)\r\n .select()\r\n .apis(RequestHandlerSelectors.basePackage(\"com.varun.swaggerapp\"))\r\n .paths(PathSelectors.any())\r\n .build()\r\n .apiInfo(getMyAppInfo());\r\n }",
"@SwaggerDefinition(info = @Info(description = \"Ampula API \", version = \"1.0.0\", title = \"Ampula API\"),\n produces = MediaType.APPLICATION_JSON_UTF8_VALUE,\n schemes = SwaggerDefinition.Scheme.HTTPS\n)\n@Api(tags = \"Doctor Service\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE, protocols = \"https\")\n@RequestMapping(value = \"api/doctor/\")\npublic interface DoctorEndpoint {\n\n @ApiOperation(value = \"Add new doctor\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\")\n })\n @RequestMapping(value = \"/add\", method = RequestMethod.POST)\n GeneralResponse<Long> addNewDoctor(GeneralRequest<Void, CreateDoctorRequest> request);\n\n\n @ApiOperation(value = \"Fire a doctor\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n GeneralResponse<Void> deleteDoctor(Long doctor_id);\n\n\n @ApiOperation(value = \"Update doctor data\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/update\", method = RequestMethod.POST)\n GeneralResponse<Void> updateDoctorData(GeneralRequest<Long, UpdateDoctorRequest> request);\n\n\n @ApiOperation(value = \"Get doctor data by ID\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/get\", method = RequestMethod.GET)\n GeneralResponse<DoctorDTO> getDoctor(Long doctor_id);\n\n\n @ApiOperation(value = \"Get all doctor's patients\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\"),\n @ApiResponse(code = 500, message = \"Server error\", response = GeneralErrorResponse.class)\n })\n @RequestMapping(value = \"/get/all/patients\", method = RequestMethod.GET)\n GeneralResponse<List<CardDTO>> getAllPatients(Long doctor_id);\n\n\n @ApiOperation(value = \"Get all doctors\")\n @ApiResponses({\n @ApiResponse(code = 200, message = \"OK\")\n })\n @RequestMapping(value = \"/get/all\", method = RequestMethod.GET)\n GeneralResponse<List<DoctorDTO>> getAll();\n\n\n}",
"protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> – all columns must be present in both tables</li>\\n<li><b>LEFT</b> – columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> – columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> – comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question "Which column can have less columns?"</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(List<String> tags);\n }",
"public void setDocAction (String DocAction);",
"public void setDocAction (String DocAction);",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"An identifier of the document that is also present in the paystub response.\")\n\n public String getDocId() {\n return docId;\n }",
"private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}",
"protected SystemInputDef getRequestExamplesModel( OpenAPI api)\n {\n SystemInputDef inputDef = TcasesOpenApi.getRequestExamplesModel( api, getModelOptions());\n return inputDef;\n }",
"@DISPID(-2147417094)\n @PropGet\n com4j.Com4jObject document();",
"public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }",
"public ImmutableList<FlowDocumentation> getFlowDocs() {\n // Relevant flows are leaf flows: precisely the concrete subclasses of Flow.\n return getConcreteSubclassesStream(FlowDocumentation.BASE_FLOW_CLASS_NAME)\n .sorted(comparing(element -> element.getSimpleName().toString()))\n .map(typeElement -> new FlowDocumentation(typeElement, sourceRoot))\n .collect(toImmutableList());\n }",
"@Fix(IssueCodes.MISSING_DOCUMENTATION_ON_IMPLEMENTATION)\n public void addDocumentationToImplementation(final Issue issue, final IssueResolutionAcceptor acceptor) {\n acceptor.accept(issue, Messages.CheckQuickfixProvider_ADD_DOCUMENTATION_LABEL, NLS.bind(Messages.CheckQuickfixProvider_ADD_DOCUMENTATION_DESCN, \"definition\"), NO_IMAGE,// LF\n new AutoDoc<Implementation>(Implementation.class, issue, \"/**\\n{0} * @todo document implementation\\n{0} */\\n{0}\"));\n }",
"public ScriptDocumentation() {\n this(null, null, null);\n }",
"public static String getDoc() {\n return doc;\n }",
"public interface ConfigurationServiceV1 {\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigResponse getBSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSConfigRequest getBSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setServiceLocationRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationResponse setServiceLocation\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetServiceLocationRequest setServiceLocationRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getOPSConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigResponse getOPSConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSConfigRequest getOPSConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getClientConfigRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigResponse getClientConfig\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetClientConfigRequest getClientConfigRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getQSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsResponse getQSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetQSLocationsRequest getQSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setClientToBSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSResponse setClientToBS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetClientToBSRequest setClientToBSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getESLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationsResponse getESLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetESLocationRequest getESLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param setBSToOPSRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSResponse setBSToOPS\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.SetBSToOPSRequest setBSToOPSRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * Documentation goes here.\n * @param getBSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsResponse getBSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetBSLocationsRequest getBSLocationsRequest\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getOPSLocationsRequest\n */\n\n \n public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;\n \n }",
"private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"Spring Boot REST API for Testing Project\")\n .version(\"v1.0\")\n .contact(new Contact(\"Blagovest Anev\", \"https://www.linkedin.com/in/blagovestanev/\", \"blagovestanev@gmail.com\"))\n .build();\n }"
] | [
"0.6979675",
"0.6979675",
"0.65903515",
"0.632845",
"0.62648064",
"0.6199155",
"0.6136335",
"0.61015147",
"0.6081099",
"0.6027692",
"0.6027692",
"0.6014423",
"0.5995143",
"0.5923561",
"0.5877217",
"0.58341414",
"0.58055425",
"0.58019185",
"0.5782968",
"0.57633466",
"0.57620364",
"0.56899095",
"0.56899095",
"0.5657324",
"0.5656444",
"0.5654043",
"0.5637072",
"0.5591242",
"0.55720437",
"0.54837596",
"0.54783165",
"0.5439069",
"0.542129",
"0.5402345",
"0.5401568",
"0.5393683",
"0.5386227",
"0.5381298",
"0.53754205",
"0.5364252",
"0.5311105",
"0.5306999",
"0.5303246",
"0.52971387",
"0.52956843",
"0.52827305",
"0.5282299",
"0.5279957",
"0.52635837",
"0.5261186",
"0.52461386",
"0.5235632",
"0.523224",
"0.5227911",
"0.5200976",
"0.51972437",
"0.5195254",
"0.5172574",
"0.51656336",
"0.5118993",
"0.51182157",
"0.5099813",
"0.50941885",
"0.50941885",
"0.5081929",
"0.507533",
"0.5072624",
"0.5068553",
"0.50590473",
"0.50590473",
"0.5057822",
"0.50557786",
"0.5048534",
"0.5041022",
"0.5040169",
"0.5037662",
"0.50266993",
"0.50255656",
"0.5023543",
"0.5016143",
"0.50149834",
"0.50120646",
"0.50113475",
"0.50049925",
"0.49963397",
"0.49903962",
"0.4989734",
"0.49894232",
"0.49894232",
"0.49835032",
"0.49832624",
"0.4978034",
"0.4974963",
"0.49719885",
"0.496147",
"0.49468985",
"0.49463493",
"0.49455208",
"0.49238557",
"0.4923246"
] | 0.6638375 | 2 |
Returns AST node of security scheme, this reference refers to, or null. | String ramlVersion(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SecurityNode getNode() {\n\t return fo;\n\t}",
"@Override\n\t\tpublic SecurityDirector getSecurity() {\n\t\t\treturn null;\n\t\t}",
"SecurityScheme createSecurityScheme();",
"public Security getSecurity()\n {\n return __m_Security;\n }",
"public SecuritySource getSecuritySource() {\n return (SecuritySource) get(SECURITY_SOURCE_NAME);\n }",
"public SecurityType getSecurityType() {\n return securityType;\n }",
"SecuritySchemeLibrary createSecuritySchemeLibrary();",
"public C7391aa getScheme() {\n return new C7391aa(null);\n }",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getAstRoot() {\n return astRoot_ == null ? uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.getDefaultInstance() : astRoot_;\n }",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getAstRoot() {\n if (astRootBuilder_ == null) {\n return astRoot_ == null ? uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.getDefaultInstance() : astRoot_;\n } else {\n return astRootBuilder_.getMessage();\n }\n }",
"public static ContextNode getCanonicalContextNode(ContextNode contextNode) {\r\n\r\n\t\tRelation relation = contextNode.getRelation(XDIDictionaryConstants.XRI_S_IS);\r\n\t\tif (relation == null) return null;\r\n\r\n\t\treturn relation.follow();\r\n\t}",
"private Optional<Map.Entry<String, SecurityScheme>> getSecurityScheme(OpenAPI openAPI) {\n return Optional.ofNullable(openAPI.getComponents())\n .map(Components::getSecuritySchemes)\n .map(Map::entrySet)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst();\n }",
"public java.lang.String getSecurityType() {\r\n return securityType;\r\n }",
"uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getAstRoot();",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();",
"List<SecurityScheme> securitySchemes();",
"public noNamespace.SourceType getComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(COMPARESOURCE$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public Protocol getProtocol() {\n Protocol result = null;\n \n if (getResourceRef() != null) {\n // Attempt to guess the protocol to use\n // from the target reference scheme\n result = getResourceRef().getSchemeProtocol();\n // Fallback: look at base reference scheme\n if (result == null) {\n result = (getResourceRef().getBaseRef() != null) ? getResourceRef()\n .getBaseRef().getSchemeProtocol()\n : null;\n }\n }\n\n return result;\n }",
"public Integer getSecurity() {\n return security;\n }",
"List<SecuritySchemeRef> securedBy();",
"public C7397ag getScheme() {\n return new C7397ag(null);\n }",
"public SoNode getNodeAppliedTo() {\n \t \t return pimpl.appliedcode == SoAction.AppliedCode.NODE ? pimpl.applieddata.node : null;\n \t \t }",
"SecuritySchemeParameter createSecuritySchemeParameter();",
"@Nullable\n public String getScheme ()\n {\n return m_sScheme;\n }",
"public Sym getSym(){\n return null;\n }",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getAstRootOrBuilder() {\n return astRoot_ == null ? uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.getDefaultInstance() : astRoot_;\n }",
"public org.hl7.fhir.CodeableConcept getCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(CODE$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Nullable public BuildFileAST getAST() {\n return ast;\n }",
"public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }",
"public ch.ehi.basics.types.NlsString getSyntax() {\n\tif (getCbxUsage().hasElementChanged()) {\n\t\tgetCbxUsage().save0or1Dependency(ch.ehi.uml1_4.implementation.UmlUsage.class);\n\t}\n\n\tString syntax = getPnlEditor().getText();\n\n\tif ((syntax != null) && (syntax.length() > 0)) {\n\t\t// replace current value\n\t\tif ((iliSyntax == null) || (iliSyntax.getSyntax() == null)) {\n\t\t\treturn new NlsString(syntax);\n\t\t} else {\n\t\t\treturn new NlsString(iliSyntax.getSyntax(), syntax);\n\t\t}\n\t} else {\n\t\treturn null;\n\t}\n}",
"public edu.umich.icpsr.ddi.VerStmtType getVerStmt()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.VerStmtType target = null;\n target = (edu.umich.icpsr.ddi.VerStmtType)get_store().find_element_user(VERSTMT$22, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public InboundSecurityRulesProtocol protocol() {\n return this.protocol;\n }",
"public IIOMetadataNode getNativeNode() {\n return getNativeNodeForSimpleBox();\n }",
"public interface CipherReference {\n /**\n * Returns an <code>URI</code> that contains an identifier that should be\n * dereferenced.\n * @return an <code>URI</code> that contains an identifier that should be\n * dereferenced.\n */\n String getURI();\n\n /**\n * Gets the URI as an Attribute node. Used to meld the CipherReference\n * with the XMLSignature ResourceResolvers\n * @return the URI as an Attribute node\n */\n Attr getURIAsAttr();\n\n /**\n * Returns the <code>Transforms</code> that specifies how to transform the\n * <code>URI</code> to yield the appropriate cipher value.\n *\n * @return the transform that specifies how to transform the reference to\n * yield the intended cipher value.\n */\n Transforms getTransforms();\n\n /**\n * Sets the <code>Transforms</code> that specifies how to transform the\n * <code>URI</code> to yield the appropriate cipher value.\n *\n * @param transforms the set of <code>Transforms</code> that specifies how\n * to transform the reference to yield the intended cipher value.\n */\n void setTransforms(Transforms transforms);\n}",
"uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getAstRootOrBuilder();",
"public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"@Override\n\t\tpublic String getScheme() {\n\t\t\treturn null;\n\t\t}",
"public Node getReference() {\n return this.reference;\n }",
"public ContextNodeStatement getStatement();",
"public SqlNode asNode() {\n return node;\n }",
"public final IRNode getNode() {\r\n return f_node;\r\n }",
"Future<IssueSecuritySchemeBean> getIssueSecurityScheme(String id);",
"public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getAstRootOrBuilder() {\n if (astRootBuilder_ != null) {\n return astRootBuilder_.getMessageOrBuilder();\n } else {\n return astRoot_ == null ?\n uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.getDefaultInstance() : astRoot_;\n }\n }",
"public noNamespace.SourceType getSource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public static String getConformingColorSchemeCode(String scheme) {\r\n if (!StringUtils.isBlank(scheme)) {\r\n ColorScheme colorScheme = ColorScheme.fromName(scheme);\r\n if (colorScheme != null) {\r\n return colorScheme.code();\r\n }\r\n }\r\n\r\n return null;\r\n }",
"@Override\n\tpublic String getScheme() {\n\t\treturn null;\n\t}",
"@Nullable\r\n Object getNsdIdRef();",
"public interface AST {\n \n /**\n * Returns the label or tag for this AST node.\n */\n public int getNodeLabel ();\n \n /**\n * Returns the textual value of this AST node.\n */\n public String getNodeValue ();\n \n /**\n * Returns a list of child nodes, or null if there are no child nodes. The value returned is a shallow copy\n * which can be manipulated by the caller.\n */\n public List<AST> getChildNodes ();\n \n /**\n * Returns the position of the node in the original source(s).\n */\n public CodePosition getCodePosition ();\n \n}",
"public TerminalRule getSL_DOCUMENTATIONRule() {\n\t\treturn gaDocuTerminals.getSL_DOCUMENTATIONRule();\n\t}",
"public ASTType getTypeNode() {\n return (ASTType) getChild(0);\n }",
"public Node getNode() {\n\t\treturn null;\n\t}",
"Reference owner();",
"public String symbolic() {\n return parent + \"/\" + symbolic;\n }",
"SecurityManager getSecurityManager();",
"SecurityManager getSecurityManager();",
"public Optional<String> getIdentitySource() {\n return Optional.ofNullable(identitySource);\n }",
"int getSymbolicId();",
"OperationNode getNode();",
"public NatPolicy getNatPolicy();",
"Symbol getRef();",
"@Nullable Connector getConnector();",
"public SSLImplementation getSSLImplementation() {\n return sslImplementation;\n }",
"com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType();",
"public ContextNode getContextNode();",
"URI location() {\n if (module.isNamed() && module.getLayer() != null) {\n Configuration cf = module.getLayer().configuration();\n ModuleReference mref\n = cf.findModule(module.getName()).get().reference();\n return mref.location().orElse(null);\n }\n return null;\n }",
"public SystemResourceNode getSystemResourceNode() {\n\t\treturn systemResourceNode;\n\t}",
"public static VISNode get() {\n if (instance == null) {\n instance = new VISNode();\n }\n return instance;\n }",
"private Element dereferenceSTR(Document doc, Element secRefE)\n \t\tthrows Exception {\n \t\tSecurityTokenReference secRef = null;\n \t\tElement tokElement = null;\n \t\t\n \t\tsecRef = new SecurityTokenReference(secRefE);\n \t\t\n \t\t/*\n \t\t * First case: direct reference, according to chap 7.2 of OASIS\n \t\t * WS specification (main document)\n \t\t */\n \t\tif (secRef.containsReference()) {\n \t\t\tif (doDebug) {\n \t\t\t\tlog.debug(\"STR: Reference\");\n \t\t\t}\n \t\t\tElement elem = secRef.getTokenElement(secRef, doc);\n\t\t\tif (tokElement == null) {\n \t\t\t\tthrow new CanonicalizationException(\"empty\");\n \t\t\t}\n \t\t\tX509Security x509token = new X509Security(elem);\n \t\t\tX509Certificate cert = x509token.getX509Certificate(wsDocInfo.getCrypto());\n \t\t\ttokElement = createBST(doc, cert, secRefE);\n \t\t} \n \t\t/*\n \t\t * second case: IssuerSerial, first try to get embedded \n \t\t * certificate, if that fails, lookup in keystore, wrap\n \t\t * in BST according to specification\n \t\t */\n \t\telse if (secRef.containsX509IssuerSerial()) {\n \t\t\tif (doDebug) {\n \t\t\t\tlog.debug(\"STR: IssuerSerial\");\n \t\t\t}\n \t\t\tX509Certificate cert = null;\n \t\t\tX509Security x509token = secRef.getEmbeddedTokenFromIS(doc, wsDocInfo.getCrypto());\n \t\t\tif (x509token != null) {\n \t\t\t\tcert = x509token.getX509Certificate(wsDocInfo.getCrypto());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tX509Certificate[] certs = secRef.getX509IssuerSerial(wsDocInfo.getCrypto());\n \t\t\t\tif (certs == null || certs.length == 0 || certs[0] == null) {\n \t\t\t\t\tthrow new CanonicalizationException(\"empty\");\n \t\t\t\t}\n \t\t\t\tcert = certs[0];\n \t\t\t}\t\n \t\t\ttokElement = createBST(doc, cert, secRefE);\n \t\t}\n \t\t/*\n \t\t * third case: KeyIdentifier, must be SKI, first try to get embedded \n \t\t * certificate, if that fails, lookup in keystore, wrap\n \t\t * in BST according to specification. No other KeyIdentifier\n \t\t * type handled here - just SKI\n \t\t */\n \t\telse if (secRef.containsKeyIdentifier()) {\n \t\t\tif (doDebug) {\n \t\t\t\tlog.debug(\"STR: KeyIdentifier\");\n \t\t\t}\n \t\t\tX509Certificate cert = null;\n \t\t\tX509Security x509token = secRef.getEmbeddedTokenFromSKI(doc, wsDocInfo.getCrypto());\n \t\t\tif (x509token != null) {\n \t\t\t\tcert = x509token.getX509Certificate(wsDocInfo.getCrypto());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tX509Certificate[] certs = secRef.getKeyIdentifier(wsDocInfo.getCrypto());\n \t\t\t\tif (certs == null || certs.length == 0 || certs[0] == null) {\n \t\t\t\t\tthrow new CanonicalizationException(\"empty\");\n \t\t\t\t}\n \t\t\t\tcert = certs[0];\n \t\t\t}\n \t\t\ttokElement = createBST(doc, cert, secRefE);\n \t\t}\n \t\treturn (Element) tokElement;\n \t}",
"String getScheme();",
"public final Node getOther() {\n Flow f = getFlow();\n return f.isInternal()\n ? isSend()\n ? f.getTarget()\n : f.getSource()\n : ( (ExternalFlow) f ).getConnector();\n }",
"public Node getNode();",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot getSwissprot()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Swissprot)get_store().find_element_user(SWISSPROT$14, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getSecurityAnswer() {\n return securityAnswer;\n }",
"public String getTokenType() {\n return scheme;\n }",
"TokenRule get(String iisnBin);",
"public java.lang.String getProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROTOCOL$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Node getNode(Reference ref, Presentation presentation);",
"public String getSocialSecurityNumber() {\r\n\t\treturn socialSecurityNumber;\r\n\t}",
"public SymbolicElement<T> getAnchor();",
"public com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType() {\n com.cantor.drop.aggregator.model.CFTrade.SecurityIdType result = com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.valueOf(secIdType_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.CUSIP : result;\n }",
"OctetString getSecurityName();",
"public TerminalRule getSL_COMMENTRule() {\n\t\treturn gaXtype.getSL_COMMENTRule();\n\t}",
"public TerminalRule getSL_COMMENTRule() {\n\t\treturn gaXtype.getSL_COMMENTRule();\n\t}",
"public Node source() {\n\t\treturn _source;\n\t}",
"private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }",
"public com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType() {\n com.cantor.drop.aggregator.model.CFTrade.SecurityIdType result = com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.valueOf(secIdType_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.SecurityIdType.CUSIP : result;\n }",
"@Nullable\n public Semantics getSemantics() {\n if (mImpl.hasSemantics()) {\n return Semantics.fromProto(mImpl.getSemantics());\n } else {\n return null;\n }\n }",
"@Nullable\n public Semantics getSemantics() {\n if (mImpl.hasSemantics()) {\n return Semantics.fromProto(mImpl.getSemantics());\n } else {\n return null;\n }\n }",
"public String getSecurityToken()\r\n {\r\n return getAttribute(\"token\");\r\n }",
"public String getSourceNode() {\n return sourceNode;\n }",
"public TerminalRule getSL_COMMENTRule() {\r\n\t\treturn gaXtype.getSL_COMMENTRule();\r\n\t}",
"java.lang.String getScheme();",
"Node getNode();",
"SourceRole getOuterSourceRole__SourceRole();",
"public AstNode getTarget() {\n return target;\n }",
"public FlowNode getFlowNode() {\n\t\treturn this.getHasInstanceRelationship().getNode();\n\t}",
"public NlsString getConstraint() {\n\tString syntax = getPnlEditor().getText();\n\n\tif ((syntax != null) && (syntax.length() > 0)) {\n\t\t// replace current value\n\t\tif (((ConstraintExpression)constraint.getBody()).getSyntax() == null) {\n\t\t\treturn new ch.ehi.basics.types.NlsString(syntax);\n\t\t} else {\n\t\t\treturn new ch.ehi.basics.types.NlsString(((ConstraintExpression)constraint.getBody()).getSyntax(), syntax);\n\t\t}\n\t} else {\n\t\treturn null;\n\t}\n}",
"public SecurityContext getSecurityContext();",
"public String getNode() {\n return node;\n }",
"@Override\n public SecurityIdentifier deserialize( JsonParser p, DeserializationContext ctxt )\n throws IOException, JsonProcessingException {\n final JsonNode node = p.getCodec().readTree( p );\n final String value = node.asText();\n if( StringUtils.isBlank( value ) )\n return null;\n \n return SecurityIdentifier.parse( value ).orElse( null );\n }",
"public IdentifierNode getIdentifier()throws ClassCastException;"
] | [
"0.61337394",
"0.58632314",
"0.5578889",
"0.5427325",
"0.52981746",
"0.5166254",
"0.51150584",
"0.50839865",
"0.50584906",
"0.50509644",
"0.49971342",
"0.49876052",
"0.4943056",
"0.49350426",
"0.49302837",
"0.4925575",
"0.4902974",
"0.48905835",
"0.48225278",
"0.4803065",
"0.47638646",
"0.47598192",
"0.47596744",
"0.474974",
"0.47495642",
"0.47413525",
"0.47289246",
"0.47281107",
"0.46816257",
"0.46810377",
"0.46764374",
"0.4674601",
"0.46700132",
"0.4664162",
"0.46532625",
"0.46422735",
"0.46264166",
"0.46173534",
"0.46020105",
"0.45893806",
"0.4583161",
"0.4575765",
"0.45710656",
"0.45702928",
"0.45640993",
"0.4563891",
"0.4561018",
"0.45522475",
"0.45329845",
"0.45258343",
"0.45212734",
"0.4511881",
"0.45043498",
"0.44960168",
"0.44960168",
"0.4491496",
"0.4485216",
"0.44710985",
"0.44669014",
"0.4464634",
"0.44601735",
"0.44526446",
"0.4439112",
"0.44382033",
"0.4421166",
"0.4415609",
"0.44150323",
"0.44135526",
"0.44135034",
"0.44099236",
"0.44075322",
"0.44013214",
"0.4400574",
"0.43993372",
"0.4394245",
"0.43896103",
"0.43849105",
"0.43797103",
"0.4374104",
"0.43729538",
"0.43697125",
"0.43631628",
"0.43631628",
"0.4358741",
"0.43583176",
"0.43539703",
"0.4351676",
"0.4351676",
"0.43453813",
"0.43425545",
"0.43386117",
"0.43380225",
"0.43342507",
"0.43301615",
"0.4329268",
"0.4327289",
"0.43271646",
"0.43265504",
"0.4325498",
"0.4321417",
"0.4319297"
] | 0.0 | -1 |
Positions de Lara et Indiana Jones | public static void main(String[] args) {
int posIndi = 1;
int posLara = 4;
// Position de la bague
int posBague = 7;
boolean laraEstSurLaBague = false;
boolean indiEstSurLaBague = false;
// Position de la bombe, le joueur qui tombe sur cette case, voit sa partie
// renitialisée
int posBombe = 11;
// Position du passage secret, si un joueur atteint cette case il est direct
// propulsé à la case 14
int posPassageSecret = 6;
// Etat du jeu, vrai si personne n'a encore atteint le trésor
boolean estEnCours = true;
// Joueur Courant Indi --> 1 Lara --> 2
int joueurCourant = 1;
PlateauJeu jeu = new PlateauJeu();
jeu.placerIndi(posIndi);
jeu.placerLara(posLara);
jeu.placerBague(posBague);
jeu.placerPassage(posPassageSecret);
jeu.placerBombe(posBombe);
// Jeu
while (estEnCours) {
if (joueurCourant == 1) {
jeu.afficherInformation("Tour d'Indi!");
int de = jeu.lancerDe();
posIndi += de;
if (posIndi == posLara) {
posIndi++;
}
// Si Indi est sur la case du passage, on supprime le passage et on empêche tout autre personne de marcher sur le passage
if (posIndi == posPassageSecret) {
jeu.afficherInformation(
"Indi a pris le passage secret, il sera à la case 14, cliquez \"suivant\" pour continuer");
posIndi = 14;
jeu.supprimerPassage();
posPassageSecret = -1;
jeu.suivant();
}
// Si Indi est sur la case de la bombe, on supprime la bombe et on empêche tout autre personne de marcher sur une bombe
if (posIndi == posBombe) {
jeu.supprimerIndi();
posIndi = 1;
jeu.placerIndi(posIndi);
jeu.supprimerBombe();
posBombe = -1;
jeu.afficherInformation(
"Indi a pris la bombe, sa partie est renitialisée, cliquez \"suivant\" pour continuer");
jeu.suivant();
}
// Si Indi est sur la case de la bague, on supprime la bague et on empêche tout autre personne de marcher sur une bague
if (posIndi == posBague) {
indiEstSurLaBague = true;
jeu.supprimerBague();
jeu.placerIndi(posIndi);
posBague = -1;
jeu.afficherInformation(
"Indi a pris la bague, il perd un tour, cliquez \"suivant\" pour continuer");
jeu.suivant();
}
posIndi = (posIndi > 16) ? 16 : posIndi;
jeu.deplacerIndi(posIndi);
// Si Lara n'a pas marché sur la bague, le tour prochain est le sien
if (!laraEstSurLaBague) {
joueurCourant = 2;
}
// Si Lara a marché sur la bague, elle perd un tour
if (laraEstSurLaBague) {
laraEstSurLaBague = false;
}
} else {
jeu.afficherInformation("Tour de Lara!");
int de = jeu.lancerDe();
posLara += de;
if (posLara == posIndi) {
posLara++;
}
// Si Lara est sur la case du passage, on supprime le passage et on empêche tout autre personne de marcher sur le passage
if (posLara == posPassageSecret) {
jeu.afficherInformation(
"Lara a pris le passage secret, elle sera à la case 14, cliquez \"suivant\" pour continuer");
posLara = 14;
jeu.supprimerPassage();
posPassageSecret = -1;
jeu.suivant();
}
// Si Lara est sur la case de la bombe, on supprime la bombe et on empêche tout autre personne de marcher sur une bombe
if (posLara == posBombe) {
jeu.supprimerLara();
posLara = 4;
jeu.placerLara(posLara);
jeu.supprimerBombe();
posBombe = -1;
jeu.afficherInformation(
"Lara a pris la bombe, sa partie est renitialisée, cliquez \"suivant\" pour continuer");
jeu.suivant();
}
// Si Lara est sur la case de la bague, on supprime la bague et on empêche tout autre personne de marcher sur une bague
if (posLara == posBague) {
laraEstSurLaBague = true;
jeu.supprimerBague();
jeu.placerLara(posLara);
posBague = -1;
jeu.afficherInformation(
"Lara a pris la bague, elle perd un tour, cliquez \"suivant\" pour continuer");
jeu.suivant();
}
posLara = (posLara > 16) ? 16 : posLara;
jeu.deplacerLara(posLara);
// Si Indi n'a pas marché sur la bague, le tour prochain est le sien
if (!indiEstSurLaBague) {
joueurCourant = 1;
}
// Si Indi a marché sur la bague, il perd un tour
if (indiEstSurLaBague) {
indiEstSurLaBague = false;
}
}
// Condition de continuation du jeu
estEnCours = posLara < 16 && posIndi < 16;
}
if (posLara == 16) {
jeu.afficherInformation("Lara a gagné! La partie est terminée");
} else {
jeu.afficherInformation("Indi a gagné! La partie est terminée");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"RealLocalizable getPosition();",
"public int getLon();",
"public int stapelPosition(Farbe farbe);",
"Position_abscisse createPosition_abscisse();",
"Position_changerAbscisse createPosition_changerAbscisse();",
"int getLatE6();",
"int getLatE6();",
"public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }",
"Vaisseau_positionner createVaisseau_positionner();",
"public void avancaPosicio(int[] posicions) {\n\n if (Arrays.equals(posicions, Const.FINISH_CODE)) {\n //Acaba la frame del joc\n v.closeFrame();\n return;\n }\n \n jugadors[0].getCentre().setX(posicions[0]);\n jugadors[0].getCentre().setY(posicions[1]);\n jugadors[1].getCentre().setX(posicions[2]);\n jugadors[1].getCentre().setY(posicions[3]);\n\n //Afegeix les noves posicions\n if ((jugadors[0].getCentre().getX() != -1) || (jugadors[0].getCentre().getY() != -1)){\n jugadors[0].addCoordToPath(new Coord(jugadors[0].getCentre()));\n }\n if ((jugadors[1].getCentre().getX() != -1) || (jugadors[1].getCentre().getY() != -1)){\n jugadors[1].addCoordToPath(new Coord(jugadors[1].getCentre()));\n }\n //Avisa a la Vista_Client\n avisarObservadors();\n\n }",
"public int getLat();",
"Vaisseau_occupeLaPosition createVaisseau_occupeLaPosition();",
"Position_ordonnee createPosition_ordonnee();",
"private void position(){\n\t\tpositionX=x;//coordonnees(dans la minimap) de la case ou on a clicke ou la fourmiliere(au debut).\n\t\tpositionY=y;\n\t\tboolean posX=false,posY=false;//Ces boolean me servent a savoir s'il a eu des changements sur les coordonnees.\n\t\tif(positionY-zoom/2<=0 ){//si ordonnee negative,ca veut dire qu'on est sorti de la minimap.\n\t\t\tpositionY=0;//pour pas etre hors du tableau on met l'ordonnee a 0\n\t\t\tposY=true;//et on indique qu'on a change les ordonnees.\n\t\t\t\t}\n\t\tif(positionX-zoom/2<=0){//si abscisse negative\n\t\t\tpositionX=0;\n\t\t\tposX=true;//on indique qu'on a change les abscisses.\n\t\t}\n\t\tif(positionY+zoom>=(finY-debutY)+1){//si ordonnee plus grand que la taille de la minimap.\n\t\t\tpositionY=heightCase*(finY-debutY)-zoom*heightCase;//on met donc ordonnees a la fin de la minimap (heightCase*(finY-debutY)) et on enleve la place(px) prise par le zoom. \n\t\t\tposY=true;//et on indique qu'on a change les ordonnees.\n\t\t}\n\t\tif(positionX+zoom>=(finX-debutX)+1){//si abscisse plus grand que la taille de la minimap.\n\t\t\tpositionX=widthCase*(finX-debutX)-zoom*widthCase;\n\t\t\tposX=true;\n\t\t}\n\t\tif(!posX) {//si on a pas change les abscisses\n\t\t\t\tpositionX=widthCase*positionX-zoom*widthCase/2;//pour trouver l'abscisse en px en multiplie positionX par la taille d'une case puis on enleve la place(px) prise par le zoom\n\t\t\t}\n\t\tif(!posY)//si on a pas change les ordonnees.\n\t\t\tpositionY=heightCase*positionY-zoom*heightCase/2;\n\t\t}",
"SpacesInvaders_aUnVaisseauQuiOccupeLaPosition createSpacesInvaders_aUnVaisseauQuiOccupeLaPosition();",
"private static int[] ubicarPosicionCero(int[][] estado) {\n\t\tfor(int i = 0 ; i < estado.length ; i++) {\n\t\t\tfor(int j = 0 ; j < estado.length ; j++) {\n\t\t\t\tif(estado[i][j]==0) {\n\t\t\t\t\tSystem.out.println(\"La posicion del espacio cero es: \"+ i +\",\"+j);\n\t\t\t\t\treturn new int[] {i,j};\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"La posicion del espacio cero es: \"+ i +\",\"+j);\n\t\t\t\t//posicion[0]= i;\n\t\t\t\t//posicion[1]=j;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int pegaIndicePosicaoPelaLatitudeLongitude(double latitude, double longitude) \n\t{\n\t\tfor (PosicaoMapa posicaoMapa : posicoes){\n\t\t\tif (posicaoMapa.getLatitude() == latitude && posicaoMapa.getLongitude() == longitude)\n\t\t\t\treturn posicoes.indexOf(posicaoMapa);\n\t\t}\n\t\treturn -1;\n\t}",
"long getCoordinates();",
"long getCoordinates();",
"public int getPos();",
"public int getPos();",
"public int getLocation()\r\n {\n }",
"public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }",
"public List<Integer> pacmanLocation(){\n\n pacmanLocay.add(0);\n pacmanLocay.add(0);\n\n return pacmanLocay;\n }",
"int getStamina();",
"public int PositionGet();",
"@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}",
"public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}",
"int getPosition();",
"protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }",
"private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}",
"private String getCords() {\n return current.getLocString();\n\n }",
"NavePosicao(int frame, double angulo) {\r\n\t\tthis.frame = frame;\r\n\t\tthis.angulo = angulo;\r\n }",
"public Position position();",
"void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}",
"public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}",
"private int procurarIndice(String cpf){\n\t\t\n\t\t//posição = -1 é uma situação impossivel para esse caso, \n\t\t//serve para caso não se encontre um cliente no array.\n\t\tint posicao = -1;\n\t\t\n\t\t//percorrendo o array ate o indice que é o ultimo cliente added\n\t\tfor(int i = 0; i < indice; i++){\n\t\t\t\n\t\t\tif(clientes[i].getCpf().equals(cpf)){\n\t\t\t\tposicao = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn posicao;\n\t}",
"public abstract String getPos();",
"private void getCurrentDetectedLipCoordinates(float coor[]) {\n if (coor.length != porc_lipstick_down_highlight_filter_refrence_feature_table.length * 2)\n return;\n\n for (int i = 0; i < porc_lipstick_down_highlight_filter_refrence_feature_table.length; i++) {\n coor[2 * i] = facesFeaturesCoordinates[2 * porc_lipstick_down_highlight_filter_refrence_feature_table[i]];\n coor[2 * i + 1] = facesFeaturesCoordinates[2 * porc_lipstick_down_highlight_filter_refrence_feature_table[i] + 1];\n }\n\n }",
"int getLngE6();",
"int getLngE6();",
"public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }",
"int getNombreColonnesPlateau();",
"@Override\n public String location() {\n return \"Vị trí sách giáo khoa\";\n }",
"public ArrayList<Integer> searchPosition(Estados e) { //considerando um ponto so\n ArrayList<Integer> positions = new ArrayList<>();\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 4; j++) {\n if (matrix[i][j] == e) {\n positions.add(i);\n positions.add(j);\n }\n\n }\n\n }\n return positions;\n\n }",
"String getLawnPosition();",
"public int leftPosion (double degLon){\n double scale = pictureSizePixels/worlSizeMeters;\n return (int) Math.round(xCoordinate(degLon)\n *scale\n +(pictureSizePixels/2));\n }",
"double a_marker_position ()\n {\n double l_return = 0.0;\n\n if (marker != null)\n {\n l_return = marker.getPosition ();\n }\n\n return l_return;\n\n }",
"public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }",
"int getNombreLignesPlateau();",
"public int getPosition();",
"default String getPos() {\n return meta(\"nlpcraft:nlp:pos\");\n }",
"public Coordinate getCoordenadasActuales() ;",
"public int intip() {\r\n return elemen[ukuran - 1];\r\n }",
"double getMapPositionX();",
"public void adjLocation(double l){this.PlayerLocation;}",
"public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}",
"public final void initialPosition() {\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.RED, Type.PAWN), new PositionImpl( 38 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.BLACK, Type.PAWN), new PositionImpl( 12 + i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.YELLOW, Type.PAWN), new PositionImpl( 1 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.GREEN, Type.PAWN), new PositionImpl( 48 + i));\n\t\t}\n\t\t\n\t\tsetPiece( new PieceImpl( Color.RED, Type.BOAT), new PositionImpl( 63 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KNIGHT), new PositionImpl( 55 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.ELEPHANT), new PositionImpl( 47 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KING), new PositionImpl( 39 ));\n\t\t\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.BOAT), new PositionImpl( 7 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KNIGHT), new PositionImpl( 6 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.ELEPHANT), new PositionImpl( 5 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KING), new PositionImpl( 4 ));\n\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.BOAT), new PositionImpl( 0 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KNIGHT), new PositionImpl( 8 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.ELEPHANT), new PositionImpl( 16 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KING), new PositionImpl( 24 ));\n\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.BOAT), new PositionImpl( 56 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KNIGHT), new PositionImpl( 57 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.ELEPHANT), new PositionImpl( 58 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KING), new PositionImpl( 59 ));\n\t\t\n }",
"@Override\r\n\tpublic String[][] mostraPosicao(String[][] mapa) {\n\t\treturn null;\r\n\t}",
"public int getLocation() {\n\t\treturn 0;\n\t}",
"@Override \n public Vector getLocation() {\n return this.getR();\n }",
"void locate(int pos, int[] ind) {\r\n\t\tind[0] = (int) pos / (dimx * dimy); // t\r\n\t\tind[1] = (pos % (dimx * dimy)) / dimy; // x\r\n\t\tind[2] = pos % (dimy); // y\r\n\t}",
"public static void main(String[] args) {\n String X_awal = \"my name is marouane, and i'm sick, thank you very much\";\n String Y = \"my name is adeleye, but you are very sick, thank you \";\n String X = match(X_awal, Y);\n int[] Penanda_Y = new int[Y.length()];\n int y_length = Y.length();\n for (int k = 0; k < y_length; k++) {\n Penanda_Y[k] = 0;\n }\n int m = X.length();\n int n = Y.length();\n String L = \"\";\n String LSym = \"\";\n int R = 0;\n int i = 1;\n int[] P = new int[100];\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n i = 1;\n while (i <= m) {\n if (i != m) {\n P[i + 1] = posisi(X, Y, (i + 1), Penanda_Y, R);\n }\n if (P[i + 1] == 0) {\n if (P[i] > R) {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n }\n break;\n }\n\n if (P[i + 1] < R || P[i] < R) {\n R = 0;\n }\n if (P[i] > P[i + 1]) {\n if (R == 0 && i > 1) {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n Penanda_Y[P[i] - 1] = 1;\n R = P[i];\n i = i + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n } else {\n L = L + \" \" + Integer.toString(P[i + 1]);\n LSym = LSym + \" \" + X.charAt(i + 1 - 1);\n Penanda_Y[P[i + 1] - 1] = 1;\n R = P[i + 1];\n i = (i + 1) + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n }\n\n } else {\n\n if (R == 0 && i > 1) {\n L = L + \" \" + Integer.toString(P[i + 1]);\n LSym = LSym + \" \" + X.charAt(i + 1 - 1);\n Penanda_Y[P[i + 1] - 1] = 1;\n R = P[i + 1];\n i = (i + 1) + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n } else {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n Penanda_Y[P[i] - 1] = 1;\n R = P[i];\n i = i + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n }\n }\n }\n System.out.println(\"X = \" + X_awal);\n System.out.println(\"X = \" + Y);\n System.out.println(\"L = \" + L);\n System.out.println(\"LSym = \" + LSym);\n System.out.println(\"Length = \" + LSym.length() / 2);\n}",
"@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }",
"public int getX() { return loc.x; }",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"public Coord addressToCoord(String localisation);",
"protected int[] pos(int raster) {\n return FormatTools.rasterToPosition(lengths, raster);\n }",
"IntPoint getLocation();",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"private void preenchePosicoes(List<Par<Integer,Integer>> posicoes, \n\t\t\tEstadoAmbiente estado) {\n\t\tfor (Par<Integer,Integer> p : posicoes) {\n\t\t\tthis.quadricula[p.primeiro()][p.segundo()] = estado;\n\t\t}\n\t}",
"public int getLocX() {\n return locX;\n }",
"Object getPosition();",
"public int pegaIndicePosicao(PosicaoMapa posicao) \n\t{\n\t\treturn posicoes.indexOf(posicao);\n\t}",
"public Point getLabelPosition();",
"public Vector getLocation();",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }",
"private int separarCoordenadasCol(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[1]);\n\t}",
"public long getPosition();",
"int getStartPosition();",
"int getStartPosition();",
"public void colocarMarcadores(){\n\n if(seeOnMap != 0){\n\n for (int n=0; n<c.getCount(); n++) {\n c.moveToPosition(n);\n Double lat = c.getDouble(c.getColumnIndex(\"lat\"));\n Double lng = c.getDouble(c.getColumnIndex(\"lon\"));\n String name = c.getString(c.getColumnIndex(\"title\"));\n\n map.addMarker(new MarkerOptions().position(new LatLng(lat, lng))\n .title(name));\n }\n }\n }",
"private void BajarPieza1posicion() {\n for (int i = 0; i < 4; ++i) {\r\n int x = posicionX + piezaActual.x(i);\r\n int y = posicionY - piezaActual.y(i);\r\n piezas[(y * anchoTablero) + x] = piezaActual.getPieza();\r\n }\r\n\r\n BorrarLineas();\r\n\r\n if (!finalizoQuitarFilas) {\r\n nuevaPieza();\r\n }\r\n }",
"void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}",
"public static void main(String[] args) {\n \n String [] nomePlanetas = {\"Terra\",\"Marte\",\"Plutão\",\"Venuz\"};\n \n //imprimi o valor do vetor na posição\n System.out.println(\"O nome do planeta é: \"+nomePlanetas[3]);\n \n \n }",
"public Position<Arco<E>> getPosEnEntrante(){\r\n\t\treturn posV2;\r\n\t}",
"public void setInitialPosition()\n {\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.a2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.b2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.c2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.d2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.e2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.f2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.g2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.h2);\n //Se colocan los peones negros en la séptima fila\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.a7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.b7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.c7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.d7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.e7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.f7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.g7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.h7);\n //Se colocan las torres blancas en a1 y h1\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.a1);\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.h1);\n //Se colocan las torres negras en a8 y h9\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.a8);\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.h8);\n //Se colocan los caballos blancos en b1 y g1\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.b1);\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.g1);\n //Se colocan los caballos negros en b8 y g8\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.b8);\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.g8);\n //Se colocan los alfiles blancos en c1 y f1\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.c1);\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.f1);\n //Se colocan los alfiles negros en c8 y f8\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.c8);\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.f8);\n //Se coloca la dama blanca en d1\n putGenericPiece(GenericPiece.QUEEN,Colour.WHITE,Square.d1);\n //Se coloca la dama negra en d8\n putGenericPiece(GenericPiece.QUEEN,Colour.BLACK,Square.d8);\n //Se coloca el rey blanco en e1\n putGenericPiece(GenericPiece.KING,Colour.WHITE,Square.e1);\n //Se coloca el rey negro en e8\n putGenericPiece(GenericPiece.KING,Colour.BLACK,Square.e8);\n \n //Se permiten los enroques para ambos jugadores\n setCastlingShort(Colour.WHITE,true);\n setCastlingShort(Colour.BLACK,true);\n setCastlingLong(Colour.WHITE,true);\n setCastlingLong(Colour.BLACK,true);\n \n //Se da el turno a las blancas\n setTurn(Colour.WHITE);\n \n gamePositionsHash.clear();\n gamePositionsHash.put(zobristKey.getKey(), 1);\n }",
"public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }",
"public static void printPositions()\r\n\t{\r\n\t\tSystem.out.println(\"Doodlebugs\");\r\n\t\tint [][] dbPositions = new int[Board.numberOfDoodlebugs][2];\r\n\t\tdbPositions = doodlebugPositions();\r\n\t\tfor (int i = 0; i < Board.numberOfDoodlebugs; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(Arrays.toString(dbPositions[i]));\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Ants\");\r\n\t\tint[][] positions = new int[Board.numberOfAnts][2];\r\n\t\tpositions = antPositions();\r\n\t\tfor (int i = 0; i < Board.numberOfAnts; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(Arrays.toString(positions[i]));\r\n\t\t}\r\n\t}",
"int getLongitude();",
"private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}",
"Position getNewPosition();",
"String getLocationLabel();",
"int locationOffset(Location location);",
"void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }",
"private int getPos(Label l) {\n\t\tRectangle2D pRect = l.getRect();\n\t\t//System.out.println(pRect);\n\t\tint index = -1;\n\t\tdouble verticalMidpoint = bounds.getX() + (bounds.getWidth() / 2.0d);\n\t\tdouble horizontalMidpoint = bounds.getY() + (bounds.getHeight() / 2.0d);\n\t \n\t\t//drawPoint(new Vector2f((double)verticalMidpoint,(double)horizontalMidpoint), 0.05f, Color.WHITE);\n\t\t\n\t\t// Object can completely fit within the top quadrants\n\t\tboolean topQuadrant = (\n\t\t\t\tpRect.getY() < \n\t\t\t\thorizontalMidpoint && \n\t\t\t\tpRect.getY() + \n\t\t\t\tpRect.getHeight() < \n\t\t\t\thorizontalMidpoint);\n\t\t// Object can completely fit within the bottom quadrants\n\t\tboolean bottomQuadrant = (pRect.getY() > horizontalMidpoint);\n\t\t\n\t\t//System.out.println(topQuadrant);\n\t\t\n\t\t// Object can completely fit within the left quadrants\n\t\tif (pRect.getX() < verticalMidpoint && pRect.getX() + pRect.getWidth() < verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 1;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 2;\n\t\t\t}\n\t\t}\n\t\t// Object can completely fit within the right quadrants\n\t\telse if (pRect.getX() > verticalMidpoint) {\n\t\t\tif (topQuadrant) {\n\t\t\t\tindex = 0;\n\t\t\t}\n\t\t\telse if (bottomQuadrant) {\n\t\t\t\tindex = 3;\n\t\t\t}\n\t\t}\n\t \n\t\treturn index;\n\t}",
"public Coordonnees getCoordonnees(int x, int y) {\r\n\t\tif(y >= 0 && y < hauteur && x >= 0 && x < largeur)\r\n\t\t\treturn this.plateau[y][x].getCoordonnees();\r\n\t\treturn null;\r\n\t}",
"String getPosX();",
"MapLocation getPosition(Unit unit);"
] | [
"0.62253976",
"0.6188817",
"0.6141357",
"0.6091963",
"0.60665023",
"0.60650665",
"0.60650665",
"0.6062755",
"0.6028489",
"0.5969589",
"0.59575313",
"0.59397185",
"0.58352077",
"0.58259124",
"0.5783248",
"0.5776571",
"0.5775651",
"0.5769603",
"0.5769603",
"0.57639813",
"0.57639813",
"0.5758397",
"0.57088387",
"0.57082",
"0.5699698",
"0.5685552",
"0.56710446",
"0.5670947",
"0.5664817",
"0.5660955",
"0.56591153",
"0.56526357",
"0.5641098",
"0.5636872",
"0.5619512",
"0.5617973",
"0.56137",
"0.5608971",
"0.56000304",
"0.5585799",
"0.5585799",
"0.5584604",
"0.55823207",
"0.5582144",
"0.5566276",
"0.55634314",
"0.5551521",
"0.55500925",
"0.55500495",
"0.55486476",
"0.55474657",
"0.55254006",
"0.5523448",
"0.5515458",
"0.5504625",
"0.54968727",
"0.54950386",
"0.54789984",
"0.54776967",
"0.5467421",
"0.54669225",
"0.54667884",
"0.54660857",
"0.54619783",
"0.5461109",
"0.545853",
"0.5452979",
"0.54523903",
"0.5450601",
"0.54429054",
"0.54374915",
"0.5429043",
"0.54280055",
"0.542645",
"0.54240435",
"0.54235846",
"0.5421349",
"0.541664",
"0.54141384",
"0.54081154",
"0.5398569",
"0.5398569",
"0.5395402",
"0.538948",
"0.5382536",
"0.5376208",
"0.53750193",
"0.5373346",
"0.5371989",
"0.5371736",
"0.5370227",
"0.5369106",
"0.5368018",
"0.5366532",
"0.5366417",
"0.5364067",
"0.5362795",
"0.53624696",
"0.5362343",
"0.53593737"
] | 0.5388603 | 84 |
Interface definition for a callback to be invoked when language is selected by user. | public interface OnLanguageSelectedCallback {
/**
* Called when language is selection is completed.
*/
void onLanguageSelected();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onLanguageSelected();",
"public void onLanguageSelected(AjaxBehaviorEvent event){\n SelectOneMenu som = (SelectOneMenu)event.getSource();\n selectedLanguage = som.getValue().toString();\n if(selectedLanguage!=null && !selectedLanguage.equals(defaultLanguage)){\n languageChanged = true;\n System.out.println(\"Language changed!\");\n }\n }",
"public interface LanguageInterface {\n public void setLanguage();\n}",
"@Override\n protected String[] onGetLanguage() {\n return mCurrentLanguage;\n }",
"public void languageChanged(LanguageChangedEvent evt) {\n this.applyI18n();\n }",
"public interface ILocalizationListener {\r\n\t/**\r\n\t * Does something when localization changes\r\n\t */\r\n\tvoid localizationChanged();\r\n}",
"public interface Language {\n\n /**\n * @return the language name\n */\n String getName();\n\n /**\n * @return the language display name, including the version if possible\n */\n String getDisplayName();\n\n /**\n * @return true if this language is active. Implementation can decide based on the runtime, for instance the\n * Groovy language can be inactive when the Groovy runtime is not available\n */\n boolean isActive();\n\n /**\n * @return the repl for this language, null should be returned when the language does not support the repl feature\n */\n Repl getRepl();\n\n /**\n * @return the compiler for this language, null should be returned when the language does not support the compilation feature\n */\n Compiler getCompiler();\n\n /**\n * Init session callback.\n *\n * @param session the initialized session\n */\n void init(ShellSession session);\n\n /**\n * Destroy session callback.\n *\n * @param session the destroyed session\n */\n void destroy(ShellSession session);\n\n}",
"public interface VocabularyListener {\r\n public void onVocabularyClickListener(String word);\r\n}",
"@Override\n public void setLanguage(String lang) {\n }",
"public void setLanguage(String language);",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tmCurriculumVitaeInterface.onAddLanguage();\n\t\t\t\t\t\t}",
"public interface Callback {\n public void onItemSelected(Uri uri);\n }",
"void setLanguage(Language language);",
"public interface CurrencySelectedListener {\n void onCurrencySelected(Currency currency);\n}",
"public interface Callbacks {\n public void onCategorySelected(TaskCategory category);\n }",
"public interface Callbacks\n {\n public void onItemSelected(String id);\n }",
"void localizationChanged();",
"void localizationChanged();",
"void localizationChanged();",
"public interface AppUserSelectedCallback {\n /**\n * Called when user selects user(s) from a list in a dialog.\n *\n * @param appUsers the selected app users\n * @param extraText any text that user entered in dialog,\n * this will be null or empty if not shown or user didn't enter anything\n */\n void selected(Collection<AppUser> appUsers, String extraText);\n\n /**\n * Called when user taps a user in a list\n */\n void selected(AppUser appUser);\n}",
"public interface Callback {\n void onItemSelected(Movie movie, MovieCategories movieCategory, int moviePosition);\n }",
"public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n * public modifier left for readability\n */\n public void onItemSelected(int position);\n }",
"public interface Callbacks {\n\t\t/**\n\t\t * Callback for when an item has been selected.\n\t\t */\n\t\tpublic void onItemSelected(Long id);\n\t}",
"private void hitChangeLanguageApi(final String selectedLang) {\n progressBar.setVisibility(View.VISIBLE);\n ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = AppUtils.getInstance().getUserMap(this);\n params.put(Constants.NetworkConstant.PARAM_USER_ID, AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.USER_ID));\n params.put(Constants.NetworkConstant.PARAM_USER_LANGUAGE, String.valueOf(languageCode));\n Call<ResponseBody> call = apiInterface.hitEditProfileDataApi(AppUtils.getInstance().encryptData(params));\n ApiCall.getInstance().hitService(this, call, new NetworkListener() {\n\n @Override\n public void onSuccess(int responseCode, String response, int requestCode) {\n progressBar.setVisibility(View.GONE);\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n switch (responseCode) {\n case Constants.NetworkConstant.SUCCESS_CODE:\n setLanguage(selectedLang);\n// Locale locale = new Locale(language);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());\n AppUtils.getInstance().openNewActivity(ChangeLanguageActivity.this, new Intent(ChangeLanguageActivity.this, HomeActivity.class));\n break;\n }\n }\n\n\n @Override\n public void onError(String response, int requestCode) {\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n progressBar.setVisibility(View.GONE);\n }\n\n\n @Override\n public void onFailure() {\n progressBar.setVisibility(View.GONE);\n }\n }, 1);\n }",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int pos, long id) {\n String selectedItem = (String) adapterView.getItemAtPosition(pos);\n mLanguageCode = getString(R.string.language_code_english);\n\n if (selectedItem.equals(getString(R.string.language_selection_english))) {\n mLanguageCode = getString(R.string.language_code_english);\n }\n else if (selectedItem.equals(getString(R.string.language_selection_hebrew))) {\n mLanguageCode = getString(R.string.language_code_hebrew);\n }\n\n //Creating an alert dialog to make sure the user wants to change the language\n AlertDialog alertDialog = new AlertDialog.Builder(SignInActivity.this).create();\n alertDialog.setMessage(getString(R.string.sure_to_change_app_language));\n\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getString(R.string.yes), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n Utilities.setAppPreferenceLanguage(getApplicationContext(), mLanguageCode);\n Context context = LocaleHelper.setLocale(getApplicationContext(), mLanguageCode);\n\n //Relaunching the app\n Utilities.restartApplication(SignInActivity.this);\n }\n });\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getString(R.string.no), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n alertDialog.show();\n }",
"@FXML\r\n void englishSelected(ActionEvent event)\r\n {\r\n \t\r\n }",
"public interface Callback {\n /**\n * ClassFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(String studentSelected);\n }",
"public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String id);\n }",
"public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String id);\n }",
"public interface Callback {\n /**\n * Callback invoked when the activated state changes.\n *\n * @param activated {@code true} if Dark theme is activated\n */\n default void onActivated(boolean activated) {}\n /**\n * Callback invoked when the auto mode changes.\n *\n * @param autoMode the auto mode to use\n */\n default void onAutoModeChanged(int autoMode) {}\n /**\n * Callback invoked when the time to automatically activate Dark theme changes.\n *\n * @param startTime the local time to automatically activate Dark theme\n */\n default void onCustomStartTimeChanged(LocalTime startTime) {}\n /**\n * Callback invoked when the time to automatically deactivate Dark theme changes.\n *\n * @param endTime the local time to automatically deactivate Dark theme\n */\n default void onCustomEndTimeChanged(LocalTime endTime) {}\n }",
"public static interface Callbacks {\n \n /**\n * This is called when the user wants to see the open source licences.\n */\n public void onShowLicences();\n }",
"public interface LanguageProvider {\n\tLanguageService study();\n}",
"public interface OnOptionSelectedListener {\n // TODO: Update argument type and name\n void goToNext(boolean isCorrect);\n }",
"public interface Callbacks {\n\t\t/**\n\t\t * Callback for when an item has been selected.\n\t\t */\n\t\tpublic void onItemSelected(String id);\n\t}",
"public interface Callbacks {\n\t\t/**\n\t\t * Callback for when an item has been selected.\n\t\t */\n\t\tpublic void onItemSelected(String id);\n\t}",
"CLanguage getClanguage();",
"private void changeLanguage(String selectedLang) {\n if (AppUtils.getInstance().isInternetAvailable(this)) {\n hitChangeLanguageApi(selectedLang);\n\n }\n }",
"public interface Callbacks {\n\t\tvoid onExerciseSelected(Exercise exercise);\n\t}",
"public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(int id);\n public void onCheckBoxChange(int id);\n }",
"public static void _AddInputLanguageChangedEventHandler(TextEditor This)\r\n {\r\n TextEditorThreadLocalStore threadLocalStore;\r\n\r\n Invariant.Assert(This._dispatcher == null);\r\n This._dispatcher = Dispatcher.CurrentDispatcher; \r\n Invariant.Assert(This._dispatcher != null); \r\n\r\n threadLocalStore = TextEditor._ThreadLocalStore; \r\n\r\n // Only add the input language changed event handler once that safe per UIContext\r\n if (threadLocalStore.InputLanguageChangeEventHandlerCount == 0)\r\n { \r\n // Add input changed event handler into InputLanguageManager\r\n InputLanguageManager.Current.InputLanguageChanged += new InputLanguageEventHandler(OnInputLanguageChanged); \r\n\r\n // Add the dispatcher shutdown finished event handler to remove InputLanguageChangedEventHandler\r\n // before dispose the dispatcher. \r\n Dispatcher.CurrentDispatcher.ShutdownFinished += new EventHandler(OnDispatcherShutdownFinished);\r\n }\r\n\r\n threadLocalStore.InputLanguageChangeEventHandlerCount++; \r\n }",
"public interface Callback {\n void onExpanded(boolean z);\n\n void onInteraction();\n\n void onPrioritySettings();\n }",
"public void setLang() {\n new LanguageManager() {\n @Override\n public void engLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_eng);\n mSaleTitle = getString(R.string.converter_sale_eng);\n mPurchaseTitle = getString(R.string.converter_purchase_eng);\n mCountTitle = getString(R.string.converter_count_of_currencies_eng);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_eng));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleEng());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_eng);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_eng);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_eng);\n mToastFailure = getString(R.string.converter_toast_failure_eng);\n mTitle = getResources().getString(R.string.drawer_item_converter_eng);\n mMessage = getString(R.string.dialog_template_text_eng);\n mTitleButtonOne = getString(R.string.dialog_template_edit_eng);\n mTitleButtonTwo = getString(R.string.dialog_template_create_eng);\n mToastEdited = getString(R.string.converter_toast_template_edit_eng);\n mToastCreated = getString(R.string.converter_toast_template_create_eng);\n mMessageFinal = getString(R.string.converter_final_dialog_text_eng);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_eng);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_eng);\n }\n\n @Override\n public void ukrLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_ukr);\n mSaleTitle = getString(R.string.converter_sale_ukr);\n mPurchaseTitle = getString(R.string.converter_purchase_ukr);\n mCountTitle = getString(R.string.converter_count_of_currencies_ukr);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_ukr));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleUkr());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_ukr);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_ukr);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_ukr);\n mToastFailure = getString(R.string.converter_toast_failure_ukr);\n mTitle = getResources().getString(R.string.drawer_item_converter_ukr);\n mMessage = getString(R.string.dialog_template_text_ukr);\n mTitleButtonOne = getString(R.string.dialog_template_edit_ukr);\n mTitleButtonTwo = getString(R.string.dialog_template_create_ukr);\n mToastEdited = getString(R.string.converter_toast_template_edit_ukr);\n mToastCreated = getString(R.string.converter_toast_template_create_ukr);\n mMessageFinal = getString(R.string.converter_final_dialog_text_ukr);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_ukr);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_ukr);\n }\n\n @Override\n public void rusLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_rus);\n mSaleTitle = getString(R.string.converter_sale_rus);\n mPurchaseTitle = getString(R.string.converter_purchase_rus);\n mCountTitle = getString(R.string.converter_count_of_currencies_rus);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_rus));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleRus());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_rus);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_rus);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_rus);\n mToastFailure = getString(R.string.converter_toast_failure_rus);\n mTitle = getResources().getString(R.string.drawer_item_converter_rus);\n mMessage = getString(R.string.dialog_template_text_rus);\n mTitleButtonOne = getString(R.string.dialog_template_edit_rus);\n mTitleButtonTwo = getString(R.string.dialog_template_create_rus);\n mToastEdited = getString(R.string.converter_toast_template_edit_rus);\n mToastCreated = getString(R.string.converter_toast_template_create_rus);\n mMessageFinal = getString(R.string.converter_final_dialog_text_rus);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_rus);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_rus);\n }\n };\n getDataForActionDialog();\n setData();\n }",
"public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String summary, String poster);\n }",
"public String getLanguage();",
"public interface OnLoadMenuItemOptionSelectedListener {\n\n\t/**\n\t * Invoked on the Play Now option was selected.\n\t * @param track to play now.\n\t */\n\tpublic void onLoadMenuTop10Selected(List<Track> topTenMediaItems);\n\t\n\t/**\n\t * Invoked on the Play Next option was selected.\n\t * @param track to play next.\n\t */\n\tpublic void onLoadMenuRadioSelected();\n\t\n\t/**\n\t * Invoked on the Add To Queue option was selected.\n\t * @param track to add the queue.\n\t */\n\tpublic void onLoadMenuMyPlaylistSelected();\n\t\n\t/**\n\t * Invoked on the Show Details option was selected.\n\t * @param track to show its details.\n\t */\n\tpublic void onLoadMenuMyFavoritesSelected();\n\t\n\t/**\n\t * Invoked on the Show Details option was selected.\n\t * @param track to show its details.\n\t */\n\tpublic void onLoadPlaylistFromDialogSelected(List<Track> tracks);\n\n}",
"String getLanguage();",
"String getLanguage();",
"String getLanguage();",
"public interface Callback {\n /**\n * DetailFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(Uri dateUri);\n }",
"public interface DialogCallback {\n void onSelect(int p);\n}",
"@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public interface TranslateResultListener {\n void onResult(String result);\n}",
"String getLang();",
"public interface OnMenuSelectedListener {\n void onMenuSelected(int index);\n}",
"public interface Callbacks {\n void onCrimeSelected(Crime crime);\n }",
"public interface Callbacks {\n void onCrimeSelected(Crime crime);\n }",
"public interface YTranslatorCallBack {\n void getYTranslateCallBack(String responcse, String progressingName);\n /*void getYTranslateCallBackFromText(String response);\n void getYTranslateCallBackFromQTrans(String response);*/\n}",
"public void updateLanguage() {\n try {\n getUserTicket().setLanguage(EJBLookup.getLanguageEngine().load(updateLanguageId));\n } catch (FxApplicationException e) {\n new FxFacesMsgErr(e).addToContext();\n }\n }",
"protected static void setLanguage(Language lang) {\r\n\t\tInterface.lang = lang;\r\n\t}",
"public void handleCountrySelection(ActionEvent actionEvent) {\n }",
"public interface MerchantListener\n{\n\t/** called when the selected merchant has changed. \n\t * \n\t * @param merchantName The selected merchant or <code>null</code> if none is currently selected\n\t */\n\tpublic void selectedMerchantChanged( String merchantName ) ;\n}",
"public abstract void startVoiceRecognition(String language);",
"public interface SettingsSelectedListener\t{\n\t}",
"public void changeApplicationLanguage(ActionEvent event) {\n\t\tString appConfigPath = \"src/main/resources/properties/AudioEditor.properties\";\n\t\tProperties properties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(new FileInputStream(new File(appConfigPath).getAbsoluteFile()));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (event.getSource() == languageEnglish) {\n\t\t\tcurLocale = new Locale(\"en\", \"US\");\n\t\t\tproperties.setProperty(\"language\", \"en\");\n\t\t\tproperties.setProperty(\"country\", \"US\");\n\t\t} else if (event.getSource() == languageFinnish) {\n\t\t\tcurLocale = new Locale(\"fi\", \"FI\");\n\t\t\tproperties.setProperty(\"country\", \"FI\");\n\t\t\tproperties.setProperty(\"language\", \"fi\");\n\t\t}\n\n\t\ttry (FileOutputStream fos = new FileOutputStream(appConfigPath);) {\n\t\t\tproperties.store(fos, null);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tbundle = ResourceBundle.getBundle(\"properties/ApplicationResources\", curLocale);\n\n\t\tsetApplicationLanguage();\n\t}",
"public interface CallBacks\n {\n void onChangeMode(Mode mode, String id);\n }",
"public interface Callback {\n /**\n * DetailFragmentCallback for when an item has been selected.\n */\n public void onItemSelected(Uri movieUri);\n }",
"public Future<Void> setLanguage(String pLanguage) throws DynamicCallException, ExecutionException{\n return call(\"setLanguage\", pLanguage);\n }",
"java.lang.String getLanguage();",
"java.lang.String getLanguage();",
"public interface Callback {\n public static final int TYPE_REGULAR = 0;\n public static final int TYPE_DRAFT = 1;\n public static final int TYPE_TRASH = 2;\n\n /**\n * Called when the specified mailbox does not exist.\n */\n public void onMailboxNotFound(boolean firstLoad);\n\n /**\n * Called when the user wants to open a message.\n * Note {@code mailboxId} is of the actual mailbox of the message, which is different from\n * {@link MessageListFragment#getMailboxId} if it's magic mailboxes.\n *\n * @param messageId the message ID of the message\n * @param messageMailboxId the mailbox ID of the message.\n * This will never take values like {@link Mailbox#QUERY_ALL_INBOXES}.\n * @param listMailboxId the mailbox ID of the listbox shown on this fragment.\n * This can be that of a magic mailbox, e.g. {@link Mailbox#QUERY_ALL_INBOXES}.\n * @param type {@link #TYPE_REGULAR}, {@link #TYPE_DRAFT} or {@link #TYPE_TRASH}.\n */\n public void onMessageOpen(long messageId, long messageMailboxId, long listMailboxId,\n int type);\n\n /**\n * Called when an operation is initiated that can potentially advance the current\n * message selection (e.g. a delete operation may advance the selection).\n * @param affectedMessages the messages the operation will apply to\n */\n public void onAdvancingOpAccepted(Set<Long> affectedMessages);\n\n /**\n * Called when a drag & drop is initiated.\n *\n * @return true if drag & drop is allowed\n */\n public boolean onDragStarted();\n\n /**\n * Called when a drag & drop is ended.\n */\n public void onDragEnded();\n }",
"@FunctionalInterface\r\npublic interface SelectionModeChangeListener\r\n{\r\n /**\r\n * Default selection mode changed.\r\n *\r\n * @param mode the mode\r\n */\r\n void selectionModeChanged(SelectionMode mode);\r\n}",
"public interface Translator {\n Observable<String> translate(String input, Language toLanguage);\n}",
"public void setLanguage(String newLanguage) {\r\n language = newLanguage;\r\n }",
"public void setLanguage(String language) {\r\n this.language = language;\r\n }",
"public interface OnCategoryListener {\n}",
"public void englishlanguage() {\nSystem.out.println(\"englishlanguage\");\n\t}",
"public static void OnLanguageLoaded( StringTranslate translator )\r\n\t{\n\t\t\r\n\t\tif ( m_bModsInitialized )\r\n\t\t{\r\n\t \tIterator modIterator = m_ModList.iterator();\r\n\t \t\r\n\t \twhile ( modIterator.hasNext() )\r\n\t \t{\r\n\t \t\tFCAddOn tempMod = (FCAddOn)modIterator.next();\r\n\t \t\t\r\n\t \t\ttempMod.OnLanguageLoaded( translator );\r\n\t \t\t\r\n\t \t\tString sPrefix = tempMod.GetLanguageFilePrefix();\r\n\t \t\t\r\n\t \t\tif ( sPrefix != null )\r\n\t \t\t{\r\n\t \t\t\tLogMessage( \"...Add-On Handler Loading Custom Language File With Prefix: \" + sPrefix + \"...\" );\r\n\t \t\t\t\r\n\t \t\t\ttranslator.LoadAddonLanguageExtension( sPrefix );\r\n\t \t\t}\r\n\t \t}\t \t\r\n\t\t}\r\n\t}",
"public void selectLanguage(String language){\n\t\t\t if (language ==\"Spanish\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_0\")).click();\n\t\t\t }\n\t\t\t else if (language==\"English\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_2\")).click();\t\t\t \n\t\t\t }\n\t\t\t else if (language==\"Portuguese\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_1\")).click();\n\t\t\t\t }\n\t \t }",
"@Override\r\n\t\tpublic String getLang()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public interface Callbacks {\n // Through this method is the activity notified of a selected list item\n void onAnimalSelected(Animal animal);\n }",
"@Step(\"Select {language} language from the list\")\n public void selectLanguage(String language) {\n Select select = new Select(languageSelect);\n select.selectByVisibleText(language);\n }",
"@Override\r\n\tpublic LanguageApi getLanguageApi() {\r\n\t\treturn this;\r\n\t}",
"public interface SelectionListener {\n void selected();\n}",
"public interface LessonPluginCallback {\n\n void initPlugin(PluginViewItem item);\n\n void initState(PluginViewItem item);\n\n boolean click(View view);\n}",
"public abstract EnvioMensajesCallBackInterface getInterfaceCallback();",
"@Override\n public String getLang() {\n if (request != null) {\n return GuideUtils.getAcceptLang(request);\n } else {\n return FormContainer.super.getLang();\n }\n }",
"@Override\n protected int onIsLanguageAvailable(String lang, String country, String variant) {\n if (\"eng\".equals(lang)) {\n // We support two specific robot languages, the british robot language\n // and the american robot language.\n if (\"USA\".equals(country) || \"GBR\".equals(country)) {\n // If the engine supported a specific variant, we would have\n // something like.\n //\n // if (\"android\".equals(variant)) {\n // return TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE;\n // }\n return TextToSpeech.LANG_COUNTRY_AVAILABLE;\n }\n\n // We support the language, but not the country.\n return TextToSpeech.LANG_AVAILABLE;\n }\n\n return TextToSpeech.LANG_NOT_SUPPORTED;\n }",
"public void setLanguage(String language) {\n _language = language;\n }",
"protected void localeChanged() {\n\t}",
"public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}",
"public interface Callback {\n public void click();\n }",
"Builder addInLanguage(Text value);",
"private interface CategoriesCallback {\n void onLoadedCategories(boolean success);\n }",
"public void setLanguage(Language l)\n\t{\n\t\tm_language = l;\n\t}",
"public interface ChangedListener {\n\n\n public void onMenuChanged(List<Menu> menus);\n\n}",
"public void setLanguage(String language) {\n this.language = language;\n }",
"public void setLanguage(String language) {\n this.language = language;\n }",
"public interface Callback {\n /**\n * Show top tracks when an item has been selected.\n */\n void onTrackItemSelected(int position, List<USpotifyObject> tracks);\n }",
"public void countryComboBoxListener() {\n countryComboBox.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> buildDivisionComboBox());\n }",
"void updateLang() {\n if (lang == null)\n lang = game.q;\n }"
] | [
"0.847149",
"0.7031381",
"0.65360993",
"0.6479448",
"0.6437849",
"0.63598675",
"0.6307381",
"0.6244386",
"0.6221116",
"0.6182359",
"0.61743927",
"0.6151229",
"0.6099808",
"0.60591775",
"0.6053151",
"0.60493755",
"0.60452837",
"0.60452837",
"0.60452837",
"0.59936476",
"0.59674454",
"0.59506845",
"0.5949625",
"0.5944999",
"0.59388185",
"0.59367967",
"0.59154314",
"0.59060025",
"0.59060025",
"0.59048116",
"0.5895577",
"0.5887994",
"0.5868185",
"0.58617353",
"0.58617353",
"0.5843087",
"0.5840068",
"0.58130276",
"0.5810076",
"0.5807196",
"0.5806199",
"0.5795839",
"0.57943076",
"0.5778358",
"0.5773846",
"0.57363045",
"0.57363045",
"0.57363045",
"0.57268053",
"0.5725167",
"0.57138133",
"0.5706993",
"0.5702397",
"0.5679085",
"0.5674992",
"0.5674992",
"0.5642849",
"0.5611112",
"0.561099",
"0.56088716",
"0.56057334",
"0.5594846",
"0.55871105",
"0.55844593",
"0.558238",
"0.55693597",
"0.5566356",
"0.55656195",
"0.55656195",
"0.5550291",
"0.5542365",
"0.5536589",
"0.5531527",
"0.551697",
"0.5511694",
"0.5505833",
"0.55023396",
"0.5491374",
"0.54818946",
"0.5479683",
"0.54759324",
"0.5475382",
"0.5459943",
"0.5445326",
"0.54423237",
"0.5440047",
"0.5435522",
"0.5433231",
"0.5432088",
"0.54269105",
"0.5417952",
"0.54170805",
"0.54128903",
"0.5412406",
"0.540362",
"0.5403151",
"0.5403151",
"0.5401684",
"0.5400909",
"0.5384902"
] | 0.84541035 | 1 |
Called when language is selection is completed. | void onLanguageSelected(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onLanguageSelected(AjaxBehaviorEvent event){\n SelectOneMenu som = (SelectOneMenu)event.getSource();\n selectedLanguage = som.getValue().toString();\n if(selectedLanguage!=null && !selectedLanguage.equals(defaultLanguage)){\n languageChanged = true;\n System.out.println(\"Language changed!\");\n }\n }",
"protected void onSelectionPerformed(boolean success) {\n }",
"void afterMasterSelectionChange();",
"@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int pos, long id) {\n String selectedItem = (String) adapterView.getItemAtPosition(pos);\n mLanguageCode = getString(R.string.language_code_english);\n\n if (selectedItem.equals(getString(R.string.language_selection_english))) {\n mLanguageCode = getString(R.string.language_code_english);\n }\n else if (selectedItem.equals(getString(R.string.language_selection_hebrew))) {\n mLanguageCode = getString(R.string.language_code_hebrew);\n }\n\n //Creating an alert dialog to make sure the user wants to change the language\n AlertDialog alertDialog = new AlertDialog.Builder(SignInActivity.this).create();\n alertDialog.setMessage(getString(R.string.sure_to_change_app_language));\n\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getString(R.string.yes), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n Utilities.setAppPreferenceLanguage(getApplicationContext(), mLanguageCode);\n Context context = LocaleHelper.setLocale(getApplicationContext(), mLanguageCode);\n\n //Relaunching the app\n Utilities.restartApplication(SignInActivity.this);\n }\n });\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getString(R.string.no), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n alertDialog.show();\n }",
"public interface OnLanguageSelectedCallback {\n\n /**\n * Called when language is selection is completed.\n */\n void onLanguageSelected();\n}",
"@Override\n //When a language is Selected in Language Pane\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n if (!currentlySelectedLang.contains(displayLanguages.get(position)))\n {\n currentlySelectedLang.add(displayLanguages.get(position));\n grayDeleteButton(false);\n prepareSelectedListData();\n }\n //If it is it means its a deselecting so we remove it\n else\n {\n currentlySelectedLang.remove(displayLanguages.get(position));\n if (currentlySelectedLang.size() == 0) {\n loadList();\n grayDeleteButton(true);\n }\n }\n }",
"public void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\ttranslatePhrases(getIOldSegmentPosition());\n\t\t\t\tshowAltTrans(getIOldSegmentPosition(), 0, 0);\n\t\t\t\tif (xliffEditorSegmentDictionaryViewer != null)\n\t\t\t\t{\n\t\t\t\t\txliffEditorSegmentDictionaryViewer.adaptDictionaryViewer(xliffFile, sourceLanguage, targetLanguage);\n\t\t\t\t\txliffEditorSegmentDictionaryViewer.setTerms(getPhrases(getIOldSegmentPosition()));\n\t\t\t\t}\n\t\t\t\tif (xliffEditorDictionaryViewer != null)\n\t\t\t\t{\n\t\t\t\t\txliffEditorDictionaryViewer.adaptDictionaryViewer(sourceLanguage, targetLanguage);\n\t\t\t\t}\n\t\t\t}",
"@FXML\r\n void englishSelected(ActionEvent event)\r\n {\r\n \t\r\n }",
"public void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tif (ptDataSourceFormComposite.getDataSourceInstances() == null)\n\t\t\t\t\treturn;\n\t\t\t\tfor (int i = 0; i < ptDataSourceFormComposite.getDataSourceInstances().size(); i++)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tDataSource datasource = ptDataSourceFormComposite.getDataSourceInstances().get(i);\n\t\t\t\t\t\tElement altrans = datasource.subSegmentTranslate(getXliffEditorWindow().getTransUnits().get(getIOldSegmentPosition()),\n\t\t\t\t\t\t\t\txliffDocument, sourceLanguage, targetLanguage, null);\n\t\t\t\t\t\tif (altrans != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString text = \"\";\n\t\t\t\t\t\t\tVector<PhraseTranslateResult> elements = getPhrases(getIOldSegmentPosition());\n\t\t\t\t\t\t\tfor (int j = 0; j < elements.size(); j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttext = text + elements.get(j).getSourcePhrase() + \" : \" + elements.get(j).getTargetPhrase() + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstatusDisplayWindow.setText(text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e2)\n\t\t\t\t\t{\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshowAltTrans(getIOldSegmentPosition(), 0, 0);\n\t\t\t}",
"void changeLanguage() {\n\n this.currentLocaleIndex++;\n if(this.currentLocaleIndex > this.locales.size() - 1) this.currentLocaleIndex = 0;\n this.updateBundle();\n }",
"public void countryComboBoxListener() {\n countryComboBox.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> buildDivisionComboBox());\n }",
"@Step(\"Select {language} language from the list\")\n public void selectLanguage(String language) {\n Select select = new Select(languageSelect);\n select.selectByVisibleText(language);\n }",
"@Override\n protected void onSelected(Category category) {\n setSelectedCategory(category);\n messageUtil.infoEntity(\"status_selected_ok\", getPart().getCategory());\n }",
"@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\t\n \t\t\t\tupdatePageComplete();\n \t\t\t}",
"public void languageChanged(LanguageChangedEvent evt) {\n this.applyI18n();\n }",
"protected void selectionChanged(ITextSelection selection) {}",
"@FxThread\n private void onFinishLoading() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onFinishLoading(pluginSystem));\n }",
"public void selectLanguage(String language) {\n\t\tdeviceHelper.waitTillTheElementIsVisible(signUpObjects.selectLanguageTitle);\n\t\tdeviceHelper.selectLanguageUsingText(language);\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tmCurriculumVitaeInterface.onAddLanguage();\n\t\t\t\t\t\t}",
"@Override\r\n\t public void onPause() {\n\t \tsuper.onPause();\r\n\t \t StaticStore.LogPrinter('e',\"onPause() ListSelection\");\r\n\t \t StaticStore.midlet.onPauseCalled();\r\n\t }",
"public void onSelectionChanged();",
"private void changeLanguage(String selectedLang) {\n if (AppUtils.getInstance().isInternetAvailable(this)) {\n hitChangeLanguageApi(selectedLang);\n\n }\n }",
"public void refreshLanguage() {\n\t\tbutton.setText(\"<html><p>\"+Translation.SEARCH.getTranslation(PropertiesWorker.language)+\"</p></html>\");\n\t\trefresh.setText(\"<html><p>\"+Translation.REFRESH.getTranslation(PropertiesWorker.language)+\"</p></html>\");\n\t}",
"private void hitChangeLanguageApi(final String selectedLang) {\n progressBar.setVisibility(View.VISIBLE);\n ApiInterface apiInterface = RestApi.createServiceAccessToken(this, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = AppUtils.getInstance().getUserMap(this);\n params.put(Constants.NetworkConstant.PARAM_USER_ID, AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.USER_ID));\n params.put(Constants.NetworkConstant.PARAM_USER_LANGUAGE, String.valueOf(languageCode));\n Call<ResponseBody> call = apiInterface.hitEditProfileDataApi(AppUtils.getInstance().encryptData(params));\n ApiCall.getInstance().hitService(this, call, new NetworkListener() {\n\n @Override\n public void onSuccess(int responseCode, String response, int requestCode) {\n progressBar.setVisibility(View.GONE);\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n switch (responseCode) {\n case Constants.NetworkConstant.SUCCESS_CODE:\n setLanguage(selectedLang);\n// Locale locale = new Locale(language);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());\n AppUtils.getInstance().openNewActivity(ChangeLanguageActivity.this, new Intent(ChangeLanguageActivity.this, HomeActivity.class));\n break;\n }\n }\n\n\n @Override\n public void onError(String response, int requestCode) {\n AppUtils.getInstance().printLogMessage(Constants.NetworkConstant.ALERT, response);\n progressBar.setVisibility(View.GONE);\n }\n\n\n @Override\n public void onFailure() {\n progressBar.setVisibility(View.GONE);\n }\n }, 1);\n }",
"public void updateLanguage() {\n this.title.setText(LanguageStringMap.get().getMap().get(TITLE_KEY));\n this.skinSwitcher.updateLanguage();\n this.langSwitcher.updateLanguage();\n this.pawnSwitcher.updateLanguage();\n this.musicManager.updateLanguage();\n this.back.setText(LanguageStringMap.get().getMap().get(BACK_KEY));\n }",
"public void updateComboLang() {\n this.pawnSwitcher.updatePrompt();\n }",
"public void updateLanguage() {\n try {\n getUserTicket().setLanguage(EJBLookup.getLanguageEngine().load(updateLanguageId));\n } catch (FxApplicationException e) {\n new FxFacesMsgErr(e).addToContext();\n }\n }",
"public void selectionChanged(Selection selecton) {\r\n }",
"@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tupdateOkState();\r\n\t\t\t}",
"@Override\n protected String[] onGetLanguage() {\n return mCurrentLanguage;\n }",
"@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}",
"public void converterSelected() {\n\t}",
"@Subscribe\r\n\tpublic void onSelectCategoryAnalysis(CategoryAnalysisDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"public void widgetSelected(SelectionEvent e) {\n\t\tif (getSelection().size()<1) {\n\t\t\tsetErrorMessage(\"Please select one or more automata.\");\n\t\t\tsetPageComplete(false);\n\t\t} else {\n\t\t\tsetErrorMessage(null);\n\t\t\tsetPageComplete(true);\n\t\t}\n\t}",
"public void complete() {\r\n\t\tcomplete(suggestBox.getText());\r\n\t}",
"protected void onSelect() {\n\n }",
"public void handleCountrySelection(ActionEvent actionEvent) {\n }",
"protected void selectionChanged(IStructuredSelection selection) {\n \t}",
"@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}",
"private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tWindow.alert(\"Thank you for selecting\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}",
"@Subscribe\r\n\tpublic void onSelectBMDAnalysisResults(BMDAnalysisDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"public void endSelection()\n {\n\tisMultiSelection = false;\n\tsetMaxCheckCount(1);\n\tuncheckAll();\n }",
"@Override public void onAfterStateSwitch() {\n assert SwingUtilities.isEventDispatchThread();\n assert isVisible();\n try {\n license = manager().load();\n onLicenseChange();\n manager().verify();\n } catch (final Exception failure) {\n JOptionPane.showMessageDialog(\n this,\n failure instanceof LicenseValidationException\n ? failure.getLocalizedMessage()\n : format(LicenseWizardMessage.display_failure),\n format(LicenseWizardMessage.failure_title),\n JOptionPane.ERROR_MESSAGE);\n }\n }",
"@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}",
"protected void localeChanged() {\n\t}",
"void selectionModeChanged(SelectionMode mode);",
"public void updateSelectionMode() {\n final int numSelected = getSelectedCount();\n if ((numSelected == 0) || mDisableCab || !isViewCreated()) {\n finishSelectionMode();\n return;\n }\n if (isInSelectionMode()) {\n updateSelectionModeView();\n } else {\n mLastSelectionModeCallback = new SelectionModeCallback();\n getActivity().startActionMode(mLastSelectionModeCallback);\n }\n }",
"void onItemSelected(Bundle args);",
"private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }",
"public void UpdateLang() {\n for (ParamButton selected : this.mBtnLang) {\n selected.setSelected(false);\n }\n int lang = FtSet.GetLangDef();\n if (lang < 0 || lang >= this.mBtnLang.length) {\n this.mBtnLang[0].setSelected(true);\n } else {\n this.mBtnLang[lang].setSelected(true);\n }\n }",
"public void selectionChanged(IWorkbenchPart part, ISelection selection) {\r\n\t\tif (!needsToProcessSelectionChanged(part, selection))\r\n\t\t\treturn;\r\n\r\n//\t\tif (selection instanceof IStructuredSelection) {\r\n//\t\t\tIStructuredSelection sel= (IStructuredSelection)selection;\r\n//\t\t\tIterator iter= sel.iterator();\r\n//\t\t\twhile (iter.hasNext()) {\r\n//\t\t\t\tObject selectedElement= iter.next();\r\n//\t\t\t\tif (selectedElement instanceof LogicalPackage) {\r\n//\t\t\t\t\tselection= new StructuredSelection(((LogicalPackage)selectedElement).getRubyProject());\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}\r\n\t\tsuper.selectionChanged(part, selection);\r\n\t}",
"private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}",
"public void onResume() {\n super.onResume();\n UpdateLang();\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n //NOTE: Position 0 is reserved for the manually added Prompt\n if (position > 0) {\n //Retrieving the Category Name of the selection\n mCategoryLastSelected = parent.getItemAtPosition(position).toString();\n //Calling the Presenter method to take appropriate action\n //(For showing/hiding the EditText field of Category OTHER)\n mPresenter.onCategorySelected(mCategoryLastSelected);\n } else {\n //On other cases, reset the Category Name saved\n mCategoryLastSelected = \"\";\n }\n }",
"public void widgetSelected(SelectionEvent e) {\n\t\t\t\tIProject project = EHUtilities.getCurrentProject();\r\n\t\t\t\tnew Thread(()->{\r\n\t\t\t\t\treplayListener.zipCurrentProject(project);\r\n\t\t\t\t}).start();\r\n\t\t\t}",
"@Subscribe\r\n\tpublic void onSelectExperiement(ExpressionDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"@Override\r\n\tprotected void directorySelectionChangedDirectly() {\n\r\n\t}",
"public void widgetSelected(SelectionEvent event) {\n if (lists.getSelectionCount() > 0) {\n fileName = lists.getSelection()[0];\n } else {\n fileName = \"\";\n }\n setReturnValue(fileName);\n shell.close();\n }",
"void updateLang() {\n if (lang == null)\n lang = game.q;\n }",
"protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }",
"public void onPageSelected(int pageSelected) {\n\t\t\t}",
"public void updateSelection() {\n\t\t\n\t}",
"void localizationChanged();",
"void localizationChanged();",
"void localizationChanged();",
"@FXML\r\n void spanishSelected(ActionEvent event) \r\n {\r\n \t\r\n \t\r\n }",
"public void addListenerOnAlgorithmSelection() {\n\t\tspinner.setOnItemSelectedListener(new OnItemSelectedListener(){\n\n\t\t\t/**\n\t\t\t * Log the selected algorithm.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id){\n\t\t\t\tLog.v(LOG_TAG, \"Maze generation algorithm selection: \" + spinner.getSelectedItem().toString());\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Do nothing if nothing is selected.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parentView){\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t});\n\t}",
"public void setLanguage(String newLanguage) {\r\n language = newLanguage;\r\n }",
"public static void logSelectionEstablished() {\n RecordUserAction.record(\"ContextualSearch.SelectionEstablished\");\n }",
"public void selectionChanged(PSSelection selection)\n {\n if (selection == null)\n throw new IllegalArgumentException(\"selection may not be null.\");\n\n if (selection instanceof PSNavigationalSelection)\n {\n PSNavigationalSelection navSel = (PSNavigationalSelection) selection;\n m_pathLabelField.setText(navSel.getSelectionPath());\n m_navSelection = selection;\n }\n\n PSNode node = null;\n \n if (selection.getNodeListSize() == 1)\n {\n node = (PSNode) selection.getNodeList().next();\n }\n\n if (node != null && node.getSearchResultCount() >= 0)\n {\n m_resultsLabel.setVisible(true);\n \n String resultlabel =\n m_applet.getResourceString(\n getClass().getName() + \"@ResultCount\");\n \n MessageFormat fmt = new MessageFormat(resultlabel);\n Object args[] =\n new Object[] { new Integer(node.getSearchResultCount()),\n node.isTruncated() ? new Integer(1) : new Integer(0)};\n String label = fmt.format(args).toString();\n m_resultsLabel.setText(label);\n \n }\n }",
"@Override\n public void selectionChanged(JavaTextSelection selection) {\n try {\n setEnabled(RefactoringAvailabilityTester.isGeneralizeTypeAvailable(selection));\n } catch (JavaModelException e) {\n setEnabled(false);\n }\n }",
"@Override\n public void updateLanguage() {\n if (isEnglish) {\n languageButton.setText(R.string.alien_painter_language_chinese);\n exitButton.setText(R.string.alien_painter_exit);\n retryButton.setText(R.string.alien_painter_retry);\n scoreboardButton.setText(R.string.alien_painter_scoreboard_button);\n painterTextViewInstructions.setText(R.string.alien_painter_instructions);\n replayButton.setText(R.string.alien_painter_replay);\n } else {\n languageButton.setText(R.string.alien_painter_language_english);\n exitButton.setText(R.string.alien_painter_exit_chinese);\n retryButton.setText(R.string.alien_painter_retry_chinese);\n scoreboardButton.setText(R.string.alien_painter_scoreboard_button_chinese);\n painterTextViewInstructions.setText(R.string.alien_painter_instructions_chinese);\n replayButton.setText(R.string.alien_painter_replay_chinese);\n }\n }",
"public void selectLanguage(String language) {\n\n String xpath = String.format(EST_LANGUAGE, language);\n List<WebElement> elements = languages.findElements(By.xpath(xpath));\n for (WebElement element : elements) {\n if (element.isDisplayed()) {\n element.click();\n break;\n }\n }\n }",
"@Override\n\t\t\t\tpublic void onFinished(JavaScriptObject result) {\n\t\t\t\t\tcontinueWithForm(events);\n\t\t\t\t}",
"@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onPause\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\n\t}",
"public void selectLanguage(String language){\n\t\t\t if (language ==\"Spanish\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_0\")).click();\n\t\t\t }\n\t\t\t else if (language==\"English\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_2\")).click();\t\t\t \n\t\t\t }\n\t\t\t else if (language==\"Portuguese\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_1\")).click();\n\t\t\t\t }\n\t \t }",
"@FXML\n void selectCountry() {\n \t//hide all errors\n \thideErrors();\n \t//Getting start year and end year limits from /type/country/metadata.txt\n if (isComboBoxEmpty(T3_country_ComboBox.getValue())){\n //if nothing has been selected do nothing\n return;\n }\n String type = T3_type_ComboBox.getValue(); // getting type\n String country = T3_country_ComboBox.getValue(); // getting country\n //update ranges\n Pair<String,String> validRange = DatasetHandler.getValidRange(type,country);\n\n //update relevant menus\n\n int start = Integer.parseInt(validRange.getKey());\n int end = Integer.parseInt(validRange.getValue());\n //set up end list\n endOptions.clear();\n startOptions.clear();\n for (int i = start; i <= end ; ++i){\n endOptions.add(Integer.toString(i));\n startOptions.add(Integer.toString(i));\n }\n //set up comboBox default values and valid lists\n T3_startYear_ComboBox.setValue(Integer.toString(start));\n T3_endYear_ComboBox.setValue(Integer.toString(end));\n }",
"public void run() {\n\t\t\t\t\tif (currentViewer != null) {\r\n\t\t\t\t\t\tcurrentViewer.setSelection(new StructuredSelection(\r\n\t\t\t\t\t\t\t\ttheSelection.toArray()), true);\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"void onSelectProject();",
"@Test(priority=6)\n\tpublic void verifyRemaininglanguagedisplaysOnclickingLanguageDropdown() throws Exception {\n\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\tclick(overviewObj.languageAtHeader);\n\t\tString[] expectedLangOptions= {\"Deutsch\",\"English\",\"Español\",\"Français\",\"Italiano\",\"Nederlands\",\"Polski\",\"Português\",\"Română\",\"Русский\"};\n\t\tList<WebElement> availableLangOptions=overviewObj.languageDropdownOptionsList;\n\t\tfor(int i=0;i<expectedLangOptions.length;i++) {\n\t\t\tAssert.assertTrue(expectedLangOptions[i].equals(availableLangOptions.get(i).getText().trim()),\n\t\t\t\t\texpectedLangOptions[i]+\" is not present in lang dropdown\");\n\t\t}\n\t}",
"@Override\n public void setLanguage(String lang) {\n }",
"@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLoaitietkiem ltk = (Loaitietkiem)comboBox.getSelectedItem();\n\t\t\t\tltkChoose = ltk;\n\t\t\t}",
"private void changeLanguage(Language lang) {\n this.resources = ResourceBundle.getBundle(UIController.RESOURCE_PATH + lang);\n uiController.setLanguage(lang);\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n uiController.setTitle(resources.getString(\"Launch\"));\n }",
"public Future<Void> setLanguage(String pLanguage) throws DynamicCallException, ExecutionException{\n return call(\"setLanguage\", pLanguage);\n }",
"public void updateLanguage() {\n buttonPlay.setText(GameConfiguration.getText(\"playButton\"));\n buttonSettings.setText(GameConfiguration.getText(\"settingsButton\"));\n buttonHighScores.setText(GameConfiguration.getText(\"highScores\"));\n }",
"@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}",
"private void SelectionChanged(String type) {\n try {\n VaadinSession.getCurrent().getLockInstance().lock();\n Listeners_Map.values().stream().forEach((filter) -> {\n filter.selectionChanged(type);\n });\n } finally {\n VaadinSession.getCurrent().getLockInstance().unlock();\n busyTask.setVisible(false);\n }\n\n }",
"public void onClick(View v) {\n \n \tTitleBarManager.toggleLanguage_SelectMenu(); // change language of menu\n \tloadOrderBoard(); // Update language of ordered list\n }",
"private void showLanguageSelectionMenu(Layer layer) {\n if (layer.isMapsForge()) {\n if (layer.getLanguages() != null)\n if (layer.getLanguages().length > 1) {\n final Menu lsm = new Menu(\"MapViewLayerSelectLanguageTitle\");\n for (String lang : layer.getLanguages()) {\n lsm.addMenuItem(\"\", lang, null, (v, x, y, pointer, button) -> {\n lsm.close();\n String selectedLanguage = ((MenuItem) v).getTitle();\n Settings.preferredMapLanguage.setValue(selectedLanguage);\n Settings.getInstance().acceptChanges();\n return true;\n });\n }\n lsm.show();\n // hasLanguage = true;\n }\n }\n }",
"public void selectedChanged(SelectEvent e) {\n\t\t\t\tm_Report.getStatusBar().repaint();\r\n\t\t\t}",
"public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }",
"@Override\n protected void complete()\n {\n // Log the result of the script execution(s)\n logScriptCompletionStatus(associations, isBad);\n\n // Enable the calling dialog's controls\n dialog.setControlsEnabled(true);\n }",
"@Override\r\n\tpublic void onPageSelected() {\n\t\tif (mRoomDropDownAdapter != null) {\r\n\t\t\tmRoomDropDownAdapter.setSelected(mUiEngine.getRoomCurrentIndex());\r\n\t\t\trefreshListByPosition(mRoomDropDownAdapter.getSelected());\r\n\t\t}\r\n\t}",
"@Test(groups = TestPriorityContants.HIGHEST, dataProvider = \"devices\")\n\tpublic void tc_ul_1071_layout_selectLanguageDropdownOnDevice(TestDevice device) throws IOException, InterruptedException {\n\t\tLoginPage loginPage = new LoginPage(this.getDriver(), baseURL);\n\t\tLandingPage landingPage = new LandingPage(this.getDriver(), baseURL);\n\n\t\tloginPage.Navigate();\n\t\tloginPage.inputLoginInfo(getUsername(),getPassword());\n\n\t\tlandingPage.Navigate();\n\t\t\n\t\tlandingPage.allTab().click();\n\t\tlandingPage.spanSelectLang().click();\n\t\t\n\t\tcheckLayout(GalenFileContants.SELECT_LANGUAGE_DROPDOWN_UPLOADPAGE, device.getTags());\n\t}",
"public void setLang() {\n new LanguageManager() {\n @Override\n public void engLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_eng);\n mSaleTitle = getString(R.string.converter_sale_eng);\n mPurchaseTitle = getString(R.string.converter_purchase_eng);\n mCountTitle = getString(R.string.converter_count_of_currencies_eng);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_eng));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleEng());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleEng().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_eng);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_eng);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_eng);\n mToastFailure = getString(R.string.converter_toast_failure_eng);\n mTitle = getResources().getString(R.string.drawer_item_converter_eng);\n mMessage = getString(R.string.dialog_template_text_eng);\n mTitleButtonOne = getString(R.string.dialog_template_edit_eng);\n mTitleButtonTwo = getString(R.string.dialog_template_create_eng);\n mToastEdited = getString(R.string.converter_toast_template_edit_eng);\n mToastCreated = getString(R.string.converter_toast_template_create_eng);\n mMessageFinal = getString(R.string.converter_final_dialog_text_eng);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_eng);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_eng);\n }\n\n @Override\n public void ukrLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_ukr);\n mSaleTitle = getString(R.string.converter_sale_ukr);\n mPurchaseTitle = getString(R.string.converter_purchase_ukr);\n mCountTitle = getString(R.string.converter_count_of_currencies_ukr);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_ukr));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleUkr());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleUkr().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_ukr);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_ukr);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_ukr);\n mToastFailure = getString(R.string.converter_toast_failure_ukr);\n mTitle = getResources().getString(R.string.drawer_item_converter_ukr);\n mMessage = getString(R.string.dialog_template_text_ukr);\n mTitleButtonOne = getString(R.string.dialog_template_edit_ukr);\n mTitleButtonTwo = getString(R.string.dialog_template_create_ukr);\n mToastEdited = getString(R.string.converter_toast_template_edit_ukr);\n mToastCreated = getString(R.string.converter_toast_template_create_ukr);\n mMessageFinal = getString(R.string.converter_final_dialog_text_ukr);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_ukr);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_ukr);\n }\n\n @Override\n public void rusLanguage() {\n mFirstCurrencyTitle = getString(R.string.converter_main_currency_rus);\n mSaleTitle = getString(R.string.converter_sale_rus);\n mPurchaseTitle = getString(R.string.converter_purchase_rus);\n mCountTitle = getString(R.string.converter_count_of_currencies_rus);\n eTTitle.setText(getResources().getString(R.string.drawer_item_converter_rus));\n tVChosenCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase());\n tVChosenOrganizationTitle.setText(mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getTitleRus());\n tVSecondCurrency.setText(mMainListForActions.get(mPositionOfCurInList)\n .getCurrency().getTitleRus().toUpperCase().concat(\" (\").concat(mCurrencyShortForm).concat(\")\"));\n mCurrencyDialogTitle = getString(R.string.drawer_item_currencies_rus);\n mOrganizationDialogTitle = getString(R.string.drawer_item_organizations_rus);\n mActionDialogTitle = getString(R.string.converter_dialog_action_title_rus);\n mToastFailure = getString(R.string.converter_toast_failure_rus);\n mTitle = getResources().getString(R.string.drawer_item_converter_rus);\n mMessage = getString(R.string.dialog_template_text_rus);\n mTitleButtonOne = getString(R.string.dialog_template_edit_rus);\n mTitleButtonTwo = getString(R.string.dialog_template_create_rus);\n mToastEdited = getString(R.string.converter_toast_template_edit_rus);\n mToastCreated = getString(R.string.converter_toast_template_create_rus);\n mMessageFinal = getString(R.string.converter_final_dialog_text_rus);\n mTitleButtonOneFinal = getString(R.string.converter_final_dialog_yes_rus);\n mTitleButtonTwoFinal = getString(R.string.converter_final_dialog_no_rus);\n }\n };\n getDataForActionDialog();\n setData();\n }",
"@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}",
"public void chooseOptionMarkAsCompleteOnBulkActionsDropDown() {\n try {\n getLogger().info(\"Choose option: Mark as complete\");\n optionMarkAsComplete.click();\n NXGReports.addStep(\"Choose option: Mark as complete.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Choose option: Mark as complete.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n\n }"
] | [
"0.6792629",
"0.62831974",
"0.6275974",
"0.62279487",
"0.6216149",
"0.6167688",
"0.6104605",
"0.6080873",
"0.60306484",
"0.59422547",
"0.5800463",
"0.57806623",
"0.5736843",
"0.57323337",
"0.56989187",
"0.56783354",
"0.5670006",
"0.56677765",
"0.55931896",
"0.5591653",
"0.5536889",
"0.55307484",
"0.5480463",
"0.5474386",
"0.5457646",
"0.54328173",
"0.5422375",
"0.5421029",
"0.53942466",
"0.5392667",
"0.53818995",
"0.5378515",
"0.5375842",
"0.53674924",
"0.5365667",
"0.53505087",
"0.53439",
"0.53378797",
"0.53365993",
"0.53314614",
"0.5328463",
"0.53243846",
"0.5322316",
"0.53219044",
"0.53178924",
"0.53167135",
"0.5312471",
"0.53087425",
"0.53033763",
"0.5299416",
"0.5277311",
"0.5259298",
"0.5258104",
"0.5257595",
"0.52493256",
"0.52460414",
"0.5245297",
"0.52445596",
"0.524287",
"0.52417576",
"0.5236105",
"0.5232525",
"0.52321976",
"0.52206457",
"0.52206457",
"0.52206457",
"0.52177256",
"0.52093893",
"0.51984507",
"0.51930594",
"0.5186086",
"0.51818335",
"0.5177332",
"0.51766354",
"0.51750404",
"0.51698256",
"0.51595527",
"0.5156139",
"0.5154403",
"0.5153094",
"0.51503396",
"0.5150253",
"0.5143036",
"0.5138325",
"0.513726",
"0.5136381",
"0.51284933",
"0.51258695",
"0.5125212",
"0.51174986",
"0.511727",
"0.5110232",
"0.51083386",
"0.5107327",
"0.51068485",
"0.5101079",
"0.50998646",
"0.5096889",
"0.5096889",
"0.50947666"
] | 0.77217984 | 0 |
Constructor for a user | public User(String fullName, String identifier, String major) {
this.fullName = fullName;
this.identifier = identifier;
this.major = major;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User()\n\t{\n\n\t}",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public User(){\n this(null, null);\n }",
"public User(String n) { // constructor\r\n name = n;\r\n }",
"public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }",
"public User() {\r\n \r\n }",
"public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public TUser() {\n this(\"t_user\", null);\n }",
"public User() {}",
"public User() {}",
"public User() {}",
"public User(){}",
"public User(){}",
"public User(){}",
"public User() {\r\n\r\n\t}",
"public User() {\r\n\t}",
"public User() {\n super();\n }",
"public User() {\n super();\n }",
"public User() {\n\n\t}",
"public User() {\r\n }",
"public User() {\n }",
"public User() {\n\t}",
"public User()\n\t{\n\t}",
"public User(String name){\n this.name = name;\n }",
"public User() { }",
"public User(int user_id, String full_name, String address, String postal_code, int mobile_no,\n String snow_zone, String garbage_day, String password){\n this.user_id = user_id;\n this.full_name = full_name;\n this.address = address;\n this.postal_code = postal_code;\n this.mobile_no = mobile_no;\n this.snow_zone = snow_zone;\n this.garbage_day = garbage_day;\n this.password = password;\n\n }",
"private User() {}",
"public User(String n, int a) { // constructor\r\n name = n;\r\n age = a;\r\n }",
"public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}",
"public User(){\n }",
"public User(){\n\t username = \"Anonymous\";\n\t}",
"public User(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public User(){\n\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public Person(User user) {\n this.username = user.getUsername();\n this.email = user.getEmail();\n this.firstname = user.getFirstname();\n this.lastname = user.getLastname();\n }",
"public User() {\n log.debug(\"Create a User object\");\n }",
"public DbUser() {\r\n\t}",
"protected User() {}",
"protected User() {}",
"public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }",
"public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }",
"public User() {\n this.username = \"test\";\n }",
"private User() {\n }",
"public User(String username, String password) {\r\n\t if (username == null || username.isEmpty() || password == null || password.isEmpty()) {\r\n\t throw new IllegalArgumentException(\"User : username or password passed can not be null.\"); \r\n\t }\r\n this.email = new Email(EmailType.PERSONAL, username);\r\n\t\tthis.username = username;\r\n\t\tthis.password = encrypt(password);\r\n\t\tthis.displayname = username;\r\n this.type = UserType.USER;\r\n\t\tthis.status = InstanceStatus.TRANSCIENT;\r\n\t}",
"public User(String username, String nPassword)\n {\n userName = username;\n password = nPassword;\n }",
"public QUser() {\n super(User.class);\n }",
"public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }",
"public User() {\n\n }",
"public User() {\n /**\n * default Cto'r\n */\n }",
"public User() {\n name = \"\";\n }",
"public User(String username) { \r\n\t\tthis(username, new PrivilegeSet());\t\r\n\t\tthis.displayName = username;\r\n\t}",
"public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n role = 0; //Whether the user is a typical user or administrator\n status = 0; //Whether the user is active or disabled\n }",
"public JSONUser(User user){\n\t\tid = user.getId();\n\t\tname = user.getName();\n\t}",
"public GameUser() {\n\t}",
"public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}",
"public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}",
"public User(String username,\n String firstname,\n String lastname) {\n //create userId\n int newID = numOfObjects + 1;\n String userId = username + \"_\" + newID;\n\n this.userId = userId;\n this.username = username;\n this.firstname = firstname;\n this.lastname = lastname;\n this.calendarsOwned = new ArrayList<Calendar_>();\n this.eventsOwned = new ArrayList<Event>();\n\n //update object counter\n numOfObjects++;\n }",
"public User() {\n\tsuper();\n}",
"User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public UserRecord() {\n super(User.USER);\n }",
"public UserRecord() {\n super(User.USER);\n }",
"public UserRecord() {\n super(User.USER);\n }",
"public UserRecord() {\n super(User.USER);\n }",
"public User(long id, String username, String email, String password) {\n this.id = id;\n this.username = username;\n this.email = email;\n this.password = password;\n}",
"user(String username, int herotype) {\r\n this.username = username;\r\n this.herotype = herotype;\r\n }",
"public User(String username, String password, String firstName, String lastName, Short userType, Short userRating) {\r\n this.username = username;\r\n this.password = password;\r\n this.firstName = firstName;\r\n this.lastName = lastName;\r\n this.userType = userType;\r\n this.userRating = userRating;\r\n }",
"protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }",
"public JSONUser(){\n\t}",
"public QUser(Database server) {\n super(User.class, server);\n }",
"public User(String username, String password, UserType type) {\r\n\t if (username == null || username.isEmpty() || password == null || password.isEmpty() || type == null) {\r\n\t throw new IllegalArgumentException(\"User : username or password or user type passed can not be null.\");\r\n\t }\r\n this.email = new Email(EmailType.PERSONAL, username);\r\n\t\tthis.username = username;\r\n\t\tthis.password = encrypt(password);\r\n\t\tthis.displayname = username;\r\n this.type = type;\r\n\t\tthis.status = InstanceStatus.TRANSCIENT;\r\n\t}",
"public UserInfo() {\n }",
"public User(String userType, String userName, String password) {\n this.userType = userType;\n this.userName = userName;\n this.password = password;\n\n }",
"public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }",
"public User(\n int user_id,\n String phone_number,\n String email_address,\n String first_name,\n String last_name,\n String middle_initial,\n String job_title,\n String freelancer_address,\n String twitter_address,\n String facebook_address,\n String linkedin_address,\n String resume_import_path,\n String user_image_path) {\n this.var_user_id = user_id;\n this.var_email_address = email_address;\n this.var_first_name = first_name;\n this.var_last_name = last_name;\n this.var_middle_initial = middle_initial;\n this.var_job_title = job_title;\n this.var_phone_number = phone_number;\n this.var_freelancer_address = freelancer_address;\n this.var_twitter_address = twitter_address;\n this.var_facebook_address = facebook_address;\n this.var_linkedin_address = linkedin_address;\n this.var_resume_import_path = resume_import_path;\n this.var_user_image_path = user_image_path;\n }",
"public User(String username, String password) {\r\n this.username = username;\r\n this.password = password;\r\n }",
"public User(String username, String password) {\n this.username = username;\n this.password = password;\n }",
"public User(String uid) {\n this.uid = uid;\n }",
"protected User() {\n }",
"public SecurityUser() {\n\t\tsuper();\n\t}",
"public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }",
"public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }",
"public User(String user_name_id, String user_pw) {\r\n\t\tsuper();\r\n\t\tthis.user_name_id = user_name_id;\r\n\t\tthis.user_pw = user_pw;\r\n\t}",
"public User() {\n\t\tsuper(\"User\", models.DefaultSchema.DEFAULT_SCHEMA);\n\t}",
"public Users(String username, String password, String email, String phone)\r\n/* 53: */ {\r\n/* 54:67 */ this.username = username;\r\n/* 55:68 */ this.password = password;\r\n/* 56:69 */ this.email = email;\r\n/* 57:70 */ this.phone = phone;\r\n/* 58: */ }",
"public User(final String username) {\n this.username = username;\n }",
"public User(int userID, String name, String password) {\n this.userID = userID;\n this.name = name;\n this.password = password;\n }"
] | [
"0.8228705",
"0.81390697",
"0.80592597",
"0.80129516",
"0.8004953",
"0.7990103",
"0.7984211",
"0.79694915",
"0.79694915",
"0.79694915",
"0.7902484",
"0.78905994",
"0.78905994",
"0.78905994",
"0.78813106",
"0.78813106",
"0.78813106",
"0.7874129",
"0.7836748",
"0.78292334",
"0.78292334",
"0.7812175",
"0.78035116",
"0.78015566",
"0.7787429",
"0.77576774",
"0.77471745",
"0.7735821",
"0.77347916",
"0.7727961",
"0.7723474",
"0.77008563",
"0.769712",
"0.76945525",
"0.7642008",
"0.7641007",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.76333624",
"0.7620719",
"0.76178825",
"0.76098984",
"0.75998694",
"0.75998694",
"0.7597682",
"0.759509",
"0.7590189",
"0.7576528",
"0.7573355",
"0.75664544",
"0.7562409",
"0.75529903",
"0.75390905",
"0.75355685",
"0.7527374",
"0.7512313",
"0.75119114",
"0.7506011",
"0.750456",
"0.74971867",
"0.74778414",
"0.7477426",
"0.7471296",
"0.7463723",
"0.74592906",
"0.74592906",
"0.74592906",
"0.74592906",
"0.7454733",
"0.7449916",
"0.74435574",
"0.74377483",
"0.742666",
"0.7425212",
"0.7418914",
"0.7415205",
"0.74106866",
"0.73985857",
"0.73883814",
"0.73879933",
"0.73820066",
"0.73752373",
"0.7374184",
"0.73693156",
"0.73662037",
"0.7355671",
"0.73477113",
"0.7345495",
"0.7343478",
"0.73427224",
"0.73391575"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.id | public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAccountID();",
"String getAccountID();",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public int getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"Long getAccountId();",
"public int getAccountID(Account account)\n\t {\n\t\t int id = -1;\n\t\t String columns[] = new String[] {DatabaseContract.AccountContract._ID};\n\t\t \n\t\t String where = DatabaseContract.AccountContract.COLUMN_NAME_USERNAME + \" = ? \";\n\t\t \n\t\t Cursor cursor = db.query(DatabaseContract.AccountContract.TABLE_NAME,\n\t\t\t\t columns,\n\t\t\t\t where,\n\t\t\t\t new String[] {account.getUsername()},\n\t\t\t\t null, null, null);\n\t\t\n\t\t if(cursor.getCount() > 0)\n\t\t {\n\t\t\t cursor.moveToFirst();\n\t\t\t \n\t\t\t int idCol = cursor.getColumnIndex(DatabaseContract.AccountContract._ID);\n\t\t\t id = cursor.getInt(idCol);\n\t\t }\n\t\t \n\t\t cursor.close();\n\t\t return id;\n\t }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"private int getCurrentAccountId() {\n accountLock.lock();\n int nmr = 1;\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT ACCOUNT_ID FROM APP.ACCOUNTS ORDER BY ACCOUNT_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"ACCOUNT_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n accountLock.unlock();\n return nmr;\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"long getAccountLinkId();",
"public long getAccountId() {\n return accountId;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"public int getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public Long getAccountId() {\n return accountId;\n }",
"@Override\n\tpublic BigInteger selectUserIdByAccount(String account,Long type) {\n\t\t\n\t\tLoginNo loginNo = accountManageDao.selectLoginNoDetail(account, type);\n\t\tBigInteger res = loginNo==null?null:loginNo.gettUserFId();\n\t\treturn res;\n\t}",
"Integer getRealmId();",
"@SequenceGenerator(name = \"generator\", sequenceName=\"SEQ_CUSTOMER_ACCOUNT_MANAGENT\", allocationSize = 1)\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = \"generator\")\n\t@Column(name = \"ACCOUNT_ID\", unique = true, nullable = false, precision = 20, scale = 0)\n\tpublic BigDecimal getAccountId() {\n\t\treturn this.accountId;\n\t}",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"UserAccount getUserAccountById(long id);",
"Account selectByPrimaryKey(Long accountid);",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}",
"public io.lightcone.data.types.AccountID getAccountId() {\n if (accountIdBuilder_ == null) {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n } else {\n return accountIdBuilder_.getMessage();\n }\n }",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }",
"public int getAccountNo() {\n return accountNo;\n }",
"public int getC_BankAccount_ID();",
"public Long getUserAccountId() {\r\n return userAccountId;\r\n }",
"public String getAccountNo();",
"public int getAccountNumber() {\n return accountNumber;\n }",
"public int getMaxAccountsIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM `accounts`;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }",
"public int getAccountNo() {\n\t\treturn this.accountNo;\r\n\t}",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"public String getAccountId() {\n return this.accountId;\n }",
"public String getMyAccountId()\n\t{\n\t\treturn (String) session.getAttribute(\"accountId\");\n\t}",
"@Override\n\tpublic String getBankId(final int bankAccountId, final Connection connection)\n\t{\n\t\tString bankAndBranchId = \"null\";\n\t\ttry {\n\t\t\tfinal StringBuilder sql = new StringBuilder(\"select b.id,c.id from bankaccount a,bankbranch b,bank c\")\n\t\t\t\t\t.append(\" where a.branchid=b.id and b.bankid=c.id and a.id= ?\");\n\t\t\tQuery pst = persistenceService.getSession().createSQLQuery(sql.toString());\n\t\t\tpst.setInteger(0, bankAccountId);\n\t\t\tList<Object[]> rset = pst.list();\n\t\t\tfor (final Object[] element : rset) {\n\t\t\t\tbankAndBranchId = element[0].toString();\n\t\t\t\tbankAndBranchId = bankAndBranchId + \"#\" + element[1].toString();\n\t\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\t\tLOGGER.info(\">>>bankAndBranchId \" + bankAndBranchId);\n\t\t\t}\n\t\t\tif (rset == null || rset.size() == 0)\n\t\t\t\tthrow new NullPointerException(\"Bank Code Not Found\");\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\" Bank Id not found \" + e.toString(), e);\n\t\t\tthrow new HibernateException(e.toString());\n\t\t}\n\t\treturn bankAndBranchId;\n\t}",
"java.lang.String getLoginId();",
"@Override\r\n\tpublic int generateAccountId() {\n\t\tint AccountId = (int) (Math.random()*10000);\r\n\t\treturn 0;\r\n\t}",
"public String getAccountLogId() {\n return accountLogId;\n }",
"String getGameId();",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public int getC_BankAccount_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BankAccount_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public Integer getId() {\n return aao.getId();\n }",
"@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"public String getAccountId() {\n return (String)(userItem.getId());\n }",
"@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}",
"public String getAccountId() {\n return mAccountId;\n }",
"String getLoginId();",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"ShopAccount selectByPrimaryKey(Integer spAccount);",
"public String findId(User user) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.findId\", user);\n\t\t}",
"public int getId() {\n return parameter.getId();\n }",
"public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }",
"public Integer getGameId() {\n return gameId;\n }",
"public int getId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}",
"public String getAccountHolderId() {\r\n return accountHolderId;\r\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _esfTournament.getUserId();\n\t}",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"java.lang.String getAccountNumber();",
"@Override\n\tpublic String getGlCodeId(final String glCode, final Connection connection)\n\t{\n\t\tString glCodeId = \"null\";\n\t\ttry {\n\t\t\tfinal String query = \"select id from chartofaccounts where glCode like ?\";\n\t\t\tif (LOGGER.isInfoEnabled())\n\t\t\t\tLOGGER.info(\" query \" + query);\n\t\t\tQuery pst = persistenceService.getSession().createSQLQuery(query);\n\t\t\tpst.setString(0, glCode);\n\t\t\tList<Object[]> rset = pst.list();\n\t\t\tfor (final Object[] element : rset) {\n\t\t\t\tglCodeId = element[0].toString();\n\t\t\t\tif (LOGGER.isDebugEnabled())\n\t\t\t\t\tLOGGER.debug(\" glCodeId \" + glCodeId);\n\t\t\t}\n\t\t\tif (rset == null || rset.size() == 0)\n\t\t\t\tthrow new NullPointerException(\"id not found\");\n\t\t} catch (final HibernateException e) {\n\t\t\tLOGGER.error(\" id not found \" + e.toString(), e);\n\t\t\tthrow new HibernateException(e.toString());\n\t\t}\n\t\treturn glCodeId;\n\t}",
"public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }",
"public UserAccount getUserAccountByLoginId(String loginId);",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n if (accountIdBuilder_ != null) {\n return accountIdBuilder_.getMessageOrBuilder();\n } else {\n return accountId_ == null ?\n io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }\n }",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"java.lang.String getAoisId();",
"private int readId(String playerName) {\n int id = -1;\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"SELECT id FROM \" + tablePrefix + \"users WHERE user = ?\");\n statement.setString(1, playerName);\n id = readInt(statement);\n }\n catch (SQLException ex) {\n printErrors(ex);\n }\n\n return id;\n }",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n return getAccountId();\n }",
"int getOtherId();",
"Account selectByPrimaryKey(String id);",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfTournament.getPrimaryKey();\n\t}",
"long getPlayerId();",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n accountId_ = s;\n }\n return s;\n }\n }"
] | [
"0.6627373",
"0.6627373",
"0.6480245",
"0.6480245",
"0.6440282",
"0.64248836",
"0.64248836",
"0.63885057",
"0.6353476",
"0.62470746",
"0.6168195",
"0.61149",
"0.6096357",
"0.6068179",
"0.6034238",
"0.59824157",
"0.5974031",
"0.59554726",
"0.5930663",
"0.5923318",
"0.5880701",
"0.5880701",
"0.58588135",
"0.5857705",
"0.57961124",
"0.57915",
"0.5788517",
"0.57485884",
"0.57434434",
"0.57255507",
"0.5689307",
"0.5689307",
"0.5689307",
"0.5664154",
"0.5656167",
"0.56487757",
"0.56487757",
"0.56487757",
"0.56487757",
"0.56487757",
"0.56383425",
"0.56333494",
"0.5623622",
"0.56193185",
"0.56130916",
"0.5606379",
"0.55912316",
"0.5588781",
"0.5588016",
"0.555132",
"0.555132",
"0.555132",
"0.5545484",
"0.55429107",
"0.5517041",
"0.549743",
"0.5496879",
"0.5493527",
"0.5488794",
"0.5486327",
"0.5486327",
"0.5484119",
"0.54771525",
"0.54771525",
"0.54771477",
"0.5475638",
"0.5467912",
"0.5459422",
"0.5437949",
"0.5437949",
"0.5437238",
"0.54364634",
"0.542765",
"0.54170257",
"0.54160327",
"0.54099965",
"0.54099965",
"0.54096884",
"0.5391045",
"0.5387201",
"0.53838384",
"0.5380041",
"0.5379761",
"0.53739566",
"0.537211",
"0.537144",
"0.53704953",
"0.537029",
"0.5369097",
"0.5368345",
"0.53596437",
"0.535843",
"0.53312165",
"0.5322159",
"0.531816",
"0.53020185",
"0.52999383",
"0.52974164",
"0.52963537",
"0.5289978",
"0.5287332"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.id | public void setId(Integer id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"void setAccountId(Long accountId);",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public Builder setAccountID(long value) {\n validate(fields()[0], value);\n this.accountID = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public Builder setAccountID(long value) {\n validate(fields()[2], value);\n this.accountID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public int getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public void setAcctId(Integer acctId) {\n this.acctId = acctId;\n }",
"public void setAccountNo (String AccountNo);",
"@SequenceGenerator(name = \"generator\", sequenceName=\"SEQ_CUSTOMER_ACCOUNT_MANAGENT\", allocationSize = 1)\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = \"generator\")\n\t@Column(name = \"ACCOUNT_ID\", unique = true, nullable = false, precision = 20, scale = 0)\n\tpublic BigDecimal getAccountId() {\n\t\treturn this.accountId;\n\t}",
"String getAccountID();",
"String getAccountID();",
"public void setC_BankAccount_ID (int C_BankAccount_ID);",
"public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(int accountId) {\n this.accountId = accountId;\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"public void setAccountId(String s) { accountId = s;}",
"public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }",
"Long getAccountId();",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setAccount_Id(java.lang.String account_Id) {\n this.account_Id = account_Id;\n }",
"UserAccount getUserAccountById(long id);",
"void setPlayerId(int playerId);",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public long getAccountId() {\n return accountId;\n }",
"public void setLeagueId(int value) {\n this.leagueId = value;\n }",
"public void setId(int driverDBId);",
"public void setAD_User_ID (int AD_User_ID);",
"public int getAccountId() {\n return accountId;\n }",
"void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);",
"long getAccountLinkId();",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}",
"public void setLoginId(int value) {\n this.loginId = value;\n }",
"public void setAccountId(Long accountId) {\n\t\tthis.accountId = accountId;\n\t}",
"public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public\n void\n setAccount(Account account)\n {\n itsAccount = account;\n }",
"public void setAccountID(java.lang.Object accountID) {\n this.accountID = accountID;\n }",
"void setAccount(final Account account);",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 88: */ {\r\n/* 89:157 */ this.idOrganizacion = idOrganizacion;\r\n/* 90: */ }",
"public abstract void setAcma_id(java.lang.Long newAcma_id);",
"void setID(int val)\n throws RemoteException;",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public void setGameId(Integer gameId) {\n this.gameId = gameId;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_esfTournament.setCompanyId(companyId);\n\t}",
"public Long getAccountId() {\n return accountId;\n }",
"public void setRId(long value) {\r\n this.rId = value;\r\n }",
"Account selectByPrimaryKey(Long accountid);",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public void setTeamId(int value) {\n this.teamId = value;\n }",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 95: */ {\r\n/* 96:126 */ this.idOrganizacion = idOrganizacion;\r\n/* 97: */ }",
"@Override\r\n\tpublic int generateAccountId() {\n\t\tint AccountId = (int) (Math.random()*10000);\r\n\t\treturn 0;\r\n\t}",
"protected void setId(EmployeeLeave employeeLeave, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(EmployeeLeaveTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\temployeeLeave.setId(id);\n\t}",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public Builder setAccountAuthId(String value) {\n validate(fields()[3], value);\n this.accountAuthId = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setAccountAuthId(String value) {\n this.accountAuthId = value;\n }",
"public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)\r\n/* 85: */ {\r\n/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 87: */ }",
"public Builder setAccountId(io.lightcone.data.types.AccountID value) {\n if (accountIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n accountId_ = value;\n onChanged();\n } else {\n accountIdBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setAccountId(String value) {\r\n setAttributeInternal(ACCOUNTID, value);\r\n }",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 113: */ {\r\n/* 114:127 */ this.idOrganizacion = idOrganizacion;\r\n/* 115: */ }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_esfTournament.setUserId(userId);\n\t}",
"public void setAuthId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localAuthIdTracker = true;\r\n } else {\r\n localAuthIdTracker = false;\r\n \r\n }\r\n \r\n this.localAuthId=param;\r\n \r\n\r\n }",
"public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }",
"public void assignId(int id);",
"public void setId_rango(java.lang.Integer newId_rango);",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public String getAccountHolderId() {\r\n return accountHolderId;\r\n }",
"@Override\n\tpublic BigInteger selectUserIdByAccount(String account,Long type) {\n\t\t\n\t\tLoginNo loginNo = accountManageDao.selectLoginNoDetail(account, type);\n\t\tBigInteger res = loginNo==null?null:loginNo.gettUserFId();\n\t\treturn res;\n\t}",
"public void testUpdateAccount(){\n\t\tint id = 10 ;\n\t\tAccount acc = this.bean.findAccountById(id ) ;\n\t\tacc.setDatetime(CommUtil.getNowDate()) ;\n\t\tint r = this.bean.updateAccount(acc) ;\n\t\tAssert.assertEquals(r, 1) ;\n\t}",
"public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }",
"public void setAccount(Account account) {\n this.account = account;\n }",
"public int getAccountNumber() {\n return accountNumber;\n }"
] | [
"0.62278277",
"0.62278277",
"0.5873355",
"0.57341236",
"0.56809855",
"0.56544733",
"0.56457835",
"0.56444484",
"0.563067",
"0.563067",
"0.56120235",
"0.56120235",
"0.55241644",
"0.5460929",
"0.5431013",
"0.5336756",
"0.5315529",
"0.530075",
"0.530075",
"0.5261614",
"0.52587485",
"0.525756",
"0.5248871",
"0.51921684",
"0.51501495",
"0.51321375",
"0.5125915",
"0.51250184",
"0.51185304",
"0.5099298",
"0.507027",
"0.507027",
"0.507027",
"0.5067485",
"0.50578934",
"0.50549173",
"0.5051175",
"0.5041238",
"0.5032315",
"0.5020181",
"0.5018496",
"0.50155073",
"0.5006316",
"0.5005158",
"0.49969247",
"0.49854234",
"0.49771008",
"0.4971664",
"0.49679694",
"0.49675465",
"0.4967335",
"0.49563608",
"0.4953652",
"0.49480376",
"0.49396685",
"0.49276802",
"0.49265522",
"0.4926503",
"0.49241504",
"0.49167773",
"0.49141914",
"0.49102005",
"0.4901399",
"0.490115",
"0.4898629",
"0.4898629",
"0.4898629",
"0.4898629",
"0.4898629",
"0.48984054",
"0.48984054",
"0.48961407",
"0.48923227",
"0.48923227",
"0.48923227",
"0.48923227",
"0.48923227",
"0.4887823",
"0.48829925",
"0.48698464",
"0.4868512",
"0.48607233",
"0.48600587",
"0.48525998",
"0.485069",
"0.4844289",
"0.48409075",
"0.48293716",
"0.48234272",
"0.48230776",
"0.48221207",
"0.4821288",
"0.4810643",
"0.48047802",
"0.47984737",
"0.47967976",
"0.47959194",
"0.4794604",
"0.47925138",
"0.47867644",
"0.4779404"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.account | public String getAccount() {
return account;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAccount();",
"public String getAccount() {\r\n return account;\r\n }",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public String getAccount(){\n\t\treturn account;\n\t}",
"public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getLoginAccount();",
"java.lang.String getLoginAccount();",
"Account getAccount();",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n account_ = s;\n }\n return s;\n }\n }",
"Long getAccountId();",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getAccountName() {\n return this.accountName;\n }",
"java.lang.String getAccountNumber();",
"public Account getAccount() {\r\n\t\treturn account;\r\n\t}",
"public String getAccountNo();",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"public String getAccount() {\n\t\treturn getUsername() + \":\" + getPassword() + \"@\" + getUsername();\n\t}",
"public String getAccountName() {\r\n return accountName;\r\n }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getUserAccount() {\n return sessionData.getUserAccount();\n }",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getAccountName() {\n return accountName;\n }",
"public String getAccountName() {\n return accountName;\n }",
"public String getAccountName() {\n return accountName;\n }",
"String getAccountID();",
"String getAccountID();",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Long getRaAccount() {\n\t\treturn raAccount;\n\t}",
"public int getAccountID() {\n return accountID;\n }",
"public Account getAccount() {\n return account;\n }",
"public Account getAccount() {\n return account;\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n if (accountBuilder_ == null) {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n } else {\n return accountBuilder_.getMessage();\n }\n }",
"public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n if (accountBuilder_ == null) {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n } else {\n return accountBuilder_.getMessage();\n }\n }",
"public int getAccountNumber() {\n return accountNumber;\n }",
"public com.huawei.www.bme.cbsinterface.cbs.businessmgr.Account getAccount() {\r\n return account;\r\n }",
"UserAccount getUserAccountById(long id);",
"public java.lang.String getAccount_number() {\n return account_number;\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n }\n }",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public String getAccountCode() {\n return accountCode;\n }",
"public String getAccountId() {\n return this.accountId;\n }",
"com.google.protobuf.ByteString\n getAccountBytes();",
"public Long getAccountId() {\n return accountId;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public long getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public int getAccountType() {\r\n return accountType;\r\n }",
"public int getAccountId() {\n return accountId;\n }",
"public int getAccountNo() {\n\t\treturn this.accountNo;\r\n\t}",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"Account getAccount(Integer accountNumber);",
"public String getAccountNo() {\n return accountNo;\n }",
"public int getAccountNo() {\n return accountNo;\n }",
"public String getAccountId() {\n return mAccountId;\n }",
"public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n }",
"public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n }",
"public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}",
"public String getCurrentUserAccount();",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountNameCustom() {\n\t\tSystem.out.println(keypad.SelectAccountNameCustom.getText());\n\t\treturn keypad.SelectAccountNameCustom.getText();\n\t}",
"private int getCurrentAccountId() {\n accountLock.lock();\n int nmr = 1;\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT ACCOUNT_ID FROM APP.ACCOUNTS ORDER BY ACCOUNT_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"ACCOUNT_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n accountLock.unlock();\n return nmr;\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"GlAccount getGlAccount();",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n accountId_ = s;\n }\n return s;\n }\n }"
] | [
"0.71339506",
"0.6914611",
"0.6843093",
"0.6840092",
"0.6747487",
"0.6611989",
"0.6611989",
"0.6611989",
"0.65687215",
"0.65624505",
"0.6553114",
"0.6553114",
"0.6537159",
"0.65260077",
"0.6524875",
"0.6523725",
"0.6435703",
"0.6407639",
"0.63940704",
"0.63940704",
"0.6358025",
"0.63548785",
"0.6345951",
"0.6322905",
"0.6319761",
"0.62978697",
"0.62935925",
"0.6289799",
"0.6283109",
"0.6283109",
"0.6275035",
"0.62717557",
"0.62698674",
"0.6266552",
"0.6266552",
"0.6266552",
"0.625367",
"0.625367",
"0.6230901",
"0.6229988",
"0.62296635",
"0.62248003",
"0.6207726",
"0.6207726",
"0.61914235",
"0.61914235",
"0.6176702",
"0.6176702",
"0.61567634",
"0.615453",
"0.61422104",
"0.6139267",
"0.6132883",
"0.6132883",
"0.61192226",
"0.6116635",
"0.61070174",
"0.60913396",
"0.60835904",
"0.60722774",
"0.60722774",
"0.60693616",
"0.6069222",
"0.6069222",
"0.60443926",
"0.60443926",
"0.60407853",
"0.6038983",
"0.60326344",
"0.602945",
"0.60291505",
"0.6026088",
"0.600995",
"0.60017747",
"0.5999715",
"0.5999715",
"0.5992427",
"0.5992096",
"0.5990426",
"0.5990426",
"0.5990426",
"0.5969734",
"0.5955979",
"0.5941748",
"0.59401494",
"0.5923996",
"0.5923996",
"0.5923996",
"0.5922407",
"0.59198946",
"0.5910543"
] | 0.6897345 | 10 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.account | public void setAccount(String account) {
this.account = account == null ? null : account.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAccount(final Account account);",
"public void setAccount(Account account) {\n this.account = account;\n }",
"public\n void\n setAccount(Account account)\n {\n itsAccount = account;\n }",
"void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}",
"void setAccountId(Long accountId);",
"public void setAccountNo (String AccountNo);",
"private void setAccount(SessionData sessionData, Account account) {\n \ttry {\n\t sessionData.set(\"account\", account);\n \t} catch (Exception e) {\n \t throw new RuntimeException(e.toString());\n \t}\n }",
"@Override\n\tpublic void updateAccount(String pwd, String field, String company) {\n\t}",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"protected void setAccountName(final String account) {\n this.account = account;\n }",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n account_ = value;\n onChanged();\n return this;\n }",
"public void setAccountId(String s) { accountId = s;}",
"public void setAccount(com.huawei.www.bme.cbsinterface.cbs.businessmgr.Account account) {\r\n this.account = account;\r\n }",
"public void setAccount(String account) {\r\n this.account = account == null ? null : account.trim();\r\n }",
"void updateAccount();",
"void updateAccount(Account account);",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public void setCurrentUserAccount(String currentUserAccount);",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public String getAccount() {\r\n return account;\r\n }",
"public Builder setLoginAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n loginAccount_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n loginAccount_ = value;\n onChanged();\n return this;\n }",
"public String getAccount(){\n\t\treturn account;\n\t}",
"void setAccountNumber(java.lang.String accountNumber);",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public void setAccountId(int accountId) {\n this.accountId = accountId;\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public static void setCurrentAccount(Account currentAccount) {\r\n\t\tAccount.currentAccount = currentAccount;\r\n\t}",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}",
"@Column(name = \"ACCOUNT_ID\")\n\tpublic String getAccountID()\n\t{\n\t\treturn accountID;\n\t}",
"public void setAccount_Id(java.lang.String account_Id) {\n this.account_Id = account_Id;\n }",
"public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public void setBankaccount(java.lang.String param) {\r\n localBankaccountTracker = param != null;\r\n\r\n this.localBankaccount = param;\r\n }",
"public void setRaAccount(Long raAccount) {\n\t\tthis.raAccount = raAccount;\n\t}",
"public void setAccount(Account associatedAccount){\r\n\t\tthis.associatedAccount = associatedAccount;\r\n\t}",
"public void setAccount(jkt.hms.masters.business.MasAccountType account) {\n\t\tthis.account = account;\n\t}",
"public void testUpdateAccount(){\n\t\tint id = 10 ;\n\t\tAccount acc = this.bean.findAccountById(id ) ;\n\t\tacc.setDatetime(CommUtil.getNowDate()) ;\n\t\tint r = this.bean.updateAccount(acc) ;\n\t\tAssert.assertEquals(r, 1) ;\n\t}",
"public void setAccountInfo(AccountInfo accountInfo) {\n this.accountInfo = accountInfo;\n }",
"public boolean setAccountNumber(int account) {\n\t\tif (account > 0)\n\t\t\tthis.account = String.valueOf(account);\n\t\telse\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"void setAccountName(String newName) {\n this.accountName = newName;\n }",
"public void setAccountName(String accountName){\n if(checkAccountClosed()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n this.accountName = accountName;\n }",
"@Override\n\tpublic void registerAccount(AccountVO account) {\n\tsession.insert(\"account.registerAccount\",account);\n\t\t\n\t}",
"public void saveOrUpdate(Account account) {\n accountRepository.save(account);\n }",
"public void updateAccount(Account account)\n\t {\n\t\t if(!accountExists(account)) addAccount(account);\n\t\t \n\t\t ContentValues values = new ContentValues();\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_USERNAME, account.getUsername());\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_BALANCE, account.getBalance());\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_AUTH_TOKEN, account.getAuthenticationToken());\n\t\t \n\t\t String where = DatabaseContract.AccountContract.COLUMN_NAME_USERNAME + \" = ? \";\n\t\t \n\t\t db.update(DatabaseContract.AccountContract.TABLE_NAME, \n\t\t\t\t values, \n\t\t\t\t where, \n\t\t\t\t new String[] {account.getUsername()});\n\t }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(Long accountId) {\n\t\tthis.accountId = accountId;\n\t}",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public void testSetAccount_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"public Gateway setAccountName(java.lang.String accountName) {\n return genClient.setOther(accountName, CacheKey.accountName);\n }",
"public void setAccountName(String accountName) {\n if (accountName != null) {\n this.accountName = accountName;\n }\n }",
"public void setAccountId(String value) {\r\n setAttributeInternal(ACCOUNTID, value);\r\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public void setUserAccount(String userAccount) {\n sessionData.setUserAccount(userAccount);\n }",
"public Builder setAccountBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }",
"public void testSetAccount_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public synchronized void setAccountNumber(int number) {\n this.accountNumber = number;\n }",
"java.lang.String getAccount();",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}",
"public void setAccountType(AccountType accountType) {\n if (accountType != null && !accountType.equals(this.accountType)) {\n previousAccountType = this.accountType;\n lastAccountChangeDate = new Date();\n }\n\n this.accountType = accountType;\n\n }",
"public void testSetAccount_fixture9_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture9();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"public void testSetAccount_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"public Builder setAccountID(long value) {\n validate(fields()[2], value);\n this.accountID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public int getAccountID() {\n return accountID;\n }",
"public void testSetAccount_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"public void testSetAccount_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\t\tAccount account = new Account();\n\n\t\tfixture.setAccount(account);\n\n\t\t// add additional test code here\n\t}",
"public void setLead(Account lead) {\r\n this.lead = lead;\r\n }",
"public Builder setAccountID(long value) {\n validate(fields()[0], value);\n this.accountID = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"@SequenceGenerator(name = \"generator\", sequenceName=\"SEQ_CUSTOMER_ACCOUNT_MANAGENT\", allocationSize = 1)\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = \"generator\")\n\t@Column(name = \"ACCOUNT_ID\", unique = true, nullable = false, precision = 20, scale = 0)\n\tpublic BigDecimal getAccountId() {\n\t\treturn this.accountId;\n\t}",
"public int updateAccount(Accounts account) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, account.getName());\n values.put(KEY_PASSWORD, account.getPassword());\n values.put(KEY_PH_NO, account.getPhoneNumber());\n values.put(KEY_EMAIL, account.getEmail());\n\n // updating row\n return db.update(TABLE_ACCOUNTS, values, KEY_ID + \" = ?\",\n new String[]{String.valueOf(account.getID())});\n }"
] | [
"0.6643008",
"0.6519298",
"0.64815867",
"0.64243853",
"0.64058846",
"0.64058846",
"0.64058846",
"0.64058846",
"0.63019454",
"0.62681186",
"0.62377685",
"0.6086195",
"0.60605955",
"0.6051722",
"0.6051722",
"0.6049601",
"0.6014147",
"0.5980184",
"0.594434",
"0.5924649",
"0.59207493",
"0.58815044",
"0.586254",
"0.5857617",
"0.58505154",
"0.58305246",
"0.5773572",
"0.5757362",
"0.5757362",
"0.5746541",
"0.5728919",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5706092",
"0.5705641",
"0.57035357",
"0.5700203",
"0.5695077",
"0.56825787",
"0.56788903",
"0.5638727",
"0.56317466",
"0.56294274",
"0.5628408",
"0.55985594",
"0.5593701",
"0.5582573",
"0.5576722",
"0.5568004",
"0.5567554",
"0.5561971",
"0.5550967",
"0.5534926",
"0.55305314",
"0.5517331",
"0.5515066",
"0.55149305",
"0.5500558",
"0.54921967",
"0.5479541",
"0.5479541",
"0.5467174",
"0.54608345",
"0.5454837",
"0.54529375",
"0.5445979",
"0.5445979",
"0.5433798",
"0.54277134",
"0.54260474",
"0.54204255",
"0.54204255",
"0.5416768",
"0.54127055",
"0.54084194",
"0.5408372",
"0.5408372",
"0.5406358",
"0.54012126",
"0.53840554",
"0.5383425",
"0.5380203",
"0.53769505",
"0.5366288",
"0.53565866",
"0.53499794",
"0.53495324",
"0.53473663",
"0.53468037"
] | 0.59086084 | 25 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.user_num | public String getUserNum() {
return userNum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }",
"public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }",
"public String getUsernumber() {\n return usernumber;\n }",
"public String getNumUserid() {\n return numUserid;\n }",
"public String getUserno() {\r\n return userno;\r\n }",
"public static int getNumberLoggedUser() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_LOGGED_USER_NUMBER;\n\t\t\trp.parameters = new Object[] {};\n\t\t\tReceiveContent rpp = sendReceive(rp);\n\t\t\tint logged = (int) rpp.parameters[0];\n\t\t\treturn logged;\n\t\t} catch (Exception e) {\n\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\n\t\tpublic User getUserInNo(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getUserInNo\", userNo);\n\t\t}",
"@Column(name = \"USER_SEQ_NBR\")\n\tpublic Long getUserSeqNbr()\n\t{\n\t\treturn userSeqNbr;\n\t}",
"public int getUserWonNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT count(id) FROM tp.gamerecord WHERE winner = (SELECT id FROM tp.player WHERE isAI = false)\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tresult = rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"java.lang.String getAccountNumber();",
"public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }",
"public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}",
"public String getUsrnm() throws Exception\n\t{\n\t\tString usrnm=\"null\";\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT clients_username FROM usersdb.telephone_numbers;\"))\n\t\t{\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(result.next()) \n\t\t\t{\n\t\t\t\tif(username.equals(result.getString(\"clients_username\"))) \n\t\t\t\t{\n\t\t\t\t\tusrnm = result.getString(\"clients_username\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn usrnm;\n\t}",
"@Id\n\t@Column(name = \"USER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getUserSeqNbr() \n\t{\n\t\treturn userSeqNbr;\n\t}",
"public int getAD_User_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_User_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public int getMyPlayerNumber() {\n if (gameStatus == null || userId == null) return -1;\n if (userId.equals(gameStatus.getPlayerOne())) return 1;\n if (userId.equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }",
"Integer getUserId();",
"int getUnapprovedUserNumber();",
"public int getAccountNo() {\n return accountNo;\n }",
"public Integer getUser_id() {\n\t\treturn user_id;\n\t}",
"public int getGameNumber() {\n\t\tint result = -1;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT count(id) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tresult = rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }",
"public int getAccountNo() {\n\t\treturn this.accountNo;\r\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn _esfTournament.getUserId();\n\t}",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n\t\treturn this.userid;\n\t}",
"@Override\n\tpublic int getAuNum(String username) {\n\t\treturn auMapper.getAuNum(username);\n\t}",
"long getUserId();",
"long getUserId();",
"private String getUserNumber(String colName) {\n\t\tquery = \"select \" + colName + \" from [LotteryDB].[dbo].[BigLottery] where UserName = 'Bob'\";\n\t\tString result = \"\";\n\t\ttry {\n\t\t\tstmt = con.createStatement();\n\t\t\tresultSet = stmt.executeQuery(query);//Query結果存在這裡\n\t\t\t\n\t\t\tif(resultSet != null) {\n\t\t\t\tresultSetMetaData = resultSet.getMetaData();\n\t\t\t int numberOfColumns = resultSetMetaData.getColumnCount();\n\t\t\t while(resultSet.next()){\n\t\t\t \tfor(int i = 1;i < numberOfColumns+1;i++) {\n\t\t\t \t\tString cn = resultSetMetaData.getColumnName(i);\n\t\t\t \t\t result = resultSet.getString(cn);\n\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(resultSet.getString(cn));\n\t\t\t \t}\n\t\t\t }\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t\t\n\t\t}\n\t\treturn result;\n\t\t\n\t}",
"public int getAccountNumber() {\n return accountNumber;\n }",
"public static String getUserName(String accountNumber){\n return \"select u_name from users where u_accountnum = '\" + accountNumber +\"'\";\n }",
"@Override\r\n\tpublic String getUserId(String nickName) throws Exception {\n\t\treturn userDao.getUserId(nickName);\r\n\t}",
"@Override\n\tpublic BigInteger selectUserIdByAccount(String account,Long type) {\n\t\t\n\t\tLoginNo loginNo = accountManageDao.selectLoginNoDetail(account, type);\n\t\tBigInteger res = loginNo==null?null:loginNo.gettUserFId();\n\t\treturn res;\n\t}",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"@Override\n\t\tpublic User getEvalUser(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getEvalUser\", userNo);\n\t\t}",
"@Override\r\n\tpublic int getSuperNumber(String username) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tint ret = 0;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetSuperNumber);\r\n\t\t\tps.setString(1, username);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tret = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tcon.close();\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\treturn ret;\r\n\t}",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}",
"public Integer getUserID() {\n return userID;\n }",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public BigDecimal getUserId() {\r\n return userId;\r\n }",
"public String mo9206f() {\n return nativeGetUserId(this.f2197b);\n }",
"public String getAccountNo();",
"public Long getUser() {\n return user;\n }",
"public String getUsercomaccnum() {\n\t\treturn usercomaccnum;\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public int getUserId(User user) throws Exception;",
"@FXML\r\n\t\r\n\tpublic static void GetUserID() {\r\n\t\ttry {\r\n\t\t\tLoginConn = connection.connectDB();\r\n\t\t\tst = LoginConn.createStatement(); // create statement of it\r\n\t\t\trs = st.executeQuery(\"SELECT COUNT(USER_ID) FROM USERS\");\r\n\t\t\tuserCount = rs.getInt(\"COUNT(USER_ID)\");\r\n\t\t\tuserCount2 = userCount + 1;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t}",
"public int getIduser() {\n return iduser;\n }",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"public int getUserID()\n {\n return this.userID;\n }",
"public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}",
"public int getUserTurn() {\n\t\treturn userTurn;\n\t}",
"public int getUserId() {\n return instance.getUserId();\n }",
"public int getUser2_ID() {\n\t\tInteger ii = (Integer) get_Value(\"User2_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"Long getUserId();",
"public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}",
"public int getLastUserId();",
"public int getIdUser() {\n return idUser;\n }",
"public int getIdUser() {\n return idUser;\n }",
"@Id\n\t@Column(name = \"PROXYUSER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getProxyUserSeqNbr() \n\t{\n\t\treturn proxyUserSeqNbr;\n\t}",
"public String getAccountNo() {\n return accountNo;\n }",
"public Number getUserIdFk() {\r\n return (Number) getAttributeInternal(USERIDFK);\r\n }",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"@java.lang.Override\n public long getUserId() {\n return instance.getUserId();\n }",
"public String getTelNum() throws Exception \n\t{\n\t\tString tel=\"\";\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT telephone_number FROM usersdb.telephone_numbers WHERE clients_username = ?;\"))\n\t\t{\n\t\t\tpreparedStatement.setString(1,username);\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(result.next()) \n\t\t\t{\n\t\t\t\ttel = result.getString(\"telephone_number\");\n\t\t\t\ttelnum = result.getString(\"telephone_number\");\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tel;\n\t}",
"public long getUserID() {\n //userID++;\n return userID++;\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"public Integer getUserId() {\r\n return userId;\r\n }",
"public Integer getUserId() {\r\n return userId;\r\n }",
"public Integer userID() {\n return this.userID;\n }",
"public int getUserID()\n {\n return userID;\n }",
"public int getUser(String M)\t\n\t{\t//start of getUser method\n\t\t//userNum = Integer.parseInt(M);\n\t\tuserNum = Integer.parseInt(M);\n\t\treturn userNum;\n\t}"
] | [
"0.6894506",
"0.67299366",
"0.6560949",
"0.6475125",
"0.6350885",
"0.62839437",
"0.6100285",
"0.60651356",
"0.6033829",
"0.5992042",
"0.59076345",
"0.5898366",
"0.5884585",
"0.58449066",
"0.58316696",
"0.58313775",
"0.5826171",
"0.5813834",
"0.58081025",
"0.5781261",
"0.5775133",
"0.5756323",
"0.5706789",
"0.56961715",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.5688288",
"0.56843424",
"0.5666717",
"0.5660153",
"0.5660153",
"0.5650926",
"0.5649672",
"0.56482834",
"0.564169",
"0.56410635",
"0.5633501",
"0.5633501",
"0.56300527",
"0.562363",
"0.56195575",
"0.5617469",
"0.56086296",
"0.559122",
"0.559122",
"0.559122",
"0.559122",
"0.5577628",
"0.55738366",
"0.5568036",
"0.5563142",
"0.55534154",
"0.5544263",
"0.5544263",
"0.5544263",
"0.5524502",
"0.5524267",
"0.55185753",
"0.5505973",
"0.54999286",
"0.5481533",
"0.5477546",
"0.54689884",
"0.5468918",
"0.54647386",
"0.545226",
"0.5439803",
"0.54343915",
"0.54343915",
"0.54322404",
"0.5429464",
"0.5422269",
"0.54113287",
"0.5405247",
"0.5405247",
"0.5405247",
"0.54033047",
"0.5402061",
"0.54009867",
"0.5396063",
"0.53773713",
"0.53773713",
"0.53773713",
"0.5371074",
"0.5371074",
"0.5368466",
"0.5364921",
"0.53637165"
] | 0.6674091 | 5 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.user_num | public void setUserNum(String userNum) {
this.userNum = userNum == null ? null : userNum.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCurrentUser(int userNum) {\n\t\tuserTurn = userNum;\n\t}",
"public void setUsernumber(String usernumber) {\n this.usernumber = usernumber;\n }",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"public void setNumUserid(String numUserid) {\n this.numUserid = numUserid == null ? null : numUserid.trim();\n }",
"public void setLastUpdUserId(Integer value) {\n set(6, value);\n }",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"public void setUserId(int value) {\n this.userId = value;\n }",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"public void setUser(int U)\t\n\t{\t//start of setUser mehtod\n\t\tuserNum = U;\n\t}",
"public static void setUserId(int zUserId) {\n userId = zUserId;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public void setUserId(long value) {\r\n this.userId = value;\r\n }",
"@Column(name = \"USER_SEQ_NBR\")\n\tpublic Long getUserSeqNbr()\n\t{\n\t\treturn userSeqNbr;\n\t}",
"public String getUsernumber() {\n return usernumber;\n }",
"public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }",
"public void setUserId(long value) {\n this.userId = value;\n }",
"public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"@Id\n\t@Column(name = \"USER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getUserSeqNbr() \n\t{\n\t\treturn userSeqNbr;\n\t}",
"public void setIduser(int aIduser) {\n iduser = aIduser;\n }",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserSeqNbr(Long userSeqNbr) \n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}",
"public void setUserID(int value) {\n this.userID = value;\n }",
"public String getUserno() {\r\n return userno;\r\n }",
"public void setUserSeqNbr(Long userSeqNbr)\n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}",
"public String getNumUserid() {\n return numUserid;\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }",
"public synchronized void setAccountNumber(int number) {\n this.accountNumber = number;\n }",
"public void setPlayerNumber(int num) {\n playerNum = num;\n }",
"public void setUserIdFk(Number value) {\r\n setAttributeInternal(USERIDFK, value);\r\n }",
"public Builder setUserId(int value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"void setUserId(Long userId);",
"public void setBotNumber(int num) {\n botNum = num;\n }",
"public void setCallingUser(entity.User value);",
"public void setAccountNo (String AccountNo);",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_esfTournament.setUserId(userId);\n\t}",
"public int assignIdToNextUser () {\n int currentMax;\n User maxUserId = null;\n try {\n List lst = this.readAllUsers();\n maxUserId = Collections.max(lst, new UserCompar());\n } catch (DaoException exc) {\n exc.printStackTrace();\n }\n currentMax = maxUserId.getId();\n return ++currentMax;\n }",
"public void setUser1X_ID (int User1X_ID);",
"public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }",
"public void setAD_User_ID (int AD_User_ID);",
"@Override\n\t\tpublic User getUserInNo(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getUserInNo\", userNo);\n\t\t}",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"public void setUserno(String userno) {\r\n this.userno = userno == null ? null : userno.trim();\r\n }",
"public void _saveWithNumVerification(SQLiteDatabase db) throws IllegalArgumentException, IllegalAccessException, SQLException {\n\t\tEntityUser user = (EntityUser) Database.getObjectByToken(db, \"ENTITYUSER\", token, EntityUser.class);\n\t\tif (user != null && user.num_captacion > this.num_captacion)\n\t\t\tthis.num_captacion = user.num_captacion;\n\t\tif (user != null && user.num_incidencia > this.num_incidencia)\n\t\t\tthis.num_incidencia = user.num_incidencia;\n\t\tif (user != null && user.num_inventario > this.num_inventario)\n\t\t\tthis.num_inventario = user.num_inventario;\n\t\tif (user != null && user.num_mov_almacen > this.num_mov_almacen)\n\t\t\tthis.num_mov_almacen = user.num_mov_almacen;\n\t\t\n\t\t_save(db);\n\t\t\n\t\t\n\t}",
"public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }",
"public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);",
"public void setUserId(java.lang.Long value) {\n this.userId = value;\n }",
"void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}",
"private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }",
"public void setCurrUser(User currUser) {\n this.currUser = currUser;\n }",
"public void setId_user(int id_user) {\n this.id_user = id_user;\n }",
"@Override\n\tpublic void updateJoinUserRefuse(int joinNumber) {\n\t\tuserInfoDAO.updateJoinUserRefuse(joinNumber);\n\t}",
"@Override\r\n\tpublic Integer registerUser(User user) throws SQLException, ClassNotFoundException, IOException \r\n\t{\r\n\t\t//Declare all variables\r\n\t\t//Create Connection, PreparedStatement, and ResultSet Objects and\r\n\t\t//initialize to null. Create an OracleConnection Object with Java default Constructor.\r\n\t\tConnection conn = null;\t\t\t\r\n\t\tPreparedStatement stmt = null;\t\r\n\t\tResultSet rs = null;\t\t\t\r\n\t\tOracleConnection orcl= new OracleConnection();\t\r\n\t\t\r\n\t\t// Assign query statement (SQL) to String variable\r\n\t\tString insertString = \"insert into users (user_name, password, admin_role) values (?,?,?)\";\r\n\t\t\r\n\t\t//Assign column id value to String array for auto generated keys\r\n\t\tString[] COL = {\"user_id\"};\r\n\t\tint ID = -1;\r\n\t \r\n\t\t//Assign value to Connection Object using getConnection\r\n\t\t//method from OracleConnection Class.\r\n\t conn = orcl.getConnection(); \r\n\t\tSystem.out.println(\"DATABASE CONNECTION ESTABLISHED\");\r\n\t \r\n\t try\r\n\t\t{\r\n\t \t//Initialize Statement Object with passing of query and column id \r\n\t \t//Initialize Statement Object with column index and value to be inserted into the column\r\n\t stmt = conn.prepareStatement(insertString, COL);\r\n\t \r\n\t stmt.setString(1, user.getUserName());\r\n\t stmt.setString(2, user.getPassword());\r\n\t stmt.setString(3, user.getAdminRole());\r\n\t \r\n\t //Execute query\r\n\t stmt.executeUpdate();\r\n\t \r\n\t //Assign returned values to ResultSet Object.\r\n\t rs = stmt.getGeneratedKeys();\r\n\t if(rs != null && rs.next()) \r\n\t {\r\n\t ID = rs.getInt(1);\r\n\t user.setUserId(ID);\r\n\t System.out.println(\"The user has been registered as USER ID#: \"+ID);\r\n\t }\r\n\t }\r\n\t catch (SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\t//Close all database access Objects\r\n\t\t\tif (rs != null) \r\n\t\t\t{\r\n\t\t\t\trs.close();\r\n\t\t\t}\r\n\t\t\tif (stmt != null) \r\n\t\t\t{\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\tif (conn != null) \r\n\t\t\t{\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n\t\treturn ID;\r\n\t}",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n\tpublic void setUserId(long userId);",
"public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }",
"public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public void setUserNumberOfRocks(int number) {\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tif (x == 0 || x == 7) {\n\t\t\t\tbucket[x].setnumOfRocks(0, true);\n\t\t\t} else {\n\t\t\t\tbucket[x].setnumOfRocks(number, true);\n\t\t\t}\n\t\t}\n\t}",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"void setUserId(@UserIdInt int userId) {\n mUserId = userId;\n }",
"public void setNum(int num) {\r\n this.num = num;\r\n }",
"public Builder setUserId(long value) {\n \n userId_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }",
"public void setNum(Integer num) {\n this.num = num;\n }",
"public void setNum(Integer num) {\n this.num = num;\n }",
"@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}",
"@Id\n\t@Column(name = \"PROXYUSER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getProxyUserSeqNbr() \n\t{\n\t\treturn proxyUserSeqNbr;\n\t}",
"public Builder setUserId(long value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"public void setUser(Long user) {\n this.user = user;\n }",
"public void setUser1_ID (int User1_ID);",
"public void setUser1_ID (int User1_ID);",
"void setAccountNumber(java.lang.String accountNumber);",
"public void setUser1Z_ID (int User1Z_ID);"
] | [
"0.64277923",
"0.62816197",
"0.61077964",
"0.60638195",
"0.6040923",
"0.5968696",
"0.59594053",
"0.58760256",
"0.58688307",
"0.5848104",
"0.57840157",
"0.57729846",
"0.57729846",
"0.57729846",
"0.57729846",
"0.5746473",
"0.5736018",
"0.57334673",
"0.57249504",
"0.5688564",
"0.5662026",
"0.56444174",
"0.56342757",
"0.5600474",
"0.5568766",
"0.5568766",
"0.5568766",
"0.5568766",
"0.55640185",
"0.5555656",
"0.5552576",
"0.5539875",
"0.55361736",
"0.54152495",
"0.5410727",
"0.5396698",
"0.5396381",
"0.5391457",
"0.538",
"0.5371808",
"0.53435385",
"0.5342059",
"0.53350055",
"0.53280413",
"0.5315066",
"0.5312084",
"0.52809405",
"0.5278856",
"0.52768433",
"0.5270898",
"0.5266914",
"0.5261071",
"0.525767",
"0.5257576",
"0.52506804",
"0.5237931",
"0.52346426",
"0.52236825",
"0.52196705",
"0.5214454",
"0.52118623",
"0.5198886",
"0.5198886",
"0.5183714",
"0.51816577",
"0.51691157",
"0.51691157",
"0.51691157",
"0.51691157",
"0.51691157",
"0.51691157",
"0.51691157",
"0.51686317",
"0.51684016",
"0.51684016",
"0.51684016",
"0.51684016",
"0.51684016",
"0.51684016",
"0.5165646",
"0.51615834",
"0.51579714",
"0.5157038",
"0.5157038",
"0.5157038",
"0.5157038",
"0.5145647",
"0.51441324",
"0.51441324",
"0.51401716",
"0.51377034",
"0.5136715",
"0.51300335",
"0.51204723",
"0.51204723",
"0.5107845",
"0.50906986"
] | 0.60779524 | 6 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.password | public String getPassword() {
return password;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountPassword() {\n return accountPassword;\n }",
"public String getAccountPassword() {\n return accountPassword;\n }",
"public String getAccountPassword() {\n return accountPassword;\n }",
"public static String getAccountPassword() {\n\t\tif ((xml == null) || (accountPassword == null)) return \"password\";\n\t\tif (accountPassword.equals(\"\")) return \"password\";\n\t\treturn accountPassword;\n\t}",
"public String getPassword() {\n\t\treturn String.valueOf(password.getPassword());\n\t}",
"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();",
"public java.lang.String getPassword();",
"public String getPassword() {\n return (String) getObject(\"password\");\n }",
"public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}",
"public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}",
"public String getPassword() {\n return getProperty(PASSWORD);\n }",
"@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}",
"@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}",
"public String getPassword(){\n\t\treturn this.password;\n\t}",
"public String getPassword() {\n return jdbcPassword;\n }",
"public String getPassword() {\n return instance.getPassword();\n }",
"public String getPassword() {\n return instance.getPassword();\n }",
"public final String getPassword() {\n return properties.get(PASSWORD_PROPERTY);\n }",
"public String getPassword() {\r\n return this.password;\r\n }",
"public String getPassword();",
"public String getPassword();",
"public String getPassword()\n {\n return this.password;\n }",
"public String getJdbcPassword()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_PASSWORD);\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public int getPassword() {\n return password;\n }",
"public String getRepositoryDatabasePassword(){\n \t\treturn getDecryptedProperty(\"org.sagebionetworks.repository.database.password\");\n \t}",
"public String getPassword()\n {\n return _password;\n }",
"public String getDbpassword() {\n return dbpassword;\n }",
"public int getPassword(){\n\t\treturn password;\n\t}",
"public String getPassword(){\r\n\t\treturn password;\r\n\t}",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"public String getPassword(){\n return this.password;\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\n\t\treturn this.password;\n\t}",
"public String getPassword()\n \t{\n \t\treturn password;\n \t}",
"public String returnPassword() {\n\t\treturn this.registration_password.getAttribute(\"value\");\r\n\t}",
"public String getPassword()\n\t{\n\t\treturn this.password;\n\t}",
"public String getPassword() { \n return this.password; \n }",
"public SecretBase password() {\n return this.password;\n }",
"public SecretBase password() {\n return this.password;\n }",
"public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }",
"public String getPassword(){\n \treturn password;\n }",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }",
"public String getPassword() {\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getUserPassword() {\r\n return userPassword;\r\n }",
"public String getPassword() {\n \t\treturn password;\n \t}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getIdGeneratorDatabasePassword(){\n \t\treturn getDecryptedProperty(\"org.sagebionetworks.id.generator.database.password\");\n \t}",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword(){\n return password;\n\t}",
"public String getDbPassword() {\n\t\treturn mDbPassword;\n\t}",
"public java.lang.String getPassword() {\n java.lang.Object ref = password_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n password_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] | [
"0.745612",
"0.7436167",
"0.73771465",
"0.7163275",
"0.70191526",
"0.70024186",
"0.70024186",
"0.70024186",
"0.70024186",
"0.70024186",
"0.70024186",
"0.70024186",
"0.6972882",
"0.69702303",
"0.6953043",
"0.69379705",
"0.69092417",
"0.68954974",
"0.68929434",
"0.68664265",
"0.6863506",
"0.6859159",
"0.6859159",
"0.6843983",
"0.68396336",
"0.68324095",
"0.68324095",
"0.6823492",
"0.6822418",
"0.681265",
"0.681265",
"0.681265",
"0.681265",
"0.681265",
"0.6812028",
"0.679235",
"0.6781867",
"0.67813146",
"0.6768195",
"0.67612034",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6754353",
"0.6750304",
"0.67349577",
"0.67310745",
"0.6725689",
"0.6723804",
"0.67220545",
"0.6721664",
"0.6715209",
"0.6715209",
"0.67148924",
"0.67128307",
"0.6712018",
"0.670923",
"0.6708999",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.6705906",
"0.66963536",
"0.6692979",
"0.66888875",
"0.6688337",
"0.66868466",
"0.66868466",
"0.66843617",
"0.66788155",
"0.66788155",
"0.6673209",
"0.6673209",
"0.66731596",
"0.66691315",
"0.6669069"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.password | public void setPassword(String password) {
this.password = password == null ? null : password.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccountPassword(String value) {\n this.accountPassword = value;\n }",
"public void setPassword(java.lang.String newPassword);",
"public void setPassword(String pass);",
"void setPassword(String password);",
"void setPassword(String password);",
"void setPassword(String password);",
"public void setJdbcPassword(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_PASSWORD, val);\n }",
"public Builder setAccountPassword(String value) {\n validate(fields()[4], value);\n this.accountPassword = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public void updatePassword(String account, String password);",
"public String getAccountPassword() {\n return accountPassword;\n }",
"public void setPassword2(String password2);",
"public String getAccountPassword() {\n return accountPassword;\n }",
"public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }",
"public void setPassword(String pw)\n {\n this.password = pw;\n }",
"public void setPassword(String password)\n {\n _password = password;\n }",
"public String getAccountPassword() {\n return accountPassword;\n }",
"public void setPassword(String password) throws SQLException\r\n\t{\r\n\t\tif (password == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET password =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, password);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setPassword(String \"+ password+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"public void changePassword(String account_name, String newPassword){\n //hashe the password\n newPassword = hashPassword(newPassword);\n try {\n statement = connection.createStatement();\n statement.executeUpdate(\"UPDATE members SET password='\"+newPassword+\"' WHERE\" +\n \" name='\"+account_name+\"'\");\n }catch (SQLException ex){ex.printStackTrace();}\n }",
"public void setPassword(String newPassword) {\n this.password = newPassword;\n \n //make the changes in the database\n db.updateUserProperty(username, Property.PASSWORD, newPassword);\n }",
"@Override\n\tpublic void setPassword(String password) {\n\n\t}",
"public void setPassword(String password){\r\n this.password = password;\r\n }",
"@Override\r\n\tpublic int updatepassword(Account account) {\n\t\taccountMapper.updatepassword(account);\r\n\t\treturn 0;\r\n\t}",
"public void setPassword(int password) {\n this.password = password;\n }",
"public void setPassword(final java.lang.String password) {\r\n this.password = password;\r\n this.values.put(UserInfoTable.PASSWORD, password);\r\n }",
"public void set_pass(String password)\n {\n pass=password;\n }",
"public String getPassword() {\n return jdbcPassword;\n }",
"public void setPassword(String password) {\n this.password = password;\n saveProperties();\n }",
"void setPassword(String ps) {\n this.password = ps;\n }",
"@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}",
"public void setPassword(String password)\n {\n _password = password;\n }",
"@Test\n public void testAccountSetPassword() {\n try {\n Account newAcc = new Account(1, \"holder\", \"holder\", Credential.ADMIN);\n newAcc.setPassword(\"newPasswordForHolder\");\n Assert.assertEquals(\"Incorrect updated password for account after changing\",\n \"newPasswordForHolder\", newAcc.getPassword());\n } catch (Exception e) {\n Assert.fail(\"Set account password should not have failed here\");\n e.printStackTrace();\n }\n }",
"public void setPassword(String password) throws BuildException {\n jdbcPassword = password;\n }",
"public void setPassword(String strPassword){\n\t\t driver.findElement(password99Guru).sendKeys(strPassword);\n\t}",
"void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"void setErrorPassword();",
"public String getDbpassword() {\n return dbpassword;\n }",
"void saveNewPassword(String userName, String hashedPassword) throws DatabaseException;",
"public void setPassword(String password) {\n this.password = password;\r\n }",
"public String getPassword(){\n return this.password;\n }",
"public void setPassword(String password)\n {\n this.password = password;\n }",
"public void setPassword(String password)\n {\n this.password = password;\n }",
"public void setPassword( String password )\r\n {\r\n this.password = password;\r\n }",
"public void setPassword(String user, String password) throws Exception {\n\t\tProperties database = getDataBase();\n\t\tdatabase.setProperty(user, PasswordHash.createHash(password));\n\t\tsave(database);\n\t}",
"public String getPassword() { \n return this.password; \n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"@Override\n\tpublic void setEncryptedPassword(String arg0) {\n\t\t\n\t}",
"public String getPassword(){\r\n\t\treturn password;\r\n\t}",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String password) {\r\n this.password = password;\r\n }",
"public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}",
"public void setPassword(String password) {\n\tthis.password = password;\n}",
"public String getPassword() {\r\n return this.password;\r\n }",
"public String getPassword() {return password;}",
"public void setPassword(String strPassword){\n\t\tdriver.findElement(password99Guru).sendKeys(strPassword);\n\t}",
"void updateMasterPassword(String password, User userInSession) throws BusinessException;",
"public int getPassword(){\n\t\treturn password;\n\t}",
"void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);",
"public void setPassword(String password) {\n setObject(\"password\", (password != null) ? password : \"\");\n }",
"public String getPassword(){\n return password;\n\t}",
"public void setPw(char[] password) {\n\t\t\r\n\t}",
"@Override\n\tpublic void alterpassword(User user) throws Exception {\n\n\t}",
"public String getPassword(){\n\t\treturn this.password;\n\t}",
"public int getPassword(){\n return password;\r\n }",
"public void setPassword(String password)\n {\n this.password = password;\n }",
"public void setDbpassword(String dbpassword) {\n this.dbpassword = dbpassword;\n }",
"public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }",
"@Override\n public String getPassword() {\n return password;\n }",
"public String getPassword(){\n \treturn password;\n }",
"public void set_password(String password)\r\n\t{\r\n\t\tthis.password = password;\r\n\t}",
"public void setPassword(String p) {\n\t\tpassword = p;\n\t}",
"@Override\r\n\tpublic void upadatePassword(String newPassword, ForgetBean forget) {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction txn = session.getTransaction();\r\n\r\n\t\tString sql = \"UPDATE account SET password = '\" + newPassword + \"' WHERE email='\" + forget.getEmail() + \"'\";\r\n\r\n\t\tSQLQuery query = session.createSQLQuery(sql);\r\n\t\tquery.executeUpdate();\r\n\r\n\t}",
"public String getPassword()\n {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public String getPassword() {\n return this.password;\n }",
"public void setPassword(final String password){\n mPassword = password;\n }",
"public void changePassword(String email, String pass) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.changePassword(email,pass);\n\t\n}",
"public void setPassword(String password)\n {\n String passwordRegex = \"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,}$\";\n Pattern passwordPattern = Pattern.compile(passwordRegex);\n Matcher passwordMatcher = passwordPattern.matcher(password);\n if(passwordMatcher.matches())\n {\n this.password=password;\n }\n else\n {\n this.password=\"\";\n }\n }",
"public void setPassword(String password)\n \t{\n \t\tthis.password = password;\n \t}",
"private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }",
"private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }",
"public void setBankPassword(String value) {\n this.bankPassword = value;\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public static String updateUserPassword(String newPass, String account){\n return \"update users set u_pass = '\"+newPass+\"' where u_accountnum = '\"+account+\"'\";\n }",
"@Override\n public String getPassword() {\n return password;\n }",
"public int getPassword() {\n return password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }",
"public void setPassword(String password) {\n this.password = password;\n }"
] | [
"0.6925504",
"0.6541952",
"0.6528748",
"0.64856917",
"0.64856917",
"0.64856917",
"0.64643073",
"0.64514655",
"0.6420347",
"0.63761675",
"0.6335312",
"0.633482",
"0.6329443",
"0.6310234",
"0.63005596",
"0.62976986",
"0.62415916",
"0.6231735",
"0.62159103",
"0.61927146",
"0.6158726",
"0.6108985",
"0.6105644",
"0.61027336",
"0.609361",
"0.60928595",
"0.60850316",
"0.6081763",
"0.6080018",
"0.6073863",
"0.6067159",
"0.6054628",
"0.6037614",
"0.6032996",
"0.59899104",
"0.59899104",
"0.59871024",
"0.5973089",
"0.5972528",
"0.5958223",
"0.595454",
"0.5951009",
"0.5951009",
"0.59423995",
"0.5937245",
"0.59317374",
"0.59285456",
"0.59285456",
"0.59265316",
"0.5910156",
"0.590903",
"0.590903",
"0.590903",
"0.590903",
"0.590903",
"0.590903",
"0.5908907",
"0.5908238",
"0.59077454",
"0.59052163",
"0.590521",
"0.58998156",
"0.58906",
"0.5890259",
"0.5887544",
"0.58830684",
"0.58830076",
"0.58770716",
"0.5876955",
"0.5871057",
"0.5869529",
"0.5868879",
"0.58651626",
"0.5864681",
"0.58589953",
"0.5857495",
"0.5853669",
"0.5853648",
"0.5851964",
"0.58479697",
"0.58479697",
"0.58479697",
"0.58479697",
"0.58479697",
"0.5843922",
"0.58406943",
"0.58398396",
"0.5836937",
"0.5836723",
"0.5836723",
"0.5836176",
"0.58283216",
"0.5825499",
"0.58252513",
"0.58223855",
"0.58201677",
"0.58201677",
"0.58201677",
"0.58201677",
"0.58201677",
"0.58201677"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.nickname | public String getNickname() {
return nickname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getNickname();",
"java.lang.String getNick();",
"java.lang.String getNick();",
"public String getnick() {\n return nickname;\n }",
"public String getNickname() {\r\n return nickname;\r\n }",
"public String getNickname() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_NICKNAME);\r\n }",
"public java.lang.String getNickname() {\n java.lang.Object ref = nickname_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nickname_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getNickname() {\n java.lang.Object ref = nickname_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nickname_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.StringValue getNickname() {\n return nickname_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : nickname_;\n }",
"public String getNickname() {\n return nickname;\n }",
"@Column(length = 50, nullable = false, unique = true)\n public String getNick() {\n return nick;\n }",
"public String getUserNickname()\n {\n if (nickName == null)\n nickName =\n provider.getInfoRetreiver().getNickName(\n provider.getAccountID().getUserID());\n\n return nickName;\n }",
"public String getNickname() throws RemoteException{\n return this.nickname;\n }",
"public String getNick() {\n return this.session.sessionPersona().getUserName();\n }",
"public String getNickname();",
"public String getNickname() throws RemoteException {\n \n\treturn this.nickname;\n\t\t\t }",
"public String getUserNick() {\r\n return userNick;\r\n }",
"public java.lang.String getNickname() {\n return localNickname;\n }",
"com.google.protobuf.ByteString getNickname();",
"public com.google.protobuf.StringValue getNickname() {\n if (nicknameBuilder_ == null) {\n return nickname_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : nickname_;\n } else {\n return nicknameBuilder_.getMessage();\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getNicknameBytes() {\n java.lang.Object ref = nickname_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nickname_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getNickName() {\r\n return nickName;\r\n }",
"private static String fetchNickname(HashMap<String, Object> parameterMap) {\n\t\tString nickname = \"\";\n\t\tPsName psName = PsName.findByEmployeeIdAndNameTypeAndEffectiveDate((String)parameterMap.get(\"employeeId\"), \"PRF\", (Date)parameterMap.get(\"effectiveDate\"));\n\t\tif(psName != null && psName.getFirstName() != null) {\n\t\t\tnickname = psName.getFirstName().trim().toUpperCase().replaceAll(\"'\", \"''\");\n\t\t\tif(nickname.length() > 20) {\n\t\t\t\tnickname.substring(0, 20);\n\t\t\t}\n\t\t}\n\t\treturn nickname;\n\t}",
"@Column(length = 100, nullable = false, unique = true)\n\tpublic String getNickName() {\n\t\treturn nickName;\n\t}",
"public com.google.protobuf.ByteString\n getNicknameBytes() {\n java.lang.Object ref = nickname_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nickname_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getUsrnm() throws Exception\n\t{\n\t\tString usrnm=\"null\";\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT clients_username FROM usersdb.telephone_numbers;\"))\n\t\t{\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(result.next()) \n\t\t\t{\n\t\t\t\tif(username.equals(result.getString(\"clients_username\"))) \n\t\t\t\t{\n\t\t\t\t\tusrnm = result.getString(\"clients_username\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn usrnm;\n\t}",
"public String getNickName()\r\n {\r\n\treturn nickName;\r\n }",
"public String getNickName()\r\n {\r\n\treturn nickName;\r\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public com.google.protobuf.ByteString getNickname() {\n return nickname_;\n }",
"@Override\n\tpublic UserVo c_selectnickname(String id) throws SQLException {\n\t\treturn sqlSession.selectOne(\"yes.ac_selectnickname\", id);\n\t}",
"@Override\n\tpublic UserVo s_selectnickname(String id) throws SQLException {\n\t\treturn sqlSession.selectOne(\"yes.as_selectnickname\", id);\n\t}",
"public String getNick() {\r\n return nick;\r\n }",
"public com.google.protobuf.ByteString getNickname() {\n return nickname_;\n }",
"com.google.protobuf.ByteString\n getNickBytes();",
"com.google.protobuf.ByteString\n getNickBytes();",
"@Override\n public String returnName(){\n return this.nickName;\n }",
"public String getUsername() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_user_text;\n\t}",
"public String getNick() {\n\t\treturn nick;\n\t}",
"public String getNick() {\n\t\treturn nick;\n\t}",
"public static String getUserName(String accountNumber){\n return \"select u_name from users where u_accountnum = '\" + accountNumber +\"'\";\n }",
"public String getNickUsuario() {\r\n return nickUsuario;\r\n }",
"public String getNick()\n\t{\n\t\treturn _nick;\n\t}",
"public String getPlayerTwoUserName() {\n if (gameStatus == null) return \"\";\n if (gameStatus.getPlayerTwoUserName() == null) return \"\";\n return gameStatus.getPlayerTwoUserName();\n }",
"String getFromNick();",
"public String getNickName(){\n return nombreUsuario;\n }",
"public String getPlayerOneUserName() {\n if (gameStatus == null) return \"\";\n if (gameStatus.getPlayerOneUserName() == null) return \"\";\n return gameStatus.getPlayerOneUserName();\n }",
"public com.google.protobuf.StringValueOrBuilder getNicknameOrBuilder() {\n if (nicknameBuilder_ != null) {\n return nicknameBuilder_.getMessageOrBuilder();\n } else {\n return nickname_ == null ?\n com.google.protobuf.StringValue.getDefaultInstance() : nickname_;\n }\n }",
"public String getCurrentNickname() {\n return currentPlayer.getNickName();\n }",
"com.google.protobuf.ByteString\n getNicknameBytes();",
"public String getContactNick() {\n return contactNick;\n }",
"@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getNicknameOrBuilder() {\n return getNickname();\n }",
"@ApiModelProperty(value = \"昵称\")\n\tpublic String getNickname() {\n\t\treturn nickname;\n\t}",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getLoginAccount();",
"java.lang.String getLoginAccount();",
"public String getUsernameFieldName() {\n return getStringProperty(USERNAME_FIELD_NAME_KEY);\n }",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n }\n }",
"public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n }\n }",
"@AutoEscape\n\tpublic String getUser_name();",
"public static String getNickname(int userid) throws SQLException {\n\n\t\tUserDB newUser = new UserDB();\n\n\t\tif (newUser.getUserById(userid, true) == Variables.INVALID_ID\n\t\t\t\t.getValue())\n\t\t\treturn \"\";\n\n\t\treturn newUser.getNickname();\n\t}",
"public String getFromNick() {\n Object ref = fromNick_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n fromNick_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@Override\r\n\tpublic String getUserId(String nickName) throws Exception {\n\t\treturn userDao.getUserId(nickName);\r\n\t}",
"public User findUserByNickname(final String nickname);",
"public String getUserLoginName() {\n return userLoginName;\n }",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"public String getAccountNameCustom() {\n\t\tSystem.out.println(keypad.SelectAccountNameCustom.getText());\n\t\treturn keypad.SelectAccountNameCustom.getText();\n\t}",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public String getFromNick() {\n Object ref = fromNick_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n fromNick_ = s;\n return s;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"@Override\r\n\tpublic String getFullname(String userId) {\n\t\tif (conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString name = null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT username FROM users WHERE user_id = ? \";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tname = rs.getString(\"username\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn name;\r\n\t}",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] | [
"0.6901538",
"0.68661726",
"0.68661726",
"0.68591",
"0.681932",
"0.6775719",
"0.6766036",
"0.6741942",
"0.67319065",
"0.67258906",
"0.67143774",
"0.67004496",
"0.667845",
"0.66469735",
"0.66026217",
"0.65769434",
"0.6553057",
"0.6491034",
"0.6487503",
"0.6486327",
"0.6484493",
"0.6481194",
"0.6479104",
"0.6465559",
"0.64654016",
"0.644682",
"0.6429596",
"0.6429596",
"0.6428991",
"0.6428991",
"0.6428991",
"0.6428991",
"0.6428991",
"0.6428991",
"0.64205134",
"0.64189553",
"0.64099336",
"0.6396806",
"0.63877153",
"0.62640834",
"0.62640834",
"0.62525785",
"0.62225884",
"0.61970925",
"0.61970925",
"0.6147827",
"0.612125",
"0.6119085",
"0.61044884",
"0.6073773",
"0.6060316",
"0.6041042",
"0.60287523",
"0.6016648",
"0.60096073",
"0.5977576",
"0.5970074",
"0.5943815",
"0.59228486",
"0.59228486",
"0.5894904",
"0.5894904",
"0.5892893",
"0.58884317",
"0.58884317",
"0.58884317",
"0.58884317",
"0.58884317",
"0.58884317",
"0.58884317",
"0.58884317",
"0.58884317",
"0.5871476",
"0.58683294",
"0.58683294",
"0.5820147",
"0.5781517",
"0.5753167",
"0.5744402",
"0.5689934",
"0.56847245",
"0.56595945",
"0.56595945",
"0.56595945",
"0.565555",
"0.56487423",
"0.5646573",
"0.5645367",
"0.56441355",
"0.56355524",
"0.5634244"
] | 0.67701817 | 15 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.nickname | public void setNickname(String nickname) {
this.nickname = nickname == null ? null : nickname.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNickname(String nickname) {\r\n this.nickname = nickname;\r\n }",
"public void setNickname(String nickname) {\n this.nickname = nickname;\n }",
"public void setNickname(String nickname) {\n this.nickname = nickname;\n }",
"public void setNickname(java.lang.String param) {\n localNicknameTracker = true;\n\n this.localNickname = param;\n }",
"public void setNickname(String nickname) {\n\t\tthis.nickname = nickname == null ? null : nickname.trim();\n\t}",
"public String getNickname() {\r\n return nickname;\r\n }",
"@Column(length = 50, nullable = false, unique = true)\n public String getNick() {\n return nick;\n }",
"@Override\n public void nick_name(String nick){\n ///Pregunta el nombres y el usuario le asigna\n nickName= nick;\n nombre=nickName;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getnick() {\n return nickname;\n }",
"@java.lang.Override\n public com.google.protobuf.StringValue getNickname() {\n return nickname_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : nickname_;\n }",
"public String getNickname() {\n return nickname;\n }",
"public Builder setNickname(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n nickname_ = value;\n onChanged();\n return this;\n }",
"public void changeNick(String newnick);",
"@Column(length = 100, nullable = false, unique = true)\n\tpublic String getNickName() {\n\t\treturn nickName;\n\t}",
"public void setUserNick(String userNick) {\r\n this.userNick = userNick;\r\n }",
"@Override\n\tpublic UserVo s_selectnickname(String id) throws SQLException {\n\t\treturn sqlSession.selectOne(\"yes.as_selectnickname\", id);\n\t}",
"@Override\n\tpublic UserVo c_selectnickname(String id) throws SQLException {\n\t\treturn sqlSession.selectOne(\"yes.ac_selectnickname\", id);\n\t}",
"java.lang.String getNickname();",
"public java.lang.String getNickname() {\n java.lang.Object ref = nickname_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nickname_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder setNickname(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n nickname_ = value;\n onChanged();\n return this;\n }",
"@java.lang.Override\n public java.lang.String getNickname() {\n java.lang.Object ref = nickname_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nickname_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getNicknameBytes() {\n java.lang.Object ref = nickname_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nickname_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getNicknameBytes() {\n java.lang.Object ref = nickname_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nickname_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getNickname() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_NICKNAME);\r\n }",
"public String getNickName() {\r\n return nickName;\r\n }",
"protected void setLocalNickname(final String nick) {\n this.nick = nick;\n }",
"public void setNickName(String nickName) {\r\n this.nickName = nickName == null ? null : nickName.trim();\r\n }",
"public void setNickName(String nickName) {\n this.nickName = nickName == null ? null : nickName.trim();\n }",
"public void setNickName(String nickName) {\n this.nickName = nickName == null ? null : nickName.trim();\n }",
"public void setNickName(String nickName) {\n this.nickName = nickName == null ? null : nickName.trim();\n }",
"public void setNickName(String nickName) {\n this.nickName = nickName == null ? null : nickName.trim();\n }",
"public void setNickName(String nickName) {\n this.nickName = nickName == null ? null : nickName.trim();\n }",
"public String getNickName()\r\n {\r\n\treturn nickName;\r\n }",
"public String getNickName()\r\n {\r\n\treturn nickName;\r\n }",
"public String getNick() {\r\n return nick;\r\n }",
"java.lang.String getNick();",
"java.lang.String getNick();",
"public String getNickname();",
"public void updateNickname(Account account, NicknameForm nicknameForm) {\n account.setNickname(nicknameForm.getNickname());\n accountRepository.save(account);\n login(account);\n }",
"public String getNickname() throws RemoteException{\n return this.nickname;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getNickName() {\n return nickName;\n }",
"public String getUserNick() {\r\n return userNick;\r\n }",
"public void setNick(String nick) {\n this.nick = nick;\n }",
"@ApiModelProperty(value = \"昵称\")\n\tpublic String getNickname() {\n\t\treturn nickname;\n\t}",
"public com.google.protobuf.ByteString getNickname() {\n return nickname_;\n }",
"public com.google.protobuf.StringValue getNickname() {\n if (nicknameBuilder_ == null) {\n return nickname_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : nickname_;\n } else {\n return nicknameBuilder_.getMessage();\n }\n }",
"public void setNickUsuario(String nickUsuario) {\r\n this.nickUsuario = nickUsuario;\r\n }",
"public String getUserNickname()\n {\n if (nickName == null)\n nickName =\n provider.getInfoRetreiver().getNickName(\n provider.getAccountID().getUserID());\n\n return nickName;\n }",
"public void setNick(String nick) {\r\n this.nick = nick == null ? null : nick.trim();\r\n }",
"public void setNickName(String nickName) {\n\t\tthis.nickName = nickName;\n\t}",
"public Builder setNickname(com.google.protobuf.StringValue value) {\n if (nicknameBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n nickname_ = value;\n onChanged();\n } else {\n nicknameBuilder_.setMessage(value);\n }\n\n return this;\n }",
"@Override\r\n\tpublic int updatenickName(Account account) {\n\t\tString nick = String.valueOf(accountMapper.findByNickname(account.getNickName()));\r\n\t\tif(nick.equals(\"null\")) {\r\n\t\t\taccountMapper.updatenickName(account);\r\n\t\t\treturn 1;\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"private static String fetchNickname(HashMap<String, Object> parameterMap) {\n\t\tString nickname = \"\";\n\t\tPsName psName = PsName.findByEmployeeIdAndNameTypeAndEffectiveDate((String)parameterMap.get(\"employeeId\"), \"PRF\", (Date)parameterMap.get(\"effectiveDate\"));\n\t\tif(psName != null && psName.getFirstName() != null) {\n\t\t\tnickname = psName.getFirstName().trim().toUpperCase().replaceAll(\"'\", \"''\");\n\t\t\tif(nickname.length() > 20) {\n\t\t\t\tnickname.substring(0, 20);\n\t\t\t}\n\t\t}\n\t\treturn nickname;\n\t}",
"public java.lang.String getNickname() {\n return localNickname;\n }",
"public com.google.protobuf.ByteString getNickname() {\n return nickname_;\n }",
"public Builder setNicknameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n nickname_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n loginAccount_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n loginAccount_ = value;\n onChanged();\n return this;\n }",
"public String getNickname() throws RemoteException {\n \n\treturn this.nickname;\n\t\t\t }",
"public Builder setNickname(\n com.google.protobuf.StringValue.Builder builderForValue) {\n if (nicknameBuilder_ == null) {\n nickname_ = builderForValue.build();\n onChanged();\n } else {\n nicknameBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public void whoisRealname(String nick, String realname);",
"public void setUsername(java.lang.String param) {\n localUsernameTracker = true;\n\n this.localUsername = param;\n }",
"public void setContactNick(String contactNick) {\n this.contactNick = contactNick;\n }",
"@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getNicknameOrBuilder() {\n return getNickname();\n }",
"com.google.protobuf.ByteString getNickname();",
"public com.google.protobuf.StringValueOrBuilder getNicknameOrBuilder() {\n if (nicknameBuilder_ != null) {\n return nicknameBuilder_.getMessageOrBuilder();\n } else {\n return nickname_ == null ?\n com.google.protobuf.StringValue.getDefaultInstance() : nickname_;\n }\n }",
"public String getNick() {\n\t\treturn nick;\n\t}",
"public String getNick() {\n\t\treturn nick;\n\t}",
"public void setNick(String nick) {\n\t\tthis.nick = nick;\n\t}",
"public String getNickName(){\n return nombreUsuario;\n }",
"@Override\r\n\tpublic void setOpponentName(String name) {\n\t\tmain.setOpponentUsername(name);\r\n\t}",
"void setUserName(String newName) {\r\n\t\t\tusername = newName;\r\n\t\t}",
"private void initNicknameEntry() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\t\n\t\tif (mGameSettings.contains(Constants.GAME_PREFERENCES_NICKNAME)) {\n\t\t\tstrNickname = mGameSettings.getString(Constants.GAME_PREFERENCES_NICKNAME, \"\");\n\t\t\tnicknameText.setText(strNickname);\n\t\t}\n\t}",
"public String getNickUsuario() {\r\n return nickUsuario;\r\n }",
"void setUsername(String username);",
"public String getNick() {\n return this.session.sessionPersona().getUserName();\n }",
"void setAccountName(String newName) {\n this.accountName = newName;\n }",
"public void onWho(String nick, String account) {\n users.put(nick, account);\n }",
"public String getNick()\n\t{\n\t\treturn _nick;\n\t}",
"void setName( String username, String name ) throws UserNotFoundException;",
"public IRCSocketManager setNick(String nick)\n\t{\n\t\tif (nick == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Nick cannot be null.\");\n\t\t}\n\t\tthis._nick = nick;\n\t\t// Before attempting a send operation, we have to make sure we're actually\n\t\t// connected to a server, and that the bot's connect() method has been called.\n\t\tif (!isConnected())\n\t\t{\n\t\t\t// Return back to the caller, we shouldn't try and set the nick on the server if\n\t\t\t// we're not connected to one.\n\t\t\treturn this;\n\t\t}\n\t\tsendRaw(\"NICK \" + _nick);\n\t\treturn this;\n\t}"
] | [
"0.65293443",
"0.6418248",
"0.6418248",
"0.6296592",
"0.62322915",
"0.61842597",
"0.6167067",
"0.61012715",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60952044",
"0.60596335",
"0.60587347",
"0.6058106",
"0.60258716",
"0.6021867",
"0.58621913",
"0.58523655",
"0.5849148",
"0.58329177",
"0.5828584",
"0.58186233",
"0.58116436",
"0.5803552",
"0.5778172",
"0.57496816",
"0.57413894",
"0.5717528",
"0.5697372",
"0.56731206",
"0.5655019",
"0.5655019",
"0.5655019",
"0.5655019",
"0.5655019",
"0.56517446",
"0.56517446",
"0.56495076",
"0.56480104",
"0.56480104",
"0.5627945",
"0.56278193",
"0.56275934",
"0.56214386",
"0.56214386",
"0.56214386",
"0.56214386",
"0.56214386",
"0.56214386",
"0.5575334",
"0.55688137",
"0.5550798",
"0.55470616",
"0.55390596",
"0.5532718",
"0.5524138",
"0.55213755",
"0.5520931",
"0.5520487",
"0.55163443",
"0.550686",
"0.54967433",
"0.5480193",
"0.54800975",
"0.54612947",
"0.54612947",
"0.5451457",
"0.5448034",
"0.54299986",
"0.54279464",
"0.5421628",
"0.54034317",
"0.53918797",
"0.5382708",
"0.53649485",
"0.53649485",
"0.5359358",
"0.534953",
"0.5336052",
"0.533421",
"0.5314304",
"0.53099257",
"0.5282975",
"0.5281167",
"0.5277158",
"0.52326334",
"0.52202904",
"0.52123284",
"0.5212318"
] | 0.6330319 | 7 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.head_img | public String getHeadImg() {
return headImg;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getHeadimg() {\n return headimg;\n }",
"public String getHeadimg() {\n return headimg;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public String getHeadImgurl() {\n return headImgurl;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"com.google.protobuf.ByteString getHeadpic();",
"com.google.protobuf.ByteString getHeadpic();",
"com.google.protobuf.ByteString getHeadpic();",
"com.google.protobuf.ByteString getHeadpic();",
"@Transactional(readOnly = true)\n\t@Override\n\tpublic String getImage() {\n\t\tUserProfile userProfile = userProfileRepository.getOne(UserProfileUtils.getUsername());\n\t\treturn userProfile.getImage();\n\t}",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"public String getAccountImage() {\n return accountImage;\n }",
"java.lang.String getProfileImage();",
"public String getHeadimgurl() {\n return headimgurl;\n }",
"public String getHeadimgurl() {\n return headimgurl;\n }",
"public String getUserProfileImg() {\n return userProfileImg;\n }",
"public String getHeadimgUrl() {\n return headimgUrl;\n }",
"public Cursor getLogoImagePath() {\n\n\t\ttry {\n\t\t\tString sql = \"SELECT LogoPath FROm Logos\";\n\n\t\t\tCursor mCur = mDb.rawQuery(sql, null);\n\t\t\treturn mCur;\n\n\t\t} catch (SQLException mSQLException) {\n\t\t\tLog.e(TAG, \"getTestData >>\" + mSQLException.toString());\n\t\t\tthrow mSQLException;\n\t\t}\n\t}",
"public String getLogoImage() {\n return logoImage;\n }",
"String getAvatar();",
"public void setHeadImg(String headImg) {\n this.headImg = headImg == null ? null : headImg.trim();\n }",
"public String getLoggedPlayerAvatar() {\r\n return ctrlDomain.getLoggedPlayerAvatar();\r\n }",
"public String getUserImg() {\r\n return userImg;\r\n }",
"int getAvatar();",
"public java.lang.String getImage() {\n\t\treturn _imageCompanyAg.getImage();\n\t}",
"String avatarImage();",
"@Override\r\n\tpublic NetMdDTO getlogo() throws ServiceException {\n\t\ttry {\r\n\t\t\treturn billDao.getlogo();\r\n\t\t} catch (PersistenceException e) {\r\n\t\t\tthrow new ServiceException(ErrorCodeEnum.DatabaseError,e);\t\t\r\n\t\t}\r\n\t}",
"@ApiModelProperty(value = \"头像\")\n\tpublic String getHeadPortrait() {\n\t\treturn headPortrait;\n\t}",
"public int getAvatar() {\n return avatar_;\n }",
"public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}",
"public String getAvatar()\n\t{\n\t\treturn this.avatar;\n\t}",
"public com.google.protobuf.ByteString getNewHeadpic() {\n return instance.getNewHeadpic();\n }",
"public String getLogo() {\r\n return logo;\r\n }",
"public String getLogo() {\r\n return logo;\r\n }",
"public String getLogo() {\r\n return logo;\r\n }",
"public String getLogo() {\n return this.logo;\n }",
"public String getStaticPicture();",
"public String getHeadicon() {\n return headicon;\n }",
"public void setHeadimg(String headimg) {\n this.headimg = headimg == null ? null : headimg.trim();\n }",
"public void setHeadimg(String headimg) {\n this.headimg = headimg == null ? null : headimg.trim();\n }",
"String avatarImageSelected();",
"public com.google.protobuf.ByteString getNewHeadpic() {\n return newHeadpic_;\n }",
"public java.lang.String getLogo () {\n\t\treturn logo;\n\t}",
"public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }",
"public int getAvatar() {\n return avatar_;\n }",
"public float getIMG(){\n return profile.getImg();\n }",
"byte[] getProfileImage();",
"public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }",
"public String getPictureUrl()\n\t{\n\t\treturn \"http://cdn-0.nflximg.com/us/headshots/\" + id + \".jpg\";\n\t}",
"public String getHospitalImage() {\n return hospitalImage;\n }",
"public HashMap<String, Object> DetailEtcImage(HashMap<String, Object> param) {\n\t\treturn sqlSession.selectOne(\"main.DetailEtcImage\",param);\r\n\t}",
"public String getAvatar() {\n return avatar;\n }",
"public String getAvatar() {\n return avatar;\n }",
"public String getAvatar() {\n return avatar;\n }",
"public String getAvatar() {\n return avatar;\n }",
"@ApiModelProperty(required = true, value = \"Sofort logo. Format: Base64-encoded string.\")\n @JsonProperty(JSON_PROPERTY_LOGO)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getLogo() {\n return logo;\n }",
"@Override\n public String getPicPhoto() {\n return pic_filekey;\n }",
"public String getImg() {\n return img;\n }",
"public String getImg() {\n return img;\n }",
"public String getImg() {\n return img;\n }",
"public String getImg_1() {\n return img_1;\n }",
"java.lang.String getImage();",
"public String getImgId() {\n return imgId;\n }",
"@Schema(example = \"6afaa3ef4056dc602ccfc69ab52d6f40\", description = \"hash of the image.\")\n public String getImageHash() {\n return imageHash;\n }",
"public String getPicture() {\r\n return picture;\r\n }",
"public String getConsultImg() {\n return consultImg;\n }",
"@DhtmlColumn(columnIndex = 4, headerName = \"图标\")\n\tpublic String getImagePath() {\n\t\treturn imagePath;\n\t}",
"public String getImage() {\n return this.Image;\n }",
"public String getImage() {\n\t\treturn null;\n\t}",
"public String getCurrentUserPicture() {\n\t\treturn currentUser.getPicture();\n\t}",
"String getItemImage();",
"public String getImage() { return image; }",
"public Long getImgId() {\r\n return imgId;\r\n }",
"java.lang.String getImagePath();",
"@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}",
"@Override\n\tpublic String getUserPicture() {\n\t\treturn super.getUserPicture();\n\t}",
"public Optional<String> avatar() {\n this.use();\n\n return Optional.ofNullable(avatar);\n }",
"public final String getLogoImageName() {\n\t\treturn logoImageName;\n\t}",
"public String getAvatar() {\n\t\treturn avatar;\n\t}",
"public String getAvatar() {\n return getString(AVKey.KEY_AVATAR);\n }",
"public String getImgOriginal() {\r\n return imgOriginal;\r\n }",
"public ImageIcon getAvatar() {\n\t\treturn avatar;\n\t}",
"public String getImage() {\n return image;\n }",
"public Image getOne();",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"public String getImage()\n {\n return image;\n }",
"public String getImg(){\n return img;\n }",
"public String getaImg() {\n return aImg;\n }",
"public void setHeadImgurl(String headImgurl) {\n this.headImgurl = headImgurl;\n }",
"com.google.protobuf.ByteString getNewHeadpic();",
"@Nullable private String getLogoFromUIInfo() {\n if (getRelyingPartyUIContext() == null) {\n return null;\n }\n return getRelyingPartyUIContext().getLogo(minWidth, minHeight, maxWidth, maxHeight);\n \n }",
"public ImageIcon getLogoIcon(){\n\t\t\n\t\treturn this.icon;\n\t\t\n\t}",
"public String getImageId() {\n return this.ImageId;\n }",
"@Nullable\n public String getOldAvatarId()\n {\n return getOldValue();\n }",
"@Nullable\n public PictureCollection getCustomLogo() {\n return mCustomLogo;\n }"
] | [
"0.67910826",
"0.67910826",
"0.61541873",
"0.61506975",
"0.61415344",
"0.61415344",
"0.61415344",
"0.6103304",
"0.6103304",
"0.6103304",
"0.609572",
"0.609572",
"0.609572",
"0.609572",
"0.60842025",
"0.60802853",
"0.60605973",
"0.6059582",
"0.6038832",
"0.6038832",
"0.5948404",
"0.59130496",
"0.5863413",
"0.5820545",
"0.581696",
"0.57956487",
"0.5732354",
"0.57153416",
"0.57141984",
"0.5680344",
"0.56523114",
"0.5647149",
"0.56441915",
"0.5600455",
"0.55875754",
"0.55778515",
"0.5570083",
"0.5552588",
"0.5552588",
"0.5552588",
"0.55475247",
"0.5545346",
"0.5535863",
"0.55123156",
"0.55123156",
"0.5506266",
"0.5505708",
"0.5503387",
"0.5501279",
"0.5491614",
"0.5491069",
"0.54703534",
"0.5466219",
"0.5457021",
"0.5432998",
"0.5402936",
"0.5402789",
"0.5402789",
"0.5402789",
"0.5402789",
"0.53748477",
"0.5366313",
"0.53657097",
"0.53657097",
"0.53657097",
"0.535784",
"0.5354563",
"0.53474134",
"0.53472376",
"0.53363514",
"0.5325635",
"0.5322755",
"0.5318801",
"0.5311337",
"0.53089136",
"0.53083193",
"0.53019565",
"0.5300288",
"0.52918386",
"0.5281834",
"0.5271866",
"0.52658564",
"0.5265444",
"0.52608824",
"0.52564126",
"0.52508956",
"0.5250485",
"0.52418494",
"0.5236008",
"0.52186275",
"0.5211856",
"0.5211355",
"0.52055067",
"0.5193778",
"0.518538",
"0.51835865",
"0.51667506",
"0.516577",
"0.51601183",
"0.51560116"
] | 0.692235 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.head_img | public void setHeadImg(String headImg) {
this.headImg = headImg == null ? null : headImg.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHeadimg(String headimg) {\n this.headimg = headimg == null ? null : headimg.trim();\n }",
"public void setHeadimg(String headimg) {\n this.headimg = headimg == null ? null : headimg.trim();\n }",
"public void setHeadImgurl(String headImgurl) {\n this.headImgurl = headImgurl;\n }",
"public void setHeadimgUrl(String headimgUrl) {\n this.headimgUrl = headimgUrl == null ? null : headimgUrl.trim();\n }",
"public String getHeadImg() {\n return headImg;\n }",
"private void setHeadpic(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n headpic_ = value;\n }",
"private void setHeadpic(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n headpic_ = value;\n }",
"private void setHeadpic(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n headpic_ = value;\n }",
"private void setHeadpic(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n headpic_ = value;\n }",
"public String getHeadimg() {\n return headimg;\n }",
"public String getHeadimg() {\n return headimg;\n }",
"public void setHeadimgurl(String headimgurl) {\n this.headimgurl = headimgurl == null ? null : headimgurl.trim();\n }",
"public void setProfileImg() {\n }",
"private void setLeadPlayerImage() {\n Player leadPlayer = game.getLeadingPlayer();\n if (leadPlayer == null) {\n // no lead so set images to default\n playerLeadImage.setImage(null);\n computerLeadImage.setImage(null);\n return;\n }\n if (leadPlayer.getName().equals(\"Computer\")) {\n computerLeadImage.setImage(new Image(\"Images/trophy.png\"));\n playerLeadImage.setImage(null);\n return;\n }\n playerLeadImage.setImage(new Image(\"Images/trophy.png\"));\n computerLeadImage.setImage(null);\n }",
"private void setNewHeadpic(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newHeadpic_ = value;\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\theadpic = shared.getString(\"headpic\", \"\");\n\t\tif(!headpic.equals(\"\")){\n\t\t\tputImg();\n\t\t}\n\t}",
"public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public String getHeadImgurl() {\n return headImgurl;\n }",
"@Override\n\tpublic void setLogo(int resId) {\n\t\t\n\t}",
"public String getHeadimgurl() {\n return headimgurl;\n }",
"public String getHeadimgurl() {\n return headimgurl;\n }",
"private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }",
"public String getHeadimgUrl() {\n return headimgUrl;\n }",
"public void setImageName(String name) {\n imageToInsert = name;\n}",
"@ApiModelProperty(value = \"头像\")\n\tpublic String getHeadPortrait() {\n\t\treturn headPortrait;\n\t}",
"public Builder setHeadpic(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setHeadpic(value);\n return this;\n }",
"public Builder setHeadpic(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setHeadpic(value);\n return this;\n }",
"public Builder setHeadpic(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setHeadpic(value);\n return this;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif(!TextUtils.isEmpty(pathImage)){\n\t\t\tBitmap addmp = BitmapFactory.decodeFile(pathImage);\n\t\t\thead.setImageBitmap(addmp);\n\t\t}\n\t}",
"public Builder setHeadpic(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setHeadpic(value);\n return this;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return headpic_;\n }",
"public void setImg(String img) {\n this.img = img;\n }",
"public void setHeadicon(String headicon) {\n this.headicon = headicon == null ? null : headicon.trim();\n }",
"protected void setPic() {\n }",
"public void changeHeadTexture(String aTextureName)\n {\n if(androidRobot3DObject.getChildByName(\"head\")!=null)\n {\n androidRobot3DObject.getChildByName(\"head\").textures().removeAll();\n androidRobot3DObject.getChildByName(\"head\").textures().addById(aTextureName);\n }\n }",
"public void setLogo(String logo) {\r\n this.logo = logo;\r\n }",
"private void clearHeadpic() {\n \n headpic_ = getDefaultInstance().getHeadpic();\n }",
"private static void setUpNavigationHeader() {\n View navigationHeader = navigationView.getHeaderView(0);\n TextView userName = navigationHeader.findViewById(R.id.lblUserName);\n TextView userEmail = navigationHeader.findViewById(R.id.lblUserEmail);\n CircularImageView circularImageView = navigationHeader.findViewById(R.id.imgUser);\n\n userName.setText(user.getUsername());\n userEmail.setText(user.getEmail());\n\n if (user.getUserProfileImage() == null) {\n circularImageView.setDrawable(resources.getDrawable(R.drawable.user_icon_sample));\n } else {\n Drawable imgUser = new BitmapDrawable(resources, user.getUserProfileImage());\n circularImageView.setDrawable(imgUser);\n }\n }",
"@Override\n public void setProfileImage(String s, String s1) {\n }",
"public String getLogoImage() {\n return logoImage;\n }",
"public void setImage(Image img) {\r\n this.img = img;\r\n }",
"private void clearHeadpic() {\n \n headpic_ = getDefaultInstance().getHeadpic();\n }",
"private void clearHeadpic() {\n \n headpic_ = getDefaultInstance().getHeadpic();\n }",
"private void clearHeadpic() {\n \n headpic_ = getDefaultInstance().getHeadpic();\n }",
"public void setImage(int imageId) {\n this.imageId=imageId;\n\t}",
"public Builder setNewHeadpic(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setNewHeadpic(value);\n return this;\n }",
"public String getAccountImage() {\n return accountImage;\n }",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"public com.google.protobuf.ByteString getNewHeadpic() {\n return newHeadpic_;\n }",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"private void setImageToHeadView(Uri uri) {\n handler.sendEmptyMessage(MSG_START_UPLOAD_IMAGE);\n user_head_photo_iv.setImageURI(uri);\n user_head_photo_select_lay.setVisibility(View.GONE);\n\n }",
"public void setTitleImg(String src, boolean left) {\r\n\t\tLog.debug(\"setTitleImg\");\r\n\t\ttitleImg = new Img();\r\n\t\ttitleImg.setSrc(src);\r\n\t\ttitleImg.setWidth(IMG_WIDTH);\r\n\t\ttitleImg.setHeight(IMG_HEIGHT);\r\n\t\tLayoutSpacer spacer = new LayoutSpacer();\r\n\t\tif (left) {\r\n\t\t\ttitleRow.addMember(spacer);\r\n\t\t} else {\r\n\t\t\tspacer.setWidth(7);\r\n\t\t\ttitleRow.addMember(spacer);\r\n\t\t}\r\n\t\ttitleRow.addMember(titleImg);\r\n\t}",
"public void setImage(String tmp) {\n this.image = tmp;\n }",
"protected void setImageUrl(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString imageUrl = rs.getString(UiActionTable.COLUMN_IMAGE_URL);\n\t\t\n\t\tif(imageUrl == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setImageUrl(imageUrl);\n\t}",
"void setImage(String image);",
"public void changeHeadState() {\n //tracking the head with the player\n if(moveUp && moveRight){\n playerHead.setxPos(this.getxPos()+14);\n playerHead.setyPos(this.getyPos()-34);\n }\n else if(moveUp && moveLeft){\n playerHead.setxPos(this.getxPos()+2);\n playerHead.setyPos(this.getyPos()-34);\n }\n else if(moveDown && moveRight){\n playerHead.setxPos(this.getxPos()+14);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveDown && moveLeft){\n playerHead.setxPos(this.getxPos()+2);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveDown || shootDown || (!moving && !shooting && this.getPicY() == 0)){\n playerHead.setxPos(this.getxPos()+2);\n playerHead.setyPos(this.getyPos()-28); \n }\n else if((moveUp || (shootUp && moveUp))|| (!moving && this.getPicY() == 211)){\n playerHead.setxPos(this.getxPos()+9);\n playerHead.setyPos(this.getyPos()-28); \n }\n else if((!moving && shootUp && this.getPicY() == 0) ){\n playerHead.setxPos(this.getxPos()+3);\n playerHead.setyPos(this.getyPos()-28); \n }\n else if(shootLeft && moveRight || shootLeft){\n playerHead.setxPos(this.getxPos()+10);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveLeft ||(!moving && !shooting && this.getPicY() == 141)){\n playerHead.setxPos(this.getxPos()+3);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveRight||(shootRight && !moving)||(shootRight && moveRight)||(!moving && !shooting && this.getPicY() == 74)){\n playerHead.setxPos(this.getxPos()+10);\n playerHead.setyPos(this.getyPos()-29);\n }\n else if(shootUp && !moving){\n playerHead.setxPos(this.getxPos()+10);\n playerHead.setyPos(this.getyPos()-29);\n }\n //left right and shooting up\n \n //head faces the direction of the player while moving\n if (moveDown && moveRight) {\n playerHead.setPicX(52);//right\n } else if (moveDown && moveLeft) {\n playerHead.setPicX(0);//left\n } else if (moveUp && moveRight) {\n playerHead.setPicX(52);//right\n } else if (moveUp && moveLeft) {\n playerHead.setPicX(0);//left\n } else if (moveDown) {\n playerHead.setPicX(102);//down\n } else if (moveUp) {\n playerHead.setPicX(158);//up\n } else if (moveRight) {\n playerHead.setPicX(52);//right\n } else if (moveLeft) {\n playerHead.setPicX(0);//left\n }\n\n //head faces the direction of shooting while moving or standing in place\n if (shootDown) {\n playerHead.setPicX(102);\n } else if (shootUp) {\n playerHead.setPicX(158);\n } else if (shootRight) {\n playerHead.setPicX(52);\n } else if (shootLeft) {\n playerHead.setPicX(0);\n }\n\n if (shootLeft && shootRight) {\n playerHead.setPicX(52);//right\n } else if (shootUp && shootDown) {\n playerHead.setPicX(102);//down\n } else if (shootDown && shootRight) {\n playerHead.setPicX(102);//down\n } else if (shootDown && shootLeft) {\n playerHead.setPicX(102);//down\n } else if (shootUp && shootRight) {\n playerHead.setPicX(158);//up\n } else if (shootUp && shootLeft) {\n playerHead.setPicX(158);//up\n }\n\n if (!moving && !shooting) {\n if (this.getPicY() == 0) {\n playerHead.setPicX(102);//down\n } else if (this.getPicY() == 211) {\n playerHead.setPicX(158);//up\n } else if (this.getPicY() == 74) {\n playerHead.setPicX(52);//right\n } else if (this.getPicY() == 141) {\n playerHead.setPicX(0);//left\n }\n }\n }",
"@Override\n\t\t\t\t\t\tpublic void OnLoadImage(Bitmap bitmap, String bitmapPath) {\n\t\t\t\t\t\t\tif (bitmap != null) {\n\t\t\t\t\t\t\t\timgMyresumeEditHead.setImageBitmap(bitmap);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (bitmap != null) {\n\t\t\t\t\t\t\t\t\tConstUtils.mCache.addBitmapToDiskCache(MyresumeEditActivity.this, headpic, bitmap);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"public void setLogoImage(String logoImage) {\n this.logoImage = logoImage == null ? null : logoImage.trim();\n }",
"public String getUserProfileImg() {\n return userProfileImg;\n }",
"public com.google.protobuf.ByteString getNewHeadpic() {\n return instance.getNewHeadpic();\n }",
"public void setImg_1(String img_1) {\n this.img_1 = img_1;\n }",
"@ApiModelProperty(required = true, value = \"Sofort logo. Format: Base64-encoded string.\")\n @JsonProperty(JSON_PROPERTY_LOGO)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getLogo() {\n return logo;\n }",
"private void setProfileImage() {\n if(mCurrentUser!= null && mCurrentUser.getProfileImageUrl() != null) {\n //Glide.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n // .placeholder(R.drawable.ic_photo)\n // .error(R.drawable.ic_camera)\n // .fitCenter()\n // .into(mIvComposeUserProfilePicture);\n\n Picasso.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n .transform(new RoundedCornersTransformation(2,2))\n .placeholder(R.drawable.ic_photo)\n .error(R.drawable.ic_camera)\n .into(mIvComposeUserProfilePicture);\n }\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"private void updateUserProfileImage(Bitmap bitmap) {\n user.setUserProfileImage(bitmap);\n setUpNavigationHeader();\n byte[] imageBytes = ImageManager.getImageBytes(bitmap);\n Thread writeUserImageThread = ThreadFactory.createWriteImageThread(ImageManager.USER_PROFILE_IMAGES_PATH,\n user.getUsername(), imageBytes);\n writeUserImageThread.start();\n }",
"@Override\r\n public void initializeUserImage() {\n userImageView = (ImageView)findViewById(R.id.user_profile_edit_imageView);\r\n userImageView.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n setImageSelection(\"USER\");\r\n }\r\n });\r\n if(userImageNewBitmap != null)\r\n {\r\n userImageView.setImageBitmap(userImageNewBitmap);\r\n return;\r\n }\r\n try\r\n {\r\n ImageCache.getInstance().setSessionUserImage(ImageCache.MSIZE, userImageView);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(LOG_TAG,\"initializeUserImage failed\",e);\r\n Toast.makeText(WRProfileEditActivity.this, \"Unable to retrieve your image\", Toast.LENGTH_SHORT).show();\r\n }\r\n }",
"public void setTheGreenfootImage(String value){\n theGreenfootImage = value;\n }",
"@Override\r\n\tpublic String insertDeal() {\n\t\trequest.put(\"lineName\", lineName);\r\n\t\trequest.put(\"lineLink\", lineLink);\r\n\t\trequest.put(\"headImg\",headImg);\r\n\t\tString vMSg=\"\";\r\n\t\tif(SysFun.isNullOrEmpty(lineName)) {\r\n\t\t\tvMSg+=\"头条名不能为空\";\r\n\t\t}\r\n\t\tif(SysFun.isNullOrEmpty(lineLink)) {\r\n\t\t\tvMSg+=\"头条链接不能为空\";\r\n\t\t}\r\n\t\tif(headImg==null) {\r\n\t\t\tvMSg+=\"头条图片不能为空\";\r\n\t\t}\r\n\t\tif(!SysFun.isNullOrEmpty(vMSg)) {\r\n\t\t\trequest.put(\"msg\", vMSg);\r\n\t\t\tSystem.out.println(vMSg);\r\n\t\t\treturn \"insert\";\r\n\t\t}\r\n\t\t//1、保存头像文件到服务器中\r\n String filePath = ServletActionContext.getServletContext().getRealPath(\"/upload/head/\");\r\n String fileName = UUID.randomUUID().toString().replaceAll(\"-\", \"\") + headImgFileName.substring(headImgFileName.lastIndexOf(\".\"));\r\n try {\r\n \t FileUtils.copyFile(headImg, new File(filePath, fileName));\r\n\t\t\t//System.out.println(\"filePath\"+filePath+\"\\\\\"+fileName);\r\n\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n //System.out.println(fileName+\"fileName\");\r\n String headPicPath = \"/upload/head/\"+fileName;\r\n //System.out.println(headPicPath+\"headPicPath\");\r\n\t\tHeadLine bean=new HeadLine();\r\n\t\tbean.setLineName(lineName);\r\n\t\tbean.setLineLink(lineLink);\r\n\t\tbean.setLineImg(headPicPath);\r\n\t\tLong result=0L;\r\n\t\ttry {\r\n\t\t\tresult=headLineService.insert(bean);\r\n\t\t\tSystem.out.println(result);\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tvMSg+=\"添加失败,原因:\"+e.getMessage();\r\n\t\t}\r\n\t\tif(result>0) {\r\n\t\t\treturn \"go_preload\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\trequest.put(\"msg\", vMSg);\r\n\t\t\treturn \"insert\";\r\n\t\t}\r\n\t}",
"public com.google.protobuf.ByteString getHeadpic() {\n return instance.getHeadpic();\n }",
"public static void editLogo(Long userId, Long logoId){\n\n if(logoId!=null){\n //editando logo desde pagina principal\n ER_User_Custom_Logo customLogo = ER_User_Custom_Logo.findById(logoId);\n if( customLogo != null ){\n renderArgs.put(\"customLogo\", customLogo);\n renderArgs.put(\"user\", customLogo.user);\n }\n }\n else{\n //creando logo\n ER_User_Custom_Logo customLogo = ER_User_Custom_Logo.find(\"user.id\", userId).first();\n if( customLogo != null ){\n renderArgs.put(\"customLogo\", customLogo);\n }\n ER_User user = ER_User.findById(userId);\n if(user!=null)\n renderArgs.put(\"user\", user);\n }\n\n render();\n }",
"public void setAccountImage(String accountImage) {\n this.accountImage = accountImage == null ? null : accountImage.trim();\n }",
"public void edit_or_remove_profile_image(Connection con, int user_id, Blob profile_image )\n\t{\n\n\t\tResultSet rs; \n\t\tPreparedStatement pst;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tpst=con.prepareStatement(\" update basic_profile set personal_profile_photo=? where eid=?\" );\n\t\t\tpst.setBlob(1, profile_image);\n\t\t\tpst.setInt(2, user_id);\n\t\t\t\n\t\t\t}catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t\n\t}",
"public void setBufferedBasicAvatar(Image bufferedBasicAvatar) {\n this.bufferedBasicAvatar = bufferedBasicAvatar;\n }",
"public void setStaticPicture(String path);",
"com.google.protobuf.ByteString getHeadpic();",
"com.google.protobuf.ByteString getHeadpic();",
"com.google.protobuf.ByteString getHeadpic();",
"com.google.protobuf.ByteString getHeadpic();",
"public void setLogo(String logo) {\r\n this.logo = logo == null ? null : logo.trim();\r\n }",
"public void setLogo(String logo) {\r\n this.logo = logo == null ? null : logo.trim();\r\n }",
"public final void setLogoImage(CommonsMultipartFile logoImage) {\n\t\tthis.logoImage = logoImage;\n\t}",
"private void setPhotoAttcher() {\n\n }",
"public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }",
"@Source(\"images/Default_user_icon.png\")\n @ImageOptions(flipRtl = true)\n ImageResource defaultUserAvatar();",
"protected void setAvatar(Avatar avatar)\r\n\t{\r\n\t\tGame.avatar = avatar;\r\n\t}",
"public void setMainAvatar(ImageView mainAvatar) {\n\t\tString path = \"tmpImg.png\";\n\n\t\ttry {\n\t\t\tImage img = new Image(new FileInputStream(path));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcustom = true;\n\t\tavatarIndex = 100;\n\t}",
"ChangeHeadpic.Req getChangeHeadpicReq();",
"public void setImg(String img) {\n this.img = img == null ? null : img.trim();\n }",
"public void setImg(String img) {\n this.img = img == null ? null : img.trim();\n }",
"public void setImage(String image){\n this.image = image;\n }",
"public String getHeadicon() {\n return headicon;\n }",
"public static void setImgFromResources(VpePageContext pageContext, nsIDOMElement img, String fileImageName, String undefinedImgName) {\r\n IEditorInput input = pageContext.getEditPart().getEditorInput();\r\n IPath inputPath = getInputParentPath(input);\r\n //Fix For JBIDE-3030\r\n if(pageContext.getVisualBuilder().getCurrentIncludeInfo()==null\r\n \t\t||!(pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage() instanceof IFile)) {\r\n \treturn;\r\n }\r\n String path = ElServiceUtil.replaceEl((IFile)pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage(), fileImageName);\r\n File file = new File(inputPath.toOSString() + File.separator + path);\r\n if (file.exists()) {\r\n img.setAttribute(HTML.ATTR_SRC, HtmlComponentUtil.FILE_PROTOCOL + inputPath.toString() + \"/\" //$NON-NLS-1$\r\n + path.replace('\\\\', '/'));\r\n } else {\r\n img.setAttribute(HTML.ATTR_SRC, undefinedImgName.replace('\\\\', '/'));\r\n }\r\n }",
"public void setImage(java.lang.String image) {\n\t\t_imageCompanyAg.setImage(image);\n\t}",
"public M csmiDriverImageNull(){if(this.get(\"csmiDriverImageNot\")==null)this.put(\"csmiDriverImageNot\", \"\");this.put(\"csmiDriverImage\", null);return this;}",
"void lSetImage(Image img);"
] | [
"0.6666237",
"0.6666237",
"0.6408173",
"0.6339655",
"0.6268878",
"0.6146716",
"0.6146716",
"0.6146716",
"0.61335975",
"0.61055535",
"0.61055535",
"0.6102182",
"0.5961949",
"0.5957909",
"0.593764",
"0.5768367",
"0.57649374",
"0.5706384",
"0.56192863",
"0.5602465",
"0.5602465",
"0.55642706",
"0.5538978",
"0.5499703",
"0.5444867",
"0.540938",
"0.540938",
"0.540938",
"0.53457093",
"0.5333692",
"0.5326684",
"0.5316334",
"0.5316334",
"0.5316334",
"0.5295301",
"0.5277631",
"0.52714175",
"0.525202",
"0.5238663",
"0.5211756",
"0.51978034",
"0.51976234",
"0.516451",
"0.5154872",
"0.5151268",
"0.5151268",
"0.5151268",
"0.5147086",
"0.51415634",
"0.51365113",
"0.51276296",
"0.5122089",
"0.5107552",
"0.5107488",
"0.51017493",
"0.50975126",
"0.50627786",
"0.5042775",
"0.5042553",
"0.5040943",
"0.50407577",
"0.50402874",
"0.5035327",
"0.5024969",
"0.5021747",
"0.5017786",
"0.5012503",
"0.5012503",
"0.5012503",
"0.50101274",
"0.49888793",
"0.49887353",
"0.49864775",
"0.49698862",
"0.49696153",
"0.4945625",
"0.49446097",
"0.49412084",
"0.49375287",
"0.49296364",
"0.49296364",
"0.49296364",
"0.49296364",
"0.4928705",
"0.4928705",
"0.49254426",
"0.4924109",
"0.491472",
"0.49113712",
"0.49107298",
"0.4903576",
"0.48853204",
"0.4884784",
"0.4884784",
"0.4882841",
"0.48771518",
"0.48751152",
"0.48593348",
"0.4854174",
"0.48533294"
] | 0.68917257 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.region | public String getRegion() {
return region;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getREGION()\n {\n \n return __REGION;\n }",
"public String getRegion() {\n return this.region;\n }",
"java.lang.String getRegionId();",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }",
"public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getRegion() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getRegion\");\r\n\t}",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"Integer getRegionId();",
"public String getRegion() {\n return region;\n }",
"public Long getRegionId() {\n return this.regionId;\n }",
"public String getRegion_id() {\n return region_id;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public int getRegionValue() {\n return region_;\n }",
"public String getRegionId() {\r\n return regionId;\r\n }",
"public int getRegionid() {\n return regionid;\n }",
"public long getRegionId() {\r\n return regionId;\r\n }",
"java.lang.String getRegionCode();",
"public int getRegionValue() {\n return region_;\n }",
"kr.pik.message.Profile.HowMe.Region getRegion();",
"public String getRegionid() {\n return regionid;\n }",
"public EnumRegion getRegion()\n {\n return region;\n }",
"public int getRegionid() {\n\treturn regionid;\n}",
"@AutoEscape\n public String getRegion();",
"private Location getRegion() {\n Set<? extends Location> locations = blobStore.listAssignableLocations();\n if (!(swiftRegion == null || \"\".equals(swiftRegion))) {\n for (Location location : locations) {\n if (location.getId().equals(swiftRegion)) {\n return location;\n }\n }\n }\n if (locations.size() != 0) {\n return get(locations, 0);\n } else {\n return null;\n }\n }",
"public String getRegionNo() {\n return regionNo;\n }",
"public int getC_Region_ID();",
"public String getRegionno() {\n return regionno;\n }",
"public String getRegionName() {\n return regionName;\n }",
"public String getRegionName() {\r\n return regionName;\r\n }",
"public java.lang.String getRegionId() {\n java.lang.Object ref = regionId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n regionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getRegionId() {\n java.lang.Object ref = regionId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n regionId_ = s;\n return s;\n }\n }",
"int getRegionValue();",
"public Region getRegion() {\n return region;\n }",
"public String getRegionFullName() {\n return regionFullName;\n }",
"IRegion getRegion();",
"public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}",
"public byte [] getRegionName() {\n return regionName;\n }",
"com.google.protobuf.ByteString getRegionCodeBytes();",
"String regionName();",
"String regionName();",
"String regionName();",
"String regionName();",
"public java.lang.String getRegionname() {\n\treturn regionname;\n}",
"public TypeOfRegion getRegion();",
"public BigDecimal getBENEF_REGION() {\r\n return BENEF_REGION;\r\n }",
"public com.google.protobuf.ByteString\n getRegionIdBytes() {\n java.lang.Object ref = regionId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n regionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getOperateRegion() {\r\n return operateRegion;\r\n }",
"public com.google.protobuf.ByteString\n getRegionIdBytes() {\n java.lang.Object ref = regionId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n regionId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getRegionIdBytes();",
"static String getRegion(Configuration conf, String defaultRegion)\n throws IOException {\n String region = conf.getTrimmed(S3GUARD_DDB_REGION_KEY);\n if (StringUtils.isEmpty(region)) {\n region = defaultRegion;\n }\n try {\n Regions.fromName(region);\n } catch (IllegalArgumentException | NullPointerException e) {\n throw new IOException(\"Invalid region specified: \" + region + \"; \" +\n \"Region can be configured with \" + S3GUARD_DDB_REGION_KEY + \": \" +\n validRegionsString());\n }\n return region;\n }",
"public NegotiableQuoteAddressRegion getRegion() {\n return (NegotiableQuoteAddressRegion) get(\"region\");\n }",
"public String getRegionCodeFk() {\r\n return (String) getAttributeInternal(REGIONCODEFK);\r\n }",
"public String getStaticRegionId() {\n return staticRegionId;\n }",
"public CoordinateRadius getRegion();",
"public java.util.Enumeration getRegion() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getRegion();\n }",
"public int getItuRegion() {\n return localItuRegion;\n }",
"@NotNull\n @Generated\n @Selector(\"region\")\n public native UIRegion region();",
"public int getRegionID(Region currentRegion,Player player){\n\t\t\t \n\t\t\t int curRegionID = currentRegion.getRegionID();\n\t\t\t \t\t\t \n\t\t\t\n\t\t\t if(player.rBYDownFlag){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tcurRegionID = currentRegion.getRegionID() + rCols;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tplayer.rBYDownFlag = player.rBYUpFlag = false;\n\t\t\t\t\tplayer.rBXLeftFlag = player.rBXRightFlag = false;\n\t\t\t\t}\n\t\t\t\n\t\t\t else if(player.rBYUpFlag){\n\t\t\t\t \t\n\t\t\t\t curRegionID = currentRegion.getRegionID() - rCols;\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tplayer.rBYDownFlag = player.rBYUpFlag = false;\n\t\t\t\t\tplayer.rBXLeftFlag = player.rBXRightFlag = false;\n\t\t\t }\n\t\t\t\t\n\t\t\t else if(player.rBXLeftFlag){\n\t\t\t\t \n\t\t\t\t curRegionID = currentRegion.getRegionID()-1;\t\t\t\t \n\t\t\t\t \n\t\t\t\t \t\t\t\t \n\t\t\t\t\tplayer.rBYDownFlag = player.rBYUpFlag = false;\n\t\t\t\t\tplayer.rBXLeftFlag = player.rBXRightFlag = false;\n\t\t\t }\n\t\t\t \n\t\t\t else if(player.rBXRightFlag){\t\t\t\t \n\t\t\t\t \n\t\t\t\t curRegionID = currentRegion.getRegionID()+1;\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t player.rBYDownFlag = player.rBYUpFlag = false;\n\t\t\t\t player.rBXLeftFlag = player.rBXRightFlag = false;\n\t\t\t }\n\t\t\t \n\t\t\t \t\t\t \t\t\t\n\t\t\t \n\t\t\t return curRegionID;\n\t}",
"public CustomerAddressQuery regionId() {\n startField(\"region_id\");\n\n return this;\n }",
"public List<String> regions() {\n return this.regions;\n }",
"@ApiModelProperty(value = \"State/region code of IP address\")\n public String getRegionCode() {\n return regionCode;\n }",
"public java.lang.String getPortRegionCode() {\n\t\treturn _tempNoTiceShipMessage.getPortRegionCode();\n\t}",
"@Schema(description = \"The country or region imposing the tax.\")\n public String getTaxingRegion() {\n return taxingRegion;\n }",
"public static java.lang.String getRegion(java.lang.String id) { throw new RuntimeException(\"Stub!\"); }",
"public List<Region> gets() {\r\n return rdao.getAllRegion();\r\n }",
"@ApiModelProperty(value = \"State/region of IP address\")\n public String getRegionName() {\n return regionName;\n }",
"public Regions getRegions () {\n return this.regions;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\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 java.util.List<String> getRegionNames() {\n if (regionNames == null) {\n regionNames = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return regionNames;\n }",
"public Region getCurrentRegion() {\n\n return currentRegion;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"private int getRegion(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getRegion(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.getRegion(java.lang.String):int\");\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public final SphRegion get_cur_region () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.cur_region while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn fetch_fcparams.aftershock_search_region;\n\t}",
"public TextureRegion getTextureRegion() {\n\t\treturn textureRegion;\n\t}",
"java.lang.String getAccount();",
"public static String GetRegionInformation(String Region) {\n\t\tString regionString = null;\n\t\tDocument doc;\n\t\tFile Xml = new File(\"Regions.xml\");\n try {\n if (!Xml.exists()) {\n\t\t\tSystem.out.println(\"- Extracting Region.xml...\");\n\n InputStream is = Tools.class.getClass().getResourceAsStream(\n \"/Regions.xml\");\n FileOutputStream out = new FileOutputStream(new File(\n \"Regions.xml\"));\n\n int read;\n byte[] bytes = new byte[1024];\n\n while ((read = is.read(bytes)) != -1) {\n out.write(bytes, 0, read);\n }\n }\n\n\n\t\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t\t\t\t.newInstance();\n\t\t\t\tDocumentBuilder dBuilder;\n\n\t\t\t\tdBuilder = dbFactory.newDocumentBuilder();\n\n\t\t\t\tdoc = dBuilder.parse(Xml);\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\tNodeList nList = doc.getElementsByTagName(Region);\n\n\t\t\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\t\t\t\t\tNode nNode = nList.item(temp);\n\t\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\t\tregionString = eElement.getElementsByTagName(\"Region\")\n\t\t\t\t\t\t\t\t.item(0).getTextContent();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t\tlogger.error(e.getClass() + \" \" + e.getMessage());\n\t\t\t\tregionString = null;\n\t\t\t}\n return regionString;\n\t\t}",
"@Query(\"from Region\")\n\tpublic List<Region> findAllRegiones();",
"public String getNomregion() {\n return (String) getAttributeInternal(NOMREGION);\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.utils.Matrix.MatrixUint64 getRegionLocationMatrix() {\n return regionLocationMatrix_ == null ? com.clarifai.grpc.api.utils.Matrix.MatrixUint64.getDefaultInstance() : regionLocationMatrix_;\n }",
"public SysRegionVo getSysRegionBytNo(String tNo);",
"public String getAccountCityName() {\n return accountCityName;\n }",
"public String getAccountTimeZoneId() {\r\n return accountTimeZoneId;\r\n }",
"GlAccount getGlAccount();"
] | [
"0.67645884",
"0.66239345",
"0.65569854",
"0.6552666",
"0.6552666",
"0.6523453",
"0.65143436",
"0.6485206",
"0.6472504",
"0.6472504",
"0.6472504",
"0.6470622",
"0.6459094",
"0.64241815",
"0.63834536",
"0.63687223",
"0.63687223",
"0.63687223",
"0.63544893",
"0.63516086",
"0.63272536",
"0.6323296",
"0.6308833",
"0.630308",
"0.6299627",
"0.62921464",
"0.6281961",
"0.62638897",
"0.6258141",
"0.6237113",
"0.61700547",
"0.6163617",
"0.6126472",
"0.6050431",
"0.60421133",
"0.60177314",
"0.5996428",
"0.5984803",
"0.598099",
"0.5963145",
"0.5951784",
"0.59515387",
"0.5888332",
"0.58529645",
"0.5836773",
"0.5836773",
"0.5836773",
"0.5836773",
"0.5816983",
"0.5792969",
"0.57834786",
"0.57216203",
"0.5689835",
"0.56865907",
"0.56391054",
"0.56298673",
"0.55891013",
"0.555301",
"0.55283123",
"0.55221987",
"0.5421839",
"0.54200965",
"0.5373854",
"0.53596294",
"0.5331468",
"0.532484",
"0.5307226",
"0.5298568",
"0.52454984",
"0.52270526",
"0.5226167",
"0.5211672",
"0.5207794",
"0.519145",
"0.51914364",
"0.51525635",
"0.51525635",
"0.51525635",
"0.5137891",
"0.51160955",
"0.510534",
"0.51051205",
"0.5104019",
"0.5104019",
"0.5104019",
"0.5099817",
"0.50625366",
"0.501993",
"0.5008449",
"0.50071585",
"0.4996866",
"0.4994177",
"0.4991635",
"0.49688244",
"0.49544308",
"0.49543485"
] | 0.64905864 | 11 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.region | public void setRegion(String region) {
this.region = region == null ? null : region.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRegion(String region);",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(EnumRegion region)\n {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setC_Region_ID (int C_Region_ID);",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(Region region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = 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 }",
"@Generated\n @Selector(\"setRegion:\")\n public native void setRegion(@NotNull UIRegion value);",
"public String getRegion_id() {\n return region_id;\n }",
"public int getRegionid() {\n return regionid;\n }",
"public int getRegionid() {\n\treturn regionid;\n}",
"public long getRegionId() {\r\n return regionId;\r\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }",
"public Long getRegionId() {\n return this.regionId;\n }",
"Integer getRegionId();",
"java.lang.String getRegionId();",
"public String getRegionid() {\n return regionid;\n }",
"public String getRegion() {\n return this.region;\n }",
"public String getRegionId() {\r\n return regionId;\r\n }",
"public void setRegion(final TypeOfRegion region);",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"public String getRegionId() {\n return regionId;\n }",
"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 }",
"public void setRegion(CoordinateRadius region);",
"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 java.lang.String getREGION()\n {\n \n return __REGION;\n }",
"public void setRegionid(int newValue) {\n\tthis.regionid = newValue;\n}",
"public Builder setRegionId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n regionId_ = value;\n onChanged();\n return this;\n }",
"public void setRegionId(long regionId) {\r\n this.regionId = regionId;\r\n }",
"public void setRegionid(int newRegionid) {\n regionid = newRegionid;\n }",
"public int getRegionValue() {\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 void setRegion_id(String region_id) {\n this.region_id = region_id;\n }",
"public Builder setRegionValue(int value) {\n region_ = value;\n onChanged();\n return this;\n }",
"public String getRegionNo() {\n return regionNo;\n }",
"public String getRegionno() {\n return regionno;\n }",
"public EnumRegion getRegion()\n {\n return region;\n }",
"@AutoEscape\n public String getRegion();",
"public int getRegionValue() {\n return region_;\n }",
"public int getC_Region_ID();",
"public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }",
"public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }",
"public Region getRegion() {\n return region;\n }",
"public void setRegionname(java.lang.String newRegionname) {\n\tregionname = newRegionname;\n}",
"public Builder setRegion(kr.pik.message.Profile.HowMe.Region value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n region_ = value.getNumber();\n onChanged();\n return this;\n }",
"public void setRegionId(String regionId) {\r\n this.regionId = regionId == null ? null : regionId.trim();\r\n }",
"public void setOperateRegion(String operateRegion) {\r\n this.operateRegion = operateRegion == null ? null : operateRegion.trim();\r\n }",
"public void setRegionNo(String regionNo) {\n this.regionNo = regionNo == null ? null : regionNo.trim();\n }",
"public String getRegionName() {\r\n return regionName;\r\n }",
"public void save() {\n RegionOwn.saveRegionOwner(this);\n }",
"java.lang.String getRegionCode();",
"public void setRegionId(String regionId) {\n this.regionId = regionId == null ? null : regionId.trim();\n }",
"public void setRegionId(String regionId) {\n this.regionId = regionId == null ? null : regionId.trim();\n }",
"public void setRegionId(String regionId) {\n this.regionId = regionId == null ? null : regionId.trim();\n }",
"public void setRegionManager(final RegionManagerBean injRegionManager) {\n regionManager = injRegionManager;\n }",
"public void setTexture(TextureRegion region) {\n \ttexture = region;\n \torigin = new Vector2(texture.getRegionWidth()/2.0f,texture.getRegionHeight()/2.0f);\n }",
"public Builder setRegion(String region) {\n try {\n _locbld.setRegion(region);\n } catch (InvalidLocaleIdentifierException e) {\n throw new IllegalArgumentException(e);\n }\n return this;\n }",
"public Builder withRegion(final String region) {\n this.region = region;\n return this;\n }",
"public void setBENEF_REGION(BigDecimal BENEF_REGION) {\r\n this.BENEF_REGION = BENEF_REGION;\r\n }",
"public String getRegionName() {\n return regionName;\n }",
"public static void setRegion(Long adminId, List<String> ec2RegionList) {\n\n Connection con = null;\n try {\n con = DBUtils.getConn();\n //delete region\n PreparedStatement stmt = con.prepareStatement(\"delete from ec2_region where admin_id=?\");\n stmt.setLong(1, adminId);\n stmt.execute();\n\n //insert new region\n for (String ec2Region : ec2RegionList) {\n stmt = con.prepareStatement(\"insert into ec2_region (admin_id, region) values (?,?)\");\n stmt.setLong(1, adminId);\n stmt.setString(2, ec2Region);\n stmt.execute();\n DBUtils.closeStmt(stmt);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n DBUtils.closeConn(con);\n\n\n }",
"public void setRegionid(String regionid) {\n this.regionid = regionid;\n }",
"public CustomerAddressQuery regionId() {\n startField(\"region_id\");\n\n return this;\n }",
"IRegion getRegion();",
"public Builder setRegion(String region) {\n/* 1601 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setRegionno(String regionno) {\n this.regionno = regionno == null ? null : regionno.trim();\n }",
"int getRegionValue();",
"public void testGetRegion() {\r\n\t\tregionBuilder = getRegionTestBuilder();\r\n\t\ttry {\r\n\t\t\tRegion region = regionMgr.getRegion(RegionTestBuilder.REGION_ID_INDIA);\r\n\t\t\tassertTrue(\"Unable to get country list\", region.getName()\r\n\t\t\t\t\t.equalsIgnoreCase(\"India\"));\r\n\t\t} catch (Exception ex) {\r\n\t\t\tassertTrue(\"An excpetion has occured\", false);\r\n\t\t}\r\n\t}",
"kr.pik.message.Profile.HowMe.Region getRegion();",
"public void setRegionName(String regionName) {\r\n this.regionName = regionName == null ? null : regionName.trim();\r\n }",
"public CloudinsRegionRecord() {\n super(CloudinsRegion.CLOUDINS_REGION);\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 }",
"public CustomerAddressQuery region(CustomerAddressRegionQueryDefinition queryDef) {\n startField(\"region\");\n\n _queryBuilder.append('{');\n queryDef.define(new CustomerAddressRegionQuery(_queryBuilder));\n _queryBuilder.append('}');\n\n return this;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getRegion() {\n\t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getRegion\");\r\n\t}",
"public void changeRegion(ValueChangeEvent valueChangeEvent) {\n WABEAN mybean = new WABEAN();\r\n mybean.AccessAttribute(\"Country\").setInputValue(null);// second level attribunte\r\n // makes also the third level attribute to null \r\n // mybean.AccessAttribute(\"City\").setInputValue(null);// thierd level no need to make it null\r\n }",
"@Override\n public String insert(Region region) {\n String result = \"\"; \n if (rdao.insertRegion(region)) {\n result = \"insert success\";\n }else {\n result = \"insert failed\";\n }\n return result;\n }",
"@Override\n\t@Transactional\n\t@Scheduled(cron = \"0 0 */4 * * *\")\n\tpublic void updateRegionsStatus() {\n\t\tregionRepository.updateRegionsStatus();\n\t}",
"public static void setParameterRegionInfoFromSession(ParameterData parameterData,HttpSession session) {\n\n\t\tint type=((Admin)session.getAttribute(SessionData.SessionKey.LOGIN_USER)).getLevel();\n\t\tif(type==0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tObject loginRegion = session.getAttribute(SessionData.SessionKey.LOGIN_REGION);\n\t\tif(loginRegion==null) {\n\t\t\treturn;\n\t\t}\n\t\tif(type==1) {\n\t\t\tparameterData.setProvinceId(((Province)loginRegion).getProvinceId());\n\t\t} else if(type==2) {\n\t\t\tparameterData.setCityId(((City)loginRegion).getCityId());\n\t\t} else if(type==3) {\n\t\t\tparameterData.setAreaId(((Area)loginRegion).getAreaId());\n\t\t} else if(type==4) {\n\t\t\tparameterData.setStreetId(((Street)loginRegion).getStreetId());\n\t\t} else if(type==5) {\n\t\t\tparameterData.setEnterpriseId(((Enterprise)loginRegion).getId());\n\t\t} \n\t}",
"public void setCurrentRegion(Region currentRegion) {\n\n this.currentRegion = currentRegion;\n }",
"@Method(selector = \"setRegion:animated:\")\n public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);",
"public void addRegion(com.hps.july.persistence.Region arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addRegion(arg0);\n }",
"public java.lang.String getRegionId() {\n java.lang.Object ref = regionId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n regionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] | [
"0.6255672",
"0.6189604",
"0.6164922",
"0.6158381",
"0.61212575",
"0.6107298",
"0.6107298",
"0.6107298",
"0.6095281",
"0.60322577",
"0.60322577",
"0.60322577",
"0.60123414",
"0.59591234",
"0.57902455",
"0.5727459",
"0.5685238",
"0.56769055",
"0.5636074",
"0.56250966",
"0.56250966",
"0.5608086",
"0.5598299",
"0.559786",
"0.5596433",
"0.5587053",
"0.5585704",
"0.5582718",
"0.5572147",
"0.5556771",
"0.5556771",
"0.5556771",
"0.5550287",
"0.5550287",
"0.5550287",
"0.5548836",
"0.5515978",
"0.5515978",
"0.5515978",
"0.5515978",
"0.5515978",
"0.5479431",
"0.5470869",
"0.54404974",
"0.5417639",
"0.53903824",
"0.53593737",
"0.53116274",
"0.53048617",
"0.5294576",
"0.528329",
"0.5281354",
"0.5278935",
"0.52773494",
"0.5252745",
"0.52493256",
"0.52030015",
"0.51587987",
"0.5152496",
"0.51385486",
"0.51255983",
"0.51217294",
"0.50772226",
"0.5056647",
"0.5036265",
"0.5030273",
"0.50208044",
"0.5016487",
"0.5014951",
"0.5014951",
"0.5014951",
"0.5008931",
"0.50060546",
"0.49958724",
"0.49907973",
"0.4988184",
"0.49860057",
"0.49795166",
"0.49638754",
"0.49506778",
"0.49411",
"0.4940516",
"0.49384665",
"0.49371648",
"0.4920358",
"0.48994192",
"0.48991212",
"0.48979133",
"0.48978284",
"0.48847923",
"0.4876933",
"0.48684645",
"0.48385572",
"0.48331976",
"0.48221952",
"0.48014775",
"0.48008963",
"0.4787056",
"0.4778133"
] | 0.5652086 | 19 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.status | public Byte getStatus() {
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getAccountStatus() {\n return accountStatus;\n }",
"public String AccountStatus() {\n\t\tString Online = \"//android.widget.TextView[@text='ONLINE']\";\n\t\tString ProfileStatus;\n\t\tboolean ObjectStatus = ObjectFoundorNot(Online);\n\t\tif(ObjectStatus == true) {\n\t\t\tProfileStatus = keypad.SelectAccountStatusOnline.getText();\n\t\t}\n\t\telse {\n\t\t\tProfileStatus = keypad.SelectAccountStatusOffline.getText();\n\t\t}\n\t\treturn ProfileStatus;\n\t}",
"public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }",
"UserStatus getStatus();",
"io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();",
"io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();",
"public Account status() {\n RestRequest request = new RestRequest();\n request.setResource(\"account/status\");\n\n return client.get(request, Account.class);\n }",
"com.google.ads.googleads.v13.enums.AccountLinkStatusEnum.AccountLinkStatus getStatus();",
"@Enumerated(EnumType.STRING)\n@Column(name = \"STATUS\", length = EntityWithId.COLUMNLENGTH)\n \n @NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.status}\")\n public gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return this.status;\n }",
"public Long getStatus() {\n return this.Status;\n }",
"public int getEntitystatus();",
"public String getUserStatus() {\n return userStatus;\n }",
"public EnumVar getStatus() {\n return status;\n }",
"public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public int getStatus(){\r\n\t\treturn this.status;\r\n\t}",
"public String getGameStatus() {\n return gameStatus;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public DBRowStatus getStatus()\n\t{\n\t\treturn _Status;\n\t}",
"public Integer getStatus() {\r\n return status;\r\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public StatusEnum getStatus()\n {\n return status;\n }",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"public ReturnStatus getStatus() {\n return (ReturnStatus) get(\"status\");\n }",
"public String getStatus()\n {\n\n return status;\n }",
"public int getStatus()\n {\n return status;\n }",
"public StatusEnum getStatus() {\n return status;\n }",
"public String getStatus(){\r\n\t\treturn status;\r\n\t}",
"public String status() {\n return statusEnum().toString();\n }",
"public GameStatus getStatus() {\n\t\treturn status;\n\t}",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public String status() {\n return this.status;\n }",
"public String status() {\n return this.status;\n }",
"public String getStatus() {\n return status.toString();\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public java.lang.String getUserStatus() {\n return userStatus;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }",
"public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }"
] | [
"0.712439",
"0.64851385",
"0.64342827",
"0.64187413",
"0.6291201",
"0.6291201",
"0.6241349",
"0.62219125",
"0.6182798",
"0.61516577",
"0.6087896",
"0.6084973",
"0.60704714",
"0.60684997",
"0.6063029",
"0.6060844",
"0.6060844",
"0.6060844",
"0.60572493",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6053176",
"0.6049484",
"0.6046118",
"0.60403085",
"0.60403085",
"0.60403085",
"0.60403085",
"0.60403085",
"0.60403085",
"0.60403085",
"0.60328144",
"0.60221255",
"0.60221255",
"0.6014312",
"0.6010827",
"0.60081965",
"0.6000468",
"0.599664",
"0.59827876",
"0.5978538",
"0.5967154",
"0.59629595",
"0.5957933",
"0.5957933",
"0.5957933",
"0.5957933",
"0.5957933",
"0.5957249",
"0.5957249",
"0.595393",
"0.59429145",
"0.59429145",
"0.59429145",
"0.59337145",
"0.5928831",
"0.5928831",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657",
"0.59275657"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.status | public void setStatus(Byte status) {
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccountStatus(Integer accountStatus) {\n this.accountStatus = accountStatus;\n }",
"public Integer getAccountStatus() {\n return accountStatus;\n }",
"public void setStatus(String un, String status){\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n // updating user database\n collRU.findOneAndUpdate(\n eq(\"username\", un),\n Updates.set(\"status\", status)\n );\n }",
"public void setLoginStatus(int val) {\n\t\tref.edit().putInt(COL_LOGIN_STATUS, val).commit();\n\t}",
"public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }",
"public void status(String status) {\n FirebaseDatabase.getInstance().getReference(\"chef_account_settings\").child(firebaseUser.getUid()).child(\"status\").setValue(status);\n// HashMap<String, Object> hashMap = new HashMap<>();\n// hashMap.put(\"status\", status);\n// reference.updateChildren(hashMap);\n }",
"public void buildAccountStatus() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS account_status (user_id\"\n + \" TEXT UNIQUE, status INT, FOREIGN KEY (user_id) REFERENCES users\"\n + \"(id)\" + \" ON DELETE CASCADE ON UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"void setStatus(final UserStatus status);",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void setEntitystatus(int entitystatus);",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public void changeLoginStatus(Integer userId, Integer loginStatus);",
"void updateUserActivateStatus(User user, int newStatus);",
"public void setStatus(org.nhind.config.EntityStatus status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }",
"private void updateAccountStatus() {\n\r\n }",
"public void setAdminMigrationStatus(Context context,String strStatus) throws Exception\r\n\t{\r\n\t\tString cmd = \"modify program eServiceSystemInformation.tcl property MigrationR212VariantConfiguration value \"+strStatus;\r\n\t\tMqlUtil.mqlCommand(context, mqlCommand, cmd);\r\n\t}",
"public void setStatus(String registerStatus){\n this.registerStatus=registerStatus;\n }",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"@Enumerated(EnumType.STRING)\n@Column(name = \"STATUS\", length = EntityWithId.COLUMNLENGTH)\n \n @NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.status}\")\n public gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus getStatus() {\n return status;\n }",
"void updateRoomStatus(String username, long roomId, int status);",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"void setHasAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus.Enum hasAuditingCompany);",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void updateAgentBODStatus(String profileId, int status);",
"public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }",
"void updateHouseStatus(String username, long houseId, int status);",
"public void setStatus(@NotNull Status status) {\n this.status = status;\n }",
"public void setStatus(String status) { this.status = status; }",
"@External\n\tpublic void set_game_status(String _status,Address _scoreAddress) {\n\t\tAddress sender = Context.getCaller();\n\t\tif ( !this.get_admin().contains(sender)) {\n\t\t\tContext.revert(\"Sender not an admin\");\n\t\t}\n\t\tif (!STATUS_TYPE.contains(_status)) {\n\t\t\tContext.revert(\"Invalid status\");\n\t\t}\n\t\tString statusScoreAddress = this.status_data.get(_scoreAddress);\n\t\tif(_status.equals(\"gameRejected\") && !statusScoreAddress.equals(\"gameReady\") ) {\n\t\t\tContext.revert(\"This game cannot be rejected from state \" +statusScoreAddress );\n\t\t}\n\t\tif(_status.equals(\"gameApproved\") && !(\n\t\t\t\tstatusScoreAddress.equals(\"gameReady\") || statusScoreAddress.equals(\"gameSuspended\")\n\t\t\t\t)) {\n\t\t\tContext.revert(\"This game cannot be approved from state \" +statusScoreAddress );\n\t\t}\n\t\tif(_status.equals(\"gameSuspended\") && !statusScoreAddress.equals(\"gameApproved\")) {\n\t\t\tContext.revert(\"Only approved games may be suspended.\");\n\t\t}\n\t\tif(_status.equals(\"gameDeleted\") && !statusScoreAddress.equals(\"gameSuspended\")) {\n\t\t\tContext.revert(\"Only suspended games may be deleted.\");\n\t\t}\n\t\t\n\t\tthis.status_data.set(_scoreAddress, statusScoreAddress); \t\n\t\t\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void updateStatus() {\n\n //loading the driver\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //database variables\n final String db = \"jdbc:mysql://mis-sql.uhcl.edu/dingorkarj2620\";\n Connection con = null;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n //connecting database\n con = DriverManager.getConnection(db, \"dingorkarj2620\", \"1289968\");\n st = con.createStatement();\n rs = st.executeQuery(\"select * from account where a_id = \" + super.id);\n\n //updating the status\n if (rs.next()) {\n //premium seller\n if (rs.getString(3).equalsIgnoreCase(\"premium\")) {\n //update the item status\n i.setI_status(\"Valid\");\n\n } else {\n //regular seller\n if (rs.getString(3).equalsIgnoreCase(\"regular\")) {\n //checking price lower or higher than 100\n if (i.getI_price() <= 100) {\n //update status valid\n i.setI_status(\"Valid\");\n } else {\n //update status pending\n i.setI_status(\"Invalid\");\n }\n }\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n con.close();\n st.close();\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"UserStatus getStatus();",
"public void setStatus(int status) {\n result.setStatus(status);\n latch.countDown();\n ResultCallback<? super TokenResult> cb = getCallback();\n TokenResult res = getResult();\n if (cb != null) {\n Log.d(TAG, \" Calling onResult for callback. result: \" + res);\n getCallback().onResult(res);\n }\n }",
"private void setGameStatus() {\n this.gameStatus = false;\n }",
"public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setUserStatus(int online, int id){\n\n try{\n\n String query = \"UPDATE PlayerF \"\n + \"SET Online = \" + online\n + \" WHERE Id = \"+ id;\n\n int result = stmt.executeUpdate(query);\n\n if(result > 0){\n\n System.out.println(\"@setUserStatus: possible success\");\n\n }\n else{\n System.out.println(\"@setUserStatus: Error result returned false\");\n }\n\n }catch (SQLException e){\n e.printStackTrace();\n }\n\n }",
"public void setActiveStatus(Boolean active){ this.status = active; }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status)\n {\n setValue(\"status\", status);\n }",
"protected void setStatus(DBRowStatus p_status)\n\t{\n\t\t_Status = p_status;\n\t}",
"public void setStatus(String status)\n\t{\n\t\tPresence statusPacket = new Presence(Presence.Type.available, status, 0, Presence.Mode.available);\n\t\tcurrentStatus = status;\n\t\tserverConnection.sendPacket(statusPacket);\n\t\tfireStatusChangeEvent(Login.username,statusPacket);\n\t}",
"void setStatus(STATUS status);",
"public void setStatus(Long Status) {\n this.Status = Status;\n }",
"public void setTestDBStatusResult(java.lang.String param) {\r\n localTestDBStatusResultTracker = param != null;\r\n\r\n this.localTestDBStatusResult = param;\r\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }"
] | [
"0.6422483",
"0.61156285",
"0.6108897",
"0.5940085",
"0.5884918",
"0.58713615",
"0.5827886",
"0.58271843",
"0.58232826",
"0.5796805",
"0.5786567",
"0.57693595",
"0.575172",
"0.5705672",
"0.57039",
"0.56614333",
"0.5655956",
"0.56476694",
"0.56282955",
"0.56282955",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.5603632",
"0.56026536",
"0.5594381",
"0.5588577",
"0.5575731",
"0.55711097",
"0.55688995",
"0.5567994",
"0.55557567",
"0.55525345",
"0.5549934",
"0.5549934",
"0.55482185",
"0.5541932",
"0.55418736",
"0.55418736",
"0.5540888",
"0.5533464",
"0.55334324",
"0.55317414",
"0.5514151",
"0.550713",
"0.5505205",
"0.5502149",
"0.5501791",
"0.5501791",
"0.5497875",
"0.5483088",
"0.5483088",
"0.546898",
"0.54640025",
"0.5460349",
"0.54579806",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.5457591",
"0.54553187",
"0.5451578",
"0.54495853",
"0.54495853",
"0.54495853",
"0.5442956",
"0.5438768",
"0.5423576",
"0.5422673",
"0.54201573",
"0.5415725",
"0.54129386",
"0.54116523",
"0.5403009"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.server_id | public Integer getServerId() {
return serverId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getServerId() {\n return serverId_;\n }",
"public int getServerId() {\n return serverId_;\n }",
"public com.flexnet.opsembedded.webservices.ExternalIdQueryType getServerUniqueId() {\n return serverUniqueId;\n }",
"public com.flexnet.opsembedded.webservices.SimpleQueryType getServerId() {\n return serverId;\n }",
"public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}",
"public int getCurrentServerId() {\n return currentServerId;\n }",
"public String getOriginalServerId() {\n return originalServerId;\n }",
"int getServerId();",
"public String vmmServerId() {\n return this.innerProperties() == null ? null : this.innerProperties().vmmServerId();\n }",
"String getServerId();",
"public void setServerId(Integer serverId) {\n this.serverId = serverId;\n }",
"public void setServerId(Integer serverId) {\n this.serverId = serverId;\n }",
"public int getPersistentServerId() {\n/* 303 */ if (this.persistentServerIdInitialized) {\n/* 304 */ return this.persistentServerId;\n/* */ }\n/* 306 */ throw this.wrapper.persistentServeridNotSet(CompletionStatus.COMPLETED_MAYBE);\n/* */ }",
"public String getServerID() {\n String[] sid = sessionid.split(\"/\");\n return sid[1];\n }",
"public String getSelectedServerId() {\n return details != null ? StringUtils.stripToNull(details.getArtifactoryName()) : null;\n }",
"java.lang.String getLobbyId();",
"ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity getServer();",
"public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }",
"public ServerIdentifiers getServerIdentifiers() {\n if (this.serverId == null) {\n try (CoreJBossASClient client = new CoreJBossASClient(getModelControllerClientFactory().createClient())) {\n Address rootResource = Address.root();\n boolean isDomainMode = client.getStringAttribute(\"launch-type\", rootResource)\n .equalsIgnoreCase(\"domain\");\n String hostName = (isDomainMode) ? client.getStringAttribute(\"host\", rootResource) : null;\n String serverName = client.getStringAttribute(\"name\", rootResource);\n Properties sysprops = client.getSystemProperties();\n String nodeName = sysprops.getProperty(\"jboss.node.name\");\n\n // this is a new attribute that only exists in Wildfly 10 and up. If we can't get it, just use null.\n String uuid;\n try {\n uuid = client.getStringAttribute(\"uuid\", rootResource);\n } catch (Exception ignore) {\n uuid = null;\n }\n\n this.serverId = new ServerIdentifiers(hostName, serverName, nodeName, uuid);\n } catch (Exception e) {\n log.warnCannotObtainServerIdentifiersForDMREndpoint(this.toString(), e.toString());\n }\n }\n\n return this.serverId;\n }",
"public String getCheckServerIdentityProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_CHECK_SERVER_IDENTITY);\n }",
"public StrColumn getRobotId() {\n return delegate.getColumn(\"robot_id\", DelegatingStrColumn::new);\n }",
"java.lang.String getLoginId();",
"public String getGameServerSessionId() {\n return this.GameServerSessionId;\n }",
"public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity getServer() {\n if (serverBuilder_ == null) {\n return server_ == null ? ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance() : server_;\n } else {\n return serverBuilder_.getMessage();\n }\n }",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"String getLoginId();",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"String getGameId();",
"public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity getServer() {\n return server_ == null ? ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance() : server_;\n }",
"Integer getRealmId();",
"public Builder setServerId(int value) {\n bitField0_ |= 0x00000001;\n serverId_ = value;\n onChanged();\n return this;\n }",
"public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentityOrBuilder getServerOrBuilder() {\n if (serverBuilder_ != null) {\n return serverBuilder_.getMessageOrBuilder();\n } else {\n return server_ == null ?\n ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance() : server_;\n }\n }",
"String getAccountID();",
"String getAccountID();",
"java.lang.String getPlayerId();",
"public String getServerTransId() {\n\t\treturn serverTransId;\n\t}",
"public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}",
"long getPlayerId();",
"public ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentityOrBuilder getServerOrBuilder() {\n return server_ == null ? ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance() : server_;\n }",
"public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }",
"public Integer getGameId() {\n return gameId;\n }",
"@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();",
"boolean hasServerId();",
"ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentityOrBuilder getServerOrBuilder();",
"Long getRemoteID() throws RemoteException;",
"Long getDbId();",
"java.lang.String getDatabaseId();",
"public StrColumn getBindingPartnerEntityId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"binding_partner_entity_id\", StrColumn::new) :\n getBinaryColumn(\"binding_partner_entity_id\"));\n }",
"public Integer getGameID() {\n\t\treturn game_id;\n\t}",
"public Integer getLoginId() {\n return loginId;\n }",
"public int getLobbyID() {\r\n return lobbyID;\r\n }",
"public int getPlayerId();",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"@Override public Collection<String> getServerIds() {\n return getTrackedBranches().getServerIds();\n }",
"public String getServerErrorCode() {\r\n String toReturn = recentServerErrorCode;\r\n\r\n return toReturn;\r\n }",
"java.lang.String getConnectionId();",
"java.lang.String getConnectionId();",
"java.lang.String getConnectionId();",
"public String getGameId() {\n return gameId;\n }",
"public String getGameId() {\n return gameId;\n }",
"public int getIdClient() {\r\n return idClient;\r\n }",
"int getPlayerId();",
"int getPlayerId();",
"public int getLoginId() {\n return loginId;\n }",
"public static long getRoomIdForUser(String nick) throws SQLException {\n UserEntity userInfo = getUserInfo(nick);\n List<Map <String, String>> result = db.get(SELECT_GET_GAME_ID_FOR_USER, userInfo.getId(), userInfo.getId());\n if (result.size() > 0) {\n return Long.valueOf(result.get(0).get(\"id\"));\n } else {\n return -1;\n }\n }",
"public Integer getSysId() {\n return sysId;\n }",
"@Column(length = 1024)\r\n @PlaceHolder(key = \"host\")\r\n public String getServerName() {\r\n return serverName;\r\n }",
"public String getIpServer()\n \t{\n \t\treturn ipServer;\n \t}",
"private int getRID() throws SQLException {\n\t\tResultSet result = getRidStatement.executeQuery();\n\t\tif (result.next()) {\n\t\t\tint out = result.getInt(1);\n\t\t\tresult.close();\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+out+\"\\n\");\n\t\t\t}\n\t\t\treturn out;\n\t\t} else {\n\t\t\tif (DEBUG) {\n\t\t\t\tSystem.out.println(\"getRID: \"+0+\"\\n\");\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t}",
"private static String generateServerId(String host, int port, String slot) {\n return slot + \"@\" + host + \":\" + port;\n }",
"public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }",
"public int getUser2_ID() {\n\t\tInteger ii = (Integer) get_Value(\"User2_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public java.lang.String getLobbyId() {\n java.lang.Object ref = lobbyId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lobbyId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public int getLoginId() {\n return loginId_;\n }",
"public static Object getIdentificationFor(OfflinePlayer player) {\n return getIdentificationFor(player, true);\n }",
"public static int getPlayerIntComponent(ServerPlayerEntity serverPlayerEntity) {\r\n // Get the given player int value and return it\r\n return SLEEP_TRIES.get(serverPlayerEntity).getValue();\r\n }",
"private PersonIdent getServerIdent(Map<Key, Collection<Event>> events) {\n Key lastKey = ((NavigableSet<Key>) events.keySet()).last();\n checkState(lastKey.type() == Type.FIXUP);\n return new PersonIdent(\n serverIdent.getName(),\n serverIdent.getEmailAddress(),\n Iterables.getOnlyElement(events.get(lastKey)).when(),\n serverIdent.getTimeZone());\n }",
"private void obtainId(String serverIp, int serverPort) {\n connectionInfo = new ConnectionInfo(serverIp, serverPort, 2);\n }",
"public java.lang.Long getDriverId() {\n return driverId;\n }",
"@Override\r\n\tpublic int getLastId() {\n\t\treturn adminDAO.getLastId();\r\n\t}",
"public String getServer() {\r\n return server;\r\n }",
"public int getAccountID() {\n return accountID;\n }",
"public ServerProfile getServerProfile(String repositoryId) {\r\n\t\t\r\n\t\tRepository repository = (Repository)repositories.get(repositoryId);\r\n\t\treturn repository.getServerProfile();\r\n\t}",
"@java.lang.Override\n public java.lang.String getLobbyId() {\n java.lang.Object ref = lobbyId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n lobbyId_ = s;\n return s;\n }\n }"
] | [
"0.69314075",
"0.6927066",
"0.6525693",
"0.6523788",
"0.64883107",
"0.63197494",
"0.6173159",
"0.6141149",
"0.6021904",
"0.5840932",
"0.5823853",
"0.5823853",
"0.58126783",
"0.5764549",
"0.5674079",
"0.5569308",
"0.5554333",
"0.54972976",
"0.54854494",
"0.54641914",
"0.5440032",
"0.54146916",
"0.53797615",
"0.53526175",
"0.5332203",
"0.5323861",
"0.53198606",
"0.53198606",
"0.53198606",
"0.5309387",
"0.5309387",
"0.5309387",
"0.5309387",
"0.5309387",
"0.5308602",
"0.5279273",
"0.5272904",
"0.527061",
"0.52695304",
"0.5232494",
"0.5232494",
"0.5231964",
"0.522595",
"0.5211006",
"0.5138138",
"0.51351655",
"0.51201755",
"0.51161206",
"0.5103259",
"0.5089612",
"0.5067973",
"0.5059571",
"0.50495297",
"0.50444466",
"0.50420916",
"0.5003038",
"0.4987626",
"0.4957384",
"0.49513832",
"0.49480578",
"0.49480578",
"0.49480578",
"0.49480578",
"0.49480578",
"0.49415612",
"0.49345842",
"0.49261832",
"0.49261832",
"0.49261832",
"0.49200127",
"0.49200127",
"0.4911037",
"0.49049875",
"0.49049875",
"0.48894516",
"0.4888804",
"0.4886204",
"0.48854062",
"0.48841846",
"0.488253",
"0.48668128",
"0.48660332",
"0.48545572",
"0.4847339",
"0.48467186",
"0.48467186",
"0.48467186",
"0.48467186",
"0.48467186",
"0.4845766",
"0.48424622",
"0.48409054",
"0.48265526",
"0.48199162",
"0.48157227",
"0.48143128",
"0.4813511",
"0.48131064",
"0.4807527"
] | 0.70999783 | 1 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.server_id | public void setServerId(Integer serverId) {
this.serverId = serverId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setServerId(int value) {\n bitField0_ |= 0x00000001;\n serverId_ = value;\n onChanged();\n return this;\n }",
"public int getServerId() {\n return serverId_;\n }",
"public int getServerId() {\n return serverId_;\n }",
"public Integer getServerId() {\n return serverId;\n }",
"public Integer getServerId() {\n return serverId;\n }",
"public void setServer(int server) {\n this.server = server;\n }",
"public void setServerId(com.flexnet.opsembedded.webservices.SimpleQueryType serverId) {\n this.serverId = serverId;\n }",
"public void setServerUniqueId(com.flexnet.opsembedded.webservices.ExternalIdQueryType serverUniqueId) {\n this.serverUniqueId = serverUniqueId;\n }",
"public com.flexnet.opsembedded.webservices.SimpleQueryType getServerId() {\n return serverId;\n }",
"public void setServer(Server server) {\n this.server = server;\n }",
"public void setServer(Server server) {\n\t\tthis.server = server;\n\t}",
"public void setServer(Server server) {\n\t\t\r\n\t}",
"public com.flexnet.opsembedded.webservices.ExternalIdQueryType getServerUniqueId() {\n return serverUniqueId;\n }",
"@Override\n\tpublic Server update(String tenantId, String serverId, Server server)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}",
"public int getCurrentServerId() {\n return currentServerId;\n }",
"public Builder clearServerId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n serverId_ = 0;\n onChanged();\n return this;\n }",
"public String getOriginalServerId() {\n return originalServerId;\n }",
"public String vmmServerId() {\n return this.innerProperties() == null ? null : this.innerProperties().vmmServerId();\n }",
"public static void setInstance(IdServer inInstance) {\n\t\tserver = inInstance;\n\t}",
"public Builder setServer(ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity value) {\n if (serverBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n server_ = value;\n onChanged();\n } else {\n serverBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public void setSERVER(String SERVER) {\n \t\tthis.SERVER = SERVER;\n \t}",
"public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}",
"public void setServer(IServer server) {\n\t\tthis.server = server;\n\t\tlogger.debug(\"Server is set\");\n\t}",
"@Update(\n \"UPDATE \" + ServeInfoSqlProvider.TABLE_NAME +\n \" SET owner_id = #{ownerId} \" +\n \" WHERE id = #{serveId}\"\n )\n int changeServeOwner(@Param(\"serveId\") Long serveId, @Param(\"ownerId\") Long ownerId);",
"public void setServerIds(java.lang.String[] serverIds) {\r\n this.serverIds = serverIds;\r\n }",
"public void setServer(Server server) {\n this.server = server;\n server.setScreen(this);\n }",
"public void setOriginalServerId(String originalServerId) {\n this.originalServerId = originalServerId;\n }",
"public void setIpServer(String ipServer)\n \t{\n \t\tthis.ipServer = ipServer;\n \t}",
"public void setGameServerSessionId(String GameServerSessionId) {\n this.GameServerSessionId = GameServerSessionId;\n }",
"public void setServerContext(ServerContext serverContext)\r\n {\r\n this.serverContext = serverContext;\r\n }",
"public void set(String serverId,T object)\r\n\t{\r\n\t\tinstances.put(serverId, object);\r\n\t}",
"public int getPersistentServerId() {\n/* 303 */ if (this.persistentServerIdInitialized) {\n/* 304 */ return this.persistentServerId;\n/* */ }\n/* 306 */ throw this.wrapper.persistentServeridNotSet(CompletionStatus.COMPLETED_MAYBE);\n/* */ }",
"public void setId(int driverDBId);",
"int getServerId();",
"public com.trg.fms.api.Trip.Builder setDriverId(java.lang.Long value) {\n validate(fields()[1], value);\n this.driverId = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setStunServer(String server);",
"public void setDriverId(java.lang.Long value) {\n this.driverId = value;\n }",
"void setPlayerId(int playerId);",
"public static void setPlayerIntComponent(ServerPlayerEntity serverPlayerEntity, int valueToStore) {\r\n // Set the int value for the given player\r\n SLEEP_TRIES.get(serverPlayerEntity).setValue(valueToStore);\r\n }",
"public void setServerConnection(ServerConnection toConnection)\n {\n m_oServerConnection = toConnection;\n }",
"public final void mT__131() throws RecognitionException {\r\n try {\r\n int _type = T__131;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:132:8: ( 'server=' )\r\n // InternalSpringConfigDsl.g:132:10: 'server='\r\n {\r\n match(\"server=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public void setServerStub(RMIServerInvokerInf server)\n {\n this.server = server;\n log.trace(this.server);\n }",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"void setLoginId(long loginId);",
"private void setNodeIdRemote(SxpConnection connection) {\n try {\n connection.setNodeIdRemote(NodeIdConv.createNodeId(connection.getDestination().getAddress()));\n } catch (UnknownNodeIdException e) {\n LOG.error(\"{} Unknown message relevant peer node ID\", connection, e);\n }\n }",
"public void setServerName(String serverName){\n this.serverName = serverName;\n }",
"@Override\n public MinecraftServerEntity call(MinecraftServerEntity server) {\n runtimeMinecraftServerDao.update(server);\n return server;\n }",
"public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }",
"public void setServerActivityState(ServerActivityStates serverState) {\n currentState = serverState;\n setChanged();\n notifyObservers(serverState);\n }",
"public void setServerVersion(Long serverVersion) {\n\t\tthis.serverVersion = serverVersion;\n\t}",
"public Builder setServerMs(long value) {\n \n serverMs_ = value;\n onChanged();\n return this;\n }",
"public String getSelectedServerId() {\n return details != null ? StringUtils.stripToNull(details.getArtifactoryName()) : null;\n }",
"@Override\n\tpublic void setLoginId(String arg0) {\n\t\t\n\t}",
"public native final void setServerType(String serverType)/*-{\n this.serverType = serverType;\n }-*/;",
"public void setServerport(Integer serverport) {\n this.serverport = serverport;\n }",
"public void setServer (\r\n String strServer) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public void setServerName(String serverName) {\r\n this.serverName = serverName;\r\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"@Column(length = 1024)\r\n @PlaceHolder(key = \"host\")\r\n public String getServerName() {\r\n return serverName;\r\n }",
"public void setServerName(final String serverName) {\n this.serverName = serverName;\n }",
"public void setServerName(String serverName) {\n this.serverName = serverName;\n }",
"public void setServerLink( ServerLink srvLnk ) {\r\n /*========================================================================*/ \r\n this.srvLnk = srvLnk;\r\n }",
"public void setServiceId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localServiceIdTracker = true;\r\n } else {\r\n localServiceIdTracker = false;\r\n \r\n }\r\n \r\n this.localServiceId=param;\r\n \r\n\r\n }",
"public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"public Builder setLoginId(int value) {\n \n loginId_ = value;\n onChanged();\n return this;\n }",
"private void obtainId(String serverIp, int serverPort) {\n connectionInfo = new ConnectionInfo(serverIp, serverPort, 2);\n }",
"String getServerId();",
"public void setServidor(Servidor servidor) {\n\t\tthis.servidor = servidor;\n\t}",
"public void setServerIp(String serverIp) {\n this.serverIp = serverIp;\n }",
"public void setServerIp(String serverIp) {\n this.serverIp = serverIp;\n }",
"private void setServerList() {\n ArrayList<ServerObjInfo> _serverList =\n ServerConfigurationUtils.getServerListFromFile(mContext, ExoConstants.EXO_SERVER_SETTING_FILE);\n ServerSettingHelper.getInstance().setServerInfoList(_serverList);\n\n int selectedServerIdx = Integer.parseInt(mSharedPreference.getString(ExoConstants.EXO_PRF_DOMAIN_INDEX, \"-1\"));\n mSetting.setDomainIndex(String.valueOf(selectedServerIdx));\n mSetting.setCurrentServer((selectedServerIdx == -1) ? null : _serverList.get(selectedServerIdx));\n }",
"public void setLoginId(int value) {\n this.loginId = value;\n }",
"public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }",
"public EPPTransId(String aServerTransId) {\n\t\tclientTransId = null;\n\t\tserverTransId = aServerTransId;\n\t}",
"public void setDriveClientId(String id) {this.databaseConfig.setProperty(\"driveClientId\", id);}",
"public void setServerAddress(String mDbServerAddress) {\n\t\tthis.mServerAddress = mDbServerAddress;\n\t}",
"boolean hasServerId();",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public Builder setPlayerId(long value) {\n \n playerId_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic void setServer(ServerWithTotal serverWithTotal) {\n\t\tthis.serverWithTotal = serverWithTotal;\r\n\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public Builder mergeServer(ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity value) {\n if (serverBuilder_ == null) {\n if (((bitField0_ & 0x00000002) == 0x00000002) &&\n server_ != null &&\n server_ != ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.getDefaultInstance()) {\n server_ =\n ch.epfl.dedis.proto.ServerIdentityProto.ServerIdentity.newBuilder(server_).mergeFrom(value).buildPartial();\n } else {\n server_ = value;\n }\n onChanged();\n } else {\n serverBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }",
"public void setTutRepositoryServerName(String tutRepositoryServerName)\n {\n this.tutRepositoryServerName = tutRepositoryServerName;\n }",
"public ServerInfo(Guild server){\n this.serverID = server.getIdLong();\n this.serverName = server.getName();\n ServerInfoCache.add(this);\n }",
"public void setIdCliente(int value) {\n this.idCliente = value;\n }",
"public void setServerName(String serverName) {\n this.serverName = serverName == null ? null : serverName.trim();\n }",
"public void setServerUrl(String serverUrl) \n {\n \tthis.serverUrl = serverUrl;\n }",
"java.lang.String getLobbyId();",
"private static String generateServerId(String host, int port, String slot) {\n return slot + \"@\" + host + \":\" + port;\n }",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"@Override public Collection<String> getServerIds() {\n return getTrackedBranches().getServerIds();\n }"
] | [
"0.64504933",
"0.6189192",
"0.6161957",
"0.612887",
"0.612887",
"0.5918684",
"0.5792197",
"0.56670535",
"0.5643896",
"0.5585406",
"0.5583117",
"0.5577724",
"0.55471766",
"0.5446408",
"0.54432166",
"0.54030466",
"0.53703934",
"0.5332497",
"0.5285684",
"0.5263901",
"0.52589244",
"0.52524024",
"0.52437854",
"0.52177364",
"0.51963204",
"0.51885754",
"0.5171003",
"0.5151828",
"0.5125658",
"0.50876725",
"0.5082016",
"0.5067184",
"0.5065673",
"0.49999833",
"0.49935627",
"0.49875602",
"0.49482033",
"0.49157017",
"0.49070936",
"0.48996857",
"0.48903686",
"0.48900434",
"0.48889035",
"0.48889035",
"0.48889035",
"0.4887676",
"0.48835957",
"0.48707667",
"0.48706993",
"0.48597026",
"0.48510832",
"0.48450893",
"0.48406446",
"0.48398945",
"0.48322135",
"0.481155",
"0.47925705",
"0.4771277",
"0.47633973",
"0.47632134",
"0.47505108",
"0.47299722",
"0.47297212",
"0.47190964",
"0.4717274",
"0.4711725",
"0.4711725",
"0.4711725",
"0.4711725",
"0.4711725",
"0.4707626",
"0.47070226",
"0.47049713",
"0.47041485",
"0.47041485",
"0.47021094",
"0.46961945",
"0.46951896",
"0.469064",
"0.4689153",
"0.4675802",
"0.46715862",
"0.46555692",
"0.46536908",
"0.46521857",
"0.46514165",
"0.4649663",
"0.4644155",
"0.46431684",
"0.46315378",
"0.46309155",
"0.462646",
"0.4625422",
"0.4623581",
"0.46220466",
"0.46171457",
"0.46135917",
"0.46135917",
"0.46041107"
] | 0.6769289 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.gmt_modified | public Date getGmtModified() {
return gmtModified;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getGmtModified() {\r\n return gmtModified;\r\n }",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModify() {\n return gmtModify;\n }",
"public java.sql.Timestamp getModified() {\n return modified;\n }",
"public java.sql.Timestamp getModified() {\n\treturn modified;\n}",
"public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}",
"public Date getModified() {\r\n\t\treturn modified;\r\n\t}",
"public String getDatemodified() {\n return datemodified;\n }",
"@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }",
"public String getDatemodified() {\n\t\treturn datemodified;\n\t}",
"public Date getModifiedTime() {\n return modifiedTime;\n }",
"public java.sql.Timestamp getModified() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"modified\")));\n }",
"public Calendar getModifiedTime() {\n return this.modifiedTime;\n }",
"public static long getAccountsLastModified() {\r\n return (accountsLastModified);\r\n }",
"public Date getDateModified();",
"@JsonProperty(\"Date Modified\")\n\tString getModified() {\n\t\treturn getDate(modified);\n\t}",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}",
"public Date getDateModifed(){return dateModified;}",
"XMLGregorianCalendar getModified();",
"public String getModifiedTime() {\n return modifiedTime;\n }",
"@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }",
"public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}",
"public Date getModifiedDate() {\n return this.modifiedDate;\n }",
"public Date getModifiedDate() {\n return this.modifiedDate;\n }",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _esfTournament.getModifiedDate();\n\t}",
"@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }",
"@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }",
"public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}",
"@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}",
"public Date getModifytime() {\n return modifytime;\n }",
"public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }",
"public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}",
"public Date getModifyTime() {\n return this.modifyTime;\n }",
"public Date getModifieddate() {\n return modifieddate;\n }",
"public Date getModifiedDate() {\n return modifiedDate;\n }",
"public Date getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public Date getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public String getModifytime() {\n return modifytime;\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }",
"public Date getModificationTime()\n {\n return modified;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\r\n return modifyTime;\r\n }",
"public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }",
"public String getModifyTime() {\n return modifyTime;\n }",
"public Date getModifiedDate();",
"public Date getModifiedDate();",
"public Date getModifiedDate();",
"public String getMapLastUpdateDt() {\n\t\treturn this.mapLastUpdateDt;\n\t}",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"public DateTime lastModifiedTime() {\n return this.lastModifiedTime;\n }",
"public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}",
"public void setGmtModified(Date gmtModified) {\r\n this.gmtModified = gmtModified;\r\n }",
"@Nullable\n public Date getModifiedTime() {\n return mModifiedTime == null ? null : new Date(mModifiedTime.getTime());\n }",
"public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}",
"public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}",
"public Date getModifyTime() {\n\t\treturn modifyTime;\n\t}",
"public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}",
"public final long getModifyDateTime() {\n \treturn m_modifyDate;\n }",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}",
"public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"public void setGmtModified(Date gmtModified) {\n this.gmtModified = gmtModified;\n }",
"long getLastUpdatedTime();",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGTShipPosition.getModifiedDate();\n\t}",
"public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}",
"public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}",
"public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}",
"public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}",
"public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}",
"public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }",
"public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }"
] | [
"0.68108654",
"0.6799751",
"0.6799751",
"0.6799751",
"0.67527235",
"0.6734276",
"0.664426",
"0.661967",
"0.65404326",
"0.65339226",
"0.64969254",
"0.6413548",
"0.640547",
"0.6403537",
"0.6364295",
"0.6348632",
"0.63406956",
"0.6327032",
"0.6295014",
"0.62777394",
"0.6264582",
"0.6260686",
"0.62337834",
"0.62325037",
"0.6228701",
"0.6228701",
"0.62266904",
"0.6225611",
"0.62092394",
"0.6202853",
"0.61745816",
"0.6162457",
"0.6161142",
"0.6155993",
"0.6150592",
"0.61431825",
"0.61425555",
"0.6142094",
"0.6142094",
"0.6141135",
"0.6130108",
"0.6113848",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61120355",
"0.61087215",
"0.610372",
"0.61017114",
"0.6100172",
"0.6100172",
"0.6100172",
"0.6094786",
"0.6089931",
"0.6088573",
"0.6088248",
"0.6085861",
"0.6083036",
"0.60679215",
"0.60679215",
"0.60679215",
"0.60649586",
"0.60648197",
"0.6060832",
"0.6053677",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6043663",
"0.6034229",
"0.6032985",
"0.6032954",
"0.6032954",
"0.6032954",
"0.6032954",
"0.6028384",
"0.6019538",
"0.60151625"
] | 0.6804133 | 10 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.gmt_modified | public void setGmtModified(Date gmtModified) {
this.gmtModified = gmtModified;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGmtModified(Date gmtModified) {\r\n this.gmtModified = gmtModified;\r\n }",
"public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}",
"public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}",
"public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}",
"public void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }",
"public void setGmtModify(Date gmtModify) {\n this.gmtModify = gmtModify;\n }",
"public Date getGmtModify() {\n return gmtModify;\n }",
"public Date getGmtModified() {\r\n return gmtModified;\r\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"public Date getGmtModified() {\n return gmtModified;\n }",
"void setLastUpdatedTime();",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}",
"public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}",
"public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }",
"public void setDateModified(Date dateModified);",
"public Date getDateModifed(){return dateModified;}",
"public void setGmtUpdate(Date gmtUpdate) {\n this.gmtUpdate = gmtUpdate;\n }",
"public static void setAccountsLastModified(long timestamp) {\r\n log.debug(\"Setting accountsLastModified to \" + timestamp);\r\n accountsLastModified = timestamp;\r\n }",
"public void setModifiedDate(Date modifiedDate);",
"public void setModifiedDate(Date modifiedDate);",
"public void setModifiedDate(Date modifiedDate);",
"public Date getModified() {\r\n\t\treturn modified;\r\n\t}",
"public void setModified(java.sql.Timestamp newValue) {\n\tthis.modified = newValue;\n}",
"public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }",
"public java.sql.Timestamp getModified() {\n return modified;\n }",
"XMLGregorianCalendar getModified();",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}",
"public void updateDateModified() {\n dateModified = DateTime.now();\n }",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _esfTournament.getModifiedDate();\n\t}",
"public void setModifiedTime(OffsetDateTime modifiedTime)\n\t{\n\t\t this.addKeyValue(\"Modified_Time\", modifiedTime);\n\n\t}",
"@NoProxy\n public void updateLastmod() {\n setLastmod(new LastModified(new DateTime(true)).getValue());\n }",
"@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}",
"public java.sql.Timestamp getModified() {\n\treturn modified;\n}",
"public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }",
"@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }",
"public void setModified( java.sql.Timestamp newValue ) {\n __setCache(\"modified\", newValue);\n }",
"public Date getModifiedTime() {\n return modifiedTime;\n }",
"@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}",
"public void setLastModified(Timestamp lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}",
"@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }",
"public void setModified(String tmp) {\n this.modified = DateUtils.parseTimestampString(tmp);\n }",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}",
"public Date getModifyTime() {\r\n return modifyTime;\r\n }",
"public Date getModifytime() {\n return modifytime;\n }",
"public Date getDateModified();",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate);",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate);",
"public Date getModifiedDate() {\n return this.modifiedDate;\n }",
"public Date getModifiedDate() {\n return this.modifiedDate;\n }",
"public Date getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public Date getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public Date getModifyTime() {\n return this.modifyTime;\n }",
"public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }",
"public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }",
"public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"public Date getModifyTime() {\n return modifyTime;\n }",
"@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }",
"public Calendar getModifiedTime() {\n return this.modifiedTime;\n }",
"public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }",
"public Date getModifiedDate() {\n return modifiedDate;\n }",
"public Date getModifieddate() {\n return modifieddate;\n }",
"public String getDatemodified() {\n return datemodified;\n }",
"@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _locMstLocation.getModifiedDate();\n\t}",
"@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }",
"public java.sql.Timestamp getModified() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"modified\")));\n }",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGtStatus.setModifiedDate(modifiedDate);\n\t}",
"public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}",
"public void setLastModified(java.util.Calendar param) {\n localLastModifiedTracker = param != null;\n\n this.localLastModified = param;\n }",
"public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }",
"public Date getDATE_MODIFIED() {\r\n return DATE_MODIFIED;\r\n }"
] | [
"0.6829859",
"0.66501105",
"0.66501105",
"0.66501105",
"0.64537114",
"0.6361954",
"0.62103325",
"0.6191557",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6159434",
"0.6127479",
"0.6083925",
"0.6083925",
"0.6083925",
"0.60482204",
"0.60447115",
"0.5953427",
"0.58742356",
"0.5851619",
"0.5823612",
"0.57939667",
"0.57939667",
"0.57939667",
"0.5746679",
"0.5735952",
"0.57287234",
"0.572574",
"0.5693381",
"0.5673252",
"0.566346",
"0.5650185",
"0.56253034",
"0.55960643",
"0.5588671",
"0.5579289",
"0.5573853",
"0.55650955",
"0.556397",
"0.5557468",
"0.5542637",
"0.5538369",
"0.55381954",
"0.5532016",
"0.5529096",
"0.5523653",
"0.55223197",
"0.5515347",
"0.5506809",
"0.5506809",
"0.5505839",
"0.5505839",
"0.55045646",
"0.55045646",
"0.5503709",
"0.54971194",
"0.54971194",
"0.549682",
"0.54959595",
"0.5492047",
"0.5492047",
"0.5492047",
"0.5492047",
"0.5492047",
"0.5492047",
"0.5492047",
"0.5492047",
"0.5492047",
"0.54866093",
"0.5483814",
"0.5469755",
"0.5467385",
"0.54544497",
"0.54492545",
"0.5444719",
"0.5440676",
"0.54383063",
"0.5431183",
"0.54303324",
"0.5429195",
"0.5426725",
"0.5426725"
] | 0.67923474 | 10 |
This method was generated by MyBatis Generator. This method returns the value of the database column game_robot_account.gmt_create | public Date getGmtCreate() {
return gmtCreate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\r\n return gmtCreate;\r\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Long getCreatetime() {\n return createtime;\n }",
"public Long getCreateDatetime() {\n return createDatetime;\n }",
"public Long getCreateDatetime() {\n return createDatetime;\n }",
"public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public Long getUserCreate() {\n return userCreate;\n }",
"@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }",
"public Date getTimeCreate() {\n return timeCreate;\n }",
"public java.sql.Timestamp getCreateTime () {\r\n\t\treturn createTime;\r\n\t}",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }",
"String getCreated_at();",
"public Date getGmtCreated() {\n return gmtCreated;\n }",
"public Date getCreateTimeDb() {\r\n\t\treturn createTimeDb;\r\n\t}",
"public OffsetDateTime createTime() {\n return this.createTime;\n }",
"public Long getCreateTime() {\n return createTime;\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Integer getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Integer getCreateTime() {\r\n return createTime;\r\n }",
"public long getCreateTime() {\n return this.createTime;\n }",
"public Timestamp getCreateTime() {\n return createTime;\n }",
"public Long getCreateTime() {\n\t\treturn createTime;\n\t}",
"public Date getCreateTime() {\n return this.createTime;\n }",
"public Date getCreateTime() {\n return this.createTime;\n }",
"public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }",
"public String getCreatetime() {\n return createtime;\n }",
"public String getCreatetime() {\n return createtime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }"
] | [
"0.6219368",
"0.58289075",
"0.58289075",
"0.58289075",
"0.58289075",
"0.57667136",
"0.5582457",
"0.5582457",
"0.5526948",
"0.5493609",
"0.5493609",
"0.5485509",
"0.5441014",
"0.5438359",
"0.5434998",
"0.5422291",
"0.54137474",
"0.54137474",
"0.54137474",
"0.5405373",
"0.54042727",
"0.54042727",
"0.54042727",
"0.54042727",
"0.54042727",
"0.54042727",
"0.54042727",
"0.54042727",
"0.540254",
"0.5401514",
"0.5392982",
"0.53772974",
"0.53615665",
"0.536119",
"0.53530496",
"0.53530496",
"0.53530496",
"0.5350967",
"0.53198874",
"0.5317379",
"0.5313771",
"0.5311753",
"0.53014016",
"0.530001",
"0.530001",
"0.52759695",
"0.5274966",
"0.5274966",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327",
"0.5267327"
] | 0.57858866 | 16 |
This method was generated by MyBatis Generator. This method sets the value of the database column game_robot_account.gmt_create | public void setGmtCreate(Date gmtCreate) {
this.gmtCreate = gmtCreate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }",
"public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}",
"public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}",
"public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}",
"public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}",
"public void setGmtCreated(Date gmtCreated) {\n this.gmtCreated = gmtCreated;\n }",
"public Long getGmtCreate() {\n return gmtCreate;\n }",
"public void setGmtLogin(Date gmtLogin) {\n this.gmtLogin = gmtLogin;\n }",
"public Date getGmtCreate() {\r\n return gmtCreate;\r\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n return gmtCreate;\n }",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}",
"@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}",
"public void setGmtUpdate(Date gmtUpdate) {\n this.gmtUpdate = gmtUpdate;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public Long getCreateDatetime() {\n return createDatetime;\n }",
"public Long getCreateDatetime() {\n return createDatetime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }",
"public Long getCreatetime() {\n return createtime;\n }",
"public String getTableGenerationDropCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_DROP_AND_CREATE_ACTION;\n }",
"public void setCreateTimeDb(Date createTimeDb) {\r\n\t\tthis.createTimeDb = createTimeDb;\r\n\t}",
"public String getTableGenerationCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_CREATE_ACTION;\n }",
"@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }",
"public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }",
"public Date getGmtCreated() {\n return gmtCreated;\n }",
"public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }",
"@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }",
"public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }",
"public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }",
"@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}",
"void setCreationDate(Date val)\n throws RemoteException;",
"@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}",
"public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }",
"public Date getCreateTimeDb() {\r\n\t\treturn createTimeDb;\r\n\t}",
"private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }",
"public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }",
"public Date getTimeCreate() {\n return timeCreate;\n }",
"private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Long createtime) {\n this.createtime = createtime;\n }"
] | [
"0.62434965",
"0.6190696",
"0.60437423",
"0.60437423",
"0.60437423",
"0.60437423",
"0.5525316",
"0.5494753",
"0.5311505",
"0.5258809",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5240686",
"0.5236473",
"0.5236473",
"0.5236473",
"0.5236473",
"0.52253914",
"0.49441043",
"0.49281907",
"0.49281907",
"0.48642758",
"0.48608246",
"0.48608246",
"0.48399532",
"0.48399532",
"0.48237783",
"0.48237783",
"0.48237783",
"0.48237783",
"0.48237783",
"0.48237783",
"0.48237783",
"0.48237783",
"0.48167172",
"0.48167172",
"0.48167172",
"0.47982714",
"0.47954136",
"0.4795171",
"0.47804278",
"0.47781426",
"0.47704783",
"0.47632766",
"0.47576433",
"0.47576433",
"0.474392",
"0.47322896",
"0.47276875",
"0.47276875",
"0.47276875",
"0.4724825",
"0.4724825",
"0.4724825",
"0.47210824",
"0.47209364",
"0.47209364",
"0.47137254",
"0.47091636",
"0.4708648",
"0.47019786",
"0.4699663",
"0.46965614",
"0.46931362",
"0.46868932",
"0.46818176",
"0.4676387",
"0.46743435",
"0.46743435",
"0.46743435",
"0.46743435",
"0.46743435",
"0.46743435",
"0.46743435",
"0.46743435",
"0.46730465"
] | 0.6221069 | 13 |
/ renamed from: a | public void mo23447a() {
this.f19967a = false;
this.f19968b = 0;
this.f19969c = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public boolean mo23449a(int i, int i2) {
if (this.f19967a) {
this.f19968b -= i2;
if (this.f19969c == 0 && i == 181) {
this.f19969c = this.f19968b;
} else {
this.f19967a = false;
return true;
}
} else if (i == 179) {
this.f19967a = true;
}
byte[] bArr = f19966e;
mo23448a(bArr, 0, bArr.length);
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo23448a(byte[] bArr, int i, int i2) {
if (this.f19967a) {
int i3 = i2 - i;
byte[] bArr2 = this.f19970d;
int length = bArr2.length;
int i4 = this.f19968b;
if (length < i4 + i3) {
this.f19970d = Arrays.copyOf(bArr2, (i4 + i3) * 2);
}
System.arraycopy(bArr, i, this.f19970d, this.f19968b, i3);
this.f19968b += i3;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo23434a() {
C9568u.m29525a(this.f19956g);
this.f19957h.mo23447a();
if (this.f19954e != null) {
this.f19958i.mo23468b();
}
this.f19959j = 0;
this.f19960k = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: b | public void mo23438b() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: a | public void mo23436a(C8914i iVar, C9033d dVar) {
dVar.mo23441a();
this.f19950a = dVar.mo23442b();
this.f19951b = iVar.mo23311a(dVar.mo23443c(), 2);
C9037j0 j0Var = this.f19954e;
if (j0Var != null) {
j0Var.mo23445a(iVar, dVar);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo23435a(long j, int i) {
this.f19961l = j;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public void mo23437a(C9572w wVar) {
int i;
C9572w wVar2 = wVar;
int c = wVar.mo24688c();
int d = wVar.mo24690d();
byte[] bArr = wVar2.f22333a;
this.f19959j += (long) wVar.mo24679a();
this.f19951b.mo23305a(wVar2, wVar.mo24679a());
while (true) {
int a = C9568u.m29522a(bArr, c, d, this.f19956g);
if (a == d) {
break;
}
int i2 = a + 3;
byte b = wVar2.f22333a[i2] & 255;
int i3 = a - c;
boolean z = false;
if (!this.f19952c) {
if (i3 > 0) {
this.f19957h.mo23448a(bArr, c, a);
}
if (this.f19957h.mo23449a(b, i3 < 0 ? -i3 : 0)) {
Pair a2 = m26780a(this.f19957h, this.f19950a);
this.f19951b.mo23304a((Format) a2.first);
this.f19953d = ((Long) a2.second).longValue();
this.f19952c = true;
}
}
if (this.f19954e != null) {
if (i3 > 0) {
this.f19958i.mo23465a(bArr, c, a);
i = 0;
} else {
i = -i3;
}
if (this.f19958i.mo23467a(i)) {
C9054v vVar = this.f19958i;
this.f19955f.mo24684a(this.f19958i.f20088d, C9568u.m29529c(vVar.f20088d, vVar.f20089e));
this.f19954e.mo23444a(this.f19963n, this.f19955f);
}
if (b == 178 && wVar2.f22333a[a + 2] == 1) {
this.f19958i.mo23469b(b);
}
}
if (b == 0 || b == 179) {
int i4 = d - a;
if (this.f19960k && this.f19965p && this.f19952c) {
this.f19951b.mo23303a(this.f19963n, this.f19964o ? 1 : 0, ((int) (this.f19959j - this.f19962m)) - i4, i4, null);
}
if (!this.f19960k || this.f19965p) {
this.f19962m = this.f19959j - ((long) i4);
long j = this.f19961l;
if (j == -9223372036854775807L) {
j = this.f19960k ? this.f19963n + this.f19953d : 0;
}
this.f19963n = j;
this.f19964o = false;
this.f19961l = -9223372036854775807L;
this.f19960k = true;
}
if (b == 0) {
z = true;
}
this.f19965p = z;
} else if (b == 184) {
this.f19964o = true;
}
c = i2;
}
if (!this.f19952c) {
this.f19957h.mo23448a(bArr, c, d);
}
if (this.f19954e != null) {
this.f19958i.mo23465a(bArr, c, d);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ JADX WARNING: Removed duplicated region for block: B:12:0x006b / renamed from: a / Code decompiled incorrectly, please refer to instructions dump. | private static android.util.Pair<com.google.android.exoplayer2.Format, java.lang.Long> m26780a(com.google.android.exoplayer2.p366s0.p374y.C9043p.C9044a r20, java.lang.String r21) {
/*
r0 = r20
byte[] r1 = r0.f19970d
int r2 = r0.f19968b
byte[] r1 = java.util.Arrays.copyOf(r1, r2)
r2 = 4
byte r3 = r1[r2]
r3 = r3 & 255(0xff, float:3.57E-43)
r4 = 5
byte r5 = r1[r4]
r5 = r5 & 255(0xff, float:3.57E-43)
r6 = 6
byte r6 = r1[r6]
r6 = r6 & 255(0xff, float:3.57E-43)
int r3 = r3 << r2
int r7 = r5 >> 4
r13 = r3 | r7
r3 = r5 & 15
int r3 = r3 << 8
r14 = r3 | r6
r3 = 7
byte r5 = r1[r3]
r5 = r5 & 240(0xf0, float:3.36E-43)
int r5 = r5 >> r2
r6 = 2
if (r5 == r6) goto L_0x0043
r6 = 3
if (r5 == r6) goto L_0x003d
if (r5 == r2) goto L_0x0037
r2 = 1065353216(0x3f800000, float:1.0)
r18 = 1065353216(0x3f800000, float:1.0)
goto L_0x004c
L_0x0037:
int r2 = r14 * 121
float r2 = (float) r2
int r5 = r13 * 100
goto L_0x0048
L_0x003d:
int r2 = r14 * 16
float r2 = (float) r2
int r5 = r13 * 9
goto L_0x0048
L_0x0043:
int r2 = r14 * 4
float r2 = (float) r2
int r5 = r13 * 3
L_0x0048:
float r5 = (float) r5
float r2 = r2 / r5
r18 = r2
L_0x004c:
r10 = 0
r11 = -1
r12 = -1
r15 = -1082130432(0xffffffffbf800000, float:-1.0)
java.util.List r16 = java.util.Collections.singletonList(r1)
r17 = -1
r19 = 0
java.lang.String r9 = "video/mpeg2"
r8 = r21
com.google.android.exoplayer2.Format r2 = com.google.android.exoplayer2.Format.m24871a(r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19)
r5 = 0
byte r3 = r1[r3]
r3 = r3 & 15
int r3 = r3 + -1
if (r3 < 0) goto L_0x0092
double[] r7 = f19949q
int r8 = r7.length
if (r3 >= r8) goto L_0x0092
r5 = r7[r3]
int r0 = r0.f19969c
int r0 = r0 + 9
byte r3 = r1[r0]
r3 = r3 & 96
int r3 = r3 >> r4
byte r0 = r1[r0]
r0 = r0 & 31
if (r3 == r0) goto L_0x008b
double r3 = (double) r3
r7 = 4607182418800017408(0x3ff0000000000000, double:1.0)
double r3 = r3 + r7
int r0 = r0 + 1
double r0 = (double) r0
double r3 = r3 / r0
double r5 = r5 * r3
L_0x008b:
r0 = 4696837146684686336(0x412e848000000000, double:1000000.0)
double r0 = r0 / r5
long r5 = (long) r0
L_0x0092:
java.lang.Long r0 = java.lang.Long.valueOf(r5)
android.util.Pair r0 = android.util.Pair.create(r2, r0)
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.exoplayer2.p366s0.p374y.C9043p.m26780a(com.google.android.exoplayer2.s0.y.p$a, java.lang.String):android.util.Pair");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }",
"public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }",
"void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }",
"public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void b()\r\n/* 67: */ {\r\n/* 68: 73 */ this.c.clear();\r\n/* 69: 74 */ this.e.clear();\r\n/* 70: */ }",
"private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }",
"private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }",
"static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }",
"public final void mo1285b() {\n }",
"static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }",
"private void m205c() {\r\n if (this.f161b != null && this.f161b.m543a()) {\r\n this.f161b.m545c();\r\n }\r\n this.f161b = null;\r\n }",
"private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }",
"public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}",
"public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }",
"public final void mo91715d() {\n }",
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }",
"void m1864a() {\r\n }",
"private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }",
"void m5768b() throws C0841b;",
"public void mo115190b() {\n }",
"private void m7134b() {\n C1636a aVar = this.f7134e;\n if (aVar != null) {\n aVar.mo14510b();\n }\n this.f7134e = null;\n }",
"protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }",
"public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }",
"public void mo23813b() {\n }",
"private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }",
"@Override\n public void a() {\n block25 : {\n block24 : {\n block22 : {\n var17_1 = a.a;\n var3_2 = this.c.i();\n var4_3 = var3_2.a().a();\n this.d = new w();\n this.e = new y.f.h.D(this.d);\n this.h = M.a(new Object[this.b.e()]);\n this.i = M.b(new Object[this.b.g()]);\n var5_4 = this.b.o();\n while (var5_4.f()) {\n var6_5 = var5_4.e();\n if (var17_1 == 0) {\n if (var6_5.c() <= this.l) {\n var7_6 = this.d.d();\n this.h.a(var6_5, var7_6);\n }\n var5_4.g();\n if (var17_1 == 0) continue;\n }\n break block22;\n }\n this.j = M.b(new Object[this.b.g()]);\n this.k = M.b(new Object[this.b.g()]);\n this.a(this.j, this.k);\n }\n var2_8 = this.b.o();\n block3 : do {\n v0 = var2_8.f();\n block4 : while (v0 != 0) {\n var5_4 = var2_8.e();\n if (var5_4.c() != 0) {\n var1_9 = var5_4.l();\n var6_5 = var1_9.a();\n var7_6 = (y.c.q)this.j.b(var6_5);\n var1_9.b();\n while (var1_9.f()) {\n var8_10 = var1_9.a();\n var9_11 = (y.c.q)this.j.b(var8_10);\n var10_12 = (y.c.q)this.k.b(var8_10);\n var11_13 = this.a((y.c.q)var7_6, (y.c.q)var9_11);\n v0 = var5_4.c();\n if (var17_1 != 0) continue block4;\n if (v0 > this.l) {\n this.h.a(var5_4, var11_13);\n }\n var7_6 = (y.c.q)this.j.b(var8_10);\n var12_14 /* !! */ = this.d.a((y.c.q)var9_11, (y.c.q)var10_12);\n this.i.a(var8_10, var12_14 /* !! */ );\n if (var8_10 == var6_5) break;\n var1_9.b();\n if (var17_1 == 0) continue;\n }\n }\n var2_8.g();\n if (var17_1 == 0) continue block3;\n }\n break block3;\n break;\n } while (true);\n var1_9 = this.b.p();\n while (var1_9.f()) {\n var5_4 = var1_9.a();\n v1 = this;\n if (var17_1 == 0) {\n block23 : {\n if (v1.c.n((y.c.d)var5_4)) {\n this.e.m((y.c.d)this.i.b(var5_4));\n if (var17_1 == 0) break block23;\n }\n this.e.e((y.c.d)this.i.b(var5_4));\n }\n var6_5 = this.c.h((y.c.d)var5_4);\n this.e.b((y.c.d)this.i.b(var5_4), (y.c.d)this.i.b(var6_5));\n var1_9.g();\n if (var17_1 == 0) continue;\n }\n break block24;\n }\n v1 = this;\n }\n var5_4 = v1.e.m();\n this.d.a(\"y.layout.orthogonal.general.NodeSplitter.NODE_FACES\", (y.c.c)var5_4);\n var6_5 = this.e.m();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", (y.c.c)var6_5);\n this.m = this.e.g().t();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", new c((r)var6_5, this.m));\n try {\n this.e.l();\n var7_6 = (y.c.d)this.i.b(var4_3);\n this.e.b(this.e.i((y.c.d)var7_6));\n var8_10 = this.e.h();\n while (var8_10.f()) {\n var5_4.a(var8_10.a(), false);\n var8_10.g();\n if (var17_1 == 0) {\n if (var17_1 == 0) continue;\n }\n break block25;\n }\n var8_10 = this.b.o();\n while (var8_10.f()) {\n var9_11 = var8_10.e();\n if (var17_1 != 0) break;\n if (var9_11.c() <= this.l) ** GOTO lbl-1000\n var10_12 = (y.c.d)this.h.b(var9_11);\n var11_13 = this.e.i((y.c.d)var10_12);\n this.h.a(var9_11, var11_13);\n var5_4.a((p)var11_13, true);\n var12_14 /* !! */ = (y.c.d)this.b.p((y.c.q)var9_11);\n var14_15 = this.b.q((y.c.q)var9_11);\n var16_16 = new Dimension((int)var12_14 /* !! */ , (int)var14_15);\n var6_5.a((p)var11_13, var16_16);\n if (var17_1 != 0) lbl-1000: // 2 sources:\n {\n var10_12 = this.b.r((y.c.q)var9_11);\n if (var10_12.a > 0.0 || var10_12.b > 0.0) {\n var11_13 = (y.c.q)this.h.b(var9_11);\n this.m.a(var11_13, this.b.r((y.c.q)var9_11));\n }\n }\n var8_10.g();\n if (var17_1 == 0) continue;\n break;\n }\n }\n catch (Exception var7_7) {\n System.err.println(\"Internal Error in Face calculation !\");\n var7_7.printStackTrace(System.err);\n }\n }\n var7_6 = this.e.h();\n block9 : do {\n if (var7_6.f() == false) return;\n var8_10 = (p)var7_6.d();\n if (var5_4.d(var8_10)) {\n var9_11 = var8_10.a();\n while (var9_11.f()) {\n var10_12 = var9_11.a();\n this.e.m(this.e.h((y.c.d)var10_12));\n this.e.e((y.c.d)var10_12);\n var9_11.g();\n if (var17_1 != 0) continue block9;\n if (var17_1 == 0) continue;\n }\n }\n var7_6.g();\n } while (var17_1 == 0);\n }",
"private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }",
"@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }",
"protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"public final void mo51373a() {\n }",
"private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }",
"public void a(IBlockAccess paramard, BlockPosition paramdt)\r\n/* 119: */ {\r\n/* 120:148 */ bdv localbdv = e(paramard, paramdt);\r\n/* 121:149 */ if (localbdv != null)\r\n/* 122: */ {\r\n/* 123:150 */ Block localbec = localbdv.b();\r\n/* 124:151 */ BlockType localatr = localbec.getType();\r\n/* 125:152 */ if ((localatr == this) || (localatr.getMaterial() == Material.air)) {\r\n/* 126:153 */ return;\r\n/* 127: */ }\r\n/* 128:156 */ float f = localbdv.a(0.0F);\r\n/* 129:157 */ if (localbdv.d()) {\r\n/* 130:158 */ f = 1.0F - f;\r\n/* 131: */ }\r\n/* 132:160 */ localatr.a(paramard, paramdt);\r\n/* 133:161 */ if ((localatr == BlockList.J) || (localatr == BlockList.F)) {\r\n/* 134:162 */ f = 0.0F;\r\n/* 135: */ }\r\n/* 136:164 */ EnumDirection localej = localbdv.e();\r\n/* 137:165 */ this.B = (localatr.z() - localej.g() * f);\r\n/* 138:166 */ this.C = (localatr.B() - localej.h() * f);\r\n/* 139:167 */ this.D = (localatr.D() - localej.i() * f);\r\n/* 140:168 */ this.E = (localatr.A() - localej.g() * f);\r\n/* 141:169 */ this.F = (localatr.C() - localej.h() * f);\r\n/* 142:170 */ this.G = (localatr.E() - localej.i() * f);\r\n/* 143: */ }\r\n/* 144: */ }",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }",
"private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }",
"void m63701b() {\n for (C17455a a : this.f53839c) {\n a.m63704a();\n }\n }",
"private static void removeBreakPoint() {\n for (int i=1;i<=dvm.getSourceCodeLength();i++) {\n dvm.setBreakPoint(i-1, false);\n }\n }",
"public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }",
"private final void m11968d() {\n synchronized (this.f10173g) {\n for (zzsk a : this.f10174h) {\n a.m11971a();\n }\n }\n }",
"public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }",
"private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }",
"static void m7753b() {\n f8029a = false;\n }",
"private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }",
"void m5770d() throws C0841b;",
"public final /* synthetic */ void mo84740b() {\n m106723d();\n C42961az.m136380a(new C33045d(false));\n }",
"public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }",
"protected int b(i var1_1, y.c.q var2_2, y.c.q var3_3, h var4_4, h var5_5, int var6_6, ArrayList var7_7, ArrayList var8_8, h var9_9, h var10_10) {\n block26 : {\n block25 : {\n var24_11 = o.p;\n this.c = var6_6;\n this.d = var2_2;\n this.e = var3_3;\n this.n = var1_1.h();\n this.o = var1_1.f();\n this.h = var1_1;\n this.i = new int[this.n];\n this.j = new int[this.n];\n this.k = new int[this.o];\n this.l = new int[this.o];\n this.m = new int[this.n];\n this.b = new Object[this.o];\n this.t = new int[this.n];\n this.r = new d[this.n];\n this.s = new d[this.n];\n this.f = var4_4;\n this.a = new a[this.n];\n this.q = new ArrayList<E>(var1_1.f());\n this.p = new I(this.o);\n var11_12 = 0;\n block0 : do {\n v0 = var11_12;\n block1 : while (v0 < var7_7.size()) {\n var12_15 = (a)var7_7.get(var11_12);\n v1 /* !! */ = var12_15.b();\n if (var24_11) break block25;\n var13_17 = v1 /* !! */ ;\n while (var13_17.f()) {\n var14_20 = var13_17.a();\n var15_23 = var14_20.b();\n this.a[var14_20.b()] = var12_15;\n this.i[var15_23] = var12_15.a();\n v0 = this.i[var15_23];\n if (var24_11) continue block1;\n if (v0 < 0) {\n throw new B(\"found negative capacity\");\n }\n var13_17.g();\n if (!var24_11) continue;\n }\n ++var11_12;\n if (!var24_11) continue block0;\n }\n break block0;\n break;\n } while (true);\n v1 /* !! */ = var11_13 = this.h.p();\n }\n while (var11_13.f()) {\n var12_15 = var11_13.a();\n this.r[var12_15.b()] = (d)var10_10.b(var12_15);\n this.s[var12_15.b()] = (d)var9_9.b(var12_15);\n var11_13.g();\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block26;\n }\n this.g = new u[this.o];\n }\n var11_13 = var1_1.o();\n while (var11_13.f()) {\n var12_15 = var11_13.e();\n v2 = this;\n if (!var24_11) {\n v2.g[var12_15.d()] = new u((y.c.q)var12_15, var12_15.d());\n var11_13.g();\n if (!var24_11) continue;\n }\n ** GOTO lbl65\n }\n block5 : do {\n v2 = this;\nlbl65: // 2 sources:\n var11_14 = var13_18 = v2.a();\n var12_16 = 0;\n var14_21 = 0;\n block6 : do {\n v3 = var14_21;\n v4 = var8_8.size();\n block7 : while (v3 < v4) {\n v5 = var8_8.get(var14_21);\n do {\n var15_24 = (ArrayList)v5;\n var16_26 = false;\n var17_27 = 0;\n var18_28 = 0;\n v6 = 0;\n if (!var24_11) {\n for (var19_29 = v1574606; var19_29 < var15_24.size(); ++var19_29) {\n block28 : {\n block27 : {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n ++var12_16;\n var21_31 = this.s[var20_30.b[0].b()];\n var22_32 = 0;\n while (this.m[var21_31.b()] == 1) {\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block27;\n }\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n var23_33 = 0;\n var21_31 = this.s[var20_30.b[1].b()];\n while (this.m[var21_31.b()] == 1) {\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block28;\n }\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n if (var23_33 > 400 || var22_32 > 400) {\n block29 : {\n if (var23_33 < var22_32) {\n this.a(var20_30);\n if (!var24_11) break block29;\n }\n this.b(var20_30);\n }\n var16_26 = true;\n }\n var18_28 += var23_33;\n var17_27 += var22_32;\n if (!var24_11) continue;\n }\n if (!var16_26) {\n for (var19_29 = 0; var19_29 < var15_24.size(); ++var19_29) {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n if (var18_28 < var17_27) {\n this.a(var20_30);\n if (!var24_11) continue;\n }\n this.b(var20_30);\n if (!var24_11) continue;\n }\n }\n ++var14_21;\n if (!var24_11) continue block6;\n }\n ** GOTO lbl133\n v6 = var12_16;\nlbl133: // 2 sources:\n if (v6 > 0) continue block5;\n v5 = this.h.p();\n } while (var24_11);\n }\n break;\n } while (true);\n break;\n } while (true);\n var13_19 = v5;\n while (var13_19.f()) {\n var14_22 = var13_19.a();\n v7 = var14_22.b();\n if (var24_11 != false) return v7;\n var15_25 = v7;\n var5_5.a((Object)var14_22, this.m[var15_25]);\n var13_19.g();\n if (!var24_11) continue;\n }\n v7 = var11_14;\n return v7;\n }",
"AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"void m63702c() {\n for (C17455a c17455a : this.f53839c) {\n c17455a.f53844b.clear();\n }\n }",
"public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void m3421k(C0933b bVar) {\n int i;\n int i2 = bVar.f4379a;\n if (i2 == 1 || i2 == 8) {\n throw new IllegalArgumentException(\"should not dispatch add or move for pre layout\");\n }\n int z = m3423z(bVar.f4380b, i2);\n int i3 = bVar.f4380b;\n int i4 = bVar.f4379a;\n if (i4 == 2) {\n i = 0;\n } else if (i4 == 4) {\n i = 1;\n } else {\n throw new IllegalArgumentException(\"op should be remove or update.\" + bVar);\n }\n int i5 = 1;\n for (int i6 = 1; i6 < bVar.f4382d; i6++) {\n int z2 = m3423z(bVar.f4380b + (i * i6), bVar.f4379a);\n int i7 = bVar.f4379a;\n if (i7 == 2 ? z2 == z : i7 == 4 && z2 == z + 1) {\n i5++;\n } else {\n C0933b b = mo7621b(i7, z, i5, bVar.f4381c);\n mo7625l(b, i3);\n mo7620a(b);\n if (bVar.f4379a == 4) {\n i3 += i5;\n }\n z = z2;\n i5 = 1;\n }\n }\n Object obj = bVar.f4381c;\n mo7620a(bVar);\n if (i5 > 0) {\n C0933b b2 = mo7621b(bVar.f4379a, z, i5, obj);\n mo7625l(b2, i3);\n mo7620a(b2);\n }\n }",
"final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"AnonymousClass3(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"public void m51745d() {\n this.f42403b.a();\n }",
"void m5771e() throws C0841b;",
"@Override\n public void func_104112_b() {\n \n }",
"@Override // X.AnonymousClass0l1\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final void A04(int r29) throws java.io.IOException {\n /*\n // Method dump skipped, instructions count: 801\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.AnonymousClass0T3.A04(int):void\");\n }",
"public final void mo118421b() {\n super.mo118421b();\n this.f120934a = null;\n }",
"public void c() {\n /*\n r4 = this;\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.c()\n r1 = 1\n r2 = 0\n if (r0 == 0) goto L_0x000c\n L_0x000a:\n r0 = 0\n goto L_0x0023\n L_0x000c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.a()\n if (r0 != 0) goto L_0x001c\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r0 = r0.b()\n r2 = r0\n goto L_0x000a\n L_0x001c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r2 = r0.e()\n r0 = 1\n L_0x0023:\n boolean r3 = r4.f16998d\n if (r3 == 0) goto L_0x0032\n if (r0 == 0) goto L_0x003a\n com.shopee.app.network.d.c.d r0 = new com.shopee.app.network.d.c.d\n r0.<init>()\n r0.a(r2, r1)\n goto L_0x003a\n L_0x0032:\n com.shopee.app.network.d.c.d r1 = new com.shopee.app.network.d.c.d\n r1.<init>()\n r1.a(r2, r0)\n L_0x003a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.shopee.app.d.c.f.m.c():void\");\n }",
"public JBlock _finally() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: iconst_0 \n // 1: nop \n // 2: nop \n // 3: nop \n // 4: aload_3 \n // 5: nop \n // 6: lconst_0 \n // 7: nop \n // 8: iaload \n // 9: nop \n // 10: ldc2_w \"Lcom/sun/codemodel/JFormatter;\"\n // 13: nop \n // 14: fload_0 /* this */\n // 15: nop \n // 16: nop \n // 17: nop \n // 18: lload_2 \n // 19: nop \n // 20: iconst_0 \n // 21: nop \n // 22: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -----------------------------\n // 0 23 0 this Lcom/sun/codemodel/JTryBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.execute(StackMappingVisitor.java:935)\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.visit(StackMappingVisitor.java:398)\n // at com.strobel.decompiler.ast.AstBuilder.performStackAnalysis(AstBuilder.java:2030)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:108)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:210)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public void mo1335b() {\n m18896a(false);\n }",
"public void mo1335b() {\n m18902c();\n }",
"static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }",
"public int[] captureCodeFragment07(int[] a) {\r\n for (int i = 0; i < a.length / 2; i++) {\r\n int temp = a[i];\r\n a[i] = a[a.length - 1 - i];\r\n a[a.length - 1 - i] = temp;\r\n }\r\n return a;\r\n }",
"protected String codeBlockSource(Block block) {\n block.removeFirstOperation(); // aload_0\n block.removeFirstOperation(); // aload_1\n block.removeFirstOperation(); // iload_2\n block.removeFirstOperation(); // invokespecial <init>\n\n if (getTopBlock().getOperations().size() == 1 &&\n getTopBlock().getOperations().get(0) instanceof ReturnView) {\n return null;\n }\n\n return super.codeBlockSource(block);\n }",
"void m5769c() throws C0841b;",
"AnonymousClass1(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"private void m20467b() {\n C6502h.CamembertauCalvados unused = this.f16562a.f16549f;\n C6502h a = C6502h.CamembertauCalvados.m21397a(this.f16563b);\n a.mo35508e(this.f16564c);\n Machecoulais.m20446b(this.f16562a.f16546c, a);\n this.f16562a.m20436a(this.f16563b, a);\n }",
"public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }",
"public final void mo11687c() {\n }",
"static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"public void b() {\n/* 134 */ for (int i = 0; i < this.b; i++)\n/* 135 */ this.c[i] = false; \n/* */ }",
"public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }",
"static /* synthetic */ void m21605b(C13459z c13459z) {\n AppMethodBeat.m2504i(37332);\n c13459z.bgC();\n AppMethodBeat.m2505o(37332);\n }",
"@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }",
"public void mo1335b() {\n m18899a(false);\n }",
"private void exitSequence_mainRegion_State2__region0_a() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}",
"static Object a(bu var0, y.c.d var1_1) {\n block4 : {\n var8_2 = fj.z;\n var2_3 = 0;\n var3_4 = false;\n var4_5 = var0.l(var1_1).j();\n while (var4_5.f()) {\n var5_6 = var4_5.a();\n var6_7 = var5_6.c();\n var7_8 = var5_6.d();\n v0 = Math.abs(var6_7.a() - var7_8.a()) DCMPG 1.0E-12;\n if (var8_2) break block4;\n if (v0 >= 0) ** GOTO lbl-1000\n var3_4 = true;\n if (var8_2) lbl-1000: // 2 sources:\n {\n if (Math.abs(var6_7.b() - var7_8.b()) >= 1.0E-12) return hV.a;\n var2_3 = 1;\n if (var8_2) {\n return hV.a;\n }\n }\n var4_5.g();\n if (!var8_2) continue;\n }\n v0 = var2_3;\n }\n if (v0 != 0 && var3_4) {\n v1 = hV.b;\n return v1;\n }\n v1 = hV.c;\n return v1;\n }",
"public void mo81218a() {\n HandlerC16593b bVar = this.f57893b;\n if (bVar != null) {\n bVar.removeCallbacksAndMessages(null);\n this.f57893b = null;\n }\n }",
"protected void mo3470b() {\n this.f3325a = null;\n m7956e();\n }",
"static /* synthetic */ void m200-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }"
] | [
"0.6464948",
"0.64392924",
"0.6372285",
"0.6297846",
"0.6269734",
"0.62572956",
"0.62035364",
"0.61871284",
"0.61871284",
"0.6141055",
"0.61409056",
"0.6134402",
"0.6113939",
"0.6082392",
"0.607908",
"0.6077972",
"0.60372937",
"0.60316765",
"0.60185367",
"0.60151803",
"0.60100776",
"0.6002473",
"0.59922904",
"0.59870905",
"0.59808916",
"0.597935",
"0.5978902",
"0.5976483",
"0.597303",
"0.5971709",
"0.5943736",
"0.592685",
"0.59106296",
"0.5902061",
"0.58927786",
"0.5884487",
"0.5878087",
"0.587542",
"0.5855823",
"0.58548677",
"0.5838867",
"0.5823649",
"0.58162844",
"0.5811898",
"0.58092177",
"0.5808397",
"0.5800291",
"0.57915014",
"0.57818687",
"0.5780095",
"0.5763838",
"0.5763817",
"0.57567394",
"0.5754176",
"0.5738677",
"0.57227045",
"0.5717671",
"0.5715109",
"0.5714313",
"0.5709676",
"0.5708079",
"0.5679313",
"0.56773186",
"0.56764376",
"0.567634",
"0.5672998",
"0.5661094",
"0.5656149",
"0.5654875",
"0.5652881",
"0.56407404",
"0.5637647",
"0.56307435",
"0.56263983",
"0.562435",
"0.56237566",
"0.5609564",
"0.5605823",
"0.55991906",
"0.5597739",
"0.5597452",
"0.5597264",
"0.5594188",
"0.5580708",
"0.558034",
"0.55795944",
"0.5577403",
"0.5549536",
"0.55408144",
"0.55386835",
"0.5538279",
"0.55361074",
"0.5536058",
"0.5535649",
"0.553082",
"0.55293375",
"0.5524691",
"0.55239856",
"0.55232084",
"0.5516716",
"0.5516466"
] | 0.0 | -1 |
Try to parse value of string into Integer, Double or Boolean, or it this types differs, just assign as string. | @SuppressWarnings({"unchecked", "rawtypes"})
private void setStringValue(final String valueString) {
// figure out the type of T and create object based on T=Integer, T=Double, T=Boolean, T=Valuable
if (value instanceof List<?>) {
List list = (List) get();
list.clear();
// remove start and end spaces
String valueString2 = valueString.replaceAll("^\\s+", "");
valueString2 = valueString2.replaceAll("\\s+$", "");
// split into space-separated bits
String[] valuesString = valueString2.split("\\s+");
for (int i = 0; i < valuesString.length; i++) {
if (theClass.equals(Integer.class)) {
list.add(new Integer(valuesString[i % valuesString.length]));
} else if (theClass.equals(Double.class)) {
list.add(new Double(valuesString[i % valuesString.length]));
} else if (theClass.equals(Boolean.class)) {
String str = valuesString[i % valuesString.length].toLowerCase();
list.add(str.equals("1") || str.equals("true") || str.equals("yes"));
} else if (theClass.equals(String.class)) {
list.add(new String(valuesString[i % valuesString.length]));
}
}
return;
}
if (theClass.equals(Integer.class)) {
setValue(new Integer(valueString));
return;
}
if (theClass.equals(Double.class)) {
setValue(new Double(valueString));
return;
}
if (theClass.equals(Boolean.class)) {
final String valueString2 = valueString.toLowerCase();
if (valueString2.equals("yes") || valueString2.equals("true")) {
setValue(Boolean.TRUE);
return;
} else if (valueString2.equals("no") || valueString2.equals("false")) {
setValue(Boolean.FALSE);
return;
}
}
if (theClass.equals(Function.class)) {
final Function.Constant param = new Function.Constant(valueString);
setValue(param);
param.getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));
return;
}
if (theClass.isEnum()) {
if (possibleValues == null) {
possibleValues = (T[]) theClass.getDeclaringClass().getEnumConstants();
}
for (final T t : possibleValues) {
if (valueString.equals(t.toString())) {
setValue(t);
return;
}
}
throw new IllegalArgumentException("Input 104: value " + valueString + " not found. Select one of " + Arrays.toString(possibleValues));
}
// call a string constructor of theClass
try {
Constructor ctor;
Object v = valueString;
try {
ctor = theClass.getDeclaredConstructor(String.class);
} catch (NoSuchMethodException e) {
// we get here if there is not String constructor
// try integer constructor instead
try {
if (valueString.startsWith("0x")) {
v = Integer.parseInt(valueString.substring(2), 16);
} else {
v = Integer.parseInt(valueString);
}
ctor = theClass.getDeclaredConstructor(int.class);
} catch (NumberFormatException e2) {
// could not parse as integer, try double instead
v = Double.parseDouble(valueString);
ctor = theClass.getDeclaredConstructor(double.class);
}
}
ctor.setAccessible(true);
final Object o = ctor.newInstance(v);
setValue(o);
if (o instanceof BEASTInterface) {
((BEASTInterface) o).getOutputs().add(BEASTObjectStore.INSTANCE.getBEASTObject(beastObject));
}
} catch (Exception e) {
throw new IllegalArgumentException("Input 103: type mismatch, cannot initialize input '" + getName() +
"' with value '" + valueString + "'.\nExpected something of type " + getType().getName() +
".\n" + (e.getMessage() != null ? e.getMessage() : ""));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }",
"protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }",
"protected abstract MAJOR_JAVA_TYPE parseValue(@Nonnull String value) throws ParsingException;",
"@Override\n public Number fromString(String string) {\n return Double.valueOf(string).intValue();\n }",
"public IValuable parse(String value);",
"@Override\n\t\tpublic Double convert(String s) {\n\t\t\treturn Double.parseDouble(s);\n\t\t}",
"protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }",
"protected abstract SimpleType doParseString(String s);",
"public Object parse(String s) throws JDBFException {\r\n s = s.trim();\r\n if (type == 'N' || type == 'F') {\r\n if (s.equals(\"\")) {\r\n s = \"0\";\r\n }\r\n try {\r\n if (getDecimalCount() == 0) {\r\n return new Long(s);\r\n } else {\r\n return new Double(s);\r\n }\r\n } catch (NumberFormatException numberformatexception) {\r\n throw new JDBFException(numberformatexception);\r\n }\r\n }\r\n if (type == 'C') {\r\n return s;\r\n }\r\n if (type == 'L') {\r\n if (s.equals(\"Y\") || s.equals(\"y\") || s.equals(\"T\") || s.equals(\"t\")) {\r\n return new Boolean(true);\r\n }\r\n if (s.equals(\"N\") || s.equals(\"n\") || s.equals(\"F\") || s.equals(\"f\")) {\r\n return new Boolean(false);\r\n } else {\r\n throw new JDBFException(\"Unrecognized value for logical field: \" + s);\r\n }\r\n }\r\n if (type == 'D') {\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n try {\r\n if (\"\".equals(s)) {\r\n return null;\r\n } else {\r\n return simpledateformat.parse(s);\r\n }\r\n } catch (ParseException parseexception) {\r\n //throw new JDBFException(parseexception);\r\n return null;\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }",
"private static Object makeValue(String string, Schema schema) {\n if (string == null) {\n return null;\n }\n\n try {\n switch (schema.getType()) {\n case BOOLEAN:\n return Boolean.valueOf(string);\n case STRING:\n return string;\n case FLOAT:\n return Float.valueOf(string);\n case DOUBLE:\n return Double.valueOf(string);\n case INT:\n return Integer.valueOf(string);\n case LONG:\n return Long.valueOf(string);\n case ENUM:\n // TODO: translate to enum class\n if (schema.hasEnumSymbol(string)) {\n return string;\n } else {\n try {\n return schema.getEnumSymbols().get(Integer.valueOf(string));\n } catch (IndexOutOfBoundsException ex) {\n return null;\n }\n }\n case UNION:\n Object value = null;\n for (Schema possible : schema.getTypes()) {\n value = makeValue(string, possible);\n if (value != null) {\n return value;\n }\n }\n return null;\n case NULL:\n return null;\n default:\n // FIXED, BYTES, MAP, ARRAY, RECORD are not supported\n throw new RuntimeException(\n \"Unsupported field type:\" + schema.getType());\n }\n } catch (NumberFormatException ex) {\n return null;\n }\n }",
"public abstract void parseValue(String value);",
"private Variable stringToVariable(String value, int smiSyntax) {\n Variable var = AbstractVariable.createFromSyntax(smiSyntax);\n try {\n if (var instanceof AssignableFromString) {\n ((AssignableFromString) var).setValue(value);\n } else if (var instanceof AssignableFromInteger) {\n ((AssignableFromInteger) var).setValue(Integer.valueOf(value));\n } else if (var instanceof AssignableFromLong) {\n ((AssignableFromLong) var).setValue(Long.valueOf(value));\n } else {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString());\n var = null;\n }\n } catch (IllegalArgumentException e) {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString(), e);\n var = null;\n }\n return var;\n }",
"public final IValue parseString(String s) {\r\n SimpleType v = doParseString(s);\r\n if (v != null) {\r\n v.blueprint = false;\r\n }\r\n return (IValue) v;\r\n }",
"private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }",
"public T parse(String value);",
"private static Expr parseValue(String string) {\r\n\t\tif (string.isEmpty()) return null;\r\n\r\n\t\tchar first = string.charAt(0);\r\n\t\tif (first != '\"' && first != '-' && isReserved(first)) {\r\n\t\t\treturn new ExprUnary(Operator.get(Character.toString(first)), new ExprVal(string.substring(1)));\r\n\t\t} else {\r\n\t\t\treturn new ExprVal(string);\r\n\t\t}\r\n\t}",
"private static Object parseStringToObject(String text, Class ObjectType) {\n if (ObjectType == Integer.class) return Integer.parseInt(text);\n else if (ObjectType == Float.class) return Float.parseFloat(text);\n else if (ObjectType == Double.class) return Double.parseDouble(text);\n return null;\n }",
"private static Object parseData(String source, Class<?> expectedType){\n\t\tif(expectedType.equals(Integer.class)) return new Integer(source);\n\t\tif(expectedType.equals(Boolean.class)) return new Boolean(source);\n\t\tif(expectedType.equals(Double.class)) return new Double(source);\n\t\treturn source;\n\t}",
"public T getFromString(String str) throws NumberFormatException;",
"public DataValue parse(String value) {\r\n \tthrow new RuntimeException(\"no implementation\");\r\n }",
"public void\n fromString\n (\n String value\n )\n {\n if (value == null)\n throw new IllegalArgumentException(\"Cannot set a Parameter value from a null string\");\n Double doubleValue = null;\n try {\n doubleValue = Double.valueOf(value);\n }\n catch(NumberFormatException ex) {\n throw new IllegalArgumentException\n (\"The value (\" + value + \") passed into the fromString method cannot be parsed \" +\n \"as a Double.\\n\" + ex.getMessage());\n }\n setValue(doubleValue);\n }",
"private T parse(String value)\n\t\t{\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic Integer convert(String s) {\n\t\t\treturn Integer.parseInt(s);\n\t\t}",
"public void parse(final String s) throws NumberFormatException {\r\n\t}",
"public void testGetNumericValue2() {\n ValueString vs = new ValueString(\"2.8\");\n\n assertEquals(\"2.8\", vs.getString());\n assertEquals(2.8D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(2.8D, vs.getBigNumber().doubleValue(), 0.1D);\n }",
"public void testGetNumericValue1() {\n ValueString vs = new ValueString(\"1000\");\n\n assertEquals(\"1000\", vs.getString());\n assertEquals(1000.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(1000, vs.getInteger());\n assertEquals(BigDecimal.valueOf(1000), vs.getBigNumber());\n }",
"@Override\n public Integer fromString(String value) {\n if (value == null) {\n return null;\n }\n\n // Take off the spaces\n value = value.trim();\n\n // If it's 0 (Was full of spaces) return 0\n if (value.length() < 1) {\n return null;\n }\n int valueConverted = 0;\n try {\n valueConverted = Integer.valueOf(value);\n } catch (NumberFormatException e) {\n System.err.println(\"[ERROR-INFO (IntegerString Converter)] - \" + e);\n }\n return valueConverted;\n }",
"@Override\n\tpublic Object parseValue(String value) throws IllegalArgumentException\n\t{\n\t\treturn derivedColumn.parseValue(value);\n\t}",
"public static Object parseStringObject(String value, Schema.Type dataType) throws TimeSeriesException {\r\n\t\tswitch(dataType) {\r\n\t\t\tcase DOUBLE: \r\n\t\t\t\treturn new Double(Double.parseDouble(value));\r\n\t\t\tcase BOOLEAN: \r\n\t\t\t\treturn new Boolean(Boolean.parseBoolean(value));\r\n\t\t\tcase FLOAT: \r\n\t\t\t\treturn new Float(Float.parseFloat(value));\r\n\t\t\tcase INT: \r\n\t\t\t\treturn new Integer(Integer.parseInt(value));\r\n\t\t\tcase LONG: \r\n\t\t\t\treturn new Long(Long.parseLong(value));\r\n\t\t\tcase STRING: \r\n\t\t\t\treturn value;\r\n\t\t\tcase BYTES: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t\tdefault: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t}\r\n\t}",
"public static Value makeAnyStrNumeric() {\n return theStrNumeric;\n }",
"public static String convertString(String sType , String sValue) throws Exception{\n\t\tObject o = new Object[1];\r\n\t\tboolean emptyToNull = true;//DBProps.isEmptyNullNumbers();\r\n\t\tboolean Empty = false;\r\n\t\tif(null ==sValue || sValue.trim().length()<1) {\r\n\t\t\tEmpty = true;\r\n\t\t\to = \"\";\r\n\t\t}else {\r\n\t\t\ttry{\r\n\t\t\t\tif(\tsType.equalsIgnoreCase(\"BIT\") || sType.equalsIgnoreCase(\"BOOL\") || sType.equalsIgnoreCase(\"BOOLEAN\"))\r\n\t\t\t\t\tif(Empty || null == sValue || sValue.equals(\"0\") || sValue.equalsIgnoreCase(\"false\")){\r\n\t\t\t\t\t\to \t\t\t= new Boolean(false);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\to\t\t\t= new Boolean(true);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"INTEGER\") || sType.equalsIgnoreCase(\"SMALLINT\") || sType.equalsIgnoreCase(\"INT\") || sType.equalsIgnoreCase(\"MEDIUMINT\") || sType.equalsIgnoreCase(\"TINYINT\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Integer(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new Integer(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"REAL\") || sType.equalsIgnoreCase(\"FLOAT\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Float(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new Float(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"BIGINT\")||sType.equalsIgnoreCase(\"LONG\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Long(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new Long(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"NUMBER\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new BigDecimal(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new BigDecimal(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"BIGDECIMAL\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new BigDecimal(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new BigDecimal(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"SHORT\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Short((short)0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to\t\t\t= new Short(sValue);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"DOUBLE\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Double(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to\t\t\t= new Double(sValue);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"BYTE\"))\r\n\t\t\t\t\tif(Empty) {\r\n\t\t\t\t\t\to\t\t\t= new Byte((byte)0);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to\t\t\t= new Byte(sValue);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"DATE\") && (null != sValue) && (sValue.trim().length()>6)) {\r\n\t\t\t\t\tif(Empty) {\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t//if(sTypeLong.trim().equalsIgnoreCase(\"java.sql.Date\")){\r\n\t\t\t\t\t\t\tif(sValue.trim().length()>10){\r\n\t\t\t\t\t\t\t\tsValue \t\t= sValue.substring(0,11).trim();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\to\t= java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}else{\r\n\t\t\t\t\t\t\t//\to\t= java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\to\t\t= (sValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(sType.equalsIgnoreCase(\"DATETIME\") && (null != sValue) && (sValue.trim().length()>6)) {\r\n\t\t\t\t\tif(Empty)\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t//if(sTypeLong.trim().equalsIgnoreCase(\"java.sql.Timestamp\") || sTypeLong.trim().equalsIgnoreCase(\"java.sql.Date\")){\r\n\t\t\t\t\t\t\tif(sValue.trim().length()>10){\r\n\t\t\t\t\t\t\t\tsValue \t= sValue.substring(0,11).trim();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\to\t= java.sql.Timestamp.valueOf(sValue);//java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}else{\r\n\t\t\t\t\t\t\t//\to\t= java.sql.Timestamp.valueOf(sValue);// java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\to\t\t= (sValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}else if(sType.equalsIgnoreCase(\"TIME\") && (null != sValue) && (sValue.trim().length()>6) ) {\r\n\t\t\t\t\tif(Empty)\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\to\t\t\t= java.sql.Time.valueOf(sValue);\r\n\t\t\t\t}else if(sType.equalsIgnoreCase(\"TIMESTAMP\") && (null != sValue)) {\r\n\t\t\t\t\tif(Empty) {\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\t}else if((sValue.trim().length()>8)) {\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\to\t= java.sql.Timestamp.valueOf(sValue);\r\n\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\t//System.out.println(sValue);\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tString[] dParts = sValue.split(\" \");\r\n\t\t\t\t\t\t\t\tif(dParts.length > 2){\r\n\t\t\t\t\t\t\t\t\to\t= java.sql.Timestamp.valueOf(dParts[0]+\" \"+dParts[1]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}catch(Exception er){\r\n\t\t\t\t\t\t\t\tthrow er;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\to\t\t\t\t= \"'\"+sValue+\"'\";\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception err){\r\n\t\t\t\tthrow err;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn o.toString();\r\n\t}",
"public boolean canConvertFromString(String str) {\r\n if (this == BOOLEAN) {\r\n return str.equals(\"true\") || str.equals(\"false\");\r\n }\r\n\r\n if (this == CHAR && str.length() == 0) {\r\n return false;\r\n }\r\n\r\n try {\r\n if (this == INT) {\r\n Integer.parseInt(str);\r\n } else if (this == LONG) {\r\n Long.parseLong(str);\r\n } else if (this == SHORT) {\r\n Short.parseShort(str);\r\n } else if (this == DOUBLE) {\r\n Double.parseDouble(str);\r\n } else if (this == FLOAT) {\r\n Float.parseFloat(str);\r\n }\r\n } catch (NumberFormatException ex) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }",
"private static Object convert(final String identifier, final Class<?> type, Object value) throws ParseException {\n if (type == Date.class) {\n return toDate(value, identifier);\n }\n if (type == PeriodDuration.class && value instanceof String) {\n try {\n return new PeriodDurationType((String) value);\n } catch (IllegalArgumentException ex) {\n // TODO: \"log and continue\" is not appropriate here, since the user can not know that his data is lost.\n LOGGER.log(Level.WARNING, \"Bad period duration value: {0} (property: {1})\",\n new Object[] {value, identifier});\n return null;\n }\n }\n if (InternationalString.class.isAssignableFrom(type) && value instanceof String) {\n return new SimpleInternationalString(value.toString());\n }\n if (Charset.class.isAssignableFrom(type) && value instanceof String) {\n return Charset.forName(value.toString());\n }\n if (Locale.class.isAssignableFrom(type) && value instanceof String) {\n String text = value.toString();\n text = text.substring(text.indexOf('.') + 1).trim();\n return Locales.parse(text);\n }\n if (!CharSequence.class.isAssignableFrom(type) && (value instanceof CharSequence)) {\n String text = value.toString();\n if (text.startsWith(\"nilReason:\")) {\n try {\n value = NilReason.valueOf(text.substring(\"nilReason:\".length())).createNilObject(type);\n } catch (URISyntaxException | IllegalArgumentException e) {\n throw new ParseException(\"Illegal value: \\\"\" + text + \"\\\".(property:\" + identifier + \")\", e);\n }\n } else {\n final boolean isCodeList = CodeList.class.isAssignableFrom(type);\n if (isCodeList || type == Locale.class || type == Charset.class || type.isEnum()) {\n text = text.substring(text.indexOf('.') + 1).trim();\n if (isCodeList) {\n value = Types.forCodeName(type.asSubclass(CodeList.class), text, false);\n } else {\n value = text;\n }\n }\n }\n }\n return value;\n }",
"private T convert(String value)\n {\n if (value == null)\n {\n return null;\n }\n\n Object result = null;\n\n if (this.converter != null)\n {\n try\n {\n result = converter.convert(value);\n }\n catch (Exception e)\n {\n throw ExceptionUtils.throwAsRuntimeException(e);\n }\n }\n else if (String.class.equals(configEntryType))\n {\n result = value;\n }\n else if (Class.class.equals(configEntryType))\n {\n result = ClassUtils.tryToLoadClassForName(value);\n }\n else if (Boolean.class.equals(configEntryType))\n {\n Boolean isTrue = \"TRUE\".equalsIgnoreCase(value);\n isTrue |= \"1\".equalsIgnoreCase(value);\n isTrue |= \"YES\".equalsIgnoreCase(value);\n isTrue |= \"Y\".equalsIgnoreCase(value);\n isTrue |= \"JA\".equalsIgnoreCase(value);\n isTrue |= \"J\".equalsIgnoreCase(value);\n isTrue |= \"OUI\".equalsIgnoreCase(value);\n\n result = isTrue;\n }\n else if (Integer.class.equals(configEntryType))\n {\n result = Integer.parseInt(value);\n }\n else if (Long.class.equals(configEntryType))\n {\n result = Long.parseLong(value);\n }\n else if (Float.class.equals(configEntryType))\n {\n result = Float.parseFloat(value);\n }\n else if (Double.class.equals(configEntryType))\n {\n result = Double.parseDouble(value);\n }\n\n return (T) result;\n }",
"public\t\tvoid\t\tsetValue(String value)\n\t\t{\n\t\tdouble val = Utility.toDouble(value);\n\t\tsetNormalizedValue(val);\n\t\t}",
"public static JavaDataType fromString(String type) {\r\n switch (type) {\r\n case \"String\":\r\n return STRING;\r\n case \"Integer\":\r\n return INTEGER;\r\n case \"Boolean\":\r\n return BOOLEAN;\r\n case \"Double\":\r\n return DOUBLE;\r\n case \"Float\":\r\n return FLOAT;\r\n case \"Long\":\r\n return LONG;\r\n }\r\n return null;\r\n }",
"static Value<Double> parseDouble(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Double.parseDouble(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"public void testGetString() {\n ValueString vs = new ValueString(\"Boden\");\n\n assertEquals(\"Boden\", vs.getString());\n assertEquals(0.0, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n try {\n vs.getBigNumber();\n fail(\"Expected a NumberFormatException\");\n } catch (NumberFormatException ex) {\n vs = null;\n }\n }",
"@Override\r\n\tprotected Object stringToValue(String valueString) throws ParseException {\r\n\t\ttry {\r\n\t\t\treturn PersistentBean.findOrCreate(beanClass, valueString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ParseException(e.getMessage(), 0);\r\n\t\t}\r\n\t}",
"private static Double stod(String string) {\n\t\tDouble result = 2.0; // should handle this error: \"cannnot convert string to Double\"\n\t\tif (string == null || string.equals(\"\") || string.equals(\"null\") || string.equals(\"I\")) {\n\t\t\tresult = 0.0;\n\t\t} else if (string.equals(\"E\")) {\n\t\t\tresult = 1.0;\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tresult = Double.parseDouble(string);\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public void testSetNumber() {\n ValueString vs = new ValueString();\n\n vs.setNumber(0);\n assertEquals(\"0.0\", vs.getString());\n vs.setNumber(1);\n assertEquals(\"1.0\", vs.getString());\n vs.setNumber(-1);\n assertEquals(\"-1.0\", vs.getString());\n vs.setNumber(2.5);\n assertEquals(\"2.5\", vs.getString());\n vs.setNumber(2.8);\n assertEquals(\"2.8\", vs.getString());\n }",
"@Override\n\t\tpublic Boolean convert(String s) {\n\t\t\tString value = s.toLowerCase();\n\t\t\tif (\"true\".equals(value) || \"1\".equals(value) /* || \"yes\".equals(value) || \"on\".equals(value) */) {\n\t\t\t\treturn Boolean.TRUE;\n\t\t\t}\n\t\t\telse if (\"false\".equals(value) || \"0\".equals(value) /* || \"no\".equals(value) || \"off\".equals(value) */) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Can not parse to boolean type of value: \" + s);\n\t\t\t}\n\t\t}",
"private boolean okay( String s )\n {\n try{\n double x = Double.parseDouble( s );\n return true;\n }\n catch(Exception e)\n {\n return false;\n }\n }",
"public static boolean isParsable(String inString)\n\t{\n\t\tboolean blnParsable= true; //tells if the value can be parsed \n\t\ttry\n\t\t{\n\t\t\tDouble.parseDouble (inString);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tblnParsable = false;\n\t\t}\n\t\treturn blnParsable;\n\t}",
"public org.apache.spark.sql.catalyst.types.DataType parseDataType (java.lang.String dataTypeString) { throw new RuntimeException(); }",
"private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }",
"public final Value parseValue(String textValue) {\n\t\tif (textValue == null) {\n\t\t\treturn Value.newUnknownValue(this.getValueType());\n\t\t}\n\n\t\tString text = textValue.trim();\n\n\t\tif (text.length() == 0 && this.getValueType() != ValueType.TEXT) {\n\t\t\treturn Value.newUnknownValue(this.getValueType());\n\t\t}\n\n\t\tif (this.validValues != null) {\n\t\t\treturn this.validValues.get(text);\n\t\t}\n\t\t/*\n\t\t * parse and validate\n\t\t */\n\t\tValue value = Value.parseValue(text, this.getValueType());\n\t\tif (value != null) {\n\t\t\tvalue = this.validateValue(value);\n\t\t}\n\t\treturn value;\n\t}",
"private static Integer parseIntString( String valueString ) {\n return Integer.parseInt( valueString.replaceAll( \"[^0-9]\", \"\" ) );\n }",
"@Override\r\n public Tuple2<Integer, Double> map(String value) throws Exception {\n return Tuple2.of(1, Double.parseDouble(value));\r\n }",
"@Override\r\n public void updateValue(String s) {\r\n //Covert from string to float\r\n this.value = Float.valueOf(s);\r\n }",
"T convert(String value);",
"private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }",
"@Override\n protected boolean persistString(String value) {\n return persistInt(Integer.parseInt(value));\n }",
"private double tranferStringToNum(String num){\r\n double number = 0;\r\n try{\r\n\tnumber = Double.parseDouble(num);\r\n }catch(Exception ex){\r\n\tnumber = 0;\r\n }\r\n return number;\r\n }",
"public void parse(String string) {\n\t\t\n\t}",
"public abstract T parse(Object valueToParse, Type type);",
"public static void main(String[] args) {\n\n Integer num1 = 100;\n double num2 = num1;\n System.out.println(num2);\n\n float f = 0.5f;\n Float fl = f;\n System.out.println(fl);\n\n System.out.println(Byte.MAX_VALUE);\n\n // parse method --> converting String value to primitives, returne primitive\n // valueOf --> converting String to Wrapper class, return Wrapper class\n\n String str1 = \"123\";\n int result = Integer.parseInt(str1);\n System.out.println(result+1);\n\n String str2 = \"true\";\n boolean r1 = Boolean.parseBoolean(str2);\n System.out.println(r1);\n\n // parse method not case sencetive\n String str3 = \"FaLse\"; // it is work\n boolean r2 = Boolean.parseBoolean(str3);\n System.out.println(r2);\n\n String s1 = \"100.5\";\n Double c1 = Double.parseDouble(s1);\n System.out.println(c1 + 1); // it is call auto boxing\n Double c2 = Double.valueOf(s1); // this in not auto and not unboxing\n\n System.out.println(c1);\n System.out.println(c2);\n\n String s2 = \"TrUe\";\n Boolean b1 = Boolean.valueOf(s2);\n System.out.println(b1); // no sensetive\n\n Double [] arr = new Double[3];\n System.out.println(Arrays.toString(arr));\n // default value of wrapper class always --> null, null, null\n\n String name = \"string\";\n String name1 = new String(\"string\");\n\n Integer I1 = new Integer(\"123\");\n\n System.out.println(addNum(12,13));\n System.out.println(addNum(15.3,7.4));\n \n }",
"@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }",
"private boolean isDouble(String str)\r\n {\r\n try\r\n {\r\n double i = Double.parseDouble(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }",
"public void assignValue (String variable, String x) {\n Map.Entry<String, Value> var = findVariable(variable);\n if (var != null) {\n if (var.getValue().getType() == Value.Type.STRING)\n var.getValue().setValue(x);\n else if (var.getValue().getType() == Value.Type.REAL && x.contains(\".\"))\n try {\n var.getValue().setValue(Double.parseDouble(x));\n } catch (Exception e) {\n throw new RuntimeException(\"Error Type mismatch\");\n }\n else if (var.getValue().getType() == Value.Type.INT)\n try {\n var.getValue().setValue(Integer.parseInt(x));\n } catch (Exception e) {\n throw new RuntimeException(\"Error Type mismatch\");\n }\n else if (var.getValue().getType() == Value.Type.BOOL) {\n try {\n var.getValue().setValue(Boolean.parseBoolean(x));\n } catch (Exception e) {\n throw new RuntimeException(\"Error Type mismatch\");\n }\n } else\n throw new RuntimeException(\"Error: Type mismatch\");\n } else {\n throw new RuntimeException(\"Error: Variable was not declared\");\n }\n }",
"public String makeConversion(String value);",
"private void parse(String str) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Remove any extraneous whitespace before parsing\n str = str.trim();\n\n // Apply some heuristics to str to figure out what format it\n // is in, then call the appropriate parsing function.\n if ((str.length() >= 3) && (str.substring(0, 2).equals(\"0x\"))) {\n // If the string begins with \"0x\", then it should be HEX_BAT.\n parseHexBAT(str);\n } else if (str.charAt(4) == ' ') {\n // Fifth character is a space, therefore should be in FORMATTED_BAT\n // format.\n parseFormattedBAT(str);\n } else if (str.charAt(4) == '-') {\n // Fifth character is a \"-\", therefore should be in UTC_STRING format.\n parseUTCString(str);\n } else if (str.indexOf('.') != -1) {\n // The string contains a \".\" charcater. Try to parse it as SECS_BAT.\n parseSecsBAT(str);\n } else {\n // Fall through to DECIMAL_BAT format.\n parseDecimalBAT(str);\n }\n // Check that we didn't create an ASAP or NEVER by mistake.\n if (isASAP() || isNEVER()) {\n throw new NumberFormatException(\"absolute time reserved value: \\\"\" + str + \"\\\"\");\n }\n }",
"public static DataValue parseValue(String value) {\r\n \tif(value == null) {\r\n \t\tthrow new IllegalArgumentException(\"null value\");\r\n \t}\r\n \t\r\n \tint i = value.indexOf(\",\");\r\n \tif(i < 0 || i == value.length()) {\r\n \t\tthrow new IllegalArgumentException(\"wrong string format\");\r\n \t}\r\n \t\r\n \tString rmName = value.substring(0, i);\r\n \tDataValue dv = dataValueMap.get(rmName);\r\n \t\r\n \tif(dv == null) {\r\n \t\tthrow new IllegalArgumentException(\"unsupported RM class[\" + rmName + \"]\");\r\n \t}\r\n \t\r\n \tString v = value.substring(i + 1).trim(); \t\r\n \treturn dv.parse(v);\r\n }",
"public abstract T parse(String str);",
"public void setValue (String text) throws ParseException {\n\t\tParsing t = new Parsing(text);\n\t\tint posini;\n\t\t/* Ignore the leading blanks */\n\t\tt.gobbleSpaces();\n\t\tposini = t.pos;\n\t\t/* Take care of units requiring data in Sexagesimal */\n\t\tif ((symbol.charAt(0) == '\"') && (symbol.indexOf(':')>0)) \t// \"\n\t\t\tvalue = t.parseSexa();\n\t\telse value = t.parseFactor();\n\t\tif (t.pos == posini) {\t\t// Nothing (NaN checked in Parsing)\n\t\t\tvalue = 0./0. ;\n\t\t\t// while ((t.pos < t.length) && (t.a[t.pos] == '-')) t.pos++;\n\t\t}\n\t\t/* Skip the trailing blanks */\n\t\tt.gobbleSpaces();\n\t\tif (t.pos < t.length) throw new ParseException\n\t\t(\"****Unit: setValue '\" + text + \"'+\" + t.pos, t.pos);\n\t}",
"static Value<Integer> parseInteger(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Integer.parseInt(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"public abstract T parse(String s);",
"public static boolean tryParse(String str) { \n try { \n Integer.parseInt(str); \n return true;\n } catch (NumberFormatException ex) {\n return false; \n } catch (Exception ex) {\n\t logError(ex);\n\t return false;\n }\n }",
"public static Value makeAnyStrNotNumeric() {\n return theStrNotNumeric;\n }",
"public static double parseDouble(String s){\r\n double v=-1;\r\n try{\r\n v = Double.parseDouble(s);\r\n }catch(NumberFormatException e){\r\n System.out.println(\"Invalid input\");\r\n }\r\n return v;\r\n }",
"public Number fromString(String s){\n\n return 0;\n }",
"public Value(String s) {\n string = s;\n itemClass = String.class;\n type = DataType.STRING;\n }",
"private void parseDecimalBAT(String str) throws NumberFormatException\n {\n // The value.\n long theValue;\n\n // Try to parse the string as a decimal long.\n try {\n theValue = Long.parseLong(str);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\"bad absolute time: \\\"\" + str + \"\\\"\");\n }\n\n // Check for a negative number and reject if so.\n if (theValue <= 0) {\n throw new NumberFormatException(\"bad absolute time: \\\"\" + str + \"\\\"\");\n }\n\n // Set the value in the object.\n itsValue = theValue;\n }",
"@Override\n\t\t\tprotected Type convert(String text) {\n\t\t\t\tType t = null;\n\t\t\t\ttry {\n\t\t\t\t\t// return null if the types do not match the\n\t\t\t\t\t// original\n\t\t\t\t\tt = Type.getType(text);\n\t\t\t\t\tif (t == null || !match(t, original)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {}\n\t\t\t\treturn t;\n\t\t\t}",
"public static boolean fromStringForRequired(String string)\n throws IllegalArgumentException, TypeValueException {\n if (\"true\".equals(string)) {\n return true;\n } else if (\"false\".equals(string)) {\n return false;\n } else if (string == null) {\n throw new IllegalArgumentException(\"string == null\");\n } else {\n throw new TypeValueException(SINGLETON, string);\n }\n }",
"public double parse(String inputString){\n\t\tclear();\n\t\tinput = inputString;\n\t\treturn expr(true);\n\t}",
"public Object parseValue(String expr);",
"Optional<T> parse(@Nonnull String s);",
"public static void main(String[] args) {\n int integer = 6;\n String s = Integer.toString(integer);\n System.out.println(s);\n\n //integer to string (abc) -- ascii value\n //Character.toString();\n int a = 3;\n char character = (char) (a + '0' + 48);\n char c = 'c';\n s = Character.toString(character);\n System.out.println(s);\n int b = 13;\n c = (char) (b + 48 + '0');\n s = Character.toString(c);\n System.out.println(s);\n\n //parseInt String to Int...\n String str = \"0\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str= \"00\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str = \"-1\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n String inf = \"asdf\"; //any error produces -1\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str = \"-2\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str = \"-002\";\n integer = Integer.parseInt(str);\n System.out.println(integer); //handles all leading zeros... and negatives... edge case is when it is equal to -1 then error....\n //however good news is that my function has all negatives handled like no edge cases.... only 0000 edge case\n\n //- + 0000 123 0.000 */\n //handled all edge cases with integers... only edge cases with float 0.000 consider...\n //parseDouble\n str = \"0\";\n double d = Double.parseDouble(str);\n System.out.println(d);\n str = \"00.9\";\n d = Double.parseDouble(str);\n System.out.println(d);\n str = \"-00.9000\";\n d = Double.parseDouble(str);\n System.out.println(d);\n str = \"-1.987\";\n d = Double.parseDouble(str);\n System.out.println(d);\n str = \"asdf\"; //throws exception\n try {\n d = Double.parseDouble(str);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n System.out.println(d); //d remains same/old value;\n\n }",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }",
"private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\t\t\t\tpublic Object stringToValue(String text) throws ParseException {\n\t\t\t\t\treturn \"\";\r\n\t\t\t\t}",
"@Test(expected=ClassCastException.class)\n public void testWrongValueOf() {\n assertSame(Configuration.Key.isDoubleToDoubleSupported,\n Configuration.Key.valueOf(\"isDoubleToDoubleSupported\", String.class));\n }",
"public static double parseInt(final Object self, final Object string) {\n return parseIntInternal(JSType.trimLeft(JSType.toString(string)), 0);\n }",
"public Object stringToValue(String text) throws ParseException {\n Pattern pattern = getPattern();\n\n if (pattern != null) {\n Matcher matcher = pattern.matcher(text);\n\n if (matcher.matches()) {\n setMatcher(matcher);\n return super.stringToValue(text);\n }\n throw new ParseException(\"Pattern did not match\", 0);\n }\n return text;\n }",
"public boolean tryParseDouble(String value)\n {\n try {\n Double.parseDouble(value);\n return true;\n } catch(NumberFormatException e) {\n return false;\n }\n }",
"@Test\n public void parseReturnsNullIfNotInteger() {\n assertNull(InputProcessing.tryParse(\"assdf\"));\n }",
"private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}",
"public static Type stringToType(final String newType) {\r\n\t\t\r\n\t\tType returnType = Type.Undeclared;\r\n\t\t\r\n\t\tif (newType.toLowerCase().equalsIgnoreCase(\"int\")) {\r\n\t\t\treturnType = Attribute.Type.Int;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"long\")) {\r\n\t\t\treturnType = Attribute.Type.Long;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"boolean\") \r\n\t\t\t\t|| newType.toLowerCase().equalsIgnoreCase(\"bool\")) {\r\n\t\t\treturnType = Attribute.Type.Boolean;\r\n\t\t} else if (newType.toLowerCase().toLowerCase().startsWith(\"char\") \r\n\t\t\t\t|| newType.toLowerCase().toLowerCase().startsWith(\"character\")) {\r\n\t\t\treturnType = Attribute.Type.Char;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"float\")) {\r\n\t\t\treturnType = Attribute.Type.Float;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"double\")) {\r\n\t\t\treturnType = Attribute.Type.Double;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"datetime\")) {\r\n\t\t\treturnType = Attribute.Type.DateTime;\r\n\t\t} else {\r\n\t\t\treturnType = Attribute.Type.Undeclared;\r\n\t\t}\t\r\n\t\treturn returnType;\r\n\t}",
"private int getValueAsInteger(String valueToBeReturnAsInteger) {\n\t\t\n\t\tint defaultValue = 0;\n\t\t\n\t\ttry {\n\t\t\tif(null != valueToBeReturnAsInteger && StringUtils.isNotBlank(valueToBeReturnAsInteger)) {\n\t\t\t\tdefaultValue = Integer.parseInt(valueToBeReturnAsInteger);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"Error in parsing the String value to Integer for[{}]\", valueToBeReturnAsInteger);\n\t\t}\n\t\t\n\t\treturn defaultValue;\n\t}",
"public static double parseDouble(String val)\n {\n if(val == null || val.trim().length() == 0)\n {\n return 0;\n }\n else\n {\n return Double.parseDouble(val);\n }\n }",
"private boolean isInteger(String str)\r\n {\r\n try\r\n {\r\n int i = Integer.parseInt(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }",
"public Operand(String value) {\n if (value == null) throw new IllegalArgumentException(\"String with a value can't be empty\");\n this.value = Double.parseDouble(value);\n }",
"public boolean isParsable(String input){\n boolean parsable = true;\n try{\n Integer.parseInt(input);\n }catch(NumberFormatException e){\n parsable = false;\n }\n return parsable;\n}",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"private int safeStringToInt(String str) {\n\t\tif(stringIsNumeric(str)) {\n\t\t\tif(str.length() > 10) {\n\t\t\t\tstr = str.substring(0, 10);\n\t\t\t}\n\n\t\t\tif(Double.parseDouble(str) > Integer.MAX_VALUE) {\n\t\t\t\treturn Integer.MAX_VALUE - 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn Integer.parseInt(str);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"@SuppressWarnings(\"rawtypes\")\n public Object convert(Class type, String value) throws ConversionException {\n return value;\n }"
] | [
"0.7359318",
"0.69642144",
"0.6625801",
"0.6588385",
"0.6558181",
"0.647707",
"0.64467204",
"0.6436286",
"0.6412875",
"0.63974744",
"0.63860714",
"0.63815206",
"0.63382447",
"0.6277449",
"0.6256401",
"0.6244173",
"0.620018",
"0.61747444",
"0.61524886",
"0.6133905",
"0.61123216",
"0.6060631",
"0.601724",
"0.59818584",
"0.5963922",
"0.59611416",
"0.59512717",
"0.5946845",
"0.592122",
"0.59167624",
"0.59011614",
"0.58531994",
"0.58364207",
"0.58284926",
"0.5813341",
"0.58096474",
"0.57939893",
"0.57935065",
"0.5792173",
"0.5751774",
"0.5750781",
"0.5750687",
"0.5744692",
"0.5725558",
"0.5707828",
"0.5688026",
"0.5649087",
"0.5640953",
"0.56194806",
"0.5614267",
"0.561008",
"0.5608762",
"0.55927384",
"0.55918765",
"0.55839837",
"0.5583553",
"0.55605763",
"0.55521446",
"0.5540565",
"0.5516855",
"0.5506565",
"0.550447",
"0.5498963",
"0.5492991",
"0.5483111",
"0.5477697",
"0.5469731",
"0.5466242",
"0.54612106",
"0.54548836",
"0.5444292",
"0.5432484",
"0.54267186",
"0.54255444",
"0.54221237",
"0.54177177",
"0.5413532",
"0.54104567",
"0.5395398",
"0.5382892",
"0.537508",
"0.536696",
"0.5357852",
"0.53492063",
"0.5347505",
"0.53430134",
"0.5341706",
"0.53399855",
"0.5337843",
"0.53241414",
"0.5318601",
"0.5317957",
"0.5305916",
"0.5303378",
"0.5303104",
"0.52994174",
"0.52831006",
"0.5250801",
"0.5243806",
"0.52427155"
] | 0.65194136 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.